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

@redstone-finance/sui-connector

v0.9.0

Published

## Deploying and testing

Downloads

29

Readme

sui-connector

Deploying and testing

  1. Install sui-cli - https://docs.sui.io/references/cli/client
  2. Setup localnet - https://docs.sui.io/guides/developer/getting-started/local-network

Deploy

NETWORK=localnet SKIP_FAUCET=true PRIVATE_KEY=... yarn deploy 

This will create object_ids.[NETWORK].json file to be used by other scripts.

⚠⚠⚠ Remember to transfer the AdminCap and UpgradeCap to MultiSig Account! ⚠⚠⚠

Transferring objects

sui client transfer --object-id <OBJECT_ID> --to <RECIPIENT_ADDRESS> 

Tests

NETWORK=localnet yarn test
NETWORK=localnet yarn sample-run

Working with ledger

Checking the ledger public key

  1. Connect the ledger
  2. Run the Sui application on it or rerun it when the ledger has gone into sleep mode
  3. WARN ON THE account ID (Default set to 0, as the first account) inside ledger-utils.ts
  4. Run
yarn ledger-utils

Upgrading contract's config

  1. Check multi sig address for the selected sig public keys; See MULTI_SIG_PK_HEXES in get-multi-sig-address.ts
  2. Fill the config values in make-price-adapter-config.ts
  3. Run yarn update-config and save the returned Base64-encoded result as TRANSACTION_DATA
  4. Send the TRANSACTION_DATA to EVERY signer defined in point 1 (for the multi-sig account)
  5. For the every particular signer, connect the ledger, then run yarn ledger-utils $TRANSACTION_DATA
  6. Collect all responses, put it into combine-signatures.ts
  7. Run yarn combine-signatures and save multiSigSignature the returned value as MULTISIGSIG
  8. Run
sui client execute-signed-tx --tx-bytes $TRANSACTION_DATA --signatures $MULTISIGSIG

Upgrading contract's package

  1. Copy the version of the contract to be upgraded - name it with suffix _vN (for example, price_adapter_v2)
  2. Define the DEPLOY_DIR path inside your .env file
  3. Perform the contract changes as described here.
  4. Follow the steps above
    1. Instead of points 2. and 3., run yarn upgrade-package.
    2. The command will generate a TRANSACTION_DATA to sign, which also contains the bytecode of the upgraded source.
  5. After invoking the execute-signed-tx, save the identifier of newly created package to the object_ids.mainnet.json file inside the newly copied directory (as in 1.)

Start of using the new version

It prevents writing to the object by the old logic, from the OLD relayer. Following the steps below, the OLD version relayer will stop working, because it requires the version objects compatibility. You will be able to read the written values in ANY version of the package.

  1. So firstly run a NEW relayer (which will be failing as their package version is different from object's version)
  2. Then migrate the object version in the new package to allow the new relayer to work, by folowing the steps as described here, but
    1. Pass the version number to the main(N) function in migrate-object-version.ts
    2. Instead of points 2. and 3., run yarn migrate-object-version.
    3. The command will generate a TRANSACTION_DATA to sign