Show / Hide Table of Contents

Class TxSuccess

Summarizes an execution result of a successful Transaction.

Inheritance
Object
TxExecution
TxSuccess
Implements
ISerializable
Inherited Members
TxExecution._codec
TxExecution.BlockHash
TxExecution.TxId
TxExecution.ActionsLogsList
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Tx
Assembly: Libplanet.dll
Syntax
[Serializable]
public sealed class TxSuccess : TxExecution, ISerializable

Constructors

| Improve this Doc View Source

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

Creates a TxSuccess instance.

Declaration
public TxSuccess(BlockHash blockHash, TxId txId, List<List<string>> actionsLogsList, 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 that the Transaction is executed within.

TxId txId

The executed Transaction's Id.

List<List<String>> actionsLogsList

The logs recorded while executing actions.

IImmutableDictionary<Address, Bencodex.Types.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
[Pure]
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
[Pure]
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
[Pure]
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
[Pure]
public IImmutableDictionary<Address, IValue> UpdatedStates { get; }
Property Value
Type Description
IImmutableDictionary<Address, Bencodex.Types.IValue>

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Summarizes an execution result of a successful Transaction.

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

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium