UNPKG

@river-build/generated

Version:

## How to generate contract types

372 lines (371 loc) 10 kB
export default [ { "type": "function", "name": "__Architect_init", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "createSpace", "inputs": [ { "name": "spaceInfo", "type": "tuple", "internalType": "struct ILegacyArchitectBase.SpaceInfo", "components": [ { "name": "name", "type": "string", "internalType": "string" }, { "name": "uri", "type": "string", "internalType": "string" }, { "name": "shortDescription", "type": "string", "internalType": "string" }, { "name": "longDescription", "type": "string", "internalType": "string" }, { "name": "membership", "type": "tuple", "internalType": "struct ILegacyArchitectBase.Membership", "components": [ { "name": "settings", "type": "tuple", "internalType": "struct IMembershipBase.Membership", "components": [ { "name": "name", "type": "string", "internalType": "string" }, { "name": "symbol", "type": "string", "internalType": "string" }, { "name": "price", "type": "uint256", "internalType": "uint256" }, { "name": "maxSupply", "type": "uint256", "internalType": "uint256" }, { "name": "duration", "type": "uint64", "internalType": "uint64" }, { "name": "currency", "type": "address", "internalType": "address" }, { "name": "feeRecipient", "type": "address", "internalType": "address" }, { "name": "freeAllocation", "type": "uint256", "internalType": "uint256" }, { "name": "pricingModule", "type": "address", "internalType": "address" } ] }, { "name": "requirements", "type": "tuple", "internalType": "struct ILegacyArchitectBase.MembershipRequirements", "components": [ { "name": "everyone", "type": "bool", "internalType": "bool" }, { "name": "users", "type": "address[]", "internalType": "address[]" }, { "name": "ruleData", "type": "tuple", "internalType": "struct IRuleEntitlementBase.RuleData", "components": [ { "name": "operations", "type": "tuple[]", "internalType": "struct IRuleEntitlementBase.Operation[]", "components": [ { "name": "opType", "type": "uint8", "internalType": "enum IRuleEntitlementBase.CombinedOperationType" }, { "name": "index", "type": "uint8", "internalType": "uint8" } ] }, { "name": "checkOperations", "type": "tuple[]", "internalType": "struct IRuleEntitlementBase.CheckOperation[]", "components": [ { "name": "opType", "type": "uint8", "internalType": "enum IRuleEntitlementBase.CheckOperationType" }, { "name": "chainId", "type": "uint256", "internalType": "uint256" }, { "name": "contractAddress", "type": "address", "internalType": "address" }, { "name": "threshold", "type": "uint256", "internalType": "uint256" } ] }, { "name": "logicalOperations", "type": "tuple[]", "internalType": "struct IRuleEntitlementBase.LogicalOperation[]", "components": [ { "name": "logOpType", "type": "uint8", "internalType": "enum IRuleEntitlementBase.LogicalOperationType" }, { "name": "leftOperationIndex", "type": "uint8", "internalType": "uint8" }, { "name": "rightOperationIndex", "type": "uint8", "internalType": "uint8" } ] } ] }, { "name": "syncEntitlements", "type": "bool", "internalType": "bool" } ] }, { "name": "permissions", "type": "string[]", "internalType": "string[]" } ] }, { "name": "channel", "type": "tuple", "internalType": "struct ILegacyArchitectBase.ChannelInfo", "components": [ { "name": "metadata", "type": "string", "internalType": "string" } ] } ] } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "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": "Paused", "inputs": [ { "name": "account", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "SpaceCreated", "inputs": [ { "name": "owner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "space", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "Unpaused", "inputs": [ { "name": "account", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "error", "name": "Architect__InvalidAddress", "inputs": [] }, { "type": "error", "name": "Architect__InvalidNetworkId", "inputs": [] }, { "type": "error", "name": "Architect__InvalidStringLength", "inputs": [] }, { "type": "error", "name": "Architect__NotContract", "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": "Pausable__NotPaused", "inputs": [] }, { "type": "error", "name": "Pausable__Paused", "inputs": [] }, { "type": "error", "name": "Reentrancy", "inputs": [] }, { "type": "error", "name": "Validator__InvalidAddress", "inputs": [] } ] as const