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

rize-sui-core

v1.0.0

Published

## Description

Downloads

2

Readme

Rize V1 SUI smart contract

Description

Overview

RizeV1 is a smart contract deployed on the SUI platform. It is responsible for managing and interacting with coin objects received through the Wormhole bridge. The key functions of RizeV1 include:

  • Receiving and Storing Coins: Receives coin objects from the Wormhole bridge and deposits them into the vault.
  • Staking Operations: The operator allocates the coin objects, including user funds received from the Wormhole bridge, to various staking protocols on the SUI platform. Currently, RizeV1 supports staking with Scallop and Navi protocols.
  • Claiming Rewards: The operator claims rewards from the staking protocols and deposits them into the vault.

Withdrawal Process

  • Admin Permission: The admin can enable the withdrawal process by setting the withdraw status to true, allowing withdrawals from the admin account.
  • Admin Withdrawal: The admin account can withdraw balances and objects stored in the vault.
  • Conditions for Withdrawal: Withdrawals can be enabled under two circumstances:
    1. Migration to a future version of the Rize protocol.
    2. Emergency withdrawal.

Roles

  • Upgrader: Holds 0x2::package::UpgradeCap and has the authority to upgrade the smart contract.
  • Admin: Holds rize::role::AdminCap. The admin can assign operators, set the withdrawal status, and withdraw balances and objects when the withdrawal status is true.
  • Operator: Assigned by the admin, the operator can allocate funds to staking pools, specifically Scallop and Navi, and claim rewards but cannot withdraw funds or objects.

For developers

Installation

Install sui binary from mysten/sui, and config the environment according to sui cli guide

yarn install

Build

yarn build

Deploy

yarn deploy

The deployed contract will be written to published/${NETWORK}.json along with created object IDs that is useful for interacting with smart contract.

test

SUI_WALLET_PRIV_KEY=${admin_private_key} SUI_WALLET_PRIV_KEY2=${other_wallet} yarn test

TODOs

  • [ ] Test smart contract upgrade process