Constructors

Properties

Methods

Constructors

Properties

abi: readonly [
    {
        constant: true;
        inputs: readonly [];
        name: "name";
        outputs: readonly [{ name: ""; type: "string" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: false;
        inputs: readonly [
            { name: "guy"; type: "address" },
            { name: "wad"; type: "uint256" },
        ];
        name: "approve";
        outputs: readonly [{ name: ""; type: "bool" }];
        payable: false;
        stateMutability: "nonpayable";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [];
        name: "totalSupply";
        outputs: readonly [{ name: ""; type: "uint256" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: false;
        inputs: readonly [
            { name: "src"; type: "address" },
            { name: "dst"; type: "address" },
            { name: "wad"; type: "uint256" },
        ];
        name: "transferFrom";
        outputs: readonly [{ name: ""; type: "bool" }];
        payable: false;
        stateMutability: "nonpayable";
        type: "function";
    },
    {
        constant: false;
        inputs: readonly [{ name: "wad"; type: "uint256" }];
        name: "withdraw";
        outputs: readonly [];
        payable: false;
        stateMutability: "nonpayable";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [];
        name: "decimals";
        outputs: readonly [{ name: ""; type: "uint8" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [{ name: ""; type: "address" }];
        name: "balanceOf";
        outputs: readonly [{ name: ""; type: "uint256" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [];
        name: "symbol";
        outputs: readonly [{ name: ""; type: "string" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: false;
        inputs: readonly [
            { name: "dst"; type: "address" },
            { name: "wad"; type: "uint256" },
        ];
        name: "transfer";
        outputs: readonly [{ name: ""; type: "bool" }];
        payable: false;
        stateMutability: "nonpayable";
        type: "function";
    },
    {
        constant: false;
        inputs: readonly [];
        name: "deposit";
        outputs: readonly [];
        payable: true;
        stateMutability: "payable";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [
            { name: ""; type: "address" },
            { name: ""; type: "address" },
        ];
        name: "allowance";
        outputs: readonly [{ name: ""; type: "uint256" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    { payable: true; stateMutability: "payable"; type: "fallback" },
    {
        anonymous: false;
        inputs: readonly [
            { indexed: true; name: "src"; type: "address" },
            { indexed: true; name: "guy"; type: "address" },
            { indexed: false; name: "wad"; type: "uint256" },
        ];
        name: "Approval";
        type: "event";
    },
    {
        anonymous: false;
        inputs: readonly [
            { indexed: true; name: "src"; type: "address" },
            { indexed: true; name: "dst"; type: "address" },
            { indexed: false; name: "wad"; type: "uint256" },
        ];
        name: "Transfer";
        type: "event";
    },
    {
        anonymous: false;
        inputs: readonly [
            { indexed: true; name: "dst"; type: "address" },
            { indexed: false; name: "wad"; type: "uint256" },
        ];
        name: "Deposit";
        type: "event";
    },
    {
        anonymous: false;
        inputs: readonly [
            { indexed: true; name: "src"; type: "address" },
            { indexed: false; name: "wad"; type: "uint256" },
        ];
        name: "Withdrawal";
        type: "event";
    },
] = _abi

Methods

  • Parameters

    • address: string
    • signerOrProvider: Provider | Signer

    Returns WETH9