Skip to content

Commit 7d6b7a3

Browse files
committed
Format code using Prettier
1 parent 1feeaca commit 7d6b7a3

124 files changed

Lines changed: 1968 additions & 2383 deletions

File tree

Some content is hidden

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

.eslintrc.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"es2021": true,
66
"node": true
77
},
8-
"extends": [
9-
"airbnb-base"
10-
],
8+
"extends": ["airbnb-base"],
119
"parserOptions": {
1210
"ecmaVersion": 13
1311
},
@@ -19,9 +17,9 @@
1917
"curly": ["error", "all"],
2018
"padding-line-between-statements": [
2119
"error",
22-
{ "blankLine": "always", "prev": "*", "next": "block-like" },
23-
{ "blankLine": "always", "prev": "block-like", "next": "*" },
24-
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": "block-like"}
20+
{"blankLine": "always", "prev": "*", "next": "block-like"},
21+
{"blankLine": "always", "prev": "block-like", "next": "*"},
22+
{"blankLine": "any", "prev": ["const", "let", "var"], "next": "block-like"}
2523
],
2624
"no-negated-condition": "error",
2725
"no-else-return": "error",
@@ -43,6 +41,6 @@
4341
"no-plusplus": "off",
4442
"yoda": "off",
4543
"no-extra-semi": "off",
46-
"no-unused-vars": ["error", { "varsIgnorePattern": "^_.*$", "argsIgnorePattern": "^_.*$" }]
44+
"no-unused-vars": ["error", {"varsIgnorePattern": "^_.*$", "argsIgnorePattern": "^_.*$"}]
4745
}
4846
}

.github/release.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
changelog:
2-
exclude:
3-
labels:
4-
- release/ignore
5-
authors:
6-
- renovate
7-
categories:
8-
- title: Breaking Changes 🛠
9-
labels:
10-
- breaking
11-
- title: Exciting New Features 🎉
12-
labels:
13-
- feature
14-
- title: Bugfixes 🐞
15-
labels:
16-
- bug
17-
- title: Deprecated
18-
labels:
19-
- deprecation
20-
- title: Other Changes
21-
labels:
22-
- "*"
2+
exclude:
3+
labels:
4+
- release/ignore
5+
authors:
6+
- renovate
7+
categories:
8+
- title: Breaking Changes 🛠
9+
labels:
10+
- breaking
11+
- title: Exciting New Features 🎉
12+
labels:
13+
- feature
14+
- title: Bugfixes 🐞
15+
labels:
16+
- bug
17+
- title: Deprecated
18+
labels:
19+
- deprecation
20+
- title: Other Changes
21+
labels:
22+
- '*'

.github/workflows/main.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
name: Build, Test
22

33
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-22.04
12-
strategy:
13-
matrix:
14-
node-version: [20.x]
15-
steps:
16-
- uses: actions/checkout@v4
17-
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: ${{ matrix.node-version }}
21-
cache: npm
22-
- run: |
23-
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_24.3.3-1~ubuntu~focal_amd64.deb
24-
sudo apt install --allow-downgrades ./esl-erlang_24.3.3-1~ubuntu~focal_amd64.deb || true
25-
- run: npm config set fund false
26-
- run: make tests
27-
- run: make integration-tests
28-
- run: make lint
29-
benchmark:
30-
runs-on: ubuntu-22.04
31-
if: github.ref == 'refs/heads/master'
32-
strategy:
33-
matrix:
34-
node-version: [20.x]
35-
steps:
36-
- uses: actions/checkout@v4
37-
- name: Use Node.js ${{ matrix.node-version }}
38-
uses: actions/setup-node@v4
39-
with:
40-
node-version: ${{ matrix.node-version }}
41-
cache: npm
42-
- run: |
43-
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_24.3.3-1~ubuntu~focal_amd64.deb
44-
sudo apt install --allow-downgrades ./esl-erlang_24.3.3-1~ubuntu~focal_amd64.deb || true
45-
- run: npm config set fund false
46-
- run: make benchmark-tests
10+
build:
11+
runs-on: ubuntu-22.04
12+
strategy:
13+
matrix:
14+
node-version: [20.x]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
cache: npm
22+
- run: |
23+
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_24.3.3-1~ubuntu~focal_amd64.deb
24+
sudo apt install --allow-downgrades ./esl-erlang_24.3.3-1~ubuntu~focal_amd64.deb || true
25+
- run: npm config set fund false
26+
- run: make tests
27+
- run: make integration-tests
28+
- run: make lint
29+
benchmark:
30+
runs-on: ubuntu-22.04
31+
if: github.ref == 'refs/heads/master'
32+
strategy:
33+
matrix:
34+
node-version: [20.x]
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Use Node.js ${{ matrix.node-version }}
38+
uses: actions/setup-node@v4
39+
with:
40+
node-version: ${{ matrix.node-version }}
41+
cache: npm
42+
- run: |
43+
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_24.3.3-1~ubuntu~focal_amd64.deb
44+
sudo apt install --allow-downgrades ./esl-erlang_24.3.3-1~ubuntu~focal_amd64.deb || true
45+
- run: npm config set fund false
46+
- run: make benchmark-tests

