File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
# ain-js
2
-
3
2
AI Network Blockchain SDK for javascript (or typescript).
4
3
4
+ ## API Documentation
5
+ API documentation is available at https://ainblockchain.github.io/ain-js/ .
5
6
6
7
## Installation
7
8
```
8
9
yarn add @ainblockchain/ain-js
9
10
```
10
11
11
-
12
12
## Examples
13
13
```
14
14
const Ain = require('./lib/ain').default;
@@ -34,29 +34,27 @@ const accounts = ain.db.ref('/accounts').getValue().then(result => {
34
34
```
35
35
36
36
## Test How-To
37
+ For testing, you need a blockchain node cluster running locally.
37
38
1 . Clone AIN Blockchain and install
38
39
```
39
40
git clone [email protected] :ainblockchain/ain-blockchain.git
41
+ cd ain-blockchain
40
42
yarn install
41
43
```
42
44
43
45
2 . Start blockchain locally
44
46
```
47
+ cd ain-blockchain
45
48
bash start_local_blockchain.sh
46
49
```
47
- * Note that the node 2 of the blockchain needs to be started with ENABLE_EVENT_HANDLER=true env variable for the event manager test cases.
50
+ * Note that the node 2 of the blockchain needs to be started with ENABLE_EVENT_HANDLER=true env variable for the event manager test cases.
48
51
49
52
3 . Run tests
50
53
```
51
54
yarn run test
52
55
yarn run test_snapshot # update test snapshot files
53
56
```
54
57
55
-
56
- ## API Documentation
57
-
58
- API documentation is available at https://ainblockchain.github.io/ain-js/ .
59
-
60
58
## LICENSE
61
59
62
60
MPL-2.0
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @ainblockchain/ain-js" ,
3
- "version" : " 1.13.0 " ,
3
+ "version" : " 1.13.1 " ,
4
4
"description" : " " ,
5
5
"main" : " lib/ain.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments