UNPKG

@fractional-company/common

Version:
494 lines (493 loc) 13.3 kB
[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "CreateFail", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "_controller", "type": "address" }, { "internalType": "address", "name": "_sender", "type": "address" } ], "name": "InvalidController", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "_sender", "type": "address" } ], "name": "UnregisteredVault", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_vault", "type": "address" }, { "indexed": true, "internalType": "address", "name": "_token", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "VaultDeployed", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "_from", "type": "address" }, { "internalType": "uint256", "name": "_value", "type": "uint256" } ], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" }, { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" } ], "internalType": "struct InitInfo[]", "name": "_calls", "type": "tuple[]" } ], "name": "create", "outputs": [ { "internalType": "address", "name": "vault", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" } ], "name": "create", "outputs": [ { "internalType": "address", "name": "vault", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" }, { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" } ], "internalType": "struct InitInfo[]", "name": "_calls", "type": "tuple[]" } ], "name": "createCollection", "outputs": [ { "internalType": "address", "name": "vault", "type": "address" }, { "internalType": "address", "name": "token", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" }, { "internalType": "address", "name": "_controller", "type": "address" }, { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" } ], "internalType": "struct InitInfo[]", "name": "_calls", "type": "tuple[]" } ], "name": "createCollectionFor", "outputs": [ { "internalType": "address", "name": "vault", "type": "address" }, { "internalType": "address", "name": "token", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" }, { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "createFor", "outputs": [ { "internalType": "address", "name": "vault", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" }, { "internalType": "address", "name": "_owner", "type": "address" }, { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" } ], "internalType": "struct InitInfo[]", "name": "_calls", "type": "tuple[]" } ], "name": "createFor", "outputs": [ { "internalType": "address", "name": "vault", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" }, { "internalType": "address", "name": "_token", "type": "address" }, { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" } ], "internalType": "struct InitInfo[]", "name": "_calls", "type": "tuple[]" } ], "name": "createInCollection", "outputs": [ { "internalType": "address", "name": "vault", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "factory", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_value", "type": "uint256" } ], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "nextId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "rae", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "raeImplementation", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_vault", "type": "address" } ], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_vault", "type": "address" } ], "name": "uri", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "vaultToToken", "outputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]