Interface MasterAccessManagement

Hierarchy

  • BaseContract
    • MasterAccessManagement

Properties

_deployedPromise: Promise<Contract>
_runningEvents: {
    [eventTag: string]: RunningEvent;
}

Type declaration

  • [eventTag: string]: RunningEvent
_wrappedEmits: {
    [eventTag: string]: ((...args: any[]) => void);
}

Type declaration

  • [eventTag: string]: ((...args: any[]) => void)
      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

address: string
callStatic: {
    ALL_PERMISSION(overrides?: CallOverrides): Promise<string>;
    ALL_RESOURCE(overrides?: CallOverrides): Promise<string>;
    CONSTANTS_REGISTRY_RESOURCE(overrides?: CallOverrides): Promise<string>;
    CREATE_PERMISSION(overrides?: CallOverrides): Promise<string>;
    DELETE_PERMISSION(overrides?: CallOverrides): Promise<string>;
    EXECUTE_PERMISSION(overrides?: CallOverrides): Promise<string>;
    MASTER_REGISTRY_RESOURCE(overrides?: CallOverrides): Promise<string>;
    MASTER_ROLE(overrides?: CallOverrides): Promise<string>;
    RBAC_RESOURCE(overrides?: CallOverrides): Promise<string>;
    READ_PERMISSION(overrides?: CallOverrides): Promise<string>;
    REVIEWABLE_REQUESTS_RESOURCE(overrides?: CallOverrides): Promise<string>;
    UPDATE_PERMISSION(overrides?: CallOverrides): Promise<string>;
    __MasterAccessManagement_init(master_: string, overrides?: CallOverrides): Promise<void>;
    addCombinedPermissionsToRole(role_: string, description_: string, allowed_: ResourceWithPermissionsStruct[], disallowed_: ResourceWithPermissionsStruct[], overrides?: CallOverrides): Promise<void>;
    addPermissionsToRole(role: string, permissionsToAdd: ResourceWithPermissionsStruct[], allowed: boolean, overrides?: CallOverrides): Promise<void>;
    getRolePermissions(role: string, overrides?: CallOverrides): Promise<[ResourceWithPermissionsStructOutput[], ResourceWithPermissionsStructOutput[]] & {
        allowed: ResourceWithPermissionsStructOutput[];
        disallowed: ResourceWithPermissionsStructOutput[];
    }>;
    getUserRoles(who: string, overrides?: CallOverrides): Promise<string[]>;
    grantRoles(to: string, rolesToGrant: string[], overrides?: CallOverrides): Promise<void>;
    hasConstantsRegistryCreatePermission(account_: string, overrides?: CallOverrides): Promise<boolean>;
    hasConstantsRegistryDeletePermission(account_: string, overrides?: CallOverrides): Promise<boolean>;
    hasMasterContractsRegistryCreatePermission(account_: string, overrides?: CallOverrides): Promise<boolean>;
    hasMasterContractsRegistryDeletePermission(account_: string, overrides?: CallOverrides): Promise<boolean>;
    hasMasterContractsRegistryUpdatePermission(account_: string, overrides?: CallOverrides): Promise<boolean>;
    hasPermission(who: string, resource: string, permission: string, overrides?: CallOverrides): Promise<boolean>;
    hasReviewableRequestsCreatePermission(account_: string, overrides?: CallOverrides): Promise<boolean>;
    hasReviewableRequestsDeletePermission(account_: string, overrides?: CallOverrides): Promise<boolean>;
    hasReviewableRequestsExecutePermission(account_: string, overrides?: CallOverrides): Promise<boolean>;
    removeCombinedPermissionsFromRole(role_: string, allowed_: ResourceWithPermissionsStruct[], disallowed_: ResourceWithPermissionsStruct[], overrides?: CallOverrides): Promise<void>;
    removePermissionsFromRole(role: string, permissionsToRemove: ResourceWithPermissionsStruct[], allowed: boolean, overrides?: CallOverrides): Promise<void>;
    revokeRoles(from: string, rolesToRevoke: string[], overrides?: CallOverrides): Promise<void>;
    updateRolePermissions(role_: string, description_: string, allowedToRemove_: ResourceWithPermissionsStruct[], disallowedToRemove_: ResourceWithPermissionsStruct[], allowedToAdd_: ResourceWithPermissionsStruct[], disallowedToAdd_: ResourceWithPermissionsStruct[], overrides?: CallOverrides): Promise<void>;
    updateUserRoles(user_: string, rolesToRevoke_: string[], rolesToGrant_: string[], overrides?: CallOverrides): Promise<void>;
}

