Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(pump-fun-skills): use our published @three-ws/agent-payments fork instead of upstream

nirholas3b17c135731b
diff --git a/pump-fun-skills/README.md b/pump-fun-skills/README.md
index 1e195a5d1..69411d7d4 100644
--- a/pump-fun-skills/README.md
+++ b/pump-fun-skills/README.md
@@ -18,7 +18,7 @@ This skill library provides AI agents with the tools to interact with pump.fun's
| [**Create Coin**](create-coin/) | Create coins on pump.fun with an initial buy. Supports mayhem mode, cashback, tokenized agents with buyback %, and front-runner protection via Jito. Uses the `@pump-fun/pump-sdk` and pump.fun API. |
| [**Swap**](swap/) | Buy and sell tokens on the bonding curve or AMM pool. Automatically detects coin state (bonding vs graduated) and builds the correct transaction. Supports slippage protection and Jito front-runner protection. |
| [**Coin Fees**](coin-fees/) | Inspect creator fee destinations and vault balances, collect fees, distribute shared fees to shareholders, and create or update sharing configs with up to 10 shareholders. |
-| [**Tokenized Agent Payments**](tokenized-agents/) | Accept USDC or wrapped SOL payments and verify invoices on-chain for Pump Tokenized Agents using `@pump-fun/agent-payments-sdk`. Includes wallet integration guides for React/Next.js. |
+| [**Tokenized Agent Payments**](tokenized-agents/) | Accept USDC or wrapped SOL payments and verify invoices on-chain for Pump Tokenized Agents using `@three-ws/agent-payments`. Includes wallet integration guides for React/Next.js. |
| [**Reactive Avatar**](reactive/) | Connects to the real PumpPortal WebSocket feed and drives `<agent-3d>` avatar gestures, emotes, and speech from live pump.fun events — no LLM in the loop. |
## Repo Structure
@@ -84,7 +84,7 @@ Once installed, you can follow the skill's instructions or run the documented CL
- **Create coin skill:** `cd create-coin && npm install` then run scripts under `create-coin/scripts/` (see `create-coin/SKILL.md`).
- **Swap skill:** `cd swap && npm install` then run scripts under `swap/scripts/` (see `swap/SKILL.md`).
- **Coin fees skill:** `cd coin-fees && npm install` then run scripts under `coin-fees/scripts/` (see `coin-fees/SKILL.md`).
- - **Tokenized agents:** `npm install @pump-fun/agent-payments-sdk` in your app.
+ - **Tokenized agents:** `npm install @three-ws/agent-payments` in your app.
3. **Configure.** Provide Solana RPC URL and any mints or wallet addresses the skill requires.
diff --git a/pump-fun-skills/create-coin/SKILL.md b/pump-fun-skills/create-coin/SKILL.md
index 81d6f2612..142ca6e60 100644
--- a/pump-fun-skills/create-coin/SKILL.md
+++ b/pump-fun-skills/create-coin/SKILL.md
@@ -133,7 +133,7 @@ npm install
**Inside another app** (from scratch):
```bash
-npm install @pump-fun/pump-sdk @pump-fun/agent-payments-sdk @solana/web3.js@^1.98.0 @solana/spl-token bn.js
+npm install @pump-fun/pump-sdk @three-ws/agent-payments @solana/web3.js@^1.98.0 @solana/spl-token bn.js
```
Check `npm info @pump-fun/pump-sdk dependencies` and align `@solana/web3.js` / `@solana/spl-token` versions to avoid duplicate incompatible copies.
@@ -183,7 +183,7 @@ This is brand plumbing on the mint **address** only — it does not name, add, o
| `mayhemMode` | `boolean` | Configurable via `--mayhem-mode` flag (default: `false`) |
| `cashback` | `boolean` | Enable cashback rewards; optional, default `false` |
-When `--tokenized-agent` is enabled, an additional `PumpAgentOffline.load(mint).create(...)` instruction (from `@pump-fun/agent-payments-sdk`) is appended after the create+buy instructions. The `--buyback-bps` flag controls the agent buyback percentage in basis points (default: 5000 = 50%). Tokenized agent coins **must** have an initial buy > 0 SOL.
+When `--tokenized-agent` is enabled, an additional `PumpAgentOffline.load(mint).create(...)` instruction (from `@three-ws/agent-payments`) is appended after the create+buy instructions. The `--buyback-bps` flag controls the agent buyback percentage in basis points (default: 5000 = 50%). Tokenized agent coins **must** have an initial buy > 0 SOL.
Token amount for the initial buy is derived with `getBuyTokenAmountFromSolAmount` (`mintSupply: null`, `bondingCurve: null`).
diff --git a/pump-fun-skills/create-coin/package.json b/pump-fun-skills/create-coin/package.json
index c85393979..f44970cfb 100644
--- a/pump-fun-skills/create-coin/package.json
+++ b/pump-fun-skills/create-coin/package.json
@@ -12,7 +12,7 @@
"build-create-coin-tx": "node scripts/build-create-coin-tx.mjs"
},
"dependencies": {
- "@pump-fun/agent-payments-sdk": "^3.0.3",
+ "@three-ws/agent-payments": "^3.2.0",
"@pump-fun/pump-sdk": "^1.36.0",
"@pump-fun/pump-swap-sdk": "^1.16.0",
"@solana/spl-token": "^0.4.13",
diff --git a/pump-fun-skills/create-coin/scripts/build-create-coin-tx.mjs b/pump-fun-skills/create-coin/scripts/build-create-coin-tx.mjs
index 0d13bf545..7b0251940 100644
--- a/pump-fun-skills/create-coin/scripts/build-create-coin-tx.mjs
+++ b/pump-fun-skills/create-coin/scripts/build-create-coin-tx.mjs
@@ -15,7 +15,7 @@ import {
OnlinePumpSdk,
getBuyTokenAmountFromSolAmount,
} from "@pump-fun/pump-sdk";
-import { PumpAgentOffline } from "@pump-fun/agent-payments-sdk";
+import { PumpAgentOffline } from "@three-ws/agent-payments";
import { getConnection } from "./lib/env.mjs";
import {
exitWithHelp,
diff --git a/pump-fun-skills/tokenized-agents/SKILL.md b/pump-fun-skills/tokenized-agents/SKILL.md
index f0f26bffd..482e721eb 100644
--- a/pump-fun-skills/tokenized-agents/SKILL.md
+++ b/pump-fun-skills/tokenized-agents/SKILL.md
@@ -1,7 +1,7 @@
---
name: tokenized-agents
description: >
- Use when the user wants to charge users for actions. Use @pump-fun/agent-payments-sdk, to build Solana payment transactions, verify on-chain invoice payments, or integrate Solana wallet adapters for agent payment flows.
+ Use when the user wants to charge users for actions. Use @three-ws/agent-payments, to build Solana payment transactions, verify on-chain invoice payments, or integrate Solana wallet adapters for agent payment flows.
metadata:
author: pump-fun
version: "1.1"
@@ -31,7 +31,7 @@ You MUST ask the user for ALL unchecked items in your very first response. Do no
- Parameter types match the documented signatures — `buildAcceptPaymentInstructions` accepts `number` for numeric fields, `validateInvoicePayment` accepts `number`, and `getInvoiceIdPDA` accepts `number`.
- Parameter ordering and names match exactly.
- Default values (e.g. `computeUnitLimit` defaults to `100_000`) are not contradicted.
- - Import paths use `@pump-fun/agent-payments-sdk`, not internal module paths.
+ - Import paths use `@three-ws/agent-payments`, not internal module paths.
## Supported Currencies
@@ -72,17 +72,17 @@ Read these values from `process.env` at runtime. Never hard-code mint addresses
## Install
```bash
-npm install @pump-fun/[email protected] @solana/web3.js@^1.98.0
+npm install @three-ws/agent-payments @solana/web3.js@^1.98.0
```
### Dependency Compatibility — IMPORTANT
-`@pump-fun/agent-payments-sdk` depends on `@solana/web3.js` and `@solana/spl-token`. When the app also installs these packages directly, mismatched versions can cause runtime errors.
+`@three-ws/agent-payments` depends on `@solana/web3.js` and `@solana/spl-token`. When the app also installs these packages directly, mismatched versions can cause runtime errors.
**Rules:**
-1. Before installing `@solana/web3.js`, `@solana/spl-token`, or any `@solana/wallet-adapter-*` package, first check what versions `@pump-fun/agent-payments-sdk` declares in its own `package.json` (inspect it via `npm info @pump-fun/agent-payments-sdk dependencies`). Install the same ranges — or ranges that resolve to the same major.minor — so npm/pnpm hoists a single copy instead of two.
-2. Never blindly install "latest" for these shared packages. Always prefer the version that is most compatible with the latest `@pump-fun/agent-payments-sdk`.
+1. Before installing `@solana/web3.js`, `@solana/spl-token`, or any `@solana/wallet-adapter-*` package, first check what versions `@three-ws/agent-payments` declares in its own `package.json` (inspect it via `npm info @three-ws/agent-payments dependencies`). Install the same ranges — or ranges that resolve to the same major.minor — so npm/pnpm hoists a single copy instead of two.
+2. Never blindly install "latest" for these shared packages. Always prefer the version that is most compatible with the latest `@three-ws/agent-payments`.
3. If the project already has these packages at different versions, align them to match the SDK and re-install.
## SDK Setup
@@ -90,7 +90,7 @@ npm install @pump-fun/[email protected] @solana/web3.js@^1.98.0
`PumpAgent` is the main class. It can build payment instructions and verify invoices.
```typescript
-import { PumpAgent } from "@pump-fun/agent-payments-sdk";
+import { PumpAgent } from "@three-ws/agent-payments";
import { PublicKey } from "@solana/web3.js";
const agentMint = new PublicKey(process.env.AGENT_TOKEN_MINT_ADDRESS!);
@@ -190,7 +190,7 @@ The Invoice ID is a PDA (`PublicKey`) that uniquely identifies an invoice on-cha
### Import
```typescript
-import { getInvoiceIdPDA } from "@pump-fun/agent-payments-sdk";
+import { getInvoiceIdPDA } from "@three-ws/agent-payments";
import { PublicKey } from "@solana/web3.js";
```
@@ -282,7 +282,7 @@ Build the payment instructions, assemble them into a full `Transaction` with a r
```typescript
import { Connection, PublicKey, Transaction } from "@solana/web3.js";
-import { PumpAgent } from "@pump-fun/agent-payments-sdk";
+import { PumpAgent } from "@three-ws/agent-payments";
async function buildPaymentTransaction(params: {
userWallet: string;
@@ -419,7 +419,7 @@ Use `validateInvoicePayment` to confirm that a specific invoice was paid on-chai
### Simple Backend Verification
```typescript
-import { PumpAgent } from "@pump-fun/agent-payments-sdk";
+import { PumpAgent } from "@three-ws/agent-payments";
import { PublicKey } from "@solana/web3.js";
const agentMint = new PublicKey(process.env.AGENT_TOKEN_MINT_ADDRESS!);