feat: proxy colony incoming native chain tokens #4174
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.
Description
This PR adds native chain token incoming funds - note it does not address any colony native tokens.
The native chain token claims are generated by the
fetchColonyNativeFundsClaim
lambda, this PR refactors the lambda to also check for balances on any supported chain where a proxy colony has been deployed and return the claims as an array.I've also temporarily added the chain id on the incoming funds page so we can more easily identify which chain the funds are on whilst we continue development on this feature.
I also began adding a new ProxyToken model, but realised I didn't actually need it to complete the work here, however I've left in place as it will be beneficial for the next few issues.
Testing
127.0.0.1:8546
and the chain id to265669101
If you payment fails, clear the tab data under advanced settings and try again.
For further testing send more funds (note all native funds are summed together per chain rather than shown as individual claims). Try adding the second proxy chain and sending funds there too.
Diffs
New stuff ✨
ProxyToken
model addedChanges 🏗
fetchColonyNativeFundsClaim
lambda now fetches native chain token balances from other chainsResolves #3459