Skip to content

Commit

Permalink
#139 Add lilmermaid-16 denom-metadata to local-testnet (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
blewater authored Sep 23, 2021
1 parent 011c60e commit 9b21792
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
83 changes: 83 additions & 0 deletions networktest/denom_metadata.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
package networktest

// local testnet genesis denomination meta-data
// copied from https://github.com/e-money/networks/blob/master/lilmermaid-16/genesis.json
var denomMetadata = `[
{
"base": "ungm",
"denom_units": [
{
"aliases": [],
"denom": "ungm",
"exponent": 0
},
{
"aliases": [],
"denom": "ngm",
"exponent": 6
}
],
"description": "e-Money NGM staking token",
"display": "NGM"
},
{
"base": "echf",
"denom_units": [
{
"aliases": [],
"denom": "echf",
"exponent": 6
}
],
"description": "e-Money CHF stablecoin",
"display": "ECHF"
},
{
"base": "edkk",
"denom_units": [
{
"aliases": [],
"denom": "edkk",
"exponent": 6
}
],
"description": "e-Money DKK stablecoin",
"display": "EDKK"
},
{
"base": "eeur",
"denom_units": [
{
"aliases": [],
"denom": "eeur",
"exponent": 6
}
],
"description": "e-Money EUR stablecoin",
"display": "EEUR"
},
{
"base": "enok",
"denom_units": [
{
"aliases": [],
"denom": "enok",
"exponent": 6
}
],
"description": "e-Money NOK stablecoin",
"display": "ENOK"
},
{
"base": "esek",
"denom_units": [
{
"aliases": [],
"denom": "esek",
"exponent": 6
}
],
"description": "e-Money SEK stablecoin",
"display": "ESEK"
}
]`
2 changes: 2 additions & 0 deletions networktest/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ func (t *Testnet) updateGenesis() {
genesisTime := time.Now().Add(10 * time.Second).UTC().Format(time.RFC3339)
bz, _ = sjson.SetBytes(bz, "genesis_time", genesisTime)

bz, _ = sjson.SetRawBytes(bz, "app_state.bank.denom_metadata", []byte(denomMetadata))

t.genesis = bz

writeGenesisFiles(bz)
Expand Down

0 comments on commit 9b21792

Please sign in to comment.