@epoch-protocol/epoch-commons-sdk 0.1.13 → 0.1.15

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.
@@ -3,108 +3,91 @@ export const MIDEN_CHAIN_ID = 999999999;
3
3
  export const INTENT_REGISTRY_ADDRESS = {
4
4
  11155111: "0x299Ea355dBeDF225b3a88D67827a0a04dF943749",
5
5
  84532: "0x299Ea355dBeDF225b3a88D67827a0a04dF943749",
6
- 80002: "0x299Ea355dBeDF225b3a88D67827a0a04dF943749",
7
6
  11155420: "0x299Ea355dBeDF225b3a88D67827a0a04dF943749",
8
7
  };
9
8
  export const EPOCH_MODULE_SAFE_ADDRESS = {
10
9
  11155111: "0x1b4a3398102d42CA600Cb7e3f40a5495B4954071",
11
10
  84532: "0x1b4a3398102d42CA600Cb7e3f40a5495B4954071",
12
- 80002: "0x1b4a3398102d42CA600Cb7e3f40a5495B4954071",
13
11
  11155420: "0x1b4a3398102d42CA600Cb7e3f40a5495B4954071",
14
12
  };
15
13
  export const EPOCH_SAFE_INIT_SETUP = {
16
14
  11155111: "0xf460890181cB9C76EE404edE779555c9fEefB10e",
17
15
  84532: "0xf460890181cB9C76EE404edE779555c9fEefB10e",
18
- 80002: "0xf460890181cB9C76EE404edE779555c9fEefB10e",
19
16
  11155420: "0xf460890181cB9C76EE404edE779555c9fEefB10e",
20
17
  };
21
18
  export const SAFE_INIT_SETUP_FORWARDER = {
22
19
  11155111: "0x8c7192D248361844DBDdDa5dE58DF591996C44CB",
23
20
  84532: "0x8c7192D248361844DBDdDa5dE58DF591996C44CB",
24
- 80002: "0x8c7192D248361844DBDdDa5dE58DF591996C44CB",
25
21
  11155420: "0x8c7192D248361844DBDdDa5dE58DF591996C44CB",
26
22
  };
27
23
  export const SAFE_WEBAUTHN_SHARED_SIGNER = {
28
24
  11155111: "0x049b3EA3f45460dec04438312e70876f9325a737",
29
25
  84532: "0x049b3EA3f45460dec04438312e70876f9325a737",
30
- 80002: "0x049b3EA3f45460dec04438312e70876f9325a737",
31
26
  11155420: "0x049b3EA3f45460dec04438312e70876f9325a737",
32
27
  };
33
28
  export const SAFE_WEBAUTHN_SIGNER_FACTORY = {
34
29
  11155111: "0xE66584AFFD075E9224d3B0f36978ec0263cEd6FD",
35
30
  84532: "0xE66584AFFD075E9224d3B0f36978ec0263cEd6FD",
36
- 80002: "0xE66584AFFD075E9224d3B0f36978ec0263cEd6FD",
37
31
  11155420: "0xE66584AFFD075E9224d3B0f36978ec0263cEd6FD",
38
32
  };
39
33
  export const FCLP256Verifier = {
40
34
  11155111: "0xFB5D9DAddC16Bd61566c82Bf3F0659ce2B538bEE",
41
35
  84532: "0xFB5D9DAddC16Bd61566c82Bf3F0659ce2B538bEE",
42
- 80002: "0xFB5D9DAddC16Bd61566c82Bf3F0659ce2B538bEE",
43
36
  11155420: "0xFB5D9DAddC16Bd61566c82Bf3F0659ce2B538bEE",
44
37
  };
45
38
  //todo: update for testnets
46
39
  export const SAFE_PROXY_FACTORY_ADDRESS = {
47
40
  11155111: "0x6F0035ed7325d0DAaC2eB12562422Ae53faa682C",
48
41
  84532: "0x6F0035ed7325d0DAaC2eB12562422Ae53faa682C",
49
- 80002: "0x6F0035ed7325d0DAaC2eB12562422Ae53faa682C",
50
42
  11155420: "0x6F0035ed7325d0DAaC2eB12562422Ae53faa682C",
51
43
  };
52
44
  //todo: update for testnets
53
45
  export const SAFE_SINGLETON_ADDRESS = {
54
46
  11155111: "0x5FdB4DaE6733008c82652D4e1B4a8c02dA3F5175",
55
47
  84532: "0x5FdB4DaE6733008c82652D4e1B4a8c02dA3F5175",
56
- 80002: "0x5FdB4DaE6733008c82652D4e1B4a8c02dA3F5175",
57
48
  11155420: "0x5FdB4DaE6733008c82652D4e1B4a8c02dA3F5175",
58
49
  };
