Skip to content

Commit aac6939

Browse files
authored
Merge pull request #219 from aeternity/release/5.0.0
chore(release): 5.0.0
2 parents 394148a + 8676b1d commit aac6939

Some content is hidden

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

48 files changed

+4654
-9121
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
NODE_TAG=v6.5.2
2-
COMPILER_TAG=v6.1.0
1+
NODE_TAG=v6.8.1
2+
COMPILER_TAG=v7.3.0

.github/workflows/nodejs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ name: Node.js CI
22
on: [push, pull_request]
33
jobs:
44
test:
5-
runs-on: ubuntu-latest
5+
runs-on: ubuntu-22.04
66
steps:
7+
- run: |
8+
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
9+
sudo apt install --allow-downgrades ./esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
710
- uses: actions/checkout@v2
811
with:
912
fetch-depth: 100
1013
- uses: actions/setup-node@v2
1114
with:
12-
node-version: 16.x
15+
node-version: 18.x
1316
- run: npm ci
1417
- run: npm run lint
1518

.mocharc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
process.env._EXPECTED_MINE_RATE = 1000
2+
process.env._MICRO_BLOCK_CYCLE = 300
3+
14
require('@babel/register')({
25
configFile: './babel.tests.config.js'
36
})

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,56 @@
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+
## [5.0.0](https://github.com/aeternity/aepp-cli-js/compare/v4.1.0...v5.0.0) (2023-04-08)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
#### The format of contract descriptor file changed
11+
12+
Contract descriptors needs to be regenerated.
13+
#### **contract:** `contract call` accepts `wallet_path` as the last argument
14+
15+
For example, replace
16+
```
17+
$ aecli contract call ./myWalletFile --password testpass foo '[1, 2]'
18+
```
19+
with
20+
```
21+
$ aecli contract call --password testpass foo '[1, 2]' ./myWalletFile
22+
```
23+
#### `account spend` doesn't accept `denomination` parameter
24+
25+
### Features
26+
27+
* accept amount suffixed with `ae` instead of `denomination` option ([70ceb67](https://github.com/aeternity/aepp-cli-js/commit/70ceb67223e2b6a8554822198bc150b1706dcd43))
28+
* add `select-node`, `select-compiler` commands ([87b2ede](https://github.com/aeternity/aepp-cli-js/commit/87b2edee61fcf8317a2e8339b7192ec1a6398b5e))
29+
* add update-notifier to ask user to switch to the latest version ([2516446](https://github.com/aeternity/aepp-cli-js/commit/25164460eab8e11706fc8a71e6566de7651fb5ce))
30+
* aesophia_cli support ([a74fc2b](https://github.com/aeternity/aepp-cli-js/commit/a74fc2b45928ea208ce9e9bfeefca23c8d3a4474))
31+
* **contract:** includes support ([818f375](https://github.com/aeternity/aepp-cli-js/commit/818f37561c8f9ebff336e3cfef4ae5749e1cf286))
32+
* get urls from AECLI_NODE_URL, AECLI_COMPILER_URL env variables ([78a9953](https://github.com/aeternity/aepp-cli-js/commit/78a9953878b15b0d8e3ae7094147fcf1db4b78ef))
33+
* specify and check contract descriptor file version ([ea17f80](https://github.com/aeternity/aepp-cli-js/commit/ea17f80fba43477ec0972acf7a42a9c43b868e62))
34+
35+
36+
### Bug Fixes
37+
38+
* **account:** show network id in sign call output ([836f421](https://github.com/aeternity/aepp-cli-js/commit/836f4215c9bd05fa832f66be6e1fdeccc7bd7d96))
39+
* **contract:** allow to static calls without wallet ([7bf7bb6](https://github.com/aeternity/aepp-cli-js/commit/7bf7bb65a1dddbcaee48bb318b973f30acf26755))
40+
* **contract:** stringify maps as arrays ([b80e3b4](https://github.com/aeternity/aepp-cli-js/commit/b80e3b408eb1ced6ebfa56235eaebc6105caf27a))
41+
* don't show stack trace when entered an invalid password to wallet ([8d24bec](https://github.com/aeternity/aepp-cli-js/commit/8d24beca28d7f8c918c09c912c67a16aa66e9482))
42+
* **tx:** remove missed `deposit` field in contract call tx ([a1aa7c7](https://github.com/aeternity/aepp-cli-js/commit/a1aa7c7b89aa4a59b9e2595226f0c1d82deb748f))
43+
* **tx:** show bytecode and call data instead of missed payload ([75f5eee](https://github.com/aeternity/aepp-cli-js/commit/75f5eeed9004346b5e903836d42ac6e8fa902678))
44+
* **tx:** show name of transaction type ([18ee736](https://github.com/aeternity/aepp-cli-js/commit/18ee73652a137d138cedc441566f15fb5b0ec5d9))
45+
* **chain:** calculation of relative ttl ([651ba1a](https://github.com/aeternity/aepp-cli-js/commit/651ba1a5d8642763c7643114c7f37f7bde7e0b26))
46+
* **chain:** height calculation, improve markup, remove confusing timeout ([4f5329d](https://github.com/aeternity/aepp-cli-js/commit/4f5329d83f954814c2b544f7219115ed3c8e4424))
47+
* **chain:** padding of top output ([ca661d7](https://github.com/aeternity/aepp-cli-js/commit/ca661d7a34611a76effda47c589d45ff9f7fbb04))
48+
* **chain:** show correctly consensus protocol version ([a5fa358](https://github.com/aeternity/aepp-cli-js/commit/a5fa3588a23b8b8f66201cd9ebb41d947f43edf4))
49+
* don't override files by default ([d09eabe](https://github.com/aeternity/aepp-cli-js/commit/d09eabe97c36461bc6aaa95ba383248983a0e3ef))
50+
* **inspect:** encoded tx, plain contract output, oracle queries in json ([dae4df9](https://github.com/aeternity/aepp-cli-js/commit/dae4df97fd3de1f69cfd96a470aafabe9b209b73))
51+
* **oracle:** decoding of oracle query ([fa2764b](https://github.com/aeternity/aepp-cli-js/commit/fa2764b6cc5aa933239c46f2e0f36735b96ccbc4))
52+
* **oracle:** providing oracleTtl, queryTtl, responseTtl ([a0cc66c](https://github.com/aeternity/aepp-cli-js/commit/a0cc66c45c44d0d63e1218e0d6fa26f4dafd3513))
53+
* show name pointers line by line ([9dbcf41](https://github.com/aeternity/aepp-cli-js/commit/9dbcf419c6ad617362437f28643bffd105621d87))
54+
555
## [4.1.0](https://github.com/aeternity/aepp-cli-js/compare/v4.0.0...v4.1.0) (2022-07-28)
656

757

CLI.md

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,26 @@ The command-line interface is invoked using the command `aecli`. Depending on wh
2828

2929
If you invoke `aecli` with no arguments, it shows basic usage:
3030
```
31-
$ ./aecli
32-
The command line client for the Aeternity blockchain
33-
34-
Usage:
35-
aecli [command]
36-
37-
Available Commands:
38-
chain Query the state of the chain
39-
config Print the configuration of the sdk
40-
help Help concerning any command
41-
inspect Inspect an object of the blockchain
42-
name A brief description of your command
43-
account Handle wallet operations
44-
contract Compile contracts
45-
crypto Crypto helpers
46-
47-
48-
Flags:
49-
-c, --config string config file to load (defaults to $HOME/.aeternity/config.yaml
50-
--debug enable debug
51-
-h, --help help for aecli
52-
--json print output in json format
53-
--version version for aecli
54-
-u, --epoch-url, show URL of epoch
55-
56-
Use "aecli [command] --help" for more information about a command.
31+
$ aecli
32+
Usage: aecli [options] [command]
33+
34+
Options:
35+
-V, --version output the version number
36+
-h, --help display help for command
37+
38+
Commands:
39+
chain Interact with the blockchain
40+
inspect Get information on transactions, blocks,...
41+
account Handle wallet operations
42+
contract Contract interactions
43+
name AENS system
44+
tx Transaction builder
45+
oracle Interact with oracles
46+
crypto Crypto helpers
47+
config [options] Print the current sdk configuration
48+
select-node [nodeUrl] Specify node to use in other commands
49+
select-compiler [compilerUrl] Specify compiler to use in other commands
50+
help [command] display help for command
5751
```
5852

5953
The general groupings of commands are:
@@ -64,7 +58,7 @@ The general groupings of commands are:
6458
- `name` allows interaction with the naming system.
6559
- `account` commands cover a set of functions which operate with a key pair, from transferring tokens to registering names and invoking smart contracts.
6660
- `oracle` allows you to interact with the oracles.
67-
- `contract` allows compiling the smart contracts.
61+
- `contract` allows deploying and calling the smart contracts.
6862

6963

7064
## The chain group
@@ -216,8 +210,8 @@ $ ./aecli.mjs name
216210

217211
Commands:
218212

219-
claim <wallet_path> <name> Claim a domain name
220-
revoke <wallet_path> <name> Revoke a domain name
213+
claim <wallet_path> <name> Claim an AENS name
214+
revoke <wallet_path> <name> Revoke an AENS name
221215
transfer <wallet_path> <name> <address> Transfer a name to another account
222216
update <wallet_path> <name> <address> Update a name pointer
223217

@@ -263,7 +257,7 @@ $ ./aecli.mjs contract
263257

264258
-H, --host [hostname] Node to connect to (default: https://localhost:3013)
265259
-T, --ttl [ttl] Validity of the transaction in number of blocks (default forever) (default: 50000)
266-
-f --force Ignore epoch version compatibility check
260+
-f --force Ignore node version compatibility check
267261
--json [json] Print result in json format
268262
-h, --help output usage information
269263

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,22 @@ You can install, use and work on this `CLI` tool, by following these instruction
4444
Usage: aecli [options] [command]
4545
4646
Options:
47-
-V, --version output the version number
48-
-h, --help output usage information
47+
-V, --version output the version number
48+
-h, --help display help for command
4949
5050
Commands:
51-
chain Interact with the blockchain
52-
inspect Get information on transactions, blocks,...
53-
account Handle wallet operations
54-
contract Compile contracts
55-
name AENS system
56-
crypto Crypto helpers
57-
help [cmd] display help for [cmd]
51+
chain Interact with the blockchain
52+
inspect Get information on transactions, blocks,...
53+
account Handle wallet operations
54+
contract Contract interactions
55+
name AENS system
56+
tx Transaction builder
57+
oracle Interact with oracles
58+
crypto Crypto helpers
59+
config [options] Print the current sdk configuration
60+
select-node [nodeUrl] Specify node to use in other commands
61+
select-compiler [compilerUrl] Specify compiler to use in other commands
62+
help [command] display help for command
5863
```
5964

6065
4. To read documentation of other commands and sub-commands, you can append `--help`. For example, type `bin/aecli.mjs account --help` to get a list of `account`'s available sub-commands.

babel.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ module.exports = {
77
],
88
plugins: [
99
['transform-inline-environment-variables', {
10-
include: ['npm_package_version'],
10+
include: ['npm_package_name', 'npm_package_version'],
1111
}],
1212
['add-import-extension', { extension: 'mjs' }],
13-
['module-resolver', {
14-
alias: {
15-
'@aeternity/aepp-sdk': '@aeternity/aepp-sdk/es/index.mjs',
16-
},
17-
}],
1813
],
1914
};

babel.tests.config.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,4 @@ module.exports = {
22
presets: [
33
['@babel/preset-env', { targets: { node: 'current' } }],
44
],
5-
plugins: [
6-
['transform-inline-environment-variables', {
7-
include: ['npm_package_version'],
8-
}],
9-
['module-resolver', {
10-
alias: {
11-
'@aeternity/aepp-sdk': (match) => (match[1] ? match.input : './test/mocks/sdk.js'),
12-
},
13-
}],
14-
],
155
};

docker/accounts_test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"ak_2dATVcZ9KJU5a8hdsVtTv21pYiGWiPbmVcU1Pz72FFqpk9pSRR": 100000000000001000000000000000000000
2+
"ak_2dATVcZ9KJU5a8hdsVtTv21pYiGWiPbmVcU1Pz72FFqpk9pSRR": 10000000000000001000000000000000000000
33
}

0 commit comments

Comments
 (0)