@river-build/generated
Version:
## How to generate contract types
581 lines • 17.8 kB
JSON
{
"compiler": {
"version": "0.8.24+commit.e11b9ed9"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
}
],
"type": "error",
"name": "AddressEmptyCode"
},
{
"inputs": [
{
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"type": "error",
"name": "ERC1967InvalidImplementation"
},
{
"inputs": [],
"type": "error",
"name": "ERC1967NonPayable"
},
{
"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": "FailedCall"
},
{
"inputs": [],
"type": "error",
"name": "InvalidInitialization"
},
{
"inputs": [],
"type": "error",
"name": "NotInitializing"
},
{
"inputs": [],
"type": "error",
"name": "UUPSUnauthorizedCallContext"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "slot",
"type": "bytes32"
}
],
"type": "error",
"name": "UUPSUnsupportedProxiableUUID"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "version",
"type": "uint64",
"indexed": false
}
],
"type": "event",
"name": "Initialized",
"anonymous": false
},
{
"inputs": [
{
"internalType": "address",
"name": "implementation",
"type": "address",
"indexed": true
}
],
"type": "event",
"name": "Upgraded",
"anonymous": false
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "SPACE_ADDRESS",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "UPGRADE_INTERFACE_VERSION",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "description",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
]
},
{
"inputs": [
{
"internalType": "uint256",
"name": "roleId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function",
"name": "getEntitlementDataByRoleId",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
]
},
{
"inputs": [
{
"internalType": "address",
"name": "_space",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "initialize"
},
{
"inputs": [],
"stateMutability": "pure",
"type": "function",
"name": "isCrosschain",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
]
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "channelId",
"type": "bytes32"
},
{
"internalType": "address[]",
"name": "wallets",
"type": "address[]"
},
{
"internalType": "bytes32",
"name": "permission",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function",
"name": "isEntitled",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "moduleType",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "proxiableUUID",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
]
},
{
"inputs": [
{
"internalType": "uint256",
"name": "roleId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "removeEntitlement"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "roleId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "entitlementData",
"type": "bytes"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "setEntitlement"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function",
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
]
},
{
"inputs": [
{
"internalType": "address",
"name": "newImplementation",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"stateMutability": "payable",
"type": "function",
"name": "upgradeToAndCall"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"constructor": {
"custom:oz-upgrades-unsafe-allow": "constructor"
},
"getEntitlementDataByRoleId(uint256)": {
"params": {
"roleId": "the roleId to fetch the entitlement data for"
},
"returns": {
"_0": "entitlementData array for the role"
}
},
"isCrosschain()": {
"returns": {
"_0": "whether this entitlement will require crosschain evaluation"
}
},
"proxiableUUID()": {
"details": "Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
},
"removeEntitlement(uint256)": {
"params": {
"roleId": "id of the role to remove"
}
},
"setEntitlement(uint256,bytes)": {
"params": {
"entitlementData": "abi encoded array of data necessary to set the entitlement",
"roleId": "id of the role to gate"
}
},
"supportsInterface(bytes4)": {
"details": "See {IERC165-supportsInterface}."
},
"upgradeToAndCall(address,bytes)": {
"custom:oz-upgrades-unsafe-allow-reachable": "delegatecall",
"details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"description()": {
"notice": "The description of the entitlement module"
},
"getEntitlementDataByRoleId(uint256)": {
"notice": "fetches the entitlement data for a roleId"
},
"isCrosschain()": {
"notice": "some entitlements require cross chain evaluation and may not be executed directly from other contracts"
},
"moduleType()": {
"notice": "The type of the entitlement module"
},
"name()": {
"notice": "The name of the entitlement module"
},
"removeEntitlement(uint256)": {
"notice": "removes an entitlement"
},
"setEntitlement(uint256,bytes)": {
"notice": "sets a new entitlement"
}
},
"version": 1
}
},
"settings": {
"remappings": [
"@openzeppelin/=node_modules/@openzeppelin/",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"@prb/math/=node_modules/@prb/math/src/",
"@prb/test/=node_modules/@prb/test/src/",
"@river-build/diamond/=node_modules/@river-build/diamond/",
"@solidity/=node_modules/crypto-lib/src/",
"account-abstraction/=node_modules/account-abstraction/contracts/",
"crypto-lib/=node_modules/crypto-lib/src/",
"ds-test/=node_modules/ds-test/src/",
"forge-std/=node_modules/forge-std/src/",
"hardhat-deploy/=node_modules/hardhat-deploy/",
"solady/=node_modules/solady/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "none",
"appendCBOR": false
},
"compilationTarget": {
"contracts/src/spaces/entitlements/user/UserEntitlement.sol": "UserEntitlement"
},
"evmVersion": "paris",
"libraries": {}
},
"sources": {
"contracts/src/spaces/entitlements/IEntitlement.sol": {
"keccak256": "0x81712a4b9127000ba341966d99395917dcb4b1305eadeddd1e1ad4e562587fdd",
"urls": [
"bzz-raw://df0fcc9d7ed7489786684f5fa8375b277146969021f96f6a9feb81cb39176eca",
"dweb:/ipfs/QmbxXXeXe6AzXUL8cSoABMx2E2QbRAK2uJXd8TRnDuKSJ8"
],
"license": "MIT"
},
"contracts/src/spaces/entitlements/user/IUserEntitlement.sol": {
"keccak256": "0x573a718650f7088b84fe0bc6ec0b85c354c58c842691c66b2e682912455161c9",
"urls": [
"bzz-raw://5b41f88dd0e806b3f61b72f340dbdc53710827b1c8de9bcba6ba11fd1f8ae25a",
"dweb:/ipfs/QmZZtrWAgx3aLFA2dXuoHtujBqEuxAkHZkMP4FdmEAcQRx"
],
"license": "MIT"
},
"contracts/src/spaces/entitlements/user/UserEntitlement.sol": {
"keccak256": "0xb210baad6226d8405366b141e9c6b12b4400d2cdff64020c147ba23001d5e9ea",
"urls": [
"bzz-raw://e9c3b3a9c763326aebccc932be913229f50c32136b90ce34b5900d7d87f0ce57",
"dweb:/ipfs/Qmc4pzjGhSFgPu2oLvuiqUmphzvkv73rbG72fqWA4Wcx2Q"
],
"license": "MIT"
},
"contracts/src/spaces/facets/channels/IChannel.sol": {
"keccak256": "0x8940643f9701981062aeb6adfb8d0b7387acdaecae0baaca01e372330252769e",
"urls": [
"bzz-raw://aa59ac6c1cd515f476398776e27fc0dfa5f5563192d60a793620cde2f84e6ed9",
"dweb:/ipfs/QmVLiENXctwtHuSBmw5z4458bw8EbYzfKCVn3ZgqoaJ1MA"
],
"license": "MIT"
},
"contracts/src/spaces/facets/roles/IRoles.sol": {
"keccak256": "0x8e83ae75871b3aa2f2c2885770c0c810e7cf53b4bcb06ff3d73bbcc49b7a7a65",
"urls": [
"bzz-raw://3995418818a37c318df894c3a64f646f9a70113b0edf54fa34dc4c5ba2f426ed",
"dweb:/ipfs/QmSeDc6kasbA8THfZU5fS5uQbbeV3X85qauF8PapgXzgT3"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol": {
"keccak256": "0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b",
"urls": [
"bzz-raw://7a61054ae84cd6c4d04c0c4450ba1d6de41e27e0a2c4f1bcdf58f796b401c609",
"dweb:/ipfs/QmUvtdp7X1mRVyC3CsHrtPbgoqWaXHp3S1ZR24tpAQYJWM"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol": {
"keccak256": "0xd861907d1168dcaec2a7846edbaed12feb8bad2d6781dba987be01374f90b495",
"urls": [
"bzz-raw://12ff809243040419e2fc2aa7ef0aaa60b3e6ebc901553ba1de970ceeef208c4c",
"dweb:/ipfs/QmX2dwMVNrQAahqVzEx94gqcVB6Z8ovifPYdEfHZzj7aEb"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol": {
"keccak256": "0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397",
"urls": [
"bzz-raw://08e39f23d5b4692f9a40803e53a8156b72b4c1f9902a88cd65ba964db103dab9",
"dweb:/ipfs/QmPKn6EYDgpga7KtpkA8wV2yJCYGMtc9K4LkJfhKX2RVSV"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol": {
"keccak256": "0xc8ed8d2056934b7675b695dec032f2920c2f5c6cf33a17ca85650940675323ab",
"urls": [
"bzz-raw://3c8ccc75d1cd792d192aa09e54dd49ea35fe85baa9fcd17486f29227d9f29b89",
"dweb:/ipfs/QmbboSbFUEiM9tdEgBwuTRb7bykFoJXZ7dsSr1PSREJXMr"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/interfaces/IERC1967.sol": {
"keccak256": "0xb25a4f11fa80c702bf5cd85adec90e6f6f507f32f4a8e6f5dbc31e8c10029486",
"urls": [
"bzz-raw://6917f8a323e7811f041aecd4d9fd6e92455a6fba38a797ac6f6e208c7912b79d",
"dweb:/ipfs/QmShuYv55wYHGi4EFkDB8QfF7ZCHoKk2efyz3AWY1ExSq7"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/interfaces/draft-IERC1822.sol": {
"keccak256": "0xc42facb5094f2f35f066a7155bda23545e39a3156faef3ddc00185544443ba7d",
"urls": [
"bzz-raw://d3b36282ab029b46bd082619a308a2ea11c309967b9425b7b7a6eb0b0c1c3196",
"dweb:/ipfs/QmP2YVfDB2FoREax3vJu7QhDnyYRMw52WPrCD4vdT2kuDA"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol": {
"keccak256": "0x8decfa54cec979c824b044b8128cd91d713f72c71fd7dfa54974624d8c949898",
"urls": [
"bzz-raw://271f914261a19d87117a777e0924ada545c16191ef9b00cc40b0134fc14ebc70",
"dweb:/ipfs/QmdvVNWHGHQrGGPonZJs5NuzTevTjZRM2zayKrDJf7WBA2"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/proxy/beacon/IBeacon.sol": {
"keccak256": "0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c",
"urls": [
"bzz-raw://5aa4f07e65444784c29cd7bfcc2341b34381e4e5b5da9f0c5bd00d7f430e66fa",
"dweb:/ipfs/QmWRMh4Q9DpaU9GvsiXmDdoNYMyyece9if7hnfLz7uqzWM"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/utils/Address.sol": {
"keccak256": "0xaaa1d17c1129b127a4a401db2fbd72960e2671474be3d08cae71ccdc42f7624c",
"urls": [
"bzz-raw://cb2f27cd3952aa667e198fba0d9b7bcec52fbb12c16f013c25fe6fb52b29cc0e",
"dweb:/ipfs/QmeuohBFoeyDPZA9JNCTEDz3VBfBD4EABWuWXVhHAuEpKR"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/utils/Errors.sol": {
"keccak256": "0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123",
"urls": [
"bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf",
"dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/utils/StorageSlot.sol": {
"keccak256": "0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97",
"urls": [
"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b",
"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol": {
"keccak256": "0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8",
"urls": [
"bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621",
"dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/utils/structs/EnumerableSet.sol": {
"keccak256": "0x9b161e97b8967d4bc0c08d25741889a30692cdda4b71910bf1b0e315f1962212",
"urls": [
"bzz-raw://821500c39d095eaa25b06f46e65f1d0e97c4c96b39227f79077dee7d9e84051f",
"dweb:/ipfs/QmSTeGorKzSWF6HAmxo32uCZiEuKNvreQdUiX1AaYtUMTz"
],
"license": "MIT"
}
},
"version": 1
}