Skip to content

Releases: Concordium/concordium-node-sdk-js

web-sdk v4.0.0

16 May 15:29
246b544
Compare
Choose a tag to compare

Breaking changes

  • Updated blockInfo so that the bakerId field is optional, since it will be undefined for genesis blocks.
  • waitForTransactionFinalization now returns a BlockItemSummaryInBlock
  • 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

16 May 15:31
246b544
Compare
Choose a tag to compare

Breaking changes

  • Updated blockInfo so that the bakerId field is optional, since it will be undefined for genesis blocks.
  • waitForTransactionFinalization now returns a BlockItemSummaryInBlock
  • 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

03 May 12:48
b824687
Compare
Choose a tag to compare
  • Utility functions uleb128Decode and uleb128Encode 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 creating AccountSigner objects from genesis format, wallet export format, and a simple representation of credentials with keys.

node-sdk v6.4.0

03 May 12:48
b824687
Compare
Choose a tag to compare
  • Utility functions uleb128Decode and uleb128Encode 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 creating AccountSigner 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

21 Apr 13:40
a52f1ad
Compare
Choose a tag to compare

generateBakerKeys function now also returns the private baker keys.

web-sdk v3.4.1

31 Mar 13:27
1030ceb
Compare
Choose a tag to compare

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

23 Mar 10:38
eeefb91
Compare
Choose a tag to compare
  • 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

23 Mar 10:35
eeefb91
Compare
Choose a tag to compare
  • 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

27 Feb 12:14
a6665bb
Compare
Choose a tag to compare
  • 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.
  • Added a createConcordiumClient function to create the gRPC v2 client.
  • Support for the configureBaker transaction type.
  • getInitContractParameterSchema, getUpdateContractParameterSchema, serializeInitContractParameters and serializeUpdateContractParameters 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

27 Feb 12:14
ee5de69
Compare
Choose a tag to compare
  • 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.
  • Added a createConcordiumClient function to create the gRPC v2 client.
  • Support for the configureBaker transaction type.
  • getInitContractParameterSchema, getUpdateContractParameterSchema, serializeInitContractParameters and serializeUpdateContractParameters 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.