import { EncodeObject, GeneratedType } from "@shareledgerjs/signing"; import { DecCoin } from "@shareledgerjs/types/cosmos/base/v1beta1/coin"; import { TxEvent } from "@shareledgerjs/types/shareledger/swap/request"; import { MsgApproveIn, MsgApproveOut, MsgCancel, MsgCancelBatches, MsgCompleteBatch, MsgCreateSchema, MsgDeleteSchema, MsgDeposit, MsgReject, MsgRequestIn, MsgRequestOut, MsgUpdateSchema, MsgUpdateSwapFee, MsgWithdraw } from "@shareledgerjs/types/shareledger/swap/tx"; import Long from "long"; import { BaseClient } from "../../baseclient"; export declare function createSwapTypes(): ReadonlyArray<[string, GeneratedType]>; export declare function createSwapActions(): Record; export interface MsgRequestInEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgRequestIn"; readonly value: Partial; } export declare function isMsgRequestInEncodeObject(encodeObject: EncodeObject): encodeObject is MsgRequestInEncodeObject; export interface MsgRequestOutEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgRequestOut"; readonly value: Partial; } export declare function isMsgRequestOutEncodeObject(encodeObject: EncodeObject): encodeObject is MsgRequestOutEncodeObject; export interface MsgApproveInEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgApproveIn"; readonly value: Partial; } export declare function isMsgApproveInEncodeObject(encodeObject: EncodeObject): encodeObject is MsgApproveInEncodeObject; export interface MsgApproveOutEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgApproveOut"; readonly value: Partial; } export declare function isMsgApproveOutEncodeObject(encodeObject: EncodeObject): encodeObject is MsgApproveOutEncodeObject; export interface MsgCancelEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgCancel"; readonly value: Partial; } export declare function isMsgCancelEncodeObject(encodeObject: EncodeObject): encodeObject is MsgCancelEncodeObject; export interface MsgRejectEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgReject"; readonly value: Partial; } export declare function isMsgRejectEncodeObject(encodeObject: EncodeObject): encodeObject is MsgRejectEncodeObject; export interface MsgDepositEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgDeposit"; readonly value: Partial; } export declare function isMsgDepositEncodeObject(encodeObject: EncodeObject): encodeObject is MsgDepositEncodeObject; export interface MsgWithdrawEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgWithdraw"; readonly value: Partial; } export declare function isMsgWithdrawEncodeObject(encodeObject: EncodeObject): encodeObject is MsgWithdrawEncodeObject; export interface MsgCreateSchemaEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgCreateSchema"; readonly value: Partial; } export declare function isMsgCreateSchemaEncodeObject(encodeObject: EncodeObject): encodeObject is MsgCreateSchemaEncodeObject; export interface MsgUpdateSchemaEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgUpdateSchema"; readonly value: Partial; } export declare function isMsgUpdateSchemaEncodeObject(encodeObject: EncodeObject): encodeObject is MsgUpdateSchemaEncodeObject; export interface MsgDeleteSchemaEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgDeleteSchema"; readonly value: Partial; } export declare function isMsgDeleteSchemaEncodeObject(encodeObject: EncodeObject): encodeObject is MsgDeleteSchemaEncodeObject; export interface MsgCancelBatchesEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgCancelBatches"; readonly value: Partial; } export declare function isMsgCancelBatchesEncodeObject(encodeObject: EncodeObject): encodeObject is MsgCancelBatchesEncodeObject; export interface MsgCompleteBatchEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgCompleteBatch"; readonly value: Partial; } export declare function isMsgCompleteBatchEncodeObject(encodeObject: EncodeObject): encodeObject is MsgCompleteBatchEncodeObject; export interface MsgUpdateSwapFeeEncodeObject extends EncodeObject { readonly typeUrl: "/shareledger.swap.MsgUpdateSwapFee"; readonly value: Partial; } export declare function isMsgUpdateSwapFeeEncodeObject(encodeObject: EncodeObject): encodeObject is MsgUpdateSwapFeeEncodeObject; export interface SwapTxExtensionMethods { requestSwapIn(creator: string, srcAddress: string, destAddress: string, network: string, amount: DecCoin, events: TxEvent[]): MsgRequestInEncodeObject; requestSwapOut(creator: string, srcAddress: string, destAddress: string, network: string, amount: DecCoin): MsgRequestOutEncodeObject; approveSwapIn(creator: string, ids: Long[]): MsgApproveInEncodeObject; approveSwapOut(creator: string, ids: Long[], signature: string): MsgApproveOutEncodeObject; deposit(creator: string, amount: DecCoin): MsgDepositEncodeObject; withdraw(creator: string, to: string, amount: DecCoin): MsgWithdrawEncodeObject; cancelSwap(creator: string, ids: Long[]): MsgCancelEncodeObject; rejectSwap(creator: string, ids: Long[]): MsgRejectEncodeObject; createSchema(creator: string, network: string, schema: string, decimals: number, fee?: { in?: DecCoin; out?: DecCoin; }): MsgCreateSchemaEncodeObject; updateSchema(creator: string, network: string, schema: string, decimals: number, fee?: { in?: DecCoin; out?: DecCoin; }): MsgUpdateSchemaEncodeObject; deleteSchema(creator: string, network: string): MsgDeleteSchemaEncodeObject; cancelBatches(creator: string, ids: Long[]): MsgCancelBatchesEncodeObject; completeBatch(batchId: Long, creator: string): MsgCompleteBatchEncodeObject; updateSwapFee(creator: string, network: string, fee?: { in?: DecCoin; out?: DecCoin; }): MsgUpdateSwapFeeEncodeObject; } export interface SwapTxExtension { readonly swap: SwapTxExtensionMethods; } export declare function SwapTxExtension(constructor: T): T;