@1llet.xyz/erc4337-gasless-sdk 0.4.23 → 0.4.25

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.js CHANGED
@@ -56,6 +56,45 @@ var init_facilitator = __esm({
56
56
  messageTransmitter: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64",
57
57
  rpcUrl: "https://opt-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN"
58
58
  // Assuming same key works or public
59
+ },
60
+ Gnosis: {
61
+ chainId: 100,
62
+ chain: chains.gnosis,
63
+ usdc: "0x2a22f9c3b48403ebD92cF06fF916b322a30dB834",
64
+ // EURe (or USDC on Gnosis? The user is swapping USDT -> USDC, wait. The user log says GNOSIS -> Optimism (USDT -> USDC).
65
+ // For verification, we just need RPC. The 'usdc' field is for CCTP, but verify logic just needs `rpcUrl`.
66
+ // I will populate others as placeholders if unknown.
67
+ usdcName: "USDC",
68
+ // Placeholder
69
+ usdcVersion: "2",
70
+ domain: 0,
71
+ // Placeholder
72
+ tokenMessenger: "0x0000000000000000000000000000000000000000",
73
+ messageTransmitter: "0x0000000000000000000000000000000000000000",
74
+ rpcUrl: "https://rpc.gnosischain.com"
75
+ },
76
+ Arbitrum: {
77
+ chainId: 42161,
78
+ chain: chains.arbitrum,
79
+ usdc: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
80
+ usdcName: "USD Coin",
81
+ usdcVersion: "2",
82
+ domain: 3,
83
+ tokenMessenger: "0x19330d10D9Cc8751218eaf51E8885D058642E08A",
84
+ messageTransmitter: "0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",
85
+ rpcUrl: "https://arb-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN"
86
+ },
87
+ Polygon: {
88
+ chainId: 137,
89
+ chain: chains.polygon,
90
+ usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
91
+ usdcName: "USD Coin",
92
+ usdcVersion: "2",
93
+ domain: 7,
94
+ // Placeholder? CCTP domain for Polygon is 7? I should check if I had it elsewhere.
95
+ tokenMessenger: "0x0000000000000000000000000000000000000000",
96
+ messageTransmitter: "0x0000000000000000000000000000000000000000",
97
+ rpcUrl: "https://polygon-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN"
59
98
  }
60
99
  };
61
100
  }
@@ -2056,7 +2095,9 @@ var NearStrategy = class {
2056
2095
  transport: http4(networkConfig.rpcUrl)
2057
2096
  });
2058
2097
  try {
2098
+ console.log(`[NearStrategy] Waiting for receipt...`);
2059
2099
  const receipt = await publicClient.waitForTransactionReceipt({ hash: depositTxHash });
2100
+ console.log(`[NearStrategy] Receipt found. Status: ${receipt.status}`);
2060
2101
  if (receipt.status === "success") {
2061
2102
  return {
2062
2103
  success: true,
@@ -2068,9 +2109,13 @@ var NearStrategy = class {
2068
2109
  completed: true
2069
2110
  }
2070
2111
  };
2112
+ } else {
2113
+ console.error(`[NearStrategy] Transaction failed. Status: ${receipt.status}`);
2114
+ return { success: false, errorReason: `Transaction Reverted on-chain (Status: ${receipt.status})` };
2071
2115
  }
2072
2116
  } catch (e) {
2073
- return { success: false, errorReason: `Invalid deposit transaction: ${e.message}` };
2117
+ console.error(`[NearStrategy] Verification Error:`, e);
2118
+ return { success: false, errorReason: `Verification Error: ${e.message}` };
2074
2119
  }
2075
2120
  }
2076
2121
  try {