⚠ BREAKING CHANGES
Please check out the migration guide and a tool to convert to convert secret keys.
- CommonJS bundles have cjs extension instead js
- aepp: AeSdkWallet requires
onAskToSelectNetwork
constructor option - tx-builder:
ChannelClientReconnectTx
removed - node: Node returns time in KeyBlock and MicroBlockHeader as Date
- middleware: require 1.81.0
- sdk requires [email protected] or newer
- sdk types requires [email protected] or newer
- account: Save HD wallets methods removed
- account:
sign
,signMessage
removed - account:
isValidKeypair
removed - account:
getAddressFromPriv
removed - account:
generateKeyPair
removed - account:
generateKeyPairFromSecret
removed recover
,dump
removed (AEX-3 keystore implementation)- node,compiler,middleware: $host is readonly in generated APIs
- account: MemoryAccount accepts secret key as sk_-prefixed string
- account:
generateKeyPair
returns secretKey encoded as sk_-prefixed string - aepp: RpcBroadcastError not exported anymore
NAME_BID_MAX_LENGTH
not exported anymore- contract:
encodeFateValue
,decodeFateValue
not exported anymore - Iris is not supported
- middleware: sdk requires [email protected] and above
- node: sdk requires aeternity node 7.1.0 and above
- account: AccountBase inheritors required to implement
signTypedData
,signDelegation
signDelegationToContract
removedsignNameDelegationToContract
removedsignAllNamesDelegationToContract
removedsignOracleQueryDelegationToContract
removed- wallet,aepp: delegations used in Iris removed from aepp-wallet connection
createDelegationSignature
removed- compiler: CompilerCli uses aesophia@8 by default
- compiler: CompilerCli8 removed
- compiler: CompilerCli and CompilerHttp requires aesophia@8
- aens: aens* methods removed
- tx-builder:
NAME_*TTL
,CLIENT_TTL
not exported anymore - oracle:
pollQueries
don't return responded queries by default - oracle:
pollForQueries
method removed - oracle:
extendOracleTtl
method removed - oracle:
respondToQuery
method removed - oracle:
getOracleObject
method removed - oracle:
registerOracle
method removed - oracle:
getQueryObject
removed - oracle:
postQueryToOracle
,pollForQueryResponse
methods removed - tx-builder:
ORACLE_TTL
,QUERY_TTL
,RESPONSE_TTL
not exported anymore - tx-builder:
buildTx
/unpackTx
works only with transactions - tx-builder:
Tag
include only transactions - tx-builder:
buildTx
doesn't acceptprefix
anymore - contract:
AeSdk:initializeContract
removed
Features
- account: add
ensureReady
method to AccountLedgerFactory (5047e43) - account: add AccountMetamaskFactory (e9f9694)
- account: add AccountMnemonicFactory (c785521)
- account: encode secret key as sk_-prefixed string (b94e198)
- account: expose
secretKey
in MemoryAccount (d4320e6) - aepp: add api to ask wallet to select network (9871c91)
- aepp: extract class to connect to wallet from AeSdkAepp (c3570ac)
- middleware: add
requestByPath
method (ee5ac0c) - middleware: allow navigate to next/prev pages (b89cf5b)
- middleware: mark as stable api (e25b06d)
- middleware: prefixed types provided by OpenApi instead of strings (0b16a32)
- middleware: return time as Date instance (e48ffd1)
- middleware: switch to v3 api (b0015c0)
- node: return time as Date instance (e0e33ea)
- oracle: add
includeResponded
option to Oracle:pollQueries (78a07ab) - oracle: add Oracle:handleQueries method (03c77c0)
Bug Fixes
- account: improve Account:publicKey type (1652a4b)
- aens: validate minus chars in name as node does (329de9e)
- aepp: don't require subscription to request addresses (2b247ff)
- channel:
channelId
type, more accurate types (e572fae) - channel: accept
host
only if initiator (a7d4dde) - channel: reestablish flow (1f4a0c1)
- channel: remove
statePassword
unsupported on node side (5cec07b) - channel: remove unsupported ways to reopen channel by a transaction (f3746a1)
- middleware: accurate coin amounts (00a4f3e)
- middleware: word casing in activity types (f1fbb29)
- node,compiler,middleware: mark $host as readonly (9e47d5c)
- node: avoid complex types by code replacements instead generics (4f531b1)
- oracle: emit unhandled rejection instead printing error (3a57665)
- tx-builder: count amount in execution cost when spend to yourself (5153649)
- tx-builder: remove unused
ChannelClientReconnectTx
(e6e954a) - wallet: generate random string instead using external uuid dep (f8640d4)
- wallet: origin if opened over file:// (cordova) (d529f30)
Commits with breaking changes
- account: make
signTypedData
,signDelegation
abstract (f2c6d1d) - account: remove
generateKeyPair
(18c6789) - account: remove
generateKeyPairFromSecret
(2cbaa7c) - account: remove
getAddressFromPriv
(9446639) - account: remove
isValidKeypair
(512385a) - account: remove
sign
,signMessage
(30077bc) - account: remove save HD wallet functions (10e7c89)
- aens: replace aens methods with Name class (956daac)
- aepp: remove RpcBroadcastError (1f0b3bb)
- compiler: drop aesophia@7 support (df0e050)
- contract: don't depend on Contract in AeSdk (00b4f86)
- contract: remove
encodeFateValue
,decodeFateValue
(c521597) - drop Iris support (61554b3)
- drop [email protected] support (4008d12)
- middleware: require 1.77.5 (08783fd)
- middleware: require 1.81.0 (3243768)
- node: require 7.1.0 (0dd3b49)
- oracle: add Oracle class (54ee614)
- oracle: add OracleClient class (0293fe4)
- oracle: replace
getQueryObject
with OracleBase (bcab498) - remove
createDelegationSignature
(651b6ec) - remove
NAME_BID_MAX_LENGTH
(83797a4) - remove
signAllNamesDelegationToContract
(60a729d) - remove
signDelegationToContract
(cd495a6) - remove
signNameDelegationToContract
(9ab8f41) - remove
signOracleQueryDelegationToContract
(f948492) - remove keystore implementation (5e64ec9)
- rename legacy bundles to cjs (46cd27b)
- require [email protected] or newer (84d868c)
- tx-builder: extract entries into separate builder (d5fde18)
- tx-builder: remove deprecated constant exports (2ecf0f4)
- tx-builder: remove deprecated constant exports (2342aa6)
- update @types/node, drop TS below 4.8 (9d36e6c)
- wallet,aepp: remove
delegationToContract.sign
method (c4d62b0)