import { BinaryReader, BinaryWriter } from "../../binary"; import { JsonSafe } from "../../json-safe"; export declare enum Position { UNSPECIFIED = 0, LONG = 1, SHORT = 2, UNRECOGNIZED = -1 } export declare const PositionSDKType: typeof Position; export declare const PositionAmino: typeof Position; export declare function positionFromJSON(object: any): Position; export declare function positionToJSON(object: Position): string; export interface MTP { address: string; collateralAsset: string; tradingAsset: string; liabilitiesAsset: string; custodyAsset: string; collateral: string; liabilities: string; borrowInterestPaidCustody: string; borrowInterestUnpaidLiability: string; custody: string; takeProfitLiabilities: string; takeProfitCustody: string; mtpHealth: string; position: Position; id: bigint; ammPoolId: bigint; takeProfitPrice: string; takeProfitBorrowFactor: string; fundingFeePaidCustody: string; fundingFeeReceivedCustody: string; openPrice: string; stopLossPrice: string; lastInterestCalcTime: bigint; lastInterestCalcBlock: bigint; lastFundingCalcTime: bigint; lastFundingCalcBlock: bigint; } export interface MTPProtoMsg { typeUrl: "/elys.perpetual.MTP"; value: Uint8Array; } /** * @name MTPAmino * @package elys.perpetual * @see proto type: elys.perpetual.MTP */ export interface MTPAmino { address?: string; collateral_asset?: string; trading_asset?: string; liabilities_asset?: string; custody_asset?: string; collateral?: string; liabilities?: string; borrow_interest_paid_custody?: string; borrow_interest_unpaid_liability?: string; custody?: string; take_profit_liabilities?: string; take_profit_custody?: string; mtp_health?: string; position?: Position; id?: string; amm_pool_id?: string; take_profit_price?: string; take_profit_borrow_factor?: string; funding_fee_paid_custody?: string; funding_fee_received_custody?: string; open_price?: string; stop_loss_price?: string; last_interest_calc_time?: string; last_interest_calc_block?: string; last_funding_calc_time?: string; last_funding_calc_block?: string; } export interface MTPAminoMsg { type: "/elys.perpetual.MTP"; value: MTPAmino; } export interface MTPSDKType { address: string; collateral_asset: string; trading_asset: string; liabilities_asset: string; custody_asset: string; collateral: string; liabilities: string; borrow_interest_paid_custody: string; borrow_interest_unpaid_liability: string; custody: string; take_profit_liabilities: string; take_profit_custody: string; mtp_health: string; position: Position; id: bigint; amm_pool_id: bigint; take_profit_price: string; take_profit_borrow_factor: string; funding_fee_paid_custody: string; funding_fee_received_custody: string; open_price: string; stop_loss_price: string; last_interest_calc_time: bigint; last_interest_calc_block: bigint; last_funding_calc_time: bigint; last_funding_calc_block: bigint; } export interface InterestBlock { interestRate: string; blockHeight: bigint; blockTime: bigint; } export interface InterestBlockProtoMsg { typeUrl: "/elys.perpetual.InterestBlock"; value: Uint8Array; } /** * @name InterestBlockAmino * @package elys.perpetual * @see proto type: elys.perpetual.InterestBlock */ export interface InterestBlockAmino { interest_rate?: string; block_height?: string; block_time?: string; } export interface InterestBlockAminoMsg { type: "/elys.perpetual.InterestBlock"; value: InterestBlockAmino; } export interface InterestBlockSDKType { interest_rate: string; block_height: bigint; block_time: bigint; } export interface FundingRateBlock { fundingRateLong: string; fundingRateShort: string; fundingShareShort: string; fundingShareLong: string; blockHeight: bigint; blockTime: bigint; } export interface FundingRateBlockProtoMsg { typeUrl: "/elys.perpetual.FundingRateBlock"; value: Uint8Array; } /** * @name FundingRateBlockAmino * @package elys.perpetual * @see proto type: elys.perpetual.FundingRateBlock */ export interface FundingRateBlockAmino { funding_rate_long?: string; funding_rate_short?: string; funding_share_short?: string; funding_share_long?: string; block_height?: string; block_time?: string; } export interface FundingRateBlockAminoMsg { type: "/elys.perpetual.FundingRateBlock"; value: FundingRateBlockAmino; } export interface FundingRateBlockSDKType { funding_rate_long: string; funding_rate_short: string; funding_share_short: string; funding_share_long: string; block_height: bigint; block_time: bigint; } export interface WhiteList { validatorList: string[]; } export interface WhiteListProtoMsg { typeUrl: "/elys.perpetual.WhiteList"; value: Uint8Array; } /** * @name WhiteListAmino * @package elys.perpetual * @see proto type: elys.perpetual.WhiteList */ export interface WhiteListAmino { validator_list?: string[]; } export interface WhiteListAminoMsg { type: "/elys.perpetual.WhiteList"; value: WhiteListAmino; } export interface WhiteListSDKType { validator_list: string[]; } export interface PositionRequest { address: string; id: bigint; } export interface PositionRequestProtoMsg { typeUrl: "/elys.perpetual.PositionRequest"; value: Uint8Array; } /** * @name PositionRequestAmino * @package elys.perpetual * @see proto type: elys.perpetual.PositionRequest */ export interface PositionRequestAmino { address?: string; id?: string; } export interface PositionRequestAminoMsg { type: "/elys.perpetual.PositionRequest"; value: PositionRequestAmino; } export interface PositionRequestSDKType { address: string; id: bigint; } export declare const MTP: { typeUrl: string; is(o: any): o is MTP; isSDK(o: any): o is MTPSDKType; isAmino(o: any): o is MTPAmino; encode(message: MTP, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MTP; fromJSON(object: any): MTP; toJSON(message: MTP): JsonSafe; fromPartial(object: Partial): MTP; fromAmino(object: MTPAmino): MTP; toAmino(message: MTP): MTPAmino; fromAminoMsg(object: MTPAminoMsg): MTP; fromProtoMsg(message: MTPProtoMsg): MTP; toProto(message: MTP): Uint8Array; toProtoMsg(message: MTP): MTPProtoMsg; }; export declare const InterestBlock: { typeUrl: string; is(o: any): o is InterestBlock; isSDK(o: any): o is InterestBlockSDKType; isAmino(o: any): o is InterestBlockAmino; encode(message: InterestBlock, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): InterestBlock; fromJSON(object: any): InterestBlock; toJSON(message: InterestBlock): JsonSafe; fromPartial(object: Partial): InterestBlock; fromAmino(object: InterestBlockAmino): InterestBlock; toAmino(message: InterestBlock): InterestBlockAmino; fromAminoMsg(object: InterestBlockAminoMsg): InterestBlock; fromProtoMsg(message: InterestBlockProtoMsg): InterestBlock; toProto(message: InterestBlock): Uint8Array; toProtoMsg(message: InterestBlock): InterestBlockProtoMsg; }; export declare const FundingRateBlock: { typeUrl: string; is(o: any): o is FundingRateBlock; isSDK(o: any): o is FundingRateBlockSDKType; isAmino(o: any): o is FundingRateBlockAmino; encode(message: FundingRateBlock, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): FundingRateBlock; fromJSON(object: any): FundingRateBlock; toJSON(message: FundingRateBlock): JsonSafe; fromPartial(object: Partial): FundingRateBlock; fromAmino(object: FundingRateBlockAmino): FundingRateBlock; toAmino(message: FundingRateBlock): FundingRateBlockAmino; fromAminoMsg(object: FundingRateBlockAminoMsg): FundingRateBlock; fromProtoMsg(message: FundingRateBlockProtoMsg): FundingRateBlock; toProto(message: FundingRateBlock): Uint8Array; toProtoMsg(message: FundingRateBlock): FundingRateBlockProtoMsg; }; export declare const WhiteList: { typeUrl: string; is(o: any): o is WhiteList; isSDK(o: any): o is WhiteListSDKType; isAmino(o: any): o is WhiteListAmino; encode(message: WhiteList, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): WhiteList; fromJSON(object: any): WhiteList; toJSON(message: WhiteList): JsonSafe; fromPartial(object: Partial): WhiteList; fromAmino(object: WhiteListAmino): WhiteList; toAmino(message: WhiteList): WhiteListAmino; fromAminoMsg(object: WhiteListAminoMsg): WhiteList; fromProtoMsg(message: WhiteListProtoMsg): WhiteList; toProto(message: WhiteList): Uint8Array; toProtoMsg(message: WhiteList): WhiteListProtoMsg; }; export declare const PositionRequest: { typeUrl: string; is(o: any): o is PositionRequest; isSDK(o: any): o is PositionRequestSDKType; isAmino(o: any): o is PositionRequestAmino; encode(message: PositionRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PositionRequest; fromJSON(object: any): PositionRequest; toJSON(message: PositionRequest): JsonSafe; fromPartial(object: Partial): PositionRequest; fromAmino(object: PositionRequestAmino): PositionRequest; toAmino(message: PositionRequest): PositionRequestAmino; fromAminoMsg(object: PositionRequestAminoMsg): PositionRequest; fromProtoMsg(message: PositionRequestProtoMsg): PositionRequest; toProto(message: PositionRequest): Uint8Array; toProtoMsg(message: PositionRequest): PositionRequestProtoMsg; };