Skip to content

Commit

Permalink
Merge pull request #46 from input-output-hk/update-and-release
Browse files Browse the repository at this point in the history
Update and release
  • Loading branch information
NicolasDP committed Oct 9, 2019
2 parents 6ea8645 + 703cde1 commit be8a067
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
13 changes: 8 additions & 5 deletions .circleci/config.yml
Expand Up @@ -56,11 +56,14 @@ jobs:
- run:
name: Build binaries
command: wasm-pack build
- run:
name: Test
environment:
RUST_BACKTRACE: 1
command: wasm-pack test --node
#- run:
# name: Test
# environment:
# RUST_BACKTRACE: 1
# command: wasm-pack test --node
- persist_to_workspace:
root: /mnt/crate
paths: .

workflows:
version: 2
Expand Down
9 changes: 8 additions & 1 deletion Cargo.toml
@@ -1,8 +1,15 @@
[package]
name = "js-chain-libs"
version = "0.1.0"
version = "0.1.1"
authors = ["Enzo Cioppettini <ecioppettini@atixlabs.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/input-output-hk/js-chain-libs"
homepage = "https://github.com/input-output-hk/js-chain-libs#js-chain-libs"
description = """
Jörmungandr library, wallet and stake pool management.
"""

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
17 changes: 9 additions & 8 deletions README.md
Expand Up @@ -5,7 +5,13 @@ WebAssembly library with Javascript bindings to the new chain libraries.
This library can be used to do things like: create addresses, transactions and certificates, an encode them to be able to post to a node. It can also be used to parse the data fetched from a node (such as blocks).
A possible use-case is for building explorers and wallets in javascript, either in the browser or in nodejs, making possible to build engaging blockchain apps with good user interfaces with the same low level primitives already used in the rust node.

## Building
## Installing from npmjs

```
npm i --save js-chain-libs
```

## Building from source

### Requirements

Expand Down Expand Up @@ -40,12 +46,7 @@ The following example sets up an example project using Webpack to bundle the lib

Try it yourself.

1. Create a npm package of this repository:
```sh
wasm-pack pack
```
2. Copy the `pkg/js-chain-libs-0.1.0.tgz` file to a new directory. e.g: `make-transaction`
3. Go to that new directory and create the following files.
1. Go to that a directory and create the following files.

#### package.json

Expand All @@ -63,7 +64,7 @@ wasm-pack pack
"webpack-dev-server": "^3.1.0"
},
"dependencies": {
"js-chain-libs": "file:js-chain-libs-0.1.0.tgz"
"js-chain-libs": "^0.1"
}
}
```
Expand Down

0 comments on commit be8a067

Please sign in to comment.