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

@zebec-fintech/sui-silver-card-sdk

v1.3.0

Published

An sdk for interacting with zebec silver card sui contract

Downloads

304

Readme

Silvercard SUI Package SDK

An sdk for interacting with silvercard sui chain package.

Usage

Create Instance of SuiSilverCardService

To use this sdk, you are required to create a instance of SuiSilverCardService.

const network = "mainnet";
const url = getFullnodeUrl(network);

const suiClient = new SuiClient({ url });
const packageInfo = new SuiSilverCardPackageInfo(network);
const signTransaction = ...; // retrieve from wallet

const service = await SuiSilverCardService.create(packageInfo, suiClient, {
    address: "<wallet address>",
    signTransaction,
});

Get Purchase Profile

const result = await service.getPurchaseProfile({
  user: "<wallet address>",
});

console.log("result:", result);

Create Purchase Profile

const payload = await service.createPurchaseProfile();

const result = await payload.execute();
console.log("result:", result.digest);

Get Card Config

const result = await service.getCardConfig();

console.log("result:", result);

Get Fee Tier

const result = await adminService.getFeeTierList();

console.log("result:", result);

Add Fee Tier

const fee = 1.5;
const minAmount = "501";
const maxAmount = "1500";

const payload = await adminService.addFeeTier({
  fee,
  maxAmount,
  minAmount,
});

const result = await payload.execute();

console.log("result:", result.digest);

Remove Fee Tier

const minAmount = "100";
const maxAmount = "5";

const payload = await adminService.removeFeeTier({ maxAmount, minAmount });

const result = await payload.execute();

console.log("result:", result.digest);

Update Fee Tier

const fee = 5;
const minAmount = "11";
const maxAmount = "200";

const payload = await adminService.updateFeeTier({
  fee,
  maxAmount,
  minAmount,
});

const result = await payload.execute();

console.log("result:", result.digest);

Get Swap Fee List

const result = await adminService.getSwapFeeList();

console.log("result:", result);

Add Swap Fee

const fee = 0;
const tokenType =
  "0x51b7f6cdd5a99d8a2d8338440255db2ccfc98d77c8b4b0a376b7d6d4a6a489f6::sui_generic_coins::SUI_GENERIC_COINS";

const payload = await adminService.addSwapFee({ fee, tokenType });

const result = await payload.execute();

console.log("result:", result.digest);

Update Swap Fee

const fee = 5;
const tokenType =
  "0x98b2f7290927c7f1008294f568d2745df22c2b35f96a1325f8a960058daf852b::sui_generic_coins::SUI_GENERIC_COINS";

const payload = await adminService.updateSwapFee({ fee, tokenType });

const result = await payload.execute();

console.log("result:", result.digest);

Remove Swap Fee

const tokenType =
  "0x98b2f7290927c7f1008294f568d2745df22c2b35f96a1325f8a960058daf852b::sui_generic_coins::SUI_GENERIC_COINS";

const payload = await adminService.removeSwapFee({ tokenType });

const result = await payload.execute();

console.log("result:", result.digest);

Set Card Vault

const vaultAddress =
  "0x4b4123283c95fb6c57e72da3e6f21f895fc42dbcb7635da0c30ffd933288bbf4";

const payload = await adminService.setCardVault({ vaultAddress });

const result = await payload.execute();

console.log("result:", result.digest);

Set Revenue Vault

const vaultAddress =
  "0x3f1bc889eb58146ca6b141c637c26b2e0ef92a459f5cc66edf1e00af76038fda";

const payload = await adminService.setRevenueVault({ vaultAddress });

const result = await payload.execute();

console.log("result:", result.digest);

Set Daily Limit

const dailyLimit = "1500";

const payload = await adminService.setDailyLimit({ dailyLimit });

const result = await payload.execute();

console.log("result:", result.digest);

Set Max Card Limit

const maxCardAmount = "1500";

const payload = await adminService.setMaxCardAmount({ maxCardAmount });

const result = await payload.execute();

console.log("result:", result.digest);

Set Min Card Amount

const minCardAmount = "1";

const payload = await adminService.setMinCardAmount({ minCardAmount });

const result = await payload.execute();

console.log("result:", result.digest);

Set Native Fee

const payload = await adminService.setNativeFee({ feePercent: 2.5 });

const result = await payload.execute();

console.log("result:", result.digest);

Set NonNative Fee

const payload = await adminService.setNonNativeFee({ feePercent: 5.5 });

const result = await payload.execute();

console.log("result:", result.digest);

Set Revenue Fee

const payload = await adminService.setRevenueFee({ feePercent: 3.5 });

const result = await payload.execute();

console.log("result:", result.digest);