uvd-x402-sdk 2.46.0 → 2.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +65 -0
  2. package/dist/adapters/index.d.mts +3 -3
  3. package/dist/adapters/index.d.ts +3 -3
  4. package/dist/backend/index.d.mts +2 -2
  5. package/dist/backend/index.d.ts +2 -2
  6. package/dist/backend/index.js +7 -1
  7. package/dist/backend/index.js.map +1 -1
  8. package/dist/backend/index.mjs +7 -1
  9. package/dist/backend/index.mjs.map +1 -1
  10. package/dist/{index-DgChnK_c.d.mts → index-CVW8AhRX.d.mts} +1 -1
  11. package/dist/{index-DgChnK_c.d.ts → index-CVW8AhRX.d.ts} +1 -1
  12. package/dist/{index-BidnFGw_.d.mts → index-Cic-RnwJ.d.mts} +1 -1
  13. package/dist/{index-H64xdjKh.d.ts → index-DVJ9S8lP.d.ts} +1 -1
  14. package/dist/index.d.mts +387 -5
  15. package/dist/index.d.ts +387 -5
  16. package/dist/index.js +375 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +364 -2
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/{ows-DTDixPzO.d.ts → ows-C-KmORG9.d.ts} +1 -1
  21. package/dist/{ows-CYIVd4xO.d.mts → ows-Z9v4GxOZ.d.mts} +1 -1
  22. package/dist/providers/algorand/index.d.mts +1 -1
  23. package/dist/providers/algorand/index.d.ts +1 -1
  24. package/dist/providers/evm/index.d.mts +1 -1
  25. package/dist/providers/evm/index.d.ts +1 -1
  26. package/dist/providers/near/index.d.mts +1 -1
  27. package/dist/providers/near/index.d.ts +1 -1
  28. package/dist/providers/solana/index.d.mts +1 -1
  29. package/dist/providers/solana/index.d.ts +1 -1
  30. package/dist/providers/stellar/index.d.mts +1 -1
  31. package/dist/providers/stellar/index.d.ts +1 -1
  32. package/dist/providers/sui/index.d.mts +1 -1
  33. package/dist/providers/sui/index.d.ts +1 -1
  34. package/dist/providers/xrpl/index.d.mts +1 -1
  35. package/dist/providers/xrpl/index.d.ts +1 -1
  36. package/dist/react/index.d.mts +3 -3
  37. package/dist/react/index.d.ts +3 -3
  38. package/dist/utils/index.d.mts +1 -1
  39. package/dist/utils/index.d.ts +1 -1
  40. package/dist/{wallet-0cX9Pw2F.d.mts → wallet-w7BnImDG.d.mts} +1 -1
  41. package/dist/{wallet-0cX9Pw2F.d.ts → wallet-w7BnImDG.d.ts} +1 -1
  42. package/package.json +38 -13
  43. package/src/backend/index.ts +22 -1
  44. package/src/erc8128.ts +443 -0
  45. package/src/escrow-preauth.ts +416 -0
  46. package/src/index.ts +36 -0
package/dist/index.mjs CHANGED
@@ -2546,6 +2546,362 @@ async function* streamTrafficEvents(options = {}) {
2546
2546
  reader.releaseLock();
2547
2547
  }
2548
2548
  }
