Skip to content

Commit

Permalink
Merge pull request #213 from ainblockchain/release/v1.13.1
Browse files Browse the repository at this point in the history
Upgrade version to 1.13.1
  • Loading branch information
platfowner authored Nov 26, 2024
2 parents e1c5d17 + 9c9abfd commit 5870490
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ain-js

AI Network Blockchain SDK for javascript (or typescript).

## API Documentation
API documentation is available at https://ainblockchain.github.io/ain-js/.

## Installation
```
yarn add @ainblockchain/ain-js
```


## Examples
```
const Ain = require('./lib/ain').default;
Expand All @@ -34,29 +34,27 @@ const accounts = ain.db.ref('/accounts').getValue().then(result => {
```

## Test How-To
For testing, you need a blockchain node cluster running locally.
1. Clone AIN Blockchain and install
```
git clone git@github.com:ainblockchain/ain-blockchain.git
cd ain-blockchain
yarn install
```

2. Start blockchain locally
```
cd ain-blockchain
bash start_local_blockchain.sh
```
* 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.
* 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.

3. Run tests
```
yarn run test
yarn run test_snapshot # update test snapshot files
```


## API Documentation

API documentation is available at https://ainblockchain.github.io/ain-js/.

## LICENSE

MPL-2.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ainblockchain/ain-js",
"version": "1.13.0",
"version": "1.13.1",
"description": "",
"main": "lib/ain.js",
"scripts": {
Expand Down

0 comments on commit 5870490

Please sign in to comment.