Skip to content

Commit 213abc3

Browse files
authored
Merge pull request #1249 from aeternity/release/v9.0.0
2 parents c3b1f25 + 6618086 commit 213abc3

File tree

94 files changed

+17828
-3370
lines changed

Some content is hidden

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

94 files changed

+17828
-3370
lines changed

.github/workflows/docs-develop.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish develop docs
2+
on:
3+
push:
4+
branches: ['develop']
5+
6+
jobs:
7+
main:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.8
16+
- uses: actions/cache@v2
17+
with:
18+
path: ~/.cache/pip3
19+
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
20+
- run: pip3 install -r docs/requirements.txt
21+
- run: git config --global user.email "[email protected]"
22+
- run: git config --global user.name "GitHub Action"
23+
- run: mike deploy --push develop

.github/workflows/docs-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish release docs
2+
on:
3+
release:
4+
types: [released]
5+
6+
jobs:
7+
main:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.8
16+
- uses: actions/cache@v2
17+
with:
18+
path: ~/.cache/pip3
19+
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
20+
- run: pip3 install -r docs/requirements.txt
21+
- run: git config --global user.email "[email protected]"
22+
- run: git config --global user.name "GitHub Action"
23+
- run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
24+
- run: mike deploy --push --update-aliases $RELEASE_VERSION latest

.github/workflows/main.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ jobs:
2727
- run: npm run build
2828
- run: npm run test:unit
2929

30-
- uses: actions/setup-python@v2
31-
with:
32-
python-version: 3.8
33-
- uses: actions/cache@v2
34-
with:
35-
path: ~/.cache/pip3
36-
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
37-
- run: pip3 install -r docs/requirements.txt
38-
- run: mkdocs build
39-
4030
- run: docker-compose up -d
4131
- name: Ensure that node is running
4232
run: |
@@ -50,10 +40,4 @@ jobs:
5040
- run: npm run report-coverage
5141
if: always()
5242
- run: docker-compose logs
53-
if: always()
54-
55-
- uses: peaceiris/actions-gh-pages@v3
56-
if: github.ref == 'refs/heads/master'
57-
with:
58-
github_token: ${{ secrets.GITHUB_TOKEN }}
59-
publish_dir: docs
43+
if: always()

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ node_modules
55
.dir-locals.el
66
/dist
77
/es
8-
/docs/api*
8+
/docs/api.md
9+
/docs/api/*
910
/docs/examples
11+
/docs/public
12+
/docs/docco.css
13+
/docs/CHANGELOG.md
1014
__pycache__
1115
/.envrc
1216
/yarn-error.log
@@ -22,3 +26,4 @@ coverage.*
2226
/examples/**/dist
2327
.history
2428
.site
29+
site

