Show / Hide Table of Contents

Delegate TotalSupplyStateCompleter<T>

A delegate to be called when GetTotalSupply(Currency, BlockHash, TotalSupplyStateCompleter<T>) method encounters a block having incomplete dirty states. GetTotalSupply(Currency, BlockHash, TotalSupplyStateCompleter<T>) method returns this delegate's return value instead for such case.

Namespace: Libplanet.Blockchain
Assembly: Libplanet.dll
Syntax
public delegate FungibleAssetValue TotalSupplyStateCompleter<T>(BlockChain<T> blockChain, BlockHash blockHash, Currency currency)
    where T : IAction, new();
Parameters
Type Name Description
BlockChain<T> blockChain

The blockchain to query.

BlockHash blockHash

The hash of a block lacking its dirty states.

Currency currency

The currency to query.

Returns
Type Description
FungibleAssetValue

The total supply value of currency in FungibleAssetValue.

Type Parameters
Name Description
T

An IAction type. It should match the type parameter of BlockChain<T>.

See Also

FungibleAssetStateCompleters<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium