Skip to main content

StableCreditRegistry

This contract is responsible for maintaining a list of stable credit networks for indexing purposes.

enables the contract owner to add and remove stable credit contracts from the registry.

Methods​

addNetworkToRegistry​

function addNetworkToRegistry(address network) external nonpayable

Allows owner address to add networks to the registry

The caller must be the owner of the contract

Parameters​

NameTypeDescription
networkaddressaddress of the network to add

networks​

function networks(address) external view returns (bool)

Parameters​

NameTypeDescription
_0addressundefined

Returns​

NameTypeDescription
_0boolundefined

owner​

function owner() external view returns (address)

Returns the address of the current owner.

Returns​

NameTypeDescription
_0addressundefined

removeNetworkFromRegistry​

function removeNetworkFromRegistry(address network) external nonpayable

Allows owner address to remove networks from the registry

The caller must be the owner of the contract

Parameters​

NameTypeDescription
networkaddressaddress of the network to remove

renounceOwnership​

function renounceOwnership() external nonpayable

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​

function transferOwnership(address newOwner) external nonpayable

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

Parameters​

NameTypeDescription
newOwneraddressundefined

Events​

NetworkAdded​

event NetworkAdded(address network, address accessManager, address creditIssuer, address assurancePool)

Parameters​

NameTypeDescription
networkaddressundefined
accessManageraddressundefined
creditIssueraddressundefined
assurancePooladdressundefined

NetworkRemoved​

event NetworkRemoved(address network)

Parameters​

NameTypeDescription
networkaddressundefined

OwnershipTransferred​

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters​

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined