@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.mjs
CHANGED
|
@@ -1297,6 +1297,7 @@ var AVALANCHE = {
|
|
|
1297
1297
|
chain: avalanche,
|
|
1298
1298
|
rpcUrl: avalanche.rpcUrls.default.http[0],
|
|
1299
1299
|
supports7702: false,
|
|
1300
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=avalanche`,
|
|
1300
1301
|
erc4337: false,
|
|
1301
1302
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1302
1303
|
factoryAddress: "0x5D1D71FE2De5D1C52c7c11311332eC7f0CBf88aF",
|
|
@@ -1362,6 +1363,7 @@ var BNB = {
|
|
|
1362
1363
|
chain: bsc,
|
|
1363
1364
|
rpcUrl: "https://bsc-dataseed.binance.org",
|
|
1364
1365
|
supports7702: true,
|
|
1366
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=bsc`,
|
|
1365
1367
|
erc4337: false,
|
|
1366
1368
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1367
1369
|
factoryAddress: "0x2d5dBD90d3aB35614cdf686a67A9889E56B20b27",
|
|
@@ -1425,6 +1427,7 @@ var POLYGON = {
|
|
|
1425
1427
|
rpcUrl: "https://polygon-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
|
|
1426
1428
|
supports7702: true,
|
|
1427
1429
|
erc4337: false,
|
|
1430
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=polygon`,
|
|
1428
1431
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1429
1432
|
factoryAddress: "0x31D1C59fcf5B78FE2a86187a53c84DcDa5B80EF6",
|
|
1430
1433
|
paymasterAddress: "0x24C82C9381F4615f1a73a5CdBB0Ffd5a432fA54C"
|
|
@@ -1491,6 +1494,7 @@ var ARBITRUM = {
|
|
|
1491
1494
|
evm: {
|
|
1492
1495
|
chain: arbitrum,
|
|
1493
1496
|
rpcUrl: "https://arb-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
|
|
1497
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=arbitrum`,
|
|
1494
1498
|
supports7702: true,
|
|
1495
1499
|
erc4337: false,
|
|
1496
1500
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
@@ -1546,6 +1550,7 @@ var UNICHAIN = {
|
|
|
1546
1550
|
evm: {
|
|
1547
1551
|
chain: unichain,
|
|
1548
1552
|
rpcUrl: "https://unichain-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
|
|
1553
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=unichain`,
|
|
1549
1554
|
supports7702: true,
|
|
1550
1555
|
erc4337: false,
|
|
1551
1556
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
@@ -1590,6 +1595,7 @@ var Monad = {
|
|
|
1590
1595
|
rpcUrl: monad.rpcUrls.default.http[0],
|
|
1591
1596
|
supports7702: true,
|
|
1592
1597
|
erc4337: false,
|
|
1598
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=monad`,
|
|
1593
1599
|
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1594
1600
|
factoryAddress: "0xaaeA6D8f377e62599Aad75376F0C5e4F7EBF8f84",
|
|
1595
1601
|
paymasterAddress: "0xeA82B63e8dE3BFBd321A681D4511BC596E323162"
|
|
@@ -2137,8 +2143,8 @@ async function executeCCTPBridge(sourceChain, amount, crossChainConfig, facilita
|
|
|
2137
2143
|
abi: messageTransmitterAbi,
|
|
2138
2144
|
functionName: "receiveMessage",
|
|
2139
2145
|
args: [
|
|
2140
|
-
attestationResponse.message
|
|
2141
|
-
attestationResponse.attestation
|
|
2146
|
+
attestationResponse.message.startsWith("0x") ? attestationResponse.message : `0x${attestationResponse.message}`,
|
|
2147
|
+
attestationResponse.attestation.startsWith("0x") ? attestationResponse.attestation : `0x${attestationResponse.attestation}`
|
|
2142
2148
|
]
|
|
2143
2149
|
});
|
|
2144
2150
|
console.log(`[CCTP] Mint tx sent: ${mintHash}`);
|