Skip to content

Commit 8df932a

Browse files
authored
Merge pull request #254 from aeternity/release/6.0.0
Release 6.0.0
2 parents aac6939 + 026f050 commit 8df932a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+8752
-9298
lines changed

.env

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js renamed to .eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
sourceType: 'module',
1111
},
1212
rules: {
13+
'import/extensions': ['error', 'always'],
1314
// TODO: enable these rules back
1415
'no-console': 0,
1516
'max-len': 0,

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test
2+
on:
3+
push:
4+
branches: [master, develop]
5+
pull_request:
6+
jobs:
7+
main:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- run: |
11+
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
12+
sudo apt install --allow-downgrades ./esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 100
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 18.x # minimum supported version
19+
- uses: actions/cache@v4
20+
with:
21+
path: |
22+
~/.npm
23+
~/.autorest
24+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
25+
- run: npm ci
26+
- name: Run Commitlint
27+
if: github.event_name == 'pull_request'
28+
env:
29+
HEAD: ${{ github.event.pull_request.head.sha }}
30+
BASE: ${{ github.event.pull_request.base.sha }}
31+
run: npx commitlint --from $BASE --to $HEAD --verbose
32+
- run: npm run lint
33+
- run: docker compose up -d --wait
34+
- name: Ensure that docs are up to date
35+
run: npm run docs && git diff
36+
- run: npx c8 npm test
37+
- run: npx c8 report --reporter=text-lcov > coverage.lcov
38+
- uses: codecov/codecov-action@v4
39+
with:
40+
files: coverage.lcov
41+
env:
42+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
43+
- run: docker compose logs
44+
if: always()

.github/workflows/nodejs.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
node_modules
2-
docs
3-
/test-results.xml
4-
.tern-port
5-
.tern-project
6-
.dir-locals.el
7-
/.envrc
8-
/yarn-error.log
92
.idea
10-
/docker-compose.override.yml
11-
/pnpm-debug.log
12-
bin
13-
/.nyc_output
14-
/test-artifacts
3+
/coverage
4+
/coverage.lcov

.mocharc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
process.env._EXPECTED_MINE_RATE = 1000
2+
process.env._MICRO_BLOCK_CYCLE = 300
3+
4+
module.exports = {
5+
recursive: true,
6+
timeout: '4s',
7+
}

.mocharc.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

AUTHORS

Lines changed: 0 additions & 2 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 142 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,146 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [6.0.0](https://github.com/aeternity/aepp-cli-js/compare/v5.0.0...v6.0.0) (2024-04-16)
6+
7+
*Check out the new documentation at [docs.aeternity.com/aepp-cli-js](https://docs.aeternity.com/aepp-cli-js/)*
8+
9+
### ⚠ BREAKING CHANGES
10+
11+
#### **oracle:** `aecli oracle get` removed
12+
Use `aecli inspect` instead.
13+
14+
#### **oracle:** aecli don't accept already known account address in oracles
15+
Remove extra argument:
16+
```diff
17+
- $ aecli oracle extend ./wallet.json ok_2a1j2Mk9YSmC1gioUq4PWRm3bsv887MbuRVwyv4KaUGoR1eiKi 200
18+
+ $ aecli oracle extend ./wallet.json 200
19+
- $ aecli oracle respond-query ./wallet.json ok_2a1j2Mk9YSmC1gi... oq_6y3N9KqQb74QsvR... +16Degree
20+
+ $ aecli oracle respond-query ./wallet.json oq_6y3N9KqQb74QsvR... +16Degree
21+
```
22+
23+
#### **account:** `aecli account verify-message` accepts signer address instead wallet
24+
25+
#### **chain:** `aecli chain network_id` removed
26+
Use `aecli chain status` instead.
27+
28+
#### Commands don't accept `--no-waitMined` anymore
29+
In the most cases transactions gets mined immediately. In case of NameClaim, tx needs to be
30+
submitted in the next keyblock after preclaim. In that case it would be mined also immediately,
31+
with no early name revealing.
32+
If still needed, use `aecli chain broadcast tx_... --no-waitMined` instead.
33+
34+
#### **account:** `account save` removed
35+
Use `account create` instead:
36+
```diff
37+
-$ aecli account save ./my-wallet.json <hex secret key>
38+
+$ aecli account create ./my-wallet.json <hex secret key>
39+
```
40+
41+
#### **account:** `aecli account spend` renamed to `aecli spend`
42+
43+
#### **chain:** aecli connects to mainnet by default
44+
Use the below to switch back to testnet.
45+
```
46+
$ aecli select-node https://testnet.aeternity.io
47+
```
48+
49+
#### require nodejs@18 or newer
50+
Because nodejs@16 is not maintained currently.
51+
52+
#### **name:** `name lookup` command removed
53+
Use `inspect` instead.
54+
```diff
55+
- aecli name lookup <name.chain>
56+
+ aecli inspect <name.chain>
57+
```
58+
59+
#### **account:** `account generate` command removed
60+
Use `account create` in a cycle instead.
61+
62+
#### **crypto:** `crypto sign` command removed
63+
Use `account sign` instead.
64+
65+
#### **crypto:** `crypto unpack` command removed
66+
Use `inspect` instead.
67+
```diff
68+
- aecli crypto unpack <tx-prefixed transaction>
69+
+ aecli inspect <tx-prefixed transaction>
70+
```
71+
72+
#### **crypto:** `crypto decode` removed
73+
Use another base58 decoder if necessary.
74+
75+
#### **account:** `account balance`, `account nonce` commands removed
76+
Use `inspect <ak-address>` instead.
77+
```diff
78+
- aecli account balance wallet.json --password=123
79+
- aecli account nonce wallet.json --password=123
80+
+ address=$(aecli account address wallet.json --json | jq -r .publicKey)
81+
+ aecli inspect $address
82+
```
83+
84+
#### **account:** remove useless `output` option
85+
86+
#### **account:** `account spend` returns unwrapped JSON
87+
```diff
88+
- aecli account spend ... | jq .tx.tx.amount
89+
+ aecli spend ... | jq .tx.amount
90+
```
91+
92+
#### **account:** `account transfer` command removed
93+
Use `spend` instead.
94+
```diff
95+
- aecli account transfer 0.42 <recipient>
96+
+ aecli spend 42% <recipient>
97+
```
98+
99+
### Features
100+
101+
* **account:** accept password in env variable, notice password recorded ([302c8b3](https://github.com/aeternity/aepp-cli-js/commit/302c8b318447e8c74147dbbcd21b61156db3ed4a))
102+
* **account:** show approximate tx execution cost before asking password ([9c97844](https://github.com/aeternity/aepp-cli-js/commit/9c9784474a13ade972c36b3b7992ea3689383777))
103+
* **account:** verify message by address instead wallet ([4128276](https://github.com/aeternity/aepp-cli-js/commit/412827674d8ac57b484584ca63afe917f5ef68a0))
104+
* **aens:** don't require name ttl in `name extend` ([0d4aa51](https://github.com/aeternity/aepp-cli-js/commit/0d4aa5157f861b98eb25f5b1b4f93af79a9da018))
105+
* **aens:** print missed name details, be human-friendly ([91c7731](https://github.com/aeternity/aepp-cli-js/commit/91c773198b5d52e3665ed889b1d33d0c8391fa8d))
106+
* **aens:** show auction details ([75217c3](https://github.com/aeternity/aepp-cli-js/commit/75217c3c97ecb93b97521b626a0099e789b8fc33))
107+
* **chain:** show protocol version in config ([35496fb](https://github.com/aeternity/aepp-cli-js/commit/35496fbb2d5f80d657a784a17151f37350f2643d))
108+
* **contract:** accept amount in contract and tx builder commands ([1dbd195](https://github.com/aeternity/aepp-cli-js/commit/1dbd19557ccba9d89f99a48ea1f3d588d5022cd0))
109+
* show extra info in tx details, consistent fields naming ([5a9f4cc](https://github.com/aeternity/aepp-cli-js/commit/5a9f4cc31750cbc82cb3c4179935c8efda402d5f))
110+
111+
112+
### Bug Fixes
113+
114+
* **account:** don't ask for password if it is empty ([daefd21](https://github.com/aeternity/aepp-cli-js/commit/daefd21a97e84c9bdecaf5aed4d8d22075968e1f))
115+
* **account:** don't ask password if it is not required ([54d70fb](https://github.com/aeternity/aepp-cli-js/commit/54d70fbeae91627e8f4e9aa982d0ea5285d7d6be))
116+
* **aens:** handle revoked names, refactor docs ([70b46c2](https://github.com/aeternity/aepp-cli-js/commit/70b46c2b97de4004d9aef743f82b753c66cc12db))
117+
* **chain:** use mainnet instead testnet by default ([5a81814](https://github.com/aeternity/aepp-cli-js/commit/5a81814bf39e156e00e8f8c6ed6d903770725446))
118+
* **contract:** don't show stacktrace if static contract call failed ([694d400](https://github.com/aeternity/aepp-cli-js/commit/694d40032d029588a3c13f088647a1e7806d7493))
119+
* **contract:** don't use `-G` flag for both gas and gas price ([047cf8e](https://github.com/aeternity/aepp-cli-js/commit/047cf8e20589fdcb597e96176c1d60f9f506cc8b))
120+
* don't accept `--networkId` in commands where node is required ([cfd7ac5](https://github.com/aeternity/aepp-cli-js/commit/cfd7ac5b1caf930eefeb1a7c44da0bc0ccce71e8))
121+
* don't print contract deposit because it can't be used ([47e0306](https://github.com/aeternity/aepp-cli-js/commit/47e0306cb0bbccfdc7ee51da017e1293c4dd70d6))
122+
* don't show stacktraces for RestErrors ([e7f2e58](https://github.com/aeternity/aepp-cli-js/commit/e7f2e58bae89834f44e0d220c2b5748521c7fdfd))
123+
* **oracle:** don't require extra arguments, refactor examples ([4fada6e](https://github.com/aeternity/aepp-cli-js/commit/4fada6e2abcab38649dea793a79d877d5fd32df2))
124+
* **oracle:** remove extra arguments in tx builder, refactor, fix examples ([e3be365](https://github.com/aeternity/aepp-cli-js/commit/e3be36575f32d9c346048e5d0a7495017be0e9d1))
125+
126+
127+
#### Other commits with breaking changes
128+
129+
* **account:** combine `account create` and `account save` ([fdaeeff](https://github.com/aeternity/aepp-cli-js/commit/fdaeeff250c8e267de000b0bb244e07422014553))
130+
* **account:** combine spend and transfer commands ([2a2a94b](https://github.com/aeternity/aepp-cli-js/commit/2a2a94b76a67d96154f45d9da3f1cd1ad338c1b3))
131+
* **account:** move `aecli account spend` to `aecli spend` ([4af1b4c](https://github.com/aeternity/aepp-cli-js/commit/4af1b4ced43a9f6af82d333b9572aed783f5e9f1))
132+
* **account:** remove extra object wrapping json output ([b1d4585](https://github.com/aeternity/aepp-cli-js/commit/b1d4585765fdd380502a28583c7a98bf6a1f1a74))
133+
* **account:** remove unnecessary `account generate` command ([1c6abd8](https://github.com/aeternity/aepp-cli-js/commit/1c6abd8cc324437c85e6b139c9b424bd1330e0f2))
134+
* **account:** remove unnecessary `balance`, `nonce` commands ([b4792e6](https://github.com/aeternity/aepp-cli-js/commit/b4792e686d5595be65c57c233e986d71eb82308e))
135+
* **account:** remove useless `output` option ([74a8a37](https://github.com/aeternity/aepp-cli-js/commit/74a8a37004e8368b1886f7ba8aa745d96ed3c14b))
136+
* **chain:** remove `network_id` command ([4d4adce](https://github.com/aeternity/aepp-cli-js/commit/4d4adce835917c6cdaa67164b7a84ff689316bb7))
137+
* **crypto:** remove duplicate `crypto sign` command ([bb39f07](https://github.com/aeternity/aepp-cli-js/commit/bb39f079188760f5c7aaf16765475e00f08ff0dc))
138+
* **crypto:** remove duplicate `crypto unpack` command ([37b9965](https://github.com/aeternity/aepp-cli-js/commit/37b996570d44766fe0f1f3b10b2951330d8291fa))
139+
* **crypto:** remove unnecessary `crypto decode` command ([a0d9b05](https://github.com/aeternity/aepp-cli-js/commit/a0d9b059c2baf103e6eb4622e9c4bd6e2ab1dd5d))
140+
* **name:** remove duplicate `name lookup` command ([e4f9b50](https://github.com/aeternity/aepp-cli-js/commit/e4f9b5009b9c4f95b5349d8ce5f414e422c75d0d))
141+
* **oracle:** remove `oracle get` ([6db5dc2](https://github.com/aeternity/aepp-cli-js/commit/6db5dc216b8fc07de501385524e944676f8fab7e))
142+
* remove --no-waitMined option ([5fe7dc4](https://github.com/aeternity/aepp-cli-js/commit/5fe7dc48ac29f30a29670f8770fbc465e97f7b96))
143+
* require nodejs@18 ([5fd3bfa](https://github.com/aeternity/aepp-cli-js/commit/5fd3bfa06eb5d36efa67a655f62d4bf4ed8c144e))
144+
5145
## [5.0.0](https://github.com/aeternity/aepp-cli-js/compare/v4.1.0...v5.0.0) (2023-04-08)
6146

7147

@@ -14,11 +154,11 @@ Contract descriptors needs to be regenerated.
14154

15155
For example, replace
16156
```
17-
$ aecli contract call ./myWalletFile --password testpass foo '[1, 2]'
157+
$ aecli contract call ./wallet.json foo '[1, 2]'
18158
```
19159
with
20160
```
21-
$ aecli contract call --password testpass foo '[1, 2]' ./myWalletFile
161+
$ aecli contract call foo '[1, 2]' ./wallet.json
22162
```
23163
#### `account spend` doesn't accept `denomination` parameter
24164

0 commit comments

Comments
 (0)