P 948 added more networks dataprovider for erc20 amount VC #2990
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
1 Mainly support network arbitrum, polygon and combo for erc20 token
with below refactoring too:
2 combine all token config to one mapping variable
3 add token config rangeDecimals instead of global decimals_factor
4 use maxDecimals from all networks of token as range decimals factor
5 add unit test for sol libraries: StringCleaner, StringComparison
Labels
Please apply following PR-related labels when appropriate:
C0-breaking
: if your change could break the existing client, e.g. API change, critical logic changeC1-noteworthy
: if your change is non-breaking, but is still worth noticing for the client, e.g. reference code improvementHow (Optional)
Testing Evidences
Please attach any relevant evidences if applicable
Atom from Polygon
./bin/litentry-cli trusted -d request-vc did:litentry:evm:0xac51C4c48Dc3116487eD4BC16542e27B5694Da1b -a "dynamic 6f57ad167c42951657685a5d9a874f02f9e96976 0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000461746f6d00000000000000000000000000000000000000000000000000000000"
Bean from Combo
./bin/litentry-cli trusted -d request-vc did:litentry:evm:0x6955512E5374D8fbD3ACF072e40bD4682ab2630a -a "dynamic 6f57ad167c42951657685a5d9a874f02f9e96976 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000046265616e00000000000000000000000000000000000000000000000000000000"
Dai from Arbitrum
./bin/litentry-cli trusted -d request-vc did:litentry:evm:0xd85E038593d7A098614721EaE955EC2022B9B91B -a "dynamic 6f57ad167c42951657685a5d9a874f02f9e96976 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000036461690000000000000000000000000000000000000000000000000000000000"