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" MinGasPrice = "0.000" IbcSendAmount = 3300000000 ValidatorWalletName = "val" // chainA ChainAID = "osmo-test-a" OsmoBalanceA = 20000000000000 IonBalanceA = 100000000000 StakeBalanceA = 110000000000 StakeAmountA = 100000000000 UstBalanceA = 500000000000000 LuncBalanceA = 500000000000000 DaiBalanceA = "100000000000000000000000" // chainB ChainBID = "osmo-test-b" OsmoBalanceB = 500000000000 IonBalanceB = 100000000000 StakeBalanceB = 440000000000 StakeAmountB = 400000000000 GenesisFeeBalance = 100000000000 WalletFeeBalance = 100000000 EpochDayDuration = time.Second * 60 EpochWeekDuration = time.Second * 120 TWAPPruningKeepPeriod = EpochDayDuration / 4 DaiOsmoPoolId = 674 )
View Source
const ( QuoteAsset = "uosmo" TickSpacing = 100 )
Variables ¶
View Source
var ( StakeAmountIntA = sdk.NewInt(StakeAmountA) StakeAmountCoinA = sdk.NewCoin(OsmoDenom, StakeAmountIntA) StakeAmountIntB = sdk.NewInt(StakeAmountB) StakeAmountCoinB = sdk.NewCoin(OsmoDenom, StakeAmountIntB) // START: CAN REMOVE POST v17 UPGRADE BaseDenomBalances = strAllUpgradeBaseDenoms() InitBalanceStrA = fmt.Sprintf("%d%s,%d%s,%d%s,%d%s,%d%s", OsmoBalanceA, OsmoDenom, StakeBalanceA, StakeDenom, IonBalanceA, IonDenom, UstBalanceA, UstIBCDenom, LuncBalanceA, LuncIBCDenom) InitBalanceStrB = fmt.Sprintf("%d%s,%d%s,%d%s", OsmoBalanceB, OsmoDenom, StakeBalanceB, StakeDenom, IonBalanceB, IonDenom) OsmoToken = sdk.NewInt64Coin(OsmoDenom, IbcSendAmount) // 3,300uosmo StakeToken = sdk.NewInt64Coin(StakeDenom, IbcSendAmount) // 3,300ustake WalletFeeTokens = sdk.NewCoin(E2EFeeToken, sdk.NewInt(WalletFeeBalance)) )
View Source
var ( ION = "uion" ISTIBCDenom = "ibc/92BE0717F4678905E53F4E45B2DED18BC0CB97BF1F8B6A25AFEDF3D5A879B4D5" CMSTIBCDenom = "ibc/23CA6C8D1AB2145DD13EB1E089A2E3F960DC298B468CCE034E19E5A78B61136E" WBTCIBCDenom = "ibc/D1542AA8762DB13087D8364F3EA6509FD6F009A34F00426AF9E4F9FA85CBBF1F" DOTIBCDenom = "ibc/3FF92D26B407FD61AE95D975712A7C319CDE28DE4D80BDC9978D935932B991D7" CROIBCDenom = "ibc/E6931F78057F7CC5DA0FD6CEF82FF39373A6E0452BF1FD76910B93292CF356C1" AKTIBCDenom = "ibc/1480B8FD20AD5FCAE81EA87584D269547DD4D436843C1D20F15E00EB64743EF4" AXLIBCDenom = "ibc/903A61A498756EA560B85A85132D3AEE21B5DEDD41213725D22ABF276EA6945E" SCRTIBCDenom = "ibc/0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A" STARSIBCDenom = "ibc/987C17B11ABC2B20019178ACE62929FE9840202CE79498E29FE8E5CB02B7C0A4" JUNOIBCDenom = "ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED" STRDIBCDenom = "ibc/A8CA5EE328FA10C9519DF6057DA1F69682D28F7D0F5CCC7ECB72E3DCA2D157A4" MARSIBCDenom = "ibc/573FCD90FACEE750F55A8864EF7D38265F07E5A9273FA0E8DAFD39951332B580" XPRTIBCDenom = "ibc/A0CC0CF735BFB30E730C70019D4218A1244FF383503FF7579C9201AB93CA9293" MEDIBCDenom = "ibc/3BCCC93AD5DF58D11A6F8A05FA8BC801CBA0BA61A981F57E91B8B598BF8061CB" SOMMIBCDenom = "ibc/9BBA9A1C257E971E38C1422780CE6F0B0686F0A3085E2D61118D904BFE0F5F5E" BLDIBCDenom = "ibc/2DA9C149E9AD2BD27FEFA635458FB37093C256C1A940392634A16BEA45262604" KAVAIBCDenom = "ibc/57AA1A70A4BC9769C525EBF6386F7A21536E04A79D62E1981EFCEF9428EBB205" IRISIBCDenom = "ibc/7C4D60AA95E5A7558B0A364860979CA34B7FF8AAF255B87AF9E879374470CEC0" DVPNIBCDenom = "ibc/9712DBB13B9631EDFA9BF61B55F1B2D290B2ADB67E3A4EB3A875F3B6081B3B84" BTSGIBCDenom = "ibc/4E5444C35610CC76FC94E7F7886B93121175C28262DDFDDE6F84E82BF2425452" UMEEIBCDenom = "ibc/67795E528DF67C5606FC20F824EA39A6EF55BA133F4DC79C90A8C47A0901E17C" HUAHUAIBCDenom = "ibc/B9E0A1A524E98BB407D3CED8720EFEFD186002F90C1B1B7964811DD0CCC12228" NCTIBCDenom = "ibc/A76EB6ECF4E3E2D4A23C526FD1B48FDD42F171B206C9D2758EF778A7826ADD68" GRAVIBCDenom = "ibc/E97634A40119F1898989C2A23224ED83FDD0A57EA46B3A094E287288D1672B44" )
View Source
var AssetPairs = []AssetPair{ { BaseAsset: ISTIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 837, Superfluid: true, }, { BaseAsset: CMSTIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.0005"), LinkedClassicPool: 857, Superfluid: false, }, { BaseAsset: WBTCIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 712, Superfluid: true, }, { BaseAsset: DOTIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 773, Superfluid: true, }, { BaseAsset: CROIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 9, Superfluid: true, }, { BaseAsset: AKTIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 3, Superfluid: true, }, { BaseAsset: AXLIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 812, Superfluid: true, }, { BaseAsset: SCRTIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 584, Superfluid: true, }, { BaseAsset: STARSIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.003"), LinkedClassicPool: 604, Superfluid: true, }, { BaseAsset: JUNOIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.003"), LinkedClassicPool: 497, Superfluid: true, }, { BaseAsset: STRDIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 806, Superfluid: true, }, { BaseAsset: MARSIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 907, Superfluid: true, }, { BaseAsset: ION, SpreadFactor: sdk.MustNewDecFromStr("0.005"), LinkedClassicPool: 1013, Superfluid: true, }, { BaseAsset: XPRTIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 15, Superfluid: true, }, { BaseAsset: MEDIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 586, Superfluid: false, }, { BaseAsset: SOMMIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 627, Superfluid: true, }, { BaseAsset: BLDIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 795, Superfluid: true, }, { BaseAsset: KAVAIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 730, Superfluid: true, }, { BaseAsset: IRISIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 7, Superfluid: false, }, { BaseAsset: stIBCXDenom, SpreadFactor: sdk.MustNewDecFromStr("0.003"), LinkedClassicPool: 1039, Superfluid: false, }, { BaseAsset: DVPNIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 5, Superfluid: false, }, { BaseAsset: BTSGIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 573, Superfluid: false, }, { BaseAsset: UMEEIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 641, Superfluid: false, }, { BaseAsset: HUAHUAIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 605, Superfluid: true, }, { BaseAsset: NCTIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 971, Superfluid: false, }, { BaseAsset: GRAVIBCDenom, SpreadFactor: sdk.MustNewDecFromStr("0.002"), LinkedClassicPool: 625, Superfluid: false, }, }
AssetPairs contract: all AssetPairs being initialized in this upgrade handler all have the same quote asset (OSMO).
Functions ¶
This section is empty.
Types ¶
type ByLinkedClassicPool ¶ added in v16.1.2
type ByLinkedClassicPool []AssetPair
START: CAN REMOVE POST v17 UPGRADE
func (ByLinkedClassicPool) Len ¶ added in v16.1.2
func (a ByLinkedClassicPool) Len() int
func (ByLinkedClassicPool) Less ¶ added in v16.1.2
func (a ByLinkedClassicPool) Less(i, j int) bool
func (ByLinkedClassicPool) Swap ¶ added in v16.1.2
func (a ByLinkedClassicPool) Swap(i, j int)
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.