@river-build/generated
Version:
## How to generate contract types
980 lines (979 loc) • 19 kB
text/typescript
export default [
{
"type": "function",
"name": "addRoleToChannel",
"inputs": [
{
"name": "channelId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "roleId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "createChannel",
"inputs": [
{
"name": "channelId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "metadata",
"type": "string",
"internalType": "string"
},
{
"name": "roleIds",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "createChannelWithOverridePermissions",
"inputs": [
{
"name": "channelId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "metadata",
"type": "string",
"internalType": "string"
},
{
"name": "rolePermissions",
"type": "tuple[]",
"internalType": "struct IChannelBase.RolePermissions[]",
"components": [
{
"name": "roleId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "permissions",
"type": "string[]",
"internalType": "string[]"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getChannel",
"inputs": [
{
"name": "channelId",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "channel",
"type": "tuple",
"internalType": "struct IChannelBase.Channel",
"components": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "disabled",
"type": "bool",
"internalType": "bool"
},
{
"name": "metadata",
"type": "string",
"internalType": "string"
},
{
"name": "roleIds",
"type": "uint256[]",
"internalType": "uint256[]"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getChannels",
"inputs": [],
"outputs": [
{
"name": "channels",
"type": "tuple[]",
"internalType": "struct IChannelBase.Channel[]",
"components": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "disabled",
"type": "bool",
"internalType": "bool"
},
{
"name": "metadata",
"type": "string",
"internalType": "string"
},
{
"name": "roleIds",
"type": "uint256[]",
"internalType": "uint256[]"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRolesByChannel",
"inputs": [
{
"name": "channelId",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "roleIds",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "removeChannel",
"inputs": [
{
"name": "channelId",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "removeRoleFromChannel",
"inputs": [
{
"name": "channelId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "roleId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateChannel",
"inputs": [
{
"name": "channelId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "metadata",
"type": "string",
"internalType": "string"
},
{
"name": "disabled",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Approval",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "approved",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ApprovalForAll",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "operator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "approved",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Banned",
"inputs": [
{
"name": "moderator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ChannelCreated",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ChannelRemoved",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ChannelRoleAdded",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
},
{
"name": "roleId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ChannelRoleRemoved",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
},
{
"name": "roleId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ChannelUpdated",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ConsecutiveTransfer",
"inputs": [
{
"name": "fromTokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "toTokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"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": "OwnershipTransferred",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Paused",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "PermissionsAddedToChannelRole",
"inputs": [
{
"name": "updater",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "roleId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "PermissionsRemovedFromChannelRole",
"inputs": [
{
"name": "updater",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "roleId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "PermissionsUpdatedForChannelRole",
"inputs": [
{
"name": "updater",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "roleId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleCreated",
"inputs": [
{
"name": "creator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "roleId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleRemoved",
"inputs": [
{
"name": "remover",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "roleId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleUpdated",
"inputs": [
{
"name": "updater",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "roleId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "SubscriptionUpdate",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "expiration",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Unbanned",
"inputs": [
{
"name": "moderator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Unpaused",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "ApprovalCallerNotOwnerNorApproved",
"inputs": []
},
{
"type": "error",
"name": "ApprovalQueryForNonexistentToken",
"inputs": []
},
{
"type": "error",
"name": "BalanceQueryForZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "Banning__AlreadyBanned",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "Banning__CannotBanOwner",
"inputs": []
},
{
"type": "error",
"name": "Banning__CannotBanSelf",
"inputs": []
},
{
"type": "error",
"name": "Banning__InvalidTokenId",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "Banning__NotBanned",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "ChannelService__ChannelAlreadyExists",
"inputs": []
},
{
"type": "error",
"name": "ChannelService__ChannelDisabled",
"inputs": []
},
{
"type": "error",
"name": "ChannelService__ChannelDoesNotExist",
"inputs": []
},
{
"type": "error",
"name": "ChannelService__RoleAlreadyExists",
"inputs": []
},
{
"type": "error",
"name": "ChannelService__RoleDoesNotExist",
"inputs": []
},
{
"type": "error",
"name": "ERC5643__DurationZero",
"inputs": []
},
{
"type": "error",
"name": "ERC5643__InvalidTokenId",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "ERC5643__NotApprovedOrOwner",
"inputs": []
},
{
"type": "error",
"name": "ERC5643__SubscriptionNotRenewable",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"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": "Initializable_InInitializingState",
"inputs": []
},
{
"type": "error",
"name": "Introspection_AlreadySupported",
"inputs": []
},
{
"type": "error",
"name": "Introspection_NotSupported",
"inputs": []
},
{
"type": "error",
"name": "MintERC2309QuantityExceedsLimit",
"inputs": []
},
{
"type": "error",
"name": "MintToZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "MintZeroQuantity",
"inputs": []
},
{
"type": "error",
"name": "Ownable__NotOwner",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
},
{
"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": "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": []
},
{
"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": []
},
{
"type": "error",
"name": "Validator__InvalidStringLength",
"inputs": []
}
] as const