Type declaration

  • ALL_PERMISSION:function
  • ALL_RESOURCE:function
  • CONSTANTS_REGISTRY_RESOURCE:function
  • CREATE_PERMISSION:function
  • DELETE_PERMISSION:function
  • EXECUTE_PERMISSION:function
  • MASTER_REGISTRY_RESOURCE:function
  • MASTER_ROLE:function
  • RBAC_RESOURCE:function
  • READ_PERMISSION:function
  • REVIEWABLE_REQUESTS_RESOURCE:function
  • UPDATE_PERMISSION:function
  • __MasterAccessManagement_init:function
  • addCombinedPermissionsToRole:function
    • Parameters

      • role_: string
      • description_: string
      • allowed_: ResourceWithPermissionsStruct[]
      • disallowed_: ResourceWithPermissionsStruct[]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • addPermissionsToRole:function
    • Parameters

      • role: string
      • permissionsToAdd: ResourceWithPermissionsStruct[]
      • allowed: boolean
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • getRolePermissions:function
    • Parameters

      • role: string
      • Optional overrides: CallOverrides

      Returns Promise<[ResourceWithPermissionsStructOutput[], ResourceWithPermissionsStructOutput[]] & {
          allowed: ResourceWithPermissionsStructOutput[];
          disallowed: ResourceWithPermissionsStructOutput[];
      }>

  • getUserRoles:function
  • grantRoles:function
  • hasConstantsRegistryCreatePermission:function
  • hasConstantsRegistryDeletePermission:function
  • hasMasterContractsRegistryCreatePermission:function
  • hasMasterContractsRegistryDeletePermission:function
  • hasMasterContractsRegistryUpdatePermission:function
  • hasPermission:function
  • hasReviewableRequestsCreatePermission:function
  • hasReviewableRequestsDeletePermission:function
  • hasReviewableRequestsExecutePermission:function
  • removeCombinedPermissionsFromRole:function
    • Parameters

      • role_: string
      • allowed_: ResourceWithPermissionsStruct[]
      • disallowed_: ResourceWithPermissionsStruct[]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • removePermissionsFromRole:function
    • Parameters

      • role: string
      • permissionsToRemove: ResourceWithPermissionsStruct[]
      • allowed: boolean
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • revokeRoles:function
  • updateRolePermissions:function
    • Parameters

      • role_: string
      • description_: string
      • allowedToRemove_: ResourceWithPermissionsStruct[]
      • disallowedToRemove_: ResourceWithPermissionsStruct[]
      • allowedToAdd_: ResourceWithPermissionsStruct[]
      • disallowedToAdd_: ResourceWithPermissionsStruct[]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • updateUserRoles:function
    • Parameters

      • user_: string
      • rolesToRevoke_: string[]
      • rolesToGrant_: string[]
      • Optional overrides: CallOverrides

      Returns Promise<void>

