diff --git a/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.abi.json b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.abi.json new file mode 100644 index 000000000..e7d4f0a51 --- /dev/null +++ b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.abi.json @@ -0,0 +1,36 @@ +[ + { + "type": "function", + "name": "onERC721Received", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "stateMutability": "nonpayable" + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.abi.ts b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.abi.ts new file mode 100644 index 000000000..bfd0dcbe9 --- /dev/null +++ b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.abi.ts @@ -0,0 +1,36 @@ +export default [ + { + "type": "function", + "name": "onERC721Received", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "stateMutability": "nonpayable" + } +] as const diff --git a/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.bin b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.json b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.json new file mode 100644 index 000000000..793a10dfb --- /dev/null +++ b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.json @@ -0,0 +1 @@ +{"abi":[{"type":"function","name":"onERC721Received","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"from","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"onERC721Received(address,address,uint256,bytes)":"150b7a02"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of ERC721 token receiver.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol\":\"ERC721A__IERC721ReceiverUpgradeable\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol\":{\"keccak256\":\"0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d\",\"dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"stateMutability":"nonpayable","type":"function","name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}]}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol":"ERC721A__IERC721ReceiverUpgradeable"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol":{"keccak256":"0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782","urls":["bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d","dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz"],"license":"MIT"}},"version":1},"id":153} \ No newline at end of file diff --git a/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.metadata.json b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.metadata.json new file mode 100644 index 000000000..69ce72895 --- /dev/null +++ b/packages/generated/dev/abis/ERC721A__IERC721ReceiverUpgradeable.metadata.json @@ -0,0 +1,90 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "onERC721Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ] + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/diamond/facets/token/ERC721A/IERC721A.sol": "ERC721A__IERC721ReceiverUpgradeable" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/diamond/facets/token/ERC721A/IERC721A.sol": { + "keccak256": "0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782", + "urls": [ + "bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d", + "dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/abis/IERC721A.abi.json b/packages/generated/dev/abis/IERC721A.abi.json new file mode 100644 index 000000000..aea9d541c --- /dev/null +++ b/packages/generated/dev/abis/IERC721A.abi.json @@ -0,0 +1,422 @@ +[ + { + "type": "function", + "name": "approve", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getApproved", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isApprovedForAll", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "ownerOf", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "safeTransferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "safeTransferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "setApprovalForAll", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "_approved", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "tokenURI", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ApprovalForAll", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ConsecutiveTransfer", + "inputs": [ + { + "name": "fromTokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "toTokenId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "ApprovalQueryForNonexistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "BalanceQueryForZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "MintERC2309QuantityExceedsLimit", + "inputs": [] + }, + { + "type": "error", + "name": "MintToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "MintZeroQuantity", + "inputs": [] + }, + { + "type": "error", + "name": "OwnerQueryForNonexistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "OwnershipNotInitializedForExtraData", + "inputs": [] + }, + { + "type": "error", + "name": "TransferCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "TransferFromIncorrectOwner", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToNonERC721ReceiverImplementer", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "URIQueryForNonexistentToken", + "inputs": [] + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/IERC721A.abi.ts b/packages/generated/dev/abis/IERC721A.abi.ts new file mode 100644 index 000000000..6b40d9b85 --- /dev/null +++ b/packages/generated/dev/abis/IERC721A.abi.ts @@ -0,0 +1,422 @@ +export default [ + { + "type": "function", + "name": "approve", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getApproved", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isApprovedForAll", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "ownerOf", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "safeTransferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "safeTransferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "setApprovalForAll", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "_approved", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "tokenURI", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ApprovalForAll", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ConsecutiveTransfer", + "inputs": [ + { + "name": "fromTokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "toTokenId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "ApprovalQueryForNonexistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "BalanceQueryForZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "MintERC2309QuantityExceedsLimit", + "inputs": [] + }, + { + "type": "error", + "name": "MintToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "MintZeroQuantity", + "inputs": [] + }, + { + "type": "error", + "name": "OwnerQueryForNonexistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "OwnershipNotInitializedForExtraData", + "inputs": [] + }, + { + "type": "error", + "name": "TransferCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "TransferFromIncorrectOwner", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToNonERC721ReceiverImplementer", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "URIQueryForNonexistentToken", + "inputs": [] + } +] as const diff --git a/packages/generated/dev/abis/IERC721A.bin b/packages/generated/dev/abis/IERC721A.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/IERC721A.json b/packages/generated/dev/abis/IERC721A.json new file mode 100644 index 000000000..0efe2741b --- /dev/null +++ b/packages/generated/dev/abis/IERC721A.json @@ -0,0 +1 @@ +{"abi":[{"type":"function","name":"approve","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"balanceOf","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"balance","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getApproved","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"operator","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isApprovedForAll","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"ownerOf","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"owner","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setApprovalForAll","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"_approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"tokenURI","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"transferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"event","name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"ConsecutiveTransfer","inputs":[{"name":"fromTokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"toTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"ApprovalCallerNotOwnerNorApproved","inputs":[]},{"type":"error","name":"ApprovalQueryForNonexistentToken","inputs":[]},{"type":"error","name":"BalanceQueryForZeroAddress","inputs":[]},{"type":"error","name":"MintERC2309QuantityExceedsLimit","inputs":[]},{"type":"error","name":"MintToZeroAddress","inputs":[]},{"type":"error","name":"MintZeroQuantity","inputs":[]},{"type":"error","name":"OwnerQueryForNonexistentToken","inputs":[]},{"type":"error","name":"OwnershipNotInitializedForExtraData","inputs":[]},{"type":"error","name":"TransferCallerNotOwnerNorApproved","inputs":[]},{"type":"error","name":"TransferFromIncorrectOwner","inputs":[]},{"type":"error","name":"TransferToNonERC721ReceiverImplementer","inputs":[]},{"type":"error","name":"TransferToZeroAddress","inputs":[]},{"type":"error","name":"URIQueryForNonexistentToken","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"approve(address,uint256)":"095ea7b3","balanceOf(address)":"70a08231","getApproved(uint256)":"081812fc","isApprovedForAll(address,address)":"e985e9c5","name()":"06fdde03","ownerOf(uint256)":"6352211e","safeTransferFrom(address,address,uint256)":"42842e0e","safeTransferFrom(address,address,uint256,bytes)":"b88d4fde","setApprovalForAll(address,bool)":"a22cb465","symbol()":"95d89b41","tokenURI(uint256)":"c87b56dd","totalSupply()":"18160ddd","transferFrom(address,address,uint256)":"23b872dd"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"ApprovalCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ApprovalQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BalanceQueryForZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintERC2309QuantityExceedsLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintZeroQuantity\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnerQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnershipNotInitializedForExtraData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFromIncorrectOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToNonERC721ReceiverImplementer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"URIQueryForNonexistentToken\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"fromTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"toTokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"ConsecutiveTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of ERC721A.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when `owner` enables `approved` to manage the `tokenId` token.\"},\"ApprovalForAll(address,address,bool)\":{\"details\":\"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\"},\"ConsecutiveTransfer(uint256,uint256,address,address)\":{\"details\":\"Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, as defined in the [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. See {_mintERC2309} for more details.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `tokenId` token is transferred from `from` to `to`.\"}},\"kind\":\"dev\",\"methods\":{\"approve(address,uint256)\":{\"details\":\"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the number of tokens in `owner`'s account.\"},\"getApproved(uint256)\":{\"details\":\"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist.\"},\"isApprovedForAll(address,address)\":{\"details\":\"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}.\"},\"name()\":{\"details\":\"Returns the token collection name.\"},\"ownerOf(uint256)\":{\"details\":\"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"Equivalent to `safeTransferFrom(from, to, tokenId, '')`.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event.\"},\"symbol()\":{\"details\":\"Returns the token collection symbol.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the Uniform Resource Identifier (URI) for `tokenId` token.\"},\"totalSupply()\":{\"details\":\"Returns the total number of tokens in existence. Burned tokens will reduce the count. To get the total number of tokens minted, please see {_totalMinted}.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Transfers `tokenId` from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.\"}},\"version\":1},\"userdoc\":{\"errors\":{\"ApprovalCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"ApprovalQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"BalanceQueryForZeroAddress()\":[{\"notice\":\"Cannot query the balance for the zero address.\"}],\"MintERC2309QuantityExceedsLimit()\":[{\"notice\":\"The `quantity` minted with ERC2309 exceeds the safety limit.\"}],\"MintToZeroAddress()\":[{\"notice\":\"Cannot mint to the zero address.\"}],\"MintZeroQuantity()\":[{\"notice\":\"The quantity of tokens minted must be more than zero.\"}],\"OwnerQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"OwnershipNotInitializedForExtraData()\":[{\"notice\":\"The `extraData` cannot be set on an unintialized ownership slot.\"}],\"TransferCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"TransferFromIncorrectOwner()\":[{\"notice\":\"The token must be owned by `from`.\"}],\"TransferToNonERC721ReceiverImplementer()\":[{\"notice\":\"Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.\"}],\"TransferToZeroAddress()\":[{\"notice\":\"Cannot transfer to the zero address.\"}],\"URIQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}]},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol\":\"IERC721A\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol\":{\"keccak256\":\"0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d\",\"dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"ApprovalCallerNotOwnerNorApproved"},{"inputs":[],"type":"error","name":"ApprovalQueryForNonexistentToken"},{"inputs":[],"type":"error","name":"BalanceQueryForZeroAddress"},{"inputs":[],"type":"error","name":"MintERC2309QuantityExceedsLimit"},{"inputs":[],"type":"error","name":"MintToZeroAddress"},{"inputs":[],"type":"error","name":"MintZeroQuantity"},{"inputs":[],"type":"error","name":"OwnerQueryForNonexistentToken"},{"inputs":[],"type":"error","name":"OwnershipNotInitializedForExtraData"},{"inputs":[],"type":"error","name":"TransferCallerNotOwnerNorApproved"},{"inputs":[],"type":"error","name":"TransferFromIncorrectOwner"},{"inputs":[],"type":"error","name":"TransferToNonERC721ReceiverImplementer"},{"inputs":[],"type":"error","name":"TransferToZeroAddress"},{"inputs":[],"type":"error","name":"URIQueryForNonexistentToken"},{"inputs":[{"internalType":"address","name":"owner","type":"address","indexed":true},{"internalType":"address","name":"approved","type":"address","indexed":true},{"internalType":"uint256","name":"tokenId","type":"uint256","indexed":true}],"type":"event","name":"Approval","anonymous":false},{"inputs":[{"internalType":"address","name":"owner","type":"address","indexed":true},{"internalType":"address","name":"operator","type":"address","indexed":true},{"internalType":"bool","name":"approved","type":"bool","indexed":false}],"type":"event","name":"ApprovalForAll","anonymous":false},{"inputs":[{"internalType":"uint256","name":"fromTokenId","type":"uint256","indexed":true},{"internalType":"uint256","name":"toTokenId","type":"uint256","indexed":false},{"internalType":"address","name":"from","type":"address","indexed":true},{"internalType":"address","name":"to","type":"address","indexed":true}],"type":"event","name":"ConsecutiveTransfer","anonymous":false},{"inputs":[{"internalType":"address","name":"from","type":"address","indexed":true},{"internalType":"address","name":"to","type":"address","indexed":true},{"internalType":"uint256","name":"tokenId","type":"uint256","indexed":true}],"type":"event","name":"Transfer","anonymous":false},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function","name":"approve"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function","name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}]},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function","name":"getApproved","outputs":[{"internalType":"address","name":"operator","type":"address"}]},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function","name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"name","outputs":[{"internalType":"string","name":"","type":"string"}]},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function","name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}]},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function","name":"safeTransferFrom"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"stateMutability":"payable","type":"function","name":"safeTransferFrom"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"stateMutability":"nonpayable","type":"function","name":"setApprovalForAll"},{"inputs":[],"stateMutability":"view","type":"function","name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}]},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function","name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function","name":"transferFrom"}],"devdoc":{"kind":"dev","methods":{"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the number of tokens in `owner`'s account."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}."},"name()":{"details":"Returns the token collection name."},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"safeTransferFrom(address,address,uint256)":{"details":"Equivalent to `safeTransferFrom(from, to, tokenId, '')`."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."},"symbol()":{"details":"Returns the token collection symbol."},"tokenURI(uint256)":{"details":"Returns the Uniform Resource Identifier (URI) for `tokenId` token."},"totalSupply()":{"details":"Returns the total number of tokens in existence. Burned tokens will reduce the count. To get the total number of tokens minted, please see {_totalMinted}."},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol":"IERC721A"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol":{"keccak256":"0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782","urls":["bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d","dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz"],"license":"MIT"}},"version":1},"id":153} \ No newline at end of file diff --git a/packages/generated/dev/abis/IERC721A.metadata.json b/packages/generated/dev/abis/IERC721A.metadata.json new file mode 100644 index 000000000..416b368b1 --- /dev/null +++ b/packages/generated/dev/abis/IERC721A.metadata.json @@ -0,0 +1,511 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [], + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved" + }, + { + "inputs": [], + "type": "error", + "name": "ApprovalQueryForNonexistentToken" + }, + { + "inputs": [], + "type": "error", + "name": "BalanceQueryForZeroAddress" + }, + { + "inputs": [], + "type": "error", + "name": "MintERC2309QuantityExceedsLimit" + }, + { + "inputs": [], + "type": "error", + "name": "MintToZeroAddress" + }, + { + "inputs": [], + "type": "error", + "name": "MintZeroQuantity" + }, + { + "inputs": [], + "type": "error", + "name": "OwnerQueryForNonexistentToken" + }, + { + "inputs": [], + "type": "error", + "name": "OwnershipNotInitializedForExtraData" + }, + { + "inputs": [], + "type": "error", + "name": "TransferCallerNotOwnerNorApproved" + }, + { + "inputs": [], + "type": "error", + "name": "TransferFromIncorrectOwner" + }, + { + "inputs": [], + "type": "error", + "name": "TransferToNonERC721ReceiverImplementer" + }, + { + "inputs": [], + "type": "error", + "name": "TransferToZeroAddress" + }, + { + "inputs": [], + "type": "error", + "name": "URIQueryForNonexistentToken" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "approved", + "type": "address", + "indexed": true + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256", + "indexed": true + } + ], + "type": "event", + "name": "Approval", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool", + "indexed": false + } + ], + "type": "event", + "name": "ApprovalForAll", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "fromTokenId", + "type": "uint256", + "indexed": true + }, + { + "internalType": "uint256", + "name": "toTokenId", + "type": "uint256", + "indexed": false + }, + { + "internalType": "address", + "name": "from", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "to", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "ConsecutiveTransfer", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "to", + "type": "address", + "indexed": true + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256", + "indexed": true + } + ], + "type": "event", + "name": "Transfer", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function", + "name": "approve" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + } + ] + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ] + }, + { + "inputs": [], + "stateMutability": "view", + "type": "function", + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ] + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function", + "name": "safeTransferFrom" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "function", + "name": "safeTransferFrom" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "_approved", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "setApprovalForAll" + }, + { + "inputs": [], + "stateMutability": "view", + "type": "function", + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ] + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "name": "tokenURI", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ] + }, + { + "inputs": [], + "stateMutability": "view", + "type": "function", + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function", + "name": "transferFrom" + } + ], + "devdoc": { + "kind": "dev", + "methods": { + "approve(address,uint256)": { + "details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event." + }, + "balanceOf(address)": { + "details": "Returns the number of tokens in `owner`'s account." + }, + "getApproved(uint256)": { + "details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist." + }, + "isApprovedForAll(address,address)": { + "details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}." + }, + "name()": { + "details": "Returns the token collection name." + }, + "ownerOf(uint256)": { + "details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist." + }, + "safeTransferFrom(address,address,uint256)": { + "details": "Equivalent to `safeTransferFrom(from, to, tokenId, '')`." + }, + "safeTransferFrom(address,address,uint256,bytes)": { + "details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event." + }, + "setApprovalForAll(address,bool)": { + "details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event." + }, + "symbol()": { + "details": "Returns the token collection symbol." + }, + "tokenURI(uint256)": { + "details": "Returns the Uniform Resource Identifier (URI) for `tokenId` token." + }, + "totalSupply()": { + "details": "Returns the total number of tokens in existence. Burned tokens will reduce the count. To get the total number of tokens minted, please see {_totalMinted}." + }, + "transferFrom(address,address,uint256)": { + "details": "Transfers `tokenId` from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event." + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/diamond/facets/token/ERC721A/IERC721A.sol": "IERC721A" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/diamond/facets/token/ERC721A/IERC721A.sol": { + "keccak256": "0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782", + "urls": [ + "bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d", + "dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/abis/IERC721ABase.abi.json b/packages/generated/dev/abis/IERC721ABase.abi.json new file mode 100644 index 000000000..a7336c411 --- /dev/null +++ b/packages/generated/dev/abis/IERC721ABase.abi.json @@ -0,0 +1,173 @@ +[ + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ApprovalForAll", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ConsecutiveTransfer", + "inputs": [ + { + "name": "fromTokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "toTokenId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "ApprovalQueryForNonexistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "BalanceQueryForZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "MintERC2309QuantityExceedsLimit", + "inputs": [] + }, + { + "type": "error", + "name": "MintToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "MintZeroQuantity", + "inputs": [] + }, + { + "type": "error", + "name": "OwnerQueryForNonexistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "OwnershipNotInitializedForExtraData", + "inputs": [] + }, + { + "type": "error", + "name": "TransferCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "TransferFromIncorrectOwner", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToNonERC721ReceiverImplementer", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "URIQueryForNonexistentToken", + "inputs": [] + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/IERC721ABase.abi.ts b/packages/generated/dev/abis/IERC721ABase.abi.ts new file mode 100644 index 000000000..0245ac38d --- /dev/null +++ b/packages/generated/dev/abis/IERC721ABase.abi.ts @@ -0,0 +1,173 @@ +export default [ + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ApprovalForAll", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ConsecutiveTransfer", + "inputs": [ + { + "name": "fromTokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "toTokenId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "ApprovalQueryForNonexistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "BalanceQueryForZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "MintERC2309QuantityExceedsLimit", + "inputs": [] + }, + { + "type": "error", + "name": "MintToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "MintZeroQuantity", + "inputs": [] + }, + { + "type": "error", + "name": "OwnerQueryForNonexistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "OwnershipNotInitializedForExtraData", + "inputs": [] + }, + { + "type": "error", + "name": "TransferCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "TransferFromIncorrectOwner", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToNonERC721ReceiverImplementer", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "URIQueryForNonexistentToken", + "inputs": [] + } +] as const diff --git a/packages/generated/dev/abis/IERC721ABase.bin b/packages/generated/dev/abis/IERC721ABase.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/IERC721ABase.json b/packages/generated/dev/abis/IERC721ABase.json new file mode 100644 index 000000000..69cb09dff --- /dev/null +++ b/packages/generated/dev/abis/IERC721ABase.json @@ -0,0 +1 @@ +{"abi":[{"type":"event","name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"ConsecutiveTransfer","inputs":[{"name":"fromTokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"toTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"ApprovalCallerNotOwnerNorApproved","inputs":[]},{"type":"error","name":"ApprovalQueryForNonexistentToken","inputs":[]},{"type":"error","name":"BalanceQueryForZeroAddress","inputs":[]},{"type":"error","name":"MintERC2309QuantityExceedsLimit","inputs":[]},{"type":"error","name":"MintToZeroAddress","inputs":[]},{"type":"error","name":"MintZeroQuantity","inputs":[]},{"type":"error","name":"OwnerQueryForNonexistentToken","inputs":[]},{"type":"error","name":"OwnershipNotInitializedForExtraData","inputs":[]},{"type":"error","name":"TransferCallerNotOwnerNorApproved","inputs":[]},{"type":"error","name":"TransferFromIncorrectOwner","inputs":[]},{"type":"error","name":"TransferToNonERC721ReceiverImplementer","inputs":[]},{"type":"error","name":"TransferToZeroAddress","inputs":[]},{"type":"error","name":"URIQueryForNonexistentToken","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"ApprovalCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ApprovalQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BalanceQueryForZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintERC2309QuantityExceedsLimit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintZeroQuantity\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnerQueryForNonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnershipNotInitializedForExtraData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferCallerNotOwnerNorApproved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFromIncorrectOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToNonERC721ReceiverImplementer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"URIQueryForNonexistentToken\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"fromTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"toTokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"ConsecutiveTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when `owner` enables `approved` to manage the `tokenId` token.\"},\"ApprovalForAll(address,address,bool)\":{\"details\":\"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\"},\"ConsecutiveTransfer(uint256,uint256,address,address)\":{\"details\":\"Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, as defined in the [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. See {_mintERC2309} for more details.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `tokenId` token is transferred from `from` to `to`.\"}},\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"errors\":{\"ApprovalCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"ApprovalQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"BalanceQueryForZeroAddress()\":[{\"notice\":\"Cannot query the balance for the zero address.\"}],\"MintERC2309QuantityExceedsLimit()\":[{\"notice\":\"The `quantity` minted with ERC2309 exceeds the safety limit.\"}],\"MintToZeroAddress()\":[{\"notice\":\"Cannot mint to the zero address.\"}],\"MintZeroQuantity()\":[{\"notice\":\"The quantity of tokens minted must be more than zero.\"}],\"OwnerQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}],\"OwnershipNotInitializedForExtraData()\":[{\"notice\":\"The `extraData` cannot be set on an unintialized ownership slot.\"}],\"TransferCallerNotOwnerNorApproved()\":[{\"notice\":\"The caller must own the token or be an approved operator.\"}],\"TransferFromIncorrectOwner()\":[{\"notice\":\"The token must be owned by `from`.\"}],\"TransferToNonERC721ReceiverImplementer()\":[{\"notice\":\"Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.\"}],\"TransferToZeroAddress()\":[{\"notice\":\"Cannot transfer to the zero address.\"}],\"URIQueryForNonexistentToken()\":[{\"notice\":\"The token does not exist.\"}]},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol\":\"IERC721ABase\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol\":{\"keccak256\":\"0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d\",\"dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"ApprovalCallerNotOwnerNorApproved"},{"inputs":[],"type":"error","name":"ApprovalQueryForNonexistentToken"},{"inputs":[],"type":"error","name":"BalanceQueryForZeroAddress"},{"inputs":[],"type":"error","name":"MintERC2309QuantityExceedsLimit"},{"inputs":[],"type":"error","name":"MintToZeroAddress"},{"inputs":[],"type":"error","name":"MintZeroQuantity"},{"inputs":[],"type":"error","name":"OwnerQueryForNonexistentToken"},{"inputs":[],"type":"error","name":"OwnershipNotInitializedForExtraData"},{"inputs":[],"type":"error","name":"TransferCallerNotOwnerNorApproved"},{"inputs":[],"type":"error","name":"TransferFromIncorrectOwner"},{"inputs":[],"type":"error","name":"TransferToNonERC721ReceiverImplementer"},{"inputs":[],"type":"error","name":"TransferToZeroAddress"},{"inputs":[],"type":"error","name":"URIQueryForNonexistentToken"},{"inputs":[{"internalType":"address","name":"owner","type":"address","indexed":true},{"internalType":"address","name":"approved","type":"address","indexed":true},{"internalType":"uint256","name":"tokenId","type":"uint256","indexed":true}],"type":"event","name":"Approval","anonymous":false},{"inputs":[{"internalType":"address","name":"owner","type":"address","indexed":true},{"internalType":"address","name":"operator","type":"address","indexed":true},{"internalType":"bool","name":"approved","type":"bool","indexed":false}],"type":"event","name":"ApprovalForAll","anonymous":false},{"inputs":[{"internalType":"uint256","name":"fromTokenId","type":"uint256","indexed":true},{"internalType":"uint256","name":"toTokenId","type":"uint256","indexed":false},{"internalType":"address","name":"from","type":"address","indexed":true},{"internalType":"address","name":"to","type":"address","indexed":true}],"type":"event","name":"ConsecutiveTransfer","anonymous":false},{"inputs":[{"internalType":"address","name":"from","type":"address","indexed":true},{"internalType":"address","name":"to","type":"address","indexed":true},{"internalType":"uint256","name":"tokenId","type":"uint256","indexed":true}],"type":"event","name":"Transfer","anonymous":false}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol":"IERC721ABase"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/diamond/facets/token/ERC721A/IERC721A.sol":{"keccak256":"0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782","urls":["bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d","dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz"],"license":"MIT"}},"version":1},"id":153} \ No newline at end of file diff --git a/packages/generated/dev/abis/IERC721ABase.metadata.json b/packages/generated/dev/abis/IERC721ABase.metadata.json new file mode 100644 index 000000000..eabfffaeb --- /dev/null +++ b/packages/generated/dev/abis/IERC721ABase.metadata.json @@ -0,0 +1,227 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [], + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved" + }, + { + "inputs": [], + "type": "error", + "name": "ApprovalQueryForNonexistentToken" + }, + { + "inputs": [], + "type": "error", + "name": "BalanceQueryForZeroAddress" + }, + { + "inputs": [], + "type": "error", + "name": "MintERC2309QuantityExceedsLimit" + }, + { + "inputs": [], + "type": "error", + "name": "MintToZeroAddress" + }, + { + "inputs": [], + "type": "error", + "name": "MintZeroQuantity" + }, + { + "inputs": [], + "type": "error", + "name": "OwnerQueryForNonexistentToken" + }, + { + "inputs": [], + "type": "error", + "name": "OwnershipNotInitializedForExtraData" + }, + { + "inputs": [], + "type": "error", + "name": "TransferCallerNotOwnerNorApproved" + }, + { + "inputs": [], + "type": "error", + "name": "TransferFromIncorrectOwner" + }, + { + "inputs": [], + "type": "error", + "name": "TransferToNonERC721ReceiverImplementer" + }, + { + "inputs": [], + "type": "error", + "name": "TransferToZeroAddress" + }, + { + "inputs": [], + "type": "error", + "name": "URIQueryForNonexistentToken" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "approved", + "type": "address", + "indexed": true + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256", + "indexed": true + } + ], + "type": "event", + "name": "Approval", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool", + "indexed": false + } + ], + "type": "event", + "name": "ApprovalForAll", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "fromTokenId", + "type": "uint256", + "indexed": true + }, + { + "internalType": "uint256", + "name": "toTokenId", + "type": "uint256", + "indexed": false + }, + { + "internalType": "address", + "name": "from", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "to", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "ConsecutiveTransfer", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "to", + "type": "address", + "indexed": true + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256", + "indexed": true + } + ], + "type": "event", + "name": "Transfer", + "anonymous": false + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/diamond/facets/token/ERC721A/IERC721A.sol": "IERC721ABase" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/diamond/facets/token/ERC721A/IERC721A.sol": { + "keccak256": "0xb57dee608d37c98c32ac38fa3c84e77f5962cf39a0697815ad209edf55593782", + "urls": [ + "bzz-raw://092750f101ae80c5bace9fd53ae87547a0aac6109cd58290609acd2ef489ce9d", + "dweb:/ipfs/QmREM18vUEQmcmnTSyR4XxHB9Ykqomc9RuCFZcWNiovgbz" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/abis/IEntitlementChecker.abi.json b/packages/generated/dev/abis/IEntitlementChecker.abi.json new file mode 100644 index 000000000..a8d045cf4 --- /dev/null +++ b/packages/generated/dev/abis/IEntitlementChecker.abi.json @@ -0,0 +1,238 @@ +[ + { + "type": "function", + "name": "getNodeAtIndex", + "inputs": [ + { + "name": "index", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getNodeCount", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getNodesByOperator", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getRandomNodes", + "inputs": [ + { + "name": "count", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isValidNode", + "inputs": [ + { + "name": "node", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "registerNode", + "inputs": [ + { + "name": "node", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "requestEntitlementCheck", + "inputs": [ + { + "name": "callerAddress", + "type": "address", + "internalType": "address" + }, + { + "name": "transactionId", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "roleId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "nodes", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unregisterNode", + "inputs": [ + { + "name": "node", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "EntitlementCheckRequested", + "inputs": [ + { + "name": "callerAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "contractAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "transactionId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "roleId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "selectedNodes", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NodeRegistered", + "inputs": [ + { + "name": "nodeAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NodeUnregistered", + "inputs": [ + { + "name": "nodeAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "EntitlementChecker_InsufficientNumberOfNodes", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_InvalidNodeOperator", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_NodeAlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_NodeNotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_OperatorNotActive", + "inputs": [] + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/IEntitlementChecker.abi.ts b/packages/generated/dev/abis/IEntitlementChecker.abi.ts new file mode 100644 index 000000000..fbcdf74a6 --- /dev/null +++ b/packages/generated/dev/abis/IEntitlementChecker.abi.ts @@ -0,0 +1,238 @@ +export default [ + { + "type": "function", + "name": "getNodeAtIndex", + "inputs": [ + { + "name": "index", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getNodeCount", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getNodesByOperator", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getRandomNodes", + "inputs": [ + { + "name": "count", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isValidNode", + "inputs": [ + { + "name": "node", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "registerNode", + "inputs": [ + { + "name": "node", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "requestEntitlementCheck", + "inputs": [ + { + "name": "callerAddress", + "type": "address", + "internalType": "address" + }, + { + "name": "transactionId", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "roleId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "nodes", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unregisterNode", + "inputs": [ + { + "name": "node", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "EntitlementCheckRequested", + "inputs": [ + { + "name": "callerAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "contractAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "transactionId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "roleId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "selectedNodes", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NodeRegistered", + "inputs": [ + { + "name": "nodeAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NodeUnregistered", + "inputs": [ + { + "name": "nodeAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "EntitlementChecker_InsufficientNumberOfNodes", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_InvalidNodeOperator", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_NodeAlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_NodeNotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_OperatorNotActive", + "inputs": [] + } +] as const diff --git a/packages/generated/dev/abis/IEntitlementChecker.bin b/packages/generated/dev/abis/IEntitlementChecker.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/IEntitlementChecker.json b/packages/generated/dev/abis/IEntitlementChecker.json new file mode 100644 index 000000000..b820fbb88 --- /dev/null +++ b/packages/generated/dev/abis/IEntitlementChecker.json @@ -0,0 +1 @@ +{"abi":[{"type":"function","name":"getNodeAtIndex","inputs":[{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getNodeCount","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getNodesByOperator","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getRandomNodes","inputs":[{"name":"count","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"isValidNode","inputs":[{"name":"node","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"registerNode","inputs":[{"name":"node","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"requestEntitlementCheck","inputs":[{"name":"callerAddress","type":"address","internalType":"address"},{"name":"transactionId","type":"bytes32","internalType":"bytes32"},{"name":"roleId","type":"uint256","internalType":"uint256"},{"name":"nodes","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"unregisterNode","inputs":[{"name":"node","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"EntitlementCheckRequested","inputs":[{"name":"callerAddress","type":"address","indexed":false,"internalType":"address"},{"name":"contractAddress","type":"address","indexed":false,"internalType":"address"},{"name":"transactionId","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"roleId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"selectedNodes","type":"address[]","indexed":false,"internalType":"address[]"}],"anonymous":false},{"type":"event","name":"NodeRegistered","inputs":[{"name":"nodeAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"NodeUnregistered","inputs":[{"name":"nodeAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"error","name":"EntitlementChecker_InsufficientNumberOfNodes","inputs":[]},{"type":"error","name":"EntitlementChecker_InvalidNodeOperator","inputs":[]},{"type":"error","name":"EntitlementChecker_InvalidOperator","inputs":[]},{"type":"error","name":"EntitlementChecker_NodeAlreadyRegistered","inputs":[]},{"type":"error","name":"EntitlementChecker_NodeNotRegistered","inputs":[]},{"type":"error","name":"EntitlementChecker_OperatorNotActive","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"getNodeAtIndex(uint256)":"3c59f126","getNodeCount()":"39bf397e","getNodesByOperator(address)":"43024ac9","getRandomNodes(uint256)":"4f845445","isValidNode(address)":"9ebd11ef","registerNode(address)":"672d7a0d","requestEntitlementCheck(address,bytes32,uint256,address[])":"541da4e5","unregisterNode(address)":"c5e41cf6"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"EntitlementChecker_InsufficientNumberOfNodes\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_InvalidNodeOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_InvalidOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_NodeAlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_NodeNotRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_OperatorNotActive\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"selectedNodes\",\"type\":\"address[]\"}],\"name\":\"EntitlementCheckRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddress\",\"type\":\"address\"}],\"name\":\"NodeRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddress\",\"type\":\"address\"}],\"name\":\"NodeUnregistered\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getNodeAtIndex\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNodeCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"getNodesByOperator\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"getRandomNodes\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"}],\"name\":\"isValidNode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"}],\"name\":\"registerNode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"nodes\",\"type\":\"address[]\"}],\"name\":\"requestEntitlementCheck\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"}],\"name\":\"unregisterNode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol\":\"IEntitlementChecker\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol\":{\"keccak256\":\"0xbeb7bfa236f19172b29eac53be03a3b377de3524b2d836192b0c64ebe708c204\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3d5a103a2b7b6be1ffa6662db6081763bcd210216fefc25307b835c555e0cf4d\",\"dweb:/ipfs/QmUCvhZdZpVnyJuZVgd2qGduTf11384TmmBJb2RaEBHxhh\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"EntitlementChecker_InsufficientNumberOfNodes"},{"inputs":[],"type":"error","name":"EntitlementChecker_InvalidNodeOperator"},{"inputs":[],"type":"error","name":"EntitlementChecker_InvalidOperator"},{"inputs":[],"type":"error","name":"EntitlementChecker_NodeAlreadyRegistered"},{"inputs":[],"type":"error","name":"EntitlementChecker_NodeNotRegistered"},{"inputs":[],"type":"error","name":"EntitlementChecker_OperatorNotActive"},{"inputs":[{"internalType":"address","name":"callerAddress","type":"address","indexed":false},{"internalType":"address","name":"contractAddress","type":"address","indexed":false},{"internalType":"bytes32","name":"transactionId","type":"bytes32","indexed":false},{"internalType":"uint256","name":"roleId","type":"uint256","indexed":false},{"internalType":"address[]","name":"selectedNodes","type":"address[]","indexed":false}],"type":"event","name":"EntitlementCheckRequested","anonymous":false},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address","indexed":true}],"type":"event","name":"NodeRegistered","anonymous":false},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address","indexed":true}],"type":"event","name":"NodeUnregistered","anonymous":false},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"stateMutability":"view","type":"function","name":"getNodeAtIndex","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getNodeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function","name":"getNodesByOperator","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function","name":"getRandomNodes","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[{"internalType":"address","name":"node","type":"address"}],"stateMutability":"view","type":"function","name":"isValidNode","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"node","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"registerNode"},{"inputs":[{"internalType":"address","name":"callerAddress","type":"address"},{"internalType":"bytes32","name":"transactionId","type":"bytes32"},{"internalType":"uint256","name":"roleId","type":"uint256"},{"internalType":"address[]","name":"nodes","type":"address[]"}],"stateMutability":"nonpayable","type":"function","name":"requestEntitlementCheck"},{"inputs":[{"internalType":"address","name":"node","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"unregisterNode"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol":"IEntitlementChecker"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol":{"keccak256":"0xbeb7bfa236f19172b29eac53be03a3b377de3524b2d836192b0c64ebe708c204","urls":["bzz-raw://3d5a103a2b7b6be1ffa6662db6081763bcd210216fefc25307b835c555e0cf4d","dweb:/ipfs/QmUCvhZdZpVnyJuZVgd2qGduTf11384TmmBJb2RaEBHxhh"],"license":"MIT"}},"version":1},"id":79} \ No newline at end of file diff --git a/packages/generated/dev/abis/IEntitlementChecker.metadata.json b/packages/generated/dev/abis/IEntitlementChecker.metadata.json new file mode 100644 index 000000000..205bba8c2 --- /dev/null +++ b/packages/generated/dev/abis/IEntitlementChecker.metadata.json @@ -0,0 +1,289 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_InsufficientNumberOfNodes" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_InvalidNodeOperator" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_InvalidOperator" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_NodeAlreadyRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_NodeNotRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_OperatorNotActive" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address", + "indexed": false + }, + { + "internalType": "address", + "name": "contractAddress", + "type": "address", + "indexed": false + }, + { + "internalType": "bytes32", + "name": "transactionId", + "type": "bytes32", + "indexed": false + }, + { + "internalType": "uint256", + "name": "roleId", + "type": "uint256", + "indexed": false + }, + { + "internalType": "address[]", + "name": "selectedNodes", + "type": "address[]", + "indexed": false + } + ], + "type": "event", + "name": "EntitlementCheckRequested", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "nodeAddress", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "NodeRegistered", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "nodeAddress", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "NodeUnregistered", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getNodeAtIndex", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ] + }, + { + "inputs": [], + "stateMutability": "view", + "type": "function", + "name": "getNodeCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getNodesByOperator", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ] + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "count", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getRandomNodes", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "node", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "isValidNode", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "node", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "registerNode" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "transactionId", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "roleId", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "nodes", + "type": "address[]" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "requestEntitlementCheck" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "node", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "unregisterNode" + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/base/registry/facets/checker/IEntitlementChecker.sol": "IEntitlementChecker" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/base/registry/facets/checker/IEntitlementChecker.sol": { + "keccak256": "0xbeb7bfa236f19172b29eac53be03a3b377de3524b2d836192b0c64ebe708c204", + "urls": [ + "bzz-raw://3d5a103a2b7b6be1ffa6662db6081763bcd210216fefc25307b835c555e0cf4d", + "dweb:/ipfs/QmUCvhZdZpVnyJuZVgd2qGduTf11384TmmBJb2RaEBHxhh" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/abis/IEntitlementCheckerBase.abi.json b/packages/generated/dev/abis/IEntitlementCheckerBase.abi.json new file mode 100644 index 000000000..b049a6920 --- /dev/null +++ b/packages/generated/dev/abis/IEntitlementCheckerBase.abi.json @@ -0,0 +1,95 @@ +[ + { + "type": "event", + "name": "EntitlementCheckRequested", + "inputs": [ + { + "name": "callerAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "contractAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "transactionId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "roleId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "selectedNodes", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NodeRegistered", + "inputs": [ + { + "name": "nodeAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NodeUnregistered", + "inputs": [ + { + "name": "nodeAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "EntitlementChecker_InsufficientNumberOfNodes", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_InvalidNodeOperator", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_NodeAlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_NodeNotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_OperatorNotActive", + "inputs": [] + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/IEntitlementCheckerBase.abi.ts b/packages/generated/dev/abis/IEntitlementCheckerBase.abi.ts new file mode 100644 index 000000000..afd3c3d4c --- /dev/null +++ b/packages/generated/dev/abis/IEntitlementCheckerBase.abi.ts @@ -0,0 +1,95 @@ +export default [ + { + "type": "event", + "name": "EntitlementCheckRequested", + "inputs": [ + { + "name": "callerAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "contractAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "transactionId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "roleId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "selectedNodes", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NodeRegistered", + "inputs": [ + { + "name": "nodeAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NodeUnregistered", + "inputs": [ + { + "name": "nodeAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "EntitlementChecker_InsufficientNumberOfNodes", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_InvalidNodeOperator", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_NodeAlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_NodeNotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "EntitlementChecker_OperatorNotActive", + "inputs": [] + } +] as const diff --git a/packages/generated/dev/abis/IEntitlementCheckerBase.bin b/packages/generated/dev/abis/IEntitlementCheckerBase.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/IEntitlementCheckerBase.json b/packages/generated/dev/abis/IEntitlementCheckerBase.json new file mode 100644 index 000000000..3879c06f7 --- /dev/null +++ b/packages/generated/dev/abis/IEntitlementCheckerBase.json @@ -0,0 +1 @@ +{"abi":[{"type":"event","name":"EntitlementCheckRequested","inputs":[{"name":"callerAddress","type":"address","indexed":false,"internalType":"address"},{"name":"contractAddress","type":"address","indexed":false,"internalType":"address"},{"name":"transactionId","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"roleId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"selectedNodes","type":"address[]","indexed":false,"internalType":"address[]"}],"anonymous":false},{"type":"event","name":"NodeRegistered","inputs":[{"name":"nodeAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"NodeUnregistered","inputs":[{"name":"nodeAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"error","name":"EntitlementChecker_InsufficientNumberOfNodes","inputs":[]},{"type":"error","name":"EntitlementChecker_InvalidNodeOperator","inputs":[]},{"type":"error","name":"EntitlementChecker_InvalidOperator","inputs":[]},{"type":"error","name":"EntitlementChecker_NodeAlreadyRegistered","inputs":[]},{"type":"error","name":"EntitlementChecker_NodeNotRegistered","inputs":[]},{"type":"error","name":"EntitlementChecker_OperatorNotActive","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"EntitlementChecker_InsufficientNumberOfNodes\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_InvalidNodeOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_InvalidOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_NodeAlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_NodeNotRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementChecker_OperatorNotActive\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"selectedNodes\",\"type\":\"address[]\"}],\"name\":\"EntitlementCheckRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddress\",\"type\":\"address\"}],\"name\":\"NodeRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddress\",\"type\":\"address\"}],\"name\":\"NodeUnregistered\",\"type\":\"event\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol\":\"IEntitlementCheckerBase\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol\":{\"keccak256\":\"0xbeb7bfa236f19172b29eac53be03a3b377de3524b2d836192b0c64ebe708c204\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3d5a103a2b7b6be1ffa6662db6081763bcd210216fefc25307b835c555e0cf4d\",\"dweb:/ipfs/QmUCvhZdZpVnyJuZVgd2qGduTf11384TmmBJb2RaEBHxhh\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"EntitlementChecker_InsufficientNumberOfNodes"},{"inputs":[],"type":"error","name":"EntitlementChecker_InvalidNodeOperator"},{"inputs":[],"type":"error","name":"EntitlementChecker_InvalidOperator"},{"inputs":[],"type":"error","name":"EntitlementChecker_NodeAlreadyRegistered"},{"inputs":[],"type":"error","name":"EntitlementChecker_NodeNotRegistered"},{"inputs":[],"type":"error","name":"EntitlementChecker_OperatorNotActive"},{"inputs":[{"internalType":"address","name":"callerAddress","type":"address","indexed":false},{"internalType":"address","name":"contractAddress","type":"address","indexed":false},{"internalType":"bytes32","name":"transactionId","type":"bytes32","indexed":false},{"internalType":"uint256","name":"roleId","type":"uint256","indexed":false},{"internalType":"address[]","name":"selectedNodes","type":"address[]","indexed":false}],"type":"event","name":"EntitlementCheckRequested","anonymous":false},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address","indexed":true}],"type":"event","name":"NodeRegistered","anonymous":false},{"inputs":[{"internalType":"address","name":"nodeAddress","type":"address","indexed":true}],"type":"event","name":"NodeUnregistered","anonymous":false}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol":"IEntitlementCheckerBase"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol":{"keccak256":"0xbeb7bfa236f19172b29eac53be03a3b377de3524b2d836192b0c64ebe708c204","urls":["bzz-raw://3d5a103a2b7b6be1ffa6662db6081763bcd210216fefc25307b835c555e0cf4d","dweb:/ipfs/QmUCvhZdZpVnyJuZVgd2qGduTf11384TmmBJb2RaEBHxhh"],"license":"MIT"}},"version":1},"id":79} \ No newline at end of file diff --git a/packages/generated/dev/abis/IEntitlementCheckerBase.metadata.json b/packages/generated/dev/abis/IEntitlementCheckerBase.metadata.json new file mode 100644 index 000000000..94857f940 --- /dev/null +++ b/packages/generated/dev/abis/IEntitlementCheckerBase.metadata.json @@ -0,0 +1,149 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_InsufficientNumberOfNodes" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_InvalidNodeOperator" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_InvalidOperator" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_NodeAlreadyRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_NodeNotRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "EntitlementChecker_OperatorNotActive" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address", + "indexed": false + }, + { + "internalType": "address", + "name": "contractAddress", + "type": "address", + "indexed": false + }, + { + "internalType": "bytes32", + "name": "transactionId", + "type": "bytes32", + "indexed": false + }, + { + "internalType": "uint256", + "name": "roleId", + "type": "uint256", + "indexed": false + }, + { + "internalType": "address[]", + "name": "selectedNodes", + "type": "address[]", + "indexed": false + } + ], + "type": "event", + "name": "EntitlementCheckRequested", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "nodeAddress", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "NodeRegistered", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "nodeAddress", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "NodeUnregistered", + "anonymous": false + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/base/registry/facets/checker/IEntitlementChecker.sol": "IEntitlementCheckerBase" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/base/registry/facets/checker/IEntitlementChecker.sol": { + "keccak256": "0xbeb7bfa236f19172b29eac53be03a3b377de3524b2d836192b0c64ebe708c204", + "urls": [ + "bzz-raw://3d5a103a2b7b6be1ffa6662db6081763bcd210216fefc25307b835c555e0cf4d", + "dweb:/ipfs/QmUCvhZdZpVnyJuZVgd2qGduTf11384TmmBJb2RaEBHxhh" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/abis/INodeOperator.abi.json b/packages/generated/dev/abis/INodeOperator.abi.json new file mode 100644 index 000000000..609e8e348 --- /dev/null +++ b/packages/generated/dev/abis/INodeOperator.abi.json @@ -0,0 +1,286 @@ +[ + { + "type": "function", + "name": "getClaimAddressForOperator", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getCommissionRate", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getOperatorStatus", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "enum NodeOperatorStatus" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isOperator", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "registerOperator", + "inputs": [ + { + "name": "claimer", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setClaimAddressForOperator", + "inputs": [ + { + "name": "claimer", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setCommissionRate", + "inputs": [ + { + "name": "commission", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setOperatorStatus", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "newStatus", + "type": "uint8", + "internalType": "enum NodeOperatorStatus" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "OperatorClaimAddressChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "claimAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorCommissionChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "commission", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorRegistered", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorStatusChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newStatus", + "type": "uint8", + "indexed": true, + "internalType": "enum NodeOperatorStatus" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "NodeOperator__AlreadyDelegated", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "NodeOperator__AlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__ClaimAddressNotChanged", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidCommissionRate", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidSpace", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidStakeRequirement", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidStatusTransition", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotClaimer", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotEnoughStake", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotTransferable", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__StatusNotChanged", + "inputs": [] + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/INodeOperator.abi.ts b/packages/generated/dev/abis/INodeOperator.abi.ts new file mode 100644 index 000000000..9d22105a2 --- /dev/null +++ b/packages/generated/dev/abis/INodeOperator.abi.ts @@ -0,0 +1,286 @@ +export default [ + { + "type": "function", + "name": "getClaimAddressForOperator", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getCommissionRate", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getOperatorStatus", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "enum NodeOperatorStatus" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isOperator", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "registerOperator", + "inputs": [ + { + "name": "claimer", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setClaimAddressForOperator", + "inputs": [ + { + "name": "claimer", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setCommissionRate", + "inputs": [ + { + "name": "commission", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setOperatorStatus", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "newStatus", + "type": "uint8", + "internalType": "enum NodeOperatorStatus" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "OperatorClaimAddressChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "claimAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorCommissionChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "commission", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorRegistered", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorStatusChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newStatus", + "type": "uint8", + "indexed": true, + "internalType": "enum NodeOperatorStatus" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "NodeOperator__AlreadyDelegated", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "NodeOperator__AlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__ClaimAddressNotChanged", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidCommissionRate", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidSpace", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidStakeRequirement", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidStatusTransition", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotClaimer", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotEnoughStake", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotTransferable", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__StatusNotChanged", + "inputs": [] + } +] as const diff --git a/packages/generated/dev/abis/INodeOperator.bin b/packages/generated/dev/abis/INodeOperator.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/INodeOperator.json b/packages/generated/dev/abis/INodeOperator.json new file mode 100644 index 000000000..013391d2e --- /dev/null +++ b/packages/generated/dev/abis/INodeOperator.json @@ -0,0 +1 @@ +{"abi":[{"type":"function","name":"getClaimAddressForOperator","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getCommissionRate","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getOperatorStatus","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint8","internalType":"enum NodeOperatorStatus"}],"stateMutability":"view"},{"type":"function","name":"isOperator","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"registerOperator","inputs":[{"name":"claimer","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setClaimAddressForOperator","inputs":[{"name":"claimer","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setCommissionRate","inputs":[{"name":"commission","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setOperatorStatus","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"newStatus","type":"uint8","internalType":"enum NodeOperatorStatus"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"OperatorClaimAddressChanged","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"claimAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OperatorCommissionChanged","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"commission","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"OperatorRegistered","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OperatorStatusChanged","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"newStatus","type":"uint8","indexed":true,"internalType":"enum NodeOperatorStatus"}],"anonymous":false},{"type":"error","name":"NodeOperator__AlreadyDelegated","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"type":"error","name":"NodeOperator__AlreadyRegistered","inputs":[]},{"type":"error","name":"NodeOperator__ClaimAddressNotChanged","inputs":[]},{"type":"error","name":"NodeOperator__InvalidAddress","inputs":[]},{"type":"error","name":"NodeOperator__InvalidCommissionRate","inputs":[]},{"type":"error","name":"NodeOperator__InvalidOperator","inputs":[]},{"type":"error","name":"NodeOperator__InvalidSpace","inputs":[]},{"type":"error","name":"NodeOperator__InvalidStakeRequirement","inputs":[]},{"type":"error","name":"NodeOperator__InvalidStatusTransition","inputs":[]},{"type":"error","name":"NodeOperator__NotClaimer","inputs":[]},{"type":"error","name":"NodeOperator__NotEnoughStake","inputs":[]},{"type":"error","name":"NodeOperator__NotRegistered","inputs":[]},{"type":"error","name":"NodeOperator__NotTransferable","inputs":[]},{"type":"error","name":"NodeOperator__StatusNotChanged","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"getClaimAddressForOperator(address)":"e97cc6f6","getCommissionRate(address)":"e0cc26a2","getOperatorStatus(address)":"fd39105a","isOperator(address)":"6d70f7ae","registerOperator(address)":"3682a450","setClaimAddressForOperator(address,address)":"59f12a26","setCommissionRate(uint256)":"19fac8fd","setOperatorStatus(address,uint8)":"4463ba8f"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"NodeOperator__AlreadyDelegated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__AlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__ClaimAddressNotChanged\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidCommissionRate\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidSpace\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidStakeRequirement\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidStatusTransition\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__NotClaimer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__NotEnoughStake\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__NotRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__NotTransferable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__StatusNotChanged\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"claimAddress\",\"type\":\"address\"}],\"name\":\"OperatorClaimAddressChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"commission\",\"type\":\"uint256\"}],\"name\":\"OperatorCommissionChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"OperatorRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"enum NodeOperatorStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"OperatorStatusChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"getClaimAddressForOperator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"getCommissionRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"getOperatorStatus\",\"outputs\":[{\"internalType\":\"enum NodeOperatorStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isOperator\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"claimer\",\"type\":\"address\"}],\"name\":\"registerOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"claimer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"setClaimAddressForOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"commission\",\"type\":\"uint256\"}],\"name\":\"setCommissionRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"enum NodeOperatorStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"setOperatorStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/base/registry/facets/operator/INodeOperator.sol\":\"INodeOperator\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/base/registry/facets/operator/INodeOperator.sol\":{\"keccak256\":\"0x51fb272223040fd0ecf38e6ca021169fd6fe29dca4d4cf7bd65a209c236e6ab5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1107dd9cc7f0c9ad4ea64a8b3a9e7d362f13061b25943cf2fb7a8e4b3eac6024\",\"dweb:/ipfs/QmTbfwqkMonebKZPXhZbCwssbo91A4SkDvmLVRapae4i8R\"]},\"contracts/src/base/registry/facets/operator/NodeOperatorStorage.sol\":{\"keccak256\":\"0xbd8bd0bbd6173e20355fdb81e1076dbdfd9d031706f301e669c950cccd969db9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1540d7cd9a283ab53d57117e76787d457cb6f4db1f3deb747b513320e561baca\",\"dweb:/ipfs/QmQYDBchk2MnDaUspdALGDtqZkT7ZmE5i4Fz3kJoj6DfrC\"]},\"lib/@openzeppelin/contracts/utils/structs/EnumerableSet.sol\":{\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ad85dd393ee0a1917c57046abc5155f51f77844b2c6a42c05c1b8dd26d6ff3c1\",\"dweb:/ipfs/QmNqYc8To2NdnpP6E1tGz7t6A7beuENde5yovwov5pW1fA\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"type":"error","name":"NodeOperator__AlreadyDelegated"},{"inputs":[],"type":"error","name":"NodeOperator__AlreadyRegistered"},{"inputs":[],"type":"error","name":"NodeOperator__ClaimAddressNotChanged"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidAddress"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidCommissionRate"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidOperator"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidSpace"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidStakeRequirement"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidStatusTransition"},{"inputs":[],"type":"error","name":"NodeOperator__NotClaimer"},{"inputs":[],"type":"error","name":"NodeOperator__NotEnoughStake"},{"inputs":[],"type":"error","name":"NodeOperator__NotRegistered"},{"inputs":[],"type":"error","name":"NodeOperator__NotTransferable"},{"inputs":[],"type":"error","name":"NodeOperator__StatusNotChanged"},{"inputs":[{"internalType":"address","name":"operator","type":"address","indexed":true},{"internalType":"address","name":"claimAddress","type":"address","indexed":true}],"type":"event","name":"OperatorClaimAddressChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"operator","type":"address","indexed":true},{"internalType":"uint256","name":"commission","type":"uint256","indexed":true}],"type":"event","name":"OperatorCommissionChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"operator","type":"address","indexed":true}],"type":"event","name":"OperatorRegistered","anonymous":false},{"inputs":[{"internalType":"address","name":"operator","type":"address","indexed":true},{"internalType":"enum NodeOperatorStatus","name":"newStatus","type":"uint8","indexed":true}],"type":"event","name":"OperatorStatusChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function","name":"getClaimAddressForOperator","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function","name":"getCommissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function","name":"getOperatorStatus","outputs":[{"internalType":"enum NodeOperatorStatus","name":"","type":"uint8"}]},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function","name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"claimer","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"registerOperator"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setClaimAddressForOperator"},{"inputs":[{"internalType":"uint256","name":"commission","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"setCommissionRate"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"enum NodeOperatorStatus","name":"newStatus","type":"uint8"}],"stateMutability":"nonpayable","type":"function","name":"setOperatorStatus"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/base/registry/facets/operator/INodeOperator.sol":"INodeOperator"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/base/registry/facets/operator/INodeOperator.sol":{"keccak256":"0x51fb272223040fd0ecf38e6ca021169fd6fe29dca4d4cf7bd65a209c236e6ab5","urls":["bzz-raw://1107dd9cc7f0c9ad4ea64a8b3a9e7d362f13061b25943cf2fb7a8e4b3eac6024","dweb:/ipfs/QmTbfwqkMonebKZPXhZbCwssbo91A4SkDvmLVRapae4i8R"],"license":"MIT"},"contracts/src/base/registry/facets/operator/NodeOperatorStorage.sol":{"keccak256":"0xbd8bd0bbd6173e20355fdb81e1076dbdfd9d031706f301e669c950cccd969db9","urls":["bzz-raw://1540d7cd9a283ab53d57117e76787d457cb6f4db1f3deb747b513320e561baca","dweb:/ipfs/QmQYDBchk2MnDaUspdALGDtqZkT7ZmE5i4Fz3kJoj6DfrC"],"license":"MIT"},"lib/@openzeppelin/contracts/utils/structs/EnumerableSet.sol":{"keccak256":"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa","urls":["bzz-raw://ad85dd393ee0a1917c57046abc5155f51f77844b2c6a42c05c1b8dd26d6ff3c1","dweb:/ipfs/QmNqYc8To2NdnpP6E1tGz7t6A7beuENde5yovwov5pW1fA"],"license":"MIT"}},"version":1},"id":86} \ No newline at end of file diff --git a/packages/generated/dev/abis/INodeOperator.metadata.json b/packages/generated/dev/abis/INodeOperator.metadata.json new file mode 100644 index 000000000..9a4d74b62 --- /dev/null +++ b/packages/generated/dev/abis/INodeOperator.metadata.json @@ -0,0 +1,352 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "type": "error", + "name": "NodeOperator__AlreadyDelegated" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__AlreadyRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__ClaimAddressNotChanged" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidAddress" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidCommissionRate" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidOperator" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidSpace" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidStakeRequirement" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidStatusTransition" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__NotClaimer" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__NotEnoughStake" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__NotRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__NotTransferable" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__StatusNotChanged" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "claimAddress", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "OperatorClaimAddressChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + }, + { + "internalType": "uint256", + "name": "commission", + "type": "uint256", + "indexed": true + } + ], + "type": "event", + "name": "OperatorCommissionChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "OperatorRegistered", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + }, + { + "internalType": "enum NodeOperatorStatus", + "name": "newStatus", + "type": "uint8", + "indexed": true + } + ], + "type": "event", + "name": "OperatorStatusChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getClaimAddressForOperator", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getCommissionRate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getOperatorStatus", + "outputs": [ + { + "internalType": "enum NodeOperatorStatus", + "name": "", + "type": "uint8" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "isOperator", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "claimer", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "registerOperator" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "claimer", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "setClaimAddressForOperator" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "commission", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "setCommissionRate" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "enum NodeOperatorStatus", + "name": "newStatus", + "type": "uint8" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "setOperatorStatus" + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/base/registry/facets/operator/INodeOperator.sol": "INodeOperator" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/base/registry/facets/operator/INodeOperator.sol": { + "keccak256": "0x51fb272223040fd0ecf38e6ca021169fd6fe29dca4d4cf7bd65a209c236e6ab5", + "urls": [ + "bzz-raw://1107dd9cc7f0c9ad4ea64a8b3a9e7d362f13061b25943cf2fb7a8e4b3eac6024", + "dweb:/ipfs/QmTbfwqkMonebKZPXhZbCwssbo91A4SkDvmLVRapae4i8R" + ], + "license": "MIT" + }, + "contracts/src/base/registry/facets/operator/NodeOperatorStorage.sol": { + "keccak256": "0xbd8bd0bbd6173e20355fdb81e1076dbdfd9d031706f301e669c950cccd969db9", + "urls": [ + "bzz-raw://1540d7cd9a283ab53d57117e76787d457cb6f4db1f3deb747b513320e561baca", + "dweb:/ipfs/QmQYDBchk2MnDaUspdALGDtqZkT7ZmE5i4Fz3kJoj6DfrC" + ], + "license": "MIT" + }, + "lib/@openzeppelin/contracts/utils/structs/EnumerableSet.sol": { + "keccak256": "0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa", + "urls": [ + "bzz-raw://ad85dd393ee0a1917c57046abc5155f51f77844b2c6a42c05c1b8dd26d6ff3c1", + "dweb:/ipfs/QmNqYc8To2NdnpP6E1tGz7t6A7beuENde5yovwov5pW1fA" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/abis/INodeOperatorBase.abi.json b/packages/generated/dev/abis/INodeOperatorBase.abi.json new file mode 100644 index 000000000..2db15c15b --- /dev/null +++ b/packages/generated/dev/abis/INodeOperatorBase.abi.json @@ -0,0 +1,148 @@ +[ + { + "type": "event", + "name": "OperatorClaimAddressChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "claimAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorCommissionChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "commission", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorRegistered", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorStatusChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newStatus", + "type": "uint8", + "indexed": true, + "internalType": "enum NodeOperatorStatus" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "NodeOperator__AlreadyDelegated", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "NodeOperator__AlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__ClaimAddressNotChanged", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidCommissionRate", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidSpace", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidStakeRequirement", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidStatusTransition", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotClaimer", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotEnoughStake", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotTransferable", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__StatusNotChanged", + "inputs": [] + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/INodeOperatorBase.abi.ts b/packages/generated/dev/abis/INodeOperatorBase.abi.ts new file mode 100644 index 000000000..009500358 --- /dev/null +++ b/packages/generated/dev/abis/INodeOperatorBase.abi.ts @@ -0,0 +1,148 @@ +export default [ + { + "type": "event", + "name": "OperatorClaimAddressChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "claimAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorCommissionChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "commission", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorRegistered", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorStatusChanged", + "inputs": [ + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newStatus", + "type": "uint8", + "indexed": true, + "internalType": "enum NodeOperatorStatus" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "NodeOperator__AlreadyDelegated", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "NodeOperator__AlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__ClaimAddressNotChanged", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidCommissionRate", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidSpace", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidStakeRequirement", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__InvalidStatusTransition", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotClaimer", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotEnoughStake", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__NotTransferable", + "inputs": [] + }, + { + "type": "error", + "name": "NodeOperator__StatusNotChanged", + "inputs": [] + } +] as const diff --git a/packages/generated/dev/abis/INodeOperatorBase.bin b/packages/generated/dev/abis/INodeOperatorBase.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/INodeOperatorBase.json b/packages/generated/dev/abis/INodeOperatorBase.json new file mode 100644 index 000000000..1142e12bb --- /dev/null +++ b/packages/generated/dev/abis/INodeOperatorBase.json @@ -0,0 +1 @@ +{"abi":[{"type":"event","name":"OperatorClaimAddressChanged","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"claimAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OperatorCommissionChanged","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"commission","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"OperatorRegistered","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OperatorStatusChanged","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"newStatus","type":"uint8","indexed":true,"internalType":"enum NodeOperatorStatus"}],"anonymous":false},{"type":"error","name":"NodeOperator__AlreadyDelegated","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"type":"error","name":"NodeOperator__AlreadyRegistered","inputs":[]},{"type":"error","name":"NodeOperator__ClaimAddressNotChanged","inputs":[]},{"type":"error","name":"NodeOperator__InvalidAddress","inputs":[]},{"type":"error","name":"NodeOperator__InvalidCommissionRate","inputs":[]},{"type":"error","name":"NodeOperator__InvalidOperator","inputs":[]},{"type":"error","name":"NodeOperator__InvalidSpace","inputs":[]},{"type":"error","name":"NodeOperator__InvalidStakeRequirement","inputs":[]},{"type":"error","name":"NodeOperator__InvalidStatusTransition","inputs":[]},{"type":"error","name":"NodeOperator__NotClaimer","inputs":[]},{"type":"error","name":"NodeOperator__NotEnoughStake","inputs":[]},{"type":"error","name":"NodeOperator__NotRegistered","inputs":[]},{"type":"error","name":"NodeOperator__NotTransferable","inputs":[]},{"type":"error","name":"NodeOperator__StatusNotChanged","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"NodeOperator__AlreadyDelegated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__AlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__ClaimAddressNotChanged\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidCommissionRate\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidSpace\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidStakeRequirement\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__InvalidStatusTransition\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__NotClaimer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__NotEnoughStake\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__NotRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__NotTransferable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeOperator__StatusNotChanged\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"claimAddress\",\"type\":\"address\"}],\"name\":\"OperatorClaimAddressChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"commission\",\"type\":\"uint256\"}],\"name\":\"OperatorCommissionChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"OperatorRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"enum NodeOperatorStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"OperatorStatusChanged\",\"type\":\"event\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/base/registry/facets/operator/INodeOperator.sol\":\"INodeOperatorBase\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/base/registry/facets/operator/INodeOperator.sol\":{\"keccak256\":\"0x51fb272223040fd0ecf38e6ca021169fd6fe29dca4d4cf7bd65a209c236e6ab5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1107dd9cc7f0c9ad4ea64a8b3a9e7d362f13061b25943cf2fb7a8e4b3eac6024\",\"dweb:/ipfs/QmTbfwqkMonebKZPXhZbCwssbo91A4SkDvmLVRapae4i8R\"]},\"contracts/src/base/registry/facets/operator/NodeOperatorStorage.sol\":{\"keccak256\":\"0xbd8bd0bbd6173e20355fdb81e1076dbdfd9d031706f301e669c950cccd969db9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1540d7cd9a283ab53d57117e76787d457cb6f4db1f3deb747b513320e561baca\",\"dweb:/ipfs/QmQYDBchk2MnDaUspdALGDtqZkT7ZmE5i4Fz3kJoj6DfrC\"]},\"lib/@openzeppelin/contracts/utils/structs/EnumerableSet.sol\":{\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ad85dd393ee0a1917c57046abc5155f51f77844b2c6a42c05c1b8dd26d6ff3c1\",\"dweb:/ipfs/QmNqYc8To2NdnpP6E1tGz7t6A7beuENde5yovwov5pW1fA\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"type":"error","name":"NodeOperator__AlreadyDelegated"},{"inputs":[],"type":"error","name":"NodeOperator__AlreadyRegistered"},{"inputs":[],"type":"error","name":"NodeOperator__ClaimAddressNotChanged"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidAddress"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidCommissionRate"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidOperator"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidSpace"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidStakeRequirement"},{"inputs":[],"type":"error","name":"NodeOperator__InvalidStatusTransition"},{"inputs":[],"type":"error","name":"NodeOperator__NotClaimer"},{"inputs":[],"type":"error","name":"NodeOperator__NotEnoughStake"},{"inputs":[],"type":"error","name":"NodeOperator__NotRegistered"},{"inputs":[],"type":"error","name":"NodeOperator__NotTransferable"},{"inputs":[],"type":"error","name":"NodeOperator__StatusNotChanged"},{"inputs":[{"internalType":"address","name":"operator","type":"address","indexed":true},{"internalType":"address","name":"claimAddress","type":"address","indexed":true}],"type":"event","name":"OperatorClaimAddressChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"operator","type":"address","indexed":true},{"internalType":"uint256","name":"commission","type":"uint256","indexed":true}],"type":"event","name":"OperatorCommissionChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"operator","type":"address","indexed":true}],"type":"event","name":"OperatorRegistered","anonymous":false},{"inputs":[{"internalType":"address","name":"operator","type":"address","indexed":true},{"internalType":"enum NodeOperatorStatus","name":"newStatus","type":"uint8","indexed":true}],"type":"event","name":"OperatorStatusChanged","anonymous":false}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/base/registry/facets/operator/INodeOperator.sol":"INodeOperatorBase"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/base/registry/facets/operator/INodeOperator.sol":{"keccak256":"0x51fb272223040fd0ecf38e6ca021169fd6fe29dca4d4cf7bd65a209c236e6ab5","urls":["bzz-raw://1107dd9cc7f0c9ad4ea64a8b3a9e7d362f13061b25943cf2fb7a8e4b3eac6024","dweb:/ipfs/QmTbfwqkMonebKZPXhZbCwssbo91A4SkDvmLVRapae4i8R"],"license":"MIT"},"contracts/src/base/registry/facets/operator/NodeOperatorStorage.sol":{"keccak256":"0xbd8bd0bbd6173e20355fdb81e1076dbdfd9d031706f301e669c950cccd969db9","urls":["bzz-raw://1540d7cd9a283ab53d57117e76787d457cb6f4db1f3deb747b513320e561baca","dweb:/ipfs/QmQYDBchk2MnDaUspdALGDtqZkT7ZmE5i4Fz3kJoj6DfrC"],"license":"MIT"},"lib/@openzeppelin/contracts/utils/structs/EnumerableSet.sol":{"keccak256":"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa","urls":["bzz-raw://ad85dd393ee0a1917c57046abc5155f51f77844b2c6a42c05c1b8dd26d6ff3c1","dweb:/ipfs/QmNqYc8To2NdnpP6E1tGz7t6A7beuENde5yovwov5pW1fA"],"license":"MIT"}},"version":1},"id":86} \ No newline at end of file diff --git a/packages/generated/dev/abis/INodeOperatorBase.metadata.json b/packages/generated/dev/abis/INodeOperatorBase.metadata.json new file mode 100644 index 000000000..164f0defc --- /dev/null +++ b/packages/generated/dev/abis/INodeOperatorBase.metadata.json @@ -0,0 +1,218 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "type": "error", + "name": "NodeOperator__AlreadyDelegated" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__AlreadyRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__ClaimAddressNotChanged" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidAddress" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidCommissionRate" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidOperator" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidSpace" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidStakeRequirement" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__InvalidStatusTransition" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__NotClaimer" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__NotEnoughStake" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__NotRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__NotTransferable" + }, + { + "inputs": [], + "type": "error", + "name": "NodeOperator__StatusNotChanged" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "claimAddress", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "OperatorClaimAddressChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + }, + { + "internalType": "uint256", + "name": "commission", + "type": "uint256", + "indexed": true + } + ], + "type": "event", + "name": "OperatorCommissionChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "OperatorRegistered", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + }, + { + "internalType": "enum NodeOperatorStatus", + "name": "newStatus", + "type": "uint8", + "indexed": true + } + ], + "type": "event", + "name": "OperatorStatusChanged", + "anonymous": false + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/base/registry/facets/operator/INodeOperator.sol": "INodeOperatorBase" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/base/registry/facets/operator/INodeOperator.sol": { + "keccak256": "0x51fb272223040fd0ecf38e6ca021169fd6fe29dca4d4cf7bd65a209c236e6ab5", + "urls": [ + "bzz-raw://1107dd9cc7f0c9ad4ea64a8b3a9e7d362f13061b25943cf2fb7a8e4b3eac6024", + "dweb:/ipfs/QmTbfwqkMonebKZPXhZbCwssbo91A4SkDvmLVRapae4i8R" + ], + "license": "MIT" + }, + "contracts/src/base/registry/facets/operator/NodeOperatorStorage.sol": { + "keccak256": "0xbd8bd0bbd6173e20355fdb81e1076dbdfd9d031706f301e669c950cccd969db9", + "urls": [ + "bzz-raw://1540d7cd9a283ab53d57117e76787d457cb6f4db1f3deb747b513320e561baca", + "dweb:/ipfs/QmQYDBchk2MnDaUspdALGDtqZkT7ZmE5i4Fz3kJoj6DfrC" + ], + "license": "MIT" + }, + "lib/@openzeppelin/contracts/utils/structs/EnumerableSet.sol": { + "keccak256": "0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa", + "urls": [ + "bzz-raw://ad85dd393ee0a1917c57046abc5155f51f77844b2c6a42c05c1b8dd26d6ff3c1", + "dweb:/ipfs/QmNqYc8To2NdnpP6E1tGz7t6A7beuENde5yovwov5pW1fA" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/abis/ISpaceDelegation.abi.json b/packages/generated/dev/abis/ISpaceDelegation.abi.json new file mode 100644 index 000000000..365abaaf2 --- /dev/null +++ b/packages/generated/dev/abis/ISpaceDelegation.abi.json @@ -0,0 +1,230 @@ +[ + { + "type": "function", + "name": "getSpaceDelegation", + "inputs": [ + { + "name": "space", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getSpaceDelegationsByOperator", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getTotalDelegation", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "riverToken", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setMainnetDelegation", + "inputs": [ + { + "name": "mainnetDelegation_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setRiverToken", + "inputs": [ + { + "name": "riverToken", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setStakeRequirement", + "inputs": [ + { + "name": "stakeRequirement_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "MainnetDelegationChanged", + "inputs": [ + { + "name": "mainnetDelegation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RiverTokenChanged", + "inputs": [ + { + "name": "riverToken", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SpaceDelegatedToOperator", + "inputs": [ + { + "name": "space", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "StakeRequirementChanged", + "inputs": [ + { + "name": "stakeRequirement", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "SpaceDelegation__AlreadyDelegated", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SpaceDelegation__AlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidSpace", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidStakeRequirement", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidStatusTransition", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotEnoughStake", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotTransferable", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__StatusNotChanged", + "inputs": [] + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/ISpaceDelegation.abi.ts b/packages/generated/dev/abis/ISpaceDelegation.abi.ts new file mode 100644 index 000000000..0b8e52c79 --- /dev/null +++ b/packages/generated/dev/abis/ISpaceDelegation.abi.ts @@ -0,0 +1,230 @@ +export default [ + { + "type": "function", + "name": "getSpaceDelegation", + "inputs": [ + { + "name": "space", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getSpaceDelegationsByOperator", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getTotalDelegation", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "riverToken", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setMainnetDelegation", + "inputs": [ + { + "name": "mainnetDelegation_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setRiverToken", + "inputs": [ + { + "name": "riverToken", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setStakeRequirement", + "inputs": [ + { + "name": "stakeRequirement_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "MainnetDelegationChanged", + "inputs": [ + { + "name": "mainnetDelegation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RiverTokenChanged", + "inputs": [ + { + "name": "riverToken", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SpaceDelegatedToOperator", + "inputs": [ + { + "name": "space", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "StakeRequirementChanged", + "inputs": [ + { + "name": "stakeRequirement", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "SpaceDelegation__AlreadyDelegated", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SpaceDelegation__AlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidSpace", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidStakeRequirement", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidStatusTransition", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotEnoughStake", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotTransferable", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__StatusNotChanged", + "inputs": [] + } +] as const diff --git a/packages/generated/dev/abis/ISpaceDelegation.bin b/packages/generated/dev/abis/ISpaceDelegation.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/ISpaceDelegation.json b/packages/generated/dev/abis/ISpaceDelegation.json new file mode 100644 index 000000000..ad1afdc4b --- /dev/null +++ b/packages/generated/dev/abis/ISpaceDelegation.json @@ -0,0 +1 @@ +{"abi":[{"type":"function","name":"getSpaceDelegation","inputs":[{"name":"space","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getSpaceDelegationsByOperator","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getTotalDelegation","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"riverToken","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"setMainnetDelegation","inputs":[{"name":"mainnetDelegation_","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setRiverToken","inputs":[{"name":"riverToken","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setStakeRequirement","inputs":[{"name":"stakeRequirement_","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"MainnetDelegationChanged","inputs":[{"name":"mainnetDelegation","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RiverTokenChanged","inputs":[{"name":"riverToken","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"SpaceDelegatedToOperator","inputs":[{"name":"space","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"StakeRequirementChanged","inputs":[{"name":"stakeRequirement","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"SpaceDelegation__AlreadyDelegated","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"type":"error","name":"SpaceDelegation__AlreadyRegistered","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidAddress","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidOperator","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidSpace","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidStakeRequirement","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidStatusTransition","inputs":[]},{"type":"error","name":"SpaceDelegation__NotEnoughStake","inputs":[]},{"type":"error","name":"SpaceDelegation__NotRegistered","inputs":[]},{"type":"error","name":"SpaceDelegation__NotTransferable","inputs":[]},{"type":"error","name":"SpaceDelegation__StatusNotChanged","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"getSpaceDelegation(address)":"5fd864a6","getSpaceDelegationsByOperator(address)":"1e7f6864","getTotalDelegation(address)":"fc5e7e09","riverToken()":"7beac451","setMainnetDelegation(address)":"16014886","setRiverToken(address)":"0d6f24c0","setStakeRequirement(uint256)":"4f09e304"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"SpaceDelegation__AlreadyDelegated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__AlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidSpace\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidStakeRequirement\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidStatusTransition\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotEnoughStake\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotTransferable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__StatusNotChanged\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"mainnetDelegation\",\"type\":\"address\"}],\"name\":\"MainnetDelegationChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"riverToken\",\"type\":\"address\"}],\"name\":\"RiverTokenChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"space\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"SpaceDelegatedToOperator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeRequirement\",\"type\":\"uint256\"}],\"name\":\"StakeRequirementChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"space\",\"type\":\"address\"}],\"name\":\"getSpaceDelegation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"getSpaceDelegationsByOperator\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"getTotalDelegation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"riverToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"mainnetDelegation_\",\"type\":\"address\"}],\"name\":\"setMainnetDelegation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"riverToken\",\"type\":\"address\"}],\"name\":\"setRiverToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"stakeRequirement_\",\"type\":\"uint256\"}],\"name\":\"setStakeRequirement\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol\":\"ISpaceDelegation\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol\":{\"keccak256\":\"0xb7796a50a2686902fb7bc6b25664b6a24c485092718c9eb8501a61b841a36c04\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a54b27f059faa0868c8df0757de492ad8559040cb6956ff71595c8e3f1c783c5\",\"dweb:/ipfs/QmXy4KFpJEHDvDCNNyEdbeYhUGJtamd8DToKHTbBXuWwdp\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"type":"error","name":"SpaceDelegation__AlreadyDelegated"},{"inputs":[],"type":"error","name":"SpaceDelegation__AlreadyRegistered"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidAddress"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidOperator"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidSpace"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidStakeRequirement"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidStatusTransition"},{"inputs":[],"type":"error","name":"SpaceDelegation__NotEnoughStake"},{"inputs":[],"type":"error","name":"SpaceDelegation__NotRegistered"},{"inputs":[],"type":"error","name":"SpaceDelegation__NotTransferable"},{"inputs":[],"type":"error","name":"SpaceDelegation__StatusNotChanged"},{"inputs":[{"internalType":"address","name":"mainnetDelegation","type":"address","indexed":true}],"type":"event","name":"MainnetDelegationChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"riverToken","type":"address","indexed":true}],"type":"event","name":"RiverTokenChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"space","type":"address","indexed":true},{"internalType":"address","name":"operator","type":"address","indexed":true}],"type":"event","name":"SpaceDelegatedToOperator","anonymous":false},{"inputs":[{"internalType":"uint256","name":"stakeRequirement","type":"uint256","indexed":false}],"type":"event","name":"StakeRequirementChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"space","type":"address"}],"stateMutability":"view","type":"function","name":"getSpaceDelegation","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function","name":"getSpaceDelegationsByOperator","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function","name":"getTotalDelegation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"riverToken","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"mainnetDelegation_","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setMainnetDelegation"},{"inputs":[{"internalType":"address","name":"riverToken","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setRiverToken"},{"inputs":[{"internalType":"uint256","name":"stakeRequirement_","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"setStakeRequirement"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol":"ISpaceDelegation"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol":{"keccak256":"0xb7796a50a2686902fb7bc6b25664b6a24c485092718c9eb8501a61b841a36c04","urls":["bzz-raw://a54b27f059faa0868c8df0757de492ad8559040cb6956ff71595c8e3f1c783c5","dweb:/ipfs/QmXy4KFpJEHDvDCNNyEdbeYhUGJtamd8DToKHTbBXuWwdp"],"license":"MIT"}},"version":1},"id":80} \ No newline at end of file diff --git a/packages/generated/dev/abis/ISpaceDelegation.metadata.json b/packages/generated/dev/abis/ISpaceDelegation.metadata.json new file mode 100644 index 000000000..4b06d19c3 --- /dev/null +++ b/packages/generated/dev/abis/ISpaceDelegation.metadata.json @@ -0,0 +1,281 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "type": "error", + "name": "SpaceDelegation__AlreadyDelegated" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__AlreadyRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidAddress" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidOperator" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidSpace" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidStakeRequirement" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidStatusTransition" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__NotEnoughStake" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__NotRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__NotTransferable" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__StatusNotChanged" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "mainnetDelegation", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "MainnetDelegationChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "riverToken", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "RiverTokenChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "space", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "SpaceDelegatedToOperator", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stakeRequirement", + "type": "uint256", + "indexed": false + } + ], + "type": "event", + "name": "StakeRequirementChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "space", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getSpaceDelegation", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getSpaceDelegationsByOperator", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "name": "getTotalDelegation", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ] + }, + { + "inputs": [], + "stateMutability": "view", + "type": "function", + "name": "riverToken", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ] + }, + { + "inputs": [ + { + "internalType": "address", + "name": "mainnetDelegation_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "setMainnetDelegation" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "riverToken", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "setRiverToken" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stakeRequirement_", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "name": "setStakeRequirement" + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol": "ISpaceDelegation" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol": { + "keccak256": "0xb7796a50a2686902fb7bc6b25664b6a24c485092718c9eb8501a61b841a36c04", + "urls": [ + "bzz-raw://a54b27f059faa0868c8df0757de492ad8559040cb6956ff71595c8e3f1c783c5", + "dweb:/ipfs/QmXy4KFpJEHDvDCNNyEdbeYhUGJtamd8DToKHTbBXuWwdp" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/abis/ISpaceDelegationBase.abi.json b/packages/generated/dev/abis/ISpaceDelegationBase.abi.json new file mode 100644 index 000000000..95af23048 --- /dev/null +++ b/packages/generated/dev/abis/ISpaceDelegationBase.abi.json @@ -0,0 +1,121 @@ +[ + { + "type": "event", + "name": "MainnetDelegationChanged", + "inputs": [ + { + "name": "mainnetDelegation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RiverTokenChanged", + "inputs": [ + { + "name": "riverToken", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SpaceDelegatedToOperator", + "inputs": [ + { + "name": "space", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "StakeRequirementChanged", + "inputs": [ + { + "name": "stakeRequirement", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "SpaceDelegation__AlreadyDelegated", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SpaceDelegation__AlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidSpace", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidStakeRequirement", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidStatusTransition", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotEnoughStake", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotTransferable", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__StatusNotChanged", + "inputs": [] + } +] \ No newline at end of file diff --git a/packages/generated/dev/abis/ISpaceDelegationBase.abi.ts b/packages/generated/dev/abis/ISpaceDelegationBase.abi.ts new file mode 100644 index 000000000..4a467bc9a --- /dev/null +++ b/packages/generated/dev/abis/ISpaceDelegationBase.abi.ts @@ -0,0 +1,121 @@ +export default [ + { + "type": "event", + "name": "MainnetDelegationChanged", + "inputs": [ + { + "name": "mainnetDelegation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RiverTokenChanged", + "inputs": [ + { + "name": "riverToken", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SpaceDelegatedToOperator", + "inputs": [ + { + "name": "space", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "StakeRequirementChanged", + "inputs": [ + { + "name": "stakeRequirement", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "SpaceDelegation__AlreadyDelegated", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SpaceDelegation__AlreadyRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidOperator", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidSpace", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidStakeRequirement", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__InvalidStatusTransition", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotEnoughStake", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotRegistered", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__NotTransferable", + "inputs": [] + }, + { + "type": "error", + "name": "SpaceDelegation__StatusNotChanged", + "inputs": [] + } +] as const diff --git a/packages/generated/dev/abis/ISpaceDelegationBase.bin b/packages/generated/dev/abis/ISpaceDelegationBase.bin new file mode 100644 index 000000000..e69de29bb diff --git a/packages/generated/dev/abis/ISpaceDelegationBase.json b/packages/generated/dev/abis/ISpaceDelegationBase.json new file mode 100644 index 000000000..723857531 --- /dev/null +++ b/packages/generated/dev/abis/ISpaceDelegationBase.json @@ -0,0 +1 @@ +{"abi":[{"type":"event","name":"MainnetDelegationChanged","inputs":[{"name":"mainnetDelegation","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RiverTokenChanged","inputs":[{"name":"riverToken","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"SpaceDelegatedToOperator","inputs":[{"name":"space","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"StakeRequirementChanged","inputs":[{"name":"stakeRequirement","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"SpaceDelegation__AlreadyDelegated","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"type":"error","name":"SpaceDelegation__AlreadyRegistered","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidAddress","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidOperator","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidSpace","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidStakeRequirement","inputs":[]},{"type":"error","name":"SpaceDelegation__InvalidStatusTransition","inputs":[]},{"type":"error","name":"SpaceDelegation__NotEnoughStake","inputs":[]},{"type":"error","name":"SpaceDelegation__NotRegistered","inputs":[]},{"type":"error","name":"SpaceDelegation__NotTransferable","inputs":[]},{"type":"error","name":"SpaceDelegation__StatusNotChanged","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"SpaceDelegation__AlreadyDelegated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__AlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidSpace\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidStakeRequirement\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidStatusTransition\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotEnoughStake\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotTransferable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__StatusNotChanged\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"mainnetDelegation\",\"type\":\"address\"}],\"name\":\"MainnetDelegationChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"riverToken\",\"type\":\"address\"}],\"name\":\"RiverTokenChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"space\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"SpaceDelegatedToOperator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeRequirement\",\"type\":\"uint256\"}],\"name\":\"StakeRequirementChanged\",\"type\":\"event\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol\":\"ISpaceDelegationBase\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/@openzeppelin/\",\":@prb/math/=lib/@prb/math/src/\",\":@prb/test/=lib/@prb/test/src/\",\":account-abstraction/=lib/account-abstraction/contracts/\",\":base64/=lib/base64/\",\":ds-test/=lib/ds-test/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=lib/hardhat-deploy/\"]},\"sources\":{\"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol\":{\"keccak256\":\"0xb7796a50a2686902fb7bc6b25664b6a24c485092718c9eb8501a61b841a36c04\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a54b27f059faa0868c8df0757de492ad8559040cb6956ff71595c8e3f1c783c5\",\"dweb:/ipfs/QmXy4KFpJEHDvDCNNyEdbeYhUGJtamd8DToKHTbBXuWwdp\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"type":"error","name":"SpaceDelegation__AlreadyDelegated"},{"inputs":[],"type":"error","name":"SpaceDelegation__AlreadyRegistered"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidAddress"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidOperator"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidSpace"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidStakeRequirement"},{"inputs":[],"type":"error","name":"SpaceDelegation__InvalidStatusTransition"},{"inputs":[],"type":"error","name":"SpaceDelegation__NotEnoughStake"},{"inputs":[],"type":"error","name":"SpaceDelegation__NotRegistered"},{"inputs":[],"type":"error","name":"SpaceDelegation__NotTransferable"},{"inputs":[],"type":"error","name":"SpaceDelegation__StatusNotChanged"},{"inputs":[{"internalType":"address","name":"mainnetDelegation","type":"address","indexed":true}],"type":"event","name":"MainnetDelegationChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"riverToken","type":"address","indexed":true}],"type":"event","name":"RiverTokenChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"space","type":"address","indexed":true},{"internalType":"address","name":"operator","type":"address","indexed":true}],"type":"event","name":"SpaceDelegatedToOperator","anonymous":false},{"inputs":[{"internalType":"uint256","name":"stakeRequirement","type":"uint256","indexed":false}],"type":"event","name":"StakeRequirementChanged","anonymous":false}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/@openzeppelin/","@prb/math/=lib/@prb/math/src/","@prb/test/=lib/@prb/test/src/","account-abstraction/=lib/account-abstraction/contracts/","base64/=lib/base64/","ds-test/=lib/ds-test/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=lib/hardhat-deploy/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol":"ISpaceDelegationBase"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol":{"keccak256":"0xb7796a50a2686902fb7bc6b25664b6a24c485092718c9eb8501a61b841a36c04","urls":["bzz-raw://a54b27f059faa0868c8df0757de492ad8559040cb6956ff71595c8e3f1c783c5","dweb:/ipfs/QmXy4KFpJEHDvDCNNyEdbeYhUGJtamd8DToKHTbBXuWwdp"],"license":"MIT"}},"version":1},"id":80} \ No newline at end of file diff --git a/packages/generated/dev/abis/ISpaceDelegationBase.metadata.json b/packages/generated/dev/abis/ISpaceDelegationBase.metadata.json new file mode 100644 index 000000000..bfbb393e9 --- /dev/null +++ b/packages/generated/dev/abis/ISpaceDelegationBase.metadata.json @@ -0,0 +1,175 @@ +{ + "compiler": { + "version": "0.8.24+commit.e11b9ed9" + }, + "language": "Solidity", + "output": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "type": "error", + "name": "SpaceDelegation__AlreadyDelegated" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__AlreadyRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidAddress" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidOperator" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidSpace" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidStakeRequirement" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__InvalidStatusTransition" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__NotEnoughStake" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__NotRegistered" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__NotTransferable" + }, + { + "inputs": [], + "type": "error", + "name": "SpaceDelegation__StatusNotChanged" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "mainnetDelegation", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "MainnetDelegationChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "riverToken", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "RiverTokenChanged", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "address", + "name": "space", + "type": "address", + "indexed": true + }, + { + "internalType": "address", + "name": "operator", + "type": "address", + "indexed": true + } + ], + "type": "event", + "name": "SpaceDelegatedToOperator", + "anonymous": false + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stakeRequirement", + "type": "uint256", + "indexed": false + } + ], + "type": "event", + "name": "StakeRequirementChanged", + "anonymous": false + } + ], + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + } + }, + "settings": { + "remappings": [ + "@openzeppelin/=lib/@openzeppelin/", + "@prb/math/=lib/@prb/math/src/", + "@prb/test/=lib/@prb/test/src/", + "account-abstraction/=lib/account-abstraction/contracts/", + "base64/=lib/base64/", + "ds-test/=lib/ds-test/src/", + "forge-std/=lib/forge-std/src/", + "hardhat-deploy/=lib/hardhat-deploy/" + ], + "optimizer": { + "enabled": true, + "runs": 200 + }, + "metadata": { + "bytecodeHash": "none", + "appendCBOR": false + }, + "compilationTarget": { + "contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol": "ISpaceDelegationBase" + }, + "evmVersion": "paris", + "libraries": {} + }, + "sources": { + "contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol": { + "keccak256": "0xb7796a50a2686902fb7bc6b25664b6a24c485092718c9eb8501a61b841a36c04", + "urls": [ + "bzz-raw://a54b27f059faa0868c8df0757de492ad8559040cb6956ff71595c8e3f1c783c5", + "dweb:/ipfs/QmXy4KFpJEHDvDCNNyEdbeYhUGJtamd8DToKHTbBXuWwdp" + ], + "license": "MIT" + } + }, + "version": 1 +} \ No newline at end of file diff --git a/packages/generated/dev/typings/IERC721A.ts b/packages/generated/dev/typings/IERC721A.ts new file mode 100644 index 000000000..cd1ba0361 --- /dev/null +++ b/packages/generated/dev/typings/IERC721A.ts @@ -0,0 +1,634 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, + PromiseOrValue, +} from "./common"; + +export interface IERC721AInterface extends utils.Interface { + functions: { + "approve(address,uint256)": FunctionFragment; + "balanceOf(address)": FunctionFragment; + "getApproved(uint256)": FunctionFragment; + "isApprovedForAll(address,address)": FunctionFragment; + "name()": FunctionFragment; + "ownerOf(uint256)": FunctionFragment; + "safeTransferFrom(address,address,uint256)": FunctionFragment; + "safeTransferFrom(address,address,uint256,bytes)": FunctionFragment; + "setApprovalForAll(address,bool)": FunctionFragment; + "symbol()": FunctionFragment; + "tokenURI(uint256)": FunctionFragment; + "totalSupply()": FunctionFragment; + "transferFrom(address,address,uint256)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "approve" + | "balanceOf" + | "getApproved" + | "isApprovedForAll" + | "name" + | "ownerOf" + | "safeTransferFrom(address,address,uint256)" + | "safeTransferFrom(address,address,uint256,bytes)" + | "setApprovalForAll" + | "symbol" + | "tokenURI" + | "totalSupply" + | "transferFrom" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "approve", + values: [PromiseOrValue, PromiseOrValue] + ): string; + encodeFunctionData( + functionFragment: "balanceOf", + values: [PromiseOrValue] + ): string; + encodeFunctionData( + functionFragment: "getApproved", + values: [PromiseOrValue] + ): string; + encodeFunctionData( + functionFragment: "isApprovedForAll", + values: [PromiseOrValue, PromiseOrValue] + ): string; + encodeFunctionData(functionFragment: "name", values?: undefined): string; + encodeFunctionData( + functionFragment: "ownerOf", + values: [PromiseOrValue] + ): string; + encodeFunctionData( + functionFragment: "safeTransferFrom(address,address,uint256)", + values: [ + PromiseOrValue, + PromiseOrValue, + PromiseOrValue + ] + ): string; + encodeFunctionData( + functionFragment: "safeTransferFrom(address,address,uint256,bytes)", + values: [ + PromiseOrValue, + PromiseOrValue, + PromiseOrValue, + PromiseOrValue + ] + ): string; + encodeFunctionData( + functionFragment: "setApprovalForAll", + values: [PromiseOrValue, PromiseOrValue] + ): string; + encodeFunctionData(functionFragment: "symbol", values?: undefined): string; + encodeFunctionData( + functionFragment: "tokenURI", + values: [PromiseOrValue] + ): string; + encodeFunctionData( + functionFragment: "totalSupply", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [ + PromiseOrValue, + PromiseOrValue, + PromiseOrValue + ] + ): string; + + decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getApproved", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isApprovedForAll", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "safeTransferFrom(address,address,uint256)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "safeTransferFrom(address,address,uint256,bytes)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setApprovalForAll", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "totalSupply", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + + events: { + "Approval(address,address,uint256)": EventFragment; + "ApprovalForAll(address,address,bool)": EventFragment; + "ConsecutiveTransfer(uint256,uint256,address,address)": EventFragment; + "Transfer(address,address,uint256)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ConsecutiveTransfer"): EventFragment; + getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; +} + +export interface ApprovalEventObject { + owner: string; + approved: string; + tokenId: BigNumber; +} +export type ApprovalEvent = TypedEvent< + [string, string, BigNumber], + ApprovalEventObject +>; + +export type ApprovalEventFilter = TypedEventFilter; + +export interface ApprovalForAllEventObject { + owner: string; + operator: string; + approved: boolean; +} +export type ApprovalForAllEvent = TypedEvent< + [string, string, boolean], + ApprovalForAllEventObject +>; + +export type ApprovalForAllEventFilter = TypedEventFilter; + +export interface ConsecutiveTransferEventObject { + fromTokenId: BigNumber; + toTokenId: BigNumber; + from: string; + to: string; +} +export type ConsecutiveTransferEvent = TypedEvent< + [BigNumber, BigNumber, string, string], + ConsecutiveTransferEventObject +>; + +export type ConsecutiveTransferEventFilter = + TypedEventFilter; + +export interface TransferEventObject { + from: string; + to: string; + tokenId: BigNumber; +} +export type TransferEvent = TypedEvent< + [string, string, BigNumber], + TransferEventObject +>; + +export type TransferEventFilter = TypedEventFilter; + +export interface IERC721A extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IERC721AInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + balanceOf( + owner: PromiseOrValue, + overrides?: CallOverrides + ): Promise<[BigNumber] & { balance: BigNumber }>; + + getApproved( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise<[string] & { operator: string }>; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides + ): Promise<[boolean]>; + + name(overrides?: CallOverrides): Promise<[string]>; + + ownerOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise<[string] & { owner: string }>; + + "safeTransferFrom(address,address,uint256)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + data: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + _approved: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue } + ): Promise; + + symbol(overrides?: CallOverrides): Promise<[string]>; + + tokenURI( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise<[string]>; + + totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + }; + + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + balanceOf( + owner: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + getApproved( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + ownerOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + data: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + _approved: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue } + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenURI( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + callStatic: { + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + balanceOf( + owner: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + getApproved( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + ownerOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + data: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + _approved: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenURI( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "Approval(address,address,uint256)"( + owner?: PromiseOrValue | null, + approved?: PromiseOrValue | null, + tokenId?: PromiseOrValue | null + ): ApprovalEventFilter; + Approval( + owner?: PromiseOrValue | null, + approved?: PromiseOrValue | null, + tokenId?: PromiseOrValue | null + ): ApprovalEventFilter; + + "ApprovalForAll(address,address,bool)"( + owner?: PromiseOrValue | null, + operator?: PromiseOrValue | null, + approved?: null + ): ApprovalForAllEventFilter; + ApprovalForAll( + owner?: PromiseOrValue | null, + operator?: PromiseOrValue | null, + approved?: null + ): ApprovalForAllEventFilter; + + "ConsecutiveTransfer(uint256,uint256,address,address)"( + fromTokenId?: PromiseOrValue | null, + toTokenId?: null, + from?: PromiseOrValue | null, + to?: PromiseOrValue | null + ): ConsecutiveTransferEventFilter; + ConsecutiveTransfer( + fromTokenId?: PromiseOrValue | null, + toTokenId?: null, + from?: PromiseOrValue | null, + to?: PromiseOrValue | null + ): ConsecutiveTransferEventFilter; + + "Transfer(address,address,uint256)"( + from?: PromiseOrValue | null, + to?: PromiseOrValue | null, + tokenId?: PromiseOrValue | null + ): TransferEventFilter; + Transfer( + from?: PromiseOrValue | null, + to?: PromiseOrValue | null, + tokenId?: PromiseOrValue | null + ): TransferEventFilter; + }; + + estimateGas: { + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + balanceOf( + owner: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + getApproved( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + ownerOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + data: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + _approved: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue } + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenURI( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + }; + + populateTransaction: { + approve( + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + balanceOf( + owner: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + getApproved( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + isApprovedForAll( + owner: PromiseOrValue, + operator: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + ownerOf( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + data: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + + setApprovalForAll( + operator: PromiseOrValue, + _approved: PromiseOrValue, + overrides?: Overrides & { from?: PromiseOrValue } + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenURI( + tokenId: PromiseOrValue, + overrides?: CallOverrides + ): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transferFrom( + from: PromiseOrValue, + to: PromiseOrValue, + tokenId: PromiseOrValue, + overrides?: PayableOverrides & { from?: PromiseOrValue } + ): Promise; + }; +} diff --git a/packages/generated/dev/typings/factories/IERC721A__factory.ts b/packages/generated/dev/typings/factories/IERC721A__factory.ts new file mode 100644 index 000000000..44610c9c5 --- /dev/null +++ b/packages/generated/dev/typings/factories/IERC721A__factory.ts @@ -0,0 +1,443 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { IERC721A, IERC721AInterface } from "../IERC721A"; + +const _abi = [ + { + type: "function", + name: "approve", + inputs: [ + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "tokenId", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [], + stateMutability: "payable", + }, + { + type: "function", + name: "balanceOf", + inputs: [ + { + name: "owner", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getApproved", + inputs: [ + { + name: "tokenId", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "operator", + type: "address", + internalType: "address", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "isApprovedForAll", + inputs: [ + { + name: "owner", + type: "address", + internalType: "address", + }, + { + name: "operator", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "name", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "ownerOf", + inputs: [ + { + name: "tokenId", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "owner", + type: "address", + internalType: "address", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "safeTransferFrom", + inputs: [ + { + name: "from", + type: "address", + internalType: "address", + }, + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "tokenId", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [], + stateMutability: "payable", + }, + { + type: "function", + name: "safeTransferFrom", + inputs: [ + { + name: "from", + type: "address", + internalType: "address", + }, + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "tokenId", + type: "uint256", + internalType: "uint256", + }, + { + name: "data", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [], + stateMutability: "payable", + }, + { + type: "function", + name: "setApprovalForAll", + inputs: [ + { + name: "operator", + type: "address", + internalType: "address", + }, + { + name: "_approved", + type: "bool", + internalType: "bool", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "symbol", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "tokenURI", + inputs: [ + { + name: "tokenId", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "totalSupply", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "transferFrom", + inputs: [ + { + name: "from", + type: "address", + internalType: "address", + }, + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "tokenId", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [], + stateMutability: "payable", + }, + { + type: "event", + name: "Approval", + inputs: [ + { + name: "owner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "approved", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "tokenId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ApprovalForAll", + inputs: [ + { + name: "owner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "operator", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "approved", + type: "bool", + indexed: false, + internalType: "bool", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ConsecutiveTransfer", + inputs: [ + { + name: "fromTokenId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "toTokenId", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "from", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Transfer", + inputs: [ + { + name: "from", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "tokenId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "ApprovalCallerNotOwnerNorApproved", + inputs: [], + }, + { + type: "error", + name: "ApprovalQueryForNonexistentToken", + inputs: [], + }, + { + type: "error", + name: "BalanceQueryForZeroAddress", + inputs: [], + }, + { + type: "error", + name: "MintERC2309QuantityExceedsLimit", + inputs: [], + }, + { + type: "error", + name: "MintToZeroAddress", + inputs: [], + }, + { + type: "error", + name: "MintZeroQuantity", + inputs: [], + }, + { + type: "error", + name: "OwnerQueryForNonexistentToken", + inputs: [], + }, + { + type: "error", + name: "OwnershipNotInitializedForExtraData", + inputs: [], + }, + { + type: "error", + name: "TransferCallerNotOwnerNorApproved", + inputs: [], + }, + { + type: "error", + name: "TransferFromIncorrectOwner", + inputs: [], + }, + { + type: "error", + name: "TransferToNonERC721ReceiverImplementer", + inputs: [], + }, + { + type: "error", + name: "TransferToZeroAddress", + inputs: [], + }, + { + type: "error", + name: "URIQueryForNonexistentToken", + inputs: [], + }, +] as const; + +export class IERC721A__factory { + static readonly abi = _abi; + static createInterface(): IERC721AInterface { + return new utils.Interface(_abi) as IERC721AInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IERC721A { + return new Contract(address, _abi, signerOrProvider) as IERC721A; + } +} diff --git a/packages/generated/dev/typings/factories/index.ts b/packages/generated/dev/typings/factories/index.ts index 5b56885ea..6b6c57c57 100644 --- a/packages/generated/dev/typings/factories/index.ts +++ b/packages/generated/dev/typings/factories/index.ts @@ -7,6 +7,7 @@ export { IChannel__factory } from "./IChannel__factory"; export { ICustomEntitlement__factory } from "./ICustomEntitlement__factory"; export { IDiamond__factory } from "./IDiamond__factory"; export { IDiamondCut__factory } from "./IDiamondCut__factory"; +export { IERC721A__factory } from "./IERC721A__factory"; export { IERC721AQueryable__factory } from "./IERC721AQueryable__factory"; export { IEntitlementDataQueryable__factory } from "./IEntitlementDataQueryable__factory"; export { IEntitlementsManager__factory } from "./IEntitlementsManager__factory"; diff --git a/packages/generated/dev/typings/index.ts b/packages/generated/dev/typings/index.ts index 99766f932..82e970514 100644 --- a/packages/generated/dev/typings/index.ts +++ b/packages/generated/dev/typings/index.ts @@ -7,6 +7,7 @@ export type { IChannel } from "./IChannel"; export type { ICustomEntitlement } from "./ICustomEntitlement"; export type { IDiamond } from "./IDiamond"; export type { IDiamondCut } from "./IDiamondCut"; +export type { IERC721A } from "./IERC721A"; export type { IERC721AQueryable } from "./IERC721AQueryable"; export type { IEntitlementDataQueryable } from "./IEntitlementDataQueryable"; export type { IEntitlementsManager } from "./IEntitlementsManager"; @@ -39,6 +40,7 @@ export { IDiamond__factory } from "./factories/IDiamond__factory"; export { IDiamondCut__factory } from "./factories/IDiamondCut__factory"; export { IEntitlementDataQueryable__factory } from "./factories/IEntitlementDataQueryable__factory"; export { IEntitlementsManager__factory } from "./factories/IEntitlementsManager__factory"; +export { IERC721A__factory } from "./factories/IERC721A__factory"; export { IERC721AQueryable__factory } from "./factories/IERC721AQueryable__factory"; export { IMulticall__factory } from "./factories/IMulticall__factory"; export { INodeRegistry__factory } from "./factories/INodeRegistry__factory"; diff --git a/scripts/build-contract-types.sh b/scripts/build-contract-types.sh index 5fea162e5..037cbe6fc 100755 --- a/scripts/build-contract-types.sh +++ b/scripts/build-contract-types.sh @@ -14,11 +14,11 @@ ABI_DIR="packages/generated/${VERSION}/abis" forge build -CONTRACT_INTERFACES="(IDiamond|IDiamondCut|IArchitect|IProxyManager|IPausable|IEntitlementsManager|IChannel|IRoles|IMulticall|IRuleEntitlement|IWalletLink|INodeRegistry|IOperatorRegistry|IStreamRegistry|OwnableFacet|TokenPausableFacet|UserEntitlement|ISpaceOwner|MockERC721A|MembershipFacet|Member|IBanning|IPricingModules|ICustomEntitlement|MockEntitlementGated|PrepayFacet|IERC721AQueryable|IEntitlementDataQueryable|PlatformRequirementsFacet)" +CONTRACT_INTERFACES="(IDiamond|IDiamondCut|IArchitect|IProxyManager|IPausable|IEntitlementsManager|IChannel|IRoles|IMulticall|IRuleEntitlement|IWalletLink|INodeRegistry|IOperatorRegistry|IStreamRegistry|OwnableFacet|TokenPausableFacet|UserEntitlement|ISpaceOwner|MockERC721A|MembershipFacet|Member|IBanning|IPricingModules|ICustomEntitlement|MockEntitlementGated|PrepayFacet|IERC721AQueryable|IEntitlementDataQueryable|PlatformRequirementsFacet|IERC721A|INodeOperator,ISpaceDelegation,IEntitlementChecker)" yarn typechain --target=ethers-v5 "contracts/out/**/?${CONTRACT_INTERFACES}.json" --out-dir "packages/generated/${VERSION}/typings" -mkdir -p $ABI_DIR && cp -a contracts/out/{Diamond,DiamondCutFacet,Architect,ProxyManager,IPausable,EntitlementsManager,Channels,Roles,IMulticall,OwnableFacet,WalletLink,NodeRegistry,OperatorRegistry,StreamRegistry,TokenPausableFacet,IRuleEntitlement,UserEntitlement,SpaceOwner,MockERC721A,MembershipFacet,Member,MockRiverRegistry,IBanning,IPricingModules,ICustomEntitlement,MockCustomEntitlement,MockEntitlementGated,PrepayFacet,IERC721AQueryable,IEntitlementDataQueryable,PlatformRequirementsFacet}.sol/* "$ABI_DIR" +mkdir -p $ABI_DIR && cp -a contracts/out/{Diamond,DiamondCutFacet,Architect,ProxyManager,IPausable,EntitlementsManager,Channels,Roles,IMulticall,OwnableFacet,WalletLink,NodeRegistry,OperatorRegistry,StreamRegistry,TokenPausableFacet,IRuleEntitlement,UserEntitlement,SpaceOwner,MockERC721A,MembershipFacet,Member,MockRiverRegistry,IBanning,IPricingModules,ICustomEntitlement,MockCustomEntitlement,MockEntitlementGated,PrepayFacet,IERC721AQueryable,IEntitlementDataQueryable,PlatformRequirementsFacet,IERC721A,INodeOperator,ISpaceDelegation,IEntitlementChecker}.sol/* "$ABI_DIR" # Copy the json abis to TS files for type inference for file in $ABI_DIR/*.abi.json; do