Class TxSuccess
Summarizes an execution result of a successful Transaction.
Implements
Inherited Members
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public sealed class TxSuccess : TxExecution, ISerializable
Constructors
| Improve this Doc View SourceTxSuccess(BlockHash, TxId, IImmutableDictionary<Address, IValue>, 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>> 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. |
| IImmutableDictionary<Address, Bencodex.Types.IValue> | updatedStates | The states delta made by the actions in the transaction within the block. |
| 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 SourceUpdatedAddresses
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> |
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>> |
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 SourceGetObjectData(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 |