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.

1.2 KB
Raw Blame
// $THREE on-chain token layer — public surface consumed by Task 19 (paid
// spins) and Task 20 (token-priced listings) and the /api/token endpoint.
//
// Typical consumer flow:
//   import { issueQuote, verifyAndSettlePayment } from '../_lib/token/index.js';
//   const { token, quote } = await issueQuote({ purpose:'spin', usd: 0.50,
//       splitPolicy:'spin', refType:'spin', refId });
//   // ...client signs+sends one tx, returns { quoteToken: token, txSignature }
//   await verifyAndSettlePayment({ quoteToken: token, txSignature, userId });

export * from './config.js';
export * from './price.js';
export { issueQuote, verifyQuote } from './quote.js';
export {
	verifyOnChain,
	settlePayment,
	verifyAndSettlePayment,
	recordAllowancePayment,
	listPayments,
	creatorEarnings,
	economyStats,
	recordRewardsDistribution,
	listRewardsDistributions,
} from './payments.js';
export { computeRewardsDistribution } from './rewards.js';
export { allowanceEnabled, delegateAddress } from './allowance.js';
export {
	getAllowanceStatus,
	buildGrantTransaction,
	confirmAllowance,
	buildRevokeTransaction,
	pullFromAllowance,
	invalidateAllowanceStatus,
} from './allowance-ops.js';