Skip to content

Commit 6bdaa9c

Browse files
authored
Merge pull request #833 from aeternity/release/7.0.0-next.1
Release 7.0.0-next.1
2 parents 178b662 + f0d0f4f commit 6bdaa9c

File tree

114 files changed

+14796
-4644
lines changed

Some content is hidden

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

114 files changed

+14796
-4644
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
TAG=v5.2.0
1+
NODE_TAG=v5.2.0
22
COMPILER_TAG=v4.1.0

.github/ISSUE_TEMPLATE.md

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Please tell us about your environment:**
27+
28+
- Node Version: v0.0.0
29+
- Protocol Version: 1
30+
- Compiler version: v0.0.0
31+
- VM Version: aevm | fate
32+
- SDK Version: v0.0.0
33+
- Python version: v3.7.0
34+
35+
**Other information** (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. forum, telegram, etc)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: feature
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ node_modules
1111
/pnpm-debug.log
1212
.vscode/
1313
debug/
14+
/coverage
15+
coverage.*
16+
.nyc_output/

.travis.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
branches:
2+
only:
3+
- master
4+
- develop
5+
6+
dist: xenial
7+
8+
addons:
9+
apt:
10+
packages:
11+
- build-essential
12+
- curl
13+
- libltdl7
14+
- git
15+
16+
services:
17+
- docker
18+
19+
language: node_js
20+
node_js: '10'
21+
22+
cache:
23+
timeout: 604800 # 7 days
24+
directories:
25+
- "$HOME/.npm"
26+
27+
env:
28+
global:
29+
- TEST_NODE=http://localhost:3013
30+
- TEST_URL=http://localhost:3013
31+
- TEST_DEBUG_URL=http://localhost:3113
32+
- TEST_WS_URL=ws://localhost:3014/channel
33+
- TEST_NETWORK_ID=ae_devnet
34+
- COMPILER_URL=http://localhost:3080
35+
- FORCE_COMPATIBILITY=false
36+
37+
before_install:
38+
- docker-compose up -d node compiler
39+
40+
install:
41+
- npm ci
42+
43+
jobs:
44+
include:
45+
- stage: Tests
46+
if: type != "cron"
47+
name: Test AENS
48+
script:
49+
- npm run test-aens
50+
- npm run report-coverage
51+
- stage: Tests
52+
if: type != "cron"
53+
name: Test Channel
54+
script:
55+
- npm run test-channel
56+
- npm run report-coverage
57+
- stage: Tests
58+
if: type != "cron"
59+
name: Test Contract, Node, Oracle, Account and else
60+
script:
61+
- npm run test-else
62+
- npm run report-coverage
63+
- stage: Tests
64+
if: type = "cron"
65+
env:
66+
- NODE_TAG=master
67+
- COMPILER_TAG=latest
68+
- FORCE_COMPATIBILITY=true
69+
script:
70+
- npm run test
71+
- npm run report-coverage

