Documentation
¶
Index ¶
Constants ¶
View Source
const ( TokenContract = "swan_token" CollateralContract = "swan_collateral" DefaultRpc = "swan" BaseRpc = "goerli" )
Variables ¶
This section is empty.
Functions ¶
func GetRpcByName ¶
Types ¶
type ChainConfig ¶
type ChainConfig struct { RPC struct { GoerliUrl string `toml:"GOERLI_URL"` SwanTestnet string `toml:"SWAN_TESTNET"` SwanMainnet string `toml:"SWAN_MAINNET"` } `toml:"RPC"` CONTRACT struct { SwanToken string `toml:"SWAN_CONTRACT"` Collateral string `toml:"SWAN_COLLATERAL_CONTRACT"` UbiTask string `toml:"UBI_TASK_CONTRACT"` } `toml:"CONTRACT"` }
Click to show internal directories.
Click to hide internal directories.