CHANGELOG.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,45 @@
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+
## [9.0.0](https://github.com/aeternity/aepp-sdk-js/compare/v8.2.1...v9.0.0) (2021-09-27)
6+
7+
### ⚠ BREAKING CHANGES
8+
9+
* refactor aens & oracle delegation signature methods to accept parameters as objects
10+
* merge aens signature delegation methods into a single implementation
11+
* change t
12+
* drop `waitMined` static method
13+
* drop `assertedType`, use `decode` instead
14+
* **validator:** recursive validator, simplify schema
15+
* simplify buildTxHash helper
16+
* enable verification in deep props instead of extra variable
17+
18+
### Features
19+
20+
* `payForTransaction` method ([fbf204d](https://github.com/aeternity/aepp-sdk-js/commit/fbf204dd2ba333551327adce579b9f9d9edc601b))
21+
22+
23+
### Bug Fixes
24+
25+
* **AENS:** name length minimum bid fee ([db6ca4c](https://github.com/aeternity/aepp-sdk-js/commit/db6ca4c3d89eedf7fa326bd6d0484ea0d94de19e))
26+
* **delegate-signature:** stop using the default account in the contex for signing ([29d760e](https://github.com/aeternity/aepp-sdk-js/commit/29d760ef04591cd9a745a508ff4dfbb8859c347a))
27+
* **deposit-trap:** enforce zero value for `deposit` during contract deploy ([cfb5f22](https://github.com/aeternity/aepp-sdk-js/commit/cfb5f2263316f0f70290cb174c1d334cf49c6db3))
28+
* **mustAccountStamp:** process accounts only if supplied ([10ec2c3](https://github.com/aeternity/aepp-sdk-js/commit/10ec2c37f6f35516023cace435bdde6294786ed7))
29+
* **payingFor:** don't check is GA if innerTx ([0ee9db4](https://github.com/aeternity/aepp-sdk-js/commit/0ee9db4b7e1cbab5b874bee56b5bf8814610b913))
30+
* **payingFor:** don't sent to blockchain if innerTx ([523e9bb](https://github.com/aeternity/aepp-sdk-js/commit/523e9bbd62a506efd8a9d50317bcf3980052948e))
31+
* swagger https issue ([3a876bb](https://github.com/aeternity/aepp-sdk-js/commit/3a876bbb80300cbf91891daa642f6daee61c1427))
32+
* **tx serialisation:** accept unpackTx output produced by deserialisator ([ff0b3f5](https://github.com/aeternity/aepp-sdk-js/commit/ff0b3f551f7cf0684ac9c8e528d94eae9c31f226))
33+
* **validator:** recursive validator, simplify schema ([95a2a23](https://github.com/aeternity/aepp-sdk-js/commit/95a2a232f3fd8b875b223e352445b045a7217dad))
34+
35+
36+
* change t ([831e4dd](https://github.com/aeternity/aepp-sdk-js/commit/831e4dde12a78583d1a567fdc5a9ef86518d5fe6))
37+
* drop `assertedType`, use `decode` instead ([00d563f](https://github.com/aeternity/aepp-sdk-js/commit/00d563feca871e2c9474df667696946d1c8d12c7))
38+
* drop `waitMined` static method ([2f299de](https://github.com/aeternity/aepp-sdk-js/commit/2f299de2c985ce2619db10e4a264f7e6d1b7279c))
39+
* enable verification in deep props instead of extra variable ([989b36f](https://github.com/aeternity/aepp-sdk-js/commit/989b36f28e9649fd74b384f2a16bf8fd64bac85c))
40+
* merge aens signature delegation methods into a single implementation ([456fe00](https://github.com/aeternity/aepp-sdk-js/commit/456fe00cb8b8eba09ea53800e8713550d0f329cc))
41+
* merge oracle delegation signature methods ([88b7bf3](https://github.com/aeternity/aepp-sdk-js/commit/88b7bf3aa55b3740c9a64fb4049abcc0fdd3b277))
42+
* simplify buildTxHash helper ([9e1fde7](https://github.com/aeternity/aepp-sdk-js/commit/9e1fde7693986359a9ac0ff80829dbc058882f7b))
43+
544
### [8.2.1](https://github.com/aeternity/aepp-sdk-js/compare/v8.2.0...v8.2.1) (2021-06-21)
645

746

@@ -439,13 +478,13 @@ This stamp give more flexibility on transaction serialization/deserialization pr
439478

440479
### Docs
441480

442-
* **Guide** [Add 7.0.0 migration guide](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/migration/migration-7.0.0.md)
481+
* **Guide** [Add 7.0.0 migration guide](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/migration/7.0.0.md)
443482
* **Guide:** Add [Oracle](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/oracle-usage.md), [AENS](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/aens-usage.md) and [Contract](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/contract-aci-usage.md) guides
444483

445484

446485
### BREAKING CHANGES
447486

448-
Please check out [7.0.0 migration guide](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/migration/migration-7.0.0.md)
487+
Please check out [7.0.0 migration guide](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/migration/7.0.0.md)
449488

450489
This release include all changes from [7.0.0-next.1](https://github.com/aeternity/aepp-sdk-js/releases/tag/7.0.0-next.1), [7.0.0-next.2](https://github.com/aeternity/aepp-sdk-js/releases/tag/7.0.0-next.2), [7.0.0-next.3](https://github.com/aeternity/aepp-sdk-js/releases/tag/7.0.0-next.3)
451490

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Æternity](https://aeternity.com/)'s JavaScript SDK
1+
# [æternity](https://aeternity.com/)'s JavaScript SDK
22

33
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/aeternity/aepp-sdk-js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/aeternity/aepp-sdk-js/context:javascript)
44
[![codecov](https://codecov.io/gh/aeternity/aepp-sdk-js/branch/develop/graph/badge.svg)](https://codecov.io/gh/aeternity/aepp-sdk-js)
@@ -18,31 +18,38 @@ JavaScript SDK for the revolutionary [æternity] blockchain, targeting the
1818

1919
## Guides & Examples
2020

21-
Check out our [Quick Start guide](docs/guides/quick-start.md), [Documentation](docs/README.md), and [Examples](examples/README.md).
21+
Introduction
22+
- [Installation](docs/index.md)
23+
- [Quick Start](docs/quick-start.md)
24+
25+
Usage guides:
26+
- [æternity naming system](docs/guides/aens.md)
27+
- [Contracts](docs/guides/contracts.md)
28+
- [Contract events](docs/guides/contract-events.md)
29+
- [Oracles](docs/guides/oracles.md)
30+
- [Low vs High level API](docs/guides/low-vs-high-usage.md)
31+
32+
There are also [examples](examples/README.md) that you can directly use and play with.
2233

2334
## CLI - Command Line Client
2435

25-
To quickly test _all_ of Aeternity's blockchain features from your Terminal, you can Install and use our **NodeJS [CLI](https://github.com/aeternity/aepp-cli-js)** by running:
36+
To quickly test _all_ of æternity's blockchain features from your terminal, you can install and use our **NodeJS [CLI](https://github.com/aeternity/aepp-cli-js)** by running:
2637

2738
1. `npm i -g @aeternity/aepp-cli` to globally install the CLI
2839
2. `aecli --help` to get a list of possible commands
2940

30-
_eg._ Create an Account:
31-
32-
`aecli account create testWhateverAccountName`
33-
3441
## Contributing
3542

3643
For advanced use, to get a deeper understanding of the SDK or to contribute to its development, it is advised to read the [Contributing Guidelines](docs/contrib/README.md) section.
3744

38-
## Change Log
45+
## Changelog
3946

4047
We keep our [Changelog](CHANGELOG.md) up to date.
4148

4249
## License
4350

4451
ISC License (ISC)
45-
Copyright © 2018 aeternity developers
52+
Copyright © 2018 æternity developers
4653

4754
Permission to use, copy, modify, and/or distribute this software for any purpose
4855
with or without fee is hereby granted, provided that the above copyright notice

docs/README.md

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

docs/api-reference.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# API Reference
2+
3+
We currently don't provide the API reference in this documentation anymore as it confused many people more than it helped them. The main reason for that is that the SDK is making heavy use of [Stamps](https://stampit.js.org/essentials/what-is-a-stamp) and there is just no proper way to document this in e.g. JSDoc right now.
4+
5+
However, there is a plan to get rid of Stamps and introduce TypeScript. Once the foundation is laid and it makes sense to publish the API reference this will be done. Until then you are better off taking a look into the [sourcecode](https://github.com/aeternity/aepp-sdk-js/tree/master/src) directly in case you face any uncertainties how to use functions!
6+
7+
If you want to help with the transition to TypeScript let us know! :-)

docs/contrib/README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing Info
1+
# Development
22

33
## Principles
44

@@ -22,10 +22,10 @@ It uses the following Javascript technologies and principles:
2222
- Convention over configuration
2323
- "Easy things should be easy, and hard things should be possible." [source] -- [Larry Wall]
2424
- Support for
25-
- module access, enabling tree-shaking
26-
- direct use in node scripts through bundling
27-
- direct use in browser `<script>` tags through bundling
28-
- bundling through webpack
25+
- module access, enabling tree-shaking
26+
- direct use in node scripts through bundling
27+
- direct use in browser `<script>` tags through bundling
28+
- bundling through webpack
2929

3030
[Node's Swagger file]: https://github.com/aeternity/aeternity/blob/master/config/swagger.yaml
3131
[stampit]: http://stampit.js.org/
@@ -46,7 +46,7 @@ It uses the following Javascript technologies and principles:
4646

4747
## Requirements
4848

49-
aepp-sdk is transpiled to EcmaScript 5 through [WebPack](https://webpack.js.org/), using [Babel](https://babeljs.io/) and is expected to work in any sufficiently new version of [Node.js](https://nodejs.org/en/) (`>= 8.11`) or modern web browser.
49+
aepp-sdk is transpiled to EcmaScript 5 through [WebPack](https://webpack.js.org/), using [Babel](https://babeljs.io/) and is expected to work in any sufficiently new version of [Node.js](https://nodejs.org/en/) (`>= v12.17`) or modern web browser.
5050

5151
## Contributing
5252

@@ -56,11 +56,11 @@ aepp-sdk is transpiled to EcmaScript 5 through [WebPack](https://webpack.js.org/
5656

5757
## Documenting
5858

59-
Apart from documenting features and code, there is also documentation automatically generated using [**jsdoc**](http://usejsdoc.org/) for documenting JS files (later transformed in to `.md` files (to have them readable in platforms like GitHub) and [**docco**](http://ashkenas.com/docco/) for documenting examples and code partials.
59+
Apart from documenting features and code, there is also documentation automatically generated using [**jsdoc**](http://usejsdoc.org/) for documenting JS files (later transformed in to `.md` files (to have them readable in platforms like GitHub) and [a script](https://github.com/aeternity/aepp-sdk-js/blob/master/tooling/docs/examples-to-md.js) for documenting examples and code partials.
6060

6161
```bash
62-
#generate documentation with docco + jsdoc (and markdownify jsdoc)
63-
npm run docs:docco && npm run docs:api
62+
#generate examples and api documentation
63+
npm run docs:examples && npm run docs:api
6464
```
6565

6666
## Building
@@ -80,7 +80,7 @@ To test, launch the `test` command. This will run [mocha](https://mochajs.org/)'
8080
pnpm run test
8181
```
8282

83-
This repository also includes a docker-compose file, to allow you to **run your own aeternity node locally**. If you want to do so, **from the root of the project**:
83+
This repository also includes a docker-compose file, to allow you to **run your own æternity node locally**. If you want to do so, **from the root of the project**:
8484

8585
1. Create a _**docker-compose.override.yml**_ file with this content:
8686
```yaml
@@ -94,7 +94,7 @@ services:
9494
- 3001:3001
9595
```
9696
2. Run `docker-compose up node`
97-
3. Congrats! you're now running your own aeternity node locally.
97+
3. Congrats! you're now running your own æternity node locally.
9898

9999

100100
## Composing new Flavors
@@ -135,8 +135,3 @@ In order to add a local development version of aepp-sdk to a project, `npm link`
135135
## Releasing
136136

137137
[How to release a new version](releases.md)
138-
139-
140-
## Guides
141-
142-
If you're interested in getting sample code/guide, you can check out the [Guides](../README.md)

docs/contrib/releases.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,19 @@ On the release branch, remove the `next` portion of the `version`
4646
string in `package.json`.
4747

4848
Execute `npm run release` to automatically
49-
- update [change log file]
49+
5050
- bump version number in package.json and package-lock.json (according to
5151
[Semantic Versioning])
52-
- output changes to CHANGELOG.md
52+
- output changes to [CHANGELOG.md]
5353
- commit package-lock.json and package.json and CHANGELOG.md
5454

5555
Next, `git diff` the release, branch a `release/vX.X.X` (where `vX.X.X` is your
5656
latest release) against `master` and validate that all changes are covered in
57-
the changelog. You can find more instructions on how to maintain a CHANGELOG:
58-
[here](http://keepachangelog.com).
57+
the changelog. You can find more instructions on how to maintain a CHANGELOG here:
58+
59+
- [https://keepachangelog.com](https://keepachangelog.com)
5960

60-
[change log file]: ../CHANGELOG.md
61+
[CHANGELOG.md]: ../CHANGELOG.md
6162
[Semantic Versioning]: https://semver.org
6263

6364
## PR against `master`

0 commit comments

Comments
 (0)