Skip to content

Libplanet 2.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jun 06:01
· 1613 commits to main since this release
4fefb5c

Released on June 28, 2023.

Backward-incompatible API changes

  • (@planetarium/tx) Removed some types and functions related to actions because the concept of SystemAction and CustomAction was removed since 1.1.0 and some system actions were removed since 1.2.0. [#3230]
    • Removed encodeUnsignedTxWithCustomActions() function.
    • Removed encodeUnsignedTxWithSystemAction() function.
    • Removed UnsignedTxWithCustomActions type.
    • Removed UnsignedTxWithSystemAction type.
    • Removed encodeMint() function.
    • Removed encodeTransfer() function.
    • Removed encodeSystemAction() function.
    • Removed CustomAction type.
    • Removed SystemAction type.
    • Removed Mint type.
    • Removed Transfer type.
    • Added encodeUnsignedTx() function.
    • Added UnsignedTx type.
    • signTx(UnsignedTxWithCustomActions | UnsignedTxWithSystemAction) function's signature became signTx(UnsignedTx).
    • SignedTx<T extends UnsignedTxWithCustomActions | UnsignedTxWithSystemAction>'s signature became SignedTx<T extends UnsignedTx>.
  • Changed the type for IAccountStateDelta.UpdatedFungibleAssets to IImmutableSet<(Address, Currency)> from IImmutableDictionary<Address, IImmutableSet<Currency>>. [#3244]
  • Changed the type for IAccountStateDelta.TotalUpdatedFungibleAssets to IImmutableSet<(Address, Currency)> from IImmutableDictionary<Address, IImmutableSet<Currency>>. [#3244]
  • Added IAccountStateDelta.Delta propery. [#3245]
  • Removed IValidatorSupportStateDelta interface. [#3247]
  • Added IAccountStateDeltaView.GetValidatorSet() interface method. [#3247]
  • Added IAccountStateDelta.SetValidator() interface method. [#3247]
  • Changed the name IAccountStateDelta.TotalSupplyUpdatedCurrencies to IAccountStateDelta.UpdatedTotalSupplyCurrencies. [#3248]
  • Changed TxSuccess.UpdatedStates's type to IImmutableDictionary<Address, IValue> from IImmutableDictionary<Address, IValue?>. [#3248]
  • Added IBlockChainStates.GetState() interface method. [#3250]
  • Added IBlockStates.GetState() interface method. [#3250]
  • Changed IBlockStates to inherit IAccountState interface. [#3251]

Added APIs

  • Added IAccountDelta interface and its default implementation AccountDelta class. [#3245]