v17

package
v25.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OSMO        = appparams.BaseCoinUnit
	TickSpacing = 100
)
View Source
const UpgradeName = "v17"

UpgradeName defines the on-chain upgrade name for the Osmosis v17 upgrade.

Variables

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{
	{LinkedClassicPool: 837},
	{
		SpreadFactor:      osmomath.MustNewDecFromStr("0.0005"),
		LinkedClassicPool: 857,
	},
	{
		LinkedClassicPool: 712,
		QuoteAsset:        WBTCIBCDenom,
	},
	{LinkedClassicPool: 773},
	{LinkedClassicPool: 9},
	{LinkedClassicPool: 3},
	{LinkedClassicPool: 812},
	{LinkedClassicPool: 584},
	{LinkedClassicPool: 604},
	{LinkedClassicPool: 497},
	{LinkedClassicPool: 806},
	{LinkedClassicPool: 907},
	{LinkedClassicPool: 1013},
	{LinkedClassicPool: 15},
	{LinkedClassicPool: 586},
	{LinkedClassicPool: 627},
	{LinkedClassicPool: 795},
	{LinkedClassicPool: 730},
	{LinkedClassicPool: 7},
	{LinkedClassicPool: 1039},
	{LinkedClassicPool: 5},
	{LinkedClassicPool: 573},
	{LinkedClassicPool: 641},
	{LinkedClassicPool: 605},
	{LinkedClassicPool: 971},
	{LinkedClassicPool: 625},
}
View Source
var AssetPairsForTestsOnly = []AssetPair{
	{
		QuoteAsset:        OSMO,
		BaseAsset:         ISTIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 837,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         CMSTIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.0005"),
		LinkedClassicPool: 857,
		Superfluid:        false,
	},
	{
		QuoteAsset:        WBTCIBCDenom,
		BaseAsset:         OSMO,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 712,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         DOTIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 773,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         CROIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 9,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         AKTIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 3,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         AXLIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 812,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         SCRTIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 584,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         STARSIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.003"),
		LinkedClassicPool: 604,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         JUNOIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.003"),
		LinkedClassicPool: 497,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         STRDIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 806,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         MARSIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 907,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         ION,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.005"),
		LinkedClassicPool: 1013,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         XPRTIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 15,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         MEDIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 586,
		Superfluid:        false,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         SOMMIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 627,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         BLDIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 795,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         KAVAIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 730,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         IRISIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 7,
		Superfluid:        false,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         stIBCXDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.003"),
		LinkedClassicPool: 1039,
		Superfluid:        false,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         DVPNIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 5,
		Superfluid:        false,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         BTSGIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 573,
		Superfluid:        false,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         UMEEIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 641,
		Superfluid:        false,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         HUAHUAIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 605,
		Superfluid:        true,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         NCTIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 971,
		Superfluid:        false,
	},
	{
		QuoteAsset:        OSMO,
		BaseAsset:         GRAVIBCDenom,
		SpreadFactor:      osmomath.MustNewDecFromStr("0.002"),
		LinkedClassicPool: 625,
		Superfluid:        false,
	},
}
View Source
var Upgrade = upgrades.Upgrade{
	UpgradeName:          UpgradeName,
	CreateUpgradeHandler: CreateUpgradeHandler,
	StoreUpgrades: store.StoreUpgrades{
		Added:   []string{},
		Deleted: []string{},
	},
}

Functions

Types

type AssetPair

type AssetPair struct {
	BaseAsset         string
	QuoteAsset        string
	SpreadFactor      osmomath.Dec
	LinkedClassicPool uint64
	Superfluid        bool
}

func InitializeAssetPairs

func InitializeAssetPairs(ctx sdk.Context, keepers *keepers.AppKeepers) ([]AssetPair, error)

AssetPairs contract: all AssetPairs being initialized in this upgrade handler all have the same quote asset (OSMO).

func InitializeAssetPairsTestnet

func InitializeAssetPairsTestnet(ctx sdk.Context, keepers *keepers.AppKeepers) ([]AssetPair, error)

InitializeAssetPairsTestnet initializes the asset pairs for the testnet, which is every osmo paired gamm pool with exactly 2 tokens.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL