Class CurrencyAccount
Inheritance
System.Object
CurrencyAccount
Assembly: Libplanet.Action.dll
Syntax
public sealed class CurrencyAccount : object
Constructors
|
Improve this Doc
View Source
CurrencyAccount(ITrie, Int32, Currency)
Declaration
public CurrencyAccount(ITrie trie, int worldVersion, Currency currency)
Parameters
Type |
Name |
Description |
ITrie |
trie |
|
System.Int32 |
worldVersion |
|
Currency |
currency |
|
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
Type |
Description |
System.Int32 |
|
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
public CurrencyAccount TransferAssetV0(Address sender, Address recipient, FungibleAssetValue value)
Parameters
Returns