59
50
  //todo: update for testnets
60
51
  export const SAFE_7702_SINGLETON_ADDRESS = {
61
52
  11155111: "0x18F2d1EB128e64fE5EDcCa6A0Fa7702Aa44cf664",
62
53
  84532: "0x18F2d1EB128e64fE5EDcCa6A0Fa7702Aa44cf664",
63
- 80002: "0x18F2d1EB128e64fE5EDcCa6A0Fa7702Aa44cf664",
64
54
  11155420: "0x18F2d1EB128e64fE5EDcCa6A0Fa7702Aa44cf664",
65
55
  };
66
56
  export const SAFE_7579_MODULE_ADDRESS = {
67
57
  11155111: "0x5f73D1792f81Ee2356f99764904Cb03956F577d0",
68
58
  84532: "0x5f73D1792f81Ee2356f99764904Cb03956F577d0",
69
- 80002: "0x5f73D1792f81Ee2356f99764904Cb03956F577d0",
70
59
  11155420: "0x5f73D1792f81Ee2356f99764904Cb03956F577d0",
71
60
  };
72
61
  //todo: update for testnets
73
62
  export const SAFE_7579_REGISTRY_ADDRESS = {
74
63
  11155111: "0x6F1aBD911DBec98EEd1DfA470Ee98b61D3131A55",
75
64
  84532: "0x6F1aBD911DBec98EEd1DfA470Ee98b61D3131A55",
76
- 80002: "0x6F1aBD911DBec98EEd1DfA470Ee98b61D3131A55",
77
65
  11155420: "0x6F1aBD911DBec98EEd1DfA470Ee98b61D3131A55",
78
66
  };
79
67
  //todo: update for testnets
80
68
  export const EIP7702_SAFE_PROXY_ADDRESS = {
81
69
  11155111: "0xE60EcE6588DCcFb7373538034963B4D20a280DB0",
82
70
  84532: "0xc8490cDee50174A00105598AD615e2d00f0Cfb10",
83
- 80002: "0xc8490cDee50174A00105598AD615e2d00f0Cfb10",
84
71
  11155420: "0xc8490cDee50174A00105598AD615e2d00f0Cfb10",
85
72
  };
86
73
  export const METAMASK_EXEC_MANAGER = {
87
74
  11155111: "0xC913903b10f8Aa3bEf3e368EbDAeb13D73603524",
88
75
  84532: "0xC913903b10f8Aa3bEf3e368EbDAeb13D73603524",
89
- 80002: "0xC913903b10f8Aa3bEf3e368EbDAeb13D73603524",
90
76
  11155420: "0xC913903b10f8Aa3bEf3e368EbDAeb13D73603524",
91
77
  };
92
78
  export const EPOCH_ESCROW_ADDRESS = {
93
79
  11155111: "0xA88Ea7EB5f687d05e20b7232d698864A7c17e20C",
94
80
  84532: "0xA88Ea7EB5f687d05e20b7232d698864A7c17e20C",
95
- 80002: "0xA88Ea7EB5f687d05e20b7232d698864A7c17e20C",
96
81
  11155420: "0xA88Ea7EB5f687d05e20b7232d698864A7c17e20C",
97
82
  };
98
83
  export const SAFE_MULTISEND_ADDRESS = {
99
84
  11155111: "0x328AB3a53287503DF0EFED81928a2b45b3205B2A",
100
85
  84532: "0x328AB3a53287503DF0EFED81928a2b45b3205B2A",
101
- 80002: "0x328AB3a53287503DF0EFED81928a2b45b3205B2A",
102
86
  11155420: "0x328AB3a53287503DF0EFED81928a2b45b3205B2A",
103
87
  };
104
88
  export const SAFE_MULTISEND_CALL_ONLY_ADDRESS = {
105
89
  11155111: "0x944b129a384265D916fbEA3440CD2caA4925145c",
106
90
  84532: "0x944b129a384265D916fbEA3440CD2caA4925145c",
107
- 80002: "0x944b129a384265D916fbEA3440CD2caA4925145c",
108
91
  11155420: "0x944b129a384265D916fbEA3440CD2caA4925145c",
109
92
  };
