Skip to content

Commit

Permalink
Merge pull request #1971 from aeternity/release/13.3.0
Browse files Browse the repository at this point in the history
Release v13.3.0
  • Loading branch information
davidyuk authored Apr 9, 2024
2 parents 7126ad0 + 1ffaeff commit 1297791
Show file tree
Hide file tree
Showing 156 changed files with 8,930 additions and 5,148 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
10 changes: 5 additions & 5 deletions .github/workflows/docs-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: actions/cache@v3
python-version: 3.12
- uses: actions/cache@v4
with:
path: ~/.cache/pip3
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.npm
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: actions/cache@v3
python-version: 3.12
- uses: actions/cache@v4
with:
path: ~/.cache/pip3
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.npm
Expand Down
30 changes: 16 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Test & build
on: [pull_request]
on:
push:
branches: [master, develop]
pull_request:
jobs:
main:
runs-on: ubuntu-22.04
steps:
- run: |
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
sudo apt install --allow-downgrades ./esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 100
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: actions/cache@v3
node-version: 20.x
- uses: actions/cache@v4
with:
path: |
~/.npm
Expand All @@ -27,16 +30,15 @@ jobs:
BASE: ${{ github.event.pull_request.base.sha }}
run: npx commitlint --from $BASE --to $HEAD --verbose
- run: npm run lint
- run: docker-compose up -d
- name: Ensure that node is running
run: |
while [[ `curl -s -o /dev/null -w %{http_code} localhost:3013/api` != 200 ]]; do
sleep 0.2;
done
- run: npx nyc npm run test
# TODO: remove after merging https://github.com/aeternity/aeternity/pull/4319
- run: chmod 666 ./docker/accounts-pub.json
- run: docker compose up -d --wait
- run: npx nyc npm test
- run: npx nyc report --reporter=text-lcov > coverage.lcov
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
files: coverage.lcov
- run: docker-compose logs
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: docker compose logs
if: always()
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ coverage.*
site
/src/apis/
/src/tx/builder/schema.generated.ts
/src/tx/builder/delegation/schema.generated.ts
/tooling/autorest/compiler-swagger.yaml
/tooling/autorest/middleware-openapi.yaml
/test/environment/ledger/browser
Expand Down
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
require: 'tooling/babel-register.js',
recursive: true,
extension: '.js,.ts',
timeout: '40s',
timeout: process.env.NETWORK ? '500s' : '40s',
ignore: 'test/environment/**',
exit: true // TODO: fix in state channel tests
}
5 changes: 0 additions & 5 deletions .readthedocs.yml

This file was deleted.

3 changes: 0 additions & 3 deletions AUTHORS

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ISC License (ISC)
Copyright © 2022 aeternity developers
Copyright © 2024 aeternity developers

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ We keep our [Changelog](docs/CHANGELOG.md) up to date.
## License

ISC License (ISC)
Copyright © 2023 æternity developers
Copyright © 2024 æternity developers

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = {
'compiler',
'contract',
'middleware',
'docs', // TODO: remove after releasing 13.1.0
'deps',
'deps-dev',
'node',
Expand All @@ -24,4 +23,5 @@ module.exports = {
],
],
},
ignores: [(message) => /^Bumps \[.+]\(.+\) from .+ to .+\.$/m.test(message)],
};
38 changes: 30 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
version: '3'
services:
node:
image: aeternity/aeternity:v6.11.0
hostname: node
ports: ["3013:3013", "3113:3113", "3014:3014", "3114:3114"]
# TODO: switch to master after merging https://github.com/aeternity/aeternity/pull/4303
image: aeternity/aeternity:v6.13.0-bundle
# TODO: remove 3313 port after merging https://github.com/aeternity/aeternity/pull/4303
ports: [3013:3013, 3113:3113, 3014:3014, 3313:3313]
# TODO: remove after releasing https://github.com/aeternity/aeternity/pull/4292
healthcheck:
interval: 2s
volumes:
- ./docker/aeternity_node_mean16.yaml:/home/aeternity/node/aeternity.yaml
- ./docker/accounts_test.json:/home/aeternity/node/data/aecore/.genesis/accounts_test.json
- ./docker/aeternity.yaml:/home/aeternity/node/aeternity.yaml
- ./docker/accounts.json:/home/aeternity/node/data/aeplugin_dev_mode/devmode_prefunded_accounts.json
# TODO: remove after merging https://github.com/aeternity/aeternity/pull/4319
- ./docker/accounts-pub.json:/home/aeternity/node/data/aeplugin_dev_mode/devmode_prefunded_accounts-PUB.json
stop_grace_period: 0s

emitter:
build: test/emitter
depends_on:
node:
condition: service_healthy

compiler:
image: aeternity/aesophia_http:v7.4.0
hostname: compiler
ports: ["3080:3080"]
image: aeternity/aesophia_http:v8.0.0-rc1
ports: [3080:3080]
# TODO: remove after releasing https://github.com/aeternity/aesophia_http/pull/133
healthcheck:
interval: 2s

