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

@rajuice/celo-airdrop-sdk

v1.0.0

Published

SDK for CeloPulse reward claiming and eligibility checking on Celo

Downloads

18

Readme

@rajuice/celo-airdrop-sdk

License: MIT Celo TypeScript

A lightweight, strictly-typed TypeScript SDK for integrating the CeloPulse Proof-of-Activity ecosystem. This SDK provides a clean wrapper over ethers.js to interact with the RewardDistributor and ActivityManager smart contracts directly within your decentralized applications.

📦 Installation

Install the package via your preferred package manager:

npm install @rajuice/celo-airdrop-sdk
# or
yarn add @rajuice/celo-airdrop-sdk
# or
pnpm add @rajuice/celo-airdrop-sdk

🚀 Quick Start

The SDK provides a unified CeloAirdropSDK class to interact with the CeloPulse rewards system.

import { CeloAirdropSDK } from '@rajuice/celo-airdrop-sdk';
import { ethers } from 'ethers';

// 1. Setup your provider and signer
const provider = new ethers.BrowserProvider(window.ethereum);
const signer = await provider.getSigner();

// 2. Initialize the SDK with contract addresses
const REWARD_DISTRIBUTOR = '0xC0d5E5a0644CFFA5fE44fF1Cb542026e29E00c61';
const ACTIVITY_MANAGER = '0x52C26081bb28351Dae6A4D678B4b144bc5A0B956';

const sdk = new CeloAirdropSDK(
  REWARD_DISTRIBUTOR,
  ACTIVITY_MANAGER,
  signer
);

// 3. Check Eligibility and Claim
const address = await signer.getAddress();
const isEligible = await sdk.isClaimable(address);

if (isEligible) {
  const tx = await sdk.claimReward();
  console.log('Transaction sent:', tx.hash);
  await tx.wait();
  console.log('Reward successfully claimed!');
}

📚 API Reference

Initialization

new CeloAirdropSDK(rewardAddress: string, activityAddress: string, signerOrProvider: ethers.Signer | ethers.Provider)

Core Methods

  • claimReward(): Validates caller eligibility and issues a standard state-transition transaction to claim accumulated CeloPulse rewards.
  • checkEligibility(userAddress: string): Returns a boolean indicating if the user is authorized to claim from the rewards pool.
  • getRewardInfo(userAddress: string): Returns detailed struct containing totalClaimed, pending, lastClaim, claimCount, and canClaim.
  • getUserStats(userAddress: string): Fetches on-chain activity metrics including currentStreak, longestStreak, and totalActions.
  • isClaimable(userAddress: string): A convenience wrapper combining pending balance checks with eligibility status.
  • getPoolStats(): Returns global protocol analytics including the total reward pool size and total distributed assets.
  • getContractMetadata(): Returns the instantiated network and contract addresses.

🛠 Development

To build the SDK locally:

npm install
npm run build

📜 License

This project is licensed under the MIT License.