Documentation ¶
Index ¶
Constants ¶
View Source
const ( // common OsmoDenom = "uosmo" IonDenom = "uion" StakeDenom = "stake" AtomDenom = "uatom" DaiDenom = "ibc/0CD3A0285E1341859B5E86B6AB7682F023D03E97607CCC1DC95706411D866DF7" OsmoIBCDenom = "ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518" StakeIBCDenom = "ibc/C053D637CCA2A2BA030E2C5EE1B28A16F71CCB0E45E8BE52766DC1B241B7787" E2EFeeToken = "e2e-default-feetoken" UstIBCDenom = "ibc/BE1BB42D4BE3C30D50B68D7C41DB4DFCE9678E8EF8C539F6E6A9345048894FCC" LuncIBCDenom = "ibc/0EF15DF2F02480ADE0BB6E85D9EBB5DAEA2836D3860E9F97F9AADE4F57A31AA0" UsdcAxlDenom = "ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858" MinGasPrice = "0.000" IbcSendAmount = 3300000000 ValidatorWalletName = "val" // chainA ChainAID = "osmo-test-a" OsmoBalanceA = 20000000000000 UsdcAxlBalanceA = 20000000000000 IonBalanceA = 100000000000 StakeBalanceA = 110000000000 StakeAmountA = 100000000000 UstBalanceA = 500000000000000 LuncBalanceA = 500000000000000 DaiBalanceA = "100000000000000000000000" // chainB ChainBID = "osmo-test-b" OsmoBalanceB = 500000000000 UsdcAxlBalanceB = 500000000000 IonBalanceB = 100000000000 StakeBalanceB = 440000000000 StakeAmountB = 400000000000 GenesisFeeBalance = 100000000000 WalletFeeBalance = 100000000 EpochDayDuration = time.Second * 60 EpochWeekDuration = time.Second * 120 TWAPPruningKeepPeriod = EpochDayDuration / 4 DaiOsmoPoolId = 674 )
Variables ¶
View Source
var ( StakeAmountIntA = osmomath.NewInt(StakeAmountA) StakeAmountCoinA = sdk.NewCoin(OsmoDenom, StakeAmountIntA) StakeAmountIntB = osmomath.NewInt(StakeAmountB) StakeAmountCoinB = sdk.NewCoin(OsmoDenom, StakeAmountIntB) DaiOsmoPoolBalances = fmt.Sprintf("%s%s", DaiBalanceA, DaiDenom) InitBalanceStrA = fmt.Sprintf("%d%s,%d%s,%d%s,%d%s,%d%s,%d%s", OsmoBalanceA, OsmoDenom, StakeBalanceA, StakeDenom, IonBalanceA, IonDenom, UstBalanceA, UstIBCDenom, LuncBalanceA, LuncIBCDenom, UsdcAxlBalanceA, UsdcAxlDenom) InitBalanceStrB = fmt.Sprintf("%d%s,%d%s,%d%s,%d%s", OsmoBalanceB, OsmoDenom, StakeBalanceB, StakeDenom, IonBalanceB, IonDenom, UsdcAxlBalanceA, UsdcAxlDenom) OsmoToken = sdk.NewInt64Coin(OsmoDenom, IbcSendAmount) // 3,300uosmo StakeToken = sdk.NewInt64Coin(StakeDenom, IbcSendAmount) // 3,300ustake WalletFeeTokens = sdk.NewCoin(E2EFeeToken, osmomath.NewInt(WalletFeeBalance)) )
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.