CHANGELOG.md

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
# [7.0.0-next.1](https://github.com/aeternity/aepp-sdk-js/compare/6.0.1...7.0.0-next.1) (2019-12-18)
2+
3+
4+
### Bug Fixes
5+
6+
* **Contract/Chain:** Using { waitMined: false } with Contract high lvl API ([#828](https://github.com/aeternity/aepp-sdk-js/issues/828)) ([475c2aa](https://github.com/aeternity/aepp-sdk-js/commit/475c2aa))
7+
* **HdWallet:** Fix derive function ([#801](https://github.com/aeternity/aepp-sdk-js/issues/801)) ([6c6177d](https://github.com/aeternity/aepp-sdk-js/commit/6c6177d))
8+
* **Compiler:** Filter compiler options
9+
10+
11+
### Code Refactoring
12+
13+
* **Cross-Node:** Remove cross-node compatibility code ([#829](https://github.com/aeternity/aepp-sdk-js/issues/829)) ([b29a162](https://github.com/aeternity/aepp-sdk-js/commit/b29a162))
14+
* **Chain:** Handle time until tx is not added to mempool ([#816](https://github.com/aeternity/aepp-sdk-js/pull/816))
15+
* **Git:** Update issue template([#806](https://github.com/aeternity/aepp-sdk-js/pull/806))
16+
* **Flavors:** Remove deprecated code ([#697](https://github.com/aeternity/aepp-sdk-js/pull/697))
17+
* **Test:** Increase code covarage ([#830](https://github.com/aeternity/aepp-sdk-js/issues/830)) ([6f760fb](https://github.com/aeternity/aepp-sdk-js/commit/6f760fb))
18+
19+
### Features
20+
21+
* **Wallet<->AEPP:** Add new Wallet<->Aepp communication API
22+
>Add two new stamps `RpcWallet` and `RpcAepp`
23+
>Example of usage you can find heere: [Aepp example](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/how-to-build-aepp-using-new-wallet-api.md) and [Wallet example](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/how-to-build-an-wallet-app-or-extension.md)
24+
25+
* **Wallet:** Use `postMessage` for communication with extension wall… ([#815](https://github.com/aeternity/aepp-sdk-js/issues/815)) ([dc7b4c2](https://github.com/aeternity/aepp-sdk-js/commit/dc7b4c2))
26+
* **CI:** Move to Travis CI ([#809](https://github.com/aeternity/aepp-sdk-js/issues/809)) ([2d77f20](https://github.com/aeternity/aepp-sdk-js/commit/2d77f20))
27+
* **CI:** enable daily builds on latest node and compiler and enable codecov ([#820](https://github.com/aeternity/aepp-sdk-js/issues/820)) ([3c52a1e](https://github.com/aeternity/aepp-sdk-js/commit/3c52a1e))
28+
* **ACI:** Add check for contract address validity and existence. Add `forceCodeCheck` option for bytecode verification skip ([#788](https://github.com/aeternity/aepp-sdk-js/issues/788)) ([c0cccc9](https://github.com/aeternity/aepp-sdk-js/commit/c0cccc9))
29+
* **Contract:** Add ability to pass arguments or callData for contract `deploy/call/callStatic` API ([#768](https://github.com/aeternity/aepp-sdk-js/issues/768)) ([a828076](https://github.com/aeternity/aepp-sdk-js/commit/a828076))
30+
* **Contract:** Adjust `fee` calculation for `contractCall` tx using `FATE` backend ([#793](https://github.com/aeternity/aepp-sdk-js/issues/793)) ([7254ac1](https://github.com/aeternity/aepp-sdk-js/commit/7254ac1))
31+
* **Compiler:** Add new API `validateByteCodeAPI` available on compiler >= 4.1.0 ([#788](https://github.com/aeternity/aepp-sdk-js/issues/788)) ([c0cccc9](https://github.com/aeternity/aepp-sdk-js/commit/c0cccc9))
32+
* **Tx:** Always verify transaction before send it to the node ([#798](https://github.com/aeternity/aepp-sdk-js/issues/798)) ([170f479](https://github.com/aeternity/aepp-sdk-js/commit/170f479))
33+
34+
35+
### BREAKING CHANGES
36+
37+
* **Tx:** By default `sdk` make a transaction `verification`
38+
* **Node:** Change node compatibility range to `node >= 5.0.0 && node < 6.0.0`
39+
* **Compiler:** Drop compiler version to `version >= 4.0.0 && version < 5.0.0`
40+
* **ACI:** Add additional method to RPC communication. Required sdk update on wallet side
41+
Add `getContractByteCode` API
42+
* **Flavor:** Remove deprecated params:
43+
- remove `url` and `internalUrl` instead use `nodes: [ { name: 'NODE_NAME', instance: await Node({ url, internalUrl }) } ]`
44+
- remove `keypair` params instead use `accounts: [MemmoryAccount({ keypair })]`
45+
- remove `setKeypair` function from `Account` stamps
46+
47+
148
## [6.1.3](https://github.com/aeternity/aepp-sdk-js/compare/6.1.2...6.1.3) (2019-12-11)
249

350

@@ -75,13 +122,6 @@
75122

76123

77124

78-
79-
80-
81-
82-
83-
84-
85125
# [6.0.0](https://github.com/aeternity/aepp-sdk-js/compare/4.7.0...6.0.0) (2019-10-16)
86126

87127

Dockerfile.ci

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

Jenkinsfile

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

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# [Æternity](https://aeternity.com/)'s Javascript SDK
22

3+
[![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)
34
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
4-
[![Build Status](https://ci.aepps.com/buildStatus/icon?job=aepp-sdk-js/develop)](https://ci.aepps.com/job/aepp-sdk-js/job/develop/)
5+
[![Build Status](https://travis-ci.com/aeternity/aepp-sdk-js.svg?branch=develop)](http://travis-ci.com/aeternity/aepp-sdk-js?branch=develop)
56
[![npm](https://img.shields.io/npm/v/@aeternity/aepp-sdk.svg)](https://www.npmjs.com/package/@aeternity/aepp-sdk)
67
[![npm](https://img.shields.io/npm/l/@aeternity/aepp-sdk.svg)](https://www.npmjs.com/package/@aeternity/aepp-sdk) [![Greenkeeper badge](https://badges.greenkeeper.io/aeternity/aepp-sdk-js.svg)](https://greenkeeper.io/)
78

@@ -115,18 +116,11 @@ Promise.all([
115116
Node({ url, internalUrl })
116117
]).then(nodes => {
117118
Ae({
118-
// This two params deprecated and will be remove in next major release
119-
url: 'https://sdk-testnet.aepps.com',
120-
internalUrl: 'https://sdk-testnet.aepps.com',
121-
// instead use
122119
nodes: [
123120
{ name: 'someNode', instance: nodes[0] },
124121
// node2, node3..
125122
],
126123
compilerUrl: 'COMPILER_URL',
127-
// `keypair` param deprecated and will be removed in next major release
128-
keypair: { secretKey: 'A_PRIV_KEY', publicKey: 'A_PUB_ADDRESS' },
129-
// instead use
130124
accounts: [
131125
MemoryAccount({ keypair: { secretKey: 'A_PRIV_KEY', publicKey: 'A_PUB_ADDRESS' } }),
132126
// acc2

0 commit comments

Comments
 (0)