npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

boomflow-frontend

v1.1.11

Published

--- Conflux BoomFlow is the Decentralized Exchange solution for Conflux Chain

Readme

Conflux BoomFlow Frontend SDK


Conflux BoomFlow is the Decentralized Exchange solution for Conflux Chain

| Scenarios | Scripts | Description | |-|-|-| |Deposit| @examples/deposit | Deposit ERC777 to CRC-L token | |Signature| @examples/sign | Sign and issue DEX request, such as placing/cancelling orders and withdraw |

Note: Force Withdraw should only apply in emergency situations. For regular withdraw, please submit withdraw requests to DEX


Contract Functions

async function getTokenAddress(token) -> BigNumber

Returns the ERC777 contract address corresponding to the CRCL token

async function balanceOf(token, account) -> BigNumber

Returns the balance of the account in either ERC777 or CRCL token

async function deferTime(token) -> BigNumber

Returns the force withdraw deferring time of the CRCL token

async function getOrderInfo(token) -> BigNumber

Returns the order info including order status, hash and filled amount

async function getRequestHash(token) -> BigNumber

Returns the request hash

async function getWithdrawHash(token) -> BigNumber

Returns the withdraw hash

async function deposit(cfx, sender, token, recipient, value, nonce)

Deposits from sender's ERC777 address to recipient's CRCL address with the value units of token.

async function requestForceWithdraw(cfx, sender, token, nonce)

Requests for future force withdraw in the CRCL token.

async function forceWithdraw(cfx, sender, token, recipient, nonce)

Forcely Withdraws all the balance from sender's CRCL address to recipient's ERC777 address.

DEX Functions

OrderService is the object that interat with DEX REST APIs.

OPCODE

OPCODE = {
    PlaceOrder: 0,
    Cancel: 1,
    Withdraw: 2,
    WithdrawCrossChain: 4,
}

async init(opts)

Initalize OrderService object

async getLocalBoomflow()

Return current Boomflow address

async setLocalBoomflow(boomflowAddr)

Set the current Boomflow address

async getAssetAddress(name)

Return asset address of a given asset name

async getSystemTime()

Return the UNIX time in ms.

async getOrder(orderId)

Return the order content corrsponding to the order ID.

async construct(order, baseAssetAddress, quoteAssetAddress, nonce, op)

Construct the type data for signature.

async submit(order, timestamp, signature, clientOrderId=null)

Place order to DEX.

async cancel(orderId, timestamp, signature)

Cancel order to DEX.

async withdraw(request, timestamp, signature)

Withdraw request to DEX.

async withdrawCrossChain(request, timestamp, signature)

WithdrawCrossChain request to DEX.

Token Addresses

Note: Contract Addresses are no longer exported via NPM packages

ABI Interfaces

crclABI

CRCL ABI interface

erc777ABI

ERC777 ABI interface

boomflowABI

Boomflow ABI interface

Examples

Please see example