Function useMasterAccessManagement

  • Parameters

    • contractAddress: string
    • provider: Provider
    • rawProvider: RawProvider

    Returns {
        addCombinedPermissionsToRole: ((role: string, description: string, allowedPermissions: ResourceWithPermissionsStruct[], disallowedPermissions: ResourceWithPermissionsStruct[]) => Promise<TransactionResponse>);
        getBannedRoleId: (() => Promise<string>);
        getMasterRoleId: (() => Promise<string>);
        grantRoles: ((to: string, roles: string[]) => Promise<TransactionResponse>);
        removePermissionsFromRole: ((role: string, permissionsToRemove: ResourceWithPermissionsStruct[], allowed: boolean) => Promise<TransactionResponse>);
        revokeRoles: ((from: string, roles: string[]) => Promise<TransactionResponse>);
        updateRolePermissions: ((role: string, description: string, allowedToRemove: ResourceWithPermissionsStruct[], disallowedToRemove: ResourceWithPermissionsStruct[], allowedToAdd: ResourceWithPermissionsStruct[], disallowedToAdd: ResourceWithPermissionsStruct[]) => Promise<TransactionResponse>);
    }

    • addCombinedPermissionsToRole: ((role: string, description: string, allowedPermissions: ResourceWithPermissionsStruct[], disallowedPermissions: ResourceWithPermissionsStruct[]) => Promise<TransactionResponse>)
        • (role: string, description: string, allowedPermissions: ResourceWithPermissionsStruct[], disallowedPermissions: ResourceWithPermissionsStruct[]): Promise<TransactionResponse>
        • Parameters

          • role: string
          • description: string
          • allowedPermissions: ResourceWithPermissionsStruct[]
          • disallowedPermissions: ResourceWithPermissionsStruct[]

          Returns Promise<TransactionResponse>

    • getBannedRoleId: (() => Promise<string>)
        • (): Promise<string>
        • Returns Promise<string>

    • getMasterRoleId: (() => Promise<string>)
        • (): Promise<string>
        • Returns Promise<string>

    • grantRoles: ((to: string, roles: string[]) => Promise<TransactionResponse>)
        • (to: string, roles: string[]): Promise<TransactionResponse>
        • Parameters

          • to: string
          • roles: string[]

          Returns Promise<TransactionResponse>

    • removePermissionsFromRole: ((role: string, permissionsToRemove: ResourceWithPermissionsStruct[], allowed: boolean) => Promise<TransactionResponse>)
        • (role: string, permissionsToRemove: ResourceWithPermissionsStruct[], allowed: boolean): Promise<TransactionResponse>
        • Parameters

          • role: string
          • permissionsToRemove: ResourceWithPermissionsStruct[]
          • allowed: boolean

          Returns Promise<TransactionResponse>

    • revokeRoles: ((from: string, roles: string[]) => Promise<TransactionResponse>)
        • (from: string, roles: string[]): Promise<TransactionResponse>
        • Parameters

          • from: string
          • roles: string[]

          Returns Promise<TransactionResponse>

    • updateRolePermissions: ((role: string, description: string, allowedToRemove: ResourceWithPermissionsStruct[], disallowedToRemove: ResourceWithPermissionsStruct[], allowedToAdd: ResourceWithPermissionsStruct[], disallowedToAdd: ResourceWithPermissionsStruct[]) => Promise<TransactionResponse>)
        • (role: string, description: string, allowedToRemove: ResourceWithPermissionsStruct[], disallowedToRemove: ResourceWithPermissionsStruct[], allowedToAdd: ResourceWithPermissionsStruct[], disallowedToAdd: ResourceWithPermissionsStruct[]): Promise<TransactionResponse>
        • Parameters

          • role: string
          • description: string
          • allowedToRemove: ResourceWithPermissionsStruct[]
          • disallowedToRemove: ResourceWithPermissionsStruct[]
          • allowedToAdd: ResourceWithPermissionsStruct[]
          • disallowedToAdd: ResourceWithPermissionsStruct[]

          Returns Promise<TransactionResponse>

Generated using TypeDoc