Skip to content

Releases: joticajulian/koilib

v8.0.0

04 Jul 06:28
Compare
Choose a tag to compare

We found that the previous version v7 had problems between mana estimation
and multisignature transactions, because the estimation was done after the
first signature.
Now this concept has been improved and moved to the Transaction class, which
has a more intuitive process and supports multisignatures.

πŸš€ Features

  • adjustRcLimit is a new function in the Transaction class to adjust
    the rcLimit and at the same time recalculate the transaction ID. This function
    could be used by wallets during the estimation of the mana.
  • Transaction class now supports the definition of transaction in the
    constructor.
  • Documentation improved with examples for mana estimation.
  • breaking changes:
    • The rcOptions have been removed from the Signer class and moved to
      Transaction class (see adjustRcLimit).
    • recoverAddresses and recoverPublicKeys from the Signer class
      are now static functions.

πŸ› Bug Fixes

  • Fix types for receipt and block_receipt

v5.6.0

19 Jul 23:29
Compare
Choose a tag to compare

πŸš€ Features

  • The prepareTransaction function of the Signer has been marked as deprecated. Now
    this function has been moved to the Transaction Class. The motivation of this change
    is to avoid multiple calls and permissions to the wallets that manage the Signers.
  • The Contract Class and Transaction Class now use the new prepareTransaction
    function instead of the one from the Signer Class.

v5.5.1

20 Mar 17:02
Compare
Choose a tag to compare

πŸ› Bug Fixes

  • Fix name in Contract class: fetcthAbi -> fetchAbi
  • Skip the Buffer dependency of koinosPbToProto to be able to use it in the browser

v5.5.0

19 Mar 22:24
Compare
Choose a tag to compare

πŸš€ Features

  • New function in Contract class to fetch the ABI from the contract meta store.
  • Function to decode events.
  • The ABI now accepts types (binary descriptor) or koilib_types (json descriptor) in Contract class and Serializer class πŸ₯³

πŸ› Bug Fixes

  • fix prepare function Transaction class

v5.4.0

25 Feb 07:30
Compare
Choose a tag to compare

πŸš€ Features

  • New Transaction Class. Very useful when submitting multiple operations.
  • Documentation updated for multiple operations

πŸ› Bug Fixes

  • compute contract id in the constructor of Contract class

Remarks:

  • The type TransactionOptions has been renamed to CallContractOptions

v5.3.1

15 Dec 07:39
Compare
Choose a tag to compare

πŸ› Bug Fixes

  • fix BaseTransactionOptions interface: Use new beforeSend

v5.3.0

14 Dec 23:32
Compare
Choose a tag to compare

features:

  • beforeSend now has options in the parameters. Then it is possible to do something like this to pass the abis to the signer:
const beforeSend = async (tx, opts) => {
   await signer.signTransaction(tx, opts?.abis);
};

fixes:

  • send abis was missing in Signer.ts

v5.2.3

27 Nov 06:43
Compare
Choose a tag to compare

features:

  • New function in the Provider class called getNextNonce. It is used to query the actual nonce, and compute the next one. This is useful when creating a new transaction.

The motivation of this feature is related to the use of Koilib + Kondor. When you get a signer from Kondor, this signer comes with its own provider (to get transaction parameters, and to submit transactions). This is a problem when you are not using the same network as the one defined in Kondor, for instance when Kondor is connected to mainnet and you are targeting testnet. To solve this issue the developers normally use their owns providers to compute the correct chain_id, account_rc, and nonce. However, the nonce requires more steps when you are submitting transactions (increase nonce and encode it in base64url). The new getNextNonce function simplifies this computation.

v5.2.1

24 Oct 15:00
Compare
Choose a tag to compare

Features:

  • onlyOperation option in Contract class: Boolean to define if the intention is to get only the operation. No transaction or connection with the provider established.
  • previousOperations and nextOperations as options in Contract class: List of extra operations to be included before/after the actual one in the transaction.

v5.2.0

17 Oct 16:08
Compare
Choose a tag to compare

Fixes:

  • add set_system_contract in btypesOperation #18

Features:

  • New functions: isChecksum, isChecksumAddress, isChecksumWif
  • isChecksumAddress is called by default during the serialization of addresses. This helps to prevent sending tokens to bad formatted addresses. This option can be disabled as well.