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

fomo-deal-sdk-v1

v0.2.2

Published

SDK for interacting with the FOMO deal subgraph and signing Ethereum transactions

Downloads

52

Readme


FomoDeal SDK

Overview

The FomoDeal SDK provides developers with a powerful toolset for interacting with Ethereum and Solana blockchains. It simplifies blockchain operations, such as fetching data, managing VC-backed projects, tracking investments, and executing token-related operations like distribution and vesting.

Installation

Install the package via npm:

npm install fomo-deal-sdk

Features

  • GraphQL Integration: Utilize The Graph for efficient querying of blockchain data.
  • Multi-Chain Support: Seamlessly interact with Ethereum and Solana.
  • VC & Project Management: Easily retrieve and manage VC and project data.
  • Investment Tracking: Analyze and track investments across supported chains.
  • Token Operations: Execute token distribution and vesting schedules effortlessly.

Usage

Initialization

Start by initializing the SDK.

import { FomoDeal, Network } from "fomo-deal-sdk";

const fomoDeal = new FomoDeal();

Functions

1. Fetch All Projects

Retrieve all projects on a specific blockchain network.

const projects = await fomoDeal.getAllProjects(Network.ETHEREUM);

2. Fetch Project by ID

Get detailed information about a specific project using its ID.

const project = await fomoDeal.getProjectById(Network.SOLANA, "projectId123");

3. Retrieve VC Information

Fetch details of a VC from Ethereum or Solana.

const vcInfo = await fomoDeal.getVCInfo({
  ethereum: {
    provider, // Ethereum provider
    contractAddress, // VC registry contract address
    abi, // Contract ABI
    vcAddress: "vcAddress123", // VC wallet address
  },
  solana: {
    connection, // Solana connection object
    programId, // Solana program ID
    vcAddress: "vcAddress123", // VC wallet address
  },
});

4. Contribute to a Project

Make a contribution to a project on Ethereum or Solana.

await fomoDeal.contribute(
  Network.ETHEREUM,
  {
    ethereum: {
      provider, // Ethereum provider
      contractAddress, // Project registry contract address
      abi, // Contract ABI
    },
  },
  {
    vcAddress: "vcAddress123", // VC managing the project
    projectCount: 1, // Project identifier
    paymentTokenAddress: "tokenAddress", // Token used for payment
    amount: "1000000000000000000", // Contribution amount (1 ETH in wei)
    proof: [], // Optional Merkle proof
  },
);

5. Distribute Tokens

Distribute tokens in batches for a project.

await fomoDeal.distributeTokens(
  Network.SOLANA,
  {
    solana: {
      connection, // Solana connection object
      programId, // Solana program ID
      payer, // Payer object for signing transactions
      signTransaction, // Function to sign transactions
    },
  },
  {
    batchId: "batchId123", // Batch identifier
    projectCount: 1, // Project identifier
    recipients: ["recipient1", "recipient2"], // List of recipient addresses
  },
);

6. Fetch Supported Tokens

Retrieve a list of supported payment tokens for a specific blockchain.

const supportedTokens = await fomoDeal.getSupportedTokens(Network.ETHEREUM);

7. Retrieve Investor Profile

Fetch investment details of a specific investor.

const investorProfile = await fomoDeal.getInvestorProfile(Network.SOLANA, "investorAddress", {
  solana: {
    connection, // Solana connection object
    programId, // Solana program ID
  },
});

Dependencies

The SDK leverages the following dependencies:

  • Ethers.js: For seamless Ethereum blockchain interaction.
  • Solana/web3.js: For managing Solana blockchain operations.
  • GraphQL: To query data using The Graph.

Contributing

We welcome community contributions to improve the SDK! Follow these steps to contribute:

  1. Fork the repository.
  2. Create a new feature branch.
  3. Submit a pull request for review.

License

This project is licensed under the MIT License.


Support

For issues, suggestions, or questions, please visit our GitHub Issues page.


Next Steps

  1. Verify Functionalities: Thoroughly test the SDK for accurate real-time interactions across Ethereum and Solana.
  2. Deployment on NPM: Publish and verify the package for public use.
  3. Documentation Updates: Continuously improve the documentation based on user feedback.

This updated README.md ensures clarity, completeness, and ease of use for developers integrating the FomoDeal SDK. Let me know if further refinements are needed!