UNPKG

@q-dev/q-ts-gdk-sdk

Version:

Typescript Library to interact with GDK Contracts

980 lines (979 loc) 19.5 kB
[ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "role", "type": "string" }, { "indexed": false, "internalType": "string", "name": "resource", "type": "string" }, { "indexed": false, "internalType": "string[]", "name": "permissionsToAdd", "type": "string[]" }, { "indexed": false, "internalType": "bool", "name": "allowed", "type": "bool" } ], "name": "AddedPermissions", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "who", "type": "address" }, { "indexed": false, "internalType": "string[]", "name": "groupsToAddTo", "type": "string[]" } ], "name": "AddedToGroups", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "groupTo", "type": "string" }, { "indexed": false, "internalType": "string[]", "name": "rolesToGrant", "type": "string[]" } ], "name": "GrantedGroupRoles", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "string[]", "name": "rolesToGrant", "type": "string[]" } ], "name": "GrantedRoles", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "who", "type": "address" }, { "indexed": false, "internalType": "string[]", "name": "groupsToRemoveFrom", "type": "string[]" } ], "name": "RemovedFromGroups", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "role", "type": "string" }, { "indexed": false, "internalType": "string", "name": "resource", "type": "string" }, { "indexed": false, "internalType": "string[]", "name": "permissionsToRemove", "type": "string[]" }, { "indexed": false, "internalType": "bool", "name": "allowed", "type": "bool" } ], "name": "RemovedPermissions", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "groupFrom", "type": "string" }, { "indexed": false, "internalType": "string[]", "name": "rolesToRevoke", "type": "string[]" } ], "name": "RevokedGroupRoles", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "string[]", "name": "rolesToRevoke", "type": "string[]" } ], "name": "RevokedRoles", "type": "event" }, { "inputs": [], "name": "ALL_PERMISSION", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ALL_RESOURCE", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "CREATE_PERMISSION", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DELETE_PERMISSION", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MASTER_ROLE", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PERMISSION_MANAGER_RESOURCE", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "RBAC_RESOURCE", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "READ_PERMISSION", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "UPDATE_PERMISSION", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract DAORegistry", "name": "dao_", "type": "address" }, { "internalType": "address", "name": "master_", "type": "address" }, { "internalType": "string", "name": "resource_", "type": "string" }, { "internalType": "string", "name": "panelName_", "type": "string" } ], "name": "__PermissionManager_init", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "role_", "type": "string" }, { "components": [ { "internalType": "string", "name": "resource", "type": "string" }, { "internalType": "string[]", "name": "permissions", "type": "string[]" } ], "internalType": "struct IRBAC.ResourceWithPermissions[]", "name": "permissionsToAdd_", "type": "tuple[]" }, { "internalType": "bool", "name": "allowed_", "type": "bool" } ], "name": "addPermissionsToRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "who_", "type": "address" }, { "internalType": "string[]", "name": "groupsToAddTo_", "type": "string[]" } ], "name": "addUserToGroups", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "target_", "type": "address" }, { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "address[]", "name": "initialMembers_", "type": "address[]" }, { "internalType": "contract DAOMemberStorage", "name": "linkedMemberStorage_", "type": "address" } ], "name": "addVetoGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "member_", "type": "address" }, { "internalType": "address", "name": "target_", "type": "address" } ], "name": "addVetoGroupMember", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "address[]", "name": "initialMembers", "type": "address[]" }, { "internalType": "contract DAOMemberStorage", "name": "linkedMemberStorage", "type": "address" } ], "internalType": "struct IPermissionManager.VetoGroupInitializationParams[]", "name": "vetoGroups_", "type": "tuple[]" } ], "name": "addVetoGroups", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account_", "type": "address" }, { "internalType": "string", "name": "permission_", "type": "string" } ], "name": "checkPermission", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract DAORegistry", "name": "dao_", "type": "address" }, { "internalType": "address", "name": "voting_", "type": "address" }, { "internalType": "string", "name": "panelName_", "type": "string" } ], "name": "confExpertsGroups", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract DAORegistry", "name": "dao_", "type": "address" }, { "internalType": "address", "name": "voting_", "type": "address" }, { "internalType": "string", "name": "panelName_", "type": "string" } ], "name": "confMemberGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract DAORegistry", "name": "dao_", "type": "address" }, { "internalType": "address", "name": "voting_", "type": "address" }, { "internalType": "string", "name": "panelName_", "type": "string" } ], "name": "confVotingModule", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "group_", "type": "string" } ], "name": "getGroupRoles", "outputs": [ { "internalType": "string[]", "name": "roles_", "type": "string[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getResource", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "role_", "type": "string" } ], "name": "getRolePermissions", "outputs": [ { "components": [ { "internalType": "string", "name": "resource", "type": "string" }, { "internalType": "string[]", "name": "permissions", "type": "string[]" } ], "internalType": "struct IRBAC.ResourceWithPermissions[]", "name": "allowed_", "type": "tuple[]" }, { "components": [ { "internalType": "string", "name": "resource", "type": "string" }, { "internalType": "string[]", "name": "permissions", "type": "string[]" } ], "internalType": "struct IRBAC.ResourceWithPermissions[]", "name": "disallowed_", "type": "tuple[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "who_", "type": "address" } ], "name": "getUserGroups", "outputs": [ { "internalType": "string[]", "name": "groups_", "type": "string[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "who_", "type": "address" } ], "name": "getUserRoles", "outputs": [ { "internalType": "string[]", "name": "roles_", "type": "string[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "target_", "type": "address" } ], "name": "getVetoGroupInfo", "outputs": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "address[]", "name": "members", "type": "address[]" }, { "internalType": "address", "name": "linkedMemberStorage", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "target_", "type": "address" } ], "name": "getVetoMembersCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "groupTo_", "type": "string" }, { "internalType": "string[]", "name": "rolesToGrant_", "type": "string[]" } ], "name": "grantGroupRoles", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to_", "type": "address" }, { "internalType": "string[]", "name": "rolesToGrant_", "type": "string[]" } ], "name": "grantRoles", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "who_", "type": "address" }, { "internalType": "string", "name": "resource_", "type": "string" }, { "internalType": "string", "name": "permission_", "type": "string" } ], "name": "hasPermission", "outputs": [ { "internalType": "bool", "name": "isAllowed_", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract DAORegistry", "name": "dao_", "type": "address" }, { "internalType": "address", "name": "voting_", "type": "address" }, { "internalType": "string", "name": "panelName_", "type": "string" } ], "name": "initialConfiguration", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "target_", "type": "address" }, { "internalType": "contract DAOMemberStorage", "name": "linkedMemberStorage_", "type": "address" } ], "name": "linkStorageToVetoGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes[]", "name": "data", "type": "bytes[]" } ], "name": "multicall", "outputs": [ { "internalType": "bytes[]", "name": "results", "type": "bytes[]" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "role_", "type": "string" }, { "components": [ { "internalType": "string", "name": "resource", "type": "string" }, { "internalType": "string[]", "name": "permissions", "type": "string[]" } ], "internalType": "struct IRBAC.ResourceWithPermissions[]", "name": "permissionsToRemove_", "type": "tuple[]" }, { "internalType": "bool", "name": "allowed_", "type": "bool" } ], "name": "removePermissionsFromRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "who_", "type": "address" }, { "internalType": "string[]", "name": "groupsToRemoveFrom_", "type": "string[]" } ], "name": "removeUserFromGroups", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "target_", "type": "address" } ], "name": "removeVetoGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "member_", "type": "address" }, { "internalType": "address", "name": "target_", "type": "address" } ], "name": "removeVetoGroupMember", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "groupFrom_", "type": "string" }, { "internalType": "string[]", "name": "rolesToRevoke_", "type": "string[]" } ], "name": "revokeGroupRoles", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from_", "type": "address" }, { "internalType": "string[]", "name": "rolesToRevoke_", "type": "string[]" } ], "name": "revokeRoles", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]