@river-build/generated
Version:
## How to generate contract types
1 lines • 21.4 kB
JSON
{"abi":[{"type":"function","name":"addSpaceDelegation","inputs":[{"name":"space","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getSpaceDelegation","inputs":[{"name":"space","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getSpaceDelegationsByOperator","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getSpaceFactory","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getTotalDelegation","inputs":[{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"mainnetDelegation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"removeSpaceDelegation","inputs":[{"name":"space","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"riverToken","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"setMainnetDelegation","inputs":[{"name":"mainnetDelegation_","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setRiverToken","inputs":[{"name":"riverToken","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setSpaceFactory","inputs":[{"name":"spaceFactory","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setStakeRequirement","inputs":[{"name":"stakeRequirement_","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"stakeRequirement","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"event","name":"MainnetDelegationChanged","inputs":[{"name":"mainnetDelegation","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RiverTokenChanged","inputs":[{"name":"riverToken","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"SpaceDelegatedToOperator","inputs":[{"name":"space","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"SpaceFactoryChanged","inputs":[{"name":"spaceFactory","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"StakeRequirementChanged","inputs":[{"name":"stakeRequirement","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"SpaceDelegation__AlreadyDelegated","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"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":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"addSpaceDelegation(address,address)":"af338e53","getSpaceDelegation(address)":"5fd864a6","getSpaceDelegationsByOperator(address)":"1e7f6864","getSpaceFactory()":"79dda585","getTotalDelegation(address)":"fc5e7e09","mainnetDelegation()":"624f03ea","removeSpaceDelegation(address)":"f04efb8e","riverToken()":"7beac451","setMainnetDelegation(address)":"16014886","setRiverToken(address)":"0d6f24c0","setSpaceFactory(address)":"da43f3d6","setStakeRequirement(uint256)":"4f09e304","stakeRequirement()":"b6f9bbb9"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"SpaceDelegation__AlreadyDelegated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__AlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidSpace\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidStakeRequirement\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__InvalidStatusTransition\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotEnoughStake\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__NotTransferable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDelegation__StatusNotChanged\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"mainnetDelegation\",\"type\":\"address\"}],\"name\":\"MainnetDelegationChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"riverToken\",\"type\":\"address\"}],\"name\":\"RiverTokenChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"space\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"SpaceDelegatedToOperator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spaceFactory\",\"type\":\"address\"}],\"name\":\"SpaceFactoryChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeRequirement\",\"type\":\"uint256\"}],\"name\":\"StakeRequirementChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"space\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"addSpaceDelegation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"space\",\"type\":\"address\"}],\"name\":\"getSpaceDelegation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"getSpaceDelegationsByOperator\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSpaceFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"getTotalDelegation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mainnetDelegation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"space\",\"type\":\"address\"}],\"name\":\"removeSpaceDelegation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"riverToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"mainnetDelegation_\",\"type\":\"address\"}],\"name\":\"setMainnetDelegation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"riverToken\",\"type\":\"address\"}],\"name\":\"setRiverToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spaceFactory\",\"type\":\"address\"}],\"name\":\"setSpaceFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"stakeRequirement_\",\"type\":\"uint256\"}],\"name\":\"setStakeRequirement\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeRequirement\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"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\":{\"compilationTarget\":{\"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol\":\"ISpaceDelegation\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"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/\"]},\"sources\":{\"contracts/src/base/registry/facets/delegation/ISpaceDelegation.sol\":{\"keccak256\":\"0x0f50eb9a8373cdb67aeaeed33b55c6fb753f220bc3fca63e812a5d47a7462f8b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a3048af423c2885b2a7ad999b2e78cf848cf375bc2bfeb249e59c501278ae000\",\"dweb:/ipfs/QmV1aAZRg4gNGJKkyaBFtFCm1cbEyG8VadwPS41JcVuMwB\"]}},\"version\":1}","metadata":{"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},"id":128}