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 🙏

© 2024 – Pkg Stats / Ryan Hefner

library-sui

v0.1.2

Published

Repository containing Bluefin core exchange contracts that allow users to do on-chain derivatives trading on **SUI** blockchain.

Downloads

7

Readme

Bluefin Exchange Contracts

Repository containing bluefin core exchange contracts that allow users to do on-chain derivatives trading on Sui blockchain.

Prerequisites:

  • SUI Node: v0.27.1
  • Node: v18.x.x

How to

  • Install dependencies using yarn
  • Create a wallet on sui using sui client new-address secp256k1
  • Create .env file using .env.example provided. Specify the DEPLOYER_SEED (secp256k1) and DEPLOY_ON (See networks.json for available networks to deploy) The Deployer account must be in sui-client addresses.
  • To deploy bluefin_foundation contracts run yarn deploy The script will deploy the contracts, and create any markets specified in DeploymentConfig.ts, extract created objects and write them to ./deployment.json file
    $ ts-node ./scripts/deploy/full.ts
    Performing full deployment on: http://127.0.0.1:9000
    Deployer SUI address: 0x42696a5734546c3acc9019ef93543609cb5c5c89
    Switched client env to: local
    Switched client account to: 0x42696a5734546c3acc9019ef93543609cb5c5c89
    INCLUDING DEPENDENCY Sui
    INCLUDING DEPENDENCY MoveStdlib
    BUILDING bluefin_foundation
    Skipping dependency verification
    Package published
    Status: success
    Creating Perpetual Markets
    -> ETH-PERP
    -> BTC-PERP
    Object details written to file: ./deployment.json
    Done in 7.64s.

Running Tests:

  • Updat .env file with DEPLOY_ON and DEPLOYER_SEED
  • Fund deployer using yarn faucet --account <acct_address>
  • Fund testing accounts using yarn fund:test:accounts
  • Deploy the package using yarn deploy, Every time any change is made to package, it will need to be re-deployed before running tests
  • Run tests using yarn test

Scripts

| Name | Description | Command | | ----------------------------- | ----------------------------------------------------------------- | ------------------------ | | Package and Market Deployment | Deploys the package and all markets provided in Deployment Config | yarn deploy | | Package Deployment | Deploys the package | yarn deploy:package | | Market Deployment | Deploys the market specified in .env | yarn deploy:market | | Faucet | Provides address with SUI coin | yarn faucet -a "0x..." |