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

refactor: use ChainInfo in authority to allow support chains dynamically #2380

Merged
merged 45 commits into from
Jul 2, 2024
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
640aa3e
add combine list function
lumtis Jun 24, 2024
d642c10
remove unused functions and add combine default list method
lumtis Jun 24, 2024
0b852e8
use test package for chain_test
lumtis Jun 24, 2024
7881b53
use additional info parameter for methods
lumtis Jun 24, 2024
502261f
rename additional chains
lumtis Jun 24, 2024
7f83544
add GetChainList to authority interface
lumtis Jun 24, 2024
52ced26
iteration 1
lumtis Jun 24, 2024
a9af40d
Merge branch 'develop' into feat/read-chain-info
lumtis Jun 24, 2024
436bbe4
crosschain refactoring
lumtis Jun 25, 2024
59f28fe
fungible refacotring
lumtis Jun 25, 2024
384dd5f
lightclient refactoring
lumtis Jun 25, 2024
3dc2372
observer refactoring
lumtis Jun 25, 2024
ae4d0ff
add additional chain list in context
lumtis Jun 25, 2024
ebd7ae7
zetaclient modification
lumtis Jun 25, 2024
e1bec69
fix build error
lumtis Jun 25, 2024
48ac8f8
format
lumtis Jun 25, 2024
9c6b05b
changelog
lumtis Jun 25, 2024
746d09a
Merge branch 'develop' into feat/read-chain-info
lumtis Jun 25, 2024
b3ebf57
conflicts
lumtis Jun 26, 2024
65f6cbe
fix lint
lumtis Jun 26, 2024
672da05
test fixes 2
lumtis Jun 26, 2024
b373d17
observer test fix
lumtis Jun 26, 2024
4560118
zetaclient tests
lumtis Jun 26, 2024
0a6f256
fix test 2
lumtis Jun 26, 2024
994020a
add more tests
lumtis Jun 26, 2024
54dd10c
rename getChainList
lumtis Jun 26, 2024
30271ec
Merge branch 'develop' into feat/read-chain-info
lumtis Jun 26, 2024
075091f
add issues
lumtis Jun 26, 2024
bc9ff69
Merge branch 'develop' into feat/read-chain-info
lumtis Jun 26, 2024
4c4cccf
fix tests
lumtis Jun 26, 2024
0fd232f
Merge branch 'develop' into feat/read-chain-info
lumtis Jun 27, 2024
f842aa0
Update pkg/chains/chains.go
lumtis Jun 28, 2024
6e6b781
Update pkg/chains/chains.go
lumtis Jun 28, 2024
6adf45b
add TODO
lumtis Jun 28, 2024
1b07d96
Update x/authority/keeper/chain_info.go
lumtis Jun 28, 2024
adfd208
Update cmd/zetaclientd/debug.go
lumtis Jun 28, 2024
e935a3f
remove pointers in chains
lumtis Jun 28, 2024
54d6135
complete chain remove pointer
lumtis Jun 28, 2024
66e2b77
fix tests
lumtis Jun 28, 2024
a7af5d8
dmitry comments
lumtis Jun 28, 2024
52d5650
update comment
lumtis Jul 1, 2024
ab4ccf4
conflicts
lumtis Jul 2, 2024
c09b769
fix merge error
lumtis Jul 2, 2024
d066959
comments
lumtis Jul 2, 2024
bdc1b72
use nil
lumtis Jul 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion x/authority/keeper/chain_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ func (k Keeper) GetChainInfo(ctx sdk.Context) (val types.ChainInfo, found bool)
}

// GetAdditionalChainList returns the list of chains in chain info object
lumtis marked this conversation as resolved.
Show resolved Hide resolved
// additional chains are additional static chain information stored on-chain used in addition with the default chain information
// this list allow to add new chain support without doing an upgrade
// returns empty list if no chains are present
func (k Keeper) GetAdditionalChainList(ctx sdk.Context) []chains.Chain {
chainInfo, found := k.GetChainInfo(ctx)
if !found {
return
return []chains.Chain{}
lumtis marked this conversation as resolved.
Show resolved Hide resolved
}
return chainInfo.Chains
}
Loading