State
// GenesisState defines the exchange module's genesis state.
type GenesisState struct {
// params defines all the parameters of related to exchange.
Params Params
// accounts is an array containing the genesis trade pairs
SpotMarkets []*SpotMarket
// accounts is an array containing the genesis derivative markets
DerivativeMarkets []*DerivativeMarket
// spot_orderbook defines the spot exchange limit orderbook active at genesis.
SpotOrderbook []SpotOrderBook
// derivative_orderbook defines the derivative exchange limit orderbook active at genesis.
DerivativeOrderbook []DerivativeOrderBook
// balances defines the exchange users balances active at genesis.
Balances []Balance
// positions defines the exchange derivative positions at genesis
Positions []DerivativePosition
// subaccount_trade_nonces defines the subaccount trade nonces for the subaccounts at genesis
SubaccountTradeNonces []SubaccountNonce
// expiry_futures_market_info defines the market info for the expiry futures markets at genesis
ExpiryFuturesMarketInfoState []ExpiryFuturesMarketInfoState
// perpetual_market_info defines the market info for the perpetual derivative markets at genesis
PerpetualMarketInfo []PerpetualMarketInfo
// perpetual_market_funding_state defines the funding state for the perpetual derivative markets at genesis
PerpetualMarketFundingState []PerpetualMarketFundingState
// derivative_market_settlement_scheduled defines the scheduled markets for settlement at genesis
DerivativeMarketSettlementScheduled []DerivativeMarketSettlementInfo
// sets spot markets as enabled
IsSpotExchangeEnabled bool
// sets derivative markets as enabled
IsDerivativesExchangeEnabled bool
// the current trading reward campaign info
TradingRewardCampaignInfo *TradingRewardCampaignInfo
// the current and upcoming trading reward campaign pools
TradingRewardPoolCampaignSchedule []*CampaignRewardPool
// the current and upcoming trading reward account points
TradingRewardCampaignAccountPoints []*TradingRewardCampaignAccountPoints
// the current and upcoming trading reward campaign pending pools
PendingTradingRewardPoolCampaignSchedule []*CampaignRewardPool
// the pending trading reward account points
PendingTradingRewardCampaignAccountPoints []*TradingRewardCampaignAccountPendingPoints
// the fee discount schedule
FeeDiscountSchedule *FeeDiscountSchedule
// the cached fee discount account tiers with TTL
FeeDiscountAccountTierTtl []*FeeDiscountAccountTierTTL
// the fee discount paid by accounts in all buckets
FeeDiscountBucketFeesPaidAccounts []*FeeDiscountBucketFeesPaidAccounts
// sets the first fee cycle as finished
IsFirstFeeCycleFinished bool
}Params
Balance
SubaccountNonce
Order
SpotMarket
SpotOrderBook
DerivativeMarket
DerivativeOrderBook
DerivativePosition
ExpiryFuturesMarketInfo
PerpetualMarketInfo
PerpetualMarketFunding
Trading Rewards
CampaignRewardPool
TradingRewardCampaignInfo
FeeDiscountProposal
DerivativeMarketSettlementInfo
TradeLog
Enums
GrantAuthorization
ActiveGrant
EffectiveGrant
Last updated
