Skip to content

Commit

Permalink
Rename repository and lib
Browse files Browse the repository at this point in the history
  • Loading branch information
On1x committed Feb 27, 2019
1 parent 9ce2c53 commit c431c8d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# viz.js
viz.js the JavaScript API for VIZ blockchain
viz.js the JavaScript Library with API Support for VIZ blockchain

[![npm version](https://badge.fury.io/js/viz-world-js.svg)](https://badge.fury.io/js/viz-world-js)
[![npm version](https://badge.fury.io/js/viz-js-lib.svg)](https://badge.fury.io/js/viz-js-lib)

# Documentation

Here is full documentation:
https://github.com/VIZ-World/viz-world-js/tree/master/doc
https://github.com/VIZ-Blockchain/viz-js-lib/tree/master/doc

# Install
```
$ npm install viz-world-js --save
$ npm install viz-js-lib --save
```

## Browser
Expand All @@ -25,13 +25,13 @@ viz.api.getAccounts(['ned', 'dan'], function(err, response){

## Server

## WebSockets
wss://testnet.viz.world By Default<br/>
## WebSockets and HTTP transport
Library support 2 transport types: ws, wss for websocket and http, https for pure HTTP JSONRPC.<br/>

## Examples
### Broadcast Vote
```js
var viz = require('viz');
var viz = require('viz-js-lib');//nodejs lib

var wif = viz.auth.toWif(username, password, 'posting');
viz.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "viz-world-js",
"name": "viz-js-lib",
"version": "0.9.16",
"description": "viz.js the JavaScript API for VIZ blockchain",
"description": "viz.js the JavaScript Library with API support for VIZ blockchain",
"main": "lib/index.js",
"scripts": {
"test": "mocha -t 20000 --require babel-polyfill --require babel-register",
Expand All @@ -18,20 +18,22 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/VIZ-World/viz-js.git"
"url": "git+https://github.com/VIZ-Blockchain/viz-js-lib.git"
},
"keywords": [
"viz",
"VIZ World",
"blockchain",
"viz-lib",
"viz-js-lib",
"viz-js",
"vizjs"
],
"author": "Fabien (https://github.com/bonustrack)",
"license": "MIT",
"bugs": {
"url": "https://github.com/VIZ-World/viz-js/issues"
"url": "https://github.com/VIZ-Blockchain/viz-js-lib/issues"
},
"homepage": "https://github.com/VIZ-World/viz-js#readme",
"homepage": "https://github.com/VIZ-Blockchain/viz-js-lib#readme",
"dependencies": {
"bigi": "^1.4.2",
"bluebird": "^3.4.6",
Expand Down
1 change: 0 additions & 1 deletion test/api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ describe('viz.api:', function () {
it('works', () => {
viz.setWebSocket('ws://localhost');
config.get('websocket').should.be.eql('ws://localhost');
config.set('websocket', 'wss://testnet.viz.world')
});
});

Expand Down

0 comments on commit c431c8d

Please sign in to comment.