Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rsksmart/bridge-state-data-parser

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rsksmart/bridge-state-data-parser

Utility to get the RSK Powpeg current bridge state

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Github CI/CD CodeQL

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 Discord server.

FAQs

Package last updated on 05 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc