IdentifierWhitelist

onlyOwner() modifier

Throws if called by any account other than the owner.

addSupportedIdentifier(bytes32 identifier) external

Adds the provided identifier as a supported identifier.

Price requests using this identifier will be succeed after this call.

Parameters:

  • identifier: uniquely identifies added the identifier. Eg: BTC/UCD.

removeSupportedIdentifier(bytes32 identifier) external

Removes the identifier from the whitelist.

Price requests using this identifier will no longer succeed after this call.

Parameters:

  • identifier: uniquely identifies added the identifier. Eg: BTC/UCD.

isIdentifierSupported(bytes32 identifier) → bool external

Checks whether an identifier is on the whitelist.

Parameters:

  • identifier: uniquely identifies added the identifier. Eg: BTC/UCD.

constructor() internal

Initializes the contract setting the deployer as the initial owner.

owner() → address public

Returns the address of the current owner.

isOwner() → bool public

Returns true if the caller is the current owner.

renounceOwnership() public

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner.

Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

transferOwnership(address newOwner) public

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

_transferOwnership(address newOwner) internal

Transfers ownership of the contract to a new account (newOwner).

_msgSender() → address payable internal

_msgData() → bytes internal

SupportedIdentifierAdded(bytes32 identifier) event

EVENTS

==== SupportedIdentifierRemoved(bytes32 identifier) event

==== OwnershipTransferred(address previousOwner, address newOwner) event

© UMA Project 2018-2019