@1llet.xyz/erc4337-gasless-sdk 0.4.11 → 0.4.13
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +34 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -141,6 +141,7 @@ declare class BundlerClient {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
declare const BASE_MAINNET: ChainConfig;
|
|
144
|
+
declare const OPTIMISM_MAINNET: ChainConfig;
|
|
144
145
|
declare const GNOSIS_MAINNET: ChainConfig;
|
|
145
146
|
declare const BASE_SEPOLIA: ChainConfig;
|
|
146
147
|
declare const CHAIN_CONFIGS: Record<number, ChainConfig>;
|
|
@@ -369,4 +370,4 @@ declare class StandardBridgeStrategy implements BridgeStrategy {
|
|
|
369
370
|
execute(context: BridgeContext): Promise<SettleResponse>;
|
|
370
371
|
}
|
|
371
372
|
|
|
372
|
-
export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BridgeManager, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, type ChainConfig, GNOSIS_MAINNET, type GasEstimate, GaslessStrategy, NearStrategy, StandardBridgeStrategy, type Token, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, smartAccountAbi };
|
|
373
|
+
export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BridgeManager, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, type ChainConfig, GNOSIS_MAINNET, type GasEstimate, GaslessStrategy, NearStrategy, OPTIMISM_MAINNET, StandardBridgeStrategy, type Token, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, smartAccountAbi };
|
package/dist/index.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ declare class BundlerClient {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
declare const BASE_MAINNET: ChainConfig;
|
|
144
|
+
declare const OPTIMISM_MAINNET: ChainConfig;
|
|
144
145
|
declare const GNOSIS_MAINNET: ChainConfig;
|
|
145
146
|
declare const BASE_SEPOLIA: ChainConfig;
|
|
146
147
|
declare const CHAIN_CONFIGS: Record<number, ChainConfig>;
|
|
@@ -369,4 +370,4 @@ declare class StandardBridgeStrategy implements BridgeStrategy {
|
|
|
369
370
|
execute(context: BridgeContext): Promise<SettleResponse>;
|
|
370
371
|
}
|
|
371
372
|
|
|
372
|
-
export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BridgeManager, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, type ChainConfig, GNOSIS_MAINNET, type GasEstimate, GaslessStrategy, NearStrategy, StandardBridgeStrategy, type Token, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, smartAccountAbi };
|
|
373
|
+
export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BridgeManager, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, type ChainConfig, GNOSIS_MAINNET, type GasEstimate, GaslessStrategy, NearStrategy, OPTIMISM_MAINNET, StandardBridgeStrategy, type Token, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, smartAccountAbi };
|
package/dist/index.js
CHANGED
|
@@ -719,6 +719,37 @@ var BASE_MAINNET = {
|
|
|
719
719
|
}
|
|
720
720
|
]
|
|
721
721
|
};
|
|
722
|
+
var OPTIMISM_MAINNET = {
|
|
723
|
+
chain: chains.optimism,
|
|
724
|
+
bundlerUrl: `${BUNDLER_URL}/rpc?chain=optimism`,
|
|
725
|
+
// Dynamic Bundler URL
|
|
726
|
+
// Addresses
|
|
727
|
+
entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
728
|
+
factoryAddress: "0x3CE963866d3Be7Fe4354DBe892Aab52a0a18aeb2",
|
|
729
|
+
paymasterAddress: "0x0dB771d11F84E8541AA651363DF14E4401d01216",
|
|
730
|
+
tokens: [
|
|
731
|
+
{
|
|
732
|
+
symbol: "USDC",
|
|
733
|
+
decimals: 6,
|
|
734
|
+
address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
symbol: "USDT",
|
|
738
|
+
decimals: 6,
|
|
739
|
+
address: "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
symbol: "OP",
|
|
743
|
+
decimals: 18,
|
|
744
|
+
address: "0x4200000000000000000000000000000000000042"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
symbol: "ETH",
|
|
748
|
+
decimals: 18,
|
|
749
|
+
address: "0x0000000000000000000000000000000000000000"
|
|
750
|
+
}
|
|
751
|
+
]
|
|
752
|
+
};
|
|
722
753
|
var GNOSIS_MAINNET = {
|
|
723
754
|
chain: chains.gnosis,
|
|
724
755
|
bundlerUrl: `${BUNDLER_URL}/rpc?chain=gnosis`,
|
|
@@ -784,7 +815,8 @@ var BASE_SEPOLIA = {
|
|
|
784
815
|
var CHAIN_CONFIGS = {
|
|
785
816
|
[chains.base.id]: BASE_MAINNET,
|
|
786
817
|
[chains.baseSepolia.id]: BASE_SEPOLIA,
|
|
787
|
-
[chains.gnosis.id]: GNOSIS_MAINNET
|
|
818
|
+
[chains.gnosis.id]: GNOSIS_MAINNET,
|
|
819
|
+
[chains.optimism.id]: OPTIMISM_MAINNET
|
|
788
820
|
};
|
|
789
821
|
|
|
790
822
|
// src/constants/facilitator.ts
|
|
@@ -2114,6 +2146,7 @@ exports.CHAIN_CONFIGS = CHAIN_CONFIGS;
|
|
|
2114
2146
|
exports.GNOSIS_MAINNET = GNOSIS_MAINNET;
|
|
2115
2147
|
exports.GaslessStrategy = GaslessStrategy;
|
|
2116
2148
|
exports.NearStrategy = NearStrategy;
|
|
2149
|
+
exports.OPTIMISM_MAINNET = OPTIMISM_MAINNET;
|
|
2117
2150
|
exports.StandardBridgeStrategy = StandardBridgeStrategy;
|
|
2118
2151
|
exports.entryPointAbi = entryPointAbi;
|
|
2119
2152
|
exports.erc20Abi = erc20Abi;
|