Skip to main content

MaintenanceUpdate

For the complete documentation index, see llms.txt

@midnight/ledger v8.0.3


@midnight/ledger / MaintenanceUpdate

Class: MaintenanceUpdate

A contract maintenance update, updating associated operations, or changing the maintenance authority.

Constructors​

Constructor​

new MaintenanceUpdate(
address,
updates,
counter): MaintenanceUpdate;

Parameters​

address​

string

updates​

SingleUpdate[]

counter​

bigint

Returns​

MaintenanceUpdate

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​

MaintenanceUpdate


toString()​

toString(compact?): string;

Parameters​

compact?​

boolean

Returns​

string