Docs Icon CaretRight Reference Icon CaretRight Unions

Union Types

CoinType

The type of coin being used.

Types:

Coin : A standard coin.

MessageCoin : A message coin.

Consensus

The type of consensus mechanism used to validate a block.

Types:

Genesis : Genesis consensus

PoAConsensus : PoA consensus

DependentCost

Contains the dependent cost of opcodes.

Types:

LightOperation : Operations that can process many units with 1 gas

HeavyOperation : Operations that require more than 1 gas to process a single unit

DryRunTransactionStatus

The status of a transaction dry run.

Types:

DryRunSuccessStatus : The transaction dry run was successful.

DryRunFailureStatus : The transaction dry run failed.

Input

An input type for a transaction.

Types:

InputCoin : An input type for a coin.

InputContract : An input type for a contract.

InputMessage : An input type for a message.

Output

An output type for a transaction.

Types:

CoinOutput : Indicates coins were forwarded from one address to another. Can be used during transaction creation when the recipient, asset, and amount is known.

ContractOutput : Indicates the transaction updated the state of a contract.

ChangeOutput : Indicates that the output's amount may vary based on transaction execution, but is otherwise identical to a Coin output. Output changes are always guaranteed to have an amount of zero since they're only set after execution terminates.

VariableOutput : Similar to ChangeOutput, this output type indicates that the output's amount may vary based on transaction execution, but is otherwise identical to a Coin output. On initialization, the amount on variable outputs is zero, but during execution they could be set to a non-zero value.

ContractCreated : Indicates a contract was deployed.

RelayedTransactionStatus

The status of a relayed transaction from a L1. If the transaction is valid, it will be included in part of a block. If the transaction is invalid, it will be skipped.

Types:

RelayedTransactionFailed : Details about why the relayed transaction failed.

TransactionStatus

The status type of a transaction.

Types:

SubmittedStatus : The transaction has been submitted.

SuccessStatus : The transaction has succeeded.

SqueezedOutStatus : The transaction was kicked out of the mempool.

FailureStatus : The transaction has failed.

UpgradePurpose

The purpose of a network upgrade.

Types:

ConsensusParametersPurpose : The consensus parameters are being upgraded.

StateTransitionPurpose : The state transition is being upgraded.