Skip to content

Commit 9a6b670

Browse files
authored
Merge pull request #1165 from aeternity/release/8.0.0-beta.1
Release 8.0.0-beta.1
2 parents d9fde7c + acc1873 commit 9a6b670

File tree

242 files changed

+7915
-15266
lines changed

Some content is hidden

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

242 files changed

+7915
-15266
lines changed

.env

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Please tell us about your environment:**
27-
27+
2828
- Node Version: v0.0.0
2929
- Protocol Version: 1
3030
- Compiler version: v0.0.0
31-
- VM Version: aevm | fate
31+
- VM Version: fate | fate2
3232
- SDK Version: v0.0.0
3333
- Python version: v3.7.0
3434

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ node_modules
44
.tern-project
55
.dir-locals.el
66
/dist
7+
/es
8+
/docs/api*
9+
/docs/examples
10+
__pycache__
711
/.envrc
812
/yarn-error.log
913
.idea
@@ -16,3 +20,5 @@ coverage.*
1620
.nyc_output/
1721
/examples/**/package-lock.json
1822
/examples/**/dist
23+
.history
24+
.site

.readthedocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 2
2+
mkdocs:
3+
configuration: mkdocs.yml
4+
conda:
5+
environment: docs/conda.yml

.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ before_install:
1414
- if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then
1515
export NODE_TAG=master;
1616
export COMPILER_TAG=latest;
17-
export FORCE_COMPATIBILITY=true;
17+
export IGNORE_VERSION=true;
1818
fi
1919
- if [[ $TRAVIS_BUILD_STAGE_NAME == "Integration tests" ]]; then
2020
docker-compose up -d;
@@ -30,6 +30,17 @@ jobs:
3030
- npm run build
3131
- npm run test:unit
3232
- npm run report-coverage
33+
- pyenv global 3.8
34+
- pip3 install -r docs/requirements.txt
35+
- mkdocs build
36+
deploy:
37+
- provider: pages
38+
skip_cleanup: true
39+
github_token: $GITHUB_TOKEN
40+
keep_history: true
41+
local_dir: docs
42+
on:
43+
branch: develop
3344
- stage: Integration tests
3445
name: Channel, accounts
3546
script:

CHANGELOG.md