2549
+ var DEFAULT_LABEL = "eth";
2550
+ var ALG = "eip191";
2551
+ var DEFAULT_VALIDITY_SEC = 300;
2552
+ var DEFAULT_CHAIN_ID = 8453;
2553
+ async function signRequest(options) {
2554
+ const key = options.privateKey.startsWith("0x") ? options.privateKey : `0x${options.privateKey}`;
2555
+ const wallet = new ethers.Wallet(key);
2556
+ return signRequestWithSigner({
2557
+ address: wallet.address,
2558
+ signMessage: (signatureBase) => wallet.signMessage(signatureBase),
2559
+ method: options.method,
2560
+ url: options.url,
2561
+ body: options.body,
2562
+ nonce: options.nonce,
2563
+ chainId: options.chainId,
2564
+ label: options.label,
2565
+ validitySec: options.validitySec
2566
+ });
2567
+ }
2568
+ async function signRequestWithWallet(wallet, options) {
2569
+ return signRequestWithSigner({
2570
+ ...options,
2571
+ address: wallet.getAddress(),
2572
+ signMessage: (signatureBase) => wallet.signMessage(signatureBase)
2573
+ });
2574
+ }
2575
+ async function signRequestWithSigner(options) {
2576
+ const {
2577
+ address: rawAddress,
2578
+ signMessage,
2579
+ method,
2580
+ url,
2581
+ body,
2582
+ nonce,
2583
+ chainId = DEFAULT_CHAIN_ID,
2584
+ label = DEFAULT_LABEL,
2585
+ validitySec = DEFAULT_VALIDITY_SEC
2586
+ } = options;
2587
+ const address = rawAddress.toLowerCase();
2588
+ const parsed = new URL(url);
2589
+ const authority = parsed.host;
2590
+ const path = parsed.pathname || "/";
2591
+ const query = parsed.search || void 0;
2592
+ const now = Math.floor(Date.now() / 1e3);
2593
+ const created = now;
2594
+ const expires = now + validitySec;
2595
+ const keyid = `erc8128:${chainId}:${address}`;
2596
+ const covered = ["@method", "@authority", "@path"];
2597
+ if (query) {
2598
+ covered.push("@query");
2599
+ }
2600
+ const headers = {
2601
+ Signature: "",
2602
+ "Signature-Input": ""
2603
+ };
2604
+ if (body !== void 0) {
2605
+ const digest = computeContentDigest(body);
2606
+ headers["Content-Digest"] = digest;
2607
+ covered.push("content-digest");
2608
+ }
2609
+ const sigBase = buildSignatureBase({
2610
+ method,
2611
+ authority,
2612
+ path,
2613
+ query,
2614
+ contentDigest: headers["Content-Digest"],
2615
+ covered,
2616
+ created,
2617
+ expires,
2618
+ nonce,
2619
+ keyid
2620
+ });
2621
+ const sigHex = await signMessage(sigBase);
2622
+ const sigBytes = ethers.getBytes(sigHex.startsWith("0x") ? sigHex : `0x${sigHex}`);
2623
+ const sigB64 = ethers.encodeBase64(sigBytes);
2624
+ const sigParams = buildSignatureParams({ covered, created, expires, nonce, keyid });
2625
+ headers.Signature = `${label}=:${sigB64}:`;
2626
+ headers["Signature-Input"] = `${label}=${sigParams}`;
2627
+ return headers;
2628
+ }
2629
+ async function fetchNonce(apiBase, timeoutMs = 1e4) {
2630
+ const url = `${apiBase.replace(/\/$/, "")}/api/v1/auth/erc8128/nonce`;
2631
+ const controller = new AbortController();
2632
+ const timer = setTimeout(() => controller.abort(), timeoutMs);
2633
+ try {
2634
+ const resp = await fetch(url, { signal: controller.signal });
2635
+ if (!resp.ok) {
2636
+ throw new Error(`Failed to fetch nonce: ${resp.status} ${resp.statusText}`);
2637
+ }
2638
+ const data = await resp.json();
2639
+ return data.nonce;
2640
+ } finally {
2641
+ clearTimeout(timer);
2642
+ }
2643
+ }
2644
+ function createSignedFetch(config) {
2645
+ const { apiBase, chainId, privateKey, wallet } = config;
2646
+ if (!privateKey && !wallet) {
2647
+ throw new X402Error(
2648
+ "createSignedFetch requires a signer: pass privateKey or wallet.",
2649
+ "WALLET_NOT_CONNECTED"
2650
+ );
2651
+ }
2652
+ return async (path, init) => {
2653
+ const url = `${apiBase.replace(/\/$/, "")}${path}`;
2654
+ const method = (init?.method || "GET").toUpperCase();
2655
+ const body = init?.body ? String(init.body) : void 0;
2656
+ const nonce = await fetchNonce(apiBase);
2657
+ const requestOptions = { method, url, body, nonce, chainId };
2658
+ const sigHeaders = wallet ? await signRequestWithWallet(wallet, requestOptions) : await signRequest({ ...requestOptions, privateKey });
2659
+ const headers = new Headers(init?.headers);
2660
+ headers.set("Signature", sigHeaders.Signature);
2661
+ headers.set("Signature-Input", sigHeaders["Signature-Input"]);
2662
+ if (sigHeaders["Content-Digest"]) {
2663
+ headers.set("Content-Digest", sigHeaders["Content-Digest"]);
2664
+ }
2665
+ if (body) {
2666
+ headers.set("Content-Type", headers.get("Content-Type") || "application/json");
2667
+ }
2668
+ return fetch(url, { ...init, headers, method });
2669
+ };
2670
+ }
2671
+ function computeContentDigest(body) {
2672
+ const hash = ethers.sha256(ethers.toUtf8Bytes(body));
2673
+ const b64 = ethers.encodeBase64(ethers.getBytes(hash));
2674
+ return `sha-256=:${b64}:`;
2675
+ }
2676
+ function buildSignatureBase(params) {
2677
+ const lines = [];
2678
+ for (const component of params.covered) {
2679
+ switch (component) {
2680
+ case "@method":
2681
+ lines.push(`"@method": ${params.method.toUpperCase()}`);
2682
+ break;
2683
+ case "@authority":
2684
+ lines.push(`"@authority": ${params.authority}`);
2685
+ break;
2686
+ case "@path":
2687
+ lines.push(`"@path": ${params.path}`);
2688
+ break;
2689
+ case "@query":
2690
+ lines.push(`"@query": ${params.query || "?"}`);
2691
+ break;
2692
+ case "content-digest":
2693
+ lines.push(`"content-digest": ${params.contentDigest || ""}`);
2694
+ break;
2695
+ }
2696
+ }
2697
+ const sigParams = buildSignatureParams({
2698
+ covered: params.covered,
2699
+ created: params.created,
2700
+ expires: params.expires,
2701
+ nonce: params.nonce,
2702
+ keyid: params.keyid
2703
+ });
2704
+ lines.push(`"@signature-params": ${sigParams}`);
2705
+ return lines.join("\n");
2706
+ }
2707
+ function buildSignatureParams(params) {
2708
+ const compStr = params.covered.map((c) => `"${c}"`).join(" ");
2709
+ const parts = [`(${compStr})`];
2710
+ parts.push(`created=${params.created}`);
2711
+ parts.push(`expires=${params.expires}`);
2712
+ if (params.nonce) {
2713
+ parts.push(`nonce="${params.nonce}"`);
2714
+ }
2715
+ parts.push(`keyid="${params.keyid}"`);
2716
+ parts.push(`alg="${ALG}"`);
2717
+ return parts.join(";");
2718
+ }
2719
+ var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
2720
+ var USDC_DECIMALS = 6;
2721
+ var ESCROW_DEPOSIT_LIMIT_USD = 100;
2722
+ var OPERATOR_FEE_BPS = 1300;
2723
+ var DEFAULT_MIN_FEE_BPS = 0;
2724
+ var DEFAULT_MAX_FEE_BPS = 1800;
2725
+ var RECEIVE_WITH_AUTHORIZATION_TYPES = {
2726
+ ReceiveWithAuthorization: [
2727
+ { name: "from", type: "address" },
2728
+ { name: "to", type: "address" },
2729
+ { name: "value", type: "uint256" },
2730
+ { name: "validAfter", type: "uint256" },
2731
+ { name: "validBefore", type: "uint256" },
2732
+ { name: "nonce", type: "bytes32" }
2733
+ ]
2734
+ };
2735
+ var PAYMENT_INFO_TUPLE = "tuple(address,address,address,address,uint120,uint48,uint48,uint48,uint16,uint16,address,uint256)";
2736
+ var ESCROW_TIER_WINDOWS = {
2737
+ micro: { pre: 3600, auth: 7200, refund: 86400 },
2738
+ standard: { pre: 7200, auth: 86400, refund: 604800 }
2739
+ };
2740
+ var REVIEW_WINDOW_SEC = 7 * 24 * 3600;
2741
+ var REFUND_WINDOW_SEC = 7 * 24 * 3600;
2742
+ var REQUIRED_NETWORK_KEYS = [
2743
+ "chain_id",
2744
+ "operator",
2745
+ "escrow",
2746
+ "token_collector",
2747
+ "usdc",
2748
+ "usdc_domain_name",
2749
+ "usdc_domain_version",
2750
+ "payment_info_typehash"
2751
+ ];
2752
+ function hex32(value) {
2753
+ return value.startsWith("0x") ? value : `0x${value}`;
2754
+ }
2755
+ function randomSalt() {
2756
+ const webCrypto = globalThis.crypto;
2757
+ if (webCrypto?.getRandomValues) {
2758
+ const bytes = new Uint8Array(32);
2759
+ webCrypto.getRandomValues(bytes);
2760
+ return ethers.hexlify(bytes);
2761
+ }
2762
+ return ethers.hexlify(ethers.randomBytes(32));
2763
+ }
2764
+ function computeEscrowNonce(chainId, escrowAddress, paymentInfoTypehash, pi) {
2765
+ const coder = ethers.AbiCoder.defaultAbiCoder();
2766
+ const piTuple = [
2767
+ ethers.getAddress(pi.operator),
2768
+ ZERO_ADDRESS,
2769
+ // payer = 0 for the payer-agnostic hash
2770
+ ethers.getAddress(pi.receiver),
2771
+ ethers.getAddress(pi.token),
2772
+ BigInt(pi.maxAmount),
2773
+ // uint120
2774
+ pi.preApprovalExpiry,
2775
+ // uint48
2776
+ pi.authorizationExpiry,
2777
+ // uint48
2778
+ pi.refundExpiry,
2779
+ // uint48
2780
+ pi.minFeeBps,
2781
+ // uint16
2782
+ pi.maxFeeBps,
2783
+ // uint16
2784
+ ethers.getAddress(pi.feeReceiver),
2785
+ BigInt(hex32(pi.salt))
2786
+ // uint256
2787
+ ];
2788
+ const piHash = ethers.keccak256(
2789
+ coder.encode(["bytes32", PAYMENT_INFO_TUPLE], [hex32(paymentInfoTypehash), piTuple])
2790
+ );
2791
+ return ethers.keccak256(
2792
+ coder.encode(
2793
+ ["uint256", "address", "bytes32"],
2794
+ [chainId, ethers.getAddress(escrowAddress), piHash]
2795
+ )
2796
+ );
2797
+ }
2798
+ async function buildEscrowPreAuth(wallet, params) {
2799
+ const cfg = params.networkConfig;
2800
+ const missing = REQUIRED_NETWORK_KEYS.filter((key) => !cfg[key]);
2801
+ if (missing.length > 0) {
2802
+ throw new X402Error(
2803
+ `Incomplete escrow network config (missing ${missing.join(", ")}) \u2014 refusing to sign an EIP-3009 authorization with a mismatched domain.`,
2804
+ "INVALID_CONFIG"
2805
+ );
2806
+ }
2807
+ const maxAmount = BigInt(params.bountyAtomic);
2808
+ if (maxAmount <= 0n) {
2809
+ throw new X402Error(
2810
+ `Bounty must be positive, got ${maxAmount} atomic units`,
2811
+ "INVALID_AMOUNT"
2812
+ );
2813
+ }
2814
+ const depositLimitUsd = params.depositLimitUsd ?? ESCROW_DEPOSIT_LIMIT_USD;
2815
+ const depositLimitAtomic = BigInt(Math.round(depositLimitUsd * 10 ** USDC_DECIMALS));
2816
+ if (maxAmount > depositLimitAtomic) {
2817
+ throw new X402Error(
2818
+ `Bounty ${maxAmount} atomic units exceeds the on-chain escrow deposit limit ($${depositLimitUsd}).`,
2819
+ "INVALID_AMOUNT"
2820
+ );
2821
+ }
2822
+ const minFeeBps = cfg.min_fee_bps ?? DEFAULT_MIN_FEE_BPS;
2823
+ const maxFeeBps = cfg.max_fee_bps ?? DEFAULT_MAX_FEE_BPS;
2824
+ if (maxFeeBps < OPERATOR_FEE_BPS) {
2825
+ throw new X402Error(
2826
+ `maxFeeBps=${maxFeeBps} cannot cover the operator's ${OPERATOR_FEE_BPS} bps static fee \u2014 the on-chain release would revert.`,
2827
+ "INVALID_CONFIG"
2828
+ );
2829
+ }
2830
+ const tierKey = params.tier ?? "micro";
2831
+ const windows = cfg.tiers?.[tierKey] ?? ESCROW_TIER_WINDOWS[tierKey];
2832
+ if (!windows) {
2833
+ const known = [.../* @__PURE__ */ new Set([...Object.keys(cfg.tiers ?? {}), ...Object.keys(ESCROW_TIER_WINDOWS)])].sort();
2834
+ throw new X402Error(
2835
+ `Unknown escrow tier '${tierKey}' \u2014 known tiers: ${known.join(", ")}`,
2836
+ "INVALID_CONFIG"
2837
+ );
2838
+ }
2839
+ const now = Math.floor(Date.now() / 1e3);
2840
+ const reviewBase = Math.max(now, params.reviewDeadlineSec ?? now);
2841
+ const authExpiry = Math.max(now + windows.auth, reviewBase + REVIEW_WINDOW_SEC);
2842
+ const refundExpiry = Math.max(now + windows.refund, authExpiry + REFUND_WINDOW_SEC);
2843
+ const paymentInfo = {
2844
+ operator: ethers.getAddress(cfg.operator),
2845
+ receiver: ethers.getAddress(params.workerWallet),
2846
+ token: ethers.getAddress(cfg.usdc),
2847
+ maxAmount: maxAmount.toString(),
2848
+ preApprovalExpiry: now + windows.pre,
2849
+ authorizationExpiry: authExpiry,
2850
+ refundExpiry,
2851
+ minFeeBps,
2852
+ maxFeeBps,
2853
+ feeReceiver: ethers.getAddress(cfg.operator),
2854
+ salt: randomSalt()
2855
+ };
2856
+ const nonce = computeEscrowNonce(
2857
+ cfg.chain_id,
2858
+ cfg.escrow,
2859
+ cfg.payment_info_typehash,
2860
+ paymentInfo
2861
+ );
2862
+ const payer = ethers.getAddress(params.payerWallet);
2863
+ const tokenCollector = ethers.getAddress(cfg.token_collector);
2864
+ const { signature } = await wallet.signTypedData(
2865
+ JSON.stringify({
2866
+ domain: {
2867
+ name: cfg.usdc_domain_name,
2868
+ version: cfg.usdc_domain_version,
2869
+ chainId: cfg.chain_id,
2870
+ verifyingContract: ethers.getAddress(cfg.usdc)
2871
+ },
2872
+ types: RECEIVE_WITH_AUTHORIZATION_TYPES,
2873
+ primaryType: "ReceiveWithAuthorization",
2874
+ message: {
2875
+ from: payer,
2876
+ to: tokenCollector,
2877
+ value: maxAmount.toString(),
2878
+ validAfter: "0",
2879
+ validBefore: String(paymentInfo.preApprovalExpiry),
2880
+ nonce
2881
+ }
2882
+ })
2883
+ );
2884
+ return JSON.stringify({
2885
+ x402Version: 2,
2886
+ scheme: "escrow",
2887
+ payload: {
2888
+ authorization: {
2889
+ from: payer,
2890
+ to: tokenCollector,
2891
+ value: maxAmount.toString(),
2892
+ validAfter: "0",
2893
+ validBefore: String(paymentInfo.preApprovalExpiry),
2894
+ nonce
2895
+ },
2896
+ signature,
2897
+ paymentInfo
2898
+ },
2899
+ paymentRequirements: {
2900
+ scheme: "escrow",
2901
+ network: `eip155:${cfg.chain_id}`
2902
+ }
2903
+ });
2904
+ }
2549
2905
 
