Skip to content

Commit

Permalink
fix: add missing tier module data (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond authored Aug 22, 2024
1 parent 6da4bf4 commit 052a90f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1
github.com/cosmos/cosmos-sdk v0.47.11
github.com/cosmos/ibc-go/v7 v7.4.0
github.com/elys-network/elys v0.41.1
github.com/elys-network/elys v0.43.0
github.com/spf13/cobra v1.8.0
github.com/vbauerster/mpb/v8 v8.7.3
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1432,8 +1432,8 @@ github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkg
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
github.com/elys-network/bandchain-packet v0.0.3-sdk47 h1:W4sP/JOXAoABhsV+ck1NTphLuqpuxGg+uul1nDLbgxk=
github.com/elys-network/bandchain-packet v0.0.3-sdk47/go.mod h1:/CtU24lu2E4RbPRcZFJfEagwW6TUdFcxv7pX0cYYSgk=
github.com/elys-network/elys v0.41.1 h1:ZD7gfqC0SuTW17WVXMBIF/5ca7Lu/T8cvsn1HUE8kFI=
github.com/elys-network/elys v0.41.1/go.mod h1:tRqOX2Tv3ex0XmQcrrR1Sqq8JWBsJ7sXZwYFrQAId40=
github.com/elys-network/elys v0.43.0 h1:/9C1EVrnksMQHDjYWdii9YQ4ubWgDTU3zX6qRVcnMXA=
github.com/elys-network/elys v0.43.0/go.mod h1:tRqOX2Tv3ex0XmQcrrR1Sqq8JWBsJ7sXZwYFrQAId40=
github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
Expand Down
9 changes: 9 additions & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
parametertypes "github.com/elys-network/elys/x/parameter/types"
perpetualtypes "github.com/elys-network/elys/x/perpetual/types"
stablestaketypes "github.com/elys-network/elys/x/stablestake/types"
tiertypes "github.com/elys-network/elys/x/tier/types"
tokenomicstypes "github.com/elys-network/elys/x/tokenomics/types"
transferhooktypes "github.com/elys-network/elys/x/transferhook/types"

Expand Down Expand Up @@ -108,6 +109,7 @@ type AppState struct {
Slashing Slashing `json:"slashing"`
StableStake StableStake `json:"stablestake"`
Staking Staking `json:"staking"`
Tier Tier `json:"tier"`
Tokenomics Tokenomics `json:"tokenomics"`
Transfer transfertypes.GenesisState `json:"transfer"`
TransferHook transferhooktypes.GenesisState `json:"transferhook"`
Expand All @@ -116,6 +118,13 @@ type AppState struct {
// Include other fields as needed
}

type Tier struct {
tiertypes.GenesisState

Params interface{} `json:"params"`
PortfolioList []interface{} `json:"portfolioList"`
}

type Masterchef struct {
mastercheftypes.GenesisState

Expand Down
3 changes: 2 additions & 1 deletion utils/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func Export(cmdPath, homePath, genesisFilePath string) {
"burner",
"capability",
"clock",
"commitment",
// "commitment", // FIXME: optimize data prior to export
"consensus",
"crisis",
// "distribution", // FIXME: optimize data prior to export as it reached 1.8GB
Expand All @@ -40,6 +40,7 @@ func Export(cmdPath, homePath, genesisFilePath string) {
"poolaccounted",
"stablestake",
"staking",
"tier",
"tokenomics",
"transfer",
"transferhook",
Expand Down

0 comments on commit 052a90f

Please sign in to comment.