Skip to content

Commit

Permalink
Add token_symbol to rollapp metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
zale144 committed Aug 20, 2024
1 parent e50966c commit 72acfac
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 27 deletions.
6 changes: 4 additions & 2 deletions app/upgrades/v4/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ func ConvertOldRollappToNew(oldRollapp rollapptypes.Rollapp) rollapptypes.Rollap
TokenLogoDataUri: "",
Telegram: "",
X: "",
GenesisUrl: "",
DisplayName: "",
Tagline: "",
TokenSymbol: "",
},
InitialSequencer: "*",
Sealed: true,
Expand All @@ -168,8 +172,6 @@ func ConvertOldSequencerToNew(old sequencertypes.Sequencer) sequencertypes.Seque
Address: old.Address,
DymintPubKey: old.DymintPubKey,
RollappId: old.RollappId,
Status: old.Status,
Tokens: old.Tokens,
Metadata: sequencertypes.SequencerMetadata{
Moniker: old.Metadata.Moniker,
Details: old.Metadata.Details,
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,7 @@ replace (
// broken goleveldb
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7

github.com/tendermint/tendermint => github.com/cometbft/cometbft v0.34.29

golang.org/x/exp => golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb
)
2 changes: 2 additions & 0 deletions proto/dymensionxyz/dymension/rollapp/metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ message RollappMetadata {
string display_name = 8;
// tagline is a non semantic tagline/catch-phrase. Size limited.
string tagline = 9;
// token_symbol is the native token symbol
string token_symbol = 10;
}
95 changes: 74 additions & 21 deletions x/rollapp/types/metadata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions x/sequencer/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions x/sequencer/types/sequencer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 72acfac

Please sign in to comment.