/** * 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 { Addr, Uint128, Binary, SwapOperation, AssetInfo } from "./types"; import { ConfigResponse, SimulateSwapOperationsResponse } from "./OraiswapRouter.types"; export interface OraiswapRouterReadOnlyInterface { contractAddress: string; config: () => Promise; simulateSwapOperations: ({ offerAmount, operations }: { offerAmount: Uint128; operations: SwapOperation[]; }) => Promise; } export declare class OraiswapRouterQueryClient implements OraiswapRouterReadOnlyInterface { client: CosmWasmClient; contractAddress: string; constructor(client: CosmWasmClient, contractAddress: string); config: () => Promise; simulateSwapOperations: ({ offerAmount, operations }: { offerAmount: Uint128; operations: SwapOperation[]; }) => Promise; } export interface OraiswapRouterInterface extends OraiswapRouterReadOnlyInterface { contractAddress: string; sender: string; receive: ({ amount, msg, sender }: { amount: Uint128; msg: Binary; sender: string; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; executeSwapOperations: ({ minimumReceive, operations, to }: { minimumReceive?: Uint128; operations: SwapOperation[]; to?: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; executeSwapOperation: ({ operation, sender, to }: { operation: SwapOperation; sender: Addr; to?: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; assertMinimumReceive: ({ assetInfo, minimumReceive, prevBalance, receiver }: { assetInfo: AssetInfo; minimumReceive: Uint128; prevBalance: Uint128; receiver: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; } export declare class OraiswapRouterClient extends OraiswapRouterQueryClient implements OraiswapRouterInterface { 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; executeSwapOperations: ({ minimumReceive, operations, to }: { minimumReceive?: Uint128; operations: SwapOperation[]; to?: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; executeSwapOperation: ({ operation, sender, to }: { operation: SwapOperation; sender: Addr; to?: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; assertMinimumReceive: ({ assetInfo, minimumReceive, prevBalance, receiver }: { assetInfo: AssetInfo; minimumReceive: Uint128; prevBalance: Uint128; receiver: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; }