@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
617 lines (616 loc) • 12.6 kB
JSON
[
{
"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": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "string[]",
"name": "rolesToGrant",
"type": "string[]"
}
],
"name": "GrantedRoles",
"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": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "string[]",
"name": "rolesToRevoke",
"type": "string[]"
}
],
"name": "RevokedRoles",
"type": "event"
},
{
"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": "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": "member_",
"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": [],
"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": "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": "",
"type": "address"
},
{
"internalType": "string",
"name": "",
"type": "string"
},
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "address",
"name": "",
"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": "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": "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": "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": "address",
"name": "from_",
"type": "address"
},
{
"internalType": "string[]",
"name": "rolesToRevoke_",
"type": "string[]"
}
],
"name": "revokeRoles",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]