Skip to main content

IdentifierWhitelist

IdentifierWhitelist#

Functions#

addSupportedIdentifier(bytes32 identifier) (external)

Adds the provided identifier as a supported identifier.

Price requests using this identifier will succeed after this call.

Parameters:#

  • identifier: unique UTF-8 representation for the feed being added. Eg: BTC/USD.
removeSupportedIdentifier(bytes32 identifier) (external)

Removes the identifier from the whitelist.

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

Parameters:#

  • identifier: unique UTF-8 representation for the feed being removed. Eg: BTC/USD.
isIdentifierSupported(bytes32 identifier) โ†’ bool (external)

Checks whether an identifier is on the whitelist.

Parameters:#

  • identifier: unique UTF-8 representation for the feed being queried. Eg: BTC/USD.
constructor() (internal)

Initializes the contract setting the deployer as the initial owner.

owner() โ†’ address (public)

Returns the address of 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. NOTE: 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.

_msgSender() โ†’ address (internal)
_msgData() โ†’ bytes (internal)

Events#

SupportedIdentifierAdded(bytes32 identifier)
SupportedIdentifierRemoved(bytes32 identifier)
OwnershipTransferred(address previousOwner, address newOwner)

Modifiers#

onlyOwner()

Throws if called by any account other than the owner.