Releases: Concordium/concordium-node-sdk-js
Releases · Concordium/concordium-node-sdk-js
node-sdk v8.0.0
Breaking changes
- Proper
Errors are thrown when execution fails for any WASM entrypoint, and error messages have been improved. - Updated
types.tsto conform to updated GRPC API, which includes adding more variants to existing types (all new variants take effect from protocol version 6):ChainParametersV2added toChainParametersBlockInfochanged toBlockInfoV0 | BlockInfoV1ConsensusStatuschanged toConsensusStatusV0 | ConsensusStatusV1ElectionInfochanged toElectionInfoV0 | ElectionInfoV1
Fixed
- Cost calculation for
deployModuletransaction. - Fixed a bug where protocol version was different (i.e. 1 less than what it should be) when using the gRPCv2 API (compared to what is returned by the gRPCv1 API).
Added
- A
parseWalletfunction to parse wallet export files - Helper functions to determine version of versioned types mentioned in "Breaking Changes" have been added.
- Support for new chain update types.
- Function
uleb128DecodeWithIndexthat can also parse more than a single ULEB128 bigint - Added
tokenAddressFromBase58andtokenAddressToBase58to CIS2
Changed
- Function
uleb128Decodenow parses correctly and throws an error if the given input contains more than a single ULEB128 encoded number. - The following functions now all have an additional parameter controlling whether errors are in a verbose format or not:
deserializeContractStatedeserializeReceiveReturnValuedeserializeReceiveErrordeserializeInitErrordeserializeTypeValueserializeInitContractParametersserializeUpdateContractParametersserializeTypeValue
web-sdk v4.0.1
Fixed
- Cost calculation for
deployModuletransaction.
web-sdk v4.0.0
Breaking changes
- Updated
blockInfoso that thebakerIdfield is optional, since it will be undefined for genesis blocks. waitForTransactionFinalizationnow 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:
getEnergyCostgetExchangeRateconvertEnergyToMicroCcd
- Utility functions for extracting information from
BlockItemSummary:isInitContractSummaryisUpdateContractSummaryisTransferLikeSummaryisRejectTransactionisSuccessTransactiongetTransactionRejectReasongetReceiverAccountaffectedContractsaffectedAccounts
- Utility functions for extracting information from
BlockSpecialEvent:specialEventAffectedAccounts
- Helper methods on
GRPCClientfor chain traversal:getFinalizedBlocksFromfindEarliestFinalizedfindInstanceCreationfindFirstFinalizedBlockNoLaterThan
- Extended HdWallet with support for verifiable credential key derivation.
node-sdk v7.0.0
Breaking changes
- Updated
blockInfoso that thebakerIdfield is optional, since it will be undefined for genesis blocks. waitForTransactionFinalizationnow 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:
getEnergyCostgetExchangeRateconvertEnergyToMicroCcd
- Utility functions for extracting information from
BlockItemSummary:isInitContractSummaryisUpdateContractSummaryisTransferLikeSummaryisRejectTransactionisSuccessTransactiongetTransactionRejectReasongetReceiverAccountaffectedContractsaffectedAccounts
- Utility functions for extracting information from
BlockSpecialEvent:specialEventAffectedAccounts
- Helper methods on
GRPCClientfor chain traversal:getFinalizedBlocksFromfindEarliestFinalizedfindInstanceCreationfindFirstFinalizedBlockNoLaterThan
- Extended HdWallet with support for verifiable credential key derivation.
web-sdk v3.5.0
- Utility functions
uleb128Decodeanduleb128Encodefor decoding and encoding as unsigned leb128 respectively. CIS2Contractclass for interacting with smart contracts adhering to the CIS-2 standard.cis0Supportsfunction for checking standard support in smart contracts.- Made the
streamToList()function public. - Build function
buildAccountSignerfor creatingAccountSignerobjects from genesis format, wallet export format, and a simple representation of credentials with keys.
node-sdk v6.4.0
- Utility functions
uleb128Decodeanduleb128Encodefor decoding and encoding as unsigned leb128 respectively. CIS2Contractclass for interacting with smart contracts adhering to the CIS-2 standard.cis0Supportsfunction for checking standard support in smart contracts.- Made the
streamToList()function public. - Build function
buildAccountSignerfor creatingAccountSignerobjects from genesis format, wallet export format, and a simple representation of credentials with keys. generateBakerKeysfunction 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.
serializeTypeValuenow 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.
serializeTypeValuenow reports an error when called with invalid data, such as a receive function with missing schema, or a schema that cannot be parsed.