Skip to content
Closed
Changes from all commits
Commits
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
23 changes: 18 additions & 5 deletions app/config.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
package app

import (
"cmp"
"os"
)

type EVMOptionsFn func(uint64) error

// AccountAddressPrefix (the Bech32 account prefix) and BaseDenom (the EVM / CBDC
// base denomination) are deployment-specific, so the same binary can serve any
// deployment. They are read from the environment at process start and fall back
// to the Ethermint-conventional defaults when unset (tests, local runs):
//
// CHAIN_PREFIX=hnl CHAIN_DENOM=hnl // HNL CBDC production
var (
AccountAddressPrefix = cmp.Or(os.Getenv("CHAIN_PREFIX"), "ethm")
BaseDenom = cmp.Or(os.Getenv("CHAIN_DENOM"), "acbdc")
)

const (
AccountAddressPrefix = "ethm"
Bip44CoinType = 60
Name = "cbdc"
// BaseDenom defines to the default denomination used in EVM
BaseDenom = "acbdc"
Bip44CoinType = 60
Name = "cbdc"
Denom = "CBDC"
DenomDescription = "CBDC is the digital central bank currency."
DenomName = "CBDC"
Expand Down
Loading