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

add bridge address and asset IDs to genesis and check during execution #47

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

noot
Copy link

@noot noot commented Apr 2, 2024

astriaBridgeAddresses should be a list of sequencer addresses (hex encoded with 0x prefix).

astriaBridgeAllowedAssetDenom should be the denom (not ID) of the asset allowed to be bridged over (as this will become the minted native token, there can only be one asset). examples: nria, channel-0/transfer/tia

deposits that do not have the right bridge address or asset denom are ignored.

@noot noot requested a review from joroshiba April 2, 2024 21:42
Copy link
Member

@joroshiba joroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Should we make the config here a map though? Where each bridge address may support a different asset id, this would support a situation where you could bridge an ERC20 or something via a different bridge.

This could be something we add at a later date though.

@noot
Copy link
Author

noot commented Apr 3, 2024

right now we don't support ERC20s, any deposit corresponds to native tokens directly minted. so should leave as-is for now, we can update it later when we have ERC20 support

@noot noot merged commit 744a32e into release/1.13 Apr 3, 2024
1 check passed
@noot noot deleted the noot/bridge-genesis branch April 3, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants