MaintenanceUpdate
@midnight-ntwrk/ledger v3.0.2 β’ Readme | API
@midnight-ntwrk/ledger v3.0.2 / MaintenanceUpdate
Class: MaintenanceUpdate
A contract maintenance update, updating associated operations, or changing the maintenance authority.
Constructorsβ
new MaintenanceUpdate(address, updates, counter)β
new MaintenanceUpdate(
address,
updates,
counter): MaintenanceUpdate
Parametersβ
β’ address: string
β’ updates: SingleUpdate[]
β’ counter: bigint
Returnsβ
Propertiesβ
addressβ
readonly address: string;
The address this deployment will attempt to create
counterβ
readonly counter: bigint;
The counter this update is valid against
dataToSignβ
readonly dataToSign: Uint8Array;
The raw data any valid signature must be over to approve this update.
signaturesβ
readonly signatures: [bigint, string][];
The signatures on this update
updatesβ
readonly updates: SingleUpdate[];
The updates to carry out
Methodsβ
addSignature()β
addSignature(idx, signature): MaintenanceUpdate
Adds a new signature to this update
Parametersβ
β’ idx: bigint
β’ signature: string
Returnsβ
toString()β
toString(compact?): string
Parametersβ
β’ compact?: boolean
Returnsβ
string