UNPKG

run402-mcp

Version:

MCP server for Run402 — full-stack backend infrastructure for AI agents: Postgres, auth, storage, serverless functions and atomic deploys. Paid with x402/MPP. Includes $0.03 image generation.

38 lines • 1.66 kB
/** * The buyer half of the x402 `offer-receipt` extension: reading signed * offers from a 402 challenge and a signed receipt from a settlement * response, and recovering the EIP-712 signer of each. See VENDORED.md. */ export declare const OFFER_RECEIPT = "offer-receipt"; /** viem's `recoverTypedDataAddress`, passed in so this module loads without viem. */ export type RecoverTypedDataAddress = (args: { domain: { name: string; version: string; chainId: number; }; types: Record<string, ReadonlyArray<{ name: string; type: string; }>>; primaryType: string; message: Record<string, unknown>; signature: `0x${string}`; }) => Promise<`0x${string}`>; export declare function isEIP712SignedOffer(offer: unknown): boolean; export declare function isEIP712SignedReceipt(receipt: unknown): boolean; export declare function extractOffersFromPaymentRequired(paymentRequired: unknown): unknown[]; export declare function decodeSignedOffers(offers: unknown[]): unknown[]; export declare function findAcceptsObjectFromSignedOffer(offer: unknown, accepts: unknown[]): unknown | undefined; export declare function extractReceiptFromResponse(response: Response): unknown | undefined; export declare function offerReceiptVerifiers(recoverTypedDataAddress: RecoverTypedDataAddress): { verifyOfferSignatureEIP712(value: unknown): Promise<{ signer: `0x${string}`; payload: Record<string, unknown>; }>; verifyReceiptSignatureEIP712(value: unknown): Promise<{ signer: `0x${string}`; payload: Record<string, unknown>; }>; }; //# sourceMappingURL=index.d.ts.map