.github/workflows/publish.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: Node.js Package
22
on:
3-
release:
4-
types: [created]
3+
release:
4+
types: [created]
55
jobs:
6-
build:
7-
runs-on: ubuntu-22.04
8-
steps:
9-
- uses: actions/checkout@v4
10-
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v4
12-
with:
13-
node-version: '20.x'
14-
registry-url: 'https://registry.npmjs.org'
15-
env:
16-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
17-
- run: npm config set fund false
18-
- run: npm install
19-
- run: npm publish --access public
6+
build:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- uses: actions/checkout@v4
10+
# Setup .npmrc file to publish to npm
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: '20.x'
14+
registry-url: 'https://registry.npmjs.org'
15+
env:
16+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
17+
- run: npm config set fund false
18+
- run: npm install
19+
- run: npm publish --access public

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in [Github Release](https://github.com/aeternity/aepp-calldata-js/releases) descriptions.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

78
## [Unreleased]
9+
810
### Security
11+
912
### Fixed
13+
1014
### Added
15+
1116
- Add support for `bytes()` arbitrary-sized type from FATE 3.
1217
- Add support for `AENSv2.pointee`, `AENSv2.name` types from FATE 3.
18+
1319
### Changed
20+
1421
### Deprecated
15-
### Removed
22+
23+
### Removed

CONTRIBUTING.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Contributing
1+
# Contributing
2+
23
We appreciate your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
34

45
- Reporting a bug
@@ -8,9 +9,11 @@ We appreciate your input! We want to make contributing to this project as easy a
89
- Becoming a maintainer
910

1011
## We Develop with Github
12+
1113
We use github to host code, to track issues and feature requests, as well as accept pull requests.
1214

1315
## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
16+
1417
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:
1518

1619
1. Fork the repo and create your branch from `master`.
@@ -22,6 +25,7 @@ Pull requests are the best way to propose changes to the codebase (we use [Githu
2225
7. Issue that pull request!
2326

2427
In general pull requests should:
28+
2529
- Only fix/add the functionality in question **OR** address wide-spread whitespace/style issues, not both.
2630
- Add unit or integration tests for fixed or changed functionality (if a test suite already exists).
2731
- Address a single concern in the least number of changed lines as possible.
@@ -30,9 +34,11 @@ In general pull requests should:
3034
For changes that address core functionality or would require breaking changes (e.g. a major release), it's best to open an Issue to discuss your proposal first. This is not required but can save time creating and reviewing changes.
3135

3236
## Any contributions you make will be under the ISC Software License
37+
3338
In short, when you submit code changes, your submissions are understood to be under the same [ISC License](https://choosealicense.com/licenses/isc/) that covers the project. Feel free to contact the maintainers if that's a concern.
3439

3540
## Report bugs using Github's issues
41+
3642
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/aeternity/aepp-calldata-js/issues); it's that easy!
3743

3844
## Write bug reports with detail, background, and sample code
@@ -41,20 +47,21 @@ We use GitHub issues to track public bugs. Report a bug by [opening a new issue]
4147

4248
- A quick summary and/or background
4349
- Steps to reproduce
44-
- Be specific!
45-
- Give sample code if you can.
50+
- Be specific!
51+
- Give sample code if you can.
4652
- What you expected would happen
4753
- What actually happens
4854
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
4955

50-
People *love* thorough bug reports. Badly reported issues and bug report might be closed without review.
56+
People _love_ thorough bug reports. Badly reported issues and bug report might be closed without review.
5157

5258
## Use a Consistent Coding Style
5359

54-
* 4 spaces for indentation rather than tabs
55-
* this library is using vanilla javascript
56-
* no complication/build phases are accepted
57-
* it must support recent major platforms and browsers according to [Can I Use](https://caniuse.com)
60+
- 4 spaces for indentation rather than tabs
61+
- this library is using vanilla javascript
62+
- no complication/build phases are accepted
63+
- it must support recent major platforms and browsers according to [Can I Use](https://caniuse.com)
5864

5965
## License
66+
6067
By contributing, you agree that your contributions will be licensed under its ISC License.

0 commit comments

Comments
 (0)