Coder Social home page Coder Social logo

pinkdiamond1 / ren-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renproject/ren-js

0.0 1.0 0.0 17.93 MB

RenJS - the official JavaScript library for interacting with RenVM

Home Page: https://renproject.github.io/ren-client-docs/

License: MIT License

JavaScript 1.18% TypeScript 98.82%

ren-js's Introduction

๐Ÿ› ๏ธ ren-js

Version

The official Javascript SDK for interacting with RenVM.

yarn add @renproject/ren @renproject/chains

Docs

See Ren Client Docs

RenJS v3

RenJS v3 is currently available as an alpha release:

yarn add @renproject/ren @renproject/chains

RenJS v3 Docs (WIP)

Changelog

See the Releases page.

Package list


Developer docs - click to expand

Developing locally

# Clone repository
git clone [email protected]:renproject/ren-js.git && cd ren-js

# Install dependencies
yarn

# Build every package
yarn run build

Linking

If you want to use your local version of RenJS in another repository, run

# In the ren-js repository
yarn run link:all

You can now link it to any other local repository by running:

# In other local repositories
yarn link @renproject/ren @renproject/chains @renproject/utils @renproject/provider

Running tests

You'll need to:

  1. Generate a mnemonic and send ETH (kovan for testnet) (path: m/44'/60'/0'/0/).
    • let w = require("ethers").Wallet.createRandom(); console.debug(w.address, w.mnemonic.phrase);
  2. Generate a private key and send testnet crypto funds.
    • require("send-crypto").newPrivateKey();
  3. Optionally generate an Infura API key.

Create a .env file which contains the following exported variables:

export MNEMONIC="your mnemonic here"
export TESTNET_PRIVATE_KEY="your bitcoin private key"

# Optional
export INFURA_KEY="your infura key"

To run the tests:

yarn run test

ren-js's People

Contributors

0x31 avatar jazg avatar loongy avatar negaex avatar ryanswrt avatar terrafirmatrekker avatar vinceau avatar xnyl avatar

Watchers

 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.