Skip to content

Commit

Permalink
fix(rollapp): add fee_base_denom and native_base_denom to rollapp…
Browse files Browse the repository at this point in the history
… metadata (#1146)
  • Loading branch information
zale144 authored Aug 27, 2024
1 parent 8382b00 commit 3d67c2d
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 30 deletions.
20 changes: 11 additions & 9 deletions app/upgrades/v4/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,17 @@ func ConvertOldRollappToNew(oldRollapp rollapptypes.Rollapp) rollapptypes.Rollap
GenesisChecksum: string(crypto.Sha256([]byte(oldRollapp.RollappId))), // placeholder data
VmType: rollapptypes.Rollapp_EVM, // placeholder data
Metadata: &rollapptypes.RollappMetadata{
Website: "",
Description: "",
LogoUrl: "",
Telegram: "",
X: "",
GenesisUrl: "",
DisplayName: "",
Tagline: "",
TokenSymbol: "",
Website: "",
Description: "",
LogoUrl: "",
Telegram: "",
X: "",
GenesisUrl: "",
DisplayName: "",
Tagline: "",
TokenSymbol: "",
FeeBaseDenom: "",
NativeBaseDenom: "",
},
InitialSequencer: "*",
Sealed: true,
Expand Down
48 changes: 48 additions & 0 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3457,6 +3457,14 @@ paths:
explorer_url:
type: string
title: explorer_url is the rollapp's block explorer link
fee_base_denom:
type: string
title: fee_base_denom is the base denom for fees
native_base_denom:
type: string
title: >-
native_base_denom is the base denom for the native
token
initial_sequencer:
type: string
description: >-
Expand Down Expand Up @@ -3936,6 +3944,14 @@ paths:
title: >-
explorer_url is the rollapp's block explorer
link
fee_base_denom:
type: string
title: fee_base_denom is the base denom for fees
native_base_denom:
type: string
title: >-
native_base_denom is the base denom for the
native token
initial_sequencer:
type: string
description: >-
Expand Down Expand Up @@ -4296,6 +4312,14 @@ paths:
explorer_url:
type: string
title: explorer_url is the rollapp's block explorer link
fee_base_denom:
type: string
title: fee_base_denom is the base denom for fees
native_base_denom:
type: string
title: >-
native_base_denom is the base denom for the native
token
initial_sequencer:
type: string
description: >-
Expand Down Expand Up @@ -61210,6 +61234,12 @@ definitions:
explorer_url:
type: string
title: explorer_url is the rollapp's block explorer link
fee_base_denom:
type: string
title: fee_base_denom is the base denom for fees
native_base_denom:
type: string
title: native_base_denom is the base denom for the native token
initial_sequencer:
type: string
description: >-
Expand Down Expand Up @@ -61509,6 +61539,12 @@ definitions:
explorer_url:
type: string
title: explorer_url is the rollapp's block explorer link
fee_base_denom:
type: string
title: fee_base_denom is the base denom for fees
native_base_denom:
type: string
title: native_base_denom is the base denom for the native token
initial_sequencer:
type: string
description: >-
Expand Down Expand Up @@ -61855,6 +61891,12 @@ definitions:
explorer_url:
type: string
title: explorer_url is the rollapp's block explorer link
fee_base_denom:
type: string
title: fee_base_denom is the base denom for fees
native_base_denom:
type: string
title: native_base_denom is the base denom for the native token
initial_sequencer:
type: string
description: >-
Expand Down Expand Up @@ -61963,6 +62005,12 @@ definitions:
explorer_url:
type: string
title: explorer_url is the rollapp's block explorer link
fee_base_denom:
type: string
title: fee_base_denom is the base denom for fees
native_base_denom:
type: string
title: native_base_denom is the base denom for the native token
dymensionxyz.dymension.rollapp.RollappSummary:
type: object
properties:
Expand Down
4 changes: 4 additions & 0 deletions proto/dymensionxyz/dymension/rollapp/metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ message RollappMetadata {
string token_symbol = 9;
// explorer_url is the rollapp's block explorer link
string explorer_url = 10;
// fee_base_denom is the base denom for fees
string fee_base_denom = 11;
// native_base_denom is the base denom for the native token
string native_base_denom = 12;
}
149 changes: 128 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.

0 comments on commit 3d67c2d

Please sign in to comment.