Interface IMotoswapPoolContract

This interface represents a motoswap pool contract. IMotoswapPoolContract

Contracts

interface IMotoswapPoolContract {
    address: BitcoinAddressLike;
    allowance(owner: BitcoinAddressLike, spender: BitcoinAddressLike): Promise<BaseContractProperty>;
    approve(spender: BitcoinAddressLike, value: bigint): Promise<BaseContractProperty>;
    balanceOf(address: BitcoinAddressLike): Promise<BaseContractProperty>;
    burn(to: string): Promise<BaseContractProperty>;
    decimals(): Promise<BaseContractProperty>;
    decodeEvent(event: NetEvent): OPNetEvent<{}>;
    decodeEvents(events: ContractEvents | NetEvent[]): OPNetEvent<{}>[];
    encodeCalldata(method: string, ...args: unknown[]): Buffer;
    getReserves(): Promise<BaseContractProperty>;
    isAddressOwner(address: BitcoinAddressLike): Promise<BaseContractProperty>;
    name(): Promise<BaseContractProperty>;
    owner(): Promise<BaseContractProperty>;
    price0CumulativeLast(): Promise<BaseContractProperty>;
    price1CumulativeLast(): Promise<BaseContractProperty>;
    setSender(sender: BitcoinAddressLike): void;
    swap(amount0Out: bigint, amount1Out: bigint, to: string, data: Uint8Array): Promise<BaseContractProperty>;
    symbol(): Promise<BaseContractProperty>;
    sync(): Promise<BaseContractProperty>;
    token0(): Promise<BaseContractProperty>;
    token1(): Promise<BaseContractProperty>;
    totalSupply(): Promise<BaseContractProperty>;
    transfer(to: BitcoinAddressLike, value: bigint): Promise<BaseContractProperty>;
    transferFrom(from: BitcoinAddressLike, to: BitcoinAddressLike, value: bigint): Promise<BaseContractProperty>;
}

Hierarchy

Properties

Methods