/** * This file was automatically generated by @oraichain/ts-codegen@0.35.9. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @oraichain/ts-codegen generate command to regenerate this file. */ import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate"; import { Coin, StdFee } from "@cosmjs/amino"; import { Uint128, Binary, Addr, AssetInfo } from "./types"; import { TokenInfo, ConfigResponse, ConvertInfoResponse } from "./OraiswapConverter.types"; export interface OraiswapConverterReadOnlyInterface { contractAddress: string; config: () => Promise; convertInfo: ({ assetInfo }: { assetInfo: AssetInfo; }) => Promise; } export declare class OraiswapConverterQueryClient implements OraiswapConverterReadOnlyInterface { client: CosmWasmClient; contractAddress: string; constructor(client: CosmWasmClient, contractAddress: string); config: () => Promise; convertInfo: ({ assetInfo }: { assetInfo: AssetInfo; }) => Promise; } export interface OraiswapConverterInterface extends OraiswapConverterReadOnlyInterface { contractAddress: string; sender: string; receive: ({ amount, msg, sender }: { amount: Uint128; msg: Binary; sender: string; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; updateConfig: ({ owner }: { owner: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; convert: (_fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; updatePair: ({ from, to }: { from: TokenInfo; to: TokenInfo; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; unregisterPair: ({ from }: { from: TokenInfo; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; convertReverse: ({ fromAsset }: { fromAsset: AssetInfo; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; withdrawTokens: ({ assetInfos }: { assetInfos: AssetInfo[]; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; } export declare class OraiswapConverterClient extends OraiswapConverterQueryClient implements OraiswapConverterInterface { client: SigningCosmWasmClient; sender: string; contractAddress: string; constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string); receive: ({ amount, msg, sender }: { amount: Uint128; msg: Binary; sender: string; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; updateConfig: ({ owner }: { owner: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; convert: (_fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; updatePair: ({ from, to }: { from: TokenInfo; to: TokenInfo; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; unregisterPair: ({ from }: { from: TokenInfo; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; convertReverse: ({ fromAsset }: { fromAsset: AssetInfo; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; withdrawTokens: ({ assetInfos }: { assetInfos: AssetInfo[]; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; }