@lombard.finance/sdk 2.4.0 → 2.4.2

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,591 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "address", "name": "_owner", "type": "address" },
5
+ { "internalType": "address", "name": "_vault", "type": "address" },
6
+ { "internalType": "address", "name": "payoutAddress", "type": "address" },
7
+ {
8
+ "internalType": "uint96",
9
+ "name": "startingExchangeRate",
10
+ "type": "uint96"
11
+ },
12
+ { "internalType": "address", "name": "_base", "type": "address" },
13
+ {
14
+ "internalType": "uint16",
15
+ "name": "allowedExchangeRateChangeUpper",
16
+ "type": "uint16"
17
+ },
18
+ {
19
+ "internalType": "uint16",
20
+ "name": "allowedExchangeRateChangeLower",
21
+ "type": "uint16"
22
+ },
23
+ {
24
+ "internalType": "uint24",
25
+ "name": "minimumUpdateDelayInSeconds",
26
+ "type": "uint24"
27
+ },
28
+ { "internalType": "uint16", "name": "managementFee", "type": "uint16" },
29
+ { "internalType": "uint16", "name": "performanceFee", "type": "uint16" }
30
+ ],
31
+ "stateMutability": "nonpayable",
32
+ "type": "constructor"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "AccountantWithRateProviders__ExchangeRateAboveHighwaterMark",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "AccountantWithRateProviders__LowerBoundTooLarge",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "AccountantWithRateProviders__ManagementFeeTooLarge",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "AccountantWithRateProviders__OnlyCallableByBoringVault",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "AccountantWithRateProviders__Paused",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "AccountantWithRateProviders__PerformanceFeeTooLarge",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "AccountantWithRateProviders__UpdateDelayTooLarge",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "AccountantWithRateProviders__UpperBoundTooSmall",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "AccountantWithRateProviders__ZeroFeesOwed",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "anonymous": false,
81
+ "inputs": [
82
+ {
83
+ "indexed": true,
84
+ "internalType": "address",
85
+ "name": "user",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "indexed": true,
90
+ "internalType": "contract Authority",
91
+ "name": "newAuthority",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "AuthorityUpdated",
96
+ "type": "event"
97
+ },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": false,
103
+ "internalType": "uint24",
104
+ "name": "oldDelay",
105
+ "type": "uint24"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "uint24",
110
+ "name": "newDelay",
111
+ "type": "uint24"
112
+ }
113
+ ],
114
+ "name": "DelayInSecondsUpdated",
115
+ "type": "event"
116
+ },
117
+ {
118
+ "anonymous": false,
119
+ "inputs": [
120
+ {
121
+ "indexed": false,
122
+ "internalType": "uint96",
123
+ "name": "oldRate",
124
+ "type": "uint96"
125
+ },
126
+ {
127
+ "indexed": false,
128
+ "internalType": "uint96",
129
+ "name": "newRate",
130
+ "type": "uint96"
131
+ },
132
+ {
133
+ "indexed": false,
134
+ "internalType": "uint64",
135
+ "name": "currentTime",
136
+ "type": "uint64"
137
+ }
138
+ ],
139
+ "name": "ExchangeRateUpdated",
140
+ "type": "event"
141
+ },
142
+ {
143
+ "anonymous": false,
144
+ "inputs": [
145
+ {
146
+ "indexed": true,
147
+ "internalType": "address",
148
+ "name": "feeAsset",
149
+ "type": "address"
150
+ },
151
+ {
152
+ "indexed": false,
153
+ "internalType": "uint256",
154
+ "name": "amount",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "name": "FeesClaimed",
159
+ "type": "event"
160
+ },
161
+ {
162
+ "anonymous": false,
163
+ "inputs": [],
164
+ "name": "HighwaterMarkReset",
165
+ "type": "event"
166
+ },
167
+ {
168
+ "anonymous": false,
169
+ "inputs": [
170
+ {
171
+ "indexed": false,
172
+ "internalType": "uint16",
173
+ "name": "oldBound",
174
+ "type": "uint16"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "uint16",
179
+ "name": "newBound",
180
+ "type": "uint16"
181
+ }
182
+ ],
183
+ "name": "LowerBoundUpdated",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": false,
191
+ "internalType": "uint16",
192
+ "name": "oldFee",
193
+ "type": "uint16"
194
+ },
195
+ {
196
+ "indexed": false,
197
+ "internalType": "uint16",
198
+ "name": "newFee",
199
+ "type": "uint16"
200
+ }
201
+ ],
202
+ "name": "ManagementFeeUpdated",
203
+ "type": "event"
204
+ },
205
+ {
206
+ "anonymous": false,
207
+ "inputs": [
208
+ {
209
+ "indexed": true,
210
+ "internalType": "address",
211
+ "name": "user",
212
+ "type": "address"
213
+ },
214
+ {
215
+ "indexed": true,
216
+ "internalType": "address",
217
+ "name": "newOwner",
218
+ "type": "address"
219
+ }
220
+ ],
221
+ "name": "OwnershipTransferred",
222
+ "type": "event"
223
+ },
224
+ { "anonymous": false, "inputs": [], "name": "Paused", "type": "event" },
225
+ {
226
+ "anonymous": false,
227
+ "inputs": [
228
+ {
229
+ "indexed": false,
230
+ "internalType": "address",
231
+ "name": "oldPayout",
232
+ "type": "address"
233
+ },
234
+ {
235
+ "indexed": false,
236
+ "internalType": "address",
237
+ "name": "newPayout",
238
+ "type": "address"
239
+ }
240
+ ],
241
+ "name": "PayoutAddressUpdated",
242
+ "type": "event"
243
+ },
244
+ {
245
+ "anonymous": false,
246
+ "inputs": [
247
+ {
248
+ "indexed": false,
249
+ "internalType": "uint16",
250
+ "name": "oldFee",
251
+ "type": "uint16"
252
+ },
253
+ {
254
+ "indexed": false,
255
+ "internalType": "uint16",
256
+ "name": "newFee",
257
+ "type": "uint16"
258
+ }
259
+ ],
260
+ "name": "PerformanceFeeUpdated",
261
+ "type": "event"
262
+ },
263
+ {
264
+ "anonymous": false,
265
+ "inputs": [
266
+ {
267
+ "indexed": false,
268
+ "internalType": "address",
269
+ "name": "asset",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "indexed": false,
274
+ "internalType": "bool",
275
+ "name": "isPegged",
276
+ "type": "bool"
277
+ },
278
+ {
279
+ "indexed": false,
280
+ "internalType": "address",
281
+ "name": "rateProvider",
282
+ "type": "address"
283
+ }
284
+ ],
285
+ "name": "RateProviderUpdated",
286
+ "type": "event"
287
+ },
288
+ { "anonymous": false, "inputs": [], "name": "Unpaused", "type": "event" },
289
+ {
290
+ "anonymous": false,
291
+ "inputs": [
292
+ {
293
+ "indexed": false,
294
+ "internalType": "uint16",
295
+ "name": "oldBound",
296
+ "type": "uint16"
297
+ },
298
+ {
299
+ "indexed": false,
300
+ "internalType": "uint16",
301
+ "name": "newBound",
302
+ "type": "uint16"
303
+ }
304
+ ],
305
+ "name": "UpperBoundUpdated",
306
+ "type": "event"
307
+ },
308
+ {
309
+ "inputs": [],
310
+ "name": "accountantState",
311
+ "outputs": [
312
+ { "internalType": "address", "name": "payoutAddress", "type": "address" },
313
+ { "internalType": "uint96", "name": "highwaterMark", "type": "uint96" },
314
+ {
315
+ "internalType": "uint128",
316
+ "name": "feesOwedInBase",
317
+ "type": "uint128"
318
+ },
319
+ {
320
+ "internalType": "uint128",
321
+ "name": "totalSharesLastUpdate",
322
+ "type": "uint128"
323
+ },
324
+ { "internalType": "uint96", "name": "exchangeRate", "type": "uint96" },
325
+ {
326
+ "internalType": "uint16",
327
+ "name": "allowedExchangeRateChangeUpper",
328
+ "type": "uint16"
329
+ },
330
+ {
331
+ "internalType": "uint16",
332
+ "name": "allowedExchangeRateChangeLower",
333
+ "type": "uint16"
334
+ },
335
+ {
336
+ "internalType": "uint64",
337
+ "name": "lastUpdateTimestamp",
338
+ "type": "uint64"
339
+ },
340
+ { "internalType": "bool", "name": "isPaused", "type": "bool" },
341
+ {
342
+ "internalType": "uint24",
343
+ "name": "minimumUpdateDelayInSeconds",
344
+ "type": "uint24"
345
+ },
346
+ { "internalType": "uint16", "name": "managementFee", "type": "uint16" },
347
+ { "internalType": "uint16", "name": "performanceFee", "type": "uint16" }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [],
354
+ "name": "authority",
355
+ "outputs": [
356
+ { "internalType": "contract Authority", "name": "", "type": "address" }
357
+ ],
358
+ "stateMutability": "view",
359
+ "type": "function"
360
+ },
361
+ {
362
+ "inputs": [],
363
+ "name": "base",
364
+ "outputs": [
365
+ { "internalType": "contract ERC20", "name": "", "type": "address" }
366
+ ],
367
+ "stateMutability": "view",
368
+ "type": "function"
369
+ },
370
+ {
371
+ "inputs": [
372
+ {
373
+ "internalType": "contract ERC20",
374
+ "name": "feeAsset",
375
+ "type": "address"
376
+ }
377
+ ],
378
+ "name": "claimFees",
379
+ "outputs": [],
380
+ "stateMutability": "nonpayable",
381
+ "type": "function"
382
+ },
383
+ {
384
+ "inputs": [],
385
+ "name": "decimals",
386
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
387
+ "stateMutability": "view",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [],
392
+ "name": "getRate",
393
+ "outputs": [
394
+ { "internalType": "uint256", "name": "rate", "type": "uint256" }
395
+ ],
396
+ "stateMutability": "view",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [
401
+ { "internalType": "contract ERC20", "name": "quote", "type": "address" }
402
+ ],
403
+ "name": "getRateInQuote",
404
+ "outputs": [
405
+ { "internalType": "uint256", "name": "rateInQuote", "type": "uint256" }
406
+ ],
407
+ "stateMutability": "view",
408
+ "type": "function"
409
+ },
410
+ {
411
+ "inputs": [
412
+ { "internalType": "contract ERC20", "name": "quote", "type": "address" }
413
+ ],
414
+ "name": "getRateInQuoteSafe",
415
+ "outputs": [
416
+ { "internalType": "uint256", "name": "rateInQuote", "type": "uint256" }
417
+ ],
418
+ "stateMutability": "view",
419
+ "type": "function"
420
+ },
421
+ {
422
+ "inputs": [],
423
+ "name": "getRateSafe",
424
+ "outputs": [
425
+ { "internalType": "uint256", "name": "rate", "type": "uint256" }
426
+ ],
427
+ "stateMutability": "view",
428
+ "type": "function"
429
+ },
430
+ {
431
+ "inputs": [],
432
+ "name": "owner",
433
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
434
+ "stateMutability": "view",
435
+ "type": "function"
436
+ },
437
+ {
438
+ "inputs": [],
439
+ "name": "pause",
440
+ "outputs": [],
441
+ "stateMutability": "nonpayable",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [
446
+ { "internalType": "contract ERC20", "name": "", "type": "address" }
447
+ ],
448
+ "name": "rateProviderData",
449
+ "outputs": [
450
+ { "internalType": "bool", "name": "isPeggedToBase", "type": "bool" },
451
+ {
452
+ "internalType": "contract IRateProvider",
453
+ "name": "rateProvider",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [],
462
+ "name": "resetHighwaterMark",
463
+ "outputs": [],
464
+ "stateMutability": "nonpayable",
465
+ "type": "function"
466
+ },
467
+ {
468
+ "inputs": [
469
+ {
470
+ "internalType": "contract Authority",
471
+ "name": "newAuthority",
472
+ "type": "address"
473
+ }
474
+ ],
475
+ "name": "setAuthority",
476
+ "outputs": [],
477
+ "stateMutability": "nonpayable",
478
+ "type": "function"
479
+ },
480
+ {
481
+ "inputs": [
482
+ { "internalType": "contract ERC20", "name": "asset", "type": "address" },
483
+ { "internalType": "bool", "name": "isPeggedToBase", "type": "bool" },
484
+ { "internalType": "address", "name": "rateProvider", "type": "address" }
485
+ ],
486
+ "name": "setRateProviderData",
487
+ "outputs": [],
488
+ "stateMutability": "nonpayable",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ { "internalType": "address", "name": "newOwner", "type": "address" }
494
+ ],
495
+ "name": "transferOwnership",
496
+ "outputs": [],
497
+ "stateMutability": "nonpayable",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [],
502
+ "name": "unpause",
503
+ "outputs": [],
504
+ "stateMutability": "nonpayable",
505
+ "type": "function"
506
+ },
507
+ {
508
+ "inputs": [
509
+ {
510
+ "internalType": "uint24",
511
+ "name": "minimumUpdateDelayInSeconds",
512
+ "type": "uint24"
513
+ }
514
+ ],
515
+ "name": "updateDelay",
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [
522
+ { "internalType": "uint96", "name": "newExchangeRate", "type": "uint96" }
523
+ ],
524
+ "name": "updateExchangeRate",
525
+ "outputs": [],
526
+ "stateMutability": "nonpayable",
527
+ "type": "function"
528
+ },
529
+ {
530
+ "inputs": [
531
+ {
532
+ "internalType": "uint16",
533
+ "name": "allowedExchangeRateChangeLower",
534
+ "type": "uint16"
535
+ }
536
+ ],
537
+ "name": "updateLower",
538
+ "outputs": [],
539
+ "stateMutability": "nonpayable",
540
+ "type": "function"
541
+ },
542
+ {
543
+ "inputs": [
544
+ { "internalType": "uint16", "name": "managementFee", "type": "uint16" }
545
+ ],
546
+ "name": "updateManagementFee",
547
+ "outputs": [],
548
+ "stateMutability": "nonpayable",
549
+ "type": "function"
550
+ },
551
+ {
552
+ "inputs": [
553
+ { "internalType": "address", "name": "payoutAddress", "type": "address" }
554
+ ],
555
+ "name": "updatePayoutAddress",
556
+ "outputs": [],
557
+ "stateMutability": "nonpayable",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [
562
+ { "internalType": "uint16", "name": "performanceFee", "type": "uint16" }
563
+ ],
564
+ "name": "updatePerformanceFee",
565
+ "outputs": [],
566
+ "stateMutability": "nonpayable",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [
571
+ {
572
+ "internalType": "uint16",
573
+ "name": "allowedExchangeRateChangeUpper",
574
+ "type": "uint16"
575
+ }
576
+ ],
577
+ "name": "updateUpper",
578
+ "outputs": [],
579
+ "stateMutability": "nonpayable",
580
+ "type": "function"
581
+ },
582
+ {
583
+ "inputs": [],
584
+ "name": "vault",
585
+ "outputs": [
586
+ { "internalType": "contract BoringVault", "name": "", "type": "address" }
587
+ ],
588
+ "stateMutability": "view",
589
+ "type": "function"
590
+ }
591
+ ]