interface Erc20 {
    [internal]: any;
    allowance: TypedContractMethod<[owner: AddressLike, spender: AddressLike], [bigint], "view">;
    approve: TypedContractMethod<[spender: AddressLike, value: BigNumberish], [boolean], "nonpayable">;
    balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
    burn: TypedContractMethod<[value: BigNumberish], [void], "nonpayable">;
    decimals: TypedContractMethod<[], [bigint], "view">;
    decreaseAllowance: TypedContractMethod<[spender: AddressLike, subtractedValue: BigNumberish], [boolean], "nonpayable">;
    fallback: null | WrappedFallback;
    filters: {
        Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
        Approval(address,address,uint256): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
        Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
        Transfer(address,address,uint256): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
    };
    increaseAllowance: TypedContractMethod<[spender: AddressLike, addedValue: BigNumberish], [boolean], "nonpayable">;
    interface: Erc20Interface;
    name: TypedContractMethod<[], [string], "view">;
    runner: null | ContractRunner;
    symbol: TypedContractMethod<[], [string], "view">;
    target: string | Addressable;
    totalSupply: TypedContractMethod<[], [bigint], "view">;
    transfer: TypedContractMethod<[recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    transferFrom: TypedContractMethod<[sender: AddressLike, recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    addListener(event, listener): Promise<Erc20>;
    attach(target): BaseContract;
    connect(runner?): Erc20;
    deploymentTransaction(): null | ContractTransactionResponse;
    emit(event, ...args): Promise<boolean>;
    getAddress(): Promise<string>;
    getDeployedCode(): Promise<null | string>;
    getEvent(key): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
    getEvent(key): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
    getFunction<T>(key): T;
    getFunction(nameOrSignature): TypedContractMethod<[owner: AddressLike, spender: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[spender: AddressLike, value: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[account: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[value: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[spender: AddressLike, subtractedValue: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[spender: AddressLike, addedValue: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[sender: AddressLike, recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    listenerCount(event?): Promise<number>;
    listeners<TCEvent>(event): Promise<TypedListener<TCEvent>[]>;
    listeners(eventName?): Promise<Listener[]>;
    off(event, listener?): Promise<Erc20>;
    on<TCEvent>(event, listener): Promise<Erc20>;
    on<TCEvent>(filter, listener): Promise<Erc20>;
    once<TCEvent>(event, listener): Promise<Erc20>;
    once<TCEvent>(filter, listener): Promise<Erc20>;
    queryFilter<TCEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryFilter<TCEvent>(filter, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryTransaction(hash): Promise<EventLog[]>;
    removeAllListeners<TCEvent>(event?): Promise<Erc20>;
    removeListener(event, listener): Promise<Erc20>;
    waitForDeployment(): Promise<Erc20>;
}

Hierarchy

  • BaseContract
    • Erc20

Properties

[internal]: any

@_ignore:

allowance: TypedContractMethod<[owner: AddressLike, spender: AddressLike], [bigint], "view">
approve: TypedContractMethod<[spender: AddressLike, value: BigNumberish], [boolean], "nonpayable">
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">
burn: TypedContractMethod<[value: BigNumberish], [void], "nonpayable">
decimals: TypedContractMethod<[], [bigint], "view">
decreaseAllowance: TypedContractMethod<[spender: AddressLike, subtractedValue: BigNumberish], [boolean], "nonpayable">
fallback: null | WrappedFallback

The fallback or receive function if any.

increaseAllowance: TypedContractMethod<[spender: AddressLike, addedValue: BigNumberish], [boolean], "nonpayable">
interface: Erc20Interface
name: TypedContractMethod<[], [string], "view">
runner: null | ContractRunner

The connected runner. This is generally a [[Provider]] or a [[Signer]], which dictates what operations are supported.

For example, a Contract connected to a [[Provider]] may only execute read-only operations.

symbol: TypedContractMethod<[], [string], "view">
target: string | Addressable

The target to connect to.

This can be an address, ENS name or any [[Addressable]], such as another contract. To get the resovled address, use the getAddress method.

totalSupply: TypedContractMethod<[], [bigint], "view">
transfer: TypedContractMethod<[recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable">
transferFrom: TypedContractMethod<[sender: AddressLike, recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable">

Methods

  • Alias for [on].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<Erc20>

  • Return a new Contract instance with the same ABI and runner, but a different %%target%%.

    Parameters

    • target: string | Addressable

    Returns BaseContract

  • Return the transaction used to deploy this contract.

    This is only available if this instance was returned from a [[ContractFactory]].

    Returns null | ContractTransactionResponse

  • Emit an %%event%% calling all listeners with %%args%%.

    Resolves to true if any listeners were called.

    Parameters

    • event: ContractEventName
    • Rest ...args: any[]

    Returns Promise<boolean>

  • Return the resolved address of this Contract.

    Returns Promise<string>

  • Return the deployed bytecode or null if no bytecode is found.

    Returns Promise<null | string>

  • Resolves to the number of listeners of %%event%% or the total number of listeners if unspecified.

    Parameters

    • Optional event: ContractEventName

    Returns Promise<number>

  • Remove the %%listener%% from the listeners for %%event%% or remove all listeners if unspecified.

    Parameters

    • event: ContractEventName
    • Optional listener: Listener

    Returns Promise<Erc20>

  • @_ignore:

    Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Alias for [off].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<Erc20>