Releases: planetarium/libplanet
Releases · planetarium/libplanet
Libplanet 4.0.4
Released on February 7, 2024.
- (Libplanet.Explorer) Revert a GraphQL query argument type change to make it compatible with old schema. [#3663]
Libplanet 4.0.3
Released on February 6, 2024.
- (Libplanet.Explorer) Revert GraphQL types to make it more compatible with old schema. [#3657]
- Rolled back
TxResultType
's name to auto generatedTxResultType
from specifiedTxResult
. - Rolled back
BlockHash
andTxId
to be handled asIDGraphType
instead ofBlockHashType
andTxIdType
in legacy queries. - Rolled back
HashDigest<SHA256>
to be handled asHashDigestSHA256Type
instead ofHashDigestType<T>
in legacy queries.
- Rolled back
Libplanet 4.0.2
Libplanet 4.0.1
Released on January 26, 2024.
- (Libplanet.Action) Changed
IWorld.SetAccount()
to throw anArgumentException
under certain undesirable circumstances. [#3633]
Libplanet 3.9.6
Released on January 26, 2024.
- (Libplanet.Store) Optimized
TrieStateStore.CopyStates()
to greatly reduce the amount of memory used. [#3634]
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]
Libplanet 3.9.5
Libplanet 3.9.4
Released on January 11, 2024.
- (Libplanet.Explorer) Rolled back some changes to the API to be more compatible with pre-3.9.3 API. [#3600]
- Changed the name
BencodexValueType
toIValueType
. - Changed the name
LegacyBencodexValueType
toBencodexValueType
. - Changed
AddressType.Name
fromaddress
toAddress
. - Changed
BlockHashType.Name
fromblockHash
toBlockHash
. - Changed
PublicKeyType.Name
frompublicKey
toPublicKey
. - Changed
TxIdType.Name
fromtxId
toTxId
.
- Changed the name
Libplanet 3.9.3
Released on January 4, 2024.
Due to changes in #3567, a network ran with a prior version may not be compatible with this version, specifically, those that ran with Libplanet 2.0.0 and onwards prior to this release that have included Transaction
s that aren't compatible with the updated specification in #3567.
- (Libplanet.Explorer) Added
BlockHashType
andTxIdType
. [#3559] - (Libplanet.Explorer) Changed
HashDigestSHA256Type
toHashDigestType<T>
. [#3559] - (Libplanet.Explorer) Changed
BencodexValueType
to inheritObjectGraphType<IValue>
instead ofStringGraphType
. Instead of simply being a hexadecimal representation ofbyte[]
encodedIValue
, now one can choose its representation format. [#3560] - (Libplanet.Explorer) Added
HelperQuery
, a collection of utility like queries. [#3561] - (Libplanet.Explorer) Removed
IRichStore.StoreUpdatedAddressReferences()
andIterateUpdatedAddressReferences()
interface methods. [#3562] - (Libplanet.Explorer) Removed
involvedAddress
argument from allTransactionQuery
query methods. [#3562] - (Libplanet.Explorer) Removed
IRichStore
interface. [#3564] - (Libplanet.Explorer) Removed parameters
mysql-server
,mysql-port
,mysql-username
,mysql-password
, andmysql-database
fromLibplanet.Explorer.Executable
. [#3564] - Changed
TxInvoice
to no longer allow negative values forMaxGasPrice
andGasLimit
. [#3567] - (Libplanet.Explorer) Added
AccountStateType
class. [#3570] - (Libplanet.Explorer) Added
account
andaccounts
query toStateQuery
. [#3570] - (Libplanet.Store) Changed
ShortNode
to no longer inheritBaseNode
.ShortNode.Value
is no longer nullable. [#3572] - (Libplanet.Store) Removed
FullNode()
and addedFullNode.Empty
. [#3573] - (Libplanet.Store) Slightly optimized
ITrie
performance. [#3573] - (Libplanet.Store) Changed
FullNode
to no longer inheritBaseNode
. [#3574] - (Libplanet.Store) Removed
BaseNode
. [#3574] - (Libplanet.Store) Added
ITrie.Remove()
interface method. [#3576] - (Libplanet.Store) Added
FullNode.RemoveChild()
method. [#3576] - (Libplanet.Action) Added
IAccount.RemoveState()
interface method. [#3577] - (Libplanet.Explorer) Added
LegacyBencodexValueType
class that is a copy of an oldBencodexValueType
with its name changed for backwards compatibility. Changed oldstates
query to useLegacyBencodexValueType
instead ofBencodexValueType
. [#3579]
Libplanet 3.9.2
Released on December 15, 2023.
- (Libplanet.RocksDBStore) Added
DBOptions
type parameter toRocksDBKeyValueStore()
. [#3553]