across-pay-mpp
v1.2.0
Published
Crosschain MPP payments via Across Protocol. Bridge from any chain, pay on Tempo.
Readme
MPP Tempo Buyer Demo
Tempo-first MPP buyer demo with Across pre-funding.
What Lives Here
src/buyer/contains the MPP buyer flow and Across funding logic.src/demo/contains runnable demo entrypoints.src/dev/contains local-only dev helpers and the local seller.STEP2-DEMO-PLAN.mdis the agreed build plan for the separate MPP Step 2 batching demo.STEP2-IMPLEMENTATION-SPEC.mdfreezes the request flow, headers, logs, and acceptance criteria for the Step 2 build.
Wallet Surface
The demo uses a Tempo-native smart account via Account.fromSecp256k1() from viem/tempo. This gives the buyer proper Tempo signature envelopes, access key support, and fee sponsorship capability — unlike a plain viem EOA.
The wallet is resolved through src/buyer/tempo-wallet.ts:
- Preferred env:
TEMPO_WALLET_PRIVATE_KEY - Backward-compatible fallback:
AGENT_PRIVATE_KEY
Commands
npm install
npm run preflight
npm run demo:local
npm run demo:external
npm run dev:server
npm run step2:serverNotes
demo:localtargets the local MPP dev seller by default.demo:externaltargets Firecrawl on Tempo mainnet.- The local dev server remains here for smoke testing and workflow demos, but the product-facing story is buyer-first.
