Skip to content

@aldea/compiler / "aldea/lock" / Lock

Class: Lock

"aldea/lock".Lock

Lock API

Never instantiated directly - only accessed via jig, eg: jig.$lock.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Lock(origin, type, data): Lock

Parameters

NameType
originArrayBuffer
typeLockType
dataArrayBuffer

Returns

Lock

Defined in

index.d.ts:27

Properties

data

data: ArrayBuffer

Defined in

index.d.ts:26


origin

Readonly origin: ArrayBuffer

Defined in

index.d.ts:24


type

type: LockType

Defined in

index.d.ts:25

Methods

assertType

assertType(type): void

Parameters

NameType
typeLockType

Returns

void

Defined in

index.d.ts:28


change

change(type, data?): void

Parameters

NameType
typeLockType
data?ArrayBuffer

Returns

void

Defined in

index.d.ts:29


changeToAddressLock

changeToAddressLock(pubkeyHash): void

Parameters

NameType
pubkeyHashArrayBuffer

Returns

void

Defined in

index.d.ts:30


changeToJigLock

changeToJigLock(): void

Returns

void

Defined in

index.d.ts:31


changeToPublicLock

changeToPublicLock(): void

Returns

void

Defined in

index.d.ts:32


freeze

freeze(): void

Returns

void

Defined in

index.d.ts:36


getAddressOrFail

getAddressOrFail(): ArrayBuffer

Returns

ArrayBuffer

Defined in

index.d.ts:33


getOriginOrFail

getOriginOrFail(): ArrayBuffer

Returns

ArrayBuffer

Defined in

index.d.ts:34


unlock

unlock(): void

Returns

void

Defined in

index.d.ts:35