Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-chain support (EVM chains) #336

Closed
elpiel opened this issue Oct 1, 2020 · 1 comment · Fixed by #482
Closed

Multi-chain support (EVM chains) #336

elpiel opened this issue Oct 1, 2020 · 1 comment · Fixed by #482
Labels
primitives Changes regarding the `primitives` crate

Comments

@elpiel
Copy link
Member

elpiel commented Oct 1, 2020

See AmbireTech/adex-validator#324 for more details
Chain IDs: https://chainid.network/

When working with Channels we need to try and map the known addresses of stablecoins to the passed Channel.token and "guess" the chain on which this channel is located (ethereum, polygon, etc).

✅ Configuration

Configuration should allow for setting up allowed tokens (and chains). So configuration for allowed tokens and chains is explicit and we have to specify the chain id and address.
Each Chain should also have the addresses of the OUTPACE & Sweeper contracts

✅ Adapter

  1. RPC

The information about the Chain will be then used to initialize the Adapter with the correct rpc url for this chain.

  1. Authentication token

Chain will be used to generate to Authentication token as well, since we need this information, when we're calling the Adapter::session_from_token. This is the case, because of #452 which uses the Identity contract (on a given chain) if the payload contains an identity address

Sentry

All calls should be filtered out based on the Authentication token Chain, otherwise the identity as which we've authenticated as in the given chain, won't be valid for other chain's records (like channels, campaigns, analytics, etc)

@elpiel elpiel added this to the validator-v0.3.0 milestone Jan 5, 2021
@elpiel elpiel added the primitives Changes regarding the `primitives` crate label Jan 8, 2021
@elpiel elpiel modified the milestones: validator-v0.3.0, sentry-v0.2.0 Jan 8, 2021
@elpiel elpiel changed the title depositAsset in different EVN chains Channel.token in different EVN chains Dec 15, 2021
@elpiel elpiel changed the title Channel.token in different EVN chains Channel.token in different EVM chains Dec 15, 2021
@elpiel elpiel changed the title Channel.token in different EVM chains Multi-chain support (EVM chains) Feb 21, 2022
elpiel added a commit that referenced this issue Feb 21, 2022
elpiel added a commit that referenced this issue Mar 29, 2022
…ance

Issue #336 Multi-chain support - run a second instance of ganache-cli with Chain Id #1
@elpiel elpiel closed this as completed May 25, 2022
@elpiel
Copy link
Member Author

elpiel commented May 25, 2022

Any outstanding changes regarding the multi-chain support can be handled separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
primitives Changes regarding the `primitives` crate
Projects
None yet
1 participant