Skip to content
Permalink
Browse files

Merge pull request #46 from input-output-hk/update-and-release

Update and release
  • Loading branch information...
NicolasDP committed Oct 9, 2019
2 parents 6ea8645 + 703cde1 commit be8a067b8e72a432f3ffc52bbac7778220ff7631
Showing with 25 additions and 14 deletions.
  1. +8 −5 .circleci/config.yml
  2. +8 −1 Cargo.toml
  3. +9 −8 README.md
@@ -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
@@ -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"]
@@ -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

@@ -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

@@ -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"
}
}
```

0 comments on commit be8a067

Please sign in to comment.
You can’t perform that action at this time.