Skip to main content

VaultVersion

Git Source ↗

Inherits: VaultImmutables →, Initializable ↗, UUPSUpgradeable ↗, VaultAdmin →, IVaultVersion

Defines the versioning functionality for the Vault.

Functions

implementation

Implementation

function implementation() external view override returns (address);

Returns

NameTypeDescription
<none>addressThe address of the Vault implementation contract

upgradeToAndCall

Upgrade the implementation of the proxy to newImplementation, and subsequently execute the function call encoded in data.

IconNote

oz-upgrades-unsafe-allow-reachable: delegatecall

function upgradeToAndCall(address newImplementation, bytes memory data) public payable override onlyProxy;

vaultId

Vault Unique Identifier

function vaultId() public pure virtual override returns (bytes32);

Returns

NameTypeDescription
<none>bytes32The unique identifier of the Vault

version

Version

function version() public pure virtual override returns (uint8);

Returns

NameTypeDescription
<none>uint8The version of the Vault implementation contract