Class CurrencyAccount
Inheritance
CurrencyAccount
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Assembly: Libplanet.Action.dll
Syntax
public sealed class CurrencyAccount
Constructors
|
Improve this Doc
View Source
CurrencyAccount(ITrie, Int32, Currency)
Declaration
public CurrencyAccount(ITrie trie, int worldVersion, Currency currency)
Parameters
Fields
|
Improve this Doc
View Source
TotalSupplyAddress
The Address location within the account where
the total supply of the currency gets stored.
Declaration
public static readonly Address TotalSupplyAddress
Field Value
Properties
|
Improve this Doc
View Source
Currency
Declaration
public Currency Currency { get; }
Property Value
|
Improve this Doc
View Source
Trie
Declaration
public ITrie Trie { get; }
Property Value
|
Improve this Doc
View Source
WorldVersion
Declaration
public int WorldVersion { get; }
Property Value
Methods
|
Improve this Doc
View Source
AsAccount()
Declaration
public IAccount AsAccount()
Returns
|
Improve this Doc
View Source
BurnAsset(Address, FungibleAssetValue)
Declaration
public CurrencyAccount BurnAsset(Address owner, FungibleAssetValue value)
Parameters
Returns
|
Improve this Doc
View Source
GetBalance(Address, Currency)
Declaration
public FungibleAssetValue GetBalance(Address address, Currency currency)
Parameters
Returns
|
Improve this Doc
View Source
GetTotalSupply(Currency)
Declaration
public FungibleAssetValue GetTotalSupply(Currency currency)
Parameters
Returns
|
Improve this Doc
View Source
MintAsset(Address, FungibleAssetValue)
Declaration
public CurrencyAccount MintAsset(Address recipient, FungibleAssetValue value)
Parameters
Returns
|
Improve this Doc
View Source
TransferAsset(Address, Address, FungibleAssetValue)
Declaration
public CurrencyAccount TransferAsset(Address sender, Address recipient, FungibleAssetValue value)
Parameters
Returns
|
Improve this Doc
View Source
TransferAssetV0(Address, Address, FungibleAssetValue)
Declaration
[Obsolete("Should not be used unless to specifically keep backwards compatibility for IActions that's been used when block protocol version was 0.")]
public CurrencyAccount TransferAssetV0(Address sender, Address recipient, FungibleAssetValue value)
Parameters
Returns