2550
2906
  // src/backend/index.ts
2551
2907
  function parsePaymentHeader(headerValue) {
@@ -2739,9 +3095,15 @@ var FacilitatorClient = class {
2739
3095
  };
2740
3096
  }
2741
3097
  const result = await response.json();
3098
+ const transactionHash = result.transaction ?? result.transactionHash ?? result.transaction_hash;
3099
+ if (result.success && !transactionHash) {
3100
+ console.warn(
3101
+ "[x402] settle reported success but carried no transaction hash under transaction/transactionHash/transaction_hash \u2014 treat delivery as unconfirmed"
3102
+ );
3103
+ }
2742
3104
  return {
2743
3105
  success: true,
2744
- transactionHash: result.transactionHash || result.transaction_hash,
3106
+ transactionHash,
2745
3107
  network: result.network
2746
3108
  };
2747
3109
  } catch (error) {
@@ -3301,6 +3663,6 @@ var ESCROW_TIMEOUT_MS = {
3301
3663
  // Monad: 90s
3302
3664
  };
3303
3665
 
3304
- export { CAIP2_IDENTIFIERS, CAIP2_TO_CHAIN, DEFAULT_CHAIN, DEFAULT_CONFIG, DEFAULT_FACILITATOR_URL, DEFAULT_PAYMENT_HEADER, EVENT_KINDS, EnvKeyAdapter, FACILITATOR_ADDRESSES, FacilitatorClient, KEEPALIVE_INTERVAL_MS, OWSWalletAdapter, PAYMENT_HEADER_NAMES, SSEParser, SUPPORTED_CHAINS, TrafficStreamError, X402Client, X402Error, X402_CORS_HEADERS, X402_HEADER_NAMES, buildPaymentRequirements, buildSettleRequest, buildSettleRequestV2, buildVerifyRequest, buildVerifyRequestV2, caip2ToChain, chainToCAIP2, convertX402Header, create402Response, createHonoMiddleware, createPaymentHeaders, createPaymentMiddleware, createX402Header, createX402V1Header, createX402V2Header, decodeX402Header, detectX402Version, encodeX402Header, extractPaymentFromHeaders, generatePaymentOptions, getAlgorandChains, getChainById, getChainByName, getChainsByNetworkType, getChainsByToken, getCorsHeaders, getEVMChainIds, getEnabledChains, getExplorerAddressUrl, getExplorerTxUrl, getFacilitatorAddress, getNetworkType, getPaymentHeader, getSVMChains, getSuiChains, getSupportedTokens, getTokenConfig, getXRPLChains, isAlgorandChain, isCAIP2Format, isChainSupported, isSVMChain, isSuiChain, isTokenSupported, isXRPLChain, matchesFilters, parseNetworkIdentifier, parseTrafficEvent, streamTrafficEvents, validateAmount, validateRecipient };
3666
+ export { CAIP2_IDENTIFIERS, CAIP2_TO_CHAIN, DEFAULT_CHAIN, DEFAULT_CONFIG, DEFAULT_FACILITATOR_URL, DEFAULT_PAYMENT_HEADER, ESCROW_DEPOSIT_LIMIT_USD, ESCROW_TIER_WINDOWS, EVENT_KINDS, EnvKeyAdapter, FACILITATOR_ADDRESSES, FacilitatorClient, KEEPALIVE_INTERVAL_MS, OPERATOR_FEE_BPS, OWSWalletAdapter, PAYMENT_HEADER_NAMES, SSEParser, SUPPORTED_CHAINS, TrafficStreamError, X402Client, X402Error, X402_CORS_HEADERS, X402_HEADER_NAMES, buildEscrowPreAuth, buildPaymentRequirements, buildSettleRequest, buildSettleRequestV2, buildSignatureBase, buildSignatureParams, buildVerifyRequest, buildVerifyRequestV2, caip2ToChain, chainToCAIP2, computeEscrowNonce, convertX402Header, create402Response, createHonoMiddleware, createPaymentHeaders, createPaymentMiddleware, createSignedFetch, createX402Header, createX402V1Header, createX402V2Header, decodeX402Header, detectX402Version, encodeX402Header, extractPaymentFromHeaders, fetchNonce, generatePaymentOptions, getAlgorandChains, getChainById, getChainByName, getChainsByNetworkType, getChainsByToken, getCorsHeaders, getEVMChainIds, getEnabledChains, getExplorerAddressUrl, getExplorerTxUrl, getFacilitatorAddress, getNetworkType, getPaymentHeader, getSVMChains, getSuiChains, getSupportedTokens, getTokenConfig, getXRPLChains, isAlgorandChain, isCAIP2Format, isChainSupported, isSVMChain, isSuiChain, isTokenSupported, isXRPLChain, matchesFilters, parseNetworkIdentifier, parseTrafficEvent, signRequest, signRequestWithSigner, signRequestWithWallet, streamTrafficEvents, validateAmount, validateRecipient };
3305
3667
  //# sourceMappingURL=index.mjs.map
3306
3668
  //# sourceMappingURL=index.mjs.map