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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
contributors and pumpfun agent payments sdk
nirholasa810416c5393
diff --git a/README.md b/README.mdindex 8a7307975..22e23395b 100644--- a/README.md+++ b/README.md@@ -132,6 +132,7 @@ The following environment variables are required. Copy `.env.example` to `.env.l- [Cloud Marketplaces](#cloud-marketplaces)- [Testing](#testing)- [Contributing](#contributing)+- [Contributors](#contributors)- [License](#license)---@@ -1541,6 +1542,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for the full contributor guide.---+## Contributors++Thanks to everyone who has contributed to this project.++- [@humanoidrobot-glitch](https://github.com/humanoidrobot-glitch) — thank you for your contributions!++---+## LicenseApache 2.0 — see [LICENSE](LICENSE).diff --git a/agent-payments-crosschain-sdk/.gitignore b/agent-payments-crosschain-sdk/.gitignorenew file mode 100644index 000000000..bd22d1f98--- /dev/null+++ b/agent-payments-crosschain-sdk/.gitignore@@ -0,0 +1,5 @@+node_modules/+dist/+*.tsbuildinfo+.env+.env.localdiff --git a/agent-payments-crosschain-sdk/package.json b/agent-payments-crosschain-sdk/package.jsonnew file mode 100644index 000000000..182f6f110--- /dev/null+++ b/agent-payments-crosschain-sdk/package.json@@ -0,0 +1,64 @@+{+ "name": "@pump-fun/agent-payments-crosschain-sdk",+ "version": "0.1.0",+ "description": "Cross-chain payments SDK for Pump Agent — accept ETH/USDC on EVM chains, agent receives on Solana",+ "publishConfig": {+ "access": "public"+ },+ "author": "Pump Fun",+ "license": "ISC",+ "type": "module",+ "main": "./dist/index.cjs",+ "module": "./dist/index.js",+ "types": "./dist/index.d.ts",+ "exports": {+ ".": {+ "types": "./dist/index.d.ts",+ "import": "./dist/index.js",+ "require": "./dist/index.cjs"+ },+ "./evm": {+ "types": "./dist/evm/index.d.ts",+ "import": "./dist/evm/index.js",+ "require": "./dist/evm/index.cjs"+ },+ "./solana": {+ "types": "./dist/solana/index.d.ts",+ "import": "./dist/solana/index.js",+ "require": "./dist/solana/index.cjs"+ },+ "./x402": {+ "types": "./dist/x402/index.d.ts",+ "import": "./dist/x402/index.js",+ "require": "./dist/x402/index.cjs"+ }+ },+ "files": [+ "dist"+ ],+ "scripts": {+ "build": "tsup",+ "build:prod": "tsup --minify",+ "dev": "tsup --watch",+ "typecheck": "tsc --noEmit",+ "clean": "rm -rf dist"+ },+ "dependencies": {+ "@pump-fun/agent-payments-sdk": "^3.0.3",+ "viem": "^2.21.0"+ },+ "peerDependencies": {+ "@solana/web3.js": "^1.98.0",+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ },+ "devDependencies": {+ "@types/node": "^22.0.0",+ "tsup": "^8.3.5",+ "typescript": "^5.7.3"+ }+}diff --git a/agent-payments-crosschain-sdk/src/chains.ts b/agent-payments-crosschain-sdk/src/chains.tsnew file mode 100644index 000000000..e6068ebc9--- /dev/null+++ b/agent-payments-crosschain-sdk/src/chains.ts@@ -0,0 +1,70 @@+import type { EvmChainConfig, SupportedEvmChainId } from "./types.js";++export const EVM_CHAINS: Record<SupportedEvmChainId, EvmChainConfig> = {+ 1: {+ id: 1,+ name: "Ethereum",+ rpcUrl: "https://eth.llamarpc.com",+ blockExplorer: "https://etherscan.io",+ nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },+ usdc: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",+ moonpayNetwork: "eth",+ },+ 8453: {+ id: 8453,+ name: "Base",+ rpcUrl: "https://mainnet.base.org",+ blockExplorer: "https://basescan.org",+ nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },+ usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",+ moonpayNetwork: "base",+ },+ 42161: {+ id: 42161,+ name: "Arbitrum One",+ rpcUrl: "https://arb1.arbitrum.io/rpc",+ blockExplorer: "https://arbiscan.io",+ nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },+ usdc: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",+ moonpayNetwork: "arbitrum",+ },+ 137: {+ id: 137,+ name: "Polygon",+ rpcUrl: "https://polygon-rpc.com",+ blockExplorer: "https://polygonscan.com",+ nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },+ usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",+ moonpayNetwork: "polygon",+ },+ 56: {+ id: 56,+ name: "BNB Smart Chain",+ rpcUrl: "https://bsc-dataseed.binance.org",+ blockExplorer: "https://bscscan.com",+ nativeCurrency: { name: "BNB", symbol: "BNB", decimals: 18 },+ usdc: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",+ moonpayNetwork: "bsc",+ },+ 43114: {+ id: 43114,+ name: "Avalanche",+ rpcUrl: "https://api.avax.network/ext/bc/C/rpc",+ blockExplorer: "https://snowtrace.io",+ nativeCurrency: { name: "AVAX", symbol: "AVAX", decimals: 18 },+ usdc: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",+ moonpayNetwork: "avaxc",+ },+};++export const SUPPORTED_CHAIN_IDS = Object.keys(EVM_CHAINS).map(Number) as SupportedEvmChainId[];++export function getChain(chainId: SupportedEvmChainId): EvmChainConfig {+ const chain = EVM_CHAINS[chainId];+ if (!chain) throw new Error(`Unsupported chain: ${chainId}`);+ return chain;+}++export function isSupported(chainId: number): chainId is SupportedEvmChainId {+ return chainId in EVM_CHAINS;+}diff --git a/agent-payments-crosschain-sdk/src/constants.ts b/agent-payments-crosschain-sdk/src/constants.tsnew file mode 100644index 000000000..d7a8001a8--- /dev/null+++ b/agent-payments-crosschain-sdk/src/constants.ts@@ -0,0 +1,51 @@+/** Pump.fun cross-chain deposit API (MoonPay-powered) */+export const PUMP_CROSSCHAIN_API = "https://api.pump.fun/crosschain";++/** MoonPay widget base URL for fallback UI */+export const MOONPAY_WIDGET_URL = "https://buy.moonpay.com";++/** Solana USDC mint */+export const USDC_SOLANA_MINT = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";++/** Pump Agent Payments program */+export const PUMP_AGENT_PAYMENTS_PROGRAM = "AgenTMiC2hvxGebTsgmsD4HHBa8WEcqGFf87iwRRxLo7";++/** ERC-20 transfer + approve function selectors */+export const ERC20_ABI = [+ {+ name: "approve",+ type: "function",+ stateMutability: "nonpayable",+ inputs: [+ { name: "spender", type: "address" },+ { name: "amount", type: "uint256" },+ ],+ outputs: [{ name: "", type: "bool" }],+ },+ {+ name: "allowance",+ type: "function",+ stateMutability: "view",+ inputs: [+ { name: "owner", type: "address" },+ { name: "spender", type: "address" },+ ],+ outputs: [{ name: "", type: "uint256" }],+ },+ {+ name: "balanceOf",+ type: "function",+ stateMutability: "view",+ inputs: [{ name: "account", type: "address" }],+ outputs: [{ name: "", type: "uint256" }],+ },+] as const;++/** Quote expiry buffer — reject quotes within this many seconds of expiry */+export const QUOTE_EXPIRY_BUFFER_SECONDS = 30;++/** How often to poll for cross-chain payment status (ms) */+export const STATUS_POLL_INTERVAL_MS = 5_000;++/** Max wait before declaring a cross-chain payment failed (ms) */+export const STATUS_TIMEOUT_MS = 30 * 60 * 1_000; // 30 mindiff --git a/agent-payments-crosschain-sdk/src/evm/index.ts b/agent-payments-crosschain-sdk/src/evm/index.tsnew file mode 100644index 000000000..55f4f971a--- /dev/null+++ b/agent-payments-crosschain-sdk/src/evm/index.ts@@ -0,0 +1,4 @@+export * from "./quote.js";+export * from "./transaction.js";+export * from "./validate.js";+export { EVM_CHAINS, SUPPORTED_CHAIN_IDS, getChain, isSupported } from "../chains.js";diff --git a/agent-payments-crosschain-sdk/src/evm/quote.ts b/agent-payments-crosschain-sdk/src/evm/quote.tsnew file mode 100644index 000000000..5835a56e7--- /dev/null+++ b/agent-payments-crosschain-sdk/src/evm/quote.ts@@ -0,0 +1,109 @@+import type { Address } from "viem";+import type { CrossChainQuote, SupportedEvmChainId } from "../types.js";+import { getChain } from "../chains.js";+import { PUMP_CROSSCHAIN_API, QUOTE_EXPIRY_BUFFER_SECONDS } from "../constants.js";++export interface QuoteRequest {+ fromChainId: SupportedEvmChainId;+ /** Token address to pay with, or "native" for the chain's native currency */+ fromToken: Address | "native";+ /** Amount in the token's smallest unit (wei for ETH, 6-decimal for USDC) */+ fromAmount: bigint;+ /** Solana agent token mint the payment is destined for */+ agentMint: string;+}++interface PumpCrossChainQuoteResponse {+ quoteId: string;+ fromChainId: number;+ fromToken: string;+ fromAmount: string;+ toAmountUsdc: string;+ estimatedUsd: number;+ bridgeFeeUsd: number;+ estimatedTimeSeconds: number;+ expiresAt: number;+}++/**+ * Fetch a cross-chain payment quote from Pump.fun's routing API.+ * The quote is valid for ~60 seconds (check expiresAt before submitting).+ */+export async function getQuote(+ request: QuoteRequest,+ apiKey?: string+): Promise<CrossChainQuote> {+ const chain = getChain(request.fromChainId);+ const fromTokenAddr =+ request.fromToken === "native"+ ? "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"+ : request.fromToken;++ const params = new URLSearchParams({+ fromChainId: String(request.fromChainId),+ fromToken: fromTokenAddr,+ fromAmount: String(request.fromAmount),+ toNetwork: "solana",+ toToken: "usdc",+ agentMint: request.agentMint,+ fromNetwork: chain.moonpayNetwork,+ });++ const headers: Record<string, string> = {+ "Content-Type": "application/json",+ };+ if (apiKey) headers["x-api-key"] = apiKey;++ const res = await fetch(`${PUMP_CROSSCHAIN_API}/quote?${params}`, { headers });++ if (!res.ok) {+ const body = await res.text().catch(() => "");+ throw new Error(`Quote request failed (${res.status}): ${body}`);+ }++ const data: PumpCrossChainQuoteResponse = await res.json();++ return {+ fromChainId: request.fromChainId,+ fromToken: request.fromToken,+ fromAmount: BigInt(data.fromAmount),+ toAmountUsdc: BigInt(data.toAmountUsdc),+ estimatedUsd: data.estimatedUsd,+ bridgeFeeUsd: data.bridgeFeeUsd,+ estimatedTimeSeconds: data.estimatedTimeSeconds,+ quoteId: data.quoteId,+ expiresAt: data.expiresAt,+ };+}++/** Throws if the quote has expired (with buffer). */+export function assertQuoteValid(quote: CrossChainQuote): void {+ const nowSeconds = Math.floor(Date.now() / 1000);+ if (nowSeconds >= quote.expiresAt - QUOTE_EXPIRY_BUFFER_SECONDS) {+ throw new Error(+ `Quote ${quote.quoteId} has expired. Fetch a new quote before submitting.`+ );+ }+}++/**+ * Convenience: get the USD price of a token amount using Pump.fun price API.+ * Useful for displaying "you're paying ~$X" before fetching a full quote.+ */+export async function getTokenUsdPrice(+ chainId: SupportedEvmChainId,+ tokenAddress: Address | "native"+): Promise<number> {+ const chain = getChain(chainId);+ const addr =+ tokenAddress === "native"+ ? "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"+ : tokenAddress;++ const res = await fetch(+ `${PUMP_CROSSCHAIN_API}/price?network=${chain.moonpayNetwork}&token=${addr}`+ );+ if (!res.ok) throw new Error(`Price fetch failed (${res.status})`);+ const data: { usdPrice: number } = await res.json();+ return data.usdPrice;+}diff --git a/agent-payments-crosschain-sdk/src/evm/transaction.ts b/agent-payments-crosschain-sdk/src/evm/transaction.tsnew file mode 100644index 000000000..6d0c5919c--- /dev/null+++ b/agent-payments-crosschain-sdk/src/evm/transaction.ts@@ -0,0 +1,134 @@+import {+ encodeFunctionData,+ maxUint256,+ type Address,+ type Hex,+} from "viem";+import type { EvmPaymentParams, EvmPaymentTransaction } from "../types.js";+import { getChain } from "../chains.js";+import { ERC20_ABI, PUMP_CROSSCHAIN_API } from "../constants.js";+import { assertQuoteValid } from "./quote.js";++interface PumpBridgeTxResponse {+ /** Address of the Pump/MoonPay bridge contract to call */+ to: string;+ /** Encoded calldata */+ data: string;+ /** Native value to send (hex string) */+ value: string;+ /** ERC-20 spender that needs approval (absent when paying with native) */+ approvalSpender?: string;+}++/**+ * Fetch the bridge transaction calldata from Pump.fun's cross-chain API+ * and wrap it with an optional ERC-20 approval transaction.+ *+ * The returned transactions should be sent in order:+ * 1. approval (if present) — wait for confirmation+ * 2. bridge+ */+export async function buildEvmPaymentTransaction(+ params: EvmPaymentParams,+ apiKey?: string+): Promise<EvmPaymentTransaction> {+ assertQuoteValid(params.quote);++ const chain = getChain(params.quote.fromChainId);+ const headers: Record<string, string> = { "Content-Type": "application/json" };+ if (apiKey) headers["x-api-key"] = apiKey;++ const res = await fetch(`${PUMP_CROSSCHAIN_API}/build-tx`, {+ method: "POST",+ headers,+ body: JSON.stringify({+ quoteId: params.quote.quoteId,+ fromChainId: params.quote.fromChainId,+ fromToken:+ params.quote.fromToken === "native"+ ? "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"+ : params.quote.fromToken,+ fromAmount: params.quote.fromAmount.toString(),+ sender: params.sender,+ agentMint: params.agentMint,+ destinationSolanaWallet: params.destinationSolanaWallet,+ memo: params.memo,+ }),+ });++ if (!res.ok) {+ const body = await res.text().catch(() => "");+ throw new Error(`Bridge tx build failed (${res.status}): ${body}`);+ }++ const data: PumpBridgeTxResponse = await res.json();++ const bridge: EvmPaymentTransaction["bridge"] = {+ to: data.to as Address,+ data: data.data as Hex,+ value: BigInt(data.value),+ chainId: params.quote.fromChainId,+ };++ // ERC-20 approval required when not paying with native currency+ if (+ params.quote.fromToken !== "native" &&+ data.approvalSpender+ ) {+ const approvalData = encodeFunctionData({+ abi: ERC20_ABI,+ functionName: "approve",+ args: [data.approvalSpender as Address, maxUint256],+ });++ return {+ approval: {+ to: params.quote.fromToken as Address,+ data: approvalData,+ value: 0n,+ },+ bridge,+ };+ }++ return { bridge };+}++/**+ * Check whether the sender already has sufficient ERC-20 allowance,+ * so the UI can skip showing an approval step.+ */+export async function checkAllowance(+ tokenAddress: Address,+ owner: Address,+ spender: Address,+ amount: bigint,+ rpcUrl: string+): Promise<boolean> {+ const body = {+ jsonrpc: "2.0",+ id: 1,+ method: "eth_call",+ params: [+ {+ to: tokenAddress,+ data: encodeFunctionData({+ abi: ERC20_ABI,+ functionName: "allowance",+ args: [owner, spender],+ }),+ },+ "latest",+ ],+ };++ const res = await fetch(rpcUrl, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify(body),+ });++ const json: { result: Hex } = await res.json();+ const allowance = BigInt(json.result);+ return allowance >= amount;+}diff --git a/agent-payments-crosschain-sdk/src/evm/validate.ts b/agent-payments-crosschain-sdk/src/evm/validate.tsnew file mode 100644index 000000000..df3353b0f--- /dev/null+++ b/agent-payments-crosschain-sdk/src/evm/validate.ts@@ -0,0 +1,83 @@+import type {+ CrossChainPaymentStatusResult,+ EvmPaymentReceipt,+} from "../types.js";+import { PUMP_CROSSCHAIN_API, STATUS_POLL_INTERVAL_MS, STATUS_TIMEOUT_MS } from "../constants.js";++/**+ * Poll Pump.fun's cross-chain API until the payment arrives on Solana+ * or the timeout is reached.+ *+ * Resolves with status "arrived_on_solana" and the Solana tx signature,+ * or rejects with the last known status on timeout.+ */+export async function waitForSolanaArrival(+ receipt: EvmPaymentReceipt,+ opts: { timeoutMs?: number; pollIntervalMs?: number } = {}+): Promise<CrossChainPaymentStatusResult> {+ const timeout = opts.timeoutMs ?? STATUS_TIMEOUT_MS;+ const interval = opts.pollIntervalMs ?? STATUS_POLL_INTERVAL_MS;+ const deadline = Date.now() + timeout;++ while (Date.now() < deadline) {+ const status = await getPaymentStatus(receipt.depositId);++ if (status.status === "arrived_on_solana" || status.status === "failed") {+ return status;+ }++ await new Promise((resolve) => setTimeout(resolve, interval));+ }++ throw new Error(+ `Cross-chain payment ${receipt.depositId} did not arrive within ${timeout / 1000}s`+ );+}++/** Single status check — use this if you want to poll manually. */+export async function getPaymentStatus(+ depositId: string+): Promise<CrossChainPaymentStatusResult> {+ const res = await fetch(`${PUMP_CROSSCHAIN_API}/status/${depositId}`);++ if (!res.ok) {+ const body = await res.text().catch(() => "");+ throw new Error(`Status check failed (${res.status}): ${body}`);+ }++ const data: {+ status: string;+ solanaSignature?: string;+ error?: string;+ } = await res.json();++ const mapped = mapStatus(data.status);++ return {+ status: mapped,+ depositId,+ solanaSignature: data.solanaSignature,+ error: data.error,+ };+}++function mapStatus(raw: string): CrossChainPaymentStatusResult["status"] {+ switch (raw) {+ case "pending":+ case "waitingForDeposit":+ return "pending_evm_confirmation";+ case "processing":+ case "bridging":+ case "inTransit":+ return "bridging";+ case "completed":+ case "settled":+ return "arrived_on_solana";+ case "failed":+ case "expired":+ case "refunded":+ return "failed";+ default:+ return "bridging";+ }+}diff --git a/agent-payments-crosschain-sdk/src/solana/index.ts b/agent-payments-crosschain-sdk/src/solana/index.tsnew file mode 100644index 000000000..dcb06bd53--- /dev/null+++ b/agent-payments-crosschain-sdk/src/solana/index.ts@@ -0,0 +1,5 @@+// Full re-export of the Solana agent payments SDK.+// Consumers can import everything Solana-related from this sub-path:+// import { PumpAgent, PumpAgentOffline } from "@pump-fun/agent-payments-crosschain-sdk/solana"+export * from "@pump-fun/agent-payments-sdk";+export * as x402Solana from "@pump-fun/agent-payments-sdk/x402";diff --git a/agent-payments-crosschain-sdk/src/types.ts b/agent-payments-crosschain-sdk/src/types.tsnew file mode 100644index 000000000..423837fb7--- /dev/null+++ b/agent-payments-crosschain-sdk/src/types.ts@@ -0,0 +1,98 @@+import type { Address, Hash, Hex } from "viem";++export type SupportedEvmChainId =+ | 1 // Ethereum+ | 8453 // Base+ | 42161 // Arbitrum One+ | 137 // Polygon+ | 56 // BNB Smart Chain+ | 43114; // Avalanche++export interface EvmChainConfig {+ id: SupportedEvmChainId;+ name: string;+ rpcUrl: string;+ blockExplorer: string;+ nativeCurrency: { name: string; symbol: string; decimals: number };+ usdc: Address;+ /** MoonPay network identifier for deposit routing */+ moonpayNetwork: string;+}++/** A cross-chain payment quote returned before the user signs anything. */+export interface CrossChainQuote {+ /** Chain the user is paying from */+ fromChainId: SupportedEvmChainId;+ /** Token the user is paying with (address or "native") */+ fromToken: Address | "native";+ /** Amount the user sends, in the fromToken's smallest unit */+ fromAmount: bigint;+ /** Amount the agent vault receives in USDC on Solana (6 decimals) */+ toAmountUsdc: bigint;+ /** Estimated USD value of the payment */+ estimatedUsd: number;+ /** Bridge/routing fee in USD */+ bridgeFeeUsd: number;+ /** Estimated seconds for funds to arrive on Solana */+ estimatedTimeSeconds: number;+ /** Opaque ID used to track this quote through to settlement */+ quoteId: string;+ /** Unix timestamp after which this quote expires */+ expiresAt: number;+}++/** Parameters for building the EVM-side payment transaction. */+export interface EvmPaymentParams {+ quote: CrossChainQuote;+ /** Solana agent token mint address (base58) */+ agentMint: string;+ /** Solana wallet address that will be credited (base58) */+ destinationSolanaWallet: string;+ /** Arbitrary memo / invoice identifier (u64 as string) */+ memo: string;+ /** EVM payer address */+ sender: Address;+}++/** The built EVM transaction(s) ready for the user to sign. */+export interface EvmPaymentTransaction {+ /** ERC-20 approval tx — undefined when paying with native ETH */+ approval?: {+ to: Address;+ data: Hex;+ value: bigint;+ };+ /** The bridge / swap transaction */+ bridge: {+ to: Address;+ data: Hex;+ value: bigint;+ chainId: SupportedEvmChainId;+ };+}++/** Result returned after the EVM transaction is confirmed. */+export interface EvmPaymentReceipt {+ txHash: Hash;+ chainId: SupportedEvmChainId;+ fromAmount: bigint;+ fromToken: Address | "native";+ /** MoonPay deposit/order ID for status polling */+ depositId: string;+ /** Estimated Solana arrival time as unix timestamp */+ estimatedArrivalAt: number;+}++/** Status of an in-flight cross-chain payment. */+export type CrossChainPaymentStatus =+ | "pending_evm_confirmation"+ | "bridging"+ | "arrived_on_solana"+ | "failed";++export interface CrossChainPaymentStatusResult {+ status: CrossChainPaymentStatus;+ depositId: string;+ solanaSignature?: string;+ error?: string;+}diff --git a/agent-payments-crosschain-sdk/tsconfig.json b/agent-payments-crosschain-sdk/tsconfig.jsonnew file mode 100644index 000000000..a931ceada--- /dev/null+++ b/agent-payments-crosschain-sdk/tsconfig.json@@ -0,0 +1,18 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "module": "ESNext",+ "moduleResolution": "bundler",+ "strict": true,+ "declaration": true,+ "declarationMap": true,+ "sourceMap": true,+ "outDir": "./dist",+ "rootDir": "./src",+ "esModuleInterop": true,+ "skipLibCheck": true,+ "resolveJsonModule": true+ },+ "include": ["src"],+ "exclude": ["node_modules", "dist"]+}diff --git a/agent-payments-crosschain-sdk/tsup.config.ts b/agent-payments-crosschain-sdk/tsup.config.tsnew file mode 100644index 000000000..3facd0a3e--- /dev/null+++ b/agent-payments-crosschain-sdk/tsup.config.ts@@ -0,0 +1,16 @@+import { defineConfig } from "tsup";++export default defineConfig({+ entry: {+ index: "src/index.ts",+ "evm/index": "src/evm/index.ts",+ "solana/index": "src/solana/index.ts",+ "x402/index": "src/x402/index.ts",+ },+ format: ["esm", "cjs"],+ dts: true,+ sourcemap: true,+ clean: true,+ splitting: false,+ treeshake: true,+});