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

@atlantis-js/impact-certificate

v1.0.0

Published

SDK for Impact Certificate Minting and Attestation

Readme

Impact Certificate JS SDK

The @atlantis-js/impact-certificate is a JavaScript library for interacting with the Impact Certificate ecosystem. It provides functionality for minting Impact Certificates, checking mint status, fetching minted certificates, and performing attestations with staking, fetching attestations.

The library includes built-in type definitions, providing a great developer experience with IntelliSense in editors like VS Code.

Installation

npm install @atlantis-js/impact-certificate

Supported Chains

The library supports the following blockchains:

  • Arbitrum (Chain ID: 42161) - Supports Attestation
  • Base (Chain ID: 8453)
  • Celo (Chain ID: 42220) - Supports Attestation
  • Optimism (Chain ID: 10)

Getting Started

Initialization

Initialize the client with the desired chain ID and provider/signer.

const ImpactCertificateClient = require("@atlantis-js/impact-certificate");
const { ethers } = require("ethers");

// Initialize provider (for read-only operations)
const provider = new ethers.JsonRpcProvider("YOUR_RPC_URL");

// Initialize signer (for write operations like minting and attesting)
const signer = new ethers.Wallet("YOUR_PRIVATE_KEY", provider);

const client = new ImpactCertificateClient({
    chainId: 42161, // Arbitrum
    provider: provider,
    signer: signer
});

Minting an Impact Certificate

const mintData = {
    projectName: "My Impact Project",
    projectStartDate: "2023-01-01",
    projectEndDate: "2023-12-31",
    backerName: "My Organization",
    backerLogo: "https://example.com/logo.png",
    projectDescription: "Description of the project...",
    totalFundsDeployedUSD: 10000,
    impactCoresAffected: ["Environment"],
    impactBrief: "Brief description of impact...",
    mediaLinks: ["https://example.com/report.pdf"],
    paymentTransactionBlockchain: "Arbitrum",
    paymentTokenAddress: "0x...", // Supported payment token address
    mintBlockchain: "Arbitrum",
    receiverAddress: "0x..." // Address to receive the NFT
};

try {
    const response = await client.mint(mintData);
    console.log("Mint request submitted:", response);
} catch (error) {
    console.error("Minting failed:", error);
}

Checking Mint Status

const requestId = "REQUEST_ID_FROM_MINT_RESPONSE";
const status = await client.getMintStatus(requestId);
console.log("Mint status:", status);

Fetching Minted Certificates

const tokens = await client.getAllMinted();
console.log("Minted tokens:", tokens);

Attesting to an Impact Certificate

Attestation requires staking tokens. The SDK handles staking automatically if the user has insufficient stake.

const tokenId = 0; // ID of the token to attest to
const accept = true; // Approve the impact claim
const comment = "Verified impact.";

try {
    // Check stake and stake if necessary
    const userAddress = await signer.getAddress();
    const hasStake = await client.hasSufficientStake(userAddress);
    
    if (!hasStake) {
        const tokens = await client.getWhitelistedTokens();
        if (tokens.length > 0) {
            await client.stake(tokens[0].address);
        }
    }

    // Perform attestation
    const attestationUid = await client.attest(tokenId, accept, comment);
    console.log("Attestation successful! UID:", attestationUid);
} catch (error) {
    console.error("Attestation failed:", error);
}

Fetching Attestations

const attestations = await client.getAttestations();
console.log("Attestations:", attestations);

API Reference

ImpactCertificateClient

  • constructor(options): Initializes the client.
  • mint(mintData): Mints a new certificate.
  • getMintStatus(requestId): Gets the status of a mint request.
  • getAllMinted(): Fetches all minted certificates.
  • attest(tokenId, accept, comment): Attests to a certificate.
  • getWhitelistedTokens(): Gets tokens whitelisted for staking.
  • hasSufficientStake(userAddress): Checks if a user has sufficient stake.
  • stake(tokenAddress): Stakes tokens.
  • getAttestations(schemaUid): Fetches attestations for a schema.

License

MIT