Lines changed: 170 additions & 16 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Build Status](https://travis-ci.com/aeternity/aepp-sdk-js.svg?branch=develop)](http://travis-ci.com/aeternity/aepp-sdk-js?branch=develop)
66
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
77
[![npm](https://img.shields.io/npm/v/@aeternity/aepp-sdk.svg)](https://www.npmjs.com/package/@aeternity/aepp-sdk)
8-
[![npm](https://img.shields.io/npm/l/@aeternity/aepp-sdk.svg)](https://www.npmjs.com/package/@aeternity/aepp-sdk)
8+
[![npm](https://img.shields.io/npm/l/@aeternity/aepp-sdk.svg)](https://www.npmjs.com/package/@aeternity/aepp-sdk)
99
[![Greenkeeper badge](https://badges.greenkeeper.io/aeternity/aepp-sdk-js.svg)](https://greenkeeper.io/)
1010
JavaScript SDK for the revolutionary [æternity] blockchain, targeting the
1111
[æternity node] implementation. Aepp-sdk is [hosted on GitHub].
@@ -16,127 +16,9 @@ JavaScript SDK for the revolutionary [æternity] blockchain, targeting the
1616

1717
[develop branch]: https://github.com/aeternity/aepp-sdk-js/tree/develop
1818

19-
## Table of content
20-
- [Æternity's JavaScript SDK](#%C3%86ternitys-Javascript-SDK)
21-
- [Table of content](#Table-of-content)
22-
- [Quick Start](#Quick-Start)
23-
- [1. Install SDK](#1-Install-SDK)
24-
- [A) Simple Usage: with `<script>` tag](#A-Simple-Usage-with-script-tag)
25-
- [B) Advanced Usage: with `npm` or similar](#B-Advanced-Usage-with-npm-or-similar)
26-
- [2. Create an Account](#2-Create-an-Account)
27-
- [A) Using the Command Line](#A-Using-the-Command-Line)
28-
- [B) Using the SDK](#B-Using-the-SDK)
29-
- [3. Give yourself some _AE_ tokens](#3-Give-yourself-some-AE-tokens)
30-
- [4. Import (a chosen Flavor)](#4-Import-a-chosen-Flavor)
31-
- [5. Play with Aetenity's blockchain features](#5-Play-with-Aetenitys-blockchain-features)
32-
- [More: Guides & Examples](#More-Guides--Examples)
33-
- [CLI - Command Line Client](#CLI---Command-Line-Client)
34-
- [Contributing](#Contributing)
35-
- [Change Log](#Change-Log)
36-
- [License](#License)
37-
38-
## Quick Start
39-
40-
### 1. Install SDK
41-
#### A) Simple Usage: with `<script>` tag
42-
For those not using any JS bundling/complilation or compilation technique or tools like [_Codepen_](https://codepen.io/pen/) or similar online Editors, please check our [**Import SDK bundle with `<script>` tag**](docs/guides/import-script-tag.md).
43-
44-
If you're using bundling/compilation techniques (eg. `webpack`), please continue reading.
45-
46-
#### B) Advanced Usage: with `npm` or similar
47-
Add the latest `@aeternity/aepp-sdk` release from npmjs.com to your project using one of these commands
48-
49-
```bash
50-
# install using npm...or yarn or pnpm
51-
npm i @aeternity/aepp-sdk
52-
```
53-
54-
**Note:** To install a _Pre-Release_ (latest `beta` or `alpha` version) using on the latest Node version, you have to install the package appending the `@next` tag reference, or even use the `#` symbol and the Repo URL to install a version coming from a specific branch.
55-
```bash
56-
# install the @next version of the SDK
57-
npm i @aeternity/aepp-sdk@next
58-
59-
# install the #develop version of the SDK
60-
npm i https://github.com/aeternity/aepp-sdk-js#develop
61-
```
62-
63-
**Note** : If you experience errors during the installation, you might need to install build tools for your OS.
64-
65-
Windows: Windows Build Tools
66-
```
67-
npm install -g windows-build-tools
68-
```
69-
Ubuntu / Debian: Build Essential
70-
```
71-
sudo apt-get update
72-
sudo apt-get install build-essential
73-
```
74-
Mac:
75-
Download [Xcode](https://apps.apple.com/de/app/xcode/id497799835?mt=12) from AppStore, then run
76-
```
77-
xcode-select --install
78-
```
79-
80-
### 2. Create an Account
81-
You can do many more things now, but you'll probably have to start with:
82-
83-
#### A) Using the Command Line
84-
Create an account using the [💻 CLI](#cli---command-line-client)
85-
86-
#### B) Using the SDK
87-
88-
```javascript
89-
import { Crypto } from '@aeternity/aepp-sdk/es'
90-
const keypair = Crypto.generateKeyPair()
91-
console.log(`Secret key: ${keypair.secretKey}`)
92-
console.log(`Public key: ${keypair.publicKey}`)
93-
```
94-
95-
### 3. Give yourself some _AE_ tokens
96-
To get yourself some _AEs_ you can use the [🚰 Faucet Aepp](https://faucet.aepps.com/). Just add your publicKey, and you'll immediately get some test tokens.
97-
98-
99-
### 4. Import (a chosen Flavor)
100-
101-
Import the right [flavor](docs/README.md#flavors--entry-points). For this example with get the `Universal` flavor, which contains all the features of the SDK:
102-
103-
```js
104-
// Import Flavor
105-
import Ae from '@aeternity/aepp-sdk/es/ae/universal' // or other flavor
106-
```
107-
108-
### 5. Play with Aetenity's blockchain features
109-
110-
```js
111-
// Use Flavor
112-
import Ae from '@aeternity/aepp-sdk/es/ae/universal' // or other flavor
113-
import MemoryAccount from '@aeternity/aepp-sdk/es/account/memory' // or other flavor
114-
import Node from '@aeternity/aepp-sdk/es/node' // or other flavor
115-
import { AE_AMOUNT_FORMATS } from '@aeternity/aepp-sdk/es/utils/amount-formatter'
116-
117-
const NODE_URL = 'https://sdk-testnet.aepps.com'
118-
const COMPILER_URL = 'COMPILER_URL' // required for using Contract
119-
const ACCOUNT = MemoryAccount({ keypair: { secretKey: 'A_PRIV_KEY', publicKey: 'A_PUB_ADDRESS' } })
120-
121-
(async function () {
122-
const nodeInstance = await Node({ url: NODE_URL })
123-
const sdkInstance = await Ae({
124-
compilerUrl: COMPILER_URL,
125-
nodes: [ { name: 'test-net', instance: nodeInstance } ],
126-
accounts: [ ACCOUNT ]
127-
})
128-
129-
await sdkInstance.height() // get top block height
130-
console.log('Current Block Height:', height)
131-
132-
await sdkInstance.spend(1, 'ak_asd23dasdasda...', { denomination: AE_AMOUNT_FORMATS.AE }) // spend one AE
19+
## Guides & Examples
13320

134-
})()
135-
```
136-
137-
## More: Guides & Examples
138-
139-
Check out our [Guides](docs/README.md) and [Examples](examples/README.md).
21+
Check out our [Quick Start guide](docs/guides/quick-start.md), [Documentation](docs/README.md), and [Examples](examples/README.md).
14022

14123
## CLI - Command Line Client
14224

apidoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const outputDir = `${__dirname}/docs`
2727
const prefix = /^@aeternity\/aepp-sdk\/es\//
2828
const templateData = jsdoc2md.getTemplateDataSync({
2929
configure: '.jsdoc.json',
30-
files: 'es/**'
30+
files: 'src/**'
3131
})
3232

3333
function createDirs (path) {

.babelrc renamed to babel.config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"presets": ["@babel/preset-env"],
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-typescript"
5+
],
36
"plugins": [
47
"@babel/plugin-proposal-object-rest-spread",
5-
"@babel/plugin-transform-runtime",
8+
["@babel/plugin-transform-runtime", { "corejs": 3 }],
69
"@babel/plugin-proposal-export-default-from",
710
"ramda"
811
]

babel.esm.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = require('./babel.config.json')
2+
3+
config.presets[0] = ['@babel/preset-env', { modules: false }]
4+
5+
module.exports = config

0 commit comments

Comments
 (0)