@varla/sdk 1.10.13 → 1.11.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/AGENTS.md +3 -4
- package/README.md +7 -0
- package/dist/abi/full/VarlaOracle.d.ts +112 -0
- package/dist/abi/full/VarlaOracle.d.ts.map +1 -1
- package/dist/abi/full/VarlaOracle.js +147 -0
- package/dist/abi/full/VarlaPool.d.ts +8 -0
- package/dist/abi/full/VarlaPool.d.ts.map +1 -1
- package/dist/abi/full/VarlaPool.js +11 -0
- package/dist/abi/subsets/VarlaOracle.registry.d.ts +64 -0
- package/dist/abi/subsets/VarlaOracle.registry.d.ts.map +1 -1
- package/dist/abi/subsets/VarlaOracle.registry.js +84 -0
- package/dist/addresses/bsc.d.ts.map +1 -1
- package/dist/addresses/bsc.js +9 -8
- package/dist/addresses/polygon.js +9 -9
- package/dist/batch.d.ts +1 -1
- package/dist/batch.d.ts.map +1 -1
- package/dist/events/oracleRegistrySync.js +1 -1
- package/dist/generated.d.ts +184 -0
- package/dist/generated.d.ts.map +1 -1
- package/dist/views/core.d.ts +22 -0
- package/dist/views/core.d.ts.map +1 -1
- package/dist/views/core.js +5 -0
- package/dist/views/index.d.ts +1 -0
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +1 -0
- package/dist/views/lenders.d.ts +54 -0
- package/dist/views/lenders.d.ts.map +1 -0
- package/dist/views/lenders.js +30 -0
- package/dist/views/oracle.d.ts +12 -0
- package/dist/views/oracle.d.ts.map +1 -1
- package/dist/views/oracle.js +5 -0
- package/dist/views/pool.d.ts +54 -0
- package/dist/views/pool.d.ts.map +1 -1
- package/dist/views/pool.js +43 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Published package: **@varla/sdk**
|
|
4
4
|
|
|
5
|
-
## Setup
|
|
5
|
+
## Setup
|
|
6
6
|
- Install: `bun install`
|
|
7
7
|
- Build: `cd packages/sdk && bun run build`
|
|
8
8
|
- Prepack: `cd packages/sdk && bun run prepack`
|
|
@@ -12,11 +12,10 @@ Published package: **@varla/sdk**
|
|
|
12
12
|
- Types: `cd packages/sdk && bun run test:types`
|
|
13
13
|
- Slow RPC (opt-in): `cd packages/sdk && bun run test:rpc:slow`
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Primary exports
|
|
16
16
|
- Addresses: `@varla/sdk/addresses`
|
|
17
17
|
- ABIs: `@varla/sdk/abi`
|
|
18
|
-
-
|
|
19
|
-
- Views: `@varla/sdk` or `@varla/sdk/views`
|
|
18
|
+
- Contracts/bindings + views: `@varla/sdk` or `@varla/sdk/views`
|
|
20
19
|
- Actions: `@varla/sdk/actions`
|
|
21
20
|
- Events/indexer: `@varla/sdk/events`
|
|
22
21
|
- Utilities: `@varla/sdk/batch`, `@varla/sdk/format`
|
package/README.md
CHANGED
|
@@ -135,6 +135,7 @@ These are convenience helpers built on top of the contract bindings.
|
|
|
135
135
|
- `readHasRole`
|
|
136
136
|
- `readHealthFactor`
|
|
137
137
|
- `readInterestRateStrategyBasics`
|
|
138
|
+
- `readLenderSnapshot`
|
|
138
139
|
- `readLiquidationBonusBps`
|
|
139
140
|
- `readLiquidationConfig`
|
|
140
141
|
- `readLiquidationParamsForPosition`
|
|
@@ -150,11 +151,14 @@ These are convenience helpers built on top of the contract bindings.
|
|
|
150
151
|
- `readManyTargetConfigs`
|
|
151
152
|
- `readManyTargetFunctionRoles`
|
|
152
153
|
- `readMaxPositionsConfig`
|
|
154
|
+
- `readMaxRedeem`
|
|
155
|
+
- `readMaxWithdraw`
|
|
153
156
|
- `readMergeLiquidatorBasics`
|
|
154
157
|
- `readNegRiskMarketPositionIds`
|
|
155
158
|
- `readOracleBasics`
|
|
156
159
|
- `readOracleCollateralStatus`
|
|
157
160
|
- `readOracleConfig`
|
|
161
|
+
- `readOracleFinalizationStatus`
|
|
158
162
|
- `readOracleGuardsStatus`
|
|
159
163
|
- `readOraclePositionMeta`
|
|
160
164
|
- `readOraclePriceData`
|
|
@@ -165,7 +169,9 @@ These are convenience helpers built on top of the contract bindings.
|
|
|
165
169
|
- `readPoolCaps`
|
|
166
170
|
- `readPoolCoreAddress`
|
|
167
171
|
- `readPoolDebtState`
|
|
172
|
+
- `readPoolHealthScore`
|
|
168
173
|
- `readPoolRates`
|
|
174
|
+
- `readPoolSharePrice`
|
|
169
175
|
- `readPoolSnapshot`
|
|
170
176
|
- `readPortfolioValue`
|
|
171
177
|
- `readPositionBalance`
|
|
@@ -184,6 +190,7 @@ These are convenience helpers built on top of the contract bindings.
|
|
|
184
190
|
- `readSystemSnapshot`
|
|
185
191
|
- `readTargetConfig`
|
|
186
192
|
- `readTierLiquidationConfig`
|
|
193
|
+
- `readTieredLtvConfig`
|
|
187
194
|
- `readTryGetPrice`
|
|
188
195
|
- `readTwap`
|
|
189
196
|
<!-- END GENERATED:VIEW_HELPERS -->
|
|
@@ -82,6 +82,14 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
82
82
|
}];
|
|
83
83
|
readonly name: "InvalidEarlyClosureWindow";
|
|
84
84
|
readonly type: "error";
|
|
85
|
+
}, {
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly internalType: "uint256";
|
|
88
|
+
readonly name: "priceE8";
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
}];
|
|
91
|
+
readonly name: "InvalidFinalResolutionPrice";
|
|
92
|
+
readonly type: "error";
|
|
85
93
|
}, {
|
|
86
94
|
readonly inputs: readonly [{
|
|
87
95
|
readonly internalType: "uint256";
|
|
@@ -138,6 +146,14 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
138
146
|
readonly inputs: readonly [];
|
|
139
147
|
readonly name: "OnlyUpdater";
|
|
140
148
|
readonly type: "error";
|
|
149
|
+
}, {
|
|
150
|
+
readonly inputs: readonly [{
|
|
151
|
+
readonly internalType: "uint256";
|
|
152
|
+
readonly name: "positionId";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}];
|
|
155
|
+
readonly name: "PositionNeverUpdated";
|
|
156
|
+
readonly type: "error";
|
|
141
157
|
}, {
|
|
142
158
|
readonly inputs: readonly [{
|
|
143
159
|
readonly internalType: "uint256";
|
|
@@ -146,6 +162,14 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
146
162
|
}];
|
|
147
163
|
readonly name: "PositionNotConfigured";
|
|
148
164
|
readonly type: "error";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "positionId";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "PositionNotResolved";
|
|
172
|
+
readonly type: "error";
|
|
149
173
|
}, {
|
|
150
174
|
readonly inputs: readonly [{
|
|
151
175
|
readonly internalType: "uint256";
|
|
@@ -350,6 +374,21 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
350
374
|
}];
|
|
351
375
|
readonly name: "PositionEarlyClosureWindowOverrideUpdated";
|
|
352
376
|
readonly type: "event";
|
|
377
|
+
}, {
|
|
378
|
+
readonly anonymous: false;
|
|
379
|
+
readonly inputs: readonly [{
|
|
380
|
+
readonly indexed: true;
|
|
381
|
+
readonly internalType: "uint256";
|
|
382
|
+
readonly name: "positionId";
|
|
383
|
+
readonly type: "uint256";
|
|
384
|
+
}, {
|
|
385
|
+
readonly indexed: false;
|
|
386
|
+
readonly internalType: "uint256";
|
|
387
|
+
readonly name: "priceE8";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}];
|
|
390
|
+
readonly name: "PositionFinalized";
|
|
391
|
+
readonly type: "event";
|
|
353
392
|
}, {
|
|
354
393
|
readonly anonymous: false;
|
|
355
394
|
readonly inputs: readonly [{
|
|
@@ -365,6 +404,31 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
365
404
|
}];
|
|
366
405
|
readonly name: "PositionInvalidated";
|
|
367
406
|
readonly type: "event";
|
|
407
|
+
}, {
|
|
408
|
+
readonly anonymous: false;
|
|
409
|
+
readonly inputs: readonly [{
|
|
410
|
+
readonly indexed: true;
|
|
411
|
+
readonly internalType: "uint256";
|
|
412
|
+
readonly name: "positionId";
|
|
413
|
+
readonly type: "uint256";
|
|
414
|
+
}, {
|
|
415
|
+
readonly indexed: false;
|
|
416
|
+
readonly internalType: "uint256";
|
|
417
|
+
readonly name: "finalPriceE8";
|
|
418
|
+
readonly type: "uint256";
|
|
419
|
+
}];
|
|
420
|
+
readonly name: "PositionResolvedEarly";
|
|
421
|
+
readonly type: "event";
|
|
422
|
+
}, {
|
|
423
|
+
readonly anonymous: false;
|
|
424
|
+
readonly inputs: readonly [{
|
|
425
|
+
readonly indexed: true;
|
|
426
|
+
readonly internalType: "uint256";
|
|
427
|
+
readonly name: "positionId";
|
|
428
|
+
readonly type: "uint256";
|
|
429
|
+
}];
|
|
430
|
+
readonly name: "PositionUnfinalized";
|
|
431
|
+
readonly type: "event";
|
|
368
432
|
}, {
|
|
369
433
|
readonly anonymous: false;
|
|
370
434
|
readonly inputs: readonly [{
|
|
@@ -646,6 +710,16 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
646
710
|
}];
|
|
647
711
|
readonly stateMutability: "view";
|
|
648
712
|
readonly type: "function";
|
|
713
|
+
}, {
|
|
714
|
+
readonly inputs: readonly [{
|
|
715
|
+
readonly internalType: "uint256";
|
|
716
|
+
readonly name: "positionId";
|
|
717
|
+
readonly type: "uint256";
|
|
718
|
+
}];
|
|
719
|
+
readonly name: "finalizePosition";
|
|
720
|
+
readonly outputs: readonly [];
|
|
721
|
+
readonly stateMutability: "nonpayable";
|
|
722
|
+
readonly type: "function";
|
|
649
723
|
}, {
|
|
650
724
|
readonly inputs: readonly [{
|
|
651
725
|
readonly internalType: "uint256";
|
|
@@ -982,6 +1056,20 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
982
1056
|
}];
|
|
983
1057
|
readonly stateMutability: "view";
|
|
984
1058
|
readonly type: "function";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly inputs: readonly [{
|
|
1061
|
+
readonly internalType: "uint256";
|
|
1062
|
+
readonly name: "positionId";
|
|
1063
|
+
readonly type: "uint256";
|
|
1064
|
+
}];
|
|
1065
|
+
readonly name: "isFinalized";
|
|
1066
|
+
readonly outputs: readonly [{
|
|
1067
|
+
readonly internalType: "bool";
|
|
1068
|
+
readonly name: "";
|
|
1069
|
+
readonly type: "bool";
|
|
1070
|
+
}];
|
|
1071
|
+
readonly stateMutability: "view";
|
|
1072
|
+
readonly type: "function";
|
|
985
1073
|
}, {
|
|
986
1074
|
readonly inputs: readonly [{
|
|
987
1075
|
readonly internalType: "uint256";
|
|
@@ -1114,6 +1202,20 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
1114
1202
|
readonly outputs: readonly [];
|
|
1115
1203
|
readonly stateMutability: "nonpayable";
|
|
1116
1204
|
readonly type: "function";
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly inputs: readonly [{
|
|
1207
|
+
readonly internalType: "uint256";
|
|
1208
|
+
readonly name: "positionId";
|
|
1209
|
+
readonly type: "uint256";
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly internalType: "uint256";
|
|
1212
|
+
readonly name: "finalPriceE8";
|
|
1213
|
+
readonly type: "uint256";
|
|
1214
|
+
}];
|
|
1215
|
+
readonly name: "resolvePositionEarly";
|
|
1216
|
+
readonly outputs: readonly [];
|
|
1217
|
+
readonly stateMutability: "nonpayable";
|
|
1218
|
+
readonly type: "function";
|
|
1117
1219
|
}, {
|
|
1118
1220
|
readonly inputs: readonly [{
|
|
1119
1221
|
readonly internalType: "address";
|
|
@@ -1210,6 +1312,16 @@ export declare const VARLAORACLE_ABI: readonly [{
|
|
|
1210
1312
|
}];
|
|
1211
1313
|
readonly stateMutability: "view";
|
|
1212
1314
|
readonly type: "function";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly inputs: readonly [{
|
|
1317
|
+
readonly internalType: "uint256";
|
|
1318
|
+
readonly name: "positionId";
|
|
1319
|
+
readonly type: "uint256";
|
|
1320
|
+
}];
|
|
1321
|
+
readonly name: "unfinalizePosition";
|
|
1322
|
+
readonly outputs: readonly [];
|
|
1323
|
+
readonly stateMutability: "nonpayable";
|
|
1324
|
+
readonly type: "function";
|
|
1213
1325
|
}, {
|
|
1214
1326
|
readonly inputs: readonly [{
|
|
1215
1327
|
readonly internalType: "uint256";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarlaOracle.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaOracle.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"VarlaOracle.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaOracle.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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type": "uint256"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"name": "InvalidFinalResolutionPrice",
|
|
124
|
+
"type": "error"
|
|
125
|
+
},
|
|
115
126
|
{
|
|
116
127
|
"inputs": [
|
|
117
128
|
{
|
|
@@ -188,6 +199,17 @@ export const VARLAORACLE_ABI = [
|
|
|
188
199
|
"name": "OnlyUpdater",
|
|
189
200
|
"type": "error"
|
|
190
201
|
},
|
|
202
|
+
{
|
|
203
|
+
"inputs": [
|
|
204
|
+
{
|
|
205
|
+
"internalType": "uint256",
|
|
206
|
+
"name": "positionId",
|
|
207
|
+
"type": "uint256"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"name": "PositionNeverUpdated",
|
|
211
|
+
"type": "error"
|
|
212
|
+
},
|
|
191
213
|
{
|
|
192
214
|
"inputs": [
|
|
193
215
|
{
|
|
@@ -199,6 +221,17 @@ export const VARLAORACLE_ABI = [
|
|
|
199
221
|
"name": "PositionNotConfigured",
|
|
200
222
|
"type": "error"
|
|
201
223
|
},
|
|
224
|
+
{
|
|
225
|
+
"inputs": [
|
|
226
|
+
{
|
|
227
|
+
"internalType": "uint256",
|
|
228
|
+
"name": "positionId",
|
|
229
|
+
"type": "uint256"
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"name": "PositionNotResolved",
|
|
233
|
+
"type": "error"
|
|
234
|
+
},
|
|
202
235
|
{
|
|
203
236
|
"inputs": [
|
|
204
237
|
{
|
|
@@ -458,6 +491,25 @@ export const VARLAORACLE_ABI = [
|
|
|
458
491
|
"name": "PositionEarlyClosureWindowOverrideUpdated",
|
|
459
492
|
"type": "event"
|
|
460
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"anonymous": false,
|
|
496
|
+
"inputs": [
|
|
497
|
+
{
|
|
498
|
+
"indexed": true,
|
|
499
|
+
"internalType": "uint256",
|
|
500
|
+
"name": "positionId",
|
|
501
|
+
"type": "uint256"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"indexed": false,
|
|
505
|
+
"internalType": "uint256",
|
|
506
|
+
"name": "priceE8",
|
|
507
|
+
"type": "uint256"
|
|
508
|
+
}
|
|
509
|
+
],
|
|
510
|
+
"name": "PositionFinalized",
|
|
511
|
+
"type": "event"
|
|
512
|
+
},
|
|
461
513
|
{
|
|
462
514
|
"anonymous": false,
|
|
463
515
|
"inputs": [
|
|
@@ -477,6 +529,38 @@ export const VARLAORACLE_ABI = [
|
|
|
477
529
|
"name": "PositionInvalidated",
|
|
478
530
|
"type": "event"
|
|
479
531
|
},
|
|
532
|
+
{
|
|
533
|
+
"anonymous": false,
|
|
534
|
+
"inputs": [
|
|
535
|
+
{
|
|
536
|
+
"indexed": true,
|
|
537
|
+
"internalType": "uint256",
|
|
538
|
+
"name": "positionId",
|
|
539
|
+
"type": "uint256"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"indexed": false,
|
|
543
|
+
"internalType": "uint256",
|
|
544
|
+
"name": "finalPriceE8",
|
|
545
|
+
"type": "uint256"
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
"name": "PositionResolvedEarly",
|
|
549
|
+
"type": "event"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"anonymous": false,
|
|
553
|
+
"inputs": [
|
|
554
|
+
{
|
|
555
|
+
"indexed": true,
|
|
556
|
+
"internalType": "uint256",
|
|
557
|
+
"name": "positionId",
|
|
558
|
+
"type": "uint256"
|
|
559
|
+
}
|
|
560
|
+
],
|
|
561
|
+
"name": "PositionUnfinalized",
|
|
562
|
+
"type": "event"
|
|
563
|
+
},
|
|
480
564
|
{
|
|
481
565
|
"anonymous": false,
|
|
482
566
|
"inputs": [
|
|
@@ -838,6 +922,19 @@ export const VARLAORACLE_ABI = [
|
|
|
838
922
|
"stateMutability": "view",
|
|
839
923
|
"type": "function"
|
|
840
924
|
},
|
|
925
|
+
{
|
|
926
|
+
"inputs": [
|
|
927
|
+
{
|
|
928
|
+
"internalType": "uint256",
|
|
929
|
+
"name": "positionId",
|
|
930
|
+
"type": "uint256"
|
|
931
|
+
}
|
|
932
|
+
],
|
|
933
|
+
"name": "finalizePosition",
|
|
934
|
+
"outputs": [],
|
|
935
|
+
"stateMutability": "nonpayable",
|
|
936
|
+
"type": "function"
|
|
937
|
+
},
|
|
841
938
|
{
|
|
842
939
|
"inputs": [
|
|
843
940
|
{
|
|
@@ -1287,6 +1384,25 @@ export const VARLAORACLE_ABI = [
|
|
|
1287
1384
|
"stateMutability": "view",
|
|
1288
1385
|
"type": "function"
|
|
1289
1386
|
},
|
|
1387
|
+
{
|
|
1388
|
+
"inputs": [
|
|
1389
|
+
{
|
|
1390
|
+
"internalType": "uint256",
|
|
1391
|
+
"name": "positionId",
|
|
1392
|
+
"type": "uint256"
|
|
1393
|
+
}
|
|
1394
|
+
],
|
|
1395
|
+
"name": "isFinalized",
|
|
1396
|
+
"outputs": [
|
|
1397
|
+
{
|
|
1398
|
+
"internalType": "bool",
|
|
1399
|
+
"name": "",
|
|
1400
|
+
"type": "bool"
|
|
1401
|
+
}
|
|
1402
|
+
],
|
|
1403
|
+
"stateMutability": "view",
|
|
1404
|
+
"type": "function"
|
|
1405
|
+
},
|
|
1290
1406
|
{
|
|
1291
1407
|
"inputs": [
|
|
1292
1408
|
{
|
|
@@ -1463,6 +1579,24 @@ export const VARLAORACLE_ABI = [
|
|
|
1463
1579
|
"stateMutability": "nonpayable",
|
|
1464
1580
|
"type": "function"
|
|
1465
1581
|
},
|
|
1582
|
+
{
|
|
1583
|
+
"inputs": [
|
|
1584
|
+
{
|
|
1585
|
+
"internalType": "uint256",
|
|
1586
|
+
"name": "positionId",
|
|
1587
|
+
"type": "uint256"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"internalType": "uint256",
|
|
1591
|
+
"name": "finalPriceE8",
|
|
1592
|
+
"type": "uint256"
|
|
1593
|
+
}
|
|
1594
|
+
],
|
|
1595
|
+
"name": "resolvePositionEarly",
|
|
1596
|
+
"outputs": [],
|
|
1597
|
+
"stateMutability": "nonpayable",
|
|
1598
|
+
"type": "function"
|
|
1599
|
+
},
|
|
1466
1600
|
{
|
|
1467
1601
|
"inputs": [
|
|
1468
1602
|
{
|
|
@@ -1588,6 +1722,19 @@ export const VARLAORACLE_ABI = [
|
|
|
1588
1722
|
"stateMutability": "view",
|
|
1589
1723
|
"type": "function"
|
|
1590
1724
|
},
|
|
1725
|
+
{
|
|
1726
|
+
"inputs": [
|
|
1727
|
+
{
|
|
1728
|
+
"internalType": "uint256",
|
|
1729
|
+
"name": "positionId",
|
|
1730
|
+
"type": "uint256"
|
|
1731
|
+
}
|
|
1732
|
+
],
|
|
1733
|
+
"name": "unfinalizePosition",
|
|
1734
|
+
"outputs": [],
|
|
1735
|
+
"stateMutability": "nonpayable",
|
|
1736
|
+
"type": "function"
|
|
1737
|
+
},
|
|
1591
1738
|
{
|
|
1592
1739
|
"inputs": [
|
|
1593
1740
|
{
|
|
@@ -258,6 +258,14 @@ export declare const VARLAPOOL_ABI: readonly [{
|
|
|
258
258
|
readonly inputs: readonly [];
|
|
259
259
|
readonly name: "VarlaCoreAlreadySet";
|
|
260
260
|
readonly type: "error";
|
|
261
|
+
}, {
|
|
262
|
+
readonly inputs: readonly [{
|
|
263
|
+
readonly internalType: "uint256";
|
|
264
|
+
readonly name: "assets";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
}];
|
|
267
|
+
readonly name: "ZeroShares";
|
|
268
|
+
readonly type: "error";
|
|
261
269
|
}, {
|
|
262
270
|
readonly anonymous: false;
|
|
263
271
|
readonly inputs: readonly [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarlaPool.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaPool.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"VarlaPool.d.ts","sourceRoot":"","sources":["../../../src/abi/full/VarlaPool.ts"],"names":[],"mappings":"AAIA,eAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+lDF,CAAC"}
|
|
@@ -344,6 +344,17 @@ export const VARLAPOOL_ABI = [
|
|
|
344
344
|
"name": "VarlaCoreAlreadySet",
|
|
345
345
|
"type": "error"
|
|
346
346
|
},
|
|
347
|
+
{
|
|
348
|
+
"inputs": [
|
|
349
|
+
{
|
|
350
|
+
"internalType": "uint256",
|
|
351
|
+
"name": "assets",
|
|
352
|
+
"type": "uint256"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"name": "ZeroShares",
|
|
356
|
+
"type": "error"
|
|
357
|
+
},
|
|
347
358
|
{
|
|
348
359
|
"anonymous": false,
|
|
349
360
|
"inputs": [
|
|
@@ -82,6 +82,14 @@ export declare const VARLAORACLE_ABI_REGISTRY: readonly [{
|
|
|
82
82
|
}];
|
|
83
83
|
readonly name: "InvalidEarlyClosureWindow";
|
|
84
84
|
readonly type: "error";
|
|
85
|
+
}, {
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly internalType: "uint256";
|
|
88
|
+
readonly name: "priceE8";
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
}];
|
|
91
|
+
readonly name: "InvalidFinalResolutionPrice";
|
|
92
|
+
readonly type: "error";
|
|
85
93
|
}, {
|
|
86
94
|
readonly inputs: readonly [{
|
|
87
95
|
readonly internalType: "uint256";
|
|
@@ -138,6 +146,14 @@ export declare const VARLAORACLE_ABI_REGISTRY: readonly [{
|
|
|
138
146
|
readonly inputs: readonly [];
|
|
139
147
|
readonly name: "OnlyUpdater";
|
|
140
148
|
readonly type: "error";
|
|
149
|
+
}, {
|
|
150
|
+
readonly inputs: readonly [{
|
|
151
|
+
readonly internalType: "uint256";
|
|
152
|
+
readonly name: "positionId";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}];
|
|
155
|
+
readonly name: "PositionNeverUpdated";
|
|
156
|
+
readonly type: "error";
|
|
141
157
|
}, {
|
|
142
158
|
readonly inputs: readonly [{
|
|
143
159
|
readonly internalType: "uint256";
|
|
@@ -146,6 +162,14 @@ export declare const VARLAORACLE_ABI_REGISTRY: readonly [{
|
|
|
146
162
|
}];
|
|
147
163
|
readonly name: "PositionNotConfigured";
|
|
148
164
|
readonly type: "error";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "positionId";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "PositionNotResolved";
|
|
172
|
+
readonly type: "error";
|
|
149
173
|
}, {
|
|
150
174
|
readonly inputs: readonly [{
|
|
151
175
|
readonly internalType: "uint256";
|
|
@@ -350,6 +374,21 @@ export declare const VARLAORACLE_ABI_REGISTRY: readonly [{
|
|
|
350
374
|
}];
|
|
351
375
|
readonly name: "PositionEarlyClosureWindowOverrideUpdated";
|
|
352
376
|
readonly type: "event";
|
|
377
|
+
}, {
|
|
378
|
+
readonly anonymous: false;
|
|
379
|
+
readonly inputs: readonly [{
|
|
380
|
+
readonly indexed: true;
|
|
381
|
+
readonly internalType: "uint256";
|
|
382
|
+
readonly name: "positionId";
|
|
383
|
+
readonly type: "uint256";
|
|
384
|
+
}, {
|
|
385
|
+
readonly indexed: false;
|
|
386
|
+
readonly internalType: "uint256";
|
|
387
|
+
readonly name: "priceE8";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}];
|
|
390
|
+
readonly name: "PositionFinalized";
|
|
391
|
+
readonly type: "event";
|
|
353
392
|
}, {
|
|
354
393
|
readonly anonymous: false;
|
|
355
394
|
readonly inputs: readonly [{
|
|
@@ -365,6 +404,31 @@ export declare const VARLAORACLE_ABI_REGISTRY: readonly [{
|
|
|
365
404
|
}];
|
|
366
405
|
readonly name: "PositionInvalidated";
|
|
367
406
|
readonly type: "event";
|
|
407
|
+
}, {
|
|
408
|
+
readonly anonymous: false;
|
|
409
|
+
readonly inputs: readonly [{
|
|
410
|
+
readonly indexed: true;
|
|
411
|
+
readonly internalType: "uint256";
|
|
412
|
+
readonly name: "positionId";
|
|
413
|
+
readonly type: "uint256";
|
|
414
|
+
}, {
|
|
415
|
+
readonly indexed: false;
|
|
416
|
+
readonly internalType: "uint256";
|
|
417
|
+
readonly name: "finalPriceE8";
|
|
418
|
+
readonly type: "uint256";
|
|
419
|
+
}];
|
|
420
|
+
readonly name: "PositionResolvedEarly";
|
|
421
|
+
readonly type: "event";
|
|
422
|
+
}, {
|
|
423
|
+
readonly anonymous: false;
|
|
424
|
+
readonly inputs: readonly [{
|
|
425
|
+
readonly indexed: true;
|
|
426
|
+
readonly internalType: "uint256";
|
|
427
|
+
readonly name: "positionId";
|
|
428
|
+
readonly type: "uint256";
|
|
429
|
+
}];
|
|
430
|
+
readonly name: "PositionUnfinalized";
|
|
431
|
+
readonly type: "event";
|
|
368
432
|
}, {
|
|
369
433
|
readonly anonymous: false;
|
|
370
434
|
readonly inputs: readonly [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarlaOracle.registry.d.ts","sourceRoot":"","sources":["../../../src/abi/subsets/VarlaOracle.registry.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"VarlaOracle.registry.d.ts","sourceRoot":"","sources":["../../../src/abi/subsets/VarlaOracle.registry.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0wBb,CAAC"}
|