Skip to main content

Class: TransactionKind

Transaction type

BCS

The BCS serialized form for this type is defined by the following ABNF:

transaction-kind    =  %d00 programmable-transaction               ; Programmable
=/ %d01 genesis-transaction ; Genesis
=/ %d02 consensus-commit-prologue-v1 ; ConsensusCommitPrologueV1
=/ %d03 ; AuthenticatorStateUpdateV1Deprecated
=/ %d04 (vector end-of-epoch-transaction-kind) ; EndOfEpoch
=/ %d05 randomness-state-update ; RandomnessStateUpdate
=/ %d06 transaction-deny-rules-update ; TransactionDenyRulesUpdate

Extends

  • UniffiAbstractObject

Implements

Properties

[destructorGuardSymbol]

readonly [destructorGuardSymbol]: UniffiGcObject;

[pointerLiteralSymbol]

readonly [pointerLiteralSymbol]: bigint;

[uniffiTypeNameSymbol]

readonly [uniffiTypeNameSymbol]: "TransactionKind" = "TransactionKind";

Methods

equals()

equals(other): boolean;

Parameters

other

TransactionKind

Returns

boolean


hashCode()

hashCode(): bigint;

Returns

bigint


toDebugString()

toDebugString(): string;

Returns

string


toString()

toString(): string;

Returns a string representation of an object.

Returns

string


uniffiDestroy()

uniffiDestroy(): void;

Explicitly tell Rust to destroy the native peer that backs this object.

Once this method has been called, any following method calls will throw an error.

Can be called more than once.

Returns

void

Overrides

UniffiAbstractObject.uniffiDestroy

uniffiUse()

uniffiUse<T>(block): T;

A convenience method to use this object, then destroy it after its use.

Type Parameters

T

T

Parameters

block

(obj) => T

Returns

T

Inherited from

UniffiAbstractObject.uniffiUse

instanceOf()

static instanceOf(obj_): obj_ is TransactionKind;

Parameters

obj_

any

Returns

obj_ is TransactionKind


newConsensusCommitPrologueV1()

static newConsensusCommitPrologueV1(tx): TransactionKindLike;

Create a TransactionKind for a consensus-commit-prologue-v1 transaction.

Parameters

tx

ConsensusCommitPrologueV1Like

Returns

TransactionKindLike


newEndOfEpoch()

static newEndOfEpoch(tx): TransactionKindLike;

Create a TransactionKind for an end-of-epoch transaction.

Parameters

tx

EndOfEpochTransactionKindLike[]

Returns

TransactionKindLike


newGenesis()

static newGenesis(tx): TransactionKindLike;

Create a TransactionKind for a genesis transaction.

Parameters

tx

GenesisTransactionLike

Returns

TransactionKindLike


newProgrammable()

static newProgrammable(tx): TransactionKindLike;

Create a TransactionKind for a programmable transaction.

Parameters

tx

ProgrammableTransactionLike

Returns

TransactionKindLike


newRandomnessStateUpdate()

static newRandomnessStateUpdate(tx): TransactionKindLike;

Create a TransactionKind for a randomness-state-update transaction.

Parameters

tx

RandomnessStateUpdate

Returns

TransactionKindLike


newTransactionDenyRulesUpdate()

static newTransactionDenyRulesUpdate(tx): TransactionKindLike;

Create a TransactionKind for a transaction-deny-rules-update transaction.

Parameters

tx

TransactionDenyRulesUpdate

Returns

TransactionKindLike