@1llet.xyz/erc4337-gasless-sdk 0.4.52 → 0.4.54
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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1321,6 +1321,7 @@ var AVALANCHE = {
|
|
|
1321
1321
|
chain: chains.avalanche,
|
|
1322
1322
|
rpcUrl: chains.avalanche.rpcUrls.default.http[0],
|
|
1323
1323
|
supports7702: false,
|
|
1324
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=avalanche`,
|
|
1324
1325
|
erc4337: false,
|
|
1325
1326
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1326
1327
|
factoryAddress: "0x5D1D71FE2De5D1C52c7c11311332eC7f0CBf88aF",
|
|
@@ -1386,6 +1387,7 @@ var BNB = {
|
|
|
1386
1387
|
chain: chains.bsc,
|
|
1387
1388
|
rpcUrl: "https://bsc-dataseed.binance.org",
|
|
1388
1389
|
supports7702: true,
|
|
1390
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=bsc`,
|
|
1389
1391
|
erc4337: false,
|
|
1390
1392
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1391
1393
|
factoryAddress: "0x2d5dBD90d3aB35614cdf686a67A9889E56B20b27",
|
|
@@ -1449,6 +1451,7 @@ var POLYGON = {
|
|
|
1449
1451
|
rpcUrl: "https://polygon-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
|
|
1450
1452
|
supports7702: true,
|
|
1451
1453
|
erc4337: false,
|
|
1454
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=polygon`,
|
|
1452
1455
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1453
1456
|
factoryAddress: "0x31D1C59fcf5B78FE2a86187a53c84DcDa5B80EF6",
|
|
1454
1457
|
paymasterAddress: "0x24C82C9381F4615f1a73a5CdBB0Ffd5a432fA54C"
|
|
@@ -1515,6 +1518,7 @@ var ARBITRUM = {
|
|
|
1515
1518
|
evm: {
|
|
1516
1519
|
chain: chains.arbitrum,
|
|
1517
1520
|
rpcUrl: "https://arb-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
|
|
1521
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=arbitrum`,
|
|
1518
1522
|
supports7702: true,
|
|
1519
1523
|
erc4337: false,
|
|
1520
1524
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
@@ -1570,6 +1574,7 @@ var UNICHAIN = {
|
|
|
1570
1574
|
evm: {
|
|
1571
1575
|
chain: chains.unichain,
|
|
1572
1576
|
rpcUrl: "https://unichain-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
|
|
1577
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=unichain`,
|
|
1573
1578
|
supports7702: true,
|
|
1574
1579
|
erc4337: false,
|
|
1575
1580
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
@@ -1614,6 +1619,7 @@ var Monad = {
|
|
|
1614
1619
|
rpcUrl: chains.monad.rpcUrls.default.http[0],
|
|
1615
1620
|
supports7702: true,
|
|
1616
1621
|
erc4337: false,
|
|
1622
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=monad`,
|
|
1617
1623
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1618
1624
|
factoryAddress: "0xaaeA6D8f377e62599Aad75376F0C5e4F7EBF8f84",
|
|
1619
1625
|
paymasterAddress: "0xeA82B63e8dE3BFBd321A681D4511BC596E323162"
|
|
@@ -2161,8 +2167,8 @@ async function executeCCTPBridge(sourceChain, amount, crossChainConfig, facilita
|
|
|
2161
2167
|
abi: messageTransmitterAbi,
|
|
2162
2168
|
functionName: "receiveMessage",
|
|
2163
2169
|
args: [
|
|
2164
|
-
attestationResponse.message
|
|
2165
|
-
attestationResponse.attestation
|
|
2170
|
+
attestationResponse.message.startsWith("0x") ? attestationResponse.message : `0x${attestationResponse.message}`,
|
|
2171
|
+
attestationResponse.attestation.startsWith("0x") ? attestationResponse.attestation : `0x${attestationResponse.attestation}`
|
|
2166
2172
|
]
|
|
2167
2173
|
});
|
|
2168
2174
|
console.log(`[CCTP] Mint tx sent: ${mintHash}`);
|