-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 14.0.0 #2026
Merged
Merged
Release 14.0.0 #2026
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test: fix mdw and reduce global timeout
BREAKING CHANGE: `AeSdk:initializeContract` removed Use `Contract.initialize` instead: ```diff - aeSdk.initializeContract(options) + Contract.initialize({ ...aeSdk.getContext(), ...options }) ```
fix(aepp): don't require subscription to request addresses
fix(wallet): origin if opened over file:// (cordova)
…tract Remove AeSdk:initializeContract
BREAKING CHANGE: `buildTx`/`unpackTx` works only with transactions If you need to work with node's entry use `packEntry`/`unpackEntry`. BREAKING CHANGE: `Tag` include only transactions Node entries tags moved to `EntryTag`. BREAKING CHANGE: `buildTx` doesn't accept `prefix` anymore Use `decode`/`encode` to convert payload to desired format.
Extract non-transactions into separate entry builder
BREAKING CHANGE: `ORACLE_TTL`, `QUERY_TTL`, `RESPONSE_TTL` not exported anymore These values provided by default in buildTx, if necessary define them as ```js const ORACLE_TTL = { type: ORACLE_TTL_TYPES.delta, value: 500 }; const QUERY_TTL = { type: ORACLE_TTL_TYPES.delta, value: 10 }; const RESPONSE_TTL = { type: ORACLE_TTL_TYPES.delta, value: 10 }; ```
BREAKING CHANGE: `postQueryToOracle`, `pollForQueryResponse` methods removed Use `OracleClient:postQuery`, `OracleClient:pollForResponse` instead.
BREAKING CHANGE: [email protected] is not supported anymore
BREAKING CHANGE: `getQueryObject` removed Use `Oracle:getQuery`, `OracleClient:getQuery` instead.
BREAKING CHANGE: `pollForQueries` method removed Use `Oracle:pollQueries` instead. BREAKING CHANGE: `extendOracleTtl` method removed Use `Oracle:extendTtl` instead. BREAKING CHANGE: `respondToQuery` method removed Use `Oracle:respondToQuery` instead. BREAKING CHANGE: `getOracleObject` method removed Use `Oracle:getState` instead. BREAKING CHANGE: `registerOracle` method removed Use `Oracle:register` instead.
BREAKING CHANGE: `pollQueries` don't return responded queries by default Use `includeResponded` option to restore the previous behavior.
Also, avoid eslint-disable, separate preparation and calling callback.
Refactor oracle methods
BREAKING CHANGE: `NAME_*TTL`, `CLIENT_TTL` not exported anymore These values provided by default in buildTx, if necessary define them as ```js const NAME_TTL = 180000; const NAME_MAX_TTL = 36000; const NAME_MAX_CLIENT_TTL = 86400; const CLIENT_TTL = 86400; ```
BREAKING CHANGE: aens* methods removed Use Name class instead. ```diff -await aeSdk.aensPreclaim('example.chain') +const name = new Name('example.chain', aeSdk.getContext()) +await name.preclaim() ``` Accordingly for other methods: ``` aensRevoke => Name:revoke aensUpdate => Name:update aensTransfer => Name:transfer aensQuery => Name:getState aensClaim => Name:claim aensBid => Name:bid ```
Replace AENS methods with Name class
BREAKING CHANGE: CommonJS bundles have cjs extension instead js If you are importing files explicitly from `dist` folder then you need to update the extension ```diff - https://unpkg.com/@aeternity/aepp-sdk/dist/aepp-sdk.browser-script.js + https://unpkg.com/@aeternity/aepp-sdk/dist/aepp-sdk.browser-script.cjs ```
Switch package type to module and update deps
Prere-lease fixes
davidyuk
force-pushed
the
release/14.0.0
branch
from
October 20, 2024 08:22
75e9263
to
23e526d
Compare
davidyuk
force-pushed
the
release/14.0.0
branch
from
October 20, 2024 10:39
3b6d7ce
to
a40b06b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
14.0.0 (2024-10-20)
⚠ BREAKING CHANGES
Please check out the migration guide and a tool to convert to convert secret keys.
onAskToSelectNetwork
constructor optionChannelClientReconnectTx
removedsign
,signMessage
removedisValidKeypair
removedgetAddressFromPriv
removedgenerateKeyPair
removedgenerateKeyPairFromSecret
removedrecover
,dump
removed (AEX-3 keystore implementation)generateKeyPair
returns secretKey encoded as sk_-prefixed stringNAME_BID_MAX_LENGTH
not exported anymoreencodeFateValue
,decodeFateValue
not exported anymoresignTypedData
,signDelegation
signDelegationToContract
removedsignNameDelegationToContract
removedsignAllNamesDelegationToContract
removedsignOracleQueryDelegationToContract
removedcreateDelegationSignature
removedNAME_*TTL
,CLIENT_TTL
not exported anymorepollQueries
don't return responded queries by defaultpollForQueries
method removedextendOracleTtl
method removedrespondToQuery
method removedgetOracleObject
method removedregisterOracle
method removedgetQueryObject
removedpostQueryToOracle
,pollForQueryResponse
methods removedORACLE_TTL
,QUERY_TTL
,RESPONSE_TTL
not exported anymorebuildTx
/unpackTx
works only with transactionsTag
include only transactionsbuildTx
doesn't acceptprefix
anymoreAeSdk:initializeContract
removedFeatures
ensureReady
method to AccountLedgerFactory (5047e43)secretKey
in MemoryAccount (d4320e6)requestByPath
method (ee5ac0c)includeResponded
option to Oracle:pollQueries (78a07ab)Bug Fixes
channelId
type, more accurate types (e572fae)host
only if initiator (a7d4dde)statePassword
unsupported on node side (5cec07b)ChannelClientReconnectTx
(e6e954a)Commits with breaking changes
signTypedData
,signDelegation
abstract (f2c6d1d)generateKeyPair
(18c6789)generateKeyPairFromSecret
(2cbaa7c)getAddressFromPriv
(9446639)isValidKeypair
(512385a)sign
,signMessage
(30077bc)encodeFateValue
,decodeFateValue
(c521597)getQueryObject
with OracleBase (bcab498)createDelegationSignature
(651b6ec)NAME_BID_MAX_LENGTH
(83797a4)signAllNamesDelegationToContract
(60a729d)signDelegationToContract
(cd495a6)signNameDelegationToContract
(9ab8f41)signOracleQueryDelegationToContract
(f948492)delegationToContract.sign
method (c4d62b0)This PR is supported by the Æternity Foundation
related PRs: aeternity/aescan#959 aeternity/contract-builder#33 aeternity/aepp-faucet-nodejs#44 aeternity/aepp-contracts#144