-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core, sequencer)!: make native asset optional (#1703)
## Summary Makes setting a native asset optional. ## Background Native assets are a remnant of sequencer that is now deeply entrenched in how it runs (whitebox) tests. While we don't want to set a native assets, in mainnet, it is too big a lift to remove them at this point. ## Changes - Change genesis validation to permit empty native assets. - Update account chain init to only require native assets if accounts are set. - Remove native asset lookup from querying assets (this can be done via looking up all ibc assets. ## Testing The absence of native assets is not tested as of this patch. All tests still function with native assets set. A proper test would follow these steps: 1. Spin up a test net without native assets, accounts, or permitted fee assets set 2. Bridge in an IBC asset via an ics20 transfer 3. Set a permitted fee asset to the bridged asset 4. Execute transactions. ## Breaking Changelist This is marked as breaking since a node with before this change would reject an empty native asset in its genesis while a node after this patch would initialize successfully. However, this is mild breakage because both nodes would not form a network in the first place. --------- Co-authored-by: quasystaty <[email protected]> Co-authored-by: Jordan Oroshiba <[email protected]>
- Loading branch information
1 parent
43edb82
commit 3e16986
Showing
10 changed files
with
168 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
global: | ||
dev: true | ||
|
||
genesis: | ||
chainId: 'sequencer-test-chain-0' | ||
genesisTime: '2023-09-22T17:22:35.092832Z' | ||
addressPrefixes: | ||
base: "astria" | ||
authoritySudoAddress: astria1rsxyjrcm255ds9euthjx6yc3vrjt9sxrm9cfgm | ||
ibc: | ||
enabled: true | ||
inboundEnabled: true | ||
outboundEnabled: true | ||
sudoAddress: astria1rsxyjrcm255ds9euthjx6yc3vrjt9sxrm9cfgm | ||
relayerAddresses: | ||
- astria1rsxyjrcm255ds9euthjx6yc3vrjt9sxrm9cfgm | ||
- astria1xnlvg0rle2u6auane79t4p27g8hxnj36ja960z | ||
# Note large balances must be strings support templating with the u128 size | ||
# account balances | ||
genesisAccounts: [] | ||
|
||
resources: | ||
cometbft: | ||
requests: | ||
cpu: 1000m | ||
memory: 500Mi | ||
limits: | ||
cpu: 1000m | ||
memory: 500Mi | ||
sequencer: | ||
requests: | ||
cpu: 1000m | ||
memory: 500Mi | ||
limits: | ||
cpu: 1000m | ||
memory: 500Mi | ||
|
||
storage: | ||
enabled: false |