Giter VIP home page Giter VIP logo

comunikatormiui / bepro-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bepronetwork/bepro-js

0.0 0.0 0.0 10.98 MB

The repository contains a comprehensive documentation of the bepro.network ecosystem as a javascript framework. If you are new to BEPRO, you might want to check out the Website Overview or our public "Start Building" Page.

JavaScript 62.19% CSS 14.11% HTML 6.51% Solidity 17.19%

bepro-js's Introduction

bepro-js

bepro-js is package to integrate BEPRO On-Chain products

Installation

bepro-js is available as npm package.

// with npm
$ npm i bepro-js

Before try to install, make sure your working directory has Python 2 and the recommended NVM version setted on. To do, so:

  1. Setting of Python 2:
// Install it via bash terminal globally
$ sudo apt install python2

// Check the installed version.
// Must shown Python 2.7.18rc1 on terminal to the install be OK
$ python2 --version

// Verify Python 2.7 path
$ ls /usr/bin/python*

// Set Python 2 as alternative 1
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1

// Confirm Python 2 as alternative priority 1
$ sudo update-alternatives --config python

// Confirm the procedure.
// Must shown Python 2.7.18rc1 on terminal to the install be OK
$ python --version

// On the working directory, run the cmd below to set Python locally
$ npm config set python python
  1. Setting of Node:
// Install NVM recommended version for bepro-js
$ nvm install 8.12.0

// Set it on the working directory
$ nvm alias default v8.12.0

// Use the settled as default
$ nvm use default

Now, your work directory is able to install and run bepro-js.

Usage

import moment from 'moment';
import Application from 'bepro-js';

/* Test Version */
let app = new Application({test : true});

/* Generate a Staking Platform */
let staking = app.getStakingContract({contractAddress : /* Contract Address (optional) */});

/* Assert all data */
await staking.__assert();
/* or */

/* Deploy The Contract */
await staking.deploy();

License

MIT

Notes

The usage of ETH in all methods or params means using the native currency of that blockchain, example BSC in Binance Chain would still be nominated as ETH

isETHTrade() is also used to verify if the sale is done in BSC for Binance Chain

bepro-js's People

Contributors

ruiub3i avatar snack-0verflow avatar sgoia avatar moshmage avatar nelsonvega avatar lepehic288 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.