- Uses exports in package.json and minor fixes
- Updated dependencies
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
-
[Breaking Change] CryptoProvider renamed to CryptoAdapter
- Crypto Adapters
NodeJsCryptoAdapter
andWebCryptoAdapter
are dedicate path@signumjs/crypto/adapters
generateMnemonic
has changed API to better support partial settings.
- Crypto Adapters
-
Updated dependencies
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
-
Decoupled Crypto Provider. Breaking Change as this requires the developer to define the platform specific crypto provider before using the sdk
Breaking Change:
If you see the following error:
"No Crypto Provider provided - Use [Crypto.init()] first";
You need to initialize the crypto module with the platform specific CryptoProvider.
NodeJS
import { Crypto, NodeJSCryptoProvider } from "@signumjs/crypto"; Crypto.init(new NodeJSCryptoProvider());
Web/Browser
import { Crypto, WebCryptoProvider } from "@signumjs/crypto"; Crypto.init(new WebCryptoProvider());
Further implementations will be provided as external modules/packages, i.e. React Native Expo
-
Updated dependencies
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
- Crypto: Custom Crypto Provider on getInstance
- Updated dependencies
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
- Added IIFE bundles
- Updated dependencies
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
-
14f4944: This new version uses a completely modernized stack (turborepo, vite, vitest). Furthermore, the crypto package was rewritten to remove deprecated crypto-js library and being extensible. The standards (SRC) packages were reorganized and finally the monitor package was removed
Breaking Changes:
@signumjs/monitor
was removed, as not really used@signumjs/crypto
was completely rewritten, mainly due to the deprecation ofcrypto-js
and certain security implications@signumjs/standards
were reorganized respecting the Signum Request for Comment (SRC) numbering
How to update from 1.0 to 2.0
- Monitor was removed
Drop
signumjs/monitor
(no replacement here) - if you used the monitor you can copy the code from the repo and include it manually in your code base- Adjust Crypto
- Passphrase generator was dropped, use
generateMnemonic
instead generateMasterKeys
was renamed togenerateSignKeys
hashSHA256
was renamed tosha256AsHex
(and more sha256 hashers are available)encryptAES
anddecryptAES
were dropped - use native crypto methods for AES encryption. Signum uses for their P2P encryption a AES based algorithm using the shared key (encryptMessage
andencryptData
)
The new crypto package offers more secure random and sha256 functions and is much more flexible. Check the docs for more info
- Using SRC based standards
Actually, not much to do here. It's just that the internal structure is organized by the SRC numbering.
- Updated dependencies [14f4944]
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected]
- @signumjs/[email protected] All notable changes to this project will be documented in this file.
This version is a major breakthrough with a lots of significant and breaking changes.
-
Rebranding
-
Removed all deprecated functions
-
Several Renamed Functions and classes
-
Improved consistency of functions
-
Improved documentation
-
Added support for external signing, i.e. using no public key return unsigned tx bytes
- Attention:
sendEncryptedMessage
changed its interface - Attention:
getAliases
changed its interface and moved to Alias API - Attention:
getAllAssets
changed its interface
- Attention:
-
Multiouts with duplicate id checks now, i.e. automatic dedupe for same multiout
-
Support for Contract References aka Carbon Contracts/Green Smart Contracts
-
New Functions/Classes:
getMiningInfo
publishContractByReference
getNetworkInfo
LedgerClientFactory
getAssetHolders
getAssetHoldersPerAccount
getAssetHoldersPerAsset
addAssetTreasuryAccount
distributeToTokenHolders
getAllTrades
getAssetTrades
getAssetTradesPerAccount
getAssetTradesPerAsset
getAliasesOnSale
sellAlias
buyAlias
mintAsset
burnAsset
getOpenBidOrders
getOpenAskOrders
getOpenBidOrdersPerAccount
getOpenAskOrdersPerAccount
getOpenBidOrdersPerAsset
getOpenAskOrdersPerAsset
getTradeHistoryPerAccount
transferAssetOwnership
,getTransactionByReferenceHash
calculateDistributionFee
,getAssetsByOwner
,searchAliasesByName
,getTopLevelDomains
buyTopLevelDomain
getContractsByMachineCodeHash
-
New Transaction Subtype Enums for Assets
-
getAccountTransactions
can resolve asset distributions now! -
Account class converted to interface and follows now the Nodes response
-
Minor bug fixes
Before Rebranding
Breaking Changes
getAccount
accepts an argument object nowTransactionRewardRecipentSubtype
renamed toTransactionMiningSubtype
setAccountInfo
accepts an argument object now
New
- Added
BurstService.selectBestNode
- deprecated
suggestFee
- use
getSuggestedFees
- use
- added new methods to transaction Api
signAndBroadcastTransaction
- added new methods to assets Api
issueAsset
cancelAskOrder
cancelBidOrder
placeAskOrder
placeBidOrder
transferAsset
- Added BurstAddress Value Object
- Added
addCommitment
,removeCommitment
Api
interface "leaks" the underlying BRS service instance
Fixes
- Fixed return types of Block Api (
BlockIdList
andBlockList
) - Fixed
getAccountBlocks
andgetAccountBlockIds
- Fixed missing export for
AssetList
Breaking Changes
ContractHelper
,getContractDatablock
moved into new packagecontracts
FeeQuantNQT
removed- moved to
FeeQuantPlanck
in@signumjs/util
- moved to
setRewardRecipient
with argument object now
-
added new methods to contract Api
callContractMethod
publishContract
-
added new methods to transaction Api
createSubscription
cancelSubscription
getSubscription
getUnconfirmedTransactions
-
added new methods to account Api
getAccountSubscriptions
getSubscriptionsToAccount
getRewardRecipient
Breaking Changes
getAccountTransactions
uses an argument object now
- deprecated
sendTextMessage
- will be removed in next version (0.5)
- use
sendMessage
- deprecated
sendEncryptedTextMessage
- will be removed in next version (0.5)
- use
sendEncryptedMessage
- Initiated work on assets Api
- added
getAsset
- added
getAllAssets
- added
- Fixed encoding issue on BRS requests (#826)
- Added
getAllContractIds
to contract Api - Added Http Options for
BurstService
/composeApi
- Changed License: From GPL-3.0 to Apache 2.0
isAttachmentVersion
returnstrue
orfalse
consistently- added
sendAmountToSingleRecipient
using new argument objects- allows sending with public key, to enable recipients account activation
- removed
sendMoneyMultiOut
- use
sendSameAmountToMultipleRecipients
- use
sendAmountToMultipleRecipients
- use
- removed
sendMoney
- use
sendAmount
, or bettersendAmountToSingleRecipient
- use
- deprecated
sendAmount
- will be removed in next major version (0.5)
- use
sendAmountToSingleRecipient
Breaking Changes
- removed
assertAttachmentVersion
- use
isAttachmentVersion
instead
- use
- deprecated
sendMoneyMultiOut
- will be removed in next major version (0.4)
- use
sendSameAmountToMultipleRecipients
- use
sendAmountToMultipleRecipients
- deprecated
sendMoney
- will be removed in next major version (0.4)
- use
sendAmount
- added
isAttachmentVersion
- added
getAttachmentVersion
- splitted
sendMoneyMultiOut
intosendSameAmountToMultipleRecipients
sendAmountToMultipleRecipients
- added
sendAmount
- minor refactoring leading to slightly smaller code
- fixed missing contract imports
- adjusted error response for inconsistent BRS error responses
- introduced first Contract API functions
getContract
getContractsByAccount
ContractHelper
class for easier contract inspection- fixed symlink bundling issue
- now available as standalone bundle (iife)
- added
confirmed
property toAccount
model - added
alias
api - added
setRewardRecipient
for assigning reward recipients for miners
- added FeeQuant for
suggestFees
- changed BurstService creation parameter
- added sendEncryptedTextMessage
- Export of Api Interface Types
- Entirely removed BigNumber
- BRS exceptions thrown as
HttpError
now
- Modified
Account
type to better reflect what is returned from BRS API. This is a breaking change, please see theAccount
for the new property names. - Added
setAccountInfo
for setting account name and description
- Added
getBlocks
- Added
suggestFees
for getting suggested fees. - Added
sendMoney
for generating the unsigned transaction, signing it, and broadcasting it.
- Added
getAliases
to retrieve aliases for an account - Added
generateSendTransactionQRCode
andgenerateSendTransactionQRCodeAddress
methods for generating a QR code image or URL, respectively.