Variable userVaultAbiConst
userVaultAbi: readonly [{
type: "constructor";
inputs: readonly [{
name: "currencyManager";
internalType: "address";
type: "address";
}, {
name: "collectionManager";
internalType: "address";
type: "address";
}];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_token";
internalType: "address";
type: "address";
}, {
name: "_tokenId";
internalType: "uint256";
type: "uint256";
}];
name: "ERC1155BalanceOf";
outputs: readonly [{
name: "";
internalType: "uint256";
type: "uint256";
}];
stateMutability: "view";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_token";
internalType: "address";
type: "address";
}];
name: "ERC20BalanceOf";
outputs: readonly [{
name: "";
internalType: "uint256";
type: "uint256";
}];
stateMutability: "view";
}, {
type: "function";
inputs: readonly [{
name: "_collection";
internalType: "address";
type: "address";
}, {
name: "_tokenId";
internalType: "uint256";
type: "uint256";
}];
name: "ERC721OwnerOf";
outputs: readonly [{
name: "";
internalType: "uint256";
type: "uint256";
}];
stateMutability: "view";
}, {
type: "function";
inputs: readonly [];
name: "ETH";
outputs: readonly [{
name: "";
internalType: "address";
type: "address";
}];
stateMutability: "view";
}, {
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: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_assetRecipient";
internalType: "address";
type: "address";
}];
name: "burn";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_collections";
internalType: "address[]";
type: "address[]";
}, {
name: "_tokenIds";
internalType: "uint256[]";
type: "uint256[]";
}, {
name: "_tokens";
internalType: "address[]";
type: "address[]";
}, {
name: "_erc1155Tokens";
internalType: "address[]";
type: "address[]";
}, {
name: "_erc1155TokensIds";
internalType: "uint256[]";
type: "uint256[]";
}];
name: "burnAndWithdraw";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_token";
internalType: "address";
type: "address";
}, {
name: "_tokenId";
internalType: "uint256";
type: "uint256";
}, {
name: "_amount";
internalType: "uint256";
type: "uint256";
}];
name: "depositERC1155";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_collection";
internalType: "address";
type: "address";
}, {
name: "_tokenIds";
internalType: "uint256[]";
type: "uint256[]";
}, {
name: "_amounts";
internalType: "uint256[]";
type: "uint256[]";
}];
name: "depositERC1155s";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_token";
internalType: "address";
type: "address";
}, {
name: "_amount";
internalType: "uint256";
type: "uint256";
}];
name: "depositERC20";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_collection";
internalType: "address";
type: "address";
}, {
name: "_tokenId";
internalType: "uint256";
type: "uint256";
}];
name: "depositERC721";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_collection";
internalType: "address";
type: "address";
}, {
name: "_tokenIds";
internalType: "uint256[]";
type: "uint256[]";
}];
name: "depositERC721s";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}];
name: "depositEth";
outputs: readonly [];
stateMutability: "payable";
}, {
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: "mint";
outputs: readonly [{
name: "";
internalType: "uint256";
type: "uint256";
}];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [];
name: "name";
outputs: readonly [{
name: "";
internalType: "string";
type: "string";
}];
stateMutability: "view";
}, {
type: "function";
inputs: readonly [{
name: "";
internalType: "address";
type: "address";
}, {
name: "";
internalType: "address";
type: "address";
}, {
name: "";
internalType: "uint256[]";
type: "uint256[]";
}, {
name: "";
internalType: "uint256[]";
type: "uint256[]";
}, {
name: "";
internalType: "bytes";
type: "bytes";
}];
name: "onERC1155BatchReceived";
outputs: readonly [{
name: "";
internalType: "bytes4";
type: "bytes4";
}];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "";
internalType: "address";
type: "address";
}, {
name: "";
internalType: "address";
type: "address";
}, {
name: "";
internalType: "uint256";
type: "uint256";
}, {
name: "";
internalType: "uint256";
type: "uint256";
}, {
name: "";
internalType: "bytes";
type: "bytes";
}];
name: "onERC1155Received";
outputs: readonly [{
name: "";
internalType: "bytes4";
type: "bytes4";
}];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "";
internalType: "address";
type: "address";
}, {
name: "";
internalType: "address";
type: "address";
}, {
name: "";
internalType: "uint256";
type: "uint256";
}, {
name: "";
internalType: "bytes";
type: "bytes";
}];
name: "onERC721Received";
outputs: readonly [{
name: "";
internalType: "bytes4";
type: "bytes4";
}];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [];
name: "owner";
outputs: readonly [{
name: "";
internalType: "address";
type: "address";
}];
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: "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: "_vaultId";
internalType: "uint256";
type: "uint256";
}];
name: "tokenURI";
outputs: readonly [{
name: "";
internalType: "string";
type: "string";
}];
stateMutability: "pure";
}, {
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: "newOwner";
internalType: "address";
type: "address";
}];
name: "transferOwnership";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_token";
internalType: "address";
type: "address";
}, {
name: "_tokenId";
internalType: "uint256";
type: "uint256";
}];
name: "withdrawERC1155";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_tokens";
internalType: "address[]";
type: "address[]";
}, {
name: "_tokenIds";
internalType: "uint256[]";
type: "uint256[]";
}];
name: "withdrawERC1155s";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_token";
internalType: "address";
type: "address";
}];
name: "withdrawERC20";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_tokens";
internalType: "address[]";
type: "address[]";
}];
name: "withdrawERC20s";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_collection";
internalType: "address";
type: "address";
}, {
name: "_tokenId";
internalType: "uint256";
type: "uint256";
}];
name: "withdrawERC721";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}, {
name: "_collections";
internalType: "address[]";
type: "address[]";
}, {
name: "_tokenIds";
internalType: "uint256[]";
type: "uint256[]";
}];
name: "withdrawERC721s";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
type: "function";
inputs: readonly [{
name: "_vaultId";
internalType: "uint256";
type: "uint256";
}];
name: "withdrawEth";
outputs: readonly [];
stateMutability: "nonpayable";
}, {
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: "vaultId";
internalType: "uint256";
type: "uint256";
indexed: false;
}, {
name: "token";
internalType: "address";
type: "address";
indexed: false;
}, {
name: "tokenId";
internalType: "uint256";
type: "uint256";
indexed: false;
}, {
name: "amount";
internalType: "uint256";
type: "uint256";
indexed: false;
}];
name: "ERC1155Deposited";
}, {
type: "event";
anonymous: false;
inputs: readonly [{
name: "vaultId";
internalType: "uint256";
type: "uint256";
indexed: false;
}, {
name: "token";
internalType: "address";
type: "address";
indexed: false;
}, {
name: "tokenId";
internalType: "uint256";
type: "uint256";
indexed: false;
}, {
name: "amount";
internalType: "uint256";
type: "uint256";
indexed: false;
}];
name: "ERC1155Withdrawn";
}, {
type: "event";
anonymous: false;
inputs: readonly [{
name: "vaultId";
internalType: "uint256";
type: "uint256";
indexed: false;
}, {
name: "token";
internalType: "address";
type: "address";
indexed: false;
}, {
name: "amount";
internalType: "uint256";
type: "uint256";
indexed: false;
}];
name: "ERC20Deposited";
}, {
type: "event";
anonymous: false;
inputs: readonly [{
name: "vaultId";
internalType: "uint256";
type: "uint256";
indexed: false;
}, {
name: "token";
internalType: "address";
type: "address";
indexed: false;
}, {
name: "amount";
internalType: "uint256";
type: "uint256";
indexed: false;
}];
name: "ERC20Withdrawn";
}, {
type: "event";
anonymous: false;
inputs: readonly [{
name: "vaultId";
internalType: "uint256";
type: "uint256";
indexed: false;
}, {
name: "collection";
internalType: "address";
type: "address";
indexed: false;
}, {
name: "tokenId";
internalType: "uint256";
type: "uint256";
indexed: false;
}];
name: "ERC721Deposited";
}, {
type: "event";
anonymous: false;
inputs: readonly [{
name: "vaultId";
internalType: "uint256";
type: "uint256";
indexed: false;
}, {
name: "collection";
internalType: "address";
type: "address";
indexed: false;
}, {
name: "tokenId";
internalType: "uint256";
type: "uint256";
indexed: false;
}];
name: "ERC721Withdrawn";
}, {
type: "event";
anonymous: false;
inputs: readonly [{
name: "user";
internalType: "address";
type: "address";
indexed: true;
}, {
name: "newOwner";
internalType: "address";
type: "address";
indexed: true;
}];
name: "OwnershipTransferred";
}, {
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";
}, {
type: "error";
inputs: readonly [];
name: "AssetNotOwnedError";
}, {
type: "error";
inputs: readonly [];
name: "CollectionNotWhitelistedError";
}, {
type: "error";
inputs: readonly [];
name: "CurrencyNotWhitelistedError";
}, {
type: "error";
inputs: readonly [];
name: "InvalidCallerError";
}, {
type: "error";
inputs: readonly [];
name: "LengthMismatchError";
}, {
type: "error";
inputs: readonly [{
name: "vaultId";
internalType: "uint256";
type: "uint256";
}];
name: "NotApprovedError";
}, {
type: "error";
inputs: readonly [];
name: "VaultNotExistsError";
}, {
type: "error";
inputs: readonly [];
name: "WithdrawingETHError";
}, {
type: "error";
inputs: readonly [];
name: "WrongMethodError";
}] = ...