110
93
  const CONTRACT_ADDRESSES = {
@@ -7,7 +7,7 @@ export declare const DUMMY_LENDING_PROTOCOL: "dummy-lending";
7
7
  export declare const DUMMY_LENDING_MARKET_ADDRESS = "0xa73c1ae0e4e9116020dba0a419f91585d73459ee";
8
8
  /** CREATE2 staking contract — same on all dummy-staking testnets. */
9
9
  export declare const DUMMY_STAKING_CONTRACT_ADDRESS = "0xA25A981bc027E1f13aC70882a323B8B8EE880B9C";
10
- export declare const DUMMY_LENDING_CHAIN_IDS: readonly [84532, 11155111, 80002, 11155420];
10
+ export declare const DUMMY_LENDING_CHAIN_IDS: readonly [84532, 11155111, 11155420];
11
11
  export type DummyLendingChainId = (typeof DUMMY_LENDING_CHAIN_IDS)[number];
12
12
  /** Unified CREATE2 token addresses — same on every dummy-lending chain. */
13
13
  export declare const DUMMY_LENDING_TOKENS: {
@@ -10,7 +10,6 @@ export const DUMMY_STAKING_CONTRACT_ADDRESS = "0xA25A981bc027E1f13aC70882a323B8B
10
10
  export const DUMMY_LENDING_CHAIN_IDS = [
11
11
  84532, // Base Sepolia
12
12
  11155111, // Ethereum Sepolia
13
- 80002, // Polygon Amoy
14
13
  11155420, // Optimism Sepolia
15
14
  ];
16
15
  /** Unified CREATE2 token addresses — same on every dummy-lending chain. */
@@ -20,7 +20,6 @@
20
20
  "contractAddress": {
21
21
  "Base": "0xa73c1ae0e4e9116020dba0a419f91585d73459ee",
22
22
  "Mainnet": "0xa73c1ae0e4e9116020dba0a419f91585d73459ee",
23
- "Polygon": "0xa73c1ae0e4e9116020dba0a419f91585d73459ee",
24
23
  "Optimism": "0xa73c1ae0e4e9116020dba0a419f91585d73459ee"
25
24
  },
26
25
  "type": ["protocol-interaction", "lending", "yield"]
@@ -29,7 +28,6 @@
29
28
  "contractAddress": {
30
29
  "Mainnet": "0xA25A981bc027E1f13aC70882a323B8B8EE880B9C",
31
30
  "Base": "0xA25A981bc027E1f13aC70882a323B8B8EE880B9C",
32
- "Polygon": "0xA25A981bc027E1f13aC70882a323B8B8EE880B9C",
33
31
  "Optimism": "0xA25A981bc027E1f13aC70882a323B8B8EE880B9C"
34
32
  },
35
33
  "type": ["staking", "yield"]
@@ -38,7 +36,6 @@
38
36
  "contractAddress": {
39
37
  "Base": "0xMorphoBaseAddress",
40
38
  "Mainnet": "0xMorphoMainnetAddress",
41
- "Polygon": "0xMorphoPolygonAddress",
42
39
  "Optimism": "0xMorphoBaseAddress"
43
40
  },
44
41
  "type": ["swap"]
@@ -73,8 +70,7 @@
73
70
  "contractAddress": {
74
71
  "Base": "0x2BB4FfD7E2c6D432b697554Efd77fA13bdbefd69",
75
72
  "Mainnet": "0x2BB4FfD7E2c6D432b697554Efd77fA13bdbefd69",
76
- "Polygon": "0x2BB4FfD7E2c6D432b697554Efd77fA13bdbefd69",
77
- "Miden": "0x0a7d175ed63ec5200fb2ced86f6aa5",
73
+ "Miden": "0x2458e5446128e6b150b75b8ebd9ce1",
78
74
  "Optimism": "0x2BB4FfD7E2c6D432b697554Efd77fA13bdbefd69"
79
75
  },
80
76
  "decimals": 18,
@@ -86,7 +82,6 @@
86
82
  "contractAddress": {
87
83
  "Base": "0xc30f1Ce05d1434d484E9A47283aA925fc8A8699a",
88
84
  "Mainnet": "0xc30f1Ce05d1434d484E9A47283aA925fc8A8699a",
89
- "Polygon": "0xc30f1Ce05d1434d484E9A47283aA925fc8A8699a",
90
85
  "Optimism": "0xc30f1Ce05d1434d484E9A47283aA925fc8A8699a"
91
86
  },
92
87
  "decimals": 18
@@ -95,7 +90,6 @@
95
90
  "contractAddress": {
96
91
  "Base": "0xc04d2869665Be874881133943523723Be5782720",
97
92
  "Mainnet": "0xc04d2869665Be874881133943523723Be5782720",
98
- "Polygon": "0xc04d2869665Be874881133943523723Be5782720",
99
93
  "Miden": "0xc04d2869665Be874881133943523723Be5782720",
100
94
  "Optimism": "0xc04d2869665Be874881133943523723Be5782720"
101
95
  },
@@ -105,7 +99,6 @@
105
99
  "contractAddress": {
106
100
  "Base": "0x7946dd86eE310D0aC16804A37787289Fa5b88A8A",
107
101
  "Mainnet": "0x7946dd86eE310D0aC16804A37787289Fa5b88A8A",
108
- "Polygon": "0x7946dd86eE310D0aC16804A37787289Fa5b88A8A",
109
102
  "Optimism": "0x7946dd86eE310D0aC16804A37787289Fa5b88A8A"
110
103
  },
111
104
  "decimals": 18
@@ -114,7 +107,6 @@
114
107
  "contractAddress": {
115
108
  "Base": "0x9b2a2754a9182fD65360E23afCDf3BeFF51796E9",
116
109
  "Mainnet": "0x9b2a2754a9182fD65360E23afCDf3BeFF51796E9",
117
- "Polygon": "0x9b2a2754a9182fD65360E23afCDf3BeFF51796E9",
118
110
  "Optimism": "0x9b2a2754a9182fD65360E23afCDf3BeFF51796E9"
119
111
  },
120
112
  "decimals": 18
@@ -123,7 +115,6 @@
123
115
  "contractAddress": {
124
116
  "Base": "0xEA7dC9849206Ce73b11c465d37b85eC06B11Cf2C",
125
117
  "Mainnet": "0xEA7dC9849206Ce73b11c465d37b85eC06B11Cf2C",
126
- "Polygon": "0xEA7dC9849206Ce73b11c465d37b85eC06B11Cf2C",
127
118
  "Optimism": "0xEA7dC9849206Ce73b11c465d37b85eC06B11Cf2C"
128
119
  },
129
120
  "decimals": 18
@@ -132,7 +123,6 @@
132
123
  "contractAddress": {
133
124
  "Base": "0xB588418c0f90F07Bc9587d0050845a90C23C7502",
134
125
  "Mainnet": "0xB588418c0f90F07Bc9587d0050845a90C23C7502",
135
- "Polygon": "0xB588418c0f90F07Bc9587d0050845a90C23C7502",
136
126
  "Optimism": "0xB588418c0f90F07Bc9587d0050845a90C23C7502"
137
127
  },
138
128
  "decimals": 18
@@ -141,7 +131,6 @@
141
131
  "contractAddress": {
142
132
  "Base": "0x512Ee6Bd7A4be5Ba4796F15Df080c4D0F89a38eD",
143
133
  "Mainnet": "0x512Ee6Bd7A4be5Ba4796F15Df080c4D0F89a38eD",
144
- "Polygon": "0x512Ee6Bd7A4be5Ba4796F15Df080c4D0F89a38eD",
145
134
  "Optimism": "0x512Ee6Bd7A4be5Ba4796F15Df080c4D0F89a38eD"
146
135
  },
147
136
  "decimals": 18
@@ -150,7 +139,6 @@
150
139
  "contractAddress": {
151
140
  "Base": "0x145e03A80c19ad1b9d0429d06b6d52707de724A0",
152
141
  "Mainnet": "0x145e03A80c19ad1b9d0429d06b6d52707de724A0",
153
- "Polygon": "0x145e03A80c19ad1b9d0429d06b6d52707de724A0",
154
142
  "Optimism": "0x145e03A80c19ad1b9d0429d06b6d52707de724A0"
155
143
  },
156
144
  "decimals": 18
@@ -165,10 +153,6 @@
165
153
  "chainId": 11155111,
166
154
  "explorer": "https://sepolia.etherscan.io/"
167
155
  },
168
- "Polygon": {
169
- "chainId": 80002,
170
- "explorer": "https://amoy.polygonscan.com"
171
- },
172
156
  "Miden": {
173
157
  "chainId": 999999999,
174
158
  "explorer": "https://testnet.midenscan.com/"
@@ -249,18 +233,6 @@
249
233
  ],
250
234
  "tokensOut": []
251
235
  },
