@river-build/generated
Version:
## How to generate contract types
1,958 lines • 74.4 kB
JSON
{
"compiler": {
"version": "0.8.24+commit.e11b9ed9"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
}
],
"type": "error",
"name": "AddressEmptyCode"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"type": "error",
"name": "AddressInsufficientBalance"
},
{
"inputs": [],
"type": "error",
"name": "ApprovalCallerNotOwnerNorApproved"
},
{
"inputs": [],
"type": "error",
"name": "ApprovalQueryForNonexistentToken"
},
{
"inputs": [],
"type": "error",
"name": "BalanceQueryForZeroAddress"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"type": "error",
"name": "Banning__AlreadyBanned"
},
{
"inputs": [],
"type": "error",
"name": "Banning__CannotBanOwner"
},
{
"inputs": [],
"type": "error",
"name": "Banning__CannotBanSelf"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"type": "error",
"name": "Banning__InvalidTokenId"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"type": "error",
"name": "Banning__NotBanned"
},
{
"inputs": [],
"type": "error",
"name": "Dispatcher__InvalidCaller"
},
{
"inputs": [],
"type": "error",
"name": "Dispatcher__InvalidValue"
},
{
"inputs": [],
"type": "error",
"name": "ERC5643__DurationZero"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"type": "error",
"name": "ERC5643__InvalidTokenId"
},
{
"inputs": [],
"type": "error",
"name": "ERC5643__NotApprovedOrOwner"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"type": "error",
"name": "ERC5643__SubscriptionNotRenewable"
},
{
"inputs": [],
"type": "error",
"name": "EntitlementGated_InvalidAddress"
},
{
"inputs": [],
"type": "error",
"name": "EntitlementGated_NodeAlreadyVoted"
},
{
"inputs": [],
"type": "error",
"name": "EntitlementGated_NodeNotFound"
},
{
"inputs": [],
"type": "error",
"name": "EntitlementGated_TransactionCheckAlreadyCompleted"
},
{
"inputs": [],
"type": "error",
"name": "EntitlementGated_TransactionCheckAlreadyRegistered"
},
{
"inputs": [],
"type": "error",
"name": "EntitlementGated_TransactionNotRegistered"
},
{
"inputs": [],
"type": "error",
"name": "Entitlement__InvalidValue"
},
{
"inputs": [],
"type": "error",
"name": "Entitlement__NotAllowed"
},
{
"inputs": [],
"type": "error",
"name": "Entitlement__NotMember"
},
{
"inputs": [],
"type": "error",
"name": "Entitlement__ValueAlreadyExists"
},
{
"inputs": [],
"type": "error",
"name": "FailedInnerCall"
},
{
"inputs": [],
"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": "Membership__AlreadyMember"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InsufficientAllowance"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InsufficientPayment"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidAddress"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidCurrency"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidDuration"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidFeeRecipient"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidFreeAllocation"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidLimit"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidMaxSupply"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidPayment"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidPrice"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidPricingModule"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidReferralBps"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidReferralCode"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidReferralTime"
},
{
"inputs": [],
"type": "error",
"name": "Membership__InvalidTokenId"
},
{
"inputs": [],
"type": "error",
"name": "Membership__MaxSupplyReached"
},
{
"inputs": [],
"type": "error",
"name": "Membership__NotExpired"
},
{
"inputs": [],
"type": "error",
"name": "Membership__PriceTooLow"
},
{
"inputs": [],
"type": "error",
"name": "MintERC2309QuantityExceedsLimit"
},
{
"inputs": [],
"type": "error",
"name": "MintToZeroAddress"
},
{
"inputs": [],
"type": "error",
"name": "MintZeroQuantity"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"type": "error",
"name": "Ownable__NotOwner"
},
{
"inputs": [],
"type": "error",
"name": "Ownable__ZeroAddress"
},
{
"inputs": [],
"type": "error",
"name": "OwnerQueryForNonexistentToken"
},
{
"inputs": [],
"type": "error",
"name": "OwnershipNotInitializedForExtraData"
},
{
"inputs": [],
"type": "error",
"name": "Pausable__NotPaused"
},
{
"inputs": [],
"type": "error",
"name": "Pausable__Paused"
},
{
"inputs": [],
"type": "error",
"name": "Prepay__InvalidAddress"
},
{
"inputs": [],
"type": "error",
"name": "Prepay__InvalidAmount"
},
{
"inputs": [],
"type": "error",
"name": "Prepay__InvalidMembership"
},
{
"inputs": [],
"type": "error",
"name": "Prepay__InvalidSupplyAmount"
},
{
"inputs": [],
"type": "error",
"name": "ReentrancyGuard__ReentrantCall"
},
{
"inputs": [],
"type": "error",
"name": "Roles__EntitlementAlreadyExists"
},
{
"inputs": [],
"type": "error",
"name": "Roles__EntitlementDoesNotExist"
},
{
"inputs": [],
"type": "error",
"name": "Roles__InvalidEntitlementAddress"
},
{
"inputs": [],
"type": "error",
"name": "Roles__InvalidPermission"
},
{
"inputs": [],
"type": "error",
"name": "Roles__PermissionAlreadyExists"
},
{
"inputs": [],
"type": "error",
"name": "Roles__PermissionDoesNotExist"
},
{
"inputs": [],
"type": "error",
"name": "Roles__RoleDoesNotExist"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"type": "error",
"name": "SafeERC20FailedOperation"
},
{
"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": "address",
"name": "moderator",
"type": "address",
"indexed": true
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "Banned",
"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": "bytes32",
"name": "transactionId",
"type": "bytes32",
"indexed": true
},
{
"internalType": "enum IEntitlementGatedBase.NodeVoteStatus",
"name": "result",
"type": "uint8",
"indexed": false
}
],
"type": "event",
"name": "EntitlementCheckResultPosted",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint32",
"name": "version",
"type": "uint32",
"indexed": false
}
],
"type": "event",
"name": "Initialized",
"anonymous": false
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4",
"indexed": true
}
],
"type": "event",
"name": "InterfaceAdded",
"anonymous": false
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4",
"indexed": true
}
],
"type": "event",
"name": "InterfaceRemoved",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "currency",
"type": "address",
"indexed": true
}
],
"type": "event",
"name": "MembershipCurrencyUpdated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address",
"indexed": true
}
],
"type": "event",
"name": "MembershipFeeRecipientUpdated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint256",
"name": "allocation",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "MembershipFreeAllocationUpdated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint256",
"name": "limit",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "MembershipLimitUpdated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint256",
"name": "price",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "MembershipPriceUpdated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address",
"indexed": true
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "MembershipTokenIssued",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address",
"indexed": true
}
],
"type": "event",
"name": "MembershipTokenRejected",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address",
"indexed": true
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256",
"indexed": false
}
],
"type": "event",
"name": "MembershipWithdrawal",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint256",
"name": "code",
"type": "uint256",
"indexed": true
},
{
"internalType": "uint16",
"name": "bps",
"type": "uint16",
"indexed": false
}
],
"type": "event",
"name": "Membership__ReferralCreated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint256",
"name": "code",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "Membership__ReferralRemoved",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint256",
"name": "code",
"type": "uint256",
"indexed": true
},
{
"internalType": "uint16",
"name": "bps",
"type": "uint16",
"indexed": false
},
{
"internalType": "uint256",
"name": "startTime",
"type": "uint256",
"indexed": false
},
{
"internalType": "uint256",
"name": "endTime",
"type": "uint256",
"indexed": false
}
],
"type": "event",
"name": "Membership__ReferralTimeCreated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "previousOwner",
"type": "address",
"indexed": true
},
{
"internalType": "address",
"name": "newOwner",
"type": "address",
"indexed": true
}
],
"type": "event",
"name": "OwnershipTransferred",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address",
"indexed": false
}
],
"type": "event",
"name": "Paused",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint256",
"name": "supply",
"type": "uint256",
"indexed": false
}
],
"type": "event",
"name": "Prepay__Prepaid",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "creator",
"type": "address",
"indexed": true
},
{
"internalType": "uint256",
"name": "roleId",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "RoleCreated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "remover",
"type": "address",
"indexed": true
},
{
"internalType": "uint256",
"name": "roleId",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "RoleRemoved",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "updater",
"type": "address",
"indexed": true
},
{
"internalType": "uint256",
"name": "roleId",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "RoleUpdated",
"anonymous": false
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256",
"indexed": true
},
{
"internalType": "uint64",
"name": "expiration",
"type": "uint64",
"indexed": false
}
],
"type": "event",
"name": "SubscriptionUpdate",
"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": "moderator",
"type": "address",
"indexed": true
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256",
"indexed": true
}
],
"type": "event",
"name": "Unbanned",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address",
"indexed": false
}
],
"type": "event",
"name": "Unpaused",
"anonymous": false
},
{
"inputs": [
{
"internalType": "string",
"name": "name_",
"type": "string"
},
{
"internalType": "string",
"name": "symbol_",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "__ERC721A_init"
},
{
"inputs": [
{
"internalType": "contract IEntitlementChecker",
"name": "entitlementChecker",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "__EntitlementGated_init"
},
{
"inputs": [
{
"internalType": "struct IMembershipBase.Membership",
"name": "info",
"type": "tuple",
"components": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "symbol",
"type": "string"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxSupply",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "duration",
"type": "uint64"
},
{
"internalType": "address",
"name": "currency",
"type": "address"
},
{
"internalType": "address",
"name": "feeRecipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "freeAllocation",
"type": "uint256"
},
{
"internalType": "address",
"name": "pricingModule",
"type": "address"
}
]
},
{
"internalType": "address",
"name": "spaceFactory",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "__Membership_init"
},
{
"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": "",
"type": "uint256"
}
]
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function",
"name": "expiresAt",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
]
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function",
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "getMembershipCurrency",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "getMembershipDuration",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "getMembershipFreeAllocation",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "getMembershipImage",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "getMembershipLimit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "getMembershipPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "getMembershipPricingModule",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
]
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function",
"name": "getMembershipRenewalPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
]
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "transactionId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "roleId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function",
"name": "getRuleData",
"outputs": [
{
"internalType": "struct IRuleEntitlement.RuleData",
"name": "",
"type": "tuple",
"components": [
{
"internalType": "struct IRuleEntitlement.Operation[]",
"name": "operations",
"type": "tuple[]",
"components": [
{
"internalType": "enum IRuleEntitlement.CombinedOperationType",
"name": "opType",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "index",
"type": "uint8"
}
]
},
{
"internalType": "struct IRuleEntitlement.CheckOperation[]",
"name": "checkOperations",
"type": "tuple[]",
"components": [
{
"internalType": "enum IRuleEntitlement.CheckOperationType",
"name": "opType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "address",
"name": "contractAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "threshold",
"type": "uint256"
}
]
},
{
"internalType": "struct IRuleEntitlement.LogicalOperation[]",
"name": "logicalOperations",
"type": "tuple[]",
"components": [
{
"internalType": "enum IRuleEntitlement.LogicalOperationType",
"name": "logOpType",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "leftOperationIndex",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "rightOperationIndex",
"type": "uint8"
}
]
}
]
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "getSpaceFactory",
"outputs": [
{
"internalType": "address",
"name": "",
"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": [
{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"stateMutability": "payable",
"type": "function",
"name": "joinSpace"
},
{
"inputs": [
{
"internalType": "address",
"name": "receiver",
"type": "address"
},
{
"internalType": "address",
"name": "referrer",
"type": "address"
},
{
"internalType": "uint256",
"name": "referralCode",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function",
"name": "joinSpaceWithReferral"
},
{
"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": "",
"type": "address"
}
]
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "transactionId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "roleId",
"type": "uint256"
},
{
"internalType": "enum IEntitlementGatedBase.NodeVoteStatus",
"name": "result",
"type": "uint8"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "postEntitlementCheckResult"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function",
"name": "renewMembership"
},
{
"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": [
{
"internalType": "uint256",
"name": "newAllocation",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "setMembershipFreeAllocation"
},
{
"inputs": [
{
"internalType": "string",
"name": "newImage",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "setMembershipImage"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newLimit",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "setMembershipLimit"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newPrice",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "setMembershipPrice"
},
{
"inputs": [
{
"internalType": "address",
"name": "pricingModule",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "setMembershipPricingModule"
},
{
"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"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "withdraw"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"__Membership_init((string,string,uint256,uint256,uint64,address,address,uint256,address),address)": {
"details": "Initialization logic when facet is added to diamond"
},
"approve(address,uint256)": {
"details": "Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. Requirements: - The caller must own the token or be an approved operator."
},
"balanceOf(address)": {
"details": "Returns the number of tokens in `owner`'s account."
},
"expiresAt(uint256)": {
"params": {
"tokenId": "The token id of the membership"
}
},
"getApproved(uint256)": {
"details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."
},
"getMembershipCurrency()": {
"returns": {
"_0": "The membership currency"
}
},
"getMembershipDuration()": {
"returns": {
"_0": "The membership duration"
}
},
"getMembershipFreeAllocation()": {
"returns": {
"_0": "The membership free allocation"
}
},
"getMembershipImage()": {
"returns": {
"_0": "The membership image"
}
},
"getMembershipLimit()": {
"returns": {
"_0": "The membership limit"
}
},
"getMembershipPrice()": {
"returns": {
"_0": "The membership price"
}
},
"getMembershipPricingModule()": {
"returns": {
"_0": "The membership pricing module"
}
},
"getMembershipRenewalPrice(uint256)": {
"params": {
"tokenId": "The token id of the membership"
},
"returns": {
"_0": "The membership renewal price"
}
},
"getSpaceFactory()": {
"returns": {
"_0": "The space factory"
}
},
"isApprovedForAll(address,address)": {
"details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}."
},
"joinSpace(address)": {
"params": {
"receiver": "The address of the receiver"
}
},
"joinSpaceWithReferral(address,address,uint256)": {
"params": {
"receiver": "The address of the receiver",
"referralCode": "The referral code",
"referrer": "The address of the referrer"
}
},
"name()": {
"details": "Returns the token collection name."
},
"ownerOf(uint256)": {
"details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."
},
"renewMembership(uint256)": {
"params": {
"tokenId": "The token id of the membership"
}
},
"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`. 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 approved 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."
},
"setMembershipFreeAllocation(uint256)": {
"params": {
"newAllocation": "The new membership free allocation"
}
},
"setMembershipLimit(uint256)": {
"params": {
"newLimit": "The new membership limit"
}
},
"setMembershipPrice(uint256)": {
"params": {
"newPrice": "The new membership price"
}
},
"setMembershipPricingModule(address)": {
"params": {
"pricingModule": "The new pricing module"
}
},
"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`. 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": {
"expiresAt(uint256)": {
"notice": "Return the expiration date of a membership"
},
"getMembershipCurrency()": {
"notice": "Get the membership currency"
},
"getMembershipDuration()": {
"notice": "Get the membership duration"
},
"getMembershipFreeAllocation()": {
"notice": "Get the membership free allocation"
},
"getMembershipImage()": {
"notice": "Get the membership image"
},
"getMembershipLimit()": {
"notice": "Get the membership limit"
},
"getMembershipPrice()": {
"notice": "Get the membership price"
},
"getMembershipPricingModule()": {
"notice": "Get the membership pricing module"
},
"getMembershipRenewalPrice(uint256)": {
"notice": "Get the membership renewal price"
},
"getSpaceFactory()": {
"notice": "Get the space factory"
},
"joinSpace(address)": {
"notice": "Join a space"
},
"joinSpaceWithReferral(address,address,uint256)": {
"notice": "Join a space with a referral"
},
"renewMembership(uint256)": {
"notice": "Renew a space membership"
},
"setMembershipFreeAllocation(uint256)": {
"notice": "Set the membership free allocation"
},
"setMembershipLimit(uint256)": {
"notice": "Set the membership limit"
},
"setMembershipPrice(uint256)": {
"notice": "Set the membership price"
},
"setMembershipPricingModule(address)": {
"notice": "Set the membership pricing module"
}
},
"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/spaces/facets/membership/MembershipFacet.sol": "MembershipFacet"
},
"evmVersion": "paris",
"libraries": {}
},
"sources": {
"contracts/src/base/registry/facets/checker/IEntitlementChecker.sol": {
"keccak256": "0xbeb7bfa236f19172b29eac53be03a3b377de3524b2d836192b0c64ebe708c204",
"urls": [
"bzz-raw://3d5a103a2b7b6be1ffa6662db6081763bcd210216fefc25307b835c555e0cf4d",
"dweb:/ipfs/QmUCvhZdZpVnyJuZVgd2qGduTf11384TmmBJb2RaEBHxhh"
],
"license": "MIT"
},
"contracts/src/diamond/facets/Facet.sol": {
"keccak256": "0x931702541a5e4a2756665e53baf1b04aa0418d5a9c635e519058905e21ae0c57",
"urls": [
"bzz-raw://b785043acac69be2d2545bc4492b2c08b6e931a53737f8508baf3f98c8743863",
"dweb:/ipfs/QmeLzqURWDmXHJftmMXRsywdJw96CNDB9DQmgTpG1woYvc"
],
"license": "MIT"
},
"contracts/src/diamond/facets/initializable/Initializable.sol": {
"keccak256": "0xe02e99665b5acb22d5c508c3bda97c35acd2597ce0a58569a19cc12f0010da90",
"urls": [
"bzz-raw://b586a51dbe63e8763ae0b2b3dadd5c8559f47bc8cbaa0e9fe52aaec4c3677552",
"dweb:/ipfs/QmRtaVikg6YDwzUAtY7WV793taZgT1ZxyMB4PLAEqGBeCC"
],
"license": "MIT"
},
"contracts/src/diamond/facets/initializable/InitializableStorage.sol": {
"keccak256": "0xf8170e6977d685c218f65185478fbb9916e64f63aab1dcd195056438466f458a",
"urls": [
"bzz-raw://83ea3cf77f012eef93d10593e3beded36b449611063fd8dfbdb44e4346f87eb4",
"dweb:/ipfs/QmVasL7QnxXEmiUsLJzpfig8717zLUhZfyQxiBbFGDEVVg"
],
"license": "MIT"
},
"contracts/src/diamond/facets/introspection/IERC165.sol": {
"keccak256": "0x486758ee326820b0dd468c6a7a90fda8d67d48d3114792c587cee0e8417b366b",
"urls": [
"bzz-raw://b695090abcec8c2d487d73961265030fa4f64ecd84f6d80b85c6c7d4d9142ea0",
"dweb:/ipfs/QmQTKuV2WEoy6vTCRxL39zEqubLUf9NhoC2BGB19CiYqRq"
],
"license": "MIT"
},
"contracts/src/diamond/facets/introspection/IntrospectionBase.sol": {
"keccak256": "0x93ac0d2f738615e69dbcfd5fa6ac5840ec48329ac92094605638bcf2abd6708f",
"urls": [
"bzz-raw://fbcb2cd0e47b6ef39bec6cbdeedf6e292e8849d4e25f4bb6c72ee574446b02f1",
"dweb:/ipfs/QmcDwxFALaQBLbsGsjdttkQkE48PdKWq43XY7f34MxqZSw"
],
"license": "MIT"
},
"contracts/src/diamond/facets/introspection/IntrospectionStorage.sol": {
"keccak256": "0x306f41ef86bc5050a28c1dbf855d3f6f623be4aebc0a0f96474dae85979f7763",
"urls": [
"bzz-raw://dbad6f8e6685690ae75f6c9066972a45400b45307245feab8990af18a4c38e91",
"dweb:/ipfs/QmcTUqiSL1z2nwokpNNsXQkjVTaFdFJiM2exguZpPDDXEM"
],
"license": "MIT"
},
"contracts/src/diamond/facets/ownable/IERC173.sol": {
"ke