migrations

package
v0.0.0-...-f42d900 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PriceTickSizeKey = "ticks"
View Source
const QuantityTickSizeKey = "quantityticks"
View Source
const RegisteredPairCount = "rpcnt"

Variables

Functions

func ClearStore

func ClearStore(ctx sdk.Context, storeKey sdk.StoreKey)

*

  • CAUTION: this function clears up the entire `dex` module store, so it should only ever
  • be used outside of a production setting.

func DataTypeUpdate

func DataTypeUpdate(ctx sdk.Context, storeKey sdk.StoreKey, cdc codec.BinaryCodec) error

*

  • No `dex` state exists in any public chain at the time this data type update happened.
  • Any new chain (including local ones) should be based on a Sei version newer than this update
  • and therefore doesn't need this migration

func PriceSnapshotUpdate

func PriceSnapshotUpdate(ctx sdk.Context, paramStore paramtypes.Subspace) error

func V10ToV11

func V10ToV11(ctx sdk.Context, dexkeeper keeper.Keeper) error

func V11ToV12

func V11ToV12(ctx sdk.Context, dexkeeper keeper.Keeper) error

func V12ToV13

func V12ToV13(ctx sdk.Context, dexkeeper keeper.Keeper) error

func V13ToV14

func V13ToV14(ctx sdk.Context, dexkeeper keeper.Keeper) error

func V14ToV15

func V14ToV15(ctx sdk.Context, dexkeeper keeper.Keeper) error

func V4ToV5

func V4ToV5(ctx sdk.Context, storeKey sdk.StoreKey, paramStore paramtypes.Subspace) error

*

  • No `dex` state exists in any public chain at the time this data type update happened.
  • Any new chain (including local ones) should be based on a Sei version newer than this update
  • and therefore doesn't need this migration

func V5ToV6

func V5ToV6(ctx sdk.Context, storeKey sdk.StoreKey, cdc codec.BinaryCodec) error

This migration updates contract info to match the new data format

func V6ToV7

func V6ToV7(ctx sdk.Context, storeKey sdk.StoreKey) error

func V7ToV8

func V7ToV8(ctx sdk.Context, storeKey sdk.StoreKey) error

func V8ToV9

func V8ToV9(ctx sdk.Context, dexkeeper keeper.Keeper) error

func V9ToV10

func V9ToV10(ctx sdk.Context, dexkeeper keeper.Keeper) error

This migration deprecates the tick size store keys and registered pair count store keys. It also refactors the registered pair store to use pair denoms for key construction instead of index based key construction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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