diff --git a/zion/contracts/zion_goerli/space-manager.json b/zion/contracts/zion_goerli/space-manager.json deleted file mode 100644 index 947ed4961..000000000 --- a/zion/contracts/zion_goerli/space-manager.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "spacemanager": "0x8F5361e1905aBF0a890857b76177f3014aEba679", - "usergranted": "0x43B10374794f787A505fAAE6674a26B124CA2a3a", - "tokengranted": "0xFdaCA400194f5EFc8a75824d0a3D700A60520bD2", - "spacenft": "0xE0791F774682883C4425737cb125b43D702BAD1F", - "permission": "0x02f5973A3433AA8fD6f9a65223bbb992A072e3C3", - "rolemanager": "0x3174cDE8c0B72aE09349Cc75dC5fb1B5de923C43" -} diff --git a/zion/contracts/zion_goerli/zion_space_manager_goerli.go b/zion/contracts/zion_goerli/zion_space_manager_goerli.go deleted file mode 100644 index 9fcbcf9b0..000000000 --- a/zion/contracts/zion_goerli/zion_space_manager_goerli.go +++ /dev/null @@ -1,1211 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zion_goerli - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription -) - -// DataTypesChannel is an auto generated low-level Go binding around an user-defined struct. -type DataTypesChannel struct { - ChannelId *big.Int - CreatedAt *big.Int - NetworkId string - Name string - Creator common.Address - Disabled bool -} - -// DataTypesChannelInfo is an auto generated low-level Go binding around an user-defined struct. -type DataTypesChannelInfo struct { - ChannelId *big.Int - NetworkId string - CreatedAt *big.Int - Name string - Creator common.Address - Disabled bool -} - -// DataTypesChannels is an auto generated low-level Go binding around an user-defined struct. -type DataTypesChannels struct { - IdCounter *big.Int - Channels []DataTypesChannel -} - -// DataTypesCreateChannelData is an auto generated low-level Go binding around an user-defined struct. -type DataTypesCreateChannelData struct { - SpaceNetworkId string - ChannelName string - ChannelNetworkId string - RoleIds []*big.Int -} - -// DataTypesCreateSpaceData is an auto generated low-level Go binding around an user-defined struct. -type DataTypesCreateSpaceData struct { - SpaceName string - SpaceNetworkId string - SpaceMetadata string -} - -// DataTypesCreateSpaceEntitlementData is an auto generated low-level Go binding around an user-defined struct. -type DataTypesCreateSpaceEntitlementData struct { - RoleName string - Permissions []DataTypesPermission - ExternalTokenEntitlements []DataTypesExternalTokenEntitlement - Users []common.Address -} - -// DataTypesEntitlementModuleInfo is an auto generated low-level Go binding around an user-defined struct. -type DataTypesEntitlementModuleInfo struct { - Addr common.Address - Name string - ModuleType string - Description string -} - -// DataTypesExternalToken is an auto generated low-level Go binding around an user-defined struct. -type DataTypesExternalToken struct { - ContractAddress common.Address - Quantity *big.Int - IsSingleToken bool - TokenId *big.Int -} - -// DataTypesExternalTokenEntitlement is an auto generated low-level Go binding around an user-defined struct. -type DataTypesExternalTokenEntitlement struct { - Tokens []DataTypesExternalToken -} - -// DataTypesPermission is an auto generated low-level Go binding around an user-defined struct. -type DataTypesPermission struct { - Name string -} - -// DataTypesSpaceInfo is an auto generated low-level Go binding around an user-defined struct. -type DataTypesSpaceInfo struct { - SpaceId *big.Int - NetworkId string - CreatedAt *big.Int - Name string - Creator common.Address - Owner common.Address - Disabled bool -} - -// ZionSpaceManagerGoerliMetaData contains all meta data concerning the ZionSpaceManagerGoerli contract. -var ZionSpaceManagerGoerliMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_permissionRegistry\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_roleManager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AddRoleFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChannelDoesNotExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DefaultEntitlementModuleNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DefaultPermissionsManagerNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementAlreadyWhitelisted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementModuleNotSupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementNotWhitelisted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidParameters\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NameContainsInvalidCharacters\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NameLengthInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDoesNotExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceNFTNotSet\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission\",\"name\":\"permission\",\"type\":\"tuple\"}],\"name\":\"addPermissionToRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"roleId\",\"type\":\"uint256[]\"}],\"name\":\"addRoleIdsToChannel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"entitlementModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"entitlementData\",\"type\":\"bytes\"}],\"name\":\"addRoleToEntitlementModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelNetworkId\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"roleIds\",\"type\":\"uint256[]\"}],\"internalType\":\"structDataTypes.CreateChannelData\",\"name\":\"data\",\"type\":\"tuple\"}],\"name\":\"createChannel\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"channelId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"createRole\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"roleName\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission[]\",\"name\":\"permissions\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isSingleToken\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ExternalToken[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"}],\"internalType\":\"structDataTypes.ExternalTokenEntitlement[]\",\"name\":\"tokenEntitlements\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"}],\"name\":\"createRoleWithEntitlementData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"spaceName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"spaceMetadata\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.CreateSpaceData\",\"name\":\"info\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"roleName\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission[]\",\"name\":\"permissions\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isSingleToken\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ExternalToken[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"}],\"internalType\":\"structDataTypes.ExternalTokenEntitlement[]\",\"name\":\"externalTokenEntitlements\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"}],\"internalType\":\"structDataTypes.CreateSpaceEntitlementData\",\"name\":\"entitlementData\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission[]\",\"name\":\"everyonePermissions\",\"type\":\"tuple[]\"}],\"name\":\"createSpace\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"}],\"name\":\"getChannelIdByNetworkId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"}],\"name\":\"getChannelInfoByChannelId\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"channelId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structDataTypes.ChannelInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getChannelsBySpaceId\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"idCounter\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"channelId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structDataTypes.Channel[]\",\"name\":\"channels\",\"type\":\"tuple[]\"}],\"internalType\":\"structDataTypes.Channels\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getEntitlementModulesBySpaceId\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getEntitlementsInfoBySpaceId\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"moduleType\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.EntitlementModuleInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"}],\"name\":\"getSpaceIdByNetworkId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getSpaceInfoBySpaceId\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"spaceId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structDataTypes.SpaceInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getSpaceOwnerBySpaceId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSpaces\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"spaceId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structDataTypes.SpaceInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission\",\"name\":\"permission\",\"type\":\"tuple\"}],\"name\":\"isEntitled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"entitlementModuleAddress\",\"type\":\"address\"}],\"name\":\"isEntitlementModuleWhitelisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"roleName\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission[]\",\"name\":\"permissions\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isSingleToken\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ExternalToken[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"}],\"internalType\":\"structDataTypes.ExternalTokenEntitlement[]\",\"name\":\"tokenEntitlements\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"}],\"name\":\"modifyRoleWithEntitlementData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isModified\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"entitlementModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"removeEntitlement\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission\",\"name\":\"permission\",\"type\":\"tuple\"}],\"name\":\"removePermissionFromRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"}],\"name\":\"removeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"roleId\",\"type\":\"uint256[]\"}],\"name\":\"removeRoleIdsFromChannel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelNetworkId\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"setChannelAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"entitlementModule\",\"type\":\"address\"}],\"name\":\"setDefaultTokenEntitlementModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"entitlementModule\",\"type\":\"address\"}],\"name\":\"setDefaultUserEntitlementModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"setSpaceAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spaceNFTAddress\",\"type\":\"address\"}],\"name\":\"setSpaceNFT\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"entitlementAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"whitelist\",\"type\":\"bool\"}],\"name\":\"whitelistEntitlementModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ZionSpaceManagerGoerliABI is the input ABI used to generate the binding from. -// Deprecated: Use ZionSpaceManagerGoerliMetaData.ABI instead. -var ZionSpaceManagerGoerliABI = ZionSpaceManagerGoerliMetaData.ABI - -// ZionSpaceManagerGoerli is an auto generated Go binding around an Ethereum contract. -type ZionSpaceManagerGoerli struct { - ZionSpaceManagerGoerliCaller // Read-only binding to the contract - ZionSpaceManagerGoerliTransactor // Write-only binding to the contract - ZionSpaceManagerGoerliFilterer // Log filterer for contract events -} - -// ZionSpaceManagerGoerliCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZionSpaceManagerGoerliCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZionSpaceManagerGoerliTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZionSpaceManagerGoerliTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZionSpaceManagerGoerliFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZionSpaceManagerGoerliFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZionSpaceManagerGoerliSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZionSpaceManagerGoerliSession struct { - Contract *ZionSpaceManagerGoerli // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZionSpaceManagerGoerliCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZionSpaceManagerGoerliCallerSession struct { - Contract *ZionSpaceManagerGoerliCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZionSpaceManagerGoerliTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZionSpaceManagerGoerliTransactorSession struct { - Contract *ZionSpaceManagerGoerliTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZionSpaceManagerGoerliRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZionSpaceManagerGoerliRaw struct { - Contract *ZionSpaceManagerGoerli // Generic contract binding to access the raw methods on -} - -// ZionSpaceManagerGoerliCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZionSpaceManagerGoerliCallerRaw struct { - Contract *ZionSpaceManagerGoerliCaller // Generic read-only contract binding to access the raw methods on -} - -// ZionSpaceManagerGoerliTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZionSpaceManagerGoerliTransactorRaw struct { - Contract *ZionSpaceManagerGoerliTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZionSpaceManagerGoerli creates a new instance of ZionSpaceManagerGoerli, bound to a specific deployed contract. -func NewZionSpaceManagerGoerli(address common.Address, backend bind.ContractBackend) (*ZionSpaceManagerGoerli, error) { - contract, err := bindZionSpaceManagerGoerli(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZionSpaceManagerGoerli{ZionSpaceManagerGoerliCaller: ZionSpaceManagerGoerliCaller{contract: contract}, ZionSpaceManagerGoerliTransactor: ZionSpaceManagerGoerliTransactor{contract: contract}, ZionSpaceManagerGoerliFilterer: ZionSpaceManagerGoerliFilterer{contract: contract}}, nil -} - -// NewZionSpaceManagerGoerliCaller creates a new read-only instance of ZionSpaceManagerGoerli, bound to a specific deployed contract. -func NewZionSpaceManagerGoerliCaller(address common.Address, caller bind.ContractCaller) (*ZionSpaceManagerGoerliCaller, error) { - contract, err := bindZionSpaceManagerGoerli(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZionSpaceManagerGoerliCaller{contract: contract}, nil -} - -// NewZionSpaceManagerGoerliTransactor creates a new write-only instance of ZionSpaceManagerGoerli, bound to a specific deployed contract. -func NewZionSpaceManagerGoerliTransactor(address common.Address, transactor bind.ContractTransactor) (*ZionSpaceManagerGoerliTransactor, error) { - contract, err := bindZionSpaceManagerGoerli(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZionSpaceManagerGoerliTransactor{contract: contract}, nil -} - -// NewZionSpaceManagerGoerliFilterer creates a new log filterer instance of ZionSpaceManagerGoerli, bound to a specific deployed contract. -func NewZionSpaceManagerGoerliFilterer(address common.Address, filterer bind.ContractFilterer) (*ZionSpaceManagerGoerliFilterer, error) { - contract, err := bindZionSpaceManagerGoerli(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZionSpaceManagerGoerliFilterer{contract: contract}, nil -} - -// bindZionSpaceManagerGoerli binds a generic wrapper to an already deployed contract. -func bindZionSpaceManagerGoerli(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := abi.JSON(strings.NewReader(ZionSpaceManagerGoerliABI)) - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZionSpaceManagerGoerli.Contract.ZionSpaceManagerGoerliCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.ZionSpaceManagerGoerliTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.ZionSpaceManagerGoerliTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZionSpaceManagerGoerli.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.contract.Transact(opts, method, params...) -} - -// GetChannelIdByNetworkId is a free data retrieval call binding the contract method 0x3e66eae3. -// -// Solidity: function getChannelIdByNetworkId(string spaceId, string channelId) view returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetChannelIdByNetworkId(opts *bind.CallOpts, spaceId string, channelId string) (*big.Int, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getChannelIdByNetworkId", spaceId, channelId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetChannelIdByNetworkId is a free data retrieval call binding the contract method 0x3e66eae3. -// -// Solidity: function getChannelIdByNetworkId(string spaceId, string channelId) view returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetChannelIdByNetworkId(spaceId string, channelId string) (*big.Int, error) { - return _ZionSpaceManagerGoerli.Contract.GetChannelIdByNetworkId(&_ZionSpaceManagerGoerli.CallOpts, spaceId, channelId) -} - -// GetChannelIdByNetworkId is a free data retrieval call binding the contract method 0x3e66eae3. -// -// Solidity: function getChannelIdByNetworkId(string spaceId, string channelId) view returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetChannelIdByNetworkId(spaceId string, channelId string) (*big.Int, error) { - return _ZionSpaceManagerGoerli.Contract.GetChannelIdByNetworkId(&_ZionSpaceManagerGoerli.CallOpts, spaceId, channelId) -} - -// GetChannelInfoByChannelId is a free data retrieval call binding the contract method 0x0db37ba3. -// -// Solidity: function getChannelInfoByChannelId(string spaceId, string channelId) view returns((uint256,string,uint256,string,address,bool)) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetChannelInfoByChannelId(opts *bind.CallOpts, spaceId string, channelId string) (DataTypesChannelInfo, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getChannelInfoByChannelId", spaceId, channelId) - - if err != nil { - return *new(DataTypesChannelInfo), err - } - - out0 := *abi.ConvertType(out[0], new(DataTypesChannelInfo)).(*DataTypesChannelInfo) - - return out0, err - -} - -// GetChannelInfoByChannelId is a free data retrieval call binding the contract method 0x0db37ba3. -// -// Solidity: function getChannelInfoByChannelId(string spaceId, string channelId) view returns((uint256,string,uint256,string,address,bool)) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetChannelInfoByChannelId(spaceId string, channelId string) (DataTypesChannelInfo, error) { - return _ZionSpaceManagerGoerli.Contract.GetChannelInfoByChannelId(&_ZionSpaceManagerGoerli.CallOpts, spaceId, channelId) -} - -// GetChannelInfoByChannelId is a free data retrieval call binding the contract method 0x0db37ba3. -// -// Solidity: function getChannelInfoByChannelId(string spaceId, string channelId) view returns((uint256,string,uint256,string,address,bool)) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetChannelInfoByChannelId(spaceId string, channelId string) (DataTypesChannelInfo, error) { - return _ZionSpaceManagerGoerli.Contract.GetChannelInfoByChannelId(&_ZionSpaceManagerGoerli.CallOpts, spaceId, channelId) -} - -// GetChannelsBySpaceId is a free data retrieval call binding the contract method 0x50c24eef. -// -// Solidity: function getChannelsBySpaceId(string spaceId) view returns((uint256,(uint256,uint256,string,string,address,bool)[])) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetChannelsBySpaceId(opts *bind.CallOpts, spaceId string) (DataTypesChannels, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getChannelsBySpaceId", spaceId) - - if err != nil { - return *new(DataTypesChannels), err - } - - out0 := *abi.ConvertType(out[0], new(DataTypesChannels)).(*DataTypesChannels) - - return out0, err - -} - -// GetChannelsBySpaceId is a free data retrieval call binding the contract method 0x50c24eef. -// -// Solidity: function getChannelsBySpaceId(string spaceId) view returns((uint256,(uint256,uint256,string,string,address,bool)[])) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetChannelsBySpaceId(spaceId string) (DataTypesChannels, error) { - return _ZionSpaceManagerGoerli.Contract.GetChannelsBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetChannelsBySpaceId is a free data retrieval call binding the contract method 0x50c24eef. -// -// Solidity: function getChannelsBySpaceId(string spaceId) view returns((uint256,(uint256,uint256,string,string,address,bool)[])) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetChannelsBySpaceId(spaceId string) (DataTypesChannels, error) { - return _ZionSpaceManagerGoerli.Contract.GetChannelsBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetEntitlementModulesBySpaceId is a free data retrieval call binding the contract method 0x141b6498. -// -// Solidity: function getEntitlementModulesBySpaceId(string spaceId) view returns(address[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetEntitlementModulesBySpaceId(opts *bind.CallOpts, spaceId string) ([]common.Address, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getEntitlementModulesBySpaceId", spaceId) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetEntitlementModulesBySpaceId is a free data retrieval call binding the contract method 0x141b6498. -// -// Solidity: function getEntitlementModulesBySpaceId(string spaceId) view returns(address[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetEntitlementModulesBySpaceId(spaceId string) ([]common.Address, error) { - return _ZionSpaceManagerGoerli.Contract.GetEntitlementModulesBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetEntitlementModulesBySpaceId is a free data retrieval call binding the contract method 0x141b6498. -// -// Solidity: function getEntitlementModulesBySpaceId(string spaceId) view returns(address[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetEntitlementModulesBySpaceId(spaceId string) ([]common.Address, error) { - return _ZionSpaceManagerGoerli.Contract.GetEntitlementModulesBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetEntitlementsInfoBySpaceId is a free data retrieval call binding the contract method 0x3519167c. -// -// Solidity: function getEntitlementsInfoBySpaceId(string spaceId) view returns((address,string,string,string)[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetEntitlementsInfoBySpaceId(opts *bind.CallOpts, spaceId string) ([]DataTypesEntitlementModuleInfo, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getEntitlementsInfoBySpaceId", spaceId) - - if err != nil { - return *new([]DataTypesEntitlementModuleInfo), err - } - - out0 := *abi.ConvertType(out[0], new([]DataTypesEntitlementModuleInfo)).(*[]DataTypesEntitlementModuleInfo) - - return out0, err - -} - -// GetEntitlementsInfoBySpaceId is a free data retrieval call binding the contract method 0x3519167c. -// -// Solidity: function getEntitlementsInfoBySpaceId(string spaceId) view returns((address,string,string,string)[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetEntitlementsInfoBySpaceId(spaceId string) ([]DataTypesEntitlementModuleInfo, error) { - return _ZionSpaceManagerGoerli.Contract.GetEntitlementsInfoBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetEntitlementsInfoBySpaceId is a free data retrieval call binding the contract method 0x3519167c. -// -// Solidity: function getEntitlementsInfoBySpaceId(string spaceId) view returns((address,string,string,string)[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetEntitlementsInfoBySpaceId(spaceId string) ([]DataTypesEntitlementModuleInfo, error) { - return _ZionSpaceManagerGoerli.Contract.GetEntitlementsInfoBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetSpaceIdByNetworkId is a free data retrieval call binding the contract method 0x9ddd0d6b. -// -// Solidity: function getSpaceIdByNetworkId(string networkId) view returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetSpaceIdByNetworkId(opts *bind.CallOpts, networkId string) (*big.Int, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getSpaceIdByNetworkId", networkId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetSpaceIdByNetworkId is a free data retrieval call binding the contract method 0x9ddd0d6b. -// -// Solidity: function getSpaceIdByNetworkId(string networkId) view returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetSpaceIdByNetworkId(networkId string) (*big.Int, error) { - return _ZionSpaceManagerGoerli.Contract.GetSpaceIdByNetworkId(&_ZionSpaceManagerGoerli.CallOpts, networkId) -} - -// GetSpaceIdByNetworkId is a free data retrieval call binding the contract method 0x9ddd0d6b. -// -// Solidity: function getSpaceIdByNetworkId(string networkId) view returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetSpaceIdByNetworkId(networkId string) (*big.Int, error) { - return _ZionSpaceManagerGoerli.Contract.GetSpaceIdByNetworkId(&_ZionSpaceManagerGoerli.CallOpts, networkId) -} - -// GetSpaceInfoBySpaceId is a free data retrieval call binding the contract method 0x2bb59212. -// -// Solidity: function getSpaceInfoBySpaceId(string spaceId) view returns((uint256,string,uint256,string,address,address,bool)) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetSpaceInfoBySpaceId(opts *bind.CallOpts, spaceId string) (DataTypesSpaceInfo, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getSpaceInfoBySpaceId", spaceId) - - if err != nil { - return *new(DataTypesSpaceInfo), err - } - - out0 := *abi.ConvertType(out[0], new(DataTypesSpaceInfo)).(*DataTypesSpaceInfo) - - return out0, err - -} - -// GetSpaceInfoBySpaceId is a free data retrieval call binding the contract method 0x2bb59212. -// -// Solidity: function getSpaceInfoBySpaceId(string spaceId) view returns((uint256,string,uint256,string,address,address,bool)) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetSpaceInfoBySpaceId(spaceId string) (DataTypesSpaceInfo, error) { - return _ZionSpaceManagerGoerli.Contract.GetSpaceInfoBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetSpaceInfoBySpaceId is a free data retrieval call binding the contract method 0x2bb59212. -// -// Solidity: function getSpaceInfoBySpaceId(string spaceId) view returns((uint256,string,uint256,string,address,address,bool)) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetSpaceInfoBySpaceId(spaceId string) (DataTypesSpaceInfo, error) { - return _ZionSpaceManagerGoerli.Contract.GetSpaceInfoBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetSpaceOwnerBySpaceId is a free data retrieval call binding the contract method 0x2a4bdf25. -// -// Solidity: function getSpaceOwnerBySpaceId(string spaceId) view returns(address) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetSpaceOwnerBySpaceId(opts *bind.CallOpts, spaceId string) (common.Address, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getSpaceOwnerBySpaceId", spaceId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetSpaceOwnerBySpaceId is a free data retrieval call binding the contract method 0x2a4bdf25. -// -// Solidity: function getSpaceOwnerBySpaceId(string spaceId) view returns(address) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetSpaceOwnerBySpaceId(spaceId string) (common.Address, error) { - return _ZionSpaceManagerGoerli.Contract.GetSpaceOwnerBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetSpaceOwnerBySpaceId is a free data retrieval call binding the contract method 0x2a4bdf25. -// -// Solidity: function getSpaceOwnerBySpaceId(string spaceId) view returns(address) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetSpaceOwnerBySpaceId(spaceId string) (common.Address, error) { - return _ZionSpaceManagerGoerli.Contract.GetSpaceOwnerBySpaceId(&_ZionSpaceManagerGoerli.CallOpts, spaceId) -} - -// GetSpaces is a free data retrieval call binding the contract method 0x15478ca9. -// -// Solidity: function getSpaces() view returns((uint256,string,uint256,string,address,address,bool)[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) GetSpaces(opts *bind.CallOpts) ([]DataTypesSpaceInfo, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "getSpaces") - - if err != nil { - return *new([]DataTypesSpaceInfo), err - } - - out0 := *abi.ConvertType(out[0], new([]DataTypesSpaceInfo)).(*[]DataTypesSpaceInfo) - - return out0, err - -} - -// GetSpaces is a free data retrieval call binding the contract method 0x15478ca9. -// -// Solidity: function getSpaces() view returns((uint256,string,uint256,string,address,address,bool)[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) GetSpaces() ([]DataTypesSpaceInfo, error) { - return _ZionSpaceManagerGoerli.Contract.GetSpaces(&_ZionSpaceManagerGoerli.CallOpts) -} - -// GetSpaces is a free data retrieval call binding the contract method 0x15478ca9. -// -// Solidity: function getSpaces() view returns((uint256,string,uint256,string,address,address,bool)[]) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) GetSpaces() ([]DataTypesSpaceInfo, error) { - return _ZionSpaceManagerGoerli.Contract.GetSpaces(&_ZionSpaceManagerGoerli.CallOpts) -} - -// IsEntitled is a free data retrieval call binding the contract method 0xbf77b663. -// -// Solidity: function isEntitled(string spaceId, string channelId, address user, (string) permission) view returns(bool) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) IsEntitled(opts *bind.CallOpts, spaceId string, channelId string, user common.Address, permission DataTypesPermission) (bool, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "isEntitled", spaceId, channelId, user, permission) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsEntitled is a free data retrieval call binding the contract method 0xbf77b663. -// -// Solidity: function isEntitled(string spaceId, string channelId, address user, (string) permission) view returns(bool) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) IsEntitled(spaceId string, channelId string, user common.Address, permission DataTypesPermission) (bool, error) { - return _ZionSpaceManagerGoerli.Contract.IsEntitled(&_ZionSpaceManagerGoerli.CallOpts, spaceId, channelId, user, permission) -} - -// IsEntitled is a free data retrieval call binding the contract method 0xbf77b663. -// -// Solidity: function isEntitled(string spaceId, string channelId, address user, (string) permission) view returns(bool) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) IsEntitled(spaceId string, channelId string, user common.Address, permission DataTypesPermission) (bool, error) { - return _ZionSpaceManagerGoerli.Contract.IsEntitled(&_ZionSpaceManagerGoerli.CallOpts, spaceId, channelId, user, permission) -} - -// IsEntitlementModuleWhitelisted is a free data retrieval call binding the contract method 0x4196d1ff. -// -// Solidity: function isEntitlementModuleWhitelisted(string spaceId, address entitlementModuleAddress) view returns(bool) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) IsEntitlementModuleWhitelisted(opts *bind.CallOpts, spaceId string, entitlementModuleAddress common.Address) (bool, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "isEntitlementModuleWhitelisted", spaceId, entitlementModuleAddress) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsEntitlementModuleWhitelisted is a free data retrieval call binding the contract method 0x4196d1ff. -// -// Solidity: function isEntitlementModuleWhitelisted(string spaceId, address entitlementModuleAddress) view returns(bool) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) IsEntitlementModuleWhitelisted(spaceId string, entitlementModuleAddress common.Address) (bool, error) { - return _ZionSpaceManagerGoerli.Contract.IsEntitlementModuleWhitelisted(&_ZionSpaceManagerGoerli.CallOpts, spaceId, entitlementModuleAddress) -} - -// IsEntitlementModuleWhitelisted is a free data retrieval call binding the contract method 0x4196d1ff. -// -// Solidity: function isEntitlementModuleWhitelisted(string spaceId, address entitlementModuleAddress) view returns(bool) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) IsEntitlementModuleWhitelisted(spaceId string, entitlementModuleAddress common.Address) (bool, error) { - return _ZionSpaceManagerGoerli.Contract.IsEntitlementModuleWhitelisted(&_ZionSpaceManagerGoerli.CallOpts, spaceId, entitlementModuleAddress) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZionSpaceManagerGoerli.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) Owner() (common.Address, error) { - return _ZionSpaceManagerGoerli.Contract.Owner(&_ZionSpaceManagerGoerli.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliCallerSession) Owner() (common.Address, error) { - return _ZionSpaceManagerGoerli.Contract.Owner(&_ZionSpaceManagerGoerli.CallOpts) -} - -// AddPermissionToRole is a paid mutator transaction binding the contract method 0x7d9a0230. -// -// Solidity: function addPermissionToRole(string spaceId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) AddPermissionToRole(opts *bind.TransactOpts, spaceId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "addPermissionToRole", spaceId, roleId, permission) -} - -// AddPermissionToRole is a paid mutator transaction binding the contract method 0x7d9a0230. -// -// Solidity: function addPermissionToRole(string spaceId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) AddPermissionToRole(spaceId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.AddPermissionToRole(&_ZionSpaceManagerGoerli.TransactOpts, spaceId, roleId, permission) -} - -// AddPermissionToRole is a paid mutator transaction binding the contract method 0x7d9a0230. -// -// Solidity: function addPermissionToRole(string spaceId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) AddPermissionToRole(spaceId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.AddPermissionToRole(&_ZionSpaceManagerGoerli.TransactOpts, spaceId, roleId, permission) -} - -// AddRoleIdsToChannel is a paid mutator transaction binding the contract method 0x81fb7db2. -// -// Solidity: function addRoleIdsToChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) AddRoleIdsToChannel(opts *bind.TransactOpts, spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "addRoleIdsToChannel", spaceId, channelId, roleId) -} - -// AddRoleIdsToChannel is a paid mutator transaction binding the contract method 0x81fb7db2. -// -// Solidity: function addRoleIdsToChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) AddRoleIdsToChannel(spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.AddRoleIdsToChannel(&_ZionSpaceManagerGoerli.TransactOpts, spaceId, channelId, roleId) -} - -// AddRoleIdsToChannel is a paid mutator transaction binding the contract method 0x81fb7db2. -// -// Solidity: function addRoleIdsToChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) AddRoleIdsToChannel(spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.AddRoleIdsToChannel(&_ZionSpaceManagerGoerli.TransactOpts, spaceId, channelId, roleId) -} - -// AddRoleToEntitlementModule is a paid mutator transaction binding the contract method 0xc79ff589. -// -// Solidity: function addRoleToEntitlementModule(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes entitlementData) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) AddRoleToEntitlementModule(opts *bind.TransactOpts, spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, entitlementData []byte) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "addRoleToEntitlementModule", spaceNetworkId, entitlementModuleAddress, roleId, entitlementData) -} - -// AddRoleToEntitlementModule is a paid mutator transaction binding the contract method 0xc79ff589. -// -// Solidity: function addRoleToEntitlementModule(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes entitlementData) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) AddRoleToEntitlementModule(spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, entitlementData []byte) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.AddRoleToEntitlementModule(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, entitlementModuleAddress, roleId, entitlementData) -} - -// AddRoleToEntitlementModule is a paid mutator transaction binding the contract method 0xc79ff589. -// -// Solidity: function addRoleToEntitlementModule(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes entitlementData) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) AddRoleToEntitlementModule(spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, entitlementData []byte) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.AddRoleToEntitlementModule(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, entitlementModuleAddress, roleId, entitlementData) -} - -// CreateChannel is a paid mutator transaction binding the contract method 0xf1b287d8. -// -// Solidity: function createChannel((string,string,string,uint256[]) data) returns(uint256 channelId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) CreateChannel(opts *bind.TransactOpts, data DataTypesCreateChannelData) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "createChannel", data) -} - -// CreateChannel is a paid mutator transaction binding the contract method 0xf1b287d8. -// -// Solidity: function createChannel((string,string,string,uint256[]) data) returns(uint256 channelId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) CreateChannel(data DataTypesCreateChannelData) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.CreateChannel(&_ZionSpaceManagerGoerli.TransactOpts, data) -} - -// CreateChannel is a paid mutator transaction binding the contract method 0xf1b287d8. -// -// Solidity: function createChannel((string,string,string,uint256[]) data) returns(uint256 channelId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) CreateChannel(data DataTypesCreateChannelData) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.CreateChannel(&_ZionSpaceManagerGoerli.TransactOpts, data) -} - -// CreateRole is a paid mutator transaction binding the contract method 0xd2192dbf. -// -// Solidity: function createRole(string spaceNetworkId, string name) returns(uint256 roleId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) CreateRole(opts *bind.TransactOpts, spaceNetworkId string, name string) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "createRole", spaceNetworkId, name) -} - -// CreateRole is a paid mutator transaction binding the contract method 0xd2192dbf. -// -// Solidity: function createRole(string spaceNetworkId, string name) returns(uint256 roleId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) CreateRole(spaceNetworkId string, name string) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.CreateRole(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, name) -} - -// CreateRole is a paid mutator transaction binding the contract method 0xd2192dbf. -// -// Solidity: function createRole(string spaceNetworkId, string name) returns(uint256 roleId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) CreateRole(spaceNetworkId string, name string) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.CreateRole(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, name) -} - -// CreateRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x40c0df81. -// -// Solidity: function createRoleWithEntitlementData(string spaceNetworkId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(uint256 roleId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) CreateRoleWithEntitlementData(opts *bind.TransactOpts, spaceNetworkId string, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "createRoleWithEntitlementData", spaceNetworkId, roleName, permissions, tokenEntitlements, users) -} - -// CreateRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x40c0df81. -// -// Solidity: function createRoleWithEntitlementData(string spaceNetworkId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(uint256 roleId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) CreateRoleWithEntitlementData(spaceNetworkId string, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.CreateRoleWithEntitlementData(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, roleName, permissions, tokenEntitlements, users) -} - -// CreateRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x40c0df81. -// -// Solidity: function createRoleWithEntitlementData(string spaceNetworkId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(uint256 roleId) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) CreateRoleWithEntitlementData(spaceNetworkId string, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.CreateRoleWithEntitlementData(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, roleName, permissions, tokenEntitlements, users) -} - -// CreateSpace is a paid mutator transaction binding the contract method 0x1f2bd9e5. -// -// Solidity: function createSpace((string,string,string) info, (string,(string)[],((address,uint256,bool,uint256)[])[],address[]) entitlementData, (string)[] everyonePermissions) returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) CreateSpace(opts *bind.TransactOpts, info DataTypesCreateSpaceData, entitlementData DataTypesCreateSpaceEntitlementData, everyonePermissions []DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "createSpace", info, entitlementData, everyonePermissions) -} - -// CreateSpace is a paid mutator transaction binding the contract method 0x1f2bd9e5. -// -// Solidity: function createSpace((string,string,string) info, (string,(string)[],((address,uint256,bool,uint256)[])[],address[]) entitlementData, (string)[] everyonePermissions) returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) CreateSpace(info DataTypesCreateSpaceData, entitlementData DataTypesCreateSpaceEntitlementData, everyonePermissions []DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.CreateSpace(&_ZionSpaceManagerGoerli.TransactOpts, info, entitlementData, everyonePermissions) -} - -// CreateSpace is a paid mutator transaction binding the contract method 0x1f2bd9e5. -// -// Solidity: function createSpace((string,string,string) info, (string,(string)[],((address,uint256,bool,uint256)[])[],address[]) entitlementData, (string)[] everyonePermissions) returns(uint256) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) CreateSpace(info DataTypesCreateSpaceData, entitlementData DataTypesCreateSpaceEntitlementData, everyonePermissions []DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.CreateSpace(&_ZionSpaceManagerGoerli.TransactOpts, info, entitlementData, everyonePermissions) -} - -// ModifyRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x2ca07161. -// -// Solidity: function modifyRoleWithEntitlementData(string spaceNetworkId, uint256 roleId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(bool isModified) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) ModifyRoleWithEntitlementData(opts *bind.TransactOpts, spaceNetworkId string, roleId *big.Int, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "modifyRoleWithEntitlementData", spaceNetworkId, roleId, roleName, permissions, tokenEntitlements, users) -} - -// ModifyRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x2ca07161. -// -// Solidity: function modifyRoleWithEntitlementData(string spaceNetworkId, uint256 roleId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(bool isModified) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) ModifyRoleWithEntitlementData(spaceNetworkId string, roleId *big.Int, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.ModifyRoleWithEntitlementData(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, roleId, roleName, permissions, tokenEntitlements, users) -} - -// ModifyRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x2ca07161. -// -// Solidity: function modifyRoleWithEntitlementData(string spaceNetworkId, uint256 roleId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(bool isModified) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) ModifyRoleWithEntitlementData(spaceNetworkId string, roleId *big.Int, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.ModifyRoleWithEntitlementData(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, roleId, roleName, permissions, tokenEntitlements, users) -} - -// RemoveEntitlement is a paid mutator transaction binding the contract method 0xd6b1b633. -// -// Solidity: function removeEntitlement(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes data) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) RemoveEntitlement(opts *bind.TransactOpts, spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, data []byte) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "removeEntitlement", spaceNetworkId, entitlementModuleAddress, roleId, data) -} - -// RemoveEntitlement is a paid mutator transaction binding the contract method 0xd6b1b633. -// -// Solidity: function removeEntitlement(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes data) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) RemoveEntitlement(spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, data []byte) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RemoveEntitlement(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, entitlementModuleAddress, roleId, data) -} - -// RemoveEntitlement is a paid mutator transaction binding the contract method 0xd6b1b633. -// -// Solidity: function removeEntitlement(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes data) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) RemoveEntitlement(spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, data []byte) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RemoveEntitlement(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, entitlementModuleAddress, roleId, data) -} - -// RemovePermissionFromRole is a paid mutator transaction binding the contract method 0x4832a4ec. -// -// Solidity: function removePermissionFromRole(string spaceNetworkId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) RemovePermissionFromRole(opts *bind.TransactOpts, spaceNetworkId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "removePermissionFromRole", spaceNetworkId, roleId, permission) -} - -// RemovePermissionFromRole is a paid mutator transaction binding the contract method 0x4832a4ec. -// -// Solidity: function removePermissionFromRole(string spaceNetworkId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) RemovePermissionFromRole(spaceNetworkId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RemovePermissionFromRole(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, roleId, permission) -} - -// RemovePermissionFromRole is a paid mutator transaction binding the contract method 0x4832a4ec. -// -// Solidity: function removePermissionFromRole(string spaceNetworkId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) RemovePermissionFromRole(spaceNetworkId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RemovePermissionFromRole(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, roleId, permission) -} - -// RemoveRole is a paid mutator transaction binding the contract method 0x8b0e905a. -// -// Solidity: function removeRole(string spaceNetworkId, uint256 roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) RemoveRole(opts *bind.TransactOpts, spaceNetworkId string, roleId *big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "removeRole", spaceNetworkId, roleId) -} - -// RemoveRole is a paid mutator transaction binding the contract method 0x8b0e905a. -// -// Solidity: function removeRole(string spaceNetworkId, uint256 roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) RemoveRole(spaceNetworkId string, roleId *big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RemoveRole(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, roleId) -} - -// RemoveRole is a paid mutator transaction binding the contract method 0x8b0e905a. -// -// Solidity: function removeRole(string spaceNetworkId, uint256 roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) RemoveRole(spaceNetworkId string, roleId *big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RemoveRole(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, roleId) -} - -// RemoveRoleIdsFromChannel is a paid mutator transaction binding the contract method 0x7a40ab90. -// -// Solidity: function removeRoleIdsFromChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) RemoveRoleIdsFromChannel(opts *bind.TransactOpts, spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "removeRoleIdsFromChannel", spaceId, channelId, roleId) -} - -// RemoveRoleIdsFromChannel is a paid mutator transaction binding the contract method 0x7a40ab90. -// -// Solidity: function removeRoleIdsFromChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) RemoveRoleIdsFromChannel(spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RemoveRoleIdsFromChannel(&_ZionSpaceManagerGoerli.TransactOpts, spaceId, channelId, roleId) -} - -// RemoveRoleIdsFromChannel is a paid mutator transaction binding the contract method 0x7a40ab90. -// -// Solidity: function removeRoleIdsFromChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) RemoveRoleIdsFromChannel(spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RemoveRoleIdsFromChannel(&_ZionSpaceManagerGoerli.TransactOpts, spaceId, channelId, roleId) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "renounceOwnership") -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) RenounceOwnership() (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RenounceOwnership(&_ZionSpaceManagerGoerli.TransactOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.RenounceOwnership(&_ZionSpaceManagerGoerli.TransactOpts) -} - -// SetChannelAccess is a paid mutator transaction binding the contract method 0x72a29321. -// -// Solidity: function setChannelAccess(string spaceNetworkId, string channelNetworkId, bool disabled) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) SetChannelAccess(opts *bind.TransactOpts, spaceNetworkId string, channelNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "setChannelAccess", spaceNetworkId, channelNetworkId, disabled) -} - -// SetChannelAccess is a paid mutator transaction binding the contract method 0x72a29321. -// -// Solidity: function setChannelAccess(string spaceNetworkId, string channelNetworkId, bool disabled) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) SetChannelAccess(spaceNetworkId string, channelNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetChannelAccess(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, channelNetworkId, disabled) -} - -// SetChannelAccess is a paid mutator transaction binding the contract method 0x72a29321. -// -// Solidity: function setChannelAccess(string spaceNetworkId, string channelNetworkId, bool disabled) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) SetChannelAccess(spaceNetworkId string, channelNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetChannelAccess(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, channelNetworkId, disabled) -} - -// SetDefaultTokenEntitlementModule is a paid mutator transaction binding the contract method 0x1a039620. -// -// Solidity: function setDefaultTokenEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) SetDefaultTokenEntitlementModule(opts *bind.TransactOpts, entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "setDefaultTokenEntitlementModule", entitlementModule) -} - -// SetDefaultTokenEntitlementModule is a paid mutator transaction binding the contract method 0x1a039620. -// -// Solidity: function setDefaultTokenEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) SetDefaultTokenEntitlementModule(entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetDefaultTokenEntitlementModule(&_ZionSpaceManagerGoerli.TransactOpts, entitlementModule) -} - -// SetDefaultTokenEntitlementModule is a paid mutator transaction binding the contract method 0x1a039620. -// -// Solidity: function setDefaultTokenEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) SetDefaultTokenEntitlementModule(entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetDefaultTokenEntitlementModule(&_ZionSpaceManagerGoerli.TransactOpts, entitlementModule) -} - -// SetDefaultUserEntitlementModule is a paid mutator transaction binding the contract method 0xe1b7a9e5. -// -// Solidity: function setDefaultUserEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) SetDefaultUserEntitlementModule(opts *bind.TransactOpts, entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "setDefaultUserEntitlementModule", entitlementModule) -} - -// SetDefaultUserEntitlementModule is a paid mutator transaction binding the contract method 0xe1b7a9e5. -// -// Solidity: function setDefaultUserEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) SetDefaultUserEntitlementModule(entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetDefaultUserEntitlementModule(&_ZionSpaceManagerGoerli.TransactOpts, entitlementModule) -} - -// SetDefaultUserEntitlementModule is a paid mutator transaction binding the contract method 0xe1b7a9e5. -// -// Solidity: function setDefaultUserEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) SetDefaultUserEntitlementModule(entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetDefaultUserEntitlementModule(&_ZionSpaceManagerGoerli.TransactOpts, entitlementModule) -} - -// SetSpaceAccess is a paid mutator transaction binding the contract method 0xf86caf83. -// -// Solidity: function setSpaceAccess(string spaceNetworkId, bool disabled) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) SetSpaceAccess(opts *bind.TransactOpts, spaceNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "setSpaceAccess", spaceNetworkId, disabled) -} - -// SetSpaceAccess is a paid mutator transaction binding the contract method 0xf86caf83. -// -// Solidity: function setSpaceAccess(string spaceNetworkId, bool disabled) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) SetSpaceAccess(spaceNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetSpaceAccess(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, disabled) -} - -// SetSpaceAccess is a paid mutator transaction binding the contract method 0xf86caf83. -// -// Solidity: function setSpaceAccess(string spaceNetworkId, bool disabled) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) SetSpaceAccess(spaceNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetSpaceAccess(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, disabled) -} - -// SetSpaceNFT is a paid mutator transaction binding the contract method 0xccde2de3. -// -// Solidity: function setSpaceNFT(address spaceNFTAddress) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) SetSpaceNFT(opts *bind.TransactOpts, spaceNFTAddress common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "setSpaceNFT", spaceNFTAddress) -} - -// SetSpaceNFT is a paid mutator transaction binding the contract method 0xccde2de3. -// -// Solidity: function setSpaceNFT(address spaceNFTAddress) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) SetSpaceNFT(spaceNFTAddress common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetSpaceNFT(&_ZionSpaceManagerGoerli.TransactOpts, spaceNFTAddress) -} - -// SetSpaceNFT is a paid mutator transaction binding the contract method 0xccde2de3. -// -// Solidity: function setSpaceNFT(address spaceNFTAddress) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) SetSpaceNFT(spaceNFTAddress common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.SetSpaceNFT(&_ZionSpaceManagerGoerli.TransactOpts, spaceNFTAddress) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "transferOwnership", newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.TransferOwnership(&_ZionSpaceManagerGoerli.TransactOpts, newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.TransferOwnership(&_ZionSpaceManagerGoerli.TransactOpts, newOwner) -} - -// WhitelistEntitlementModule is a paid mutator transaction binding the contract method 0xe798ff3f. -// -// Solidity: function whitelistEntitlementModule(string spaceNetworkId, address entitlementAddress, bool whitelist) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactor) WhitelistEntitlementModule(opts *bind.TransactOpts, spaceNetworkId string, entitlementAddress common.Address, whitelist bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.contract.Transact(opts, "whitelistEntitlementModule", spaceNetworkId, entitlementAddress, whitelist) -} - -// WhitelistEntitlementModule is a paid mutator transaction binding the contract method 0xe798ff3f. -// -// Solidity: function whitelistEntitlementModule(string spaceNetworkId, address entitlementAddress, bool whitelist) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliSession) WhitelistEntitlementModule(spaceNetworkId string, entitlementAddress common.Address, whitelist bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.WhitelistEntitlementModule(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, entitlementAddress, whitelist) -} - -// WhitelistEntitlementModule is a paid mutator transaction binding the contract method 0xe798ff3f. -// -// Solidity: function whitelistEntitlementModule(string spaceNetworkId, address entitlementAddress, bool whitelist) returns() -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliTransactorSession) WhitelistEntitlementModule(spaceNetworkId string, entitlementAddress common.Address, whitelist bool) (*types.Transaction, error) { - return _ZionSpaceManagerGoerli.Contract.WhitelistEntitlementModule(&_ZionSpaceManagerGoerli.TransactOpts, spaceNetworkId, entitlementAddress, whitelist) -} - -// ZionSpaceManagerGoerliOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ZionSpaceManagerGoerli contract. -type ZionSpaceManagerGoerliOwnershipTransferredIterator struct { - Event *ZionSpaceManagerGoerliOwnershipTransferred // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZionSpaceManagerGoerliOwnershipTransferredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZionSpaceManagerGoerliOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZionSpaceManagerGoerliOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZionSpaceManagerGoerliOwnershipTransferredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZionSpaceManagerGoerliOwnershipTransferredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZionSpaceManagerGoerliOwnershipTransferred represents a OwnershipTransferred event raised by the ZionSpaceManagerGoerli contract. -type ZionSpaceManagerGoerliOwnershipTransferred struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ZionSpaceManagerGoerliOwnershipTransferredIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZionSpaceManagerGoerli.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &ZionSpaceManagerGoerliOwnershipTransferredIterator{contract: _ZionSpaceManagerGoerli.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ZionSpaceManagerGoerliOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZionSpaceManagerGoerli.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZionSpaceManagerGoerliOwnershipTransferred) - if err := _ZionSpaceManagerGoerli.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZionSpaceManagerGoerli *ZionSpaceManagerGoerliFilterer) ParseOwnershipTransferred(log types.Log) (*ZionSpaceManagerGoerliOwnershipTransferred, error) { - event := new(ZionSpaceManagerGoerliOwnershipTransferred) - if err := _ZionSpaceManagerGoerli.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/zion/contracts/zion_localhost/space-manager.json b/zion/contracts/zion_localhost/space-manager.json deleted file mode 100644 index 153723d5a..000000000 --- a/zion/contracts/zion_localhost/space-manager.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "spacemanager": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9", - "usergranted": "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707", - "tokengranted": "0x0165878A594ca255338adfa4d48449f69242Eb8F", - "rolemanager": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0" -} \ No newline at end of file diff --git a/zion/contracts/zion_localhost/zion_space_manager_localhost.go b/zion/contracts/zion_localhost/zion_space_manager_localhost.go deleted file mode 100644 index eb09f7dea..000000000 --- a/zion/contracts/zion_localhost/zion_space_manager_localhost.go +++ /dev/null @@ -1,1211 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zion_localhost - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription -) - -// DataTypesChannel is an auto generated low-level Go binding around an user-defined struct. -type DataTypesChannel struct { - ChannelId *big.Int - CreatedAt *big.Int - NetworkId string - Name string - Creator common.Address - Disabled bool -} - -// DataTypesChannelInfo is an auto generated low-level Go binding around an user-defined struct. -type DataTypesChannelInfo struct { - ChannelId *big.Int - NetworkId string - CreatedAt *big.Int - Name string - Creator common.Address - Disabled bool -} - -// DataTypesChannels is an auto generated low-level Go binding around an user-defined struct. -type DataTypesChannels struct { - IdCounter *big.Int - Channels []DataTypesChannel -} - -// DataTypesCreateChannelData is an auto generated low-level Go binding around an user-defined struct. -type DataTypesCreateChannelData struct { - SpaceNetworkId string - ChannelName string - ChannelNetworkId string - RoleIds []*big.Int -} - -// DataTypesCreateSpaceData is an auto generated low-level Go binding around an user-defined struct. -type DataTypesCreateSpaceData struct { - SpaceName string - SpaceNetworkId string - SpaceMetadata string -} - -// DataTypesCreateSpaceEntitlementData is an auto generated low-level Go binding around an user-defined struct. -type DataTypesCreateSpaceEntitlementData struct { - RoleName string - Permissions []DataTypesPermission - ExternalTokenEntitlements []DataTypesExternalTokenEntitlement - Users []common.Address -} - -// DataTypesEntitlementModuleInfo is an auto generated low-level Go binding around an user-defined struct. -type DataTypesEntitlementModuleInfo struct { - Addr common.Address - Name string - ModuleType string - Description string -} - -// DataTypesExternalToken is an auto generated low-level Go binding around an user-defined struct. -type DataTypesExternalToken struct { - ContractAddress common.Address - Quantity *big.Int - IsSingleToken bool - TokenId *big.Int -} - -// DataTypesExternalTokenEntitlement is an auto generated low-level Go binding around an user-defined struct. -type DataTypesExternalTokenEntitlement struct { - Tokens []DataTypesExternalToken -} - -// DataTypesPermission is an auto generated low-level Go binding around an user-defined struct. -type DataTypesPermission struct { - Name string -} - -// DataTypesSpaceInfo is an auto generated low-level Go binding around an user-defined struct. -type DataTypesSpaceInfo struct { - SpaceId *big.Int - NetworkId string - CreatedAt *big.Int - Name string - Creator common.Address - Owner common.Address - Disabled bool -} - -// ZionSpaceManagerLocalhostMetaData contains all meta data concerning the ZionSpaceManagerLocalhost contract. -var ZionSpaceManagerLocalhostMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_permissionRegistry\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_roleManager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AddRoleFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChannelDoesNotExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DefaultEntitlementModuleNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DefaultPermissionsManagerNotSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementAlreadyWhitelisted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementModuleNotSupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EntitlementNotWhitelisted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidParameters\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NameContainsInvalidCharacters\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NameLengthInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceDoesNotExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpaceNFTNotSet\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission\",\"name\":\"permission\",\"type\":\"tuple\"}],\"name\":\"addPermissionToRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"roleId\",\"type\":\"uint256[]\"}],\"name\":\"addRoleIdsToChannel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"entitlementModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"entitlementData\",\"type\":\"bytes\"}],\"name\":\"addRoleToEntitlementModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelNetworkId\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"roleIds\",\"type\":\"uint256[]\"}],\"internalType\":\"structDataTypes.CreateChannelData\",\"name\":\"data\",\"type\":\"tuple\"}],\"name\":\"createChannel\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"channelId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"createRole\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"roleName\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission[]\",\"name\":\"permissions\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isSingleToken\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ExternalToken[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"}],\"internalType\":\"structDataTypes.ExternalTokenEntitlement[]\",\"name\":\"tokenEntitlements\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"}],\"name\":\"createRoleWithEntitlementData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"spaceName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"spaceMetadata\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.CreateSpaceData\",\"name\":\"info\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"roleName\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission[]\",\"name\":\"permissions\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isSingleToken\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ExternalToken[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"}],\"internalType\":\"structDataTypes.ExternalTokenEntitlement[]\",\"name\":\"externalTokenEntitlements\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"}],\"internalType\":\"structDataTypes.CreateSpaceEntitlementData\",\"name\":\"entitlementData\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission[]\",\"name\":\"everyonePermissions\",\"type\":\"tuple[]\"}],\"name\":\"createSpace\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"}],\"name\":\"getChannelIdByNetworkId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"}],\"name\":\"getChannelInfoByChannelId\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"channelId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structDataTypes.ChannelInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getChannelsBySpaceId\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"idCounter\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"channelId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structDataTypes.Channel[]\",\"name\":\"channels\",\"type\":\"tuple[]\"}],\"internalType\":\"structDataTypes.Channels\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getEntitlementModulesBySpaceId\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getEntitlementsInfoBySpaceId\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"moduleType\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.EntitlementModuleInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"}],\"name\":\"getSpaceIdByNetworkId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getSpaceInfoBySpaceId\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"spaceId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structDataTypes.SpaceInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"}],\"name\":\"getSpaceOwnerBySpaceId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSpaces\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"spaceId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"networkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structDataTypes.SpaceInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission\",\"name\":\"permission\",\"type\":\"tuple\"}],\"name\":\"isEntitled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"entitlementModuleAddress\",\"type\":\"address\"}],\"name\":\"isEntitlementModuleWhitelisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"roleName\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission[]\",\"name\":\"permissions\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isSingleToken\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ExternalToken[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"}],\"internalType\":\"structDataTypes.ExternalTokenEntitlement[]\",\"name\":\"tokenEntitlements\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"}],\"name\":\"modifyRoleWithEntitlementData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isModified\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"entitlementModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"removeEntitlement\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.Permission\",\"name\":\"permission\",\"type\":\"tuple\"}],\"name\":\"removePermissionFromRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"roleId\",\"type\":\"uint256\"}],\"name\":\"removeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"roleId\",\"type\":\"uint256[]\"}],\"name\":\"removeRoleIdsFromChannel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelNetworkId\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"setChannelAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"entitlementModule\",\"type\":\"address\"}],\"name\":\"setDefaultTokenEntitlementModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"entitlementModule\",\"type\":\"address\"}],\"name\":\"setDefaultUserEntitlementModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"setSpaceAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spaceNFTAddress\",\"type\":\"address\"}],\"name\":\"setSpaceNFT\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"spaceNetworkId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"entitlementAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"whitelist\",\"type\":\"bool\"}],\"name\":\"whitelistEntitlementModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ZionSpaceManagerLocalhostABI is the input ABI used to generate the binding from. -// Deprecated: Use ZionSpaceManagerLocalhostMetaData.ABI instead. -var ZionSpaceManagerLocalhostABI = ZionSpaceManagerLocalhostMetaData.ABI - -// ZionSpaceManagerLocalhost is an auto generated Go binding around an Ethereum contract. -type ZionSpaceManagerLocalhost struct { - ZionSpaceManagerLocalhostCaller // Read-only binding to the contract - ZionSpaceManagerLocalhostTransactor // Write-only binding to the contract - ZionSpaceManagerLocalhostFilterer // Log filterer for contract events -} - -// ZionSpaceManagerLocalhostCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZionSpaceManagerLocalhostCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZionSpaceManagerLocalhostTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZionSpaceManagerLocalhostTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZionSpaceManagerLocalhostFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZionSpaceManagerLocalhostFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZionSpaceManagerLocalhostSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZionSpaceManagerLocalhostSession struct { - Contract *ZionSpaceManagerLocalhost // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZionSpaceManagerLocalhostCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZionSpaceManagerLocalhostCallerSession struct { - Contract *ZionSpaceManagerLocalhostCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZionSpaceManagerLocalhostTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZionSpaceManagerLocalhostTransactorSession struct { - Contract *ZionSpaceManagerLocalhostTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZionSpaceManagerLocalhostRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZionSpaceManagerLocalhostRaw struct { - Contract *ZionSpaceManagerLocalhost // Generic contract binding to access the raw methods on -} - -// ZionSpaceManagerLocalhostCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZionSpaceManagerLocalhostCallerRaw struct { - Contract *ZionSpaceManagerLocalhostCaller // Generic read-only contract binding to access the raw methods on -} - -// ZionSpaceManagerLocalhostTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZionSpaceManagerLocalhostTransactorRaw struct { - Contract *ZionSpaceManagerLocalhostTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZionSpaceManagerLocalhost creates a new instance of ZionSpaceManagerLocalhost, bound to a specific deployed contract. -func NewZionSpaceManagerLocalhost(address common.Address, backend bind.ContractBackend) (*ZionSpaceManagerLocalhost, error) { - contract, err := bindZionSpaceManagerLocalhost(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZionSpaceManagerLocalhost{ZionSpaceManagerLocalhostCaller: ZionSpaceManagerLocalhostCaller{contract: contract}, ZionSpaceManagerLocalhostTransactor: ZionSpaceManagerLocalhostTransactor{contract: contract}, ZionSpaceManagerLocalhostFilterer: ZionSpaceManagerLocalhostFilterer{contract: contract}}, nil -} - -// NewZionSpaceManagerLocalhostCaller creates a new read-only instance of ZionSpaceManagerLocalhost, bound to a specific deployed contract. -func NewZionSpaceManagerLocalhostCaller(address common.Address, caller bind.ContractCaller) (*ZionSpaceManagerLocalhostCaller, error) { - contract, err := bindZionSpaceManagerLocalhost(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZionSpaceManagerLocalhostCaller{contract: contract}, nil -} - -// NewZionSpaceManagerLocalhostTransactor creates a new write-only instance of ZionSpaceManagerLocalhost, bound to a specific deployed contract. -func NewZionSpaceManagerLocalhostTransactor(address common.Address, transactor bind.ContractTransactor) (*ZionSpaceManagerLocalhostTransactor, error) { - contract, err := bindZionSpaceManagerLocalhost(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZionSpaceManagerLocalhostTransactor{contract: contract}, nil -} - -// NewZionSpaceManagerLocalhostFilterer creates a new log filterer instance of ZionSpaceManagerLocalhost, bound to a specific deployed contract. -func NewZionSpaceManagerLocalhostFilterer(address common.Address, filterer bind.ContractFilterer) (*ZionSpaceManagerLocalhostFilterer, error) { - contract, err := bindZionSpaceManagerLocalhost(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZionSpaceManagerLocalhostFilterer{contract: contract}, nil -} - -// bindZionSpaceManagerLocalhost binds a generic wrapper to an already deployed contract. -func bindZionSpaceManagerLocalhost(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := abi.JSON(strings.NewReader(ZionSpaceManagerLocalhostABI)) - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZionSpaceManagerLocalhost.Contract.ZionSpaceManagerLocalhostCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.ZionSpaceManagerLocalhostTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.ZionSpaceManagerLocalhostTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZionSpaceManagerLocalhost.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.contract.Transact(opts, method, params...) -} - -// GetChannelIdByNetworkId is a free data retrieval call binding the contract method 0x3e66eae3. -// -// Solidity: function getChannelIdByNetworkId(string spaceId, string channelId) view returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetChannelIdByNetworkId(opts *bind.CallOpts, spaceId string, channelId string) (*big.Int, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getChannelIdByNetworkId", spaceId, channelId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetChannelIdByNetworkId is a free data retrieval call binding the contract method 0x3e66eae3. -// -// Solidity: function getChannelIdByNetworkId(string spaceId, string channelId) view returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetChannelIdByNetworkId(spaceId string, channelId string) (*big.Int, error) { - return _ZionSpaceManagerLocalhost.Contract.GetChannelIdByNetworkId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId, channelId) -} - -// GetChannelIdByNetworkId is a free data retrieval call binding the contract method 0x3e66eae3. -// -// Solidity: function getChannelIdByNetworkId(string spaceId, string channelId) view returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetChannelIdByNetworkId(spaceId string, channelId string) (*big.Int, error) { - return _ZionSpaceManagerLocalhost.Contract.GetChannelIdByNetworkId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId, channelId) -} - -// GetChannelInfoByChannelId is a free data retrieval call binding the contract method 0x0db37ba3. -// -// Solidity: function getChannelInfoByChannelId(string spaceId, string channelId) view returns((uint256,string,uint256,string,address,bool)) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetChannelInfoByChannelId(opts *bind.CallOpts, spaceId string, channelId string) (DataTypesChannelInfo, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getChannelInfoByChannelId", spaceId, channelId) - - if err != nil { - return *new(DataTypesChannelInfo), err - } - - out0 := *abi.ConvertType(out[0], new(DataTypesChannelInfo)).(*DataTypesChannelInfo) - - return out0, err - -} - -// GetChannelInfoByChannelId is a free data retrieval call binding the contract method 0x0db37ba3. -// -// Solidity: function getChannelInfoByChannelId(string spaceId, string channelId) view returns((uint256,string,uint256,string,address,bool)) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetChannelInfoByChannelId(spaceId string, channelId string) (DataTypesChannelInfo, error) { - return _ZionSpaceManagerLocalhost.Contract.GetChannelInfoByChannelId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId, channelId) -} - -// GetChannelInfoByChannelId is a free data retrieval call binding the contract method 0x0db37ba3. -// -// Solidity: function getChannelInfoByChannelId(string spaceId, string channelId) view returns((uint256,string,uint256,string,address,bool)) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetChannelInfoByChannelId(spaceId string, channelId string) (DataTypesChannelInfo, error) { - return _ZionSpaceManagerLocalhost.Contract.GetChannelInfoByChannelId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId, channelId) -} - -// GetChannelsBySpaceId is a free data retrieval call binding the contract method 0x50c24eef. -// -// Solidity: function getChannelsBySpaceId(string spaceId) view returns((uint256,(uint256,uint256,string,string,address,bool)[])) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetChannelsBySpaceId(opts *bind.CallOpts, spaceId string) (DataTypesChannels, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getChannelsBySpaceId", spaceId) - - if err != nil { - return *new(DataTypesChannels), err - } - - out0 := *abi.ConvertType(out[0], new(DataTypesChannels)).(*DataTypesChannels) - - return out0, err - -} - -// GetChannelsBySpaceId is a free data retrieval call binding the contract method 0x50c24eef. -// -// Solidity: function getChannelsBySpaceId(string spaceId) view returns((uint256,(uint256,uint256,string,string,address,bool)[])) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetChannelsBySpaceId(spaceId string) (DataTypesChannels, error) { - return _ZionSpaceManagerLocalhost.Contract.GetChannelsBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetChannelsBySpaceId is a free data retrieval call binding the contract method 0x50c24eef. -// -// Solidity: function getChannelsBySpaceId(string spaceId) view returns((uint256,(uint256,uint256,string,string,address,bool)[])) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetChannelsBySpaceId(spaceId string) (DataTypesChannels, error) { - return _ZionSpaceManagerLocalhost.Contract.GetChannelsBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetEntitlementModulesBySpaceId is a free data retrieval call binding the contract method 0x141b6498. -// -// Solidity: function getEntitlementModulesBySpaceId(string spaceId) view returns(address[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetEntitlementModulesBySpaceId(opts *bind.CallOpts, spaceId string) ([]common.Address, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getEntitlementModulesBySpaceId", spaceId) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetEntitlementModulesBySpaceId is a free data retrieval call binding the contract method 0x141b6498. -// -// Solidity: function getEntitlementModulesBySpaceId(string spaceId) view returns(address[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetEntitlementModulesBySpaceId(spaceId string) ([]common.Address, error) { - return _ZionSpaceManagerLocalhost.Contract.GetEntitlementModulesBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetEntitlementModulesBySpaceId is a free data retrieval call binding the contract method 0x141b6498. -// -// Solidity: function getEntitlementModulesBySpaceId(string spaceId) view returns(address[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetEntitlementModulesBySpaceId(spaceId string) ([]common.Address, error) { - return _ZionSpaceManagerLocalhost.Contract.GetEntitlementModulesBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetEntitlementsInfoBySpaceId is a free data retrieval call binding the contract method 0x3519167c. -// -// Solidity: function getEntitlementsInfoBySpaceId(string spaceId) view returns((address,string,string,string)[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetEntitlementsInfoBySpaceId(opts *bind.CallOpts, spaceId string) ([]DataTypesEntitlementModuleInfo, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getEntitlementsInfoBySpaceId", spaceId) - - if err != nil { - return *new([]DataTypesEntitlementModuleInfo), err - } - - out0 := *abi.ConvertType(out[0], new([]DataTypesEntitlementModuleInfo)).(*[]DataTypesEntitlementModuleInfo) - - return out0, err - -} - -// GetEntitlementsInfoBySpaceId is a free data retrieval call binding the contract method 0x3519167c. -// -// Solidity: function getEntitlementsInfoBySpaceId(string spaceId) view returns((address,string,string,string)[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetEntitlementsInfoBySpaceId(spaceId string) ([]DataTypesEntitlementModuleInfo, error) { - return _ZionSpaceManagerLocalhost.Contract.GetEntitlementsInfoBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetEntitlementsInfoBySpaceId is a free data retrieval call binding the contract method 0x3519167c. -// -// Solidity: function getEntitlementsInfoBySpaceId(string spaceId) view returns((address,string,string,string)[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetEntitlementsInfoBySpaceId(spaceId string) ([]DataTypesEntitlementModuleInfo, error) { - return _ZionSpaceManagerLocalhost.Contract.GetEntitlementsInfoBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetSpaceIdByNetworkId is a free data retrieval call binding the contract method 0x9ddd0d6b. -// -// Solidity: function getSpaceIdByNetworkId(string networkId) view returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetSpaceIdByNetworkId(opts *bind.CallOpts, networkId string) (*big.Int, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getSpaceIdByNetworkId", networkId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetSpaceIdByNetworkId is a free data retrieval call binding the contract method 0x9ddd0d6b. -// -// Solidity: function getSpaceIdByNetworkId(string networkId) view returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetSpaceIdByNetworkId(networkId string) (*big.Int, error) { - return _ZionSpaceManagerLocalhost.Contract.GetSpaceIdByNetworkId(&_ZionSpaceManagerLocalhost.CallOpts, networkId) -} - -// GetSpaceIdByNetworkId is a free data retrieval call binding the contract method 0x9ddd0d6b. -// -// Solidity: function getSpaceIdByNetworkId(string networkId) view returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetSpaceIdByNetworkId(networkId string) (*big.Int, error) { - return _ZionSpaceManagerLocalhost.Contract.GetSpaceIdByNetworkId(&_ZionSpaceManagerLocalhost.CallOpts, networkId) -} - -// GetSpaceInfoBySpaceId is a free data retrieval call binding the contract method 0x2bb59212. -// -// Solidity: function getSpaceInfoBySpaceId(string spaceId) view returns((uint256,string,uint256,string,address,address,bool)) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetSpaceInfoBySpaceId(opts *bind.CallOpts, spaceId string) (DataTypesSpaceInfo, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getSpaceInfoBySpaceId", spaceId) - - if err != nil { - return *new(DataTypesSpaceInfo), err - } - - out0 := *abi.ConvertType(out[0], new(DataTypesSpaceInfo)).(*DataTypesSpaceInfo) - - return out0, err - -} - -// GetSpaceInfoBySpaceId is a free data retrieval call binding the contract method 0x2bb59212. -// -// Solidity: function getSpaceInfoBySpaceId(string spaceId) view returns((uint256,string,uint256,string,address,address,bool)) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetSpaceInfoBySpaceId(spaceId string) (DataTypesSpaceInfo, error) { - return _ZionSpaceManagerLocalhost.Contract.GetSpaceInfoBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetSpaceInfoBySpaceId is a free data retrieval call binding the contract method 0x2bb59212. -// -// Solidity: function getSpaceInfoBySpaceId(string spaceId) view returns((uint256,string,uint256,string,address,address,bool)) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetSpaceInfoBySpaceId(spaceId string) (DataTypesSpaceInfo, error) { - return _ZionSpaceManagerLocalhost.Contract.GetSpaceInfoBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetSpaceOwnerBySpaceId is a free data retrieval call binding the contract method 0x2a4bdf25. -// -// Solidity: function getSpaceOwnerBySpaceId(string spaceId) view returns(address) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetSpaceOwnerBySpaceId(opts *bind.CallOpts, spaceId string) (common.Address, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getSpaceOwnerBySpaceId", spaceId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetSpaceOwnerBySpaceId is a free data retrieval call binding the contract method 0x2a4bdf25. -// -// Solidity: function getSpaceOwnerBySpaceId(string spaceId) view returns(address) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetSpaceOwnerBySpaceId(spaceId string) (common.Address, error) { - return _ZionSpaceManagerLocalhost.Contract.GetSpaceOwnerBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetSpaceOwnerBySpaceId is a free data retrieval call binding the contract method 0x2a4bdf25. -// -// Solidity: function getSpaceOwnerBySpaceId(string spaceId) view returns(address) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetSpaceOwnerBySpaceId(spaceId string) (common.Address, error) { - return _ZionSpaceManagerLocalhost.Contract.GetSpaceOwnerBySpaceId(&_ZionSpaceManagerLocalhost.CallOpts, spaceId) -} - -// GetSpaces is a free data retrieval call binding the contract method 0x15478ca9. -// -// Solidity: function getSpaces() view returns((uint256,string,uint256,string,address,address,bool)[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) GetSpaces(opts *bind.CallOpts) ([]DataTypesSpaceInfo, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "getSpaces") - - if err != nil { - return *new([]DataTypesSpaceInfo), err - } - - out0 := *abi.ConvertType(out[0], new([]DataTypesSpaceInfo)).(*[]DataTypesSpaceInfo) - - return out0, err - -} - -// GetSpaces is a free data retrieval call binding the contract method 0x15478ca9. -// -// Solidity: function getSpaces() view returns((uint256,string,uint256,string,address,address,bool)[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) GetSpaces() ([]DataTypesSpaceInfo, error) { - return _ZionSpaceManagerLocalhost.Contract.GetSpaces(&_ZionSpaceManagerLocalhost.CallOpts) -} - -// GetSpaces is a free data retrieval call binding the contract method 0x15478ca9. -// -// Solidity: function getSpaces() view returns((uint256,string,uint256,string,address,address,bool)[]) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) GetSpaces() ([]DataTypesSpaceInfo, error) { - return _ZionSpaceManagerLocalhost.Contract.GetSpaces(&_ZionSpaceManagerLocalhost.CallOpts) -} - -// IsEntitled is a free data retrieval call binding the contract method 0xbf77b663. -// -// Solidity: function isEntitled(string spaceId, string channelId, address user, (string) permission) view returns(bool) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) IsEntitled(opts *bind.CallOpts, spaceId string, channelId string, user common.Address, permission DataTypesPermission) (bool, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "isEntitled", spaceId, channelId, user, permission) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsEntitled is a free data retrieval call binding the contract method 0xbf77b663. -// -// Solidity: function isEntitled(string spaceId, string channelId, address user, (string) permission) view returns(bool) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) IsEntitled(spaceId string, channelId string, user common.Address, permission DataTypesPermission) (bool, error) { - return _ZionSpaceManagerLocalhost.Contract.IsEntitled(&_ZionSpaceManagerLocalhost.CallOpts, spaceId, channelId, user, permission) -} - -// IsEntitled is a free data retrieval call binding the contract method 0xbf77b663. -// -// Solidity: function isEntitled(string spaceId, string channelId, address user, (string) permission) view returns(bool) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) IsEntitled(spaceId string, channelId string, user common.Address, permission DataTypesPermission) (bool, error) { - return _ZionSpaceManagerLocalhost.Contract.IsEntitled(&_ZionSpaceManagerLocalhost.CallOpts, spaceId, channelId, user, permission) -} - -// IsEntitlementModuleWhitelisted is a free data retrieval call binding the contract method 0x4196d1ff. -// -// Solidity: function isEntitlementModuleWhitelisted(string spaceId, address entitlementModuleAddress) view returns(bool) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) IsEntitlementModuleWhitelisted(opts *bind.CallOpts, spaceId string, entitlementModuleAddress common.Address) (bool, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "isEntitlementModuleWhitelisted", spaceId, entitlementModuleAddress) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsEntitlementModuleWhitelisted is a free data retrieval call binding the contract method 0x4196d1ff. -// -// Solidity: function isEntitlementModuleWhitelisted(string spaceId, address entitlementModuleAddress) view returns(bool) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) IsEntitlementModuleWhitelisted(spaceId string, entitlementModuleAddress common.Address) (bool, error) { - return _ZionSpaceManagerLocalhost.Contract.IsEntitlementModuleWhitelisted(&_ZionSpaceManagerLocalhost.CallOpts, spaceId, entitlementModuleAddress) -} - -// IsEntitlementModuleWhitelisted is a free data retrieval call binding the contract method 0x4196d1ff. -// -// Solidity: function isEntitlementModuleWhitelisted(string spaceId, address entitlementModuleAddress) view returns(bool) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) IsEntitlementModuleWhitelisted(spaceId string, entitlementModuleAddress common.Address) (bool, error) { - return _ZionSpaceManagerLocalhost.Contract.IsEntitlementModuleWhitelisted(&_ZionSpaceManagerLocalhost.CallOpts, spaceId, entitlementModuleAddress) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZionSpaceManagerLocalhost.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) Owner() (common.Address, error) { - return _ZionSpaceManagerLocalhost.Contract.Owner(&_ZionSpaceManagerLocalhost.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostCallerSession) Owner() (common.Address, error) { - return _ZionSpaceManagerLocalhost.Contract.Owner(&_ZionSpaceManagerLocalhost.CallOpts) -} - -// AddPermissionToRole is a paid mutator transaction binding the contract method 0x7d9a0230. -// -// Solidity: function addPermissionToRole(string spaceId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) AddPermissionToRole(opts *bind.TransactOpts, spaceId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "addPermissionToRole", spaceId, roleId, permission) -} - -// AddPermissionToRole is a paid mutator transaction binding the contract method 0x7d9a0230. -// -// Solidity: function addPermissionToRole(string spaceId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) AddPermissionToRole(spaceId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.AddPermissionToRole(&_ZionSpaceManagerLocalhost.TransactOpts, spaceId, roleId, permission) -} - -// AddPermissionToRole is a paid mutator transaction binding the contract method 0x7d9a0230. -// -// Solidity: function addPermissionToRole(string spaceId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) AddPermissionToRole(spaceId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.AddPermissionToRole(&_ZionSpaceManagerLocalhost.TransactOpts, spaceId, roleId, permission) -} - -// AddRoleIdsToChannel is a paid mutator transaction binding the contract method 0x81fb7db2. -// -// Solidity: function addRoleIdsToChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) AddRoleIdsToChannel(opts *bind.TransactOpts, spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "addRoleIdsToChannel", spaceId, channelId, roleId) -} - -// AddRoleIdsToChannel is a paid mutator transaction binding the contract method 0x81fb7db2. -// -// Solidity: function addRoleIdsToChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) AddRoleIdsToChannel(spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.AddRoleIdsToChannel(&_ZionSpaceManagerLocalhost.TransactOpts, spaceId, channelId, roleId) -} - -// AddRoleIdsToChannel is a paid mutator transaction binding the contract method 0x81fb7db2. -// -// Solidity: function addRoleIdsToChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) AddRoleIdsToChannel(spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.AddRoleIdsToChannel(&_ZionSpaceManagerLocalhost.TransactOpts, spaceId, channelId, roleId) -} - -// AddRoleToEntitlementModule is a paid mutator transaction binding the contract method 0xc79ff589. -// -// Solidity: function addRoleToEntitlementModule(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes entitlementData) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) AddRoleToEntitlementModule(opts *bind.TransactOpts, spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, entitlementData []byte) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "addRoleToEntitlementModule", spaceNetworkId, entitlementModuleAddress, roleId, entitlementData) -} - -// AddRoleToEntitlementModule is a paid mutator transaction binding the contract method 0xc79ff589. -// -// Solidity: function addRoleToEntitlementModule(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes entitlementData) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) AddRoleToEntitlementModule(spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, entitlementData []byte) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.AddRoleToEntitlementModule(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, entitlementModuleAddress, roleId, entitlementData) -} - -// AddRoleToEntitlementModule is a paid mutator transaction binding the contract method 0xc79ff589. -// -// Solidity: function addRoleToEntitlementModule(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes entitlementData) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) AddRoleToEntitlementModule(spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, entitlementData []byte) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.AddRoleToEntitlementModule(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, entitlementModuleAddress, roleId, entitlementData) -} - -// CreateChannel is a paid mutator transaction binding the contract method 0xf1b287d8. -// -// Solidity: function createChannel((string,string,string,uint256[]) data) returns(uint256 channelId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) CreateChannel(opts *bind.TransactOpts, data DataTypesCreateChannelData) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "createChannel", data) -} - -// CreateChannel is a paid mutator transaction binding the contract method 0xf1b287d8. -// -// Solidity: function createChannel((string,string,string,uint256[]) data) returns(uint256 channelId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) CreateChannel(data DataTypesCreateChannelData) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.CreateChannel(&_ZionSpaceManagerLocalhost.TransactOpts, data) -} - -// CreateChannel is a paid mutator transaction binding the contract method 0xf1b287d8. -// -// Solidity: function createChannel((string,string,string,uint256[]) data) returns(uint256 channelId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) CreateChannel(data DataTypesCreateChannelData) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.CreateChannel(&_ZionSpaceManagerLocalhost.TransactOpts, data) -} - -// CreateRole is a paid mutator transaction binding the contract method 0xd2192dbf. -// -// Solidity: function createRole(string spaceNetworkId, string name) returns(uint256 roleId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) CreateRole(opts *bind.TransactOpts, spaceNetworkId string, name string) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "createRole", spaceNetworkId, name) -} - -// CreateRole is a paid mutator transaction binding the contract method 0xd2192dbf. -// -// Solidity: function createRole(string spaceNetworkId, string name) returns(uint256 roleId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) CreateRole(spaceNetworkId string, name string) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.CreateRole(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, name) -} - -// CreateRole is a paid mutator transaction binding the contract method 0xd2192dbf. -// -// Solidity: function createRole(string spaceNetworkId, string name) returns(uint256 roleId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) CreateRole(spaceNetworkId string, name string) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.CreateRole(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, name) -} - -// CreateRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x40c0df81. -// -// Solidity: function createRoleWithEntitlementData(string spaceNetworkId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(uint256 roleId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) CreateRoleWithEntitlementData(opts *bind.TransactOpts, spaceNetworkId string, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "createRoleWithEntitlementData", spaceNetworkId, roleName, permissions, tokenEntitlements, users) -} - -// CreateRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x40c0df81. -// -// Solidity: function createRoleWithEntitlementData(string spaceNetworkId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(uint256 roleId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) CreateRoleWithEntitlementData(spaceNetworkId string, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.CreateRoleWithEntitlementData(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, roleName, permissions, tokenEntitlements, users) -} - -// CreateRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x40c0df81. -// -// Solidity: function createRoleWithEntitlementData(string spaceNetworkId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(uint256 roleId) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) CreateRoleWithEntitlementData(spaceNetworkId string, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.CreateRoleWithEntitlementData(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, roleName, permissions, tokenEntitlements, users) -} - -// CreateSpace is a paid mutator transaction binding the contract method 0x1f2bd9e5. -// -// Solidity: function createSpace((string,string,string) info, (string,(string)[],((address,uint256,bool,uint256)[])[],address[]) entitlementData, (string)[] everyonePermissions) returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) CreateSpace(opts *bind.TransactOpts, info DataTypesCreateSpaceData, entitlementData DataTypesCreateSpaceEntitlementData, everyonePermissions []DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "createSpace", info, entitlementData, everyonePermissions) -} - -// CreateSpace is a paid mutator transaction binding the contract method 0x1f2bd9e5. -// -// Solidity: function createSpace((string,string,string) info, (string,(string)[],((address,uint256,bool,uint256)[])[],address[]) entitlementData, (string)[] everyonePermissions) returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) CreateSpace(info DataTypesCreateSpaceData, entitlementData DataTypesCreateSpaceEntitlementData, everyonePermissions []DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.CreateSpace(&_ZionSpaceManagerLocalhost.TransactOpts, info, entitlementData, everyonePermissions) -} - -// CreateSpace is a paid mutator transaction binding the contract method 0x1f2bd9e5. -// -// Solidity: function createSpace((string,string,string) info, (string,(string)[],((address,uint256,bool,uint256)[])[],address[]) entitlementData, (string)[] everyonePermissions) returns(uint256) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) CreateSpace(info DataTypesCreateSpaceData, entitlementData DataTypesCreateSpaceEntitlementData, everyonePermissions []DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.CreateSpace(&_ZionSpaceManagerLocalhost.TransactOpts, info, entitlementData, everyonePermissions) -} - -// ModifyRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x2ca07161. -// -// Solidity: function modifyRoleWithEntitlementData(string spaceNetworkId, uint256 roleId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(bool isModified) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) ModifyRoleWithEntitlementData(opts *bind.TransactOpts, spaceNetworkId string, roleId *big.Int, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "modifyRoleWithEntitlementData", spaceNetworkId, roleId, roleName, permissions, tokenEntitlements, users) -} - -// ModifyRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x2ca07161. -// -// Solidity: function modifyRoleWithEntitlementData(string spaceNetworkId, uint256 roleId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(bool isModified) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) ModifyRoleWithEntitlementData(spaceNetworkId string, roleId *big.Int, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.ModifyRoleWithEntitlementData(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, roleId, roleName, permissions, tokenEntitlements, users) -} - -// ModifyRoleWithEntitlementData is a paid mutator transaction binding the contract method 0x2ca07161. -// -// Solidity: function modifyRoleWithEntitlementData(string spaceNetworkId, uint256 roleId, string roleName, (string)[] permissions, ((address,uint256,bool,uint256)[])[] tokenEntitlements, address[] users) returns(bool isModified) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) ModifyRoleWithEntitlementData(spaceNetworkId string, roleId *big.Int, roleName string, permissions []DataTypesPermission, tokenEntitlements []DataTypesExternalTokenEntitlement, users []common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.ModifyRoleWithEntitlementData(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, roleId, roleName, permissions, tokenEntitlements, users) -} - -// RemoveEntitlement is a paid mutator transaction binding the contract method 0xd6b1b633. -// -// Solidity: function removeEntitlement(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes data) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) RemoveEntitlement(opts *bind.TransactOpts, spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, data []byte) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "removeEntitlement", spaceNetworkId, entitlementModuleAddress, roleId, data) -} - -// RemoveEntitlement is a paid mutator transaction binding the contract method 0xd6b1b633. -// -// Solidity: function removeEntitlement(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes data) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) RemoveEntitlement(spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, data []byte) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RemoveEntitlement(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, entitlementModuleAddress, roleId, data) -} - -// RemoveEntitlement is a paid mutator transaction binding the contract method 0xd6b1b633. -// -// Solidity: function removeEntitlement(string spaceNetworkId, address entitlementModuleAddress, uint256 roleId, bytes data) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) RemoveEntitlement(spaceNetworkId string, entitlementModuleAddress common.Address, roleId *big.Int, data []byte) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RemoveEntitlement(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, entitlementModuleAddress, roleId, data) -} - -// RemovePermissionFromRole is a paid mutator transaction binding the contract method 0x4832a4ec. -// -// Solidity: function removePermissionFromRole(string spaceNetworkId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) RemovePermissionFromRole(opts *bind.TransactOpts, spaceNetworkId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "removePermissionFromRole", spaceNetworkId, roleId, permission) -} - -// RemovePermissionFromRole is a paid mutator transaction binding the contract method 0x4832a4ec. -// -// Solidity: function removePermissionFromRole(string spaceNetworkId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) RemovePermissionFromRole(spaceNetworkId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RemovePermissionFromRole(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, roleId, permission) -} - -// RemovePermissionFromRole is a paid mutator transaction binding the contract method 0x4832a4ec. -// -// Solidity: function removePermissionFromRole(string spaceNetworkId, uint256 roleId, (string) permission) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) RemovePermissionFromRole(spaceNetworkId string, roleId *big.Int, permission DataTypesPermission) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RemovePermissionFromRole(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, roleId, permission) -} - -// RemoveRole is a paid mutator transaction binding the contract method 0x8b0e905a. -// -// Solidity: function removeRole(string spaceNetworkId, uint256 roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) RemoveRole(opts *bind.TransactOpts, spaceNetworkId string, roleId *big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "removeRole", spaceNetworkId, roleId) -} - -// RemoveRole is a paid mutator transaction binding the contract method 0x8b0e905a. -// -// Solidity: function removeRole(string spaceNetworkId, uint256 roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) RemoveRole(spaceNetworkId string, roleId *big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RemoveRole(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, roleId) -} - -// RemoveRole is a paid mutator transaction binding the contract method 0x8b0e905a. -// -// Solidity: function removeRole(string spaceNetworkId, uint256 roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) RemoveRole(spaceNetworkId string, roleId *big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RemoveRole(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, roleId) -} - -// RemoveRoleIdsFromChannel is a paid mutator transaction binding the contract method 0x7a40ab90. -// -// Solidity: function removeRoleIdsFromChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) RemoveRoleIdsFromChannel(opts *bind.TransactOpts, spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "removeRoleIdsFromChannel", spaceId, channelId, roleId) -} - -// RemoveRoleIdsFromChannel is a paid mutator transaction binding the contract method 0x7a40ab90. -// -// Solidity: function removeRoleIdsFromChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) RemoveRoleIdsFromChannel(spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RemoveRoleIdsFromChannel(&_ZionSpaceManagerLocalhost.TransactOpts, spaceId, channelId, roleId) -} - -// RemoveRoleIdsFromChannel is a paid mutator transaction binding the contract method 0x7a40ab90. -// -// Solidity: function removeRoleIdsFromChannel(string spaceId, string channelId, uint256[] roleId) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) RemoveRoleIdsFromChannel(spaceId string, channelId string, roleId []*big.Int) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RemoveRoleIdsFromChannel(&_ZionSpaceManagerLocalhost.TransactOpts, spaceId, channelId, roleId) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "renounceOwnership") -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) RenounceOwnership() (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RenounceOwnership(&_ZionSpaceManagerLocalhost.TransactOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.RenounceOwnership(&_ZionSpaceManagerLocalhost.TransactOpts) -} - -// SetChannelAccess is a paid mutator transaction binding the contract method 0x72a29321. -// -// Solidity: function setChannelAccess(string spaceNetworkId, string channelNetworkId, bool disabled) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) SetChannelAccess(opts *bind.TransactOpts, spaceNetworkId string, channelNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "setChannelAccess", spaceNetworkId, channelNetworkId, disabled) -} - -// SetChannelAccess is a paid mutator transaction binding the contract method 0x72a29321. -// -// Solidity: function setChannelAccess(string spaceNetworkId, string channelNetworkId, bool disabled) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) SetChannelAccess(spaceNetworkId string, channelNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetChannelAccess(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, channelNetworkId, disabled) -} - -// SetChannelAccess is a paid mutator transaction binding the contract method 0x72a29321. -// -// Solidity: function setChannelAccess(string spaceNetworkId, string channelNetworkId, bool disabled) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) SetChannelAccess(spaceNetworkId string, channelNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetChannelAccess(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, channelNetworkId, disabled) -} - -// SetDefaultTokenEntitlementModule is a paid mutator transaction binding the contract method 0x1a039620. -// -// Solidity: function setDefaultTokenEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) SetDefaultTokenEntitlementModule(opts *bind.TransactOpts, entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "setDefaultTokenEntitlementModule", entitlementModule) -} - -// SetDefaultTokenEntitlementModule is a paid mutator transaction binding the contract method 0x1a039620. -// -// Solidity: function setDefaultTokenEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) SetDefaultTokenEntitlementModule(entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetDefaultTokenEntitlementModule(&_ZionSpaceManagerLocalhost.TransactOpts, entitlementModule) -} - -// SetDefaultTokenEntitlementModule is a paid mutator transaction binding the contract method 0x1a039620. -// -// Solidity: function setDefaultTokenEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) SetDefaultTokenEntitlementModule(entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetDefaultTokenEntitlementModule(&_ZionSpaceManagerLocalhost.TransactOpts, entitlementModule) -} - -// SetDefaultUserEntitlementModule is a paid mutator transaction binding the contract method 0xe1b7a9e5. -// -// Solidity: function setDefaultUserEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) SetDefaultUserEntitlementModule(opts *bind.TransactOpts, entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "setDefaultUserEntitlementModule", entitlementModule) -} - -// SetDefaultUserEntitlementModule is a paid mutator transaction binding the contract method 0xe1b7a9e5. -// -// Solidity: function setDefaultUserEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) SetDefaultUserEntitlementModule(entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetDefaultUserEntitlementModule(&_ZionSpaceManagerLocalhost.TransactOpts, entitlementModule) -} - -// SetDefaultUserEntitlementModule is a paid mutator transaction binding the contract method 0xe1b7a9e5. -// -// Solidity: function setDefaultUserEntitlementModule(address entitlementModule) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) SetDefaultUserEntitlementModule(entitlementModule common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetDefaultUserEntitlementModule(&_ZionSpaceManagerLocalhost.TransactOpts, entitlementModule) -} - -// SetSpaceAccess is a paid mutator transaction binding the contract method 0xf86caf83. -// -// Solidity: function setSpaceAccess(string spaceNetworkId, bool disabled) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) SetSpaceAccess(opts *bind.TransactOpts, spaceNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "setSpaceAccess", spaceNetworkId, disabled) -} - -// SetSpaceAccess is a paid mutator transaction binding the contract method 0xf86caf83. -// -// Solidity: function setSpaceAccess(string spaceNetworkId, bool disabled) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) SetSpaceAccess(spaceNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetSpaceAccess(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, disabled) -} - -// SetSpaceAccess is a paid mutator transaction binding the contract method 0xf86caf83. -// -// Solidity: function setSpaceAccess(string spaceNetworkId, bool disabled) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) SetSpaceAccess(spaceNetworkId string, disabled bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetSpaceAccess(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, disabled) -} - -// SetSpaceNFT is a paid mutator transaction binding the contract method 0xccde2de3. -// -// Solidity: function setSpaceNFT(address spaceNFTAddress) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) SetSpaceNFT(opts *bind.TransactOpts, spaceNFTAddress common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "setSpaceNFT", spaceNFTAddress) -} - -// SetSpaceNFT is a paid mutator transaction binding the contract method 0xccde2de3. -// -// Solidity: function setSpaceNFT(address spaceNFTAddress) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) SetSpaceNFT(spaceNFTAddress common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetSpaceNFT(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNFTAddress) -} - -// SetSpaceNFT is a paid mutator transaction binding the contract method 0xccde2de3. -// -// Solidity: function setSpaceNFT(address spaceNFTAddress) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) SetSpaceNFT(spaceNFTAddress common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.SetSpaceNFT(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNFTAddress) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "transferOwnership", newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.TransferOwnership(&_ZionSpaceManagerLocalhost.TransactOpts, newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.TransferOwnership(&_ZionSpaceManagerLocalhost.TransactOpts, newOwner) -} - -// WhitelistEntitlementModule is a paid mutator transaction binding the contract method 0xe798ff3f. -// -// Solidity: function whitelistEntitlementModule(string spaceNetworkId, address entitlementAddress, bool whitelist) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactor) WhitelistEntitlementModule(opts *bind.TransactOpts, spaceNetworkId string, entitlementAddress common.Address, whitelist bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.contract.Transact(opts, "whitelistEntitlementModule", spaceNetworkId, entitlementAddress, whitelist) -} - -// WhitelistEntitlementModule is a paid mutator transaction binding the contract method 0xe798ff3f. -// -// Solidity: function whitelistEntitlementModule(string spaceNetworkId, address entitlementAddress, bool whitelist) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostSession) WhitelistEntitlementModule(spaceNetworkId string, entitlementAddress common.Address, whitelist bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.WhitelistEntitlementModule(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, entitlementAddress, whitelist) -} - -// WhitelistEntitlementModule is a paid mutator transaction binding the contract method 0xe798ff3f. -// -// Solidity: function whitelistEntitlementModule(string spaceNetworkId, address entitlementAddress, bool whitelist) returns() -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostTransactorSession) WhitelistEntitlementModule(spaceNetworkId string, entitlementAddress common.Address, whitelist bool) (*types.Transaction, error) { - return _ZionSpaceManagerLocalhost.Contract.WhitelistEntitlementModule(&_ZionSpaceManagerLocalhost.TransactOpts, spaceNetworkId, entitlementAddress, whitelist) -} - -// ZionSpaceManagerLocalhostOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ZionSpaceManagerLocalhost contract. -type ZionSpaceManagerLocalhostOwnershipTransferredIterator struct { - Event *ZionSpaceManagerLocalhostOwnershipTransferred // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZionSpaceManagerLocalhostOwnershipTransferredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZionSpaceManagerLocalhostOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZionSpaceManagerLocalhostOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZionSpaceManagerLocalhostOwnershipTransferredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZionSpaceManagerLocalhostOwnershipTransferredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZionSpaceManagerLocalhostOwnershipTransferred represents a OwnershipTransferred event raised by the ZionSpaceManagerLocalhost contract. -type ZionSpaceManagerLocalhostOwnershipTransferred struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ZionSpaceManagerLocalhostOwnershipTransferredIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZionSpaceManagerLocalhost.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &ZionSpaceManagerLocalhostOwnershipTransferredIterator{contract: _ZionSpaceManagerLocalhost.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ZionSpaceManagerLocalhostOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZionSpaceManagerLocalhost.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZionSpaceManagerLocalhostOwnershipTransferred) - if err := _ZionSpaceManagerLocalhost.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZionSpaceManagerLocalhost *ZionSpaceManagerLocalhostFilterer) ParseOwnershipTransferred(log types.Log) (*ZionSpaceManagerLocalhostOwnershipTransferred, error) { - event := new(ZionSpaceManagerLocalhostOwnershipTransferred) - if err := _ZionSpaceManagerLocalhost.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -}