UpgradeVerificationKeyEvent

Class: UpgradeVerificationKeyEvent

Properties overview

  • address: PublicKey = PublicKey;
  • tokenId: Field = Field;
  • verificationKeyHash: Field = Field;

Defined in: packages/nft/src/interfaces/events.ts:93

Emitted when the verification key of an NFT is upgraded.

Extends

  • {
    address: PublicKey;
    tokenId: Field;
    verificationKeyHash: Field;
    }

Constructors

new UpgradeVerificationKeyEvent()

new UpgradeVerificationKeyEvent(value: {
  address: PublicKey;
  tokenId: Field;
  verificationKeyHash: Field;
 }): UpgradeVerificationKeyEvent

Defined in: node_modules/o1js/dist/node/lib/provable/types/struct.d.ts:103

Parameters

value
address

PublicKey = PublicKey

The public key address of the NFT whose verification key is upgraded.

tokenId

Field = Field

The version number of the NFT state after the upgrade.

verificationKeyHash

Field = Field

The hash of the new verification key.

Returns

UpgradeVerificationKeyEvent

Inherited from

Struct({
  / The hash of the new verification key. /
  verificationKeyHash: Field,
  / The public key address of the NFT whose verification key is upgraded. /
  address: PublicKey,
  / The version number of the NFT state after the upgrade. /
  tokenId: Field,
}).constructor

Properties

address

address: PublicKey = PublicKey;

Defined in: packages/nft/src/interfaces/events.ts:97

The public key address of the NFT whose verification key is upgraded.

Inherited from

Struct({
  / The hash of the new verification key. /
  verificationKeyHash: Field,
  / The public key address of the NFT whose verification key is upgraded. /
  address: PublicKey,
  / The version number of the NFT state after the upgrade. /
  tokenId: Field,
}).address

tokenId

tokenId: Field = Field;

Defined in: packages/nft/src/interfaces/events.ts:99

The version number of the NFT state after the upgrade.

Inherited from

Struct({
  / The hash of the new verification key. /
  verificationKeyHash: Field,
  / The public key address of the NFT whose verification key is upgraded. /
  address: PublicKey,
  / The version number of the NFT state after the upgrade. /
  tokenId: Field,
}).tokenId

verificationKeyHash

verificationKeyHash: Field = Field;

Defined in: packages/nft/src/interfaces/events.ts:95

The hash of the new verification key.

Inherited from

Struct({
  / The hash of the new verification key. /
  verificationKeyHash: Field,
  / The public key address of the NFT whose verification key is upgraded. /
  address: PublicKey,
  / The version number of the NFT state after the upgrade. /
  tokenId: Field,
}).verificationKeyHash