Class TxInvoice
A concrete implementation of ITxInvoice.
Inherited Members
Namespace: Libplanet.Tx
Assembly: Libplanet.dll
Syntax
public sealed class TxInvoice : ITxInvoice, IEquatable<ITxInvoice>, IEquatable<TxInvoice>
Constructors
| Improve this Doc View SourceTxInvoice(ITxInvoice)
Creates a new TxInvoice instance by copying everything from another
invoice
.
Declaration
public TxInvoice(ITxInvoice invoice)
Parameters
Type | Name | Description |
---|---|---|
ITxInvoice | invoice | Another invoice to copy data from. |
See Also
| Improve this Doc View SourceTxInvoice(Nullable<BlockHash>, IEnumerable<Address>, Nullable<DateTimeOffset>, TxActionList)
Creates a new TxInvoice instance by filling data for its fields. There are some default values for some fields.
Declaration
public TxInvoice(BlockHash? genesisHash = null, IEnumerable<Address> updatedAddresses = null, DateTimeOffset? timestamp = null, TxActionList actions = null)
Parameters
Type | Name | Description |
---|---|---|
Nullable<BlockHash> | genesisHash | The value for GenesisHash. |
IEnumerable<Address> | updatedAddresses | The value for UpdatedAddresses. Empty by default. |
Nullable<DateTimeOffset> | timestamp | The value for Timestamp. Time of creation by default. |
TxActionList | actions | The value of Actions. TxActionList by default. |
See Also
| Improve this Doc View SourceTxInvoice(Nullable<BlockHash>, IImmutableSet<Address>, DateTimeOffset, TxActionList)
Creates a new TxInvoice instance by filling data for its fields.
Declaration
public TxInvoice(BlockHash? genesisHash, IImmutableSet<Address> updatedAddresses, DateTimeOffset timestamp, TxActionList actions)
Parameters
Type | Name | Description |
---|---|---|
Nullable<BlockHash> | genesisHash | The value for GenesisHash. |
IImmutableSet<Address> | updatedAddresses | The value for UpdatedAddresses. |
DateTimeOffset | timestamp | The value for Timestamp. |
TxActionList | actions | The value of Actions. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when |
See Also
Properties
| Improve this Doc View SourceActions
A list of actions in this transaction.
Declaration
[JsonConverter(typeof(TxActionListJsonConverter))]
public TxActionList Actions { get; }
Property Value
Type | Description |
---|---|
TxActionList |
See Also
| Improve this Doc View SourceGenesisHash
A HashDigest<T> value of the genesis which this transaction is made from. This can be null iff the transaction is contained in the genesis block.
Declaration
public BlockHash? GenesisHash { get; }
Property Value
Type | Description |
---|---|
Nullable<BlockHash> |
See Also
| Improve this Doc View SourceTimestamp
The time this transaction is created and signed.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
See Also
| Improve this Doc View SourceUpdatedAddresses
An approximated list of addresses whose states would be affected by actions in this transaction. However, it could be wrong.
Declaration
public IImmutableSet<Address> UpdatedAddresses { get; }
Property Value
Type | Description |
---|---|
IImmutableSet<Address> |
See Also
Methods
| Improve this Doc View SourceEquals(TxInvoice)
A concrete implementation of ITxInvoice.
Declaration
[Pure]
public bool Equals(TxInvoice other)
Parameters
Type | Name | Description |
---|---|---|
TxInvoice | other |
Returns
Type | Description |
---|---|
Boolean |
See Also
| Improve this Doc View SourceEquals(Object)
A concrete implementation of ITxInvoice.
Declaration
[Pure]
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
See Also
| Improve this Doc View SourceGetHashCode()
A concrete implementation of ITxInvoice.
Declaration
[Pure]
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
See Also
| Improve this Doc View SourceToString()
A concrete implementation of ITxInvoice.
Declaration
[Pure]
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
See Also
Explicit Interface Implementations
| Improve this Doc View SourceIEquatable<ITxInvoice>.Equals(ITxInvoice)
A concrete implementation of ITxInvoice.
Declaration
[Pure]
bool IEquatable<ITxInvoice>.Equals(ITxInvoice other)
Parameters
Type | Name | Description |
---|---|---|
ITxInvoice | other |
Returns
Type | Description |
---|---|
Boolean |