Releases: Concordium/concordium-node-sdk-js
Releases · Concordium/concordium-node-sdk-js
web-sdk v4.0.0
Breaking changes
- Updated
blockInfo
so that thebakerId
field is optional, since it will be undefined for genesis blocks. waitForTransactionFinalization
now returns aBlockItemSummaryInBlock
- Added missing version return type in
getModuleSchema
. It now returns an object containing the schema source and version.
Added
- Helpers for calculating energy cost for a transaction and microCCD cost from energy cost:
getEnergyCost
getExchangeRate
convertEnergyToMicroCcd
- Utility functions for extracting information from
BlockItemSummary
:isInitContractSummary
isUpdateContractSummary
isTransferLikeSummary
isRejectTransaction
isSuccessTransaction
getTransactionRejectReason
getReceiverAccount
affectedContracts
affectedAccounts
- Utility functions for extracting information from
BlockSpecialEvent
:specialEventAffectedAccounts
- Helper methods on
GRPCClient
for chain traversal:getFinalizedBlocksFrom
findEarliestFinalized
findInstanceCreation
findFirstFinalizedBlockNoLaterThan
- Extended HdWallet with support for verifiable credential key derivation.
node-sdk v7.0.0
Breaking changes
- Updated
blockInfo
so that thebakerId
field is optional, since it will be undefined for genesis blocks. waitForTransactionFinalization
now returns aBlockItemSummaryInBlock
- Added missing version return type in
getModuleSchema
. It now returns an object containing the schema source and version.
Added
- Helpers for calculating energy cost for a transaction and microCCD cost from energy cost:
getEnergyCost
getExchangeRate
convertEnergyToMicroCcd
- Utility functions for extracting information from
BlockItemSummary
:isInitContractSummary
isUpdateContractSummary
isTransferLikeSummary
isRejectTransaction
isSuccessTransaction
getTransactionRejectReason
getReceiverAccount
affectedContracts
affectedAccounts
- Utility functions for extracting information from
BlockSpecialEvent
:specialEventAffectedAccounts
- Helper methods on
GRPCClient
for chain traversal:getFinalizedBlocksFrom
findEarliestFinalized
findInstanceCreation
findFirstFinalizedBlockNoLaterThan
- Extended HdWallet with support for verifiable credential key derivation.
web-sdk v3.5.0
- Utility functions
uleb128Decode
anduleb128Encode
for decoding and encoding as unsigned leb128 respectively. CIS2Contract
class for interacting with smart contracts adhering to the CIS-2 standard.cis0Supports
function for checking standard support in smart contracts.- Made the
streamToList()
function public. - Build function
buildAccountSigner
for creatingAccountSigner
objects from genesis format, wallet export format, and a simple representation of credentials with keys.
node-sdk v6.4.0
- Utility functions
uleb128Decode
anduleb128Encode
for decoding and encoding as unsigned leb128 respectively. CIS2Contract
class for interacting with smart contracts adhering to the CIS-2 standard.cis0Supports
function for checking standard support in smart contracts.- Made the
streamToList()
function public. - Build function
buildAccountSigner
for creatingAccountSigner
objects from genesis format, wallet export format, and a simple representation of credentials with keys. generateBakerKeys
function now also returns the private baker keys.
web-sdk v3.4.2
generateBakerKeys
function now also returns the private baker keys.
web-sdk v3.4.1
Fix the gRPCv2 client's helper function waitForFinalization
, so it doesn't use setImmediate
, which is not supported in the browser.
web-sdk v3.4.0
- Added a general function for deserializing smart contract values
deserializeTypeValue.
- signMessage and verifyMessageSignature can now handle the message being a buffer/Uint8Array instead of only a utf8 string.
- Updated dependencies to fix incorrect serialization of negative numbers for smart contract values.
serializeTypeValue
now reports an error when called with invalid data, such as a receive function with missing schema, or a schema that cannot be parsed.
node-sdk v6.3.0
- Added a general function for deserializing smart contract values
deserializeTypeValue.
- signMessage and verifyMessageSignature can now handle the message being a buffer/Uint8Array instead of only a utf8 string.
- Updated dependencies to fix incorrect serialization of negative numbers for smart contract values.
serializeTypeValue
now reports an error when called with invalid data, such as a receive function with missing schema, or a schema that cannot be parsed.
web-sdk v3.3.1
- Added a client for version 2 of the Concordium gRPC API to communicate with a Concordium node.
- including helper function
waitForTransactionFinalization
that returns a promise that resolves when the transaction finalizes.
- including helper function
- Added a
createConcordiumClient
function to create the gRPC v2 client. - Support for the
configureBaker
transaction type. getInitContractParameterSchema
,getUpdateContractParameterSchema
,serializeInitContractParameters
andserializeUpdateContractParameters
now report an error when called with invalid data, such as a receive function with missing schema, or a schema that cannot be parsed.- The JSON-RPC client has been deprecated in favor of the new gRPC v2 client.
- Various types and helper functions used by the JSON-RPC client (and the v1 gRPC client) have also been deprecated.
node-sdk v6.2.0
- Added a client for version 2 of the Concordium gRPC API to communicate with a Concordium node.
- including helper function
waitForTransactionFinalization
that returns a promise that resolves when the transaction finalizes.
- including helper function
- Added a
createConcordiumClient
function to create the gRPC v2 client. - Support for the
configureBaker
transaction type. getInitContractParameterSchema
,getUpdateContractParameterSchema
,serializeInitContractParameters
andserializeUpdateContractParameters
now report an error when called with invalid data, such as a receive function with missing schema, or a schema that cannot be parsed.- The value of amount fields in the gRPC v1 client's invokeContract's events has been changed to bigint (instead of string) as the type specifies.
- The old gRPC v1 client has been deprecated in favor of the new gRPC v2 client.
- Various types and helper functions used by the old gRPC v1 client (and the JSON-RPC client) have also been deprecated.