compiler-7:
image: aeternity/aesophia_http:v7.6.1
ports: [3081:3080]
# TODO: remove after releasing https://github.com/aeternity/aesophia_http/pull/133
healthcheck:
interval: 2s
1 change: 1 addition & 0 deletions docker/accounts-pub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E":10000000000000000000000}
6 changes: 6 additions & 0 deletions docker/accounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[{
"pub_key": "ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E",
"initial_balance": 10000000000000000000000,
"// TODO: encode using base58 after fixing": "https://github.com/aeternity/aeplugin_dev_mode/issues/32",
"priv_key": "sk_nr177aDHmvcqQuzjghpW7/FjWbbfN2zwSa7plVZfAi+hhfna"
}]
3 changes: 0 additions & 3 deletions docker/accounts_test.json

This file was deleted.

24 changes: 24 additions & 0 deletions docker/aeternity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# yaml-language-server: $schema=https://github.com/aeternity/aeternity/raw/master/apps/aeutils/priv/aeternity_config_schema.json

system:
dev_mode: true
plugins:
# TODO: remove after merging https://github.com/aeternity/aeternity/pull/4303
- name: aeplugin_dev_mode

http:
internal:
debug_endpoints: true
listen_address: 0.0.0.0
endpoints:
dry-run: true

websocket:
channel:
listen_address: 0.0.0.0

chain:
persist: false
hard_forks:
"1": 0
"6": 1
38 changes: 0 additions & 38 deletions docker/aeternity_node_mean16.yaml

This file was deleted.

47 changes: 47 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,53 @@

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.

## [13.3.0](https://github.com/aeternity/aepp-sdk-js/compare/v13.2.2...v13.3.0) (2024-04-08)


### ⚠ Ceres and aehopsia@8 compatibility not stable, since they are not officially released yet

### Features

