@usdctofiat/offramp 4.4.1 → 4.4.3

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.
package/dist/index.cjs CHANGED
@@ -39,6 +39,7 @@ __export(index_exports, {
39
39
  OFFRAMP_INTEGRATION_CHECKLIST: () => OFFRAMP_INTEGRATION_CHECKLIST,
40
40
  OFFRAMP_INTEGRATION_PLAYBOOKS: () => OFFRAMP_INTEGRATION_PLAYBOOKS,
41
41
  OFFRAMP_RESOURCE_LINKS: () => OFFRAMP_RESOURCE_LINKS,
42
+ OFFRAMP_UPSTREAM_SOURCE_TRUTHS: () => OFFRAMP_UPSTREAM_SOURCE_TRUTHS,
42
43
  Offramp: () => Offramp,
43
44
  OfframpError: () => OfframpError,
44
45
  PEER_EXTENSION_CHROME_URL: () => import_sdk8.PEER_EXTENSION_CHROME_URL,
@@ -84,7 +85,7 @@ var import_sdk5 = require("@zkp2p/sdk");
84
85
 
85
86
  // src/config.ts
86
87
  var import_sdk = require("@zkp2p/sdk");
87
- var SDK_VERSION = "4.4.1";
88
+ var SDK_VERSION = "4.4.3";
88
89
  var BASE_CHAIN_ID = 8453;
89
90
  var RUNTIME_ENV = "production";
90
91
  var API_BASE_URL = "https://api.zkp2p.xyz";
@@ -1768,6 +1769,28 @@ var OFFRAMP_RESOURCE_LINKS = {
1768
1769
  peerlyticsPricing: "https://peerlytics.xyz/pricing",
1769
1770
  npm: "https://www.npmjs.com/package/@usdctofiat/offramp"
1770
1771
  };
1772
+ var OFFRAMP_UPSTREAM_SOURCE_TRUTHS = [
1773
+ {
1774
+ label: "@zkp2p/sdk 0.6.2",
1775
+ href: "https://github.com/zkp2p/zkp2p-clients/tree/main/packages/sdk",
1776
+ description: "Primary upstream TypeScript SDK for contracts, Curator clients, payment-method catalogs, and the Peer extension bridge."
1777
+ },
1778
+ {
1779
+ label: "Curator API",
1780
+ href: "https://api.zkp2p.xyz",
1781
+ description: "Live maker registration, taker tier, quote, and signing REST surface. Key routes include /v2/makers/create and /v2/taker/tier."
1782
+ },
1783
+ {
1784
+ label: "Attestation service",
1785
+ href: "https://attestation-service.zkp2p.xyz",
1786
+ description: "Seller credential bundle upload and recovery path for SAR-capable payment rails. Do not invent credential fields."
1787
+ },
1788
+ {
1789
+ label: "@zkp2p/contracts-v2 0.2.4",
1790
+ href: "https://github.com/zkp2p/zkp2p-v2-contracts",
1791
+ description: "EscrowV2, Orchestrator, whitelist hook, and Base mainnet ABI source."
1792
+ }
1793
+ ];
1771
1794
  var sharedResources = [
1772
1795
  {
1773
1796
  label: "Developer portal",
@@ -2047,6 +2070,7 @@ var OFFRAMP_DEVELOPER_RESOURCES = {
2047
2070
  peerlyticsPricing: OFFRAMP_RESOURCE_LINKS.peerlyticsPricing,
2048
2071
  npm: OFFRAMP_RESOURCE_LINKS.npm
2049
2072
  },
2073
+ upstreamSourceTruths: OFFRAMP_UPSTREAM_SOURCE_TRUTHS,
2050
2074
  playbooks: OFFRAMP_INTEGRATION_PLAYBOOKS,
2051
2075
  checklist: OFFRAMP_INTEGRATION_CHECKLIST
2052
2076
  };
@@ -2064,6 +2088,7 @@ function getOfframpAgentPrompt(profile = "app") {
2064
2088
  "Build a USDC-to-fiat integration with @usdctofiat/offramp.",
2065
2089
  `Profile: ${profile}.`,
2066
2090
  "Before coding, read https://usdctofiat.xyz/skills/usdctofiat.md and https://usdctofiat.xyz/llms.txt.",
2091
+ "When protocol fields, addresses, proof payloads, or extension behavior are unclear, check OFFRAMP_DEVELOPER_RESOURCES.upstreamSourceTruths before guessing.",
2067
2092
  "Use Base mainnet chainId 8453 and a viem WalletClient; do not invent a sandbox.",
2068
2093
  "Do not add manual rate controls; SDK-created deposits must delegate to the Delegate vault.",
2069
2094
  "For PayPal, Wise, Venmo, and Cash App, recover EXTENSION_REGISTRATION_REQUIRED through the Peer extension registration flow.",
@@ -2083,6 +2108,7 @@ function getOfframpAgentPrompt(profile = "app") {
2083
2108
  OFFRAMP_INTEGRATION_CHECKLIST,
2084
2109
  OFFRAMP_INTEGRATION_PLAYBOOKS,
2085
2110
  OFFRAMP_RESOURCE_LINKS,
2111
+ OFFRAMP_UPSTREAM_SOURCE_TRUTHS,
2086
2112
  Offramp,
2087
2113
  OfframpError,
2088
2114
  PEER_EXTENSION_CHROME_URL,