252
- "Polygon": {
253
- "tokensIn": [
254
- "USDC",
255
- "WETH",
256
- "WBTC",
257
- "PENGU",
258
- "OSWALD",
259
- "KICK",
260
- "FERB"
261
- ],
262
- "tokensOut": []
263
- },
264
236
  "Optimism": {
265
237
  "tokensIn": [
266
238
  "USDC",
@@ -283,10 +255,6 @@
283
255
  "tokensIn": ["USDC", "USDT", "DAI", "WETH", "WBTC"],
284
256
  "tokensOut": []
285
257
  },
286
- "Polygon": {
287
- "tokensIn": ["USDC", "USDT", "DAI", "WETH", "WBTC"],
288
- "tokensOut": []
289
- },
290
258
  "Optimism": {
291
259
  "tokensIn": ["USDC", "USDT", "DAI", "WETH", "WBTC"],
292
260
  "tokensOut": []
@@ -319,19 +287,6 @@
319
287
  "FERB"
320
288
  ]
321
289
  },
322
- "Polygon": {
323
- "tokensInAndOut": [
324
- "USDC",
325
- "USDT",
326
- "DAI",
327
- "WETH",
328
- "WBTC",
329
- "PENGU",
330
- "OSWALD",
331
- "KICK",
332
- "FERB"
333
- ]
334
- },
335
290
  "Optimism": {
336
291
  "tokensInAndOut": [
337
292
  "USDC",
@@ -368,15 +323,15 @@
368
323
  }
369
324
  },
