Libplanet 4.0.0
Released on January 22, 2024.
Backward-incompatible API changes
- Bumped
BlockMetadata.CurrentProtocolVersion
to 5. [#3524] - Removed
BlockChain.GetBalance(Address, Currency, Address)
method. [#3583] - Removed
BlockChain.GetTotalSupply(Currency, Address)
method. [#3583] - (Libplanet.Action) Changed
ActionEvaluator
to acceptIWorld
instead ofIAccount
. [#3462] - (Libplanet.Action)
IActionEvaluation.OutputState
becameIWorld
. (wasIAccount
) [#3462] - (Libplanet.Action)
IAction.Execute()
became to returnIWorld
. (wasIAccount
) [#3462] - (Libplanet.Action)
IActionContext.PreviousState
becameIWorld
. (wasIAccount
) [#3462] - (Libplanet.Action) Following methods in
IFeeCollector
interface became to accept and returnIWorld
. (wasIAccount
) [#3462]IFeeCollector.Mortgage()
IFeeCollector.Refund()
IFeeCollector.Reward()
- (Libplanet.Action)
IBlockChainStates
interface has been overhauled. [#3462, #3583]- Added
IBlockChainStates.GetWorldState(BlockHash?)
method. - Added
IBlockChainStates.GetWorldState(HashDigest<SHA256>?)
method. - Removed
IBlockChainStates.GetAccountState(BlockHash?)
method. - Removed
IBlockChainStates.GetState(Address, BlockHash?)
method. - Removed
IBlockChainStates.GetStates(IReadOnlyList<Address>, BlockHash?)
method. - Removed
IBlockChainStates.GetBalance(Address, Currency, BlockHash?)
method. - Removed
IBlockChainStates.GetTotalSupply(Currency, BlockHash?)
method. - Removed
IBlockChainStates.GetValidatorSet(BlockHash?)
method.
- Added
- (@planetarium/tx) Remove the
T
generic argument ofSignedTx<T>
. [#3512] - (Libplanet.Common) Removed
EnumerableExtensions
class. [#3625, #3626]
Added APIs
- Added
BlockMetadata.LegacyStateVersion
constant. [#3524] - (Libplanet.Action) Added
IWorld
interface and its implementation. [#3462]- Added
World
class.
- Added
- (Libplanet.Action) Added
IWorldDelta
interface. [#3462] - (Libplanet.Action) Added
IWorldState
interface and its implementation. [#3462]- Added
WorldBaseState
class.
- Added
- (Libplanet.Action) Added
ReservedAddresses
static class. [#3462] - (Libplanet.Store) Added
TrieMetadata
class. [#3540] - (Libplanet.Explorer) Added
AccountStateType
class. [#3462] - (Libplanet.Explorer) Added
WorldStateType
class. [#3462] - (Libplanet.Explorer) Added
StateQuery.world
field. [#3462] - (Libplanet.Explorer) Changed
account
andaccounts
query inStateQuery
to be compatible withstateQuery.world
. [#3589]