UpgradableContract

Type Alias: UpgradableContract

type UpgradableContract = SmartContract & {
  getUpgradeContract: Promise<UpgradeAuthorityBase>;
  upgradeVerificationKey: Promise<void>;
};

Defined in: packages/upgradable/src/upgradable.ts:94

Interface for contracts that can be upgraded.
Extends SmartContract and requires methods to retrieve the associated upgrade authority contract
and to upgrade the contract's verification key using the provided verification key.

Type declaration

getUpgradeContract()

Retrieves the associated upgrade authority contract.

Returns

Promise<UpgradeAuthorityBase>

The upgrade authority contract.

upgradeVerificationKey()

Upgrades the contract's verification key using the provided verification key.

Parameters

vk

VerificationKey

The new verification key.

Returns

Promise<void>