import _m0 from "protobufjs/minimal.js"; import { ActiveGrant, AggregateSubaccountVolumeRecord, Balance, CampaignRewardPool, DenomDecimals, DenomMinNotional, DerivativePosition, FeeDiscountSchedule, FeeDiscountTierTTL, GrantAuthorization, Params, SubaccountTradeNonce, TradeRecords, TradingRewardCampaignInfo } from "./exchange"; import { BinaryOptionsMarket, DerivativeMarket, DerivativeMarketSettlementInfo, ExpiryFuturesMarketInfoState, MarketFeeMultiplier, MarketVolume, PerpetualMarketFundingState, PerpetualMarketInfo, SpotMarket } from "./market"; import { ConditionalDerivativeOrderBook, DerivativeOrderBook, SpotOrderBook } from "./orderbook"; export declare const protobufPackage = "injective.exchange.v2"; /** GenesisState defines the exchange module's genesis state. */ export interface GenesisState { /** params defines all the parameters of related to exchange. */ params: Params | undefined; /** spot_markets is an array containing the genesis trade pairs */ spotMarkets: SpotMarket[]; /** derivative_markets 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: boolean; /** sets derivative markets as enabled */ isDerivativesExchangeEnabled: boolean; /** the current trading reward campaign info */ tradingRewardCampaignInfo: TradingRewardCampaignInfo | undefined; /** the current and upcoming trading reward campaign pools */ tradingRewardPoolCampaignSchedule: CampaignRewardPool[]; /** the current trading reward account points */ tradingRewardCampaignAccountPoints: TradingRewardCampaignAccountPoints[]; /** the fee discount schedule */ feeDiscountSchedule: FeeDiscountSchedule | undefined; /** the cached fee discount account tiers with TTL */ feeDiscountAccountTierTtl: FeeDiscountAccountTierTTL[]; /** the fee discount paid by accounts in all buckets */ feeDiscountBucketVolumeAccounts: FeeDiscountBucketVolumeAccounts[]; /** sets the first fee cycle as finished */ isFirstFeeCycleFinished: boolean; /** the current and upcoming trading reward campaign pending pools */ pendingTradingRewardPoolCampaignSchedule: CampaignRewardPool[]; /** the pending trading reward account points */ pendingTradingRewardCampaignAccountPoints: TradingRewardCampaignAccountPendingPoints[]; /** the addresses opting out of trading rewards */ rewardsOptOutAddresses: string[]; historicalTradeRecords: TradeRecords[]; /** * binary_options_markets is an array containing the genesis binary options * markets */ binaryOptionsMarkets: BinaryOptionsMarket[]; /** * binary_options_markets_scheduled_for_settlement contains the marketIDs of * binary options markets scheduled for next-block settlement */ binaryOptionsMarketIdsScheduledForSettlement: string[]; /** * spot_market_ids_scheduled_to_force_close defines the scheduled markets for * forced closings at genesis */ spotMarketIdsScheduledToForceClose: string[]; /** denom_decimals defines the denom decimals for the exchange. */ denomDecimals: DenomDecimals[]; /** * conditional_derivative_orderbook contains conditional orderbooks for all * markets (both lmit and market conditional orders) */ conditionalDerivativeOrderbooks: ConditionalDerivativeOrderBook[]; /** * market_fee_multipliers contains any non-default atomic order fee * multipliers */ marketFeeMultipliers: MarketFeeMultiplier[]; orderbookSequences: OrderbookSequence[]; subaccountVolumes: AggregateSubaccountVolumeRecord[]; marketVolumes: MarketVolume[]; grantAuthorizations: FullGrantAuthorizations[]; activeGrants: FullActiveGrant[]; denomMinNotionals: DenomMinNotional[]; } export interface OrderbookSequence { sequence: string; marketId: string; } export interface FeeDiscountAccountTierTTL { account: string; tierTtl: FeeDiscountTierTTL | undefined; } export interface FeeDiscountBucketVolumeAccounts { bucketStartTimestamp: string; accountVolume: AccountVolume[]; } export interface AccountVolume { account: string; volume: string; } export interface TradingRewardCampaignAccountPoints { account: string; points: string; } export interface TradingRewardCampaignAccountPendingPoints { rewardPoolStartTimestamp: string; accountPoints: TradingRewardCampaignAccountPoints[]; } export interface SubaccountNonce { /** the subaccount ID */ subaccountId: string; /** the subaccount trade nonce */ subaccountTradeNonce: SubaccountTradeNonce | undefined; } export interface FullGrantAuthorizations { granter: string; totalGrantAmount: string; lastDelegationsCheckedTime: string; grants: GrantAuthorization[]; } export interface FullActiveGrant { grantee: string; activeGrant: ActiveGrant | undefined; } export declare const GenesisState: { encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): unknown; create(base?: DeepPartial): GenesisState; fromPartial(object: DeepPartial): GenesisState; }; export declare const OrderbookSequence: { encode(message: OrderbookSequence, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderbookSequence; fromJSON(object: any): OrderbookSequence; toJSON(message: OrderbookSequence): unknown; create(base?: DeepPartial): OrderbookSequence; fromPartial(object: DeepPartial): OrderbookSequence; }; export declare const FeeDiscountAccountTierTTL: { encode(message: FeeDiscountAccountTierTTL, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FeeDiscountAccountTierTTL; fromJSON(object: any): FeeDiscountAccountTierTTL; toJSON(message: FeeDiscountAccountTierTTL): unknown; create(base?: DeepPartial): FeeDiscountAccountTierTTL; fromPartial(object: DeepPartial): FeeDiscountAccountTierTTL; }; export declare const FeeDiscountBucketVolumeAccounts: { encode(message: FeeDiscountBucketVolumeAccounts, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FeeDiscountBucketVolumeAccounts; fromJSON(object: any): FeeDiscountBucketVolumeAccounts; toJSON(message: FeeDiscountBucketVolumeAccounts): unknown; create(base?: DeepPartial): FeeDiscountBucketVolumeAccounts; fromPartial(object: DeepPartial): FeeDiscountBucketVolumeAccounts; }; export declare const AccountVolume: { encode(message: AccountVolume, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AccountVolume; fromJSON(object: any): AccountVolume; toJSON(message: AccountVolume): unknown; create(base?: DeepPartial): AccountVolume; fromPartial(object: DeepPartial): AccountVolume; }; export declare const TradingRewardCampaignAccountPoints: { encode(message: TradingRewardCampaignAccountPoints, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TradingRewardCampaignAccountPoints; fromJSON(object: any): TradingRewardCampaignAccountPoints; toJSON(message: TradingRewardCampaignAccountPoints): unknown; create(base?: DeepPartial): TradingRewardCampaignAccountPoints; fromPartial(object: DeepPartial): TradingRewardCampaignAccountPoints; }; export declare const TradingRewardCampaignAccountPendingPoints: { encode(message: TradingRewardCampaignAccountPendingPoints, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TradingRewardCampaignAccountPendingPoints; fromJSON(object: any): TradingRewardCampaignAccountPendingPoints; toJSON(message: TradingRewardCampaignAccountPendingPoints): unknown; create(base?: DeepPartial): TradingRewardCampaignAccountPendingPoints; fromPartial(object: DeepPartial): TradingRewardCampaignAccountPendingPoints; }; export declare const SubaccountNonce: { encode(message: SubaccountNonce, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SubaccountNonce; fromJSON(object: any): SubaccountNonce; toJSON(message: SubaccountNonce): unknown; create(base?: DeepPartial): SubaccountNonce; fromPartial(object: DeepPartial): SubaccountNonce; }; export declare const FullGrantAuthorizations: { encode(message: FullGrantAuthorizations, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FullGrantAuthorizations; fromJSON(object: any): FullGrantAuthorizations; toJSON(message: FullGrantAuthorizations): unknown; create(base?: DeepPartial): FullGrantAuthorizations; fromPartial(object: DeepPartial): FullGrantAuthorizations; }; export declare const FullActiveGrant: { encode(message: FullActiveGrant, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FullActiveGrant; fromJSON(object: any): FullActiveGrant; toJSON(message: FullActiveGrant): unknown; create(base?: DeepPartial): FullActiveGrant; fromPartial(object: DeepPartial): FullActiveGrant; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};