Show / Hide Table of Contents

Class TxSuccess

Summarizes an execution result of a successful Transaction<T>.

Inheritance
Object
TxExecution
TxSuccess
Implements
ISerializable
Inherited Members
TxExecution.Codec
TxExecution.BlockHash
TxExecution.TxId
Namespace: Libplanet.Tx
Assembly: Libplanet.dll
Syntax
public sealed class TxSuccess : TxExecution, ISerializable

Constructors

| Improve this Doc View Source

TxSuccess(BlockHash, TxId, IImmutableDictionary<Address, Nullable<IValue>>, IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>>, IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>>)

Creates a TxSuccess instance.

Declaration
public TxSuccess(BlockHash blockHash, TxId txId, IImmutableDictionary<Address, IValue?> updatedStates, IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>> fungibleAssetsDelta, IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>> updatedFungibleAssets)
Parameters
Type Name Description
BlockHash blockHash

The Hash of the Block<T> that the Transaction<T> is executed within.

TxId txId

The executed Transaction<T>'s Id.

IImmutableDictionary<Address, Nullable<IValue>> updatedStates

The states delta made by the actions in the transaction within the block.

IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>> fungibleAssetsDelta

Addresses and sets of Currency whose fungible assets have been updated by the actions in the transaction within the block. Included FungibleAssetValues are the delta values (plus or minus) that the transaction makes.

IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>> updatedFungibleAssets

Addresses and sets of Currency whose fungible assets have been updated by the actions in the transaction within the block. Included FungibleAssetValues are the final balances right after the transaction is executed.

Properties

| Improve this Doc View Source

FungibleAssetsDelta

Addresses and sets of Currency whose fungible assets have been updated by the actions in the transaction within the block. Included FungibleAssetValues are the delta values (plus or minus) that the transaction makes.

Declaration
public IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>> FungibleAssetsDelta { get; }
Property Value
Type Description
IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>>
| Improve this Doc View Source

UpdatedAddresses

All Addresses of the accounts that have been updated by the actions in the transaction within the block.

Declaration
public IImmutableSet<Address> UpdatedAddresses { get; }
Property Value
Type Description
IImmutableSet<Address>
| Improve this Doc View Source

UpdatedFungibleAssets

Addresses and sets of Currency whose fungible assets have been updated by the actions in the transaction within the block. Included FungibleAssetValues are the final balances right after the transaction is executed.

Declaration
public IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>> UpdatedFungibleAssets { get; }
Property Value
Type Description
IImmutableDictionary<Address, IImmutableDictionary<Currency, FungibleAssetValue>>
| Improve this Doc View Source

UpdatedStates

The states delta made by the actions in the transaction within the block.

Declaration
public IImmutableDictionary<Address, IValue?> UpdatedStates { get; }
Property Value
Type Description
IImmutableDictionary<Address, Nullable<IValue>>

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
Overrides
TxExecution.GetObjectData(SerializationInfo, StreamingContext)

Implements

ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium