Class OldERC721Wrapper

Hierarchy

Constructors

Methods

  • Parameters

    • __namedParameters: {
          tokenId: bigint;
      }
      • tokenId: bigint

    Returns Promise<{
        txHash: `0x${string}`;
        waitMined: (() => Promise<TransactionReceipt>);
    }>

  • Parameters

    • tokenId: bigint

    Returns Promise<{
        txHash: `0x${string}`;
        waitMined: (() => Promise<TransactionReceipt>);
    }>

Properties

abi: readonly [{
    type: "constructor";
    inputs: readonly [{
        name: "name";
        internalType: "string";
        type: "string";
    }, {
        name: "symbol";
        internalType: "string";
        type: "string";
    }, {
        name: "_wrapped";
        internalType: "address";
        type: "address";
    }];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "spender";
        internalType: "address";
        type: "address";
    }, {
        name: "id";
        internalType: "uint256";
        type: "uint256";
    }];
    name: "approve";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "owner";
        internalType: "address";
        type: "address";
    }];
    name: "balanceOf";
    outputs: readonly [{
        name: "";
        internalType: "uint256";
        type: "uint256";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [{
        name: "";
        internalType: "uint256";
        type: "uint256";
    }];
    name: "getApproved";
    outputs: readonly [{
        name: "";
        internalType: "address";
        type: "address";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [{
        name: "";
        internalType: "address";
        type: "address";
    }, {
        name: "";
        internalType: "address";
        type: "address";
    }];
    name: "isApprovedForAll";
    outputs: readonly [{
        name: "";
        internalType: "bool";
        type: "bool";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [];
    name: "name";
    outputs: readonly [{
        name: "";
        internalType: "string";
        type: "string";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [{
        name: "id";
        internalType: "uint256";
        type: "uint256";
    }];
    name: "ownerOf";
    outputs: readonly [{
        name: "owner";
        internalType: "address";
        type: "address";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [{
        name: "from";
        internalType: "address";
        type: "address";
    }, {
        name: "to";
        internalType: "address";
        type: "address";
    }, {
        name: "id";
        internalType: "uint256";
        type: "uint256";
    }];
    name: "safeTransferFrom";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "from";
        internalType: "address";
        type: "address";
    }, {
        name: "to";
        internalType: "address";
        type: "address";
    }, {
        name: "id";
        internalType: "uint256";
        type: "uint256";
    }, {
        name: "data";
        internalType: "bytes";
        type: "bytes";
    }];
    name: "safeTransferFrom";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "operator";
        internalType: "address";
        type: "address";
    }, {
        name: "approved";
        internalType: "bool";
        type: "bool";
    }];
    name: "setApprovalForAll";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "user";
        internalType: "address";
        type: "address";
    }];
    name: "stashAddress";
    outputs: readonly [{
        name: "";
        internalType: "address";
        type: "address";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [];
    name: "stashFactory";
    outputs: readonly [{
        name: "";
        internalType: "contract Stash";
        type: "address";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [{
        name: "interfaceId";
        internalType: "bytes4";
        type: "bytes4";
    }];
    name: "supportsInterface";
    outputs: readonly [{
        name: "";
        internalType: "bool";
        type: "bool";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [];
    name: "symbol";
    outputs: readonly [{
        name: "";
        internalType: "string";
        type: "string";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [{
        name: "tokenId";
        internalType: "uint256";
        type: "uint256";
    }];
    name: "tokenURI";
    outputs: readonly [{
        name: "";
        internalType: "string";
        type: "string";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [{
        name: "owner";
        internalType: "address";
        type: "address";
    }];
    name: "tokensOfOwner";
    outputs: readonly [{
        name: "";
        internalType: "uint256[]";
        type: "uint256[]";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [];
    name: "totalSupply";
    outputs: readonly [{
        name: "";
        internalType: "uint256";
        type: "uint256";
    }];
    stateMutability: "view";
}, {
    type: "function";
    inputs: readonly [{
        name: "from";
        internalType: "address";
        type: "address";
    }, {
        name: "to";
        internalType: "address";
        type: "address";
    }, {
        name: "id";
        internalType: "uint256";
        type: "uint256";
    }];
    name: "transferFrom";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "tokenId";
        internalType: "uint256";
        type: "uint256";
    }];
    name: "unwrap";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "tokenIndexes";
        internalType: "uint256[]";
        type: "uint256[]";
    }];
    name: "unwrapBatch";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "tokenId";
        internalType: "uint256";
        type: "uint256";
    }];
    name: "wrap";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [{
        name: "tokenIndexes";
        internalType: "uint256[]";
        type: "uint256[]";
    }];
    name: "wrapBatch";
    outputs: readonly [];
    stateMutability: "nonpayable";
}, {
    type: "function";
    inputs: readonly [];
    name: "wrapped";
    outputs: readonly [{
        name: "";
        internalType: "contract IOldERC721";
        type: "address";
    }];
    stateMutability: "view";
}, {
    type: "event";
    anonymous: false;
    inputs: readonly [{
        name: "owner";
        internalType: "address";
        type: "address";
        indexed: true;
    }, {
        name: "spender";
        internalType: "address";
        type: "address";
        indexed: true;
    }, {
        name: "id";
        internalType: "uint256";
        type: "uint256";
        indexed: true;
    }];
    name: "Approval";
}, {
    type: "event";
    anonymous: false;
    inputs: readonly [{
        name: "owner";
        internalType: "address";
        type: "address";
        indexed: true;
    }, {
        name: "operator";
        internalType: "address";
        type: "address";
        indexed: true;
    }, {
        name: "approved";
        internalType: "bool";
        type: "bool";
        indexed: false;
    }];
    name: "ApprovalForAll";
}, {
    type: "event";
    anonymous: false;
    inputs: readonly [{
        name: "from";
        internalType: "address";
        type: "address";
        indexed: true;
    }, {
        name: "to";
        internalType: "address";
        type: "address";
        indexed: true;
    }, {
        name: "id";
        internalType: "uint256";
        type: "uint256";
        indexed: true;
    }];
    name: "Transfer";
}]
address: `0x${string}`
bcClient: {}

Type declaration

    wallet: {}

    Type declaration

      contract: GetContractReturnType<readonly [{
          type: "constructor";
          inputs: readonly [{
              name: "name";
              internalType: "string";
              type: "string";
          }, {
              name: "symbol";
              internalType: "string";
              type: "string";
          }, {
              name: "_wrapped";
              internalType: "address";
              type: "address";
          }];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "spender";
              internalType: "address";
              type: "address";
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "approve";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
          }];
          name: "balanceOf";
          outputs: readonly [{
              name: "";
              internalType: "uint256";
              type: "uint256";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "getApproved";
          outputs: readonly [{
              name: "";
              internalType: "address";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "";
              internalType: "address";
              type: "address";
          }, {
              name: "";
              internalType: "address";
              type: "address";
          }];
          name: "isApprovedForAll";
          outputs: readonly [{
              name: "";
              internalType: "bool";
              type: "bool";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [];
          name: "name";
          outputs: readonly [{
              name: "";
              internalType: "string";
              type: "string";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "ownerOf";
          outputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "from";
              internalType: "address";
              type: "address";
          }, {
              name: "to";
              internalType: "address";
              type: "address";
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "safeTransferFrom";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "from";
              internalType: "address";
              type: "address";
          }, {
              name: "to";
              internalType: "address";
              type: "address";
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }, {
              name: "data";
              internalType: "bytes";
              type: "bytes";
          }];
          name: "safeTransferFrom";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "operator";
              internalType: "address";
              type: "address";
          }, {
              name: "approved";
              internalType: "bool";
              type: "bool";
          }];
          name: "setApprovalForAll";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "user";
              internalType: "address";
              type: "address";
          }];
          name: "stashAddress";
          outputs: readonly [{
              name: "";
              internalType: "address";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [];
          name: "stashFactory";
          outputs: readonly [{
              name: "";
              internalType: "contract Stash";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "interfaceId";
              internalType: "bytes4";
              type: "bytes4";
          }];
          name: "supportsInterface";
          outputs: readonly [{
              name: "";
              internalType: "bool";
              type: "bool";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [];
          name: "symbol";
          outputs: readonly [{
              name: "";
              internalType: "string";
              type: "string";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenId";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "tokenURI";
          outputs: readonly [{
              name: "";
              internalType: "string";
              type: "string";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
          }];
          name: "tokensOfOwner";
          outputs: readonly [{
              name: "";
              internalType: "uint256[]";
              type: "uint256[]";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [];
          name: "totalSupply";
          outputs: readonly [{
              name: "";
              internalType: "uint256";
              type: "uint256";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "from";
              internalType: "address";
              type: "address";
          }, {
              name: "to";
              internalType: "address";
              type: "address";
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "transferFrom";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenId";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "unwrap";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenIndexes";
              internalType: "uint256[]";
              type: "uint256[]";
          }];
          name: "unwrapBatch";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenId";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "wrap";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenIndexes";
              internalType: "uint256[]";
              type: "uint256[]";
          }];
          name: "wrapBatch";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [];
          name: "wrapped";
          outputs: readonly [{
              name: "";
              internalType: "contract IOldERC721";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "event";
          anonymous: false;
          inputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "spender";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
              indexed: true;
          }];
          name: "Approval";
      }, {
          type: "event";
          anonymous: false;
          inputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "operator";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "approved";
              internalType: "bool";
              type: "bool";
              indexed: false;
          }];
          name: "ApprovalForAll";
      }, {
          type: "event";
          anonymous: false;
          inputs: readonly [{
              name: "from";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "to";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
              indexed: true;
          }];
          name: "Transfer";
      }], {} | {}>
      safeContractWrite: {
          approve: ((args, options?) => Promise<`0x${string}`>);
          transferFrom: ((args, options?) => Promise<`0x${string}`>);
          safeTransferFrom: ((args, options?) => Promise<`0x${string}`>);
          setApprovalForAll: ((args, options?) => Promise<`0x${string}`>);
          unwrap: ((args, options?) => Promise<`0x${string}`>);
          unwrapBatch: ((args, options?) => Promise<`0x${string}`>);
          wrap: ((args, options?) => Promise<`0x${string}`>);
          wrapBatch: ((args, options?) => Promise<`0x${string}`>);
      }

      Type declaration

      • approve: ((args, options?) => Promise<`0x${string}`>)
          • (args, options?): Promise<`0x${string}`>
          • Parameters

            • args: readonly [`0x${string}`, bigint]
            • Optional options: {
                  value?: bigint;
              }
              • Optional value?: bigint

            Returns Promise<`0x${string}`>

      • transferFrom: ((args, options?) => Promise<`0x${string}`>)
          • (args, options?): Promise<`0x${string}`>
          • Parameters

            • args: readonly [`0x${string}`, `0x${string}`, bigint]
            • Optional options: {
                  value?: bigint;
              }
              • Optional value?: bigint

            Returns Promise<`0x${string}`>

      • safeTransferFrom: ((args, options?) => Promise<`0x${string}`>)
          • (args, options?): Promise<`0x${string}`>
          • Parameters

            • args: (undefined | readonly [`0x${string}`, `0x${string}`, bigint] | readonly [`0x${string}`, `0x${string}`, bigint, `0x${string}`]) & Widen<readonly [`0x${string}`, `0x${string}`, bigint] | readonly [`0x${string}`, `0x${string}`, bigint, `0x${string}`]>
            • Optional options: {
                  value?: bigint;
              }
              • Optional value?: bigint

            Returns Promise<`0x${string}`>

      • setApprovalForAll: ((args, options?) => Promise<`0x${string}`>)
          • (args, options?): Promise<`0x${string}`>
          • Parameters

            • args: readonly [`0x${string}`, Widen<boolean>] | readonly [`0x${string}`, boolean] & readonly [`0x${string}`, Widen<boolean>]
            • Optional options: {
                  value?: bigint;
              }
              • Optional value?: bigint

            Returns Promise<`0x${string}`>

      • unwrap: ((args, options?) => Promise<`0x${string}`>)
          • (args, options?): Promise<`0x${string}`>
          • Parameters

            • args: readonly [bigint]
            • Optional options: {
                  value?: bigint;
              }
              • Optional value?: bigint

            Returns Promise<`0x${string}`>

      • unwrapBatch: ((args, options?) => Promise<`0x${string}`>)
          • (args, options?): Promise<`0x${string}`>
          • Parameters

            • args: readonly [readonly bigint[]] | readonly [readonly bigint[]] & readonly [readonly bigint[]]
            • Optional options: {
                  value?: bigint;
              }
              • Optional value?: bigint

            Returns Promise<`0x${string}`>

      • wrap: ((args, options?) => Promise<`0x${string}`>)
          • (args, options?): Promise<`0x${string}`>
          • Parameters

            • args: readonly [bigint]
            • Optional options: {
                  value?: bigint;
              }
              • Optional value?: bigint

            Returns Promise<`0x${string}`>

      • wrapBatch: ((args, options?) => Promise<`0x${string}`>)
          • (args, options?): Promise<`0x${string}`>
          • Parameters

            • args: readonly [readonly bigint[]] | readonly [readonly bigint[]] & readonly [readonly bigint[]]
            • Optional options: {
                  value?: bigint;
              }
              • Optional value?: bigint

            Returns Promise<`0x${string}`>

      parseEventLogs: (<TFunctionName>(eventName, logs) => ParseEventLogsReturnType<readonly [{
          type: "constructor";
          inputs: readonly [{
              name: "name";
              internalType: "string";
              type: "string";
          }, {
              name: "symbol";
              internalType: "string";
              type: "string";
          }, {
              name: "_wrapped";
              internalType: "address";
              type: "address";
          }];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "spender";
              internalType: "address";
              type: "address";
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "approve";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
          }];
          name: "balanceOf";
          outputs: readonly [{
              name: "";
              internalType: "uint256";
              type: "uint256";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "getApproved";
          outputs: readonly [{
              name: "";
              internalType: "address";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "";
              internalType: "address";
              type: "address";
          }, {
              name: "";
              internalType: "address";
              type: "address";
          }];
          name: "isApprovedForAll";
          outputs: readonly [{
              name: "";
              internalType: "bool";
              type: "bool";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [];
          name: "name";
          outputs: readonly [{
              name: "";
              internalType: "string";
              type: "string";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "ownerOf";
          outputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "from";
              internalType: "address";
              type: "address";
          }, {
              name: "to";
              internalType: "address";
              type: "address";
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "safeTransferFrom";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "from";
              internalType: "address";
              type: "address";
          }, {
              name: "to";
              internalType: "address";
              type: "address";
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }, {
              name: "data";
              internalType: "bytes";
              type: "bytes";
          }];
          name: "safeTransferFrom";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "operator";
              internalType: "address";
              type: "address";
          }, {
              name: "approved";
              internalType: "bool";
              type: "bool";
          }];
          name: "setApprovalForAll";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "user";
              internalType: "address";
              type: "address";
          }];
          name: "stashAddress";
          outputs: readonly [{
              name: "";
              internalType: "address";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [];
          name: "stashFactory";
          outputs: readonly [{
              name: "";
              internalType: "contract Stash";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "interfaceId";
              internalType: "bytes4";
              type: "bytes4";
          }];
          name: "supportsInterface";
          outputs: readonly [{
              name: "";
              internalType: "bool";
              type: "bool";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [];
          name: "symbol";
          outputs: readonly [{
              name: "";
              internalType: "string";
              type: "string";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenId";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "tokenURI";
          outputs: readonly [{
              name: "";
              internalType: "string";
              type: "string";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
          }];
          name: "tokensOfOwner";
          outputs: readonly [{
              name: "";
              internalType: "uint256[]";
              type: "uint256[]";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [];
          name: "totalSupply";
          outputs: readonly [{
              name: "";
              internalType: "uint256";
              type: "uint256";
          }];
          stateMutability: "view";
      }, {
          type: "function";
          inputs: readonly [{
              name: "from";
              internalType: "address";
              type: "address";
          }, {
              name: "to";
              internalType: "address";
              type: "address";
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "transferFrom";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenId";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "unwrap";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenIndexes";
              internalType: "uint256[]";
              type: "uint256[]";
          }];
          name: "unwrapBatch";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenId";
              internalType: "uint256";
              type: "uint256";
          }];
          name: "wrap";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [{
              name: "tokenIndexes";
              internalType: "uint256[]";
              type: "uint256[]";
          }];
          name: "wrapBatch";
          outputs: readonly [];
          stateMutability: "nonpayable";
      }, {
          type: "function";
          inputs: readonly [];
          name: "wrapped";
          outputs: readonly [{
              name: "";
              internalType: "contract IOldERC721";
              type: "address";
          }];
          stateMutability: "view";
      }, {
          type: "event";
          anonymous: false;
          inputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "spender";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
              indexed: true;
          }];
          name: "Approval";
      }, {
          type: "event";
          anonymous: false;
          inputs: readonly [{
              name: "owner";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "operator";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "approved";
              internalType: "bool";
              type: "bool";
              indexed: false;
          }];
          name: "ApprovalForAll";
      }, {
          type: "event";
          anonymous: false;
          inputs: readonly [{
              name: "from";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "to";
              internalType: "address";
              type: "address";
              indexed: true;
          }, {
              name: "id";
              internalType: "uint256";
              type: "uint256";
              indexed: true;
          }];
          name: "Transfer";
      }], TFunctionName, true, TFunctionName extends ("Approval" | "Transfer" | "ApprovalForAll")[]
          ? TFunctionName[number]
          : TFunctionName>)

      Type declaration

        • <TFunctionName>(eventName, logs): ParseEventLogsReturnType<readonly [{
              type: "constructor";
              inputs: readonly [{
                  name: "name";
                  internalType: "string";
                  type: "string";
              }, {
                  name: "symbol";
                  internalType: "string";
                  type: "string";
              }, {
                  name: "_wrapped";
                  internalType: "address";
                  type: "address";
              }];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "spender";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "approve";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
              }];
              name: "balanceOf";
              outputs: readonly [{
                  name: "";
                  internalType: "uint256";
                  type: "uint256";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "getApproved";
              outputs: readonly [{
                  name: "";
                  internalType: "address";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "";
                  internalType: "address";
                  type: "address";
              }];
              name: "isApprovedForAll";
              outputs: readonly [{
                  name: "";
                  internalType: "bool";
                  type: "bool";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [];
              name: "name";
              outputs: readonly [{
                  name: "";
                  internalType: "string";
                  type: "string";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "ownerOf";
              outputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "from";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "to";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "safeTransferFrom";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "from";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "to";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }, {
                  name: "data";
                  internalType: "bytes";
                  type: "bytes";
              }];
              name: "safeTransferFrom";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "operator";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "approved";
                  internalType: "bool";
                  type: "bool";
              }];
              name: "setApprovalForAll";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "user";
                  internalType: "address";
                  type: "address";
              }];
              name: "stashAddress";
              outputs: readonly [{
                  name: "";
                  internalType: "address";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [];
              name: "stashFactory";
              outputs: readonly [{
                  name: "";
                  internalType: "contract Stash";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "interfaceId";
                  internalType: "bytes4";
                  type: "bytes4";
              }];
              name: "supportsInterface";
              outputs: readonly [{
                  name: "";
                  internalType: "bool";
                  type: "bool";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [];
              name: "symbol";
              outputs: readonly [{
                  name: "";
                  internalType: "string";
                  type: "string";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenId";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "tokenURI";
              outputs: readonly [{
                  name: "";
                  internalType: "string";
                  type: "string";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
              }];
              name: "tokensOfOwner";
              outputs: readonly [{
                  name: "";
                  internalType: "uint256[]";
                  type: "uint256[]";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [];
              name: "totalSupply";
              outputs: readonly [{
                  name: "";
                  internalType: "uint256";
                  type: "uint256";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "from";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "to";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "transferFrom";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenId";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "unwrap";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenIndexes";
                  internalType: "uint256[]";
                  type: "uint256[]";
              }];
              name: "unwrapBatch";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenId";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "wrap";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenIndexes";
                  internalType: "uint256[]";
                  type: "uint256[]";
              }];
              name: "wrapBatch";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [];
              name: "wrapped";
              outputs: readonly [{
                  name: "";
                  internalType: "contract IOldERC721";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "event";
              anonymous: false;
              inputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "spender";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
                  indexed: true;
              }];
              name: "Approval";
          }, {
              type: "event";
              anonymous: false;
              inputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "operator";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "approved";
                  internalType: "bool";
                  type: "bool";
                  indexed: false;
              }];
              name: "ApprovalForAll";
          }, {
              type: "event";
              anonymous: false;
              inputs: readonly [{
                  name: "from";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "to";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
                  indexed: true;
              }];
              name: "Transfer";
          }], TFunctionName, true, TFunctionName extends ("Approval" | "Transfer" | "ApprovalForAll")[]
              ? TFunctionName[number]
              : TFunctionName>
        • Type Parameters

          • TFunctionName extends "Approval" | "Transfer" | "ApprovalForAll"

          Parameters

          • eventName: TFunctionName
          • logs: Log<bigint, number, false>[]

          Returns ParseEventLogsReturnType<readonly [{
              type: "constructor";
              inputs: readonly [{
                  name: "name";
                  internalType: "string";
                  type: "string";
              }, {
                  name: "symbol";
                  internalType: "string";
                  type: "string";
              }, {
                  name: "_wrapped";
                  internalType: "address";
                  type: "address";
              }];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "spender";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "approve";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
              }];
              name: "balanceOf";
              outputs: readonly [{
                  name: "";
                  internalType: "uint256";
                  type: "uint256";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "getApproved";
              outputs: readonly [{
                  name: "";
                  internalType: "address";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "";
                  internalType: "address";
                  type: "address";
              }];
              name: "isApprovedForAll";
              outputs: readonly [{
                  name: "";
                  internalType: "bool";
                  type: "bool";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [];
              name: "name";
              outputs: readonly [{
                  name: "";
                  internalType: "string";
                  type: "string";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "ownerOf";
              outputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "from";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "to";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "safeTransferFrom";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "from";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "to";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }, {
                  name: "data";
                  internalType: "bytes";
                  type: "bytes";
              }];
              name: "safeTransferFrom";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "operator";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "approved";
                  internalType: "bool";
                  type: "bool";
              }];
              name: "setApprovalForAll";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "user";
                  internalType: "address";
                  type: "address";
              }];
              name: "stashAddress";
              outputs: readonly [{
                  name: "";
                  internalType: "address";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [];
              name: "stashFactory";
              outputs: readonly [{
                  name: "";
                  internalType: "contract Stash";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "interfaceId";
                  internalType: "bytes4";
                  type: "bytes4";
              }];
              name: "supportsInterface";
              outputs: readonly [{
                  name: "";
                  internalType: "bool";
                  type: "bool";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [];
              name: "symbol";
              outputs: readonly [{
                  name: "";
                  internalType: "string";
                  type: "string";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenId";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "tokenURI";
              outputs: readonly [{
                  name: "";
                  internalType: "string";
                  type: "string";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
              }];
              name: "tokensOfOwner";
              outputs: readonly [{
                  name: "";
                  internalType: "uint256[]";
                  type: "uint256[]";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [];
              name: "totalSupply";
              outputs: readonly [{
                  name: "";
                  internalType: "uint256";
                  type: "uint256";
              }];
              stateMutability: "view";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "from";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "to";
                  internalType: "address";
                  type: "address";
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "transferFrom";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenId";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "unwrap";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenIndexes";
                  internalType: "uint256[]";
                  type: "uint256[]";
              }];
              name: "unwrapBatch";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenId";
                  internalType: "uint256";
                  type: "uint256";
              }];
              name: "wrap";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [{
                  name: "tokenIndexes";
                  internalType: "uint256[]";
                  type: "uint256[]";
              }];
              name: "wrapBatch";
              outputs: readonly [];
              stateMutability: "nonpayable";
          }, {
              type: "function";
              inputs: readonly [];
              name: "wrapped";
              outputs: readonly [{
                  name: "";
                  internalType: "contract IOldERC721";
                  type: "address";
              }];
              stateMutability: "view";
          }, {
              type: "event";
              anonymous: false;
              inputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "spender";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
                  indexed: true;
              }];
              name: "Approval";
          }, {
              type: "event";
              anonymous: false;
              inputs: readonly [{
                  name: "owner";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "operator";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "approved";
                  internalType: "bool";
                  type: "bool";
                  indexed: false;
              }];
              name: "ApprovalForAll";
          }, {
              type: "event";
              anonymous: false;
              inputs: readonly [{
                  name: "from";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "to";
                  internalType: "address";
                  type: "address";
                  indexed: true;
              }, {
                  name: "id";
                  internalType: "uint256";
                  type: "uint256";
                  indexed: true;
              }];
              name: "Transfer";
          }], TFunctionName, true, TFunctionName extends ("Approval" | "Transfer" | "ApprovalForAll")[]
              ? TFunctionName[number]
              : TFunctionName>