Giter Site home page Giter Site logo

degouville / arianeejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arianee/arianeejs

0.0 1.0 0.0 11.8 MB

The Arianee project is an independent, participative - organization whose mission is to build a global standard for the digital certification of valuable objects by promoting and supporting the adoption of the Arianee protocol.

Home Page: https://www.arianee.org/

JavaScript 0.13% TypeScript 93.53% Gherkin 6.34%

arianeejs's Introduction

Builds

Develop: CircleCI

Master: CircleCI

NPM: npm version

ArianeeJS

Getting Started

The full doc is avalaible here: https://docs.arianee.org/docs/arianee-js

Get ready : installation

Get the last version from NPM or your favorite registry:

npm i @arianee/arianeejs -D

Simple example

import { Arianee } from '@arianee/arianeejs'

(async function () {

  // By default Arianee will be initialized on testnet network
  const arianee = await new Arianee().init();

// Create a wallet
  const wallet = arianee.fromRandomKey();

// Request POA and Aria and approves store to make transaction on blockchain
  await wallet.requestPoa();
  await wallet.requestAria();

  await wallet.methods.approveStore();

  const balanceOfPoa = await wallet.methods.balanceOfPoa();
  console.log('balanceOfPoa: ', balanceOfPoa);

});

Issues

If you have an issue or you found a bug, please open an issue on our github repo: https://github.com/Arianee/arianeeJS/issues Try to give us piece of code and the most details you can so we can reproduce your issue easily, and the help you faster.

Contributing

Your contribution are welcome if they comply to the following requirements:

  1. Commit name should follow this specification https://www.conventionalcommits.org/en/v1.0.0-beta.2/#summary
  2. All tests should be ok
  3. Add value to the product

Test

  1. Generate a github token
  2. Set github token
export GITHUBTOKEN=YOUR_GIT_HUB_TOKEN
  1. Declare domain blockchain and declare domain wallet
echo 127.0.0.1 blockchain | sudo tee -a /etc/hosts
echo 127.0.0.1 wallet | sudo tee -a /etc/hosts

4 Launch Docker compose

docker-compose up

arianeejs's People

Contributors

alexishecf avatar arianeedeployer avatar dependabot[bot] avatar fulldecent avatar gnarco avatar maxteiger avatar mouadhbb avatar mvaullerin avatar stefdelec 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.