@varla/sdk 1.10.13 → 1.11.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.
- package/AGENTS.md +3 -4
- package/README.md +1 -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/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 +176 -0
- package/dist/generated.d.ts.map +1 -1
- 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/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
|
@@ -155,6 +155,7 @@ These are convenience helpers built on top of the contract bindings.
|
|
|
155
155
|
- `readOracleBasics`
|
|
156
156
|
- `readOracleCollateralStatus`
|
|
157
157
|
- `readOracleConfig`
|
|
158
|
+
- `readOracleFinalizationStatus`
|
|
158
159
|
- `readOracleGuardsStatus`
|
|
159
160
|
- `readOraclePositionMeta`
|
|
160
161
|
- `readOraclePriceData`
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2xDJ,CAAC"}
|
|
@@ -112,6 +112,17 @@ export const VARLAORACLE_ABI = [
|
|
|
112
112
|
"name": "InvalidEarlyClosureWindow",
|
|
113
113
|
"type": "error"
|
|
114
114
|
},
|
|
115
|
+
{
|
|
116
|
+
"inputs": [
|
|
117
|
+
{
|
|
118
|
+
"internalType": "uint256",
|
|
119
|
+
"name": "priceE8",
|
|
120
|
+
"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
|
{
|
|
@@ -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"}
|
|
@@ -112,6 +112,17 @@ export const VARLAORACLE_ABI_REGISTRY = [
|
|
|
112
112
|
"name": "InvalidEarlyClosureWindow",
|
|
113
113
|
"type": "error"
|
|
114
114
|
},
|
|
115
|
+
{
|
|
116
|
+
"inputs": [
|
|
117
|
+
{
|
|
118
|
+
"internalType": "uint256",
|
|
119
|
+
"name": "priceE8",
|
|
120
|
+
"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_REGISTRY = [
|
|
|
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_REGISTRY = [
|
|
|
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_REGISTRY = [
|
|
|
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_REGISTRY = [
|
|
|
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": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bsc.d.ts","sourceRoot":"","sources":["../../src/addresses/bsc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"bsc.d.ts","sourceRoot":"","sources":["../../src/addresses/bsc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,GAAG,EAAE,WAUjB,CAAC"}
|
package/dist/addresses/bsc.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export const bsc = {
|
|
2
|
-
accessManager: "
|
|
3
|
-
oracle: "
|
|
4
|
-
core: "
|
|
5
|
-
pool: "
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
accessManager: "0xd1FbB7E03EAe69314bc1A8412da464844d31208D",
|
|
3
|
+
oracle: "0x9F4eFE380f6A1c124056ABC64fAe6c18d9a717ee",
|
|
4
|
+
core: "0x765CFa9BFD553B81985cc614559F5F4Ce8B617e0",
|
|
5
|
+
pool: "0x4a7fEDCc9365A98Fc482358f08b132f82fEE2eCb",
|
|
6
|
+
oracleUpdaterRouter: "0x58fbf3be3d0CbBed091ad6940d4dbF7462bEb6aA",
|
|
7
|
+
liquidator: "0xf53eBDf041EEa32794d883CA9C4380775abd592A",
|
|
8
|
+
mergeLiquidator: "0x651e48875e07B66ec886E68249449A5F795B545d",
|
|
9
|
+
convertLiquidator: "0xd265863a9A4860E73E4d9b0EE2783A3e379b53Ca",
|
|
10
|
+
opinionCtfExecutionEngineAdapter: "0x9E56d02E50ba99943aB6A3f6Bd466E7954674A31",
|
|
10
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export const polygon = {
|
|
2
|
-
accessManager: "
|
|
3
|
-
oracle: "
|
|
4
|
-
core: "
|
|
5
|
-
pool: "
|
|
6
|
-
oracleUpdaterRouter: "
|
|
7
|
-
liquidator: "
|
|
8
|
-
mergeLiquidator: "
|
|
9
|
-
convertLiquidator: "
|
|
10
|
-
polymarketCtfAdapter: "
|
|
2
|
+
accessManager: "0x8D0Afc20555F3B0042A542d4843F8d03B85e89Ad",
|
|
3
|
+
oracle: "0x196519791b96051104dE06aeA887D9cC8D5e4A15",
|
|
4
|
+
core: "0x0E611985132Ee9C13fe8e9ADC9cB094a250FBb82",
|
|
5
|
+
pool: "0x62DB666faC25a2280917CDd59A9370E66A2ea533",
|
|
6
|
+
oracleUpdaterRouter: "0xa9Bf7DcaA9b40950aC645D61f334155a8F00e734",
|
|
7
|
+
liquidator: "0x0BcE7dc799C8d7011ea48B9D4Abd2657D6d9e2E9",
|
|
8
|
+
mergeLiquidator: "0x991B90cd8CEC1E5526fF04b01811250204A563ab",
|
|
9
|
+
convertLiquidator: "0x4554316C874ed1Dcb128B34cC5204Ae4717fAa9B",
|
|
10
|
+
polymarketCtfAdapter: "0x38aF55797a6F31bd9313d88b3D0Bb81a6a2007E3",
|
|
11
11
|
};
|
package/dist/batch.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare function chunk<T>(items: readonly T[], chunkSize: number): T[][];
|
|
|
13
13
|
* - Keeps requests bounded for public RPC providers.
|
|
14
14
|
* - Preserves order.
|
|
15
15
|
*/
|
|
16
|
-
export declare function multicallChunks<
|
|
16
|
+
export declare function multicallChunks<_TAbi extends Abi>(params: {
|
|
17
17
|
client: PublicClient;
|
|
18
18
|
contracts: readonly {
|
|
19
19
|
address: Address;
|
package/dist/batch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../src/batch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG;IAClC,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAKtE;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../src/batch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG;IAClC,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAKtE;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,KAAK,SAAS,GAAG,EAAE,MAAM,EAAE;IAC/D,MAAM,EAAE,YAAY,CAAC;IAIrB,SAAS,EAAE,SAAS;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,GAAG,EAAE,GAAG,CAAC;QACT,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAC;KACvC,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAiB1D"}
|
|
@@ -142,7 +142,7 @@ export async function syncOracleRegistryViaEvents(params) {
|
|
|
142
142
|
// Prefer on-chain view results (authoritative), but fall back to event-enriched values
|
|
143
143
|
// if they look more complete.
|
|
144
144
|
const opposite = r3.result || (oppositeById.get(pidKey) ?? 0n);
|
|
145
|
-
const market = r5.result || (negRiskMarketById.get(pidKey) ??
|
|
145
|
+
const market = r5.result || (negRiskMarketById.get(pidKey) ?? `0x${"0".repeat(64)}`);
|
|
146
146
|
entries.push({
|
|
147
147
|
positionId: pid,
|
|
148
148
|
conditionId: r0.result,
|
package/dist/generated.d.ts
CHANGED
|
@@ -1358,6 +1358,14 @@ export declare const abis: {
|
|
|
1358
1358
|
}];
|
|
1359
1359
|
readonly name: "InvalidEarlyClosureWindow";
|
|
1360
1360
|
readonly type: "error";
|
|
1361
|
+
}, {
|
|
1362
|
+
readonly inputs: readonly [{
|
|
1363
|
+
readonly internalType: "uint256";
|
|
1364
|
+
readonly name: "priceE8";
|
|
1365
|
+
readonly type: "uint256";
|
|
1366
|
+
}];
|
|
1367
|
+
readonly name: "InvalidFinalResolutionPrice";
|
|
1368
|
+
readonly type: "error";
|
|
1361
1369
|
}, {
|
|
1362
1370
|
readonly inputs: readonly [{
|
|
1363
1371
|
readonly internalType: "uint256";
|
|
@@ -1414,6 +1422,14 @@ export declare const abis: {
|
|
|
1414
1422
|
readonly inputs: readonly [];
|
|
1415
1423
|
readonly name: "OnlyUpdater";
|
|
1416
1424
|
readonly type: "error";
|
|
1425
|
+
}, {
|
|
1426
|
+
readonly inputs: readonly [{
|
|
1427
|
+
readonly internalType: "uint256";
|
|
1428
|
+
readonly name: "positionId";
|
|
1429
|
+
readonly type: "uint256";
|
|
1430
|
+
}];
|
|
1431
|
+
readonly name: "PositionNeverUpdated";
|
|
1432
|
+
readonly type: "error";
|
|
1417
1433
|
}, {
|
|
1418
1434
|
readonly inputs: readonly [{
|
|
1419
1435
|
readonly internalType: "uint256";
|
|
@@ -1422,6 +1438,14 @@ export declare const abis: {
|
|
|
1422
1438
|
}];
|
|
1423
1439
|
readonly name: "PositionNotConfigured";
|
|
1424
1440
|
readonly type: "error";
|
|
1441
|
+
}, {
|
|
1442
|
+
readonly inputs: readonly [{
|
|
1443
|
+
readonly internalType: "uint256";
|
|
1444
|
+
readonly name: "positionId";
|
|
1445
|
+
readonly type: "uint256";
|
|
1446
|
+
}];
|
|
1447
|
+
readonly name: "PositionNotResolved";
|
|
1448
|
+
readonly type: "error";
|
|
1425
1449
|
}, {
|
|
1426
1450
|
readonly inputs: readonly [{
|
|
1427
1451
|
readonly internalType: "uint256";
|
|
@@ -1626,6 +1650,21 @@ export declare const abis: {
|
|
|
1626
1650
|
}];
|
|
1627
1651
|
readonly name: "PositionEarlyClosureWindowOverrideUpdated";
|
|
1628
1652
|
readonly type: "event";
|
|
1653
|
+
}, {
|
|
1654
|
+
readonly anonymous: false;
|
|
1655
|
+
readonly inputs: readonly [{
|
|
1656
|
+
readonly indexed: true;
|
|
1657
|
+
readonly internalType: "uint256";
|
|
1658
|
+
readonly name: "positionId";
|
|
1659
|
+
readonly type: "uint256";
|
|
1660
|
+
}, {
|
|
1661
|
+
readonly indexed: false;
|
|
1662
|
+
readonly internalType: "uint256";
|
|
1663
|
+
readonly name: "priceE8";
|
|
1664
|
+
readonly type: "uint256";
|
|
1665
|
+
}];
|
|
1666
|
+
readonly name: "PositionFinalized";
|
|
1667
|
+
readonly type: "event";
|
|
1629
1668
|
}, {
|
|
1630
1669
|
readonly anonymous: false;
|
|
1631
1670
|
readonly inputs: readonly [{
|
|
@@ -1641,6 +1680,31 @@ export declare const abis: {
|
|
|
1641
1680
|
}];
|
|
1642
1681
|
readonly name: "PositionInvalidated";
|
|
1643
1682
|
readonly type: "event";
|
|
1683
|
+
}, {
|
|
1684
|
+
readonly anonymous: false;
|
|
1685
|
+
readonly inputs: readonly [{
|
|
1686
|
+
readonly indexed: true;
|
|
1687
|
+
readonly internalType: "uint256";
|
|
1688
|
+
readonly name: "positionId";
|
|
1689
|
+
readonly type: "uint256";
|
|
1690
|
+
}, {
|
|
1691
|
+
readonly indexed: false;
|
|
1692
|
+
readonly internalType: "uint256";
|
|
1693
|
+
readonly name: "finalPriceE8";
|
|
1694
|
+
readonly type: "uint256";
|
|
1695
|
+
}];
|
|
1696
|
+
readonly name: "PositionResolvedEarly";
|
|
1697
|
+
readonly type: "event";
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly anonymous: false;
|
|
1700
|
+
readonly inputs: readonly [{
|
|
1701
|
+
readonly indexed: true;
|
|
1702
|
+
readonly internalType: "uint256";
|
|
1703
|
+
readonly name: "positionId";
|
|
1704
|
+
readonly type: "uint256";
|
|
1705
|
+
}];
|
|
1706
|
+
readonly name: "PositionUnfinalized";
|
|
1707
|
+
readonly type: "event";
|
|
1644
1708
|
}, {
|
|
1645
1709
|
readonly anonymous: false;
|
|
1646
1710
|
readonly inputs: readonly [{
|
|
@@ -1922,6 +1986,16 @@ export declare const abis: {
|
|
|
1922
1986
|
}];
|
|
1923
1987
|
readonly stateMutability: "view";
|
|
1924
1988
|
readonly type: "function";
|
|
1989
|
+
}, {
|
|
1990
|
+
readonly inputs: readonly [{
|
|
1991
|
+
readonly internalType: "uint256";
|
|
1992
|
+
readonly name: "positionId";
|
|
1993
|
+
readonly type: "uint256";
|
|
1994
|
+
}];
|
|
1995
|
+
readonly name: "finalizePosition";
|
|
1996
|
+
readonly outputs: readonly [];
|
|
1997
|
+
readonly stateMutability: "nonpayable";
|
|
1998
|
+
readonly type: "function";
|
|
1925
1999
|
}, {
|
|
1926
2000
|
readonly inputs: readonly [{
|
|
1927
2001
|
readonly internalType: "uint256";
|
|
@@ -2258,6 +2332,20 @@ export declare const abis: {
|
|
|
2258
2332
|
}];
|
|
2259
2333
|
readonly stateMutability: "view";
|
|
2260
2334
|
readonly type: "function";
|
|
2335
|
+
}, {
|
|
2336
|
+
readonly inputs: readonly [{
|
|
2337
|
+
readonly internalType: "uint256";
|
|
2338
|
+
readonly name: "positionId";
|
|
2339
|
+
readonly type: "uint256";
|
|
2340
|
+
}];
|
|
2341
|
+
readonly name: "isFinalized";
|
|
2342
|
+
readonly outputs: readonly [{
|
|
2343
|
+
readonly internalType: "bool";
|
|
2344
|
+
readonly name: "";
|
|
2345
|
+
readonly type: "bool";
|
|
2346
|
+
}];
|
|
2347
|
+
readonly stateMutability: "view";
|
|
2348
|
+
readonly type: "function";
|
|
2261
2349
|
}, {
|
|
2262
2350
|
readonly inputs: readonly [{
|
|
2263
2351
|
readonly internalType: "uint256";
|
|
@@ -2390,6 +2478,20 @@ export declare const abis: {
|
|
|
2390
2478
|
readonly outputs: readonly [];
|
|
2391
2479
|
readonly stateMutability: "nonpayable";
|
|
2392
2480
|
readonly type: "function";
|
|
2481
|
+
}, {
|
|
2482
|
+
readonly inputs: readonly [{
|
|
2483
|
+
readonly internalType: "uint256";
|
|
2484
|
+
readonly name: "positionId";
|
|
2485
|
+
readonly type: "uint256";
|
|
2486
|
+
}, {
|
|
2487
|
+
readonly internalType: "uint256";
|
|
2488
|
+
readonly name: "finalPriceE8";
|
|
2489
|
+
readonly type: "uint256";
|
|
2490
|
+
}];
|
|
2491
|
+
readonly name: "resolvePositionEarly";
|
|
2492
|
+
readonly outputs: readonly [];
|
|
2493
|
+
readonly stateMutability: "nonpayable";
|
|
2494
|
+
readonly type: "function";
|
|
2393
2495
|
}, {
|
|
2394
2496
|
readonly inputs: readonly [{
|
|
2395
2497
|
readonly internalType: "address";
|
|
@@ -2486,6 +2588,16 @@ export declare const abis: {
|
|
|
2486
2588
|
}];
|
|
2487
2589
|
readonly stateMutability: "view";
|
|
2488
2590
|
readonly type: "function";
|
|
2591
|
+
}, {
|
|
2592
|
+
readonly inputs: readonly [{
|
|
2593
|
+
readonly internalType: "uint256";
|
|
2594
|
+
readonly name: "positionId";
|
|
2595
|
+
readonly type: "uint256";
|
|
2596
|
+
}];
|
|
2597
|
+
readonly name: "unfinalizePosition";
|
|
2598
|
+
readonly outputs: readonly [];
|
|
2599
|
+
readonly stateMutability: "nonpayable";
|
|
2600
|
+
readonly type: "function";
|
|
2489
2601
|
}, {
|
|
2490
2602
|
readonly inputs: readonly [{
|
|
2491
2603
|
readonly internalType: "uint256";
|
|
@@ -8497,6 +8609,14 @@ export declare const abis: {
|
|
|
8497
8609
|
}];
|
|
8498
8610
|
readonly name: "InvalidEarlyClosureWindow";
|
|
8499
8611
|
readonly type: "error";
|
|
8612
|
+
}, {
|
|
8613
|
+
readonly inputs: readonly [{
|
|
8614
|
+
readonly internalType: "uint256";
|
|
8615
|
+
readonly name: "priceE8";
|
|
8616
|
+
readonly type: "uint256";
|
|
8617
|
+
}];
|
|
8618
|
+
readonly name: "InvalidFinalResolutionPrice";
|
|
8619
|
+
readonly type: "error";
|
|
8500
8620
|
}, {
|
|
8501
8621
|
readonly inputs: readonly [{
|
|
8502
8622
|
readonly internalType: "uint256";
|
|
@@ -8553,6 +8673,14 @@ export declare const abis: {
|
|
|
8553
8673
|
readonly inputs: readonly [];
|
|
8554
8674
|
readonly name: "OnlyUpdater";
|
|
8555
8675
|
readonly type: "error";
|
|
8676
|
+
}, {
|
|
8677
|
+
readonly inputs: readonly [{
|
|
8678
|
+
readonly internalType: "uint256";
|
|
8679
|
+
readonly name: "positionId";
|
|
8680
|
+
readonly type: "uint256";
|
|
8681
|
+
}];
|
|
8682
|
+
readonly name: "PositionNeverUpdated";
|
|
8683
|
+
readonly type: "error";
|
|
8556
8684
|
}, {
|
|
8557
8685
|
readonly inputs: readonly [{
|
|
8558
8686
|
readonly internalType: "uint256";
|
|
@@ -8561,6 +8689,14 @@ export declare const abis: {
|
|
|
8561
8689
|
}];
|
|
8562
8690
|
readonly name: "PositionNotConfigured";
|
|
8563
8691
|
readonly type: "error";
|
|
8692
|
+
}, {
|
|
8693
|
+
readonly inputs: readonly [{
|
|
8694
|
+
readonly internalType: "uint256";
|
|
8695
|
+
readonly name: "positionId";
|
|
8696
|
+
readonly type: "uint256";
|
|
8697
|
+
}];
|
|
8698
|
+
readonly name: "PositionNotResolved";
|
|
8699
|
+
readonly type: "error";
|
|
8564
8700
|
}, {
|
|
8565
8701
|
readonly inputs: readonly [{
|
|
8566
8702
|
readonly internalType: "uint256";
|
|
@@ -8765,6 +8901,21 @@ export declare const abis: {
|
|
|
8765
8901
|
}];
|
|
8766
8902
|
readonly name: "PositionEarlyClosureWindowOverrideUpdated";
|
|
8767
8903
|
readonly type: "event";
|
|
8904
|
+
}, {
|
|
8905
|
+
readonly anonymous: false;
|
|
8906
|
+
readonly inputs: readonly [{
|
|
8907
|
+
readonly indexed: true;
|
|
8908
|
+
readonly internalType: "uint256";
|
|
8909
|
+
readonly name: "positionId";
|
|
8910
|
+
readonly type: "uint256";
|
|
8911
|
+
}, {
|
|
8912
|
+
readonly indexed: false;
|
|
8913
|
+
readonly internalType: "uint256";
|
|
8914
|
+
readonly name: "priceE8";
|
|
8915
|
+
readonly type: "uint256";
|
|
8916
|
+
}];
|
|
8917
|
+
readonly name: "PositionFinalized";
|
|
8918
|
+
readonly type: "event";
|
|
8768
8919
|
}, {
|
|
8769
8920
|
readonly anonymous: false;
|
|
8770
8921
|
readonly inputs: readonly [{
|
|
@@ -8780,6 +8931,31 @@ export declare const abis: {
|
|
|
8780
8931
|
}];
|
|
8781
8932
|
readonly name: "PositionInvalidated";
|
|
8782
8933
|
readonly type: "event";
|
|
8934
|
+
}, {
|
|
8935
|
+
readonly anonymous: false;
|
|
8936
|
+
readonly inputs: readonly [{
|
|
8937
|
+
readonly indexed: true;
|
|
8938
|
+
readonly internalType: "uint256";
|
|
8939
|
+
readonly name: "positionId";
|
|
8940
|
+
readonly type: "uint256";
|
|
8941
|
+
}, {
|
|
8942
|
+
readonly indexed: false;
|
|
8943
|
+
readonly internalType: "uint256";
|
|
8944
|
+
readonly name: "finalPriceE8";
|
|
8945
|
+
readonly type: "uint256";
|
|
8946
|
+
}];
|
|
8947
|
+
readonly name: "PositionResolvedEarly";
|
|
8948
|
+
readonly type: "event";
|
|
8949
|
+
}, {
|
|
8950
|
+
readonly anonymous: false;
|
|
8951
|
+
readonly inputs: readonly [{
|
|
8952
|
+
readonly indexed: true;
|
|
8953
|
+
readonly internalType: "uint256";
|
|
8954
|
+
readonly name: "positionId";
|
|
8955
|
+
readonly type: "uint256";
|
|
8956
|
+
}];
|
|
8957
|
+
readonly name: "PositionUnfinalized";
|
|
8958
|
+
readonly type: "event";
|
|
8783
8959
|
}, {
|
|
8784
8960
|
readonly anonymous: false;
|
|
8785
8961
|
readonly inputs: readonly [{
|
package/dist/generated.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcP,CAAC;AAEX,eAAO,MAAM,SAAS;;;CAGZ,CAAC"}
|
package/dist/views/oracle.d.ts
CHANGED
|
@@ -52,6 +52,10 @@ export type ReadOracleConfig = {
|
|
|
52
52
|
liquidationGracePeriod: bigint;
|
|
53
53
|
defaultEarlyClosureWindow: bigint;
|
|
54
54
|
};
|
|
55
|
+
export type ReadOracleFinalizationStatus = {
|
|
56
|
+
positionId: bigint;
|
|
57
|
+
isFinalized: boolean;
|
|
58
|
+
};
|
|
55
59
|
export type ReadOracleCollateralStatus = {
|
|
56
60
|
positionId: bigint;
|
|
57
61
|
isConfigured: boolean;
|
|
@@ -60,6 +64,14 @@ export type ReadOracleCollateralStatus = {
|
|
|
60
64
|
isValidCollateral: boolean;
|
|
61
65
|
isPriceStale: boolean;
|
|
62
66
|
};
|
|
67
|
+
export declare function readOracleFinalizationStatus(params: {
|
|
68
|
+
oracle: {
|
|
69
|
+
read: {
|
|
70
|
+
isFinalized: (args: readonly [bigint]) => Promise<boolean>;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
positionId: bigint;
|
|
74
|
+
}): Promise<ReadOracleFinalizationStatus>;
|
|
63
75
|
/**
|
|
64
76
|
* Reads key global oracle config values used by UIs and monitoring.
|
|
65
77
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["../../src/views/oracle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE;QACN,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,EAAE;YACJ,2BAA2B,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;SACpD,CAAC;KACH,CAAC;IACF,MAAM,EAAE;QACN,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KACxC,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AAEH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAiC5F;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,uFAAuF;IACvF,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AAEH,wBAAsB,sBAAsB,CAAC,MAAM,EAAE;IACnD,MAAM,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IAC3C,M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C,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IACnD,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAmGpC;AAED;;GAEG;AAEH,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,MAAM,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC7B,MAAM,EAAE;QAAE,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IACnD,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,oBAAoB,EAAE,CAAC;IAClC,IAAI,EAAE,sBAAsB,EAAE,CAAC;CAChC,CAAC,CAiBD"}
|
package/dist/views/oracle.js
CHANGED
|
@@ -89,6 +89,11 @@ export async function readOracleRegistryPage(params) {
|
|
|
89
89
|
}
|
|
90
90
|
return { total, start, end, positionIds };
|
|
91
91
|
}
|
|
92
|
+
// wraps: VarlaOracle.isFinalized
|
|
93
|
+
export async function readOracleFinalizationStatus(params) {
|
|
94
|
+
const isFinalized = await params.oracle.read.isFinalized([params.positionId]);
|
|
95
|
+
return { positionId: params.positionId, isFinalized };
|
|
96
|
+
}
|
|
92
97
|
/**
|
|
93
98
|
* Reads key global oracle config values used by UIs and monitoring.
|
|
94
99
|
*/
|