GithubHelp home page GithubHelp logo

bridge-state-data-parser's Introduction

Github CI/CD

bridge-state-data-parser

Library to get the current bridge state. This include available UTXOs, pegout requests waiting to be processed, pegout transactions waiting for signatures, pegout transactions waiting for block confirmations to be signed and broadcasted and also the next pegout creation block number.

Usage

Install dependencies

npm install

Run Project

To see the current status of pegouts on the provided network, run:

For mainnet:

node sample/sample.js mainnet

For testnet:

node sample/sample.js testnet

Or pass a network url for regtest:

node sample/sample.js http://localhost:4444

Test

To run test with coverage, run:

npm test

To run tests on a specific file, fun:

npm test test/testfilepath

Example:

npm test test/pegout-waiting-confirmation.test.js

We are using nyc code coverage, so when running the tests, nyc will create a code coverage report and print it in the console.

Eslint and Prettier

To run the eslint and prettier check, run:

npm run lint

This will check and show if the code complies with our standard.

To get eslint and prettier help you make the required changes, you can run:

npm run lint:fix

This command will try to fix the errors, leaving the ones it cannot fix to the developer to solve manually.

For any comments or suggestions, feel free to contribute or reach out at our open slack.

bridge-state-data-parser's People

Contributors

dependabot[bot] avatar jeremy-then avatar josedahlquist avatar kelvinator07 avatar marcos-iov avatar nathanieliov 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.