Documentation ¶
Index ¶
Constants ¶
View Source
const ( // common BaseDenom = "ujuno" StakeDenom = "stake" MinGasPrice = "0.000" IbcSendAmount = 3300000000 ValidatorWalletName = "val" // chainA ChainAID = "juno-test-a" JunoBalanceA = 200000000000 StakeBalanceA = 110000000000 StakeAmountA = 100000000000 // chainB ChainBID = "juno-test-b" JunoBalanceB = 500000000000 StakeBalanceB = 440000000000 StakeAmountB = 400000000000 EpochDuration = time.Second * 60 TWAPPruningKeepPeriod = EpochDuration / 4 )
Variables ¶
View Source
var ( StakeAmountIntA = sdk.NewInt(StakeAmountA) StakeAmountCoinA = sdk.NewCoin(BaseDenom, StakeAmountIntA) StakeAmountIntB = sdk.NewInt(StakeAmountB) StakeAmountCoinB = sdk.NewCoin(BaseDenom, StakeAmountIntB) InitBalanceStrA = fmt.Sprintf("%d%s,%d%s", JunoBalanceA, BaseDenom, StakeBalanceA, StakeDenom) InitBalanceStrB = fmt.Sprintf("%d%s,%d%s", JunoBalanceB, BaseDenom, StakeBalanceB, StakeDenom) JunoToken = sdk.NewInt64Coin(BaseDenom, IbcSendAmount) // 3,300ujuno StakeToken = sdk.NewInt64Coin(StakeDenom, IbcSendAmount) // 3,300ustake )
Functions ¶
This section is empty.
Types ¶
type Node ¶
type NodeConfig ¶
type NodeConfig struct { Name string // name of the config that will also be assigned to Docke container. Pruning string // default, nothing, everything, or custom PruningKeepRecent string // keep all of the last N states (only used with custom pruning) PruningInterval string // delete old states from every Nth block (only used with custom pruning) SnapshotInterval uint64 // statesync snapshot every Nth block (0 to disable) SnapshotKeepRecent uint32 // number of recent snapshots to keep and serve (0 to keep all) IsValidator bool // flag indicating whether a node should be a validator }
NodeConfig is a confiuration for the node supplied from the test runner to initialization scripts. It should be backwards compatible with earlier versions. If this struct is updated, the change must be backported to earlier branches that might be used for upgrade testing.
Click to show internal directories.
Click to hide internal directories.