v0_11

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "dex"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DEXOperator

type DEXOperator struct {
	Address            sdk.AccAddress `json:"address"`
	HandlingFeeAddress sdk.AccAddress `json:"handling_fee_address"`
	Website            string         `json:"website"`
	InitHeight         int64          `json:"init_height"`
	TxHash             string         `json:"tx_hash"`
}

OperatorAddress sdk.ValAddress `json:"operator_address" yaml:"operator_address"`

type DEXOperators

type DEXOperators []DEXOperator

nolint

type GenesisState

type GenesisState struct {
	Params         Params               `json:"params"`
	TokenPairs     []*v0_10.TokenPair   `json:"token_pairs"`
	WithdrawInfos  v0_10.WithdrawInfos  `json:"withdraw_infos"`
	ProductLocks   v0_10.ProductLockMap `json:"product_locks"`
	Operators      DEXOperators         `json:"operators"`
	MaxTokenPairID uint64               `json:"max_token_pair_id" yaml:"max_token_pair_id"`
}

GenesisState - all dex state that must be provided at genesis

func Migrate

func Migrate(oldGenState v0_10.GenesisState) GenesisState

type Params

type Params struct {
	ListFee              sdk.DecCoin `json:"list_fee"`
	TransferOwnershipFee sdk.DecCoin `json:"transfer_ownership_fee"`
	RegisterOperatorFee  sdk.DecCoin `json:"register_operator_fee"`

	//  maximum period for okt holders to deposit on a dex delist proposal
	DelistMaxDepositPeriod time.Duration `json:"delist_max_deposit_period"`
	//  minimum deposit for a critical dex delist proposal to enter voting period
	DelistMinDeposit sdk.DecCoins `json:"delist_min_deposit"`
	//  length of the critical voting period for dex delist proposal
	DelistVotingPeriod time.Duration `json:"delist_voting_period"`

	WithdrawPeriod time.Duration `json:"withdraw_period"`
}

Params defines param object

Jump to

Keyboard shortcuts

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