1.0.7 • Published 2 years ago

solweb v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

What is SolWeb

SolWeb inherits from LiteWeb and services for Sol-network. We encapsulated two objects (mainchain and sidechain) based on LiteWeb. The methods and attributes in mainchain or sidechain are exactly the same as the liteweb instance. For example, users can use solweb.mainchain.xlt.getBalance() to get balance from the mainchain. Futhermore, we add some new methods which are as follows in SolWeb class so that users can use them to contact between the main chain and the side chain.

Installation

Node.js

npm install solweb

or

yarn add solweb

Browser

Then easiest way to use SolWeb in a browser is to install it as above and copy the dist file to your working folder. For example:

cp node_modules/solweb/dist/SolWeb.js ./js/SolWeb.js

so that you can call it in your HTML page as

<script src="./js/SolWeb.js"><script>

Test cases

npm run test

But before run test cases, you must add some info in test/config.js, such fullnode, solidity node, eventsever and private key.

Documentation

SolWeb

1.0.7

2 years ago

0.0.0

3 years ago