Skip to main content

VaultAdmin

Git Source ↗

Inherits: Initializable ↗, IVaultAdmin

Defines the admin functionality for the Vault.

Events​

MetadataUpdated​

Event emitted on metadata ipfs hash update

event MetadataUpdated(address indexed caller, string metadataIpfsHash);

Parameters

NameTypeDescription
calleraddressThe address of the function caller
metadataIpfsHashstringThe new metadata IPFS hash

AdminUpdated​

Event emitted on admin update

event AdminUpdated(address indexed caller, address indexed newAdmin);

Parameters

NameTypeDescription
calleraddressThe address of the function caller
newAdminaddressThe new admin address

Functions​

admin​

The Vault admin

function admin() external view returns (address);

Returns

NameTypeDescription
<none>addressThe address of the Vault admin

setMetadata​

Function for updating the metadata IPFS hash. Can only be called by Vault admin.

function setMetadata(string calldata metadataIpfsHash) external override;

Parameters

NameTypeDescription
metadataIpfsHashstringThe new metadata IPFS hash

setAdmin​

Function for updating the admin address. Can only be called by Vault current admin.

function setAdmin(address newAdmin) external override;

Parameters

NameTypeDescription
newAdminaddressThe new admin address