/** * 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, Liquidity, Decimal, Asset, PoolKey, Route, Config, ProtocolFee } from "./Zapper.types"; export interface ZapperReadOnlyInterface { contractAddress: string; config: () => Promise; protocolFee: () => Promise; } export declare class ZapperQueryClient implements ZapperReadOnlyInterface { client: CosmWasmClient; contractAddress: string; constructor(client: CosmWasmClient, contractAddress: string); config: () => Promise; protocolFee: () => Promise; } export interface ZapperInterface extends ZapperReadOnlyInterface { contractAddress: string; sender: string; updateConfig: ({ admin, dexV3, mixedRouter }: { admin?: Addr; dexV3?: Addr; mixedRouter?: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; zapInLiquidity: ({ assetIn, minimumLiquidity, poolKey, routes, tickLowerIndex, tickUpperIndex }: { assetIn: Asset; minimumLiquidity?: Liquidity; poolKey: PoolKey; routes: Route[]; tickLowerIndex: number; tickUpperIndex: number; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; zapOutLiquidity: ({ positionIndex, routes }: { positionIndex: number; routes: Route[]; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; registerProtocolFee: ({ feeReceiver, percent }: { feeReceiver: Addr; percent: Decimal; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; } export declare class ZapperClient extends ZapperQueryClient implements ZapperInterface { client: SigningCosmWasmClient; sender: string; contractAddress: string; constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string); updateConfig: ({ admin, dexV3, mixedRouter }: { admin?: Addr; dexV3?: Addr; mixedRouter?: Addr; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; zapInLiquidity: ({ assetIn, minimumLiquidity, poolKey, routes, tickLowerIndex, tickUpperIndex }: { assetIn: Asset; minimumLiquidity?: Liquidity; poolKey: PoolKey; routes: Route[]; tickLowerIndex: number; tickUpperIndex: number; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; zapOutLiquidity: ({ positionIndex, routes }: { positionIndex: number; routes: Route[]; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; registerProtocolFee: ({ feeReceiver, percent }: { feeReceiver: Addr; percent: Decimal; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; }