Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #49 from cosmostation/develop
Browse files Browse the repository at this point in the history
Added Band Protocol
  • Loading branch information
Booyoun authored Jun 9, 2020
2 parents 475991c + 3b77fec commit a7e3f62
Show file tree
Hide file tree
Showing 8 changed files with 461 additions and 50 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

*:star: Developed / Developing by [Cosmostation](https://www.cosmostation.io/)*

A JavasSript Open Source Library for [Cosmos Network](https://cosmos.network/), [IRISnet](https://www.irisnet.org/) and [Kava](https://www.kava.io/)
A JavasSript Open Source Library for [Cosmos Network](https://cosmos.network/), [IRISnet](https://www.irisnet.org/), [Kava](https://www.kava.io/) and [Band Protocol](https://bandprotocol.com/)

This library supports cosmos address generation and verification. It enables you to create an offline signature functions of different types of transaction messages. It will eventually support all the other blockchains that are based on Tendermint in the future, such as IOV and others.

[![MIT](https://img.shields.io/apm/l/vim-mode.svg)](https://github.com/cosmostation/cosmosjs/blob/master/LICENSE)
[![NPM](https://img.shields.io/npm/v/@cosmostation/cosmosjs.svg)](https://www.npmjs.com/package/@cosmostation/cosmosjs)
[![](https://data.jsdelivr.com/v1/package/npm/@cosmostation/cosmosjs/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@cosmostation/cosmosjs)
[![](https://data.jsdelivr.com/v1/package/npm/@cosmostation/cosmosjs/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@cosmostation/cosmosjs?path=dist)

## Installation

Expand Down Expand Up @@ -53,7 +53,7 @@ const cosmosjs = require("@cosmostation/cosmosjs");
- You can see example file at [/example/browser-example.html](https://github.com/cosmostation/cosmosjs/tree/master/example/browser-example.html)

```js
<script src="https://cdn.jsdelivr.net/npm/@cosmostation/cosmosjs@0.5.8/dist/cosmos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@cosmostation/cosmosjs@0.6.0/dist/cosmos.min.js"></script>
```

## Usage
Expand Down Expand Up @@ -85,6 +85,14 @@ const chainId = "kava-2";
const kava = cosmosjs.network(lcdUrl, chainId);
kava.setBech32MainPrefix("kava");
```
- Band
```js
const cosmosjs = require("@cosmostation/cosmosjs"); // only NodeJS

const chainId = "band-wenchang-mainnet";
const band = cosmosjs.network(lcdUrl, chainId);
band.setBech32MainPrefix("band");
```

Generate ECPairPriv value that is needed for signing signatures
```js
Expand Down
Loading

0 comments on commit a7e3f62

Please sign in to comment.