@curvefi/api 2.37.0 → 2.39.0

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.
@@ -0,0 +1,450 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_anycall",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "anonymous": false,
15
+ "inputs": [
16
+ {
17
+ "indexed": false,
18
+ "internalType": "uint256",
19
+ "name": "_eth_block_number",
20
+ "type": "uint256"
21
+ },
22
+ {
23
+ "indexed": false,
24
+ "internalType": "bytes32",
25
+ "name": "_eth_blockhash",
26
+ "type": "bytes32"
27
+ }
28
+ ],
29
+ "name": "SetBlockhash",
30
+ "type": "event"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
35
+ {
36
+ "indexed": false,
37
+ "internalType": "address",
38
+ "name": "_user",
39
+ "type": "address"
40
+ },
41
+ {
42
+ "indexed": false,
43
+ "internalType": "bytes32",
44
+ "name": "blockhash",
45
+ "type": "bytes32"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "bytes32",
50
+ "name": "proofhash",
51
+ "type": "bytes32"
52
+ }
53
+ ],
54
+ "name": "SubmittedState",
55
+ "type": "event"
56
+ },
57
+ {
58
+ "anonymous": false,
59
+ "inputs": [
60
+ {
61
+ "indexed": false,
62
+ "internalType": "address",
63
+ "name": "_old_owner",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "indexed": false,
68
+ "internalType": "address",
69
+ "name": "_new_owner",
70
+ "type": "address"
71
+ }
72
+ ],
73
+ "name": "TransferOwnership",
74
+ "type": "event"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "ANYCALL",
79
+ "outputs": [
80
+ {
81
+ "internalType": "address",
82
+ "name": "",
83
+ "type": "address"
84
+ }
85
+ ],
86
+ "stateMutability": "view",
87
+ "type": "function"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "accept_transfer_ownership",
92
+ "outputs": [],
93
+ "stateMutability": "nonpayable",
94
+ "type": "function"
95
+ },
96
+ {
97
+ "inputs": [
98
+ {
99
+ "internalType": "address",
100
+ "name": "_user",
101
+ "type": "address"
102
+ },
103
+ {
104
+ "internalType": "uint256",
105
+ "name": "_timestamp",
106
+ "type": "uint256"
107
+ }
108
+ ],
109
+ "name": "balanceOf",
110
+ "outputs": [
111
+ {
112
+ "internalType": "uint256",
113
+ "name": "",
114
+ "type": "uint256"
115
+ }
116
+ ],
117
+ "stateMutability": "view",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "inputs": [
122
+ {
123
+ "internalType": "address",
124
+ "name": "_user",
125
+ "type": "address"
126
+ }
127
+ ],
128
+ "name": "balanceOf",
129
+ "outputs": [
130
+ {
131
+ "internalType": "uint256",
132
+ "name": "",
133
+ "type": "uint256"
134
+ }
135
+ ],
136
+ "stateMutability": "view",
137
+ "type": "function"
138
+ },
139
+ {
140
+ "inputs": [
141
+ {
142
+ "internalType": "address",
143
+ "name": "_future_owner",
144
+ "type": "address"
145
+ }
146
+ ],
147
+ "name": "commit_transfer_ownership",
148
+ "outputs": [],
149
+ "stateMutability": "nonpayable",
150
+ "type": "function"
151
+ },
152
+ {
153
+ "inputs": [],
154
+ "name": "epoch",
155
+ "outputs": [
156
+ {
157
+ "internalType": "uint256",
158
+ "name": "",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "stateMutability": "view",
163
+ "type": "function"
164
+ },
165
+ {
166
+ "inputs": [],
167
+ "name": "future_owner",
168
+ "outputs": [
169
+ {
170
+ "internalType": "address",
171
+ "name": "",
172
+ "type": "address"
173
+ }
174
+ ],
175
+ "stateMutability": "view",
176
+ "type": "function"
177
+ },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "_eth_block_number",
183
+ "type": "uint256"
184
+ }
185
+ ],
186
+ "name": "get_eth_blockhash",
187
+ "outputs": [
188
+ {
189
+ "internalType": "bytes32",
190
+ "name": "eth_blockhash",
191
+ "type": "bytes32"
192
+ }
193
+ ],
194
+ "stateMutability": "view",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "inputs": [],
199
+ "name": "last_eth_block_number",
200
+ "outputs": [
201
+ {
202
+ "internalType": "uint256",
203
+ "name": "",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "stateMutability": "view",
208
+ "type": "function"
209
+ },
210
+ {
211
+ "inputs": [
212
+ {
213
+ "internalType": "address",
214
+ "name": "",
215
+ "type": "address"
216
+ }
217
+ ],
218
+ "name": "locked",
219
+ "outputs": [
220
+ {
221
+ "internalType": "int128",
222
+ "name": "amount",
223
+ "type": "int128"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "end",
228
+ "type": "uint256"
229
+ }
230
+ ],
231
+ "stateMutability": "view",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [],
236
+ "name": "owner",
237
+ "outputs": [
238
+ {
239
+ "internalType": "address",
240
+ "name": "",
241
+ "type": "address"
242
+ }
243
+ ],
244
+ "stateMutability": "view",
245
+ "type": "function"
246
+ },
247
+ {
248
+ "inputs": [
249
+ {
250
+ "internalType": "uint256",
251
+ "name": "",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "name": "point_history",
256
+ "outputs": [
257
+ {
258
+ "internalType": "int128",
259
+ "name": "bias",
260
+ "type": "int128"
261
+ },
262
+ {
263
+ "internalType": "int128",
264
+ "name": "slope",
265
+ "type": "int128"
266
+ },
267
+ {
268
+ "internalType": "uint256",
269
+ "name": "ts",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "internalType": "uint256",
274
+ "name": "blk",
275
+ "type": "uint256"
276
+ }
277
+ ],
278
+ "stateMutability": "view",
279
+ "type": "function"
280
+ },
281
+ {
282
+ "inputs": [
283
+ {
284
+ "internalType": "uint256",
285
+ "name": "_eth_block_number",
286
+ "type": "uint256"
287
+ },
288
+ {
289
+ "internalType": "bytes32",
290
+ "name": "__eth_blockhash",
291
+ "type": "bytes32"
292
+ }
293
+ ],
294
+ "name": "set_eth_blockhash",
295
+ "outputs": [],
296
+ "stateMutability": "nonpayable",
297
+ "type": "function"
298
+ },
299
+ {
300
+ "inputs": [
301
+ {
302
+ "internalType": "uint256",
303
+ "name": "",
304
+ "type": "uint256"
305
+ }
306
+ ],
307
+ "name": "slope_changes",
308
+ "outputs": [
309
+ {
310
+ "internalType": "int128",
311
+ "name": "",
312
+ "type": "int128"
313
+ }
314
+ ],
315
+ "stateMutability": "view",
316
+ "type": "function"
317
+ },
318
+ {
319
+ "inputs": [
320
+ {
321
+ "internalType": "address",
322
+ "name": "_user",
323
+ "type": "address"
324
+ },
325
+ {
326
+ "internalType": "bytes",
327
+ "name": "_block_header_rlp",
328
+ "type": "bytes"
329
+ },
330
+ {
331
+ "internalType": "bytes",
332
+ "name": "_proof_rlp",
333
+ "type": "bytes"
334
+ }
335
+ ],
336
+ "name": "submit_state",
337
+ "outputs": [],
338
+ "stateMutability": "nonpayable",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "internalType": "bytes32",
345
+ "name": "",
346
+ "type": "bytes32"
347
+ }
348
+ ],
349
+ "name": "submitted_hashes",
350
+ "outputs": [
351
+ {
352
+ "internalType": "bool",
353
+ "name": "",
354
+ "type": "bool"
355
+ }
356
+ ],
357
+ "stateMutability": "view",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [],
362
+ "name": "totalSupply",
363
+ "outputs": [
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "stateMutability": "view",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [
375
+ {
376
+ "internalType": "uint256",
377
+ "name": "_timestamp",
378
+ "type": "uint256"
379
+ }
380
+ ],
381
+ "name": "totalSupply",
382
+ "outputs": [
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "",
386
+ "type": "uint256"
387
+ }
388
+ ],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [
394
+ {
395
+ "internalType": "address",
396
+ "name": "",
397
+ "type": "address"
398
+ }
399
+ ],
400
+ "name": "user_point_epoch",
401
+ "outputs": [
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "stateMutability": "view",
409
+ "type": "function"
410
+ },
411
+ {
412
+ "inputs": [
413
+ {
414
+ "internalType": "address",
415
+ "name": "",
416
+ "type": "address"
417
+ },
418
+ {
419
+ "internalType": "uint256",
420
+ "name": "",
421
+ "type": "uint256"
422
+ }
423
+ ],
424
+ "name": "user_point_history",
425
+ "outputs": [
426
+ {
427
+ "internalType": "int128",
428
+ "name": "bias",
429
+ "type": "int128"
430
+ },
431
+ {
432
+ "internalType": "int128",
433
+ "name": "slope",
434
+ "type": "int128"
435
+ },
436
+ {
437
+ "internalType": "uint256",
438
+ "name": "ts",
439
+ "type": "uint256"
440
+ },
441
+ {
442
+ "internalType": "uint256",
443
+ "name": "blk",
444
+ "type": "uint256"
445
+ }
446
+ ],
447
+ "stateMutability": "view",
448
+ "type": "function"
449
+ }
450
+ ]
@@ -0,0 +1,76 @@
1
+ [
2
+ {
3
+ "stateMutability": "nonpayable",
4
+ "type": "function",
5
+ "name": "send_blockhash",
6
+ "inputs": [
7
+ {
8
+ "name": "_block_number",
9
+ "type": "uint256"
10
+ },
11
+ {
12
+ "name": "_chain_id",
13
+ "type": "uint256"
14
+ }
15
+ ],
16
+ "outputs": [],
17
+ "gas": "54147"
18
+ },
19
+ {
20
+ "stateMutability": "view",
21
+ "type": "function",
22
+ "name": "block_number_bounds",
23
+ "inputs": [],
24
+ "outputs": [
25
+ {
26
+ "name": "",
27
+ "type": "uint256[2]"
28
+ }
29
+ ],
30
+ "gas": "740"
31
+ },
32
+ {
33
+ "stateMutability": "view",
34
+ "type": "function",
35
+ "name": "generate_eth_get_proof_params",
36
+ "inputs": [
37
+ {
38
+ "name": "_user",
39
+ "type": "address"
40
+ }
41
+ ],
42
+ "outputs": [
43
+ {
44
+ "name": "",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "name": "",
49
+ "type": "uint256[20]"
50
+ },
51
+ {
52
+ "name": "",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "gas": "21089"
57
+ },
58
+ {
59
+ "stateMutability": "view",
60
+ "type": "function",
61
+ "name": "get_last_block_number_sent",
62
+ "inputs": [
63
+ {
64
+ "name": "_chain_id",
65
+ "type": "uint256"
66
+ }
67
+ ],
68
+ "outputs": [
69
+ {
70
+ "name": "",
71
+ "type": "uint256"
72
+ }
73
+ ],
74
+ "gas": "2747"
75
+ }
76
+ ]
@@ -12,6 +12,7 @@ export var ALIASES_ETHEREUM = lowerCaseValues({
12
12
  "factory": '0xb9fc157394af804a3578134a6585c0dc9cc990d4',
13
13
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
14
14
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
15
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
15
16
  "registry_exchange": "",
16
17
  "factory_admin": "",
17
18
  });
@@ -28,6 +29,7 @@ export var ALIASES_POLYGON = lowerCaseValues({
28
29
  "factory": '0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee',
29
30
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
30
31
  "crypto_factory": "0xE5De15A9C9bBedb4F5EC13B131E61245f2983A69",
32
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
31
33
  "registry_exchange": "",
32
34
  "factory_admin": "",
33
35
  });
@@ -44,6 +46,7 @@ export var ALIASES_FANTOM = lowerCaseValues({
44
46
  "factory": "0x686d67265703d1f124c45e33d47d794c566889ba",
45
47
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
46
48
  "crypto_factory": "0xE5De15A9C9bBedb4F5EC13B131E61245f2983A69",
49
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
47
50
  "registry_exchange": "",
48
51
  "factory_admin": "",
49
52
  });
@@ -60,6 +63,7 @@ export var ALIASES_AVALANCHE = lowerCaseValues({
60
63
  "factory": '0xb17b674D9c5CB2e441F8e196a2f048A81355d031',
61
64
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
62
65
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
66
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
63
67
  "registry_exchange": "",
64
68
  "factory_admin": "",
65
69
  });
@@ -76,6 +80,7 @@ export var ALIASES_ARBITRUM = lowerCaseValues({
76
80
  "factory": '0xb17b674D9c5CB2e441F8e196a2f048A81355d031',
77
81
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
78
82
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
83
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
79
84
  "registry_exchange": "",
80
85
  "factory_admin": "",
81
86
  });
@@ -92,6 +97,7 @@ export var ALIASES_OPTIMISM = lowerCaseValues({
92
97
  "factory": '0x2db0E83599a91b508Ac268a6197b8B14F5e72840',
93
98
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
94
99
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
100
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
95
101
  "registry_exchange": "",
96
102
  "factory_admin": "",
97
103
  });
@@ -108,6 +114,7 @@ export var ALIASES_XDAI = lowerCaseValues({
108
114
  "factory": '0xD19Baeadc667Cf2015e395f2B08668Ef120f41F5',
109
115
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
110
116
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
117
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
111
118
  "registry_exchange": "",
112
119
  "factory_admin": "",
113
120
  });
@@ -124,6 +131,7 @@ export var ALIASES_MOONBEAM = lowerCaseValues({
124
131
  "factory": '0x4244eB811D6e0Ef302326675207A95113dB4E1F8',
125
132
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
126
133
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
134
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
127
135
  "registry_exchange": "",
128
136
  "factory_admin": "",
129
137
  });
@@ -140,6 +148,7 @@ export var ALIASES_AURORA = lowerCaseValues({
140
148
  "factory": '0xb9fc157394af804a3578134a6585c0dc9cc990d4',
141
149
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
142
150
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
151
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
143
152
  "registry_exchange": "",
144
153
  "factory_admin": "",
145
154
  });
@@ -156,6 +165,7 @@ export var ALIASES_KAVA = lowerCaseValues({
156
165
  "factory": '0x40bc62805471eF53DdD5C5cF99ed3d9e5aa81b48',
157
166
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
158
167
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
168
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
159
169
  "registry_exchange": "",
160
170
  "factory_admin": "",
161
171
  });
@@ -172,6 +182,7 @@ export var ALIASES_CELO = lowerCaseValues({
172
182
  "factory": '0x5277A0226d10392295E8D383E9724D6E416d6e6C',
173
183
  "crvusd_factory": '0x4F8846Ae9380B90d2E71D5e3D042dff3E7ebb40d',
174
184
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
185
+ "tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
175
186
  "registry_exchange": "",
176
187
  "factory_admin": "",
177
188
  });
package/lib/curve.d.ts CHANGED
@@ -50,6 +50,7 @@ declare class Curve implements ICurve {
50
50
  FACTORY_POOLS_DATA: IDict<IPoolData>;
51
51
  CRVUSD_FACTORY_POOLS_DATA: IDict<IPoolData>;
52
52
  CRYPTO_FACTORY_POOLS_DATA: IDict<IPoolData>;
53
+ TRICRYPTO_FACTORY_POOLS_DATA: IDict<IPoolData>;
53
54
  LLAMMAS_DATA: IDict<IPoolData>;
54
55
  COINS: IDict<string>;
55
56
  DECIMALS: IDict<number>;
@@ -77,15 +78,20 @@ declare class Curve implements ICurve {
77
78
  fetchFactoryPools: (useApi?: boolean) => Promise<void>;
78
79
  fetchCrvusdFactoryPools: (useApi?: boolean) => Promise<void>;
79
80
  fetchCryptoFactoryPools: (useApi?: boolean) => Promise<void>;
81
+ fetchTricryptoFactoryPools: (useApi?: boolean) => Promise<void>;
80
82
  fetchNewFactoryPools: () => Promise<string[]>;
81
83
  fetchNewCryptoFactoryPools: () => Promise<string[]>;
84
+ fetchNewTricryptoFactoryPools: () => Promise<string[]>;
82
85
  fetchRecentlyDeployedFactoryPool: (poolAddress: string) => Promise<string>;
83
86
  fetchRecentlyDeployedCryptoFactoryPool: (poolAddress: string) => Promise<string>;
87
+ fetchRecentlyDeployedTricryptoFactoryPool: (poolAddress: string) => Promise<string>;
84
88
  getMainPoolList: () => string[];
85
89
  getFactoryPoolList: () => string[];
86
90
  getCrvusdFactoryPoolList: () => string[];
87
91
  getCryptoFactoryPoolList: () => string[];
92
+ getTricryptoFactoryPoolList: () => string[];
88
93
  getPoolList: () => string[];
94
+ getPoolsData: () => IDict<IPoolData>;
89
95
  setCustomFeeData(customFeeData: {
90
96
  gasPrice?: number;
91
97
  maxFeePerGas?: number;