UNPKG

@river-build/generated

Version:

## How to generate contract types

494 lines 12.8 kB
{ "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": "address", "name": "spaceFactory", "type": "address", "indexed": true } ], "type": "event", "name": "SpaceFactoryChanged", "anonymous": false }, { "inputs": [ { "internalType": "uint256", "name": "stakeRequirement", "type": "uint256", "indexed": false } ], "type": "event", "name": "StakeRequirementChanged", "anonymous": false }, { "inputs": [ { "internalType": "address", "name": "space", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" } ], "stateMutability": "nonpayable", "type": "function", "name": "addSpaceDelegation" }, { "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": [], "stateMutability": "view", "type": "function", "name": "getSpaceFactory", "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": "mainnetDelegation", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ] }, { "inputs": [ { "internalType": "address", "name": "space", "type": "address" } ], "stateMutability": "nonpayable", "type": "function", "name": "removeSpaceDelegation" }, { "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": "address", "name": "spaceFactory", "type": "address" } ], "stateMutability": "nonpayable", "type": "function", "name": "setSpaceFactory" }, { "inputs": [ { "internalType": "uint256", "name": "stakeRequirement_", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function", "name": "setStakeRequirement" }, { "inputs": [], "stateMutability": "view", "type": "function", "name": "stakeRequirement", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ] } ], "devdoc": { "kind": "dev", "methods": { "addSpaceDelegation(address,address)": { "params": { "operator": "The address of the operator", "space": "The address of the space" } }, "getSpaceDelegation(address)": { "params": { "space": "The address of the space" }, "returns": { "_0": "The address of the operator delegated to the space" } }, "getSpaceDelegationsByOperator(address)": { "params": { "operator": "The address of the operator" }, "returns": { "_0": "An array of space addresses delegated to the operator" } }, "getSpaceFactory()": { "returns": { "_0": "The address of the space factory" } }, "getTotalDelegation(address)": { "params": { "operator": "The address of the operator" }, "returns": { "_0": "The total amount delegated to the operator" } }, "mainnetDelegation()": { "returns": { "_0": "The address of the mainnet delegation contract" } }, "removeSpaceDelegation(address)": { "params": { "space": "The address of the space" } }, "riverToken()": { "returns": { "_0": "The address of the River token contract" } }, "setMainnetDelegation(address)": { "params": { "mainnetDelegation_": "The address of the mainnet delegation contract" } }, "setRiverToken(address)": { "params": { "riverToken": "The address of the River token contract" } }, "setSpaceFactory(address)": { "params": { "spaceFactory": "The address of the space factory" } }, "setStakeRequirement(uint256)": { "params": { "stakeRequirement_": "The new stake requirement amount" } }, "stakeRequirement()": { "returns": { "_0": "The stake requirement amount" } } }, "version": 1 }, "userdoc": { "kind": "user", "methods": { "addSpaceDelegation(address,address)": { "notice": "Adds a space delegation to an operator" }, "getSpaceDelegation(address)": { "notice": "Gets the operator address for a given space" }, "getSpaceDelegationsByOperator(address)": { "notice": "Gets all spaces delegated to a specific operator" }, "getSpaceFactory()": { "notice": "Gets the address of the space factory" }, "getTotalDelegation(address)": { "notice": "Gets the total delegation for a specific operator" }, "mainnetDelegation()": { "notice": "Gets the address of the mainnet delegation contract" }, "removeSpaceDelegation(address)": { "notice": "Removes a space delegation from an operator" }, "riverToken()": { "notice": "Gets the address of the River token" }, "setMainnetDelegation(address)": { "notice": "Sets the address of the mainnet delegation contract" }, "setRiverToken(address)": { "notice": "Sets the address of the River token" }, "setSpaceFactory(address)": { "notice": "Sets the address of the space factory" }, "setStakeRequirement(uint256)": { "notice": "Sets the stake requirement for delegation" }, "stakeRequirement()": { "notice": "Gets the stake requirement for delegation" } }, "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/base/registry/facets/delegation/ISpaceDelegation.sol": "ISpaceDelegation" }, "evmVersion": "paris", "libraries": {} }, "sources": { "contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol": { "keccak256": "0x0f50eb9a8373cdb67aeaeed33b55c6fb753f220bc3fca63e812a5d47a7462f8b", "urls": [ "bzz-raw://a3048af423c2885b2a7ad999b2e78cf848cf375bc2bfeb249e59c501278ae000", "dweb:/ipfs/QmV1aAZRg4gNGJKkyaBFtFCm1cbEyG8VadwPS41JcVuMwB" ], "license": "MIT" } }, "version": 1 }