Interface IWBTCContract

This interface represents the WBTC contract. IWBTCContract

Contracts

interface IWBTCContract {
    address: BitcoinAddressLike;
    allowance(owner: BitcoinAddressLike, spender: BitcoinAddressLike): Promise<BaseContractProperty>;
    approve(spender: BitcoinAddressLike, value: bigint): Promise<BaseContractProperty>;
    balanceOf(address: BitcoinAddressLike): Promise<BaseContractProperty>;
    burn(to: BitcoinAddressLike, value: bigint): Promise<BaseContractProperty>;
    claim(): Promise<BaseContractProperties>;
    decimals(): Promise<BaseContractProperty>;
    decodeEvent(event: NetEvent): OPNetEvent<{}>;
    decodeEvents(events: ContractEvents | NetEvent[]): OPNetEvent<{}>[];
    encodeCalldata(method: string, ...args: unknown[]): Buffer;
    isAddressOwner(address: BitcoinAddressLike): Promise<BaseContractProperty>;
    mint(to: BitcoinAddressLike, value: bigint): Promise<BaseContractProperty>;
    name(): Promise<BaseContractProperty>;
    owner(): Promise<BaseContractProperty>;
    requestWithdrawal(amount: bigint): Promise<BaseContractProperty>;
    rewardPool(): Promise<BaseContractProperties>;
    setSender(sender: BitcoinAddressLike): void;
    stake(amount: bigint): Promise<BaseContractProperties>;
    stakedAmount(address: string): Promise<BaseContractProperties>;
    stakedReward(address: string): Promise<BaseContractProperties>;
    symbol(): Promise<BaseContractProperty>;
    totalStaked(): Promise<BaseContractProperties>;
    totalSupply(): Promise<BaseContractProperty>;
    transfer(to: BitcoinAddressLike, value: bigint): Promise<BaseContractProperty>;
    transferFrom(from: BitcoinAddressLike, to: BitcoinAddressLike, value: bigint): Promise<BaseContractProperty>;
    unstake(): Promise<BaseContractProperties>;
    withdrawableBalanceOf(address: string): Promise<BaseContractProperty>;
}

Hierarchy (view full)

Properties

Methods