Releases: joticajulian/koilib
v8.0.0
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
andrecoverPublicKeys
from the Signer class
are now static functions.
- The rcOptions have been removed from the Signer class and moved to
π Bug Fixes
- Fix types for receipt and block_receipt
v5.6.0
π 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
π 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
π 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) orkoilib_types
(json descriptor) in Contract class and Serializer class π₯³
π Bug Fixes
- fix prepare function Transaction class
v5.4.0
π 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 toCallContractOptions
v5.3.1
π Bug Fixes
- fix BaseTransactionOptions interface: Use new beforeSend
v5.3.0
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
features:
- New function in the
Provider
class calledgetNextNonce
. 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
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
andnextOperations
as options in Contract class: List of extra operations to be included before/after the actual one in the transaction.
v5.2.0
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.