As this project is pre 1.0, breaking changes may happen for minor version bumps. A breaking change will get clearly notified in this log.
- Updated docs.
- Updated docs.
Keypair.constructor
now requirestype
field to define public-key signature system used in this instance (soKeypair
can support other systems in a future). It also checks if public key and secret key match if both are passed (to prevent nasty bugs).Keypair.fromRawSeed
has been renamed toKeypair.fromRawEd25519Seed
to make it clear that the seed must be Ed25519 seed.- It's now possible to instantiate
Memo
class so it's easier to check it's type and value (without dealing with low levelxdr.Memo
objects). - Changed
Asset.toXdrObject
toAsset.toXDRObject
andOperation.operationToObject
toOperation.toXDRObject
for consistency. - Time bounds support for numeric input values.
- Added
browser
prop to package.json.
- Update dependencies.
- Remove unused methods.
- Allow hex string in setOptions signers
- Updated XDR files
- Checking hash preimage length
- Support for new signer types:
sha256Hash
,preAuthTx
. StrKey
helper class withstrkey
encoding related methods.- Removed deprecated methods:
Keypair.isValidPublicKey
(useStrKey
),Keypair.isValidSecretKey
(useStrKey
),Keypair.fromSeed
,Keypair.seed
,Keypair.rawSeed
. - Breaking changes:
Network
must be explicitly selected. Previously testnet was a default network.Operation.setOptions()
methodsigner
param changed.Keypair.fromAccountId()
renamed toKeypair.fromPublicKey()
.Keypair.accountId()
renamed toKeypair.publicKey()
.- Dropping support for
End-of-Life
node versions.
- Breaking change
ed25519
package is now optional dependency. - Export account flags constants.
- Fixes XDR decoding issue when using firefox
- UTF-8 support in
Memo.text()
.
- Make 0 a valid number for transaction fee,
- Fix signer in Operation.operationToObject() - close #82
- Fixed Lodash registering itself to global scope.
- Add support for ManageData operation.
- Moved
Account.isValidAccountId
toKeypair.isValidPublicKey
. It's still possible to useAccount.isValidAccountId
but it will be removed in the next minor release (breaking change). (af10f2a) signer.address
option inOperation.setOptions
was changed tosigner.pubKey
. It's still possible to usesigner.address
but it will be removed in the next minor release (breaking change). (07f43fb)Operation.setOptions
now accepts strings forclearFlags
,setFlags
,masterWeight
,lowThreshold
,medThreshold
,highThreshold
,signer.weight
options. (665e018)- Fixed TransactionBuilder timebounds option. (854f275)
- Added
CHANGELOG.md
file.
- Now it's possible to pass
price
params as{n: numerator, d: denominator}
object. Thanks @FredericHeem. (#73)
- Breaking change
sequence
inAccount
constructor must be a string. (4da5dfc) - Breaking change Removed deprecated methods (180a5b8):
Account.isValidAddress
(replaced byAccount.isValidAccountId
)Account.getSequenceNumber
(replaced byAccount.sequenceNumber
)Keypair.address
(replaced byKeypair.accountId
)Network.usePublicNet
(replaced byNetwork.usePublicNetwork
)Network.useTestNet
(replaced byNetwork.useTestNetwork
)TransactionBuilder.addSigner
(callTransaction.sign
on buildTransaction
object)