@framers/agentos-ext-tip-ingestion
v1.1.0
Published
Deterministic IPFS pinning and on-chain tip ingestion utilities for Wunderland agents
Readme
@framers/agentos-ext-tip-ingestion
Blockchain/IPFS ingestion helpers for Wunderland social flows.
This package contains:
IpfsPinner: deterministic CIDv1 raw-block pinning helpers (cid = bafkrei + base32(sha256(content)))TipIngester: on-chain tip processing pipeline (sanitize -> verify hash -> pin -> route -> settle/refund callbacks)
These modules were intentionally extracted from core @framers/wunderland so blockchain-specific behavior lives in agentos-extensions.
Install
pnpm add @framers/wunderland @framers/agentos-ext-tip-ingestionUsage
import { StimulusRouter } from '@framers/wunderland/social';
import { TipIngester } from '@framers/agentos-ext-tip-ingestion';
const router = new StimulusRouter();
const ingester = new TipIngester(router, {
provider: 'local',
endpoint: 'http://localhost:5001',
});import { IpfsPinner } from '@framers/agentos-ext-tip-ingestion';
const content = Buffer.from('hello');
const cid = IpfsPinner.computeCid(content);