Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
6.0.1 (2024-04-22)
Bug Fixes
6.0.0 (2024-04-16)
Check out the new documentation at docs.aeternity.com/aepp-cli-js
⚠ BREAKING CHANGES
oracle: aecli oracle get
removed
Use aecli inspect
instead.
oracle: aecli don’t accept already known account address in oracles
Remove extra argument:
- $ aecli oracle extend ./wallet.json ok_2a1j2Mk9YSmC1gioUq4PWRm3bsv887MbuRVwyv4KaUGoR1eiKi 200
+ $ aecli oracle extend ./wallet.json 200
- $ aecli oracle respond-query ./wallet.json ok_2a1j2Mk9YSmC1gi... oq_6y3N9KqQb74QsvR... +16Degree
+ $ aecli oracle respond-query ./wallet.json oq_6y3N9KqQb74QsvR... +16Degree
account: aecli account verify-message
accepts signer address instead wallet
chain: aecli chain network_id
removed
Use aecli chain status
instead.
Commands don’t accept --no-waitMined
anymore
In the most cases transactions gets mined immediately. In case of NameClaim, tx needs to be
submitted in the next keyblock after preclaim. In that case it would be mined also immediately,
with no early name revealing.
If still needed, use aecli chain broadcast tx_... --no-waitMined
instead.
account: account save
removed
Use account create
instead:
-$ aecli account save ./my-wallet.json <hex secret key>
+$ aecli account create ./my-wallet.json <hex secret key>
account: aecli account spend
renamed to aecli spend
chain: aecli connects to mainnet by default
Use the below to switch back to testnet.
$ aecli select-node https://testnet.aeternity.io
require nodejs@18 or newer
Because nodejs@16 is not maintained currently.
name: name lookup
command removed
Use inspect
instead.
- aecli name lookup <name.chain>
+ aecli inspect <name.chain>
account: account generate
command removed
Use account create
in a cycle instead.
crypto: crypto sign
command removed
Use account sign
instead.
crypto: crypto unpack
command removed
Use inspect
instead.
- aecli crypto unpack <tx-prefixed transaction>
+ aecli inspect <tx-prefixed transaction>
crypto: crypto decode
removed
Use another base58 decoder if necessary.
account: account balance
, account nonce
commands removed
Use inspect <ak-address>
instead.
- aecli account balance wallet.json --password=123
- aecli account nonce wallet.json --password=123
+ address=$(aecli account address wallet.json --json | jq -r .publicKey)
+ aecli inspect $address
account: remove useless output
option
account: account spend
returns unwrapped JSON
- aecli account spend ... | jq .tx.tx.amount
+ aecli spend ... | jq .tx.amount
account: account transfer
command removed
Use spend
instead.
- aecli account transfer 0.42 <recipient>
+ aecli spend 42% <recipient>
Features
- account: accept password in env variable, notice password recorded (302c8b3)
- account: show approximate tx execution cost before asking password (9c97844)
- account: verify message by address instead wallet (4128276)
- aens: don’t require name ttl in
name extend
(0d4aa51) - aens: print missed name details, be human-friendly (91c7731)
- aens: show auction details (75217c3)
- chain: show protocol version in config (35496fb)
- contract: accept amount in contract and tx builder commands (1dbd195)
- show extra info in tx details, consistent fields naming (5a9f4cc)
Bug Fixes
- account: don’t ask for password if it is empty (daefd21)
- account: don’t ask password if it is not required (54d70fb)
- aens: handle revoked names, refactor docs (70b46c2)
- chain: use mainnet instead testnet by default (5a81814)
- contract: don’t show stacktrace if static contract call failed (694d400)
- contract: don’t use
-G
flag for both gas and gas price (047cf8e) - don’t accept
--networkId
in commands where node is required (cfd7ac5) - don’t print contract deposit because it can’t be used (47e0306)
- don’t show stacktraces for RestErrors (e7f2e58)
- oracle: don’t require extra arguments, refactor examples (4fada6e)
- oracle: remove extra arguments in tx builder, refactor, fix examples (e3be365)
Other commits with breaking changes
- account: combine
account create
andaccount save
(fdaeeff) - account: combine spend and transfer commands (2a2a94b)
- account: move
aecli account spend
toaecli spend
(4af1b4c) - account: remove extra object wrapping json output (b1d4585)
- account: remove unnecessary
account generate
command (1c6abd8) - account: remove unnecessary
balance
,nonce
commands (b4792e6) - account: remove useless
output
option (74a8a37) - chain: remove
network_id
command (4d4adce) - crypto: remove duplicate
crypto sign
command (bb39f07) - crypto: remove duplicate
crypto unpack
command (37b9965) - crypto: remove unnecessary
crypto decode
command (a0d9b05) - name: remove duplicate
name lookup
command (e4f9b50) - oracle: remove
oracle get
(6db5dc2) - remove –no-waitMined option (5fe7dc4)
- require nodejs@18 (5fd3bfa)
5.0.0 (2023-04-08)
⚠ BREAKING CHANGES
The format of contract descriptor file changed
Contract descriptors needs to be regenerated.
contract: contract call
accepts wallet_path
as the last argument
For example, replace
$ aecli contract call ./wallet.json foo '[1, 2]'
with
$ aecli contract call foo '[1, 2]' ./wallet.json
account spend
doesn’t accept denomination
parameter
Features
- accept amount suffixed with
ae
instead ofdenomination
option (70ceb67) - add
select-node
,select-compiler
commands (87b2ede) - add update-notifier to ask user to switch to the latest version (2516446)
- aesophia_cli support (a74fc2b)
- contract: includes support (818f375)
- get urls from AECLI_NODE_URL, AECLI_COMPILER_URL env variables (78a9953)
- specify and check contract descriptor file version (ea17f80)
Bug Fixes
- account: show network id in sign call output (836f421)
- contract: allow to static calls without wallet (7bf7bb6)
- contract: stringify maps as arrays (b80e3b4)
- don’t show stack trace when entered an invalid password to wallet (8d24bec)
- tx: remove missed
deposit
field in contract call tx (a1aa7c7) - tx: show bytecode and call data instead of missed payload (75f5eee)
- tx: show name of transaction type (18ee736)
- chain: calculation of relative ttl (651ba1a)
- chain: height calculation, improve markup, remove confusing timeout (4f5329d)
- chain: padding of top output (ca661d7)
- chain: show correctly consensus protocol version (a5fa358)
- don’t override files by default (d09eabe)
- inspect: encoded tx, plain contract output, oracle queries in json (dae4df9)
- oracle: decoding of oracle query (fa2764b)
- oracle: providing oracleTtl, queryTtl, responseTtl (a0cc66c)
- show name pointers line by line (9dbcf41)
4.1.0 (2022-07-28)
Features
- don’t print stack traces for cli errors (e62be74)
Bug Fixes
- commands in crypto module (6d6da0c)
- contract: always store aci in descriptor, override descr by options (278a6ff)
- contract: clear error when can’t parse call arguments (34ae285)
- contract: create file descriptor at not existing path (485117e)
- contract: fall if descriptor file specified but not exists (37b490f)
- remove broken
crypto decrypt
command (03c645c) - remove broken
crypto genkey
command (32e5b0f)
4.0.0 (2022-04-07)
⚠ BREAKING CHANGES
- contract deploy: accept args and bytecode, custom descrPath
Run aecli contract deploy --help
to get the latest documentation.
- contract call: accept arguments as JSON-encoded array
Affected commands: contract deploy
, contract call
.
- contract: decode call result, make args flexible
Removed commands: contract encodeData
, contract decodeCallData
.
Added commands: contract encode-calldata
, contract decode-call-result
.
Features
- contract deploy: accept args and bytecode, custom descrPath (cb25bb7)
Bug Fixes
- account transfer: remove unimplemented excludeFee option (cddbbe9)
- account transfer: remove unused denomination option (4c4d215)
- contract call: accept arguments as JSON-encoded array (201a7e0)
- name full-claim: key of created pointer (7c278f1)
- config command (27a1169)
- usage show correct command name (223f05d)
- contract: decode call result, make args flexible (b0a5cdc)
3.0.0 (2021-06-10)
Bug Fixes
- docker: enable dry-run endpoints (3afa3f5)
- test: aens suite (0fe69eb)
- test: contract suite (334f4dd)
- test: oracle suite lint (960bb4a)
- test: tx suite (64993ba)
- exit code of get address command (fddd2b0)
- remove compiler decodeData commend that depends on unsupported api (e198ea2)
- typo in gasPrice (347e733)
Features
- ci: add github actions workflow (3e0589e)
- env: bump node and compiler version (b5103e4)
- oracle: implement Oracle Test’s (26e8820)
- oracle: Implement Oracle Test’s (23296dd)
- oracle: Implement Oracle Test’s (854ce61)
2.7.0 (2020-06-10)
Bug Fixes
- AENS: Change tld from
aet
tochain
(#115) (8279579) - Contract: Fix compiler test’s (b748003)
- tests: Regenerate lock files to fix build on CI (#128) (23168ae)
- Fix test for AENS (fae6ce8)
Features
- Account: Add
verify-message
command toaccount
module (f26de1e) - Account: Add message sign command (d05e611)
- Account: Adjust printing and json serialization for
sign-message
result (7399377) - Account: Spend by name. Extend
account spend
command with ability to put recipient address or name (#117) (043d1a2) - AENS: Add bid, transfer, revoke and fullClaim commands (a5eb23a)
- AENS: Add test for auction (9f4f6b2)
- AENS: extend name ttl command (63c99ae)
- AENS: Fix
transfer
command. Add more test for transfer AENS names (547af5a) - AENS: Fix BC for all of AENS commands. (77d2d3c)
- AENS: Implement name update command (b65c5e6)
- CLI: Refactor constant(Use constant from sdk). Refactor error handling in AENS module. Add
pre-claim
command. Refactor claim command (7038629) - Contract: Add test for calling contract using cointract descriptor file or source code and address (3f77138)
- Contract: contract
call
command (ae723d5) - Contract: Contract high level commands (#116) (8848a7b)
- Contract: Enable test’s for contract (ed48a83)
- Oracle: Oracle commands (#134) (05b079a)
- Tests: Fix Breaking Changes and adjust tests (#126) (60b7910)
2.6.0 (2019-10-07)
Features
- Lima: Add support for lima (#105) (f7b061a)
- Compiler: Add
backend
option to compiler(Can befate
oraevm
.fate
by default) - AENS: Add
nameFee
option toclaim
command
2.5.0 (2019-08-28)
Features
- Node Node 5.0.0-rc1 compatibility
2.4.0 (2019-08-21)
Features
2.3.0 (2019-08-05)
Bug Fixes
- Account: Fix –json for account commands. Add proper error code to AENS commands. (#90) (7de13eb)
- CLI: Fix exit codes around the CLI (#84) (c775e1d)
Features
2.2.0 (2019-07-16)
Features
- Node: Compatibility for node 4.0.0
- Inspect Ability to unpack transaction using
inspect
command
Bug Fixes
2.1.0 (2019-05-20)
Bug Fixes
Features
- Fortuna: Add Fortune(3.0.0) compatibility
- Account: Feature/allow to spend percentage of balance (#68)
2.0.0 (2019-04-26)
Features
-
CI: Configure Jenkins pipeline
-
Account: Add option to get
balance
on specificheigh/hash
-
CLI: Make compatible with spec
-
Contract: Implement standalone
compiler
commands -
DOCS add command for auto generating
CHANGELOG
BREAKING CHANGES
- Remove contract
call
anddeploy
commands. Remove aensclaim
,revoke
andupdate
commands.
1.0.1 (2019-01-10)
Features
-
Contract: Add contract inspect command
-
CLI Improve error printing
-
TX: Add –networkId flag to each command which build a tx
-
CLI: Remove default fee for each command’s (SDK calculate fee by itself)
-
AENS: Add
AENS
transaction’s build commands for offline mode totx
module -
Contract: Add
contract
transaction’s build commands for offline mode totx
module -
Oracle: Add
oracle
transaction’s build commands for offline mode totx
module -
TX:
tx
root command, which allow to build transaction’s in offline-mode -
TX: Add
broadcast
sub-command totx
-
Account: Add ‘sign’ sub-command to
account
BREAKING CHANGES
- Default node url changed to sdk-mainnet.aepps.com