Interface IMotoswapRouterContract

This interface represents the Motoswap router contract. IMotoswapRouterContract

Contracts

interface IMotoswapRouterContract {
    address: BitcoinAddressLike;
    addLiquidity(tokenA: string, tokenB: string, amountADesired: bigint, amountBDesired: bigint, amountAMin: bigint, amountBMin: bigint, to: string, deadline: bigint): Promise<BaseContractProperty>;
    decodeEvent(event: NetEvent): OPNetEvent<{}>;
    decodeEvents(events: ContractEvents | NetEvent[]): OPNetEvent<{}>[];
    encodeCalldata(method: string, ...args: unknown[]): Buffer;
    factory(): Promise<BaseContractProperty>;
    getAmountIn(amountOut: bigint, reserveIn: bigint, reserveOut: bigint): Promise<BaseContractProperty>;
    getAmountOut(amountIn: bigint, reserveIn: bigint, reserveOut: bigint): Promise<BaseContractProperty>;
    getAmountsIn(amountOut: bigint, path: string[]): Promise<BaseContractProperty>;
    getAmountsOut(amountIn: bigint, path: string[]): Promise<BaseContractProperty>;
    isAddressOwner(address: BitcoinAddressLike): Promise<BaseContractProperty>;
    owner(): Promise<BaseContractProperty>;
    quote(amountA: bigint, reserveA: bigint, reserveB: bigint): Promise<BaseContractProperty>;
    removeLiquidity(tokenA: string, tokenB: string, liquidity: bigint, amountAMin: bigint, amountBMin: bigint, to: string, deadline: bigint): Promise<BaseContractProperty>;
    setSender(sender: BitcoinAddressLike): void;
    swapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn: bigint, amountOutMin: bigint, path: string[], to: string, deadline: bigint): Promise<BaseContractProperty>;
    WBTC(): Promise<BaseContractProperty>;
}

Hierarchy (view full)

Properties

Methods