curvance 3.0.17 → 3.1.1
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/chains/index.d.ts +24 -24
- package/dist/chains/monad-mainnet.json +12 -12
- package/dist/helpers.d.ts +12 -12
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/retry-provider.d.ts +48 -0
- package/dist/retry-provider.d.ts.map +1 -0
- package/dist/retry-provider.js +287 -0
- package/dist/retry-provider.js.map +1 -0
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +2 -0
- package/dist/setup.js.map +1 -1
- package/package.json +1 -1
package/dist/chains/index.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ export declare const chains: {
|
|
|
102
102
|
"VaultAggregator-AUSD-sAUSD": string;
|
|
103
103
|
"StaticPriceAggregator-loAZND": string;
|
|
104
104
|
markets: {
|
|
105
|
-
"MUBOND
|
|
105
|
+
"MUBOND \u2192 AUSD": {
|
|
106
106
|
address: string;
|
|
107
107
|
"muBOND-DynamicIRM": string;
|
|
108
108
|
tokens: {
|
|
@@ -114,7 +114,7 @@ export declare const chains: {
|
|
|
114
114
|
};
|
|
115
115
|
"AUSD-DynamicIRM": string;
|
|
116
116
|
};
|
|
117
|
-
"loAZND
|
|
117
|
+
"loAZND \u2192 AUSD": {
|
|
118
118
|
address: string;
|
|
119
119
|
"loAZND-DynamicIRM": string;
|
|
120
120
|
tokens: {
|
|
@@ -123,7 +123,7 @@ export declare const chains: {
|
|
|
123
123
|
};
|
|
124
124
|
"AUSD-DynamicIRM": string;
|
|
125
125
|
};
|
|
126
|
-
"ezETH
|
|
126
|
+
"ezETH \u2192 WETH": {
|
|
127
127
|
address: string;
|
|
128
128
|
"ezETH-DynamicIRM": string;
|
|
129
129
|
tokens: {
|
|
@@ -135,7 +135,7 @@ export declare const chains: {
|
|
|
135
135
|
};
|
|
136
136
|
"WETH-DynamicIRM": string;
|
|
137
137
|
};
|
|
138
|
-
"shMON
|
|
138
|
+
"shMON \u2192 WMON": {
|
|
139
139
|
address: string;
|
|
140
140
|
"shMON-DynamicIRM": string;
|
|
141
141
|
tokens: {
|
|
@@ -148,7 +148,7 @@ export declare const chains: {
|
|
|
148
148
|
};
|
|
149
149
|
"WMON-DynamicIRM": string;
|
|
150
150
|
};
|
|
151
|
-
"aprMON
|
|
151
|
+
"aprMON \u2192 WMON": {
|
|
152
152
|
address: string;
|
|
153
153
|
"aprMON-DynamicIRM": string;
|
|
154
154
|
tokens: {
|
|
@@ -161,7 +161,7 @@ export declare const chains: {
|
|
|
161
161
|
};
|
|
162
162
|
"WMON-DynamicIRM": string;
|
|
163
163
|
};
|
|
164
|
-
"sMON
|
|
164
|
+
"sMON \u2192 WMON": {
|
|
165
165
|
address: string;
|
|
166
166
|
"sMON-DynamicIRM": string;
|
|
167
167
|
tokens: {
|
|
@@ -173,7 +173,7 @@ export declare const chains: {
|
|
|
173
173
|
};
|
|
174
174
|
"WMON-DynamicIRM": string;
|
|
175
175
|
};
|
|
176
|
-
"sAUSD
|
|
176
|
+
"sAUSD \u2192 AUSD": {
|
|
177
177
|
address: string;
|
|
178
178
|
"sAUSD-DynamicIRM": string;
|
|
179
179
|
tokens: {
|
|
@@ -186,7 +186,7 @@ export declare const chains: {
|
|
|
186
186
|
};
|
|
187
187
|
"AUSD-DynamicIRM": string;
|
|
188
188
|
};
|
|
189
|
-
"earnAUSD
|
|
189
|
+
"earnAUSD \u2192 AUSD": {
|
|
190
190
|
address: string;
|
|
191
191
|
"earnAUSD-DynamicIRM": string;
|
|
192
192
|
tokens: {
|
|
@@ -198,7 +198,7 @@ export declare const chains: {
|
|
|
198
198
|
};
|
|
199
199
|
"AUSD-DynamicIRM": string;
|
|
200
200
|
};
|
|
201
|
-
"WMON
|
|
201
|
+
"WMON \u2194 AUSD": {
|
|
202
202
|
address: string;
|
|
203
203
|
"WMON-DynamicIRM": string;
|
|
204
204
|
tokens: {
|
|
@@ -210,7 +210,7 @@ export declare const chains: {
|
|
|
210
210
|
};
|
|
211
211
|
"AUSD-DynamicIRM": string;
|
|
212
212
|
};
|
|
213
|
-
"WMON
|
|
213
|
+
"WMON \u2194 USDC": {
|
|
214
214
|
address: string;
|
|
215
215
|
"WMON-DynamicIRM": string;
|
|
216
216
|
tokens: {
|
|
@@ -222,7 +222,7 @@ export declare const chains: {
|
|
|
222
222
|
};
|
|
223
223
|
"USDC-DynamicIRM": string;
|
|
224
224
|
};
|
|
225
|
-
"WBTC
|
|
225
|
+
"WBTC \u2194 USDC": {
|
|
226
226
|
address: string;
|
|
227
227
|
"WBTC-DynamicIRM": string;
|
|
228
228
|
tokens: {
|
|
@@ -234,7 +234,7 @@ export declare const chains: {
|
|
|
234
234
|
};
|
|
235
235
|
"USDC-DynamicIRM": string;
|
|
236
236
|
};
|
|
237
|
-
"WETH
|
|
237
|
+
"WETH \u2194 USDC": {
|
|
238
238
|
address: string;
|
|
239
239
|
"WETH-DynamicIRM": string;
|
|
240
240
|
tokens: {
|
|
@@ -269,7 +269,7 @@ export declare const chains: {
|
|
|
269
269
|
"VaultAggregator-AUSD-sAUSD": string;
|
|
270
270
|
"StaticPriceAggregator-loAZND": string;
|
|
271
271
|
markets: {
|
|
272
|
-
"MUBOND
|
|
272
|
+
"MUBOND \u2192 AUSD": {
|
|
273
273
|
address: string;
|
|
274
274
|
"muBOND-DynamicIRM": string;
|
|
275
275
|
tokens: {
|
|
@@ -281,7 +281,7 @@ export declare const chains: {
|
|
|
281
281
|
};
|
|
282
282
|
"AUSD-DynamicIRM": string;
|
|
283
283
|
};
|
|
284
|
-
"loAZND
|
|
284
|
+
"loAZND \u2192 AUSD": {
|
|
285
285
|
address: string;
|
|
286
286
|
"loAZND-DynamicIRM": string;
|
|
287
287
|
tokens: {
|
|
@@ -290,7 +290,7 @@ export declare const chains: {
|
|
|
290
290
|
};
|
|
291
291
|
"AUSD-DynamicIRM": string;
|
|
292
292
|
};
|
|
293
|
-
"ezETH
|
|
293
|
+
"ezETH \u2192 WETH": {
|
|
294
294
|
address: string;
|
|
295
295
|
"ezETH-DynamicIRM": string;
|
|
296
296
|
tokens: {
|
|
@@ -302,7 +302,7 @@ export declare const chains: {
|
|
|
302
302
|
};
|
|
303
303
|
"WETH-DynamicIRM": string;
|
|
304
304
|
};
|
|
305
|
-
"shMON
|
|
305
|
+
"shMON \u2192 WMON": {
|
|
306
306
|
address: string;
|
|
307
307
|
"shMON-DynamicIRM": string;
|
|
308
308
|
tokens: {
|
|
@@ -315,7 +315,7 @@ export declare const chains: {
|
|
|
315
315
|
};
|
|
316
316
|
"WMON-DynamicIRM": string;
|
|
317
317
|
};
|
|
318
|
-
"aprMON
|
|
318
|
+
"aprMON \u2192 WMON": {
|
|
319
319
|
address: string;
|
|
320
320
|
"aprMON-DynamicIRM": string;
|
|
321
321
|
tokens: {
|
|
@@ -328,7 +328,7 @@ export declare const chains: {
|
|
|
328
328
|
};
|
|
329
329
|
"WMON-DynamicIRM": string;
|
|
330
330
|
};
|
|
331
|
-
"sMON
|
|
331
|
+
"sMON \u2192 WMON": {
|
|
332
332
|
address: string;
|
|
333
333
|
"sMON-DynamicIRM": string;
|
|
334
334
|
tokens: {
|
|
@@ -340,7 +340,7 @@ export declare const chains: {
|
|
|
340
340
|
};
|
|
341
341
|
"WMON-DynamicIRM": string;
|
|
342
342
|
};
|
|
343
|
-
"sAUSD
|
|
343
|
+
"sAUSD \u2192 AUSD": {
|
|
344
344
|
address: string;
|
|
345
345
|
"sAUSD-DynamicIRM": string;
|
|
346
346
|
tokens: {
|
|
@@ -353,7 +353,7 @@ export declare const chains: {
|
|
|
353
353
|
};
|
|
354
354
|
"AUSD-DynamicIRM": string;
|
|
355
355
|
};
|
|
356
|
-
"earnAUSD
|
|
356
|
+
"earnAUSD \u2192 AUSD": {
|
|
357
357
|
address: string;
|
|
358
358
|
"earnAUSD-DynamicIRM": string;
|
|
359
359
|
tokens: {
|
|
@@ -365,7 +365,7 @@ export declare const chains: {
|
|
|
365
365
|
};
|
|
366
366
|
"AUSD-DynamicIRM": string;
|
|
367
367
|
};
|
|
368
|
-
"WMON
|
|
368
|
+
"WMON \u2194 AUSD": {
|
|
369
369
|
address: string;
|
|
370
370
|
"WMON-DynamicIRM": string;
|
|
371
371
|
tokens: {
|
|
@@ -377,7 +377,7 @@ export declare const chains: {
|
|
|
377
377
|
};
|
|
378
378
|
"AUSD-DynamicIRM": string;
|
|
379
379
|
};
|
|
380
|
-
"WMON
|
|
380
|
+
"WMON \u2194 USDC": {
|
|
381
381
|
address: string;
|
|
382
382
|
"WMON-DynamicIRM": string;
|
|
383
383
|
tokens: {
|
|
@@ -389,7 +389,7 @@ export declare const chains: {
|
|
|
389
389
|
};
|
|
390
390
|
"USDC-DynamicIRM": string;
|
|
391
391
|
};
|
|
392
|
-
"WBTC
|
|
392
|
+
"WBTC \u2194 USDC": {
|
|
393
393
|
address: string;
|
|
394
394
|
"WBTC-DynamicIRM": string;
|
|
395
395
|
tokens: {
|
|
@@ -401,7 +401,7 @@ export declare const chains: {
|
|
|
401
401
|
};
|
|
402
402
|
"USDC-DynamicIRM": string;
|
|
403
403
|
};
|
|
404
|
-
"WETH
|
|
404
|
+
"WETH \u2194 USDC": {
|
|
405
405
|
address: string;
|
|
406
406
|
"WETH-DynamicIRM": string;
|
|
407
407
|
tokens: {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"VaultAggregator-AUSD-sAUSD": "0x6b5a6A0DFA18B32081AAFFA6310cE221637b5d7D",
|
|
19
19
|
"StaticPriceAggregator-loAZND": "0x6eCb16faf9b0c0F7098204e0FE685D2960b4C0Ba",
|
|
20
20
|
"markets": {
|
|
21
|
-
"MUBOND
|
|
21
|
+
"MUBOND → AUSD": {
|
|
22
22
|
"address": "0x830D40CDFdc494BC1A2729a7381bfCe44326c944",
|
|
23
23
|
"muBOND-DynamicIRM": "0x5b1d3a91457f7AD854a559dAACc0be18cD402D12",
|
|
24
24
|
"tokens": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"AUSD-DynamicIRM": "0x08DcB6Ad285217ef29816Ac0F813C21C54c48Cd5"
|
|
32
32
|
},
|
|
33
|
-
"loAZND
|
|
33
|
+
"loAZND → AUSD": {
|
|
34
34
|
"address": "0x7C822B093A116654F824Ec2A35CD23a3749E4f90",
|
|
35
35
|
"loAZND-DynamicIRM": "0x5d2b40E3e3FdCDEd15314290d4384D4D12044233",
|
|
36
36
|
"tokens": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"AUSD-DynamicIRM": "0xf4E19DEdB240FFd9ECEDbfad88A91C34aC3095AA"
|
|
41
41
|
},
|
|
42
|
-
"ezETH
|
|
42
|
+
"ezETH → WETH": {
|
|
43
43
|
"address": "0x83840d837E7A3E00bBb0B8501E60E989A8987c37",
|
|
44
44
|
"ezETH-DynamicIRM": "0x28444Eb9FA9dDA1E6F3D240B2e06a453505e16E6",
|
|
45
45
|
"tokens": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"WETH-DynamicIRM": "0xf23d194e151069d09c927E8CD8ae3e14922F2a23"
|
|
53
53
|
},
|
|
54
|
-
"shMON
|
|
54
|
+
"shMON → WMON": {
|
|
55
55
|
"address": "0xE1C24B2E93230FBe33d32Ba38ECA3218284143e2",
|
|
56
56
|
"shMON-DynamicIRM": "0x2C802F49fb5ce37D37E947D9b88B2A2Cea7A3C31",
|
|
57
57
|
"tokens": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"WMON-DynamicIRM": "0x963E8aFc1a60E470EB2381896F75853bF6C1FeD2"
|
|
66
66
|
},
|
|
67
|
-
"aprMON
|
|
67
|
+
"aprMON → WMON": {
|
|
68
68
|
"address": "0x5EA0a1Cf3501C954b64902c5e92100b8A2CaB1Ac",
|
|
69
69
|
"aprMON-DynamicIRM": "0x0d44480D72B23D19673EEde88aEa03a119bc13f4",
|
|
70
70
|
"tokens": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
},
|
|
78
78
|
"WMON-DynamicIRM": "0x309d475e84b7C99C98031006F491e20280a1A768"
|
|
79
79
|
},
|
|
80
|
-
"sMON
|
|
80
|
+
"sMON → WMON": {
|
|
81
81
|
"address": "0xe5970cDB1916B2cCF6185C86C174EEE2d330D05B",
|
|
82
82
|
"sMON-DynamicIRM": "0x0db363a2eDB3Ac8F4CDdC174ff44B6dfd09A2FeF",
|
|
83
83
|
"tokens": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
},
|
|
90
90
|
"WMON-DynamicIRM": "0x16cB8A09f2a17E30273b749ed178954FE63bb1BC"
|
|
91
91
|
},
|
|
92
|
-
"sAUSD
|
|
92
|
+
"sAUSD → AUSD": {
|
|
93
93
|
"address": "0xBBE7A3c45aDBb16F6490767b663428c34aA341Eb",
|
|
94
94
|
"sAUSD-DynamicIRM": "0xcf31332aB92953101B8E1af7Ca841f6426936da8",
|
|
95
95
|
"tokens": {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
},
|
|
103
103
|
"AUSD-DynamicIRM": "0x22dCF7dd5518F5F08ec05c59606d84698FFF07BB"
|
|
104
104
|
},
|
|
105
|
-
"earnAUSD
|
|
105
|
+
"earnAUSD → AUSD": {
|
|
106
106
|
"address": "0xd6365555f6a697C7C295bA741100AA644cE28545",
|
|
107
107
|
"earnAUSD-DynamicIRM": "0x346339e3Fbd21ed48ADDDE1523896c0d97cF1851",
|
|
108
108
|
"tokens": {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
},
|
|
115
115
|
"AUSD-DynamicIRM": "0x46e2bA1D6CFfB180Efa17d4D5A726b599ED8B904"
|
|
116
116
|
},
|
|
117
|
-
"WMON
|
|
117
|
+
"WMON ↔ AUSD": {
|
|
118
118
|
"address": "0x05e70717fA8BD0F21a9F826d093d99f6Da4f1554",
|
|
119
119
|
"WMON-DynamicIRM": "0xc17A271F79ac4449FaABeAf64E805BEE37B78DBd",
|
|
120
120
|
"tokens": {
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
},
|
|
127
127
|
"AUSD-DynamicIRM": "0x72cb6a15E050427e1a6047614A47659A2C94d1bA"
|
|
128
128
|
},
|
|
129
|
-
"WMON
|
|
129
|
+
"WMON ↔ USDC": {
|
|
130
130
|
"address": "0xa6A2A92F126b79Ee0804845ee6B52899b4491093",
|
|
131
131
|
"WMON-DynamicIRM": "0x50264B615175f8DBFFF417CF6D0003D2e77D87B4",
|
|
132
132
|
"tokens": {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
"USDC-DynamicIRM": "0x1622D77E311638C77779e6D9B212E3e7D73AaFB4"
|
|
140
140
|
},
|
|
141
|
-
"WBTC
|
|
141
|
+
"WBTC ↔ USDC": {
|
|
142
142
|
"address": "0x01C4a0d396EFE982B1B103BE9910321d34e1aEA9",
|
|
143
143
|
"WBTC-DynamicIRM": "0x8a78Bd450258B7B1D42431fB904453cA43161AdE",
|
|
144
144
|
"tokens": {
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
},
|
|
151
151
|
"USDC-DynamicIRM": "0x9F57957F2CA8d0DB433e4623f8bd248293b01e86"
|
|
152
152
|
},
|
|
153
|
-
"WETH
|
|
153
|
+
"WETH ↔ USDC": {
|
|
154
154
|
"address": "0xb3E9E0134354cc91b7FB9F9d6C3ab0dE7854BB49",
|
|
155
155
|
"WETH-DynamicIRM": "0x8c82ccF6Ee43346425E04325Df03219cf46a7739",
|
|
156
156
|
"tokens": {
|
package/dist/helpers.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
169
169
|
"VaultAggregator-AUSD-sAUSD": string;
|
|
170
170
|
"StaticPriceAggregator-loAZND": string;
|
|
171
171
|
markets: {
|
|
172
|
-
"MUBOND
|
|
172
|
+
"MUBOND \u2192 AUSD": {
|
|
173
173
|
address: string;
|
|
174
174
|
"muBOND-DynamicIRM": string;
|
|
175
175
|
tokens: {
|
|
@@ -181,7 +181,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
181
181
|
};
|
|
182
182
|
"AUSD-DynamicIRM": string;
|
|
183
183
|
};
|
|
184
|
-
"loAZND
|
|
184
|
+
"loAZND \u2192 AUSD": {
|
|
185
185
|
address: string;
|
|
186
186
|
"loAZND-DynamicIRM": string;
|
|
187
187
|
tokens: {
|
|
@@ -190,7 +190,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
190
190
|
};
|
|
191
191
|
"AUSD-DynamicIRM": string;
|
|
192
192
|
};
|
|
193
|
-
"ezETH
|
|
193
|
+
"ezETH \u2192 WETH": {
|
|
194
194
|
address: string;
|
|
195
195
|
"ezETH-DynamicIRM": string;
|
|
196
196
|
tokens: {
|
|
@@ -202,7 +202,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
202
202
|
};
|
|
203
203
|
"WETH-DynamicIRM": string;
|
|
204
204
|
};
|
|
205
|
-
"shMON
|
|
205
|
+
"shMON \u2192 WMON": {
|
|
206
206
|
address: string;
|
|
207
207
|
"shMON-DynamicIRM": string;
|
|
208
208
|
tokens: {
|
|
@@ -215,7 +215,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
215
215
|
};
|
|
216
216
|
"WMON-DynamicIRM": string;
|
|
217
217
|
};
|
|
218
|
-
"aprMON
|
|
218
|
+
"aprMON \u2192 WMON": {
|
|
219
219
|
address: string;
|
|
220
220
|
"aprMON-DynamicIRM": string;
|
|
221
221
|
tokens: {
|
|
@@ -228,7 +228,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
228
228
|
};
|
|
229
229
|
"WMON-DynamicIRM": string;
|
|
230
230
|
};
|
|
231
|
-
"sMON
|
|
231
|
+
"sMON \u2192 WMON": {
|
|
232
232
|
address: string;
|
|
233
233
|
"sMON-DynamicIRM": string;
|
|
234
234
|
tokens: {
|
|
@@ -240,7 +240,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
240
240
|
};
|
|
241
241
|
"WMON-DynamicIRM": string;
|
|
242
242
|
};
|
|
243
|
-
"sAUSD
|
|
243
|
+
"sAUSD \u2192 AUSD": {
|
|
244
244
|
address: string;
|
|
245
245
|
"sAUSD-DynamicIRM": string;
|
|
246
246
|
tokens: {
|
|
@@ -253,7 +253,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
253
253
|
};
|
|
254
254
|
"AUSD-DynamicIRM": string;
|
|
255
255
|
};
|
|
256
|
-
"earnAUSD
|
|
256
|
+
"earnAUSD \u2192 AUSD": {
|
|
257
257
|
address: string;
|
|
258
258
|
"earnAUSD-DynamicIRM": string;
|
|
259
259
|
tokens: {
|
|
@@ -265,7 +265,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
265
265
|
};
|
|
266
266
|
"AUSD-DynamicIRM": string;
|
|
267
267
|
};
|
|
268
|
-
"WMON
|
|
268
|
+
"WMON \u2194 AUSD": {
|
|
269
269
|
address: string;
|
|
270
270
|
"WMON-DynamicIRM": string;
|
|
271
271
|
tokens: {
|
|
@@ -277,7 +277,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
277
277
|
};
|
|
278
278
|
"AUSD-DynamicIRM": string;
|
|
279
279
|
};
|
|
280
|
-
"WMON
|
|
280
|
+
"WMON \u2194 USDC": {
|
|
281
281
|
address: string;
|
|
282
282
|
"WMON-DynamicIRM": string;
|
|
283
283
|
tokens: {
|
|
@@ -289,7 +289,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
289
289
|
};
|
|
290
290
|
"USDC-DynamicIRM": string;
|
|
291
291
|
};
|
|
292
|
-
"WBTC
|
|
292
|
+
"WBTC \u2194 USDC": {
|
|
293
293
|
address: string;
|
|
294
294
|
"WBTC-DynamicIRM": string;
|
|
295
295
|
tokens: {
|
|
@@ -301,7 +301,7 @@ export declare function getContractAddresses(chain: ChainRpcPrefix): {
|
|
|
301
301
|
};
|
|
302
302
|
"USDC-DynamicIRM": string;
|
|
303
303
|
};
|
|
304
|
-
"WETH
|
|
304
|
+
"WETH \u2194 USDC": {
|
|
305
305
|
address: string;
|
|
306
306
|
"WETH-DynamicIRM": string;
|
|
307
307
|
tokens: {
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -31,4 +31,5 @@ __exportStar(require("./classes/Kuru"), exports);
|
|
|
31
31
|
__exportStar(require("./helpers"), exports);
|
|
32
32
|
__exportStar(require("./setup"), exports);
|
|
33
33
|
__exportStar(require("./types"), exports);
|
|
34
|
+
__exportStar(require("./retry-provider"), exports);
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,qDAAmC;AACnC,6DAA2C;AAC3C,wDAAsC;AACtC,4DAA0C;AAC1C,gDAA8B;AAC9B,iDAA+B;AAC/B,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,qDAAmC;AACnC,6DAA2C;AAC3C,wDAAsC;AACtC,4DAA0C;AAC1C,gDAA8B;AAC9B,iDAA+B;AAC/B,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,mDAAiC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { curvance_provider } from "./types";
|
|
2
|
+
export interface RetryConfig {
|
|
3
|
+
maxRetries: number;
|
|
4
|
+
baseDelay: number;
|
|
5
|
+
maxDelay: number;
|
|
6
|
+
backoffMultiplier: number;
|
|
7
|
+
retryableErrors: string[];
|
|
8
|
+
onRetry?: (attempt: number, error: Error, delay: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DEFAULT_RETRY_CONFIG: RetryConfig;
|
|
11
|
+
declare class RetryableProvider {
|
|
12
|
+
private config;
|
|
13
|
+
constructor(config?: Partial<RetryConfig>);
|
|
14
|
+
private sleep;
|
|
15
|
+
private calculateDelay;
|
|
16
|
+
private isRetryableError;
|
|
17
|
+
private executeWithRetry;
|
|
18
|
+
wrapProvider(provider: curvance_provider): curvance_provider;
|
|
19
|
+
private isRpcMethod;
|
|
20
|
+
updateConfig(newConfig: Partial<RetryConfig>): void;
|
|
21
|
+
getConfig(): RetryConfig;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Configure global retry settings for all RPC calls
|
|
25
|
+
*/
|
|
26
|
+
export declare function configureRetries(config?: Partial<RetryConfig>): void;
|
|
27
|
+
/**
|
|
28
|
+
* Create a provider with retry capabilities
|
|
29
|
+
*/
|
|
30
|
+
export declare function createRetryableProvider(provider: curvance_provider, config?: Partial<RetryConfig>): curvance_provider;
|
|
31
|
+
/**
|
|
32
|
+
* Wrap a provider with the global retry configuration
|
|
33
|
+
*/
|
|
34
|
+
export declare function wrapProviderWithRetries(provider: curvance_provider): curvance_provider;
|
|
35
|
+
/**
|
|
36
|
+
* Utility function to check if a provider is already wrapped with retries
|
|
37
|
+
*/
|
|
38
|
+
export declare function isRetryableProvider(provider: curvance_provider): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Utility function to classify error types for debugging
|
|
41
|
+
*/
|
|
42
|
+
export declare function classifyError(error: any): {
|
|
43
|
+
type: 'contract' | 'network' | 'rpc' | 'rate_limit' | 'unknown';
|
|
44
|
+
isRetryable: boolean;
|
|
45
|
+
message: string;
|
|
46
|
+
};
|
|
47
|
+
export { RetryableProvider };
|
|
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gB,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAExE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG;IACvC,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,YAAY,GAAG,SAAS,CAAC;IAChE,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB,CAwCA;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryableProvider = exports.DEFAULT_RETRY_CONFIG = void 0;
|
|
4
|
+
exports.configureRetries = configureRetries;
|
|
5
|
+
exports.createRetryableProvider = createRetryableProvider;
|
|
6
|
+
exports.wrapProviderWithRetries = wrapProviderWithRetries;
|
|
7
|
+
exports.isRetryableProvider = isRetryableProvider;
|
|
8
|
+
exports.classifyError = classifyError;
|
|
9
|
+
exports.DEFAULT_RETRY_CONFIG = {
|
|
10
|
+
maxRetries: 3,
|
|
11
|
+
baseDelay: 1000, // 1 second
|
|
12
|
+
maxDelay: 10000, // 10 seconds
|
|
13
|
+
backoffMultiplier: 2,
|
|
14
|
+
retryableErrors: [
|
|
15
|
+
// Rate limiting
|
|
16
|
+
'rate limit',
|
|
17
|
+
'too many requests',
|
|
18
|
+
'429', // Rate limit HTTP status
|
|
19
|
+
// Network connectivity issues
|
|
20
|
+
'timeout',
|
|
21
|
+
'network error',
|
|
22
|
+
'connection',
|
|
23
|
+
'ECONNRESET',
|
|
24
|
+
'ENOTFOUND',
|
|
25
|
+
'ETIMEDOUT',
|
|
26
|
+
'socket hang up',
|
|
27
|
+
'request timeout',
|
|
28
|
+
'network timeout',
|
|
29
|
+
'connect timeout',
|
|
30
|
+
// Server/infrastructure errors
|
|
31
|
+
'server error',
|
|
32
|
+
'internal server error',
|
|
33
|
+
'bad gateway',
|
|
34
|
+
'service unavailable',
|
|
35
|
+
'gateway timeout',
|
|
36
|
+
'proxy error',
|
|
37
|
+
'upstream error',
|
|
38
|
+
'500', // Internal server error
|
|
39
|
+
'502', // Bad gateway
|
|
40
|
+
'503', // Service unavailable
|
|
41
|
+
'504', // Gateway timeout
|
|
42
|
+
// RPC-specific errors
|
|
43
|
+
'rpc error',
|
|
44
|
+
'node error',
|
|
45
|
+
'provider error',
|
|
46
|
+
'endpoint error',
|
|
47
|
+
'method not found', // Sometimes temporary
|
|
48
|
+
'parse error', // Could be temporary JSON parsing issue
|
|
49
|
+
// Temporary blockchain node issues
|
|
50
|
+
'block not found', // Sometimes temporary
|
|
51
|
+
'header not found', // Sometimes temporary
|
|
52
|
+
'missing trie node',
|
|
53
|
+
// Generic temporary failures
|
|
54
|
+
'temporary failure',
|
|
55
|
+
'temporarily unavailable',
|
|
56
|
+
'try again',
|
|
57
|
+
'retry'
|
|
58
|
+
]
|
|
59
|
+
};
|
|
60
|
+
class RetryableProvider {
|
|
61
|
+
config;
|
|
62
|
+
constructor(config = {}) {
|
|
63
|
+
this.config = { ...exports.DEFAULT_RETRY_CONFIG, ...config };
|
|
64
|
+
}
|
|
65
|
+
async sleep(ms) {
|
|
66
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
67
|
+
}
|
|
68
|
+
calculateDelay(attempt) {
|
|
69
|
+
const delay = this.config.baseDelay * Math.pow(this.config.backoffMultiplier, attempt);
|
|
70
|
+
return Math.min(delay, this.config.maxDelay);
|
|
71
|
+
}
|
|
72
|
+
isRetryableError(error) {
|
|
73
|
+
// First check for non-retryable smart contract errors
|
|
74
|
+
const errorMessage = error?.message?.toLowerCase() || '';
|
|
75
|
+
const errorCode = error?.code?.toString() || '';
|
|
76
|
+
// These are contract execution errors that should NOT be retried
|
|
77
|
+
const nonRetryablePatterns = [
|
|
78
|
+
'revert',
|
|
79
|
+
'execution reverted',
|
|
80
|
+
'transaction reverted',
|
|
81
|
+
'insufficient funds',
|
|
82
|
+
'gas required exceeds allowance',
|
|
83
|
+
'nonce too high',
|
|
84
|
+
'nonce too low',
|
|
85
|
+
'replacement transaction underpriced',
|
|
86
|
+
'already pending',
|
|
87
|
+
'invalid opcode',
|
|
88
|
+
'stack overflow',
|
|
89
|
+
'stack underflow',
|
|
90
|
+
'out of gas',
|
|
91
|
+
'call_exception',
|
|
92
|
+
'unpredictable_gas_limit',
|
|
93
|
+
'invalid_argument',
|
|
94
|
+
'missing_argument',
|
|
95
|
+
'unexpected_argument',
|
|
96
|
+
'numeric_fault'
|
|
97
|
+
];
|
|
98
|
+
// If it's a contract execution error, don't retry
|
|
99
|
+
const isContractError = nonRetryablePatterns.some(pattern => errorMessage.includes(pattern) || errorCode.includes(pattern));
|
|
100
|
+
if (isContractError) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
// Now check for retryable network/RPC errors
|
|
104
|
+
const errorStatus = error?.response?.status?.toString() || '';
|
|
105
|
+
return this.config.retryableErrors.some(retryableError => errorMessage.includes(retryableError.toLowerCase()) ||
|
|
106
|
+
errorCode.includes(retryableError) ||
|
|
107
|
+
errorStatus.includes(retryableError));
|
|
108
|
+
}
|
|
109
|
+
async executeWithRetry(operation, context = 'RPC call') {
|
|
110
|
+
let lastError;
|
|
111
|
+
for (let attempt = 0; attempt <= this.config.maxRetries; attempt++) {
|
|
112
|
+
try {
|
|
113
|
+
return await operation();
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
lastError = error;
|
|
117
|
+
const isRetryable = this.isRetryableError(error);
|
|
118
|
+
// Don't retry on the last attempt or if error is not retryable
|
|
119
|
+
if (attempt === this.config.maxRetries || !isRetryable) {
|
|
120
|
+
if (!isRetryable && attempt === 0) {
|
|
121
|
+
// Log that this error is not retryable for debugging
|
|
122
|
+
console.debug(`${context} failed with non-retryable error: ${error.message}`);
|
|
123
|
+
}
|
|
124
|
+
throw error;
|
|
125
|
+
}
|
|
126
|
+
const delay = this.calculateDelay(attempt);
|
|
127
|
+
// Call retry callback if provided
|
|
128
|
+
if (this.config.onRetry) {
|
|
129
|
+
this.config.onRetry(attempt + 1, error, delay);
|
|
130
|
+
}
|
|
131
|
+
console.warn(`${context} failed (attempt ${attempt + 1}/${this.config.maxRetries + 1}): ${error.message}. Retrying in ${delay}ms...`);
|
|
132
|
+
await this.sleep(delay);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
throw lastError;
|
|
136
|
+
}
|
|
137
|
+
wrapProvider(provider) {
|
|
138
|
+
// If it's already wrapped, return as-is
|
|
139
|
+
if (provider._isRetryable) {
|
|
140
|
+
return provider;
|
|
141
|
+
}
|
|
142
|
+
const retryableProvider = new Proxy(provider, {
|
|
143
|
+
get: (target, prop, receiver) => {
|
|
144
|
+
const original = Reflect.get(target, prop, receiver);
|
|
145
|
+
// Mark as retryable
|
|
146
|
+
if (prop === '_isRetryable') {
|
|
147
|
+
return true;
|
|
148
|
+
}
|
|
149
|
+
// Wrap the main RPC send method
|
|
150
|
+
if (prop === 'send' && typeof original === 'function') {
|
|
151
|
+
return async (method, params) => {
|
|
152
|
+
return this.executeWithRetry(() => original.apply(target, [method, params]), `RPC ${method}`);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
// For JsonRpcProvider, also wrap _send if it exists
|
|
156
|
+
if (prop === '_send' && typeof original === 'function') {
|
|
157
|
+
return async (payload, callback) => {
|
|
158
|
+
return this.executeWithRetry(() => original.apply(target, arguments), `RPC ${payload.method || 'unknown'}`);
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
// Wrap other async methods that might make RPC calls
|
|
162
|
+
if (typeof original === 'function' && this.isRpcMethod(prop)) {
|
|
163
|
+
return async (...args) => {
|
|
164
|
+
return this.executeWithRetry(() => original.apply(target, args), `Provider method ${String(prop)}`);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
// If it's a function, bind it to the target
|
|
168
|
+
if (typeof original === 'function') {
|
|
169
|
+
return original.bind(target);
|
|
170
|
+
}
|
|
171
|
+
return original;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
return retryableProvider;
|
|
175
|
+
}
|
|
176
|
+
isRpcMethod(prop) {
|
|
177
|
+
if (typeof prop !== 'string')
|
|
178
|
+
return false;
|
|
179
|
+
// Common ethers.js methods that make RPC calls
|
|
180
|
+
const rpcMethods = [
|
|
181
|
+
'getBalance',
|
|
182
|
+
'getCode',
|
|
183
|
+
'getStorageAt',
|
|
184
|
+
'getTransactionCount',
|
|
185
|
+
'getBlock',
|
|
186
|
+
'getBlockNumber',
|
|
187
|
+
'getGasPrice',
|
|
188
|
+
'getFeeData',
|
|
189
|
+
'getTransaction',
|
|
190
|
+
'getTransactionReceipt',
|
|
191
|
+
'call',
|
|
192
|
+
'estimateGas',
|
|
193
|
+
'sendTransaction',
|
|
194
|
+
'waitForTransaction',
|
|
195
|
+
'getLogs',
|
|
196
|
+
'getNetwork',
|
|
197
|
+
'detectNetwork'
|
|
198
|
+
];
|
|
199
|
+
return rpcMethods.includes(prop);
|
|
200
|
+
}
|
|
201
|
+
updateConfig(newConfig) {
|
|
202
|
+
this.config = { ...this.config, ...newConfig };
|
|
203
|
+
}
|
|
204
|
+
getConfig() {
|
|
205
|
+
return { ...this.config };
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
exports.RetryableProvider = RetryableProvider;
|
|
209
|
+
// Global retry provider instance
|
|
210
|
+
let globalRetryProvider = null;
|
|
211
|
+
/**
|
|
212
|
+
* Configure global retry settings for all RPC calls
|
|
213
|
+
*/
|
|
214
|
+
function configureRetries(config = {}) {
|
|
215
|
+
if (!globalRetryProvider) {
|
|
216
|
+
globalRetryProvider = new RetryableProvider(config);
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
globalRetryProvider.updateConfig(config);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Create a provider with retry capabilities
|
|
224
|
+
*/
|
|
225
|
+
function createRetryableProvider(provider, config = {}) {
|
|
226
|
+
const retryProvider = new RetryableProvider(config);
|
|
227
|
+
return retryProvider.wrapProvider(provider);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Get the global retry provider, creating one with defaults if it doesn't exist
|
|
231
|
+
*/
|
|
232
|
+
function getGlobalRetryProvider() {
|
|
233
|
+
if (!globalRetryProvider) {
|
|
234
|
+
globalRetryProvider = new RetryableProvider();
|
|
235
|
+
}
|
|
236
|
+
return globalRetryProvider;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Wrap a provider with the global retry configuration
|
|
240
|
+
*/
|
|
241
|
+
function wrapProviderWithRetries(provider) {
|
|
242
|
+
const retryProvider = getGlobalRetryProvider();
|
|
243
|
+
return retryProvider.wrapProvider(provider);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Utility function to check if a provider is already wrapped with retries
|
|
247
|
+
*/
|
|
248
|
+
function isRetryableProvider(provider) {
|
|
249
|
+
return provider._isRetryable === true;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Utility function to classify error types for debugging
|
|
253
|
+
*/
|
|
254
|
+
function classifyError(error) {
|
|
255
|
+
const errorMessage = error?.message?.toLowerCase() || '';
|
|
256
|
+
const errorCode = error?.code?.toString() || '';
|
|
257
|
+
const errorStatus = error?.response?.status?.toString() || '';
|
|
258
|
+
// Contract execution errors
|
|
259
|
+
const contractPatterns = [
|
|
260
|
+
'revert', 'execution reverted', 'transaction reverted',
|
|
261
|
+
'insufficient funds', 'gas required exceeds allowance',
|
|
262
|
+
'nonce too high', 'nonce too low', 'out of gas',
|
|
263
|
+
'call_exception', 'unpredictable_gas_limit'
|
|
264
|
+
];
|
|
265
|
+
if (contractPatterns.some(pattern => errorMessage.includes(pattern) || errorCode.includes(pattern))) {
|
|
266
|
+
return { type: 'contract', isRetryable: false, message: error.message };
|
|
267
|
+
}
|
|
268
|
+
// Rate limiting
|
|
269
|
+
if (errorMessage.includes('rate limit') || errorMessage.includes('too many requests') || errorStatus === '429') {
|
|
270
|
+
return { type: 'rate_limit', isRetryable: true, message: error.message };
|
|
271
|
+
}
|
|
272
|
+
// Network errors
|
|
273
|
+
const networkPatterns = [
|
|
274
|
+
'timeout', 'network error', 'connection', 'ECONNRESET',
|
|
275
|
+
'ENOTFOUND', 'ETIMEDOUT', 'socket hang up'
|
|
276
|
+
];
|
|
277
|
+
if (networkPatterns.some(pattern => errorMessage.includes(pattern) || errorCode.includes(pattern))) {
|
|
278
|
+
return { type: 'network', isRetryable: true, message: error.message };
|
|
279
|
+
}
|
|
280
|
+
// RPC errors
|
|
281
|
+
const rpcPatterns = ['rpc error', 'node error', 'provider error', 'parse error'];
|
|
282
|
+
if (rpcPatterns.some(pattern => errorMessage.includes(pattern))) {
|
|
283
|
+
return { type: 'rpc', isRetryable: true, message: error.message };
|
|
284
|
+
}
|
|
285
|
+
return { type: 'unknown', isRetryable: false, message: error.message };
|
|
286
|
+
}
|
|
287
|
+
//# sourceMappingURL=retry-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retry-provider.js","sourceRoot":"","sources":["../src/retry-provider.ts"],"names":[],"mappings":";;;AA8QA,4CAMC;AAKD,0DAMC;AAeD,0DAGC;AAKD,kDAEC;AAKD,sCA4CC;AA7VY,QAAA,oBAAoB,GAAgB;IAC7C,UAAU,EAAE,CAAC;IACb,SAAS,EAAE,IAAI,EAAE,WAAW;IAC5B,QAAQ,EAAE,KAAK,EAAE,aAAa;IAC9B,iBAAiB,EAAE,CAAC;IACpB,eAAe,EAAE;QACb,gBAAgB;QAChB,YAAY;QACZ,mBAAmB;QACnB,KAAK,EAAE,yBAAyB;QAEhC,8BAA8B;QAC9B,SAAS;QACT,eAAe;QACf,YAAY;QACZ,YAAY;QACZ,WAAW;QACX,WAAW;QACX,gBAAgB;QAChB,iBAAiB;QACjB,iBAAiB;QACjB,iBAAiB;QAEjB,+BAA+B;QAC/B,cAAc;QACd,uBAAuB;Q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,CAAC"}
|
package/dist/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAyB,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,WAAW,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAyB,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAGhD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AACnD,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,OAAO,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;CAAE,CAAC;AAEtE,eAAO,IAAI,YAAY,EAAE;IACrB,KAAK,EAAE,cAAc,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACnD,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAgBF,eAAO,MAAM,YAAY;;;;;wBAK+C,OAAO;;;sBAES,OAAO;;;;;;;;wBAjB3B,OAAO;;;sBAES,OAAO;;;;sBAIR,OAAO;wBAA8D,OAAO;;;;;;;wBAN3F,OAAO;;;sBAES,OAAO;;;;sBAIR,OAAO;wBAA8D,OAAO;;;CAoB9J,CAAC;AAEF,wBAAsB,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,EAAE,OAAO,GAAE,MAAM,GAAG,IAAW;;;;;GAyD9J"}
|
package/dist/setup.js
CHANGED
|
@@ -12,6 +12,7 @@ const ProtocolReader_1 = require("./classes/ProtocolReader");
|
|
|
12
12
|
const OracleManager_1 = require("./classes/OracleManager");
|
|
13
13
|
const Kuru_1 = __importDefault(require("./classes/Kuru"));
|
|
14
14
|
const KuruMainnet_1 = __importDefault(require("./classes/KuruMainnet"));
|
|
15
|
+
const retry_provider_1 = require("./retry-provider");
|
|
15
16
|
const monad_mainnet_config = {
|
|
16
17
|
dexAgg: KuruMainnet_1.default,
|
|
17
18
|
provider: new ethers_1.JsonRpcProvider("https://rpc-mainnet.monadinfra.com/rpc/yXdhejk7tio3mpBmpTyzQCdIQjDXsuAk"),
|
|
@@ -50,6 +51,7 @@ async function setupChain(chain, provider, approval_protection = false, api_url
|
|
|
50
51
|
if (provider == null) {
|
|
51
52
|
provider = exports.chain_config[chain].provider;
|
|
52
53
|
}
|
|
54
|
+
provider = (0, retry_provider_1.wrapProviderWithRetries)(provider);
|
|
53
55
|
exports.setup_config = {
|
|
54
56
|
chain,
|
|
55
57
|
provider,
|
package/dist/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":";;;;;;AA6DA,gCAyDC;AAtHD,mCAAgE;AAChE,uCAAiE;AACjE,6CAA0C;AAE1C,6DAA0D;AAC1D,2DAAwD;AACxD,0DAAkC;AAClC,wEAAgD;AAChD,qDAA2D;AAqB3D,MAAM,oBAAoB,GAAG;IACzB,MAAM,EAAE,qBAAW;IACnB,QAAQ,EAAE,IAAI,wBAAe,CAAC,yEAAyE,CAAC;IACxG,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,4CAAuD;IACvE,aAAa,EAAE;QACX,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,4CAAuD,EAAE;QACrF,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,4CAAuD,EAAE;KACvF;IACD,MAAM,EAAE;QACJ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,4CAAuD,EAAE,UAAU,EAAE,4CAAuD,EAAE;QACzJ,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,4CAAuD,EAAE,UAAU,EAAE,4CAAuD,EAAE;KAC/J;CACJ,CAAC;AACW,QAAA,YAAY,GAAG;IACxB,eAAe,EAAE;QACb,MAAM,EAAE,cAAI;QACZ,QAAQ,EAAE,IAAI,wBAAe,CAAC,oCAAoC,CAAC;QACnE,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,4CAAuD;QACvE,aAAa,EAAE;YACX,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,4CAAuD,EAAE;Y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