370
325
  "tokenChains": {
371
- "DAI": ["Base", "Mainnet", "Polygon", "Optimism"],
372
- "USDT": ["Base", "Mainnet", "Polygon", "Optimism"],
373
- "USDC": ["Base", "Optimism", "Mainnet", "Polygon", "Miden"],
374
- "WETH": ["Base", "Mainnet", "Polygon", "Optimism"],
375
- "WBTC": ["Base", "Mainnet", "Polygon", "Optimism"],
376
- "PENGU": ["Base", "Mainnet", "Polygon", "Optimism"],
377
- "OSWALD": ["Base", "Mainnet", "Polygon", "Optimism"],
378
- "KICK": ["Base", "Mainnet", "Polygon", "Optimism"],
379
- "FERB": ["Base", "Mainnet", "Polygon", "Optimism"]
326
+ "DAI": ["Base", "Mainnet", "Optimism"],
327
+ "USDT": ["Base", "Mainnet", "Optimism"],
328
+ "USDC": ["Base", "Optimism", "Mainnet", "Miden"],
329
+ "WETH": ["Base", "Mainnet", "Optimism"],
330
+ "WBTC": ["Base", "Mainnet", "Optimism"],
331
+ "PENGU": ["Base", "Mainnet", "Optimism"],
332
+ "OSWALD": ["Base", "Mainnet", "Optimism"],
333
+ "KICK": ["Base", "Mainnet", "Optimism"],
334
+ "FERB": ["Base", "Mainnet", "Optimism"]
380
335
  }
381
336
  }
382
337
  }
@@ -277,6 +277,8 @@ export type QueuedTransactionForIntent = {
277
277
  status: TransactionStatus;
278
278
  dependenciesTransactions: string[];
279
279
  transactionHash: string | null;
280
+ /** EIP-7702 authorization list for relay txs (enable delegation). */
281
+ authorizationList?: Record<string, unknown>[];
280
282
  };
281
283
  export type CompactDataForQueue = {
282
284
  intentNonce: string;
@@ -287,7 +289,8 @@ export type CompactDataForQueue = {
287
289
  export declare enum QueueExecutionType {
288
290
  ADD_AND_EXECUTE = "addAndExecute",
289
291
  ADD_INTENT = "addIntent",
290
- SIMPLE_EXECUTION = "simpleExecution"
292
+ SIMPLE_EXECUTION = "simpleExecution",
293
+ RELAY_7702 = "relay7702"
291
294
  }
292
295
  export declare enum TaskType {
293
296
  GetTokenOut = "gettokenout",
@@ -25,6 +25,7 @@ export var QueueExecutionType;
25
25
  QueueExecutionType["ADD_AND_EXECUTE"] = "addAndExecute";
26
26
  QueueExecutionType["ADD_INTENT"] = "addIntent";
27
27
  QueueExecutionType["SIMPLE_EXECUTION"] = "simpleExecution";
28
+ QueueExecutionType["RELAY_7702"] = "relay7702";
28
29
  })(QueueExecutionType || (QueueExecutionType = {}));
29
30
  export var TaskType;
30
31
  (function (TaskType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-protocol/epoch-commons-sdk",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "SDK for interacting with Epoch Commons Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",