deployTransaction: TransactionResponse
estimateGas: {
    ALL_PERMISSION(overrides?: CallOverrides): Promise<BigNumber>;
    ALL_RESOURCE(overrides?: CallOverrides): Promise<BigNumber>;
    CONSTANTS_REGISTRY_RESOURCE(overrides?: CallOverrides): Promise<BigNumber>;
    CREATE_PERMISSION(overrides?: CallOverrides): Promise<BigNumber>;
    DELETE_PERMISSION(overrides?: CallOverrides): Promise<BigNumber>;
    EXECUTE_PERMISSION(overrides?: CallOverrides): Promise<BigNumber>;
    MASTER_REGISTRY_RESOURCE(overrides?: CallOverrides): Promise<BigNumber>;
    MASTER_ROLE(overrides?: CallOverrides): Promise<BigNumber>;
    RBAC_RESOURCE(overrides?: CallOverrides): Promise<BigNumber>;
    READ_PERMISSION(overrides?: CallOverrides): Promise<BigNumber>;
    REVIEWABLE_REQUESTS_RESOURCE(overrides?: CallOverrides): Promise<BigNumber>;
    UPDATE_PERMISSION(overrides?: CallOverrides): Promise<BigNumber>;
    __MasterAccessManagement_init(master_: string, overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
    addCombinedPermissionsToRole(role_: string, description_: string, allowed_: ResourceWithPermissionsStruct[], disallowed_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
    addPermissionsToRole(role: string, permissionsToAdd: ResourceWithPermissionsStruct[], allowed: boolean, overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
    getRolePermissions(role: string, overrides?: CallOverrides): Promise<BigNumber>;
    getUserRoles(who: string, overrides?: CallOverrides): Promise<BigNumber>;
    grantRoles(to: string, rolesToGrant: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
    hasConstantsRegistryCreatePermission(account_: string, overrides?: CallOverrides): Promise<BigNumber>;
    hasConstantsRegistryDeletePermission(account_: string, overrides?: CallOverrides): Promise<BigNumber>;
    hasMasterContractsRegistryCreatePermission(account_: string, overrides?: CallOverrides): Promise<BigNumber>;
    hasMasterContractsRegistryDeletePermission(account_: string, overrides?: CallOverrides): Promise<BigNumber>;
    hasMasterContractsRegistryUpdatePermission(account_: string, overrides?: CallOverrides): Promise<BigNumber>;
    hasPermission(who: string, resource: string, permission: string, overrides?: CallOverrides): Promise<BigNumber>;
    hasReviewableRequestsCreatePermission(account_: string, overrides?: CallOverrides): Promise<BigNumber>;
    hasReviewableRequestsDeletePermission(account_: string, overrides?: CallOverrides): Promise<BigNumber>;
    hasReviewableRequestsExecutePermission(account_: string, overrides?: CallOverrides): Promise<BigNumber>;
    removeCombinedPermissionsFromRole(role_: string, allowed_: ResourceWithPermissionsStruct[], disallowed_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
    removePermissionsFromRole(role: string, permissionsToRemove: ResourceWithPermissionsStruct[], allowed: boolean, overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
    revokeRoles(from: string, rolesToRevoke: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
    updateRolePermissions(role_: string, description_: string, allowedToRemove_: ResourceWithPermissionsStruct[], disallowedToRemove_: ResourceWithPermissionsStruct[], allowedToAdd_: ResourceWithPermissionsStruct[], disallowedToAdd_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
    updateUserRoles(user_: string, rolesToRevoke_: string[], rolesToGrant_: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<BigNumber>;
}

Type declaration

  • ALL_PERMISSION:function
  • ALL_RESOURCE:function
  • CONSTANTS_REGISTRY_RESOURCE:function
  • CREATE_PERMISSION:function
  • DELETE_PERMISSION:function
  • EXECUTE_PERMISSION:function
  • MASTER_REGISTRY_RESOURCE:function
  • MASTER_ROLE:function
  • RBAC_RESOURCE:function
  • READ_PERMISSION:function
  • REVIEWABLE_REQUESTS_RESOURCE:function
  • UPDATE_PERMISSION:function
  • __MasterAccessManagement_init:function
  • addCombinedPermissionsToRole:function
    • Parameters

      • role_: string
      • description_: string
      • allowed_: ResourceWithPermissionsStruct[]
      • disallowed_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<BigNumber>

  • addPermissionsToRole:function
    • Parameters

      • role: string
      • permissionsToAdd: ResourceWithPermissionsStruct[]
      • allowed: boolean
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<BigNumber>

  • getRolePermissions:function
  • getUserRoles:function
  • grantRoles:function
    • Parameters

      • to: string
      • rolesToGrant: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<BigNumber>

  • hasConstantsRegistryCreatePermission:function
  • hasConstantsRegistryDeletePermission:function
  • hasMasterContractsRegistryCreatePermission:function
  • hasMasterContractsRegistryDeletePermission:function
  • hasMasterContractsRegistryUpdatePermission:function
  • hasPermission:function
  • hasReviewableRequestsCreatePermission:function
  • hasReviewableRequestsDeletePermission:function
  • hasReviewableRequestsExecutePermission:function
  • removeCombinedPermissionsFromRole:function
    • Parameters

      • role_: string
      • allowed_: ResourceWithPermissionsStruct[]
      • disallowed_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<BigNumber>

  • removePermissionsFromRole:function
    • Parameters

      • role: string
      • permissionsToRemove: ResourceWithPermissionsStruct[]
      • allowed: boolean
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<BigNumber>

  • revokeRoles:function
    • Parameters

      • from: string
      • rolesToRevoke: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<BigNumber>

  • updateRolePermissions:function
    • Parameters

      • role_: string
      • description_: string
      • allowedToRemove_: ResourceWithPermissionsStruct[]
      • disallowedToRemove_: ResourceWithPermissionsStruct[]
      • allowedToAdd_: ResourceWithPermissionsStruct[]
      • disallowedToAdd_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<BigNumber>

  • updateUserRoles:function
    • Parameters

      • user_: string
      • rolesToRevoke_: string[]
      • rolesToGrant_: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<BigNumber>

filters: {
    AddedPermissions(role?: null, resource?: null, permissionsToAdd?: null, allowed?: null): AddedPermissionsEventFilter;
    AddedPermissions(string,string,string[],bool)(role?: null, resource?: null, permissionsToAdd?: null, allowed?: null): AddedPermissionsEventFilter;
    AddedRoleWithDescription(role?: null, description?: null): AddedRoleWithDescriptionEventFilter;
    AddedRoleWithDescription(string,string)(role?: null, description?: null): AddedRoleWithDescriptionEventFilter;
    GrantedRoles(to?: null, rolesToGrant?: null): GrantedRolesEventFilter;
    GrantedRoles(address,string[])(to?: null, rolesToGrant?: null): GrantedRolesEventFilter;
    RemovedPermissions(role?: null, resource?: null, permissionsToRemove?: null, allowed?: null): RemovedPermissionsEventFilter;
    RemovedPermissions(string,string,string[],bool)(role?: null, resource?: null, permissionsToRemove?: null, allowed?: null): RemovedPermissionsEventFilter;
    RevokedRoles(from?: null, rolesToRevoke?: null): RevokedRolesEventFilter;
    RevokedRoles(address,string[])(from?: null, rolesToRevoke?: null): RevokedRolesEventFilter;
}

Type declaration

  • AddedPermissions:function
    • Parameters

      • Optional role: null
      • Optional resource: null
      • Optional permissionsToAdd: null
      • Optional allowed: null

      Returns AddedPermissionsEventFilter

  • AddedPermissions(string,string,string[],bool):function
    • Parameters

      • Optional role: null
      • Optional resource: null
      • Optional permissionsToAdd: null
      • Optional allowed: null

      Returns AddedPermissionsEventFilter

  • AddedRoleWithDescription:function
  • AddedRoleWithDescription(string,string):function
  • GrantedRoles:function
  • GrantedRoles(address,string[]):function
  • RemovedPermissions:function
    • Parameters

      • Optional role: null
      • Optional resource: null
      • Optional permissionsToRemove: null
      • Optional allowed: null

      Returns RemovedPermissionsEventFilter

  • RemovedPermissions(string,string,string[],bool):function
    • Parameters

      • Optional role: null
      • Optional resource: null
      • Optional permissionsToRemove: null
      • Optional allowed: null

      Returns RemovedPermissionsEventFilter

  • RevokedRoles:function
  • RevokedRoles(address,string[]):function
functions: {
    ALL_PERMISSION(overrides?: CallOverrides): Promise<[string]>;
    ALL_RESOURCE(overrides?: CallOverrides): Promise<[string]>;
    CONSTANTS_REGISTRY_RESOURCE(overrides?: CallOverrides): Promise<[string]>;
    CREATE_PERMISSION(overrides?: CallOverrides): Promise<[string]>;
    DELETE_PERMISSION(overrides?: CallOverrides): Promise<[string]>;
    EXECUTE_PERMISSION(overrides?: CallOverrides): Promise<[string]>;
    MASTER_REGISTRY_RESOURCE(overrides?: CallOverrides): Promise<[string]>;
    MASTER_ROLE(overrides?: CallOverrides): Promise<[string]>;
    RBAC_RESOURCE(overrides?: CallOverrides): Promise<[string]>;
    READ_PERMISSION(overrides?: CallOverrides): Promise<[string]>;
    REVIEWABLE_REQUESTS_RESOURCE(overrides?: CallOverrides): Promise<[string]>;
    UPDATE_PERMISSION(overrides?: CallOverrides): Promise<[string]>;
    __MasterAccessManagement_init(master_: string, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    addCombinedPermissionsToRole(role_: string, description_: string, allowed_: ResourceWithPermissionsStruct[], disallowed_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    addPermissionsToRole(role: string, permissionsToAdd: ResourceWithPermissionsStruct[], allowed: boolean, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    getRolePermissions(role: string, overrides?: CallOverrides): Promise<[ResourceWithPermissionsStructOutput[], ResourceWithPermissionsStructOutput[]] & {
        allowed: ResourceWithPermissionsStructOutput[];
        disallowed: ResourceWithPermissionsStructOutput[];
    }>;
    getUserRoles(who: string, overrides?: CallOverrides): Promise<[string[]] & {
        roles: string[];
    }>;
    grantRoles(to: string, rolesToGrant: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    hasConstantsRegistryCreatePermission(account_: string, overrides?: CallOverrides): Promise<[boolean]>;
    hasConstantsRegistryDeletePermission(account_: string, overrides?: CallOverrides): Promise<[boolean]>;
    hasMasterContractsRegistryCreatePermission(account_: string, overrides?: CallOverrides): Promise<[boolean]>;
    hasMasterContractsRegistryDeletePermission(account_: string, overrides?: CallOverrides): Promise<[boolean]>;
    hasMasterContractsRegistryUpdatePermission(account_: string, overrides?: CallOverrides): Promise<[boolean]>;
    hasPermission(who: string, resource: string, permission: string, overrides?: CallOverrides): Promise<[boolean]>;
    hasReviewableRequestsCreatePermission(account_: string, overrides?: CallOverrides): Promise<[boolean]>;
    hasReviewableRequestsDeletePermission(account_: string, overrides?: CallOverrides): Promise<[boolean]>;
    hasReviewableRequestsExecutePermission(account_: string, overrides?: CallOverrides): Promise<[boolean]>;
    removeCombinedPermissionsFromRole(role_: string, allowed_: ResourceWithPermissionsStruct[], disallowed_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    removePermissionsFromRole(role: string, permissionsToRemove: ResourceWithPermissionsStruct[], allowed: boolean, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    revokeRoles(from: string, rolesToRevoke: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    updateRolePermissions(role_: string, description_: string, allowedToRemove_: ResourceWithPermissionsStruct[], disallowedToRemove_: ResourceWithPermissionsStruct[], allowedToAdd_: ResourceWithPermissionsStruct[], disallowedToAdd_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    updateUserRoles(user_: string, rolesToRevoke_: string[], rolesToGrant_: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
}

Type declaration

  • ALL_PERMISSION:function
  • ALL_RESOURCE:function
  • CONSTANTS_REGISTRY_RESOURCE:function
  • CREATE_PERMISSION:function
  • DELETE_PERMISSION:function
  • EXECUTE_PERMISSION:function
  • MASTER_REGISTRY_RESOURCE:function
  • MASTER_ROLE:function
  • RBAC_RESOURCE:function
  • READ_PERMISSION:function
  • REVIEWABLE_REQUESTS_RESOURCE:function
  • UPDATE_PERMISSION:function
  • __MasterAccessManagement_init:function
    • Parameters

      • master_: string
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

  • addCombinedPermissionsToRole:function
    • Parameters

      • role_: string
      • description_: string
      • allowed_: ResourceWithPermissionsStruct[]
      • disallowed_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

  • addPermissionsToRole:function
    • Parameters

      • role: string
      • permissionsToAdd: ResourceWithPermissionsStruct[]
      • allowed: boolean
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

  • getRolePermissions:function
    • Parameters

      • role: string
      • Optional overrides: CallOverrides

      Returns Promise<[ResourceWithPermissionsStructOutput[], ResourceWithPermissionsStructOutput[]] & {
          allowed: ResourceWithPermissionsStructOutput[];
          disallowed: ResourceWithPermissionsStructOutput[];
      }>

  • getUserRoles:function
  • grantRoles:function
    • Parameters

      • to: string
      • rolesToGrant: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

  • hasConstantsRegistryCreatePermission:function
  • hasConstantsRegistryDeletePermission:function
  • hasMasterContractsRegistryCreatePermission:function
  • hasMasterContractsRegistryDeletePermission:function
  • hasMasterContractsRegistryUpdatePermission:function
  • hasPermission:function
  • hasReviewableRequestsCreatePermission:function
  • hasReviewableRequestsDeletePermission:function
  • hasReviewableRequestsExecutePermission:function
  • removeCombinedPermissionsFromRole:function
    • Parameters

      • role_: string
      • allowed_: ResourceWithPermissionsStruct[]
      • disallowed_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

  • removePermissionsFromRole:function
    • Parameters

      • role: string
      • permissionsToRemove: ResourceWithPermissionsStruct[]
      • allowed: boolean
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

  • revokeRoles:function
    • Parameters

      • from: string
      • rolesToRevoke: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

  • updateRolePermissions:function
    • Parameters

      • role_: string
      • description_: string
      • allowedToRemove_: ResourceWithPermissionsStruct[]
      • disallowedToRemove_: ResourceWithPermissionsStruct[]
      • allowedToAdd_: ResourceWithPermissionsStruct[]
      • disallowedToAdd_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

  • updateUserRoles:function
    • Parameters

      • user_: string
      • rolesToRevoke_: string[]
      • rolesToGrant_: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<ContractTransaction>

interface: MasterAccessManagementInterface
once: OnEvent<MasterAccessManagement>
populateTransaction: {
    ALL_PERMISSION(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    ALL_RESOURCE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    CONSTANTS_REGISTRY_RESOURCE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    CREATE_PERMISSION(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    DELETE_PERMISSION(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    EXECUTE_PERMISSION(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    MASTER_REGISTRY_RESOURCE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    MASTER_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    RBAC_RESOURCE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    READ_PERMISSION(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    REVIEWABLE_REQUESTS_RESOURCE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    UPDATE_PERMISSION(overrides?: CallOverrides): Promise<PopulatedTransaction>;
    __MasterAccessManagement_init(master_: string, overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
    addCombinedPermissionsToRole(role_: string, description_: string, allowed_: ResourceWithPermissionsStruct[], disallowed_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
    addPermissionsToRole(role: string, permissionsToAdd: ResourceWithPermissionsStruct[], allowed: boolean, overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
    getRolePermissions(role: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    getUserRoles(who: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    grantRoles(to: string, rolesToGrant: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
    hasConstantsRegistryCreatePermission(account_: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    hasConstantsRegistryDeletePermission(account_: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    hasMasterContractsRegistryCreatePermission(account_: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    hasMasterContractsRegistryDeletePermission(account_: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    hasMasterContractsRegistryUpdatePermission(account_: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    hasPermission(who: string, resource: string, permission: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    hasReviewableRequestsCreatePermission(account_: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    hasReviewableRequestsDeletePermission(account_: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    hasReviewableRequestsExecutePermission(account_: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    removeCombinedPermissionsFromRole(role_: string, allowed_: ResourceWithPermissionsStruct[], disallowed_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
    removePermissionsFromRole(role: string, permissionsToRemove: ResourceWithPermissionsStruct[], allowed: boolean, overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
    revokeRoles(from: string, rolesToRevoke: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
    updateRolePermissions(role_: string, description_: string, allowedToRemove_: ResourceWithPermissionsStruct[], disallowedToRemove_: ResourceWithPermissionsStruct[], allowedToAdd_: ResourceWithPermissionsStruct[], disallowedToAdd_: ResourceWithPermissionsStruct[], overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
    updateUserRoles(user_: string, rolesToRevoke_: string[], rolesToGrant_: string[], overrides?: Overrides & {
        from?: string;
    }): Promise<PopulatedTransaction>;
}

Type declaration

  • ALL_PERMISSION:function
  • ALL_RESOURCE:function
  • CONSTANTS_REGISTRY_RESOURCE:function
  • CREATE_PERMISSION:function
  • DELETE_PERMISSION:function
  • EXECUTE_PERMISSION:function
  • MASTER_REGISTRY_RESOURCE:function
  • MASTER_ROLE:function
  • RBAC_RESOURCE:function
  • READ_PERMISSION:function
  • REVIEWABLE_REQUESTS_RESOURCE:function
  • UPDATE_PERMISSION:function
  • __MasterAccessManagement_init:function
    • Parameters

      • master_: string
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

  • addCombinedPermissionsToRole:function
    • Parameters

      • role_: string
      • description_: string
      • allowed_: ResourceWithPermissionsStruct[]
      • disallowed_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

  • addPermissionsToRole:function
    • Parameters

      • role: string
      • permissionsToAdd: ResourceWithPermissionsStruct[]
      • allowed: boolean
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

  • getRolePermissions:function
  • getUserRoles:function
  • grantRoles:function
    • Parameters

      • to: string
      • rolesToGrant: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

  • hasConstantsRegistryCreatePermission:function
  • hasConstantsRegistryDeletePermission:function
  • hasMasterContractsRegistryCreatePermission:function
  • hasMasterContractsRegistryDeletePermission:function
  • hasMasterContractsRegistryUpdatePermission:function
  • hasPermission:function
    • Parameters

      • who: string
      • resource: string
      • permission: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • hasReviewableRequestsCreatePermission:function
  • hasReviewableRequestsDeletePermission:function
  • hasReviewableRequestsExecutePermission:function
  • removeCombinedPermissionsFromRole:function
    • Parameters

      • role_: string
      • allowed_: ResourceWithPermissionsStruct[]
      • disallowed_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

  • removePermissionsFromRole:function
    • Parameters

      • role: string
      • permissionsToRemove: ResourceWithPermissionsStruct[]
      • allowed: boolean
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

  • revokeRoles:function
    • Parameters

      • from: string
      • rolesToRevoke: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

  • updateRolePermissions:function
    • Parameters

      • role_: string
      • description_: string
      • allowedToRemove_: ResourceWithPermissionsStruct[]
      • disallowedToRemove_: ResourceWithPermissionsStruct[]
      • allowedToAdd_: ResourceWithPermissionsStruct[]
      • disallowedToAdd_: ResourceWithPermissionsStruct[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

  • updateUserRoles:function
    • Parameters

      • user_: string
      • rolesToRevoke_: string[]
      • rolesToGrant_: string[]
      • Optional overrides: Overrides & {
            from?: string;
        }

      Returns Promise<PopulatedTransaction>

provider: Provider
removeListener: OnEvent<MasterAccessManagement>
resolvedAddress: Promise<string>
signer: Signer

Methods

  • Parameters

    • master_: string
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

  • Parameters

    • runningEvent: RunningEvent

    Returns void

  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

  • Parameters

    • role_: string
    • description_: string
    • allowed_: ResourceWithPermissionsStruct[]
    • disallowed_: ResourceWithPermissionsStruct[]
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

  • Parameters

    • role: string
    • permissionsToAdd: ResourceWithPermissionsStruct[]
    • allowed: boolean
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

  • Parameters

    • eventName: string | EventFilter
    • Rest ...args: any[]

    Returns boolean

  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

  • Parameters

    • role: string
    • Optional overrides: CallOverrides

    Returns Promise<[ResourceWithPermissionsStructOutput[], ResourceWithPermissionsStructOutput[]] & {
        allowed: ResourceWithPermissionsStructOutput[];
        disallowed: ResourceWithPermissionsStructOutput[];
    }>

  • Parameters

    • to: string
    • rolesToGrant: string[]
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

  • Parameters

    • Optional eventName: string | EventFilter

    Returns number

  • Type Parameters

    • TEvent extends TypedEvent<any, any>

    Parameters

    • event: TypedEventFilter<TEvent>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TEvent[]>

  • Parameters

    • role_: string
    • allowed_: ResourceWithPermissionsStruct[]
    • disallowed_: ResourceWithPermissionsStruct[]
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

  • Parameters

    • role: string
    • permissionsToRemove: ResourceWithPermissionsStruct[]
    • allowed: boolean
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

  • Parameters

    • from: string
    • rolesToRevoke: string[]
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

  • Parameters

    • role_: string
    • description_: string
    • allowedToRemove_: ResourceWithPermissionsStruct[]
    • disallowedToRemove_: ResourceWithPermissionsStruct[]
    • allowedToAdd_: ResourceWithPermissionsStruct[]
    • disallowedToAdd_: ResourceWithPermissionsStruct[]
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

  • Parameters

    • user_: string
    • rolesToRevoke_: string[]
    • rolesToGrant_: string[]
    • Optional overrides: Overrides & {
          from?: string;
      }

    Returns Promise<ContractTransaction>

Generated using TypeDoc