* accept multiple encodings in `isAddressValid`, add TS asserts ([2c21139](https://github.com/aeternity/aepp-sdk-js/commit/2c211399df3232e1830ead946ab49e971f4af70b))
* add `getContext` method to AeSdk ([04508d0](https://github.com/aeternity/aepp-sdk-js/commit/04508d0df67f111c627144381a30d087e314873f))
* **aens:** support update with raw pointers ([db2659a](https://github.com/aeternity/aepp-sdk-js/commit/db2659a30ed9a076387d4efbddfa4d6efd85bee3))
* **aepp,wallet:** allow raw data sign ([7d0136d](https://github.com/aeternity/aepp-sdk-js/commit/7d0136d24d0949faec1047c1e1449727c753a160))
* **chain:** add `cache` option to `getHeight` ([c7d0955](https://github.com/aeternity/aepp-sdk-js/commit/c7d09555632826d9eff62197c2708d14b870c68f))
* **compiler:** add CompilerCli8 class ([29f1cd3](https://github.com/aeternity/aepp-sdk-js/commit/29f1cd3549af63cd88b83853d50c572bdc7feef8))
* **compiler:** provide compilation warnings ([d0ec012](https://github.com/aeternity/aepp-sdk-js/commit/d0ec0121ac6e82f44f55809190d46b92048435e5))
* **compiler:** update cli and http compilers to 7.4.0 ([2041d8b](https://github.com/aeternity/aepp-sdk-js/commit/2041d8bcba9b8ef118b439a59526843d50c2f75f))
* **contract:** resolve names on node side in Ceres ([474f0fd](https://github.com/aeternity/aepp-sdk-js/commit/474f0fde0e209696aab4348e1bd67d893e33d6f4))
* **contract:** support all names delegation to contract ([92dae86](https://github.com/aeternity/aepp-sdk-js/commit/92dae869cf6d2483ffbe849f431d111d71c2f3ea))
* jwt utilities ([c747ce6](https://github.com/aeternity/aepp-sdk-js/commit/c747ce66e2c13925bb2eee36418bc88b44aa8bd5))
* **node:** add param indicating retry ([6f0dbd8](https://github.com/aeternity/aepp-sdk-js/commit/6f0dbd8dbd437b0c280983576788493009a09127))
* **node:** show error code if available ([2cce91d](https://github.com/aeternity/aepp-sdk-js/commit/2cce91dba7a7e474c55b5efa86b0618316701bbb))
* spend to payable contract ([7621716](https://github.com/aeternity/aepp-sdk-js/commit/76217161be62999bd091e76c10f67606c88e4c9b))
* support new delegation format in Ceres ([786e954](https://github.com/aeternity/aepp-sdk-js/commit/786e954d4a0149d1647271bcaadc69bb250c357a))
* **tx-builder:** get actual gas price from node ([09d19bf](https://github.com/aeternity/aepp-sdk-js/commit/09d19bff34ef5212dfa48bfe5c18bd28fd07be99))
* **tx-builder:** pick `queryFee` from the node if not provided ([ca495c8](https://github.com/aeternity/aepp-sdk-js/commit/ca495c810352f5aa6a4f17fba136ccbee7297b7e))
* **tx-builder:** reject used accounts in GaAttachTx in Ceres ([88b1d5d](https://github.com/aeternity/aepp-sdk-js/commit/88b1d5dfc626940983d854f2dd344ad231037ed3))
* **tx-builder:** validate `nameTtl` in NameUpdateTx ([bca877e](https://github.com/aeternity/aepp-sdk-js/commit/bca877efa76ed0eb9e0c3b6c60bcbcad3c0d9008))


### Bug Fixes

* **aens:** make `extendTtl` argument optional ([028876f](https://github.com/aeternity/aepp-sdk-js/commit/028876fb79d2dd5eb2b9d96336b068900db1f837))
* **aens:** reduce default client ttl to one hour ([daf7fa0](https://github.com/aeternity/aepp-sdk-js/commit/daf7fa0d9306f75f4d5305b26ed6a4aba98e0435))
* **chain:** poll till ttl if defined to ensure tx can't be mined ([0751244](https://github.com/aeternity/aepp-sdk-js/commit/0751244c9f7df75bdd7009d878c9235cdabcc796))
* **contract:** build address by signed tx ([60a283b](https://github.com/aeternity/aepp-sdk-js/commit/60a283bdb745b15902dc615fdaaf0eed55429ca1))
* **contract:** don't duplicate NoSuchContractFunctionError message ([2f3bba5](https://github.com/aeternity/aepp-sdk-js/commit/2f3bba529d7abd5a3da90e085b38faf74f1d4cea))
* improve error message when no wrapped value ([054bc89](https://github.com/aeternity/aepp-sdk-js/commit/054bc89b940cacdeae1f804153ef39c3fa1e0026))
* **node,middleware,compiler:** version check if deployed at path ([450296e](https://github.com/aeternity/aepp-sdk-js/commit/450296e7f275e9cec3af2c76a50af201b1929dd6))
* **node,middleware:** remove duplicate retry policy ([f6470a2](https://github.com/aeternity/aepp-sdk-js/commit/f6470a21a211c7655ff07f7853b92447a29ea262))
* **node:** add missed conversion of `difficulty` and `hashrate` to number ([271ff5e](https://github.com/aeternity/aepp-sdk-js/commit/271ff5ef53b217f7c490fcc63d83a88ffbb858cd))
* **node:** don't remember failed version request ([fba0e79](https://github.com/aeternity/aepp-sdk-js/commit/fba0e79800e86f7774978f60f7113b1797213751))
* **node:** show correct error message if body is missed ([ed10482](https://github.com/aeternity/aepp-sdk-js/commit/ed10482d3641c64a4af8374d7000b8f4a467d55c))
* **node:** show correct error message if ECONNREFUSED ([ef347a1](https://github.com/aeternity/aepp-sdk-js/commit/ef347a16e9ceebc405e878af28d3198e312eb309))
* **tx-builder:** don't accept ttl equal to block height ([d9cde12](https://github.com/aeternity/aepp-sdk-js/commit/d9cde12f50cd3530d74338fe500c622b27bcbbb9))
* **tx-builder:** don't estimate gas for non-transactions ([f72167a](https://github.com/aeternity/aepp-sdk-js/commit/f72167a8b1d79a54de37c016fb87c55ff4c12da5))
* **tx-builder:** limit ttl to 3 in case tx built internally ([08d14c2](https://github.com/aeternity/aepp-sdk-js/commit/08d14c2d50c480ccc25f2dc67b0a09d1487c35bb))
* **tx-builder:** remove invalid oracle tx type in validator ([78e7c48](https://github.com/aeternity/aepp-sdk-js/commit/78e7c488b7e826946b426fbb0ed83366091bdbdd))

## [13.2.2](https://github.com/aeternity/aepp-sdk-js/compare/v13.2.1...v13.2.2) (2023-09-20)


Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ root variable, to don't make it reactive in deep. You can find it implementation
[not compatible]: https://github.com/tc39/proposal-class-fields/issues/106
[shallowRef]: https://vuejs.org/api/reactivity-advanced.html#shallowref
[shallowReactive]: https://vuejs.org/api/reactivity-advanced.html#shallowreactive
[æpp example]: ../examples/browser/aepp/
[æpp example]: https://github.com/aeternity/aepp-sdk-js/tree/71da12b5df56b41f7317d1fb064e44e8ea118d6c/examples/browser/aepp

## Command Line Interface (CLI)
If you don't need to include specific functionality into your application and just want to use or play around with features the SDK provides you can make use of the [💻 CLI](https://github.com/aeternity/aepp-cli-js) and follow the instructions mentioned there.
6 changes: 0 additions & 6 deletions docs/conda.yml

This file was deleted.

Loading

0 comments on commit 1297791

Please sign in to comment.