UNPKG

@river-build/generated

Version:

## How to generate contract types

1,276 lines (1,275 loc) 24.1 kB
export default [ { "type": "function", "name": "CLOCK_MODE", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "DOMAIN_SEPARATOR", "inputs": [], "outputs": [ { "name": "result", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "__ERC721A_init", "inputs": [ { "name": "name_", "type": "string", "internalType": "string" }, { "name": "symbol_", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "__SpaceOwner_init", "inputs": [ { "name": "name", "type": "string", "internalType": "string" }, { "name": "symbol", "type": "string", "internalType": "string" }, { "name": "version", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "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": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "clock", "inputs": [], "outputs": [ { "name": "", "type": "uint48", "internalType": "uint48" } ], "stateMutability": "view" }, { "type": "function", "name": "delegate", "inputs": [ { "name": "delegatee", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "delegateBySig", "inputs": [ { "name": "delegatee", "type": "address", "internalType": "address" }, { "name": "nonce", "type": "uint256", "internalType": "uint256" }, { "name": "expiry", "type": "uint256", "internalType": "uint256" }, { "name": "v", "type": "uint8", "internalType": "uint8" }, { "name": "r", "type": "bytes32", "internalType": "bytes32" }, { "name": "s", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "delegates", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "eip712Domain", "inputs": [], "outputs": [ { "name": "fields", "type": "bytes1", "internalType": "bytes1" }, { "name": "name", "type": "string", "internalType": "string" }, { "name": "version", "type": "string", "internalType": "string" }, { "name": "chainId", "type": "uint256", "internalType": "uint256" }, { "name": "verifyingContract", "type": "address", "internalType": "address" }, { "name": "salt", "type": "bytes32", "internalType": "bytes32" }, { "name": "extensions", "type": "uint256[]", "internalType": "uint256[]" } ], "stateMutability": "view" }, { "type": "function", "name": "getApproved", "inputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getDefaultUri", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "getFactory", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getPastTotalSupply", "inputs": [ { "name": "timepoint", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getPastVotes", "inputs": [ { "name": "account", "type": "address", "internalType": "address" }, { "name": "timepoint", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getSpaceByTokenId", "inputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getSpaceInfo", "inputs": [ { "name": "space", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct ISpaceOwnerBase.Space", "components": [ { "name": "name", "type": "string", "internalType": "string" }, { "name": "uri", "type": "string", "internalType": "string" }, { "name": "tokenId", "type": "uint256", "internalType": "uint256" }, { "name": "createdAt", "type": "uint256", "internalType": "uint256" }, { "name": "shortDescription", "type": "string", "internalType": "string" }, { "name": "longDescription", "type": "string", "internalType": "string" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getVotes", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "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": "mintSpace", "inputs": [ { "name": "name", "type": "string", "internalType": "string" }, { "name": "uri", "type": "string", "internalType": "string" }, { "name": "space", "type": "address", "internalType": "address" }, { "name": "shortDescription", "type": "string", "internalType": "string" }, { "name": "longDescription", "type": "string", "internalType": "string" } ], "outputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "name", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "nextTokenId", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "nonces", "inputs": [ { "name": "owner", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "result", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "ownerOf", "inputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "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": "setDefaultUri", "inputs": [ { "name": "uri", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setFactory", "inputs": [ { "name": "factory", "type": "address", "internalType": "address" } ], "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": "function", "name": "updateSpaceInfo", "inputs": [ { "name": "space", "type": "address", "internalType": "address" }, { "name": "name", "type": "string", "internalType": "string" }, { "name": "uri", "type": "string", "internalType": "string" }, { "name": "shortDescription", "type": "string", "internalType": "string" }, { "name": "longDescription", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "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": "DelegateChanged", "inputs": [ { "name": "delegator", "type": "address", "indexed": true, "internalType": "address" }, { "name": "fromDelegate", "type": "address", "indexed": true, "internalType": "address" }, { "name": "toDelegate", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "DelegateVotesChanged", "inputs": [ { "name": "delegate", "type": "address", "indexed": true, "internalType": "address" }, { "name": "previousVotes", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "newVotes", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "EIP712DomainChanged", "inputs": [], "anonymous": false }, { "type": "event", "name": "GuardianDefaultCooldownUpdated", "inputs": [ { "name": "cooldown", "type": "uint256", "indexed": true, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "GuardianUpdated", "inputs": [ { "name": "caller", "type": "address", "indexed": true, "internalType": "address" }, { "name": "enabled", "type": "bool", "indexed": true, "internalType": "bool" }, { "name": "cooldown", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "timestamp", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "Initialized", "inputs": [ { "name": "version", "type": "uint32", "indexed": false, "internalType": "uint32" } ], "anonymous": false }, { "type": "event", "name": "InterfaceAdded", "inputs": [ { "name": "interfaceId", "type": "bytes4", "indexed": true, "internalType": "bytes4" } ], "anonymous": false }, { "type": "event", "name": "InterfaceRemoved", "inputs": [ { "name": "interfaceId", "type": "bytes4", "indexed": true, "internalType": "bytes4" } ], "anonymous": false }, { "type": "event", "name": "MetadataUpdate", "inputs": [ { "name": "_tokenId", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "OwnershipTransferred", "inputs": [ { "name": "previousOwner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newOwner", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "SpaceOwner__SetDefaultUri", "inputs": [ { "name": "uri", "type": "string", "indexed": false, "internalType": "string" } ], "anonymous": false }, { "type": "event", "name": "SpaceOwner__SetFactory", "inputs": [ { "name": "factory", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "SpaceOwner__UpdateSpace", "inputs": [ { "name": "space", "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": "ECDSAInvalidSignature", "inputs": [] }, { "type": "error", "name": "ECDSAInvalidSignatureLength", "inputs": [ { "name": "length", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "ECDSAInvalidSignatureS", "inputs": [ { "name": "s", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "Guardian_AlreadyDisabled", "inputs": [] }, { "type": "error", "name": "Guardian_AlreadyEnabled", "inputs": [] }, { "type": "error", "name": "Guardian_Enabled", "inputs": [] }, { "type": "error", "name": "Initializable_AlreadyInitialized", "inputs": [ { "name": "version", "type": "uint32", "internalType": "uint32" } ] }, { "type": "error", "name": "Initializable_InInitializingState", "inputs": [] }, { "type": "error", "name": "Initializable_NotInInitializingState", "inputs": [] }, { "type": "error", "name": "Introspection_AlreadySupported", "inputs": [] }, { "type": "error", "name": "Introspection_NotSupported", "inputs": [] }, { "type": "error", "name": "InvalidAccountNonce", "inputs": [ { "name": "account", "type": "address", "internalType": "address" }, { "name": "currentNonce", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "MintERC2309QuantityExceedsLimit", "inputs": [] }, { "type": "error", "name": "MintToZeroAddress", "inputs": [] }, { "type": "error", "name": "MintZeroQuantity", "inputs": [] }, { "type": "error", "name": "Ownable__NotOwner", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "Ownable__ZeroAddress", "inputs": [] }, { "type": "error", "name": "OwnerQueryForNonexistentToken", "inputs": [] }, { "type": "error", "name": "OwnershipNotInitializedForExtraData", "inputs": [] }, { "type": "error", "name": "SafeCastOverflowedUintDowncast", "inputs": [ { "name": "bits", "type": "uint8", "internalType": "uint8" }, { "name": "value", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "SpaceOwner__DefaultUriNotSet", "inputs": [] }, { "type": "error", "name": "SpaceOwner__OnlyFactoryAllowed", "inputs": [] }, { "type": "error", "name": "SpaceOwner__OnlySpaceOwnerAllowed", "inputs": [] }, { "type": "error", "name": "SpaceOwner__SpaceNotFound", "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": [] }, { "type": "error", "name": "Validator__InvalidAddress", "inputs": [] }, { "type": "error", "name": "Validator__InvalidStringLength", "inputs": [] }, { "type": "error", "name": "VotesExpiredSignature", "inputs": [ { "name": "expiry", "type": "uint256", "internalType": "uint256" } ] } ] as const