@omnipair/dusk-sdk 2.27.0 → 3.0.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/README.md +92 -104
- package/dist/constants.d.ts +0 -6
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +0 -12
- package/dist/constants.js.map +1 -1
- package/dist/get.d.ts +97 -345
- package/dist/get.d.ts.map +1 -1
- package/dist/get.js +1 -2
- package/dist/get.js.map +1 -1
- package/dist/hlp-liquidation-client.d.ts.map +1 -1
- package/dist/hlp-liquidation-client.js +0 -1
- package/dist/hlp-liquidation-client.js.map +1 -1
- package/dist/idl_delegate.json +82 -390
- package/dist/idl_v2.json +226 -1098
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/indexer.d.ts +1 -1
- package/dist/indexer.d.ts.map +1 -1
- package/dist/interest-accounting.d.ts +82 -47
- package/dist/interest-accounting.d.ts.map +1 -1
- package/dist/interest-accounting.js +103 -53
- package/dist/interest-accounting.js.map +1 -1
- package/dist/leverage-preview.d.ts +24 -86
- package/dist/leverage-preview.d.ts.map +1 -1
- package/dist/liquidation-client.js +2 -2
- package/dist/liquidation-client.js.map +1 -1
- package/dist/operator-client.d.ts.map +1 -1
- package/dist/operator-client.js +8 -9
- package/dist/operator-client.js.map +1 -1
- package/dist/referral.d.ts +6 -3
- package/dist/referral.d.ts.map +1 -1
- package/dist/referral.js +8 -7
- package/dist/referral.js.map +1 -1
- package/dist/tranche-client.d.ts +0 -56
- package/dist/tranche-client.d.ts.map +1 -1
- package/dist/tranche-client.js +2 -103
- package/dist/tranche-client.js.map +1 -1
- package/dist/transfer-fees.d.ts +6 -0
- package/dist/transfer-fees.d.ts.map +1 -1
- package/dist/transfer-fees.js +19 -0
- package/dist/transfer-fees.js.map +1 -1
- package/dist/type-aliases.d.ts +3 -15
- package/dist/type-aliases.d.ts.map +1 -1
- package/dist/types_delegate.d.ts +82 -390
- package/dist/types_delegate.d.ts.map +1 -1
- package/dist/types_v2.d.ts +227 -1099
- package/dist/types_v2.d.ts.map +1 -1
- package/dist/virtual-book/market.d.ts +24 -86
- package/dist/virtual-book/market.d.ts.map +1 -1
- package/dist/virtual-book/quotes.d.ts +61 -173
- package/dist/virtual-book/quotes.d.ts.map +1 -1
- package/dist/virtual-book/quotes.js +55 -6
- package/dist/virtual-book/quotes.js.map +1 -1
- package/dist/write.d.ts +1 -3
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +7 -24
- package/dist/write.js.map +1 -1
- package/dist/yield-client.d.ts +7 -20
- package/dist/yield-client.d.ts.map +1 -1
- package/dist/yield-client.js +6 -37
- package/dist/yield-client.js.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +0 -25
- package/src/get.ts +0 -3
- package/src/hlp-liquidation-client.ts +0 -1
- package/src/idl_delegate.json +82 -390
- package/src/idl_v2.json +226 -1098
- package/src/index.ts +0 -1
- package/src/indexer.ts +1 -1
- package/src/interest-accounting.ts +149 -71
- package/src/liquidation-client.ts +2 -2
- package/src/operator-client.ts +8 -9
- package/src/referral.ts +9 -14
- package/src/tranche-client.ts +3 -106
- package/src/transfer-fees.ts +18 -0
- package/src/type-aliases.ts +3 -15
- package/src/types_delegate.ts +82 -390
- package/src/types_v2.ts +226 -1098
- package/src/virtual-book/quotes.ts +70 -6
- package/src/write.ts +8 -36
- package/src/yield-client.ts +9 -48
- package/dist/income-receivable.d.ts +0 -77
- package/dist/income-receivable.d.ts.map +0 -1
- package/dist/income-receivable.js +0 -135
- package/dist/income-receivable.js.map +0 -1
- package/src/income-receivable.ts +0 -145
|
@@ -50,7 +50,6 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
50
50
|
hlpMint: PublicKey;
|
|
51
51
|
reserveVault: PublicKey;
|
|
52
52
|
collateralVault: PublicKey;
|
|
53
|
-
interestVault: PublicKey;
|
|
54
53
|
reserves: {
|
|
55
54
|
flashReceivable: import("bn.js");
|
|
56
55
|
liveReserve: import("bn.js");
|
|
@@ -83,29 +82,29 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
83
82
|
swapRemainderBps: number;
|
|
84
83
|
};
|
|
85
84
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
ledger: {
|
|
86
|
+
publicRecognized: import("bn.js");
|
|
87
|
+
fundingRecognized: import("bn.js");
|
|
88
|
+
credited: import("bn.js");
|
|
89
|
+
protocolUnpaid: import("bn.js");
|
|
90
|
+
operatorClaimable: import("bn.js");
|
|
91
|
+
protocolFractionQ64: import("bn.js");
|
|
92
|
+
operatorFractionQ64: import("bn.js");
|
|
93
|
+
protocolPending: import("bn.js");
|
|
94
|
+
deficit: import("bn.js");
|
|
91
95
|
};
|
|
92
96
|
swapFeeGrowthIndexQ64: import("bn.js");
|
|
93
97
|
interestGrowthIndexQ64: import("bn.js");
|
|
94
98
|
swapFeeGrowthRemainderScaled: import("bn.js");
|
|
95
99
|
interestGrowthRemainderScaled: import("bn.js");
|
|
96
|
-
hlpFundingInterestGrowthRemainderScaled: import("bn.js");
|
|
97
100
|
swapFeeCustodyBalance: import("bn.js");
|
|
98
|
-
interestVaultBalance: import("bn.js");
|
|
99
101
|
swapFeeLiability: import("bn.js");
|
|
100
|
-
interestLiability: import("bn.js");
|
|
101
102
|
unallocatedSwapFeeLiability: import("bn.js");
|
|
102
|
-
unallocatedInterestLiability: import("bn.js");
|
|
103
103
|
swapProtocolFeeLiability: import("bn.js");
|
|
104
104
|
swapBuybackFeeLiability: import("bn.js");
|
|
105
105
|
interestProtocolFeeLiability: import("bn.js");
|
|
106
106
|
interestBuybackFeeLiability: import("bn.js");
|
|
107
107
|
referralInterestLiability: import("bn.js");
|
|
108
|
-
revenueInterestLiability: import("bn.js");
|
|
109
108
|
feeSwapAuction: {
|
|
110
109
|
acceptedMint: PublicKey;
|
|
111
110
|
virtualSoldReserve: import("bn.js");
|
|
@@ -151,7 +150,6 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
151
150
|
hlpMint: PublicKey;
|
|
152
151
|
reserveVault: PublicKey;
|
|
153
152
|
collateralVault: PublicKey;
|
|
154
|
-
interestVault: PublicKey;
|
|
155
153
|
reserves: {
|
|
156
154
|
flashReceivable: import("bn.js");
|
|
157
155
|
liveReserve: import("bn.js");
|
|
@@ -184,29 +182,29 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
184
182
|
swapRemainderBps: number;
|
|
185
183
|
};
|
|
186
184
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
ledger: {
|
|
186
|
+
publicRecognized: import("bn.js");
|
|
187
|
+
fundingRecognized: import("bn.js");
|
|
188
|
+
credited: import("bn.js");
|
|
189
|
+
protocolUnpaid: import("bn.js");
|
|
190
|
+
operatorClaimable: import("bn.js");
|
|
191
|
+
protocolFractionQ64: import("bn.js");
|
|
192
|
+
operatorFractionQ64: import("bn.js");
|
|
193
|
+
protocolPending: import("bn.js");
|
|
194
|
+
deficit: import("bn.js");
|
|
192
195
|
};
|
|
193
196
|
swapFeeGrowthIndexQ64: import("bn.js");
|
|
194
197
|
interestGrowthIndexQ64: import("bn.js");
|
|
195
198
|
swapFeeGrowthRemainderScaled: import("bn.js");
|
|
196
199
|
interestGrowthRemainderScaled: import("bn.js");
|
|
197
|
-
hlpFundingInterestGrowthRemainderScaled: import("bn.js");
|
|
198
200
|
swapFeeCustodyBalance: import("bn.js");
|
|
199
|
-
interestVaultBalance: import("bn.js");
|
|
200
201
|
swapFeeLiability: import("bn.js");
|
|
201
|
-
interestLiability: import("bn.js");
|
|
202
202
|
unallocatedSwapFeeLiability: import("bn.js");
|
|
203
|
-
unallocatedInterestLiability: import("bn.js");
|
|
204
203
|
swapProtocolFeeLiability: import("bn.js");
|
|
205
204
|
swapBuybackFeeLiability: import("bn.js");
|
|
206
205
|
interestProtocolFeeLiability: import("bn.js");
|
|
207
206
|
interestBuybackFeeLiability: import("bn.js");
|
|
208
207
|
referralInterestLiability: import("bn.js");
|
|
209
|
-
revenueInterestLiability: import("bn.js");
|
|
210
208
|
feeSwapAuction: {
|
|
211
209
|
acceptedMint: PublicKey;
|
|
212
210
|
virtualSoldReserve: import("bn.js");
|
|
@@ -389,62 +387,6 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
389
387
|
queuedReceipts: import("bn.js");
|
|
390
388
|
generation: import("bn.js");
|
|
391
389
|
};
|
|
392
|
-
income: {
|
|
393
|
-
books: {
|
|
394
|
-
epoch: import("bn.js");
|
|
395
|
-
unpaid: import("bn.js");
|
|
396
|
-
units: import("bn.js");
|
|
397
|
-
paidPerUnitQ64: import("bn.js");
|
|
398
|
-
paidRemainder: import("bn.js");
|
|
399
|
-
growth: {
|
|
400
|
-
unitsQ64: import("bn.js");
|
|
401
|
-
weightedPaidQ128: import("bn.js")[];
|
|
402
|
-
}[];
|
|
403
|
-
}[];
|
|
404
|
-
revenue: {
|
|
405
|
-
grossUnpaid: import("bn.js");
|
|
406
|
-
protocolUnpaid: import("bn.js");
|
|
407
|
-
operatorUnpaid: import("bn.js");
|
|
408
|
-
pendingGross: import("bn.js");
|
|
409
|
-
pendingProtocolGross: import("bn.js");
|
|
410
|
-
operatorClaimable: import("bn.js");
|
|
411
|
-
protocolFractionQ64: import("bn.js");
|
|
412
|
-
operatorFractionQ64: import("bn.js");
|
|
413
|
-
protocolCashFractionQ64: import("bn.js");
|
|
414
|
-
}[];
|
|
415
|
-
pending: import("bn.js")[];
|
|
416
|
-
seed: {
|
|
417
|
-
epoch: import("bn.js");
|
|
418
|
-
unitsQ64: import("bn.js");
|
|
419
|
-
paidCheckpointQ64: import("bn.js");
|
|
420
|
-
growthCheckpoint: {
|
|
421
|
-
unitsQ64: import("bn.js");
|
|
422
|
-
weightedPaidQ128: import("bn.js")[];
|
|
423
|
-
};
|
|
424
|
-
paidFractionQ128: import("bn.js");
|
|
425
|
-
claimable: import("bn.js");
|
|
426
|
-
}[];
|
|
427
|
-
hlp: {
|
|
428
|
-
epoch: import("bn.js");
|
|
429
|
-
unitsQ64: import("bn.js");
|
|
430
|
-
paidCheckpointQ64: import("bn.js");
|
|
431
|
-
growthCheckpoint: {
|
|
432
|
-
unitsQ64: import("bn.js");
|
|
433
|
-
weightedPaidQ128: import("bn.js")[];
|
|
434
|
-
};
|
|
435
|
-
paidFractionQ128: import("bn.js");
|
|
436
|
-
claimable: import("bn.js");
|
|
437
|
-
}[][];
|
|
438
|
-
juniorEnd: {
|
|
439
|
-
ended: boolean;
|
|
440
|
-
epoch: import("bn.js");
|
|
441
|
-
growth: {
|
|
442
|
-
unitsQ64: import("bn.js");
|
|
443
|
-
weightedPaidQ128: import("bn.js")[];
|
|
444
|
-
};
|
|
445
|
-
}[];
|
|
446
|
-
splitCarryBps: number[];
|
|
447
|
-
};
|
|
448
390
|
juniorExitConfig: {
|
|
449
391
|
minimumNoticeSlots: import("bn.js");
|
|
450
392
|
maximumNoticeSlots: import("bn.js");
|
|
@@ -469,13 +411,9 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
469
411
|
quoteSwapFeeGrowthIndexQ64: import("bn.js");
|
|
470
412
|
quoteInterestGrowthIndexQ64: import("bn.js");
|
|
471
413
|
baseSwapFeeCheckpointQ64: import("bn.js");
|
|
472
|
-
baseInterestCheckpointQ64: import("bn.js");
|
|
473
414
|
quoteSwapFeeCheckpointQ64: import("bn.js");
|
|
474
|
-
quoteInterestCheckpointQ64: import("bn.js");
|
|
475
415
|
baseSwapFeeRemainderQ64: import("bn.js");
|
|
476
|
-
baseInterestRemainderQ64: import("bn.js");
|
|
477
416
|
quoteSwapFeeRemainderQ64: import("bn.js");
|
|
478
|
-
quoteInterestRemainderQ64: import("bn.js");
|
|
479
417
|
baseSwapFeeGrowthRemainderScaled: import("bn.js");
|
|
480
418
|
baseInterestGrowthRemainderScaled: import("bn.js");
|
|
481
419
|
quoteSwapFeeGrowthRemainderScaled: import("bn.js");
|
|
@@ -488,6 +426,8 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
488
426
|
cachedSettlementPriceNad: import("bn.js");
|
|
489
427
|
fundingAprEmaNad: import("bn.js");
|
|
490
428
|
fundingAprEmaLastSlot: import("bn.js");
|
|
429
|
+
heldBaseInterest: import("bn.js");
|
|
430
|
+
heldQuoteInterest: import("bn.js");
|
|
491
431
|
};
|
|
492
432
|
quoteHlpVault: {
|
|
493
433
|
flashCollateralDebit: import("bn.js");
|
|
@@ -504,13 +444,9 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
504
444
|
quoteSwapFeeGrowthIndexQ64: import("bn.js");
|
|
505
445
|
quoteInterestGrowthIndexQ64: import("bn.js");
|
|
506
446
|
baseSwapFeeCheckpointQ64: import("bn.js");
|
|
507
|
-
baseInterestCheckpointQ64: import("bn.js");
|
|
508
447
|
quoteSwapFeeCheckpointQ64: import("bn.js");
|
|
509
|
-
quoteInterestCheckpointQ64: import("bn.js");
|
|
510
448
|
baseSwapFeeRemainderQ64: import("bn.js");
|
|
511
|
-
baseInterestRemainderQ64: import("bn.js");
|
|
512
449
|
quoteSwapFeeRemainderQ64: import("bn.js");
|
|
513
|
-
quoteInterestRemainderQ64: import("bn.js");
|
|
514
450
|
baseSwapFeeGrowthRemainderScaled: import("bn.js");
|
|
515
451
|
baseInterestGrowthRemainderScaled: import("bn.js");
|
|
516
452
|
quoteSwapFeeGrowthRemainderScaled: import("bn.js");
|
|
@@ -523,6 +459,8 @@ export declare function previewVirtualBookSnapshot(program: Program<Dusk>, marke
|
|
|
523
459
|
cachedSettlementPriceNad: import("bn.js");
|
|
524
460
|
fundingAprEmaNad: import("bn.js");
|
|
525
461
|
fundingAprEmaLastSlot: import("bn.js");
|
|
462
|
+
heldBaseInterest: import("bn.js");
|
|
463
|
+
heldQuoteInterest: import("bn.js");
|
|
526
464
|
};
|
|
527
465
|
risk: {
|
|
528
466
|
basePriceEmaNad: import("bn.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../src/virtual-book/market.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAA+B,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAIvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAA8B,KAAK,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE7F,2EAA2E;AAC3E,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,EACtB,aAAa,EAAE,WAAW,EAC1B,OAAO,GAAE,wBAA6B
|
|
1
|
+
{"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../src/virtual-book/market.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAA+B,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAIvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAA8B,KAAK,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE7F,2EAA2E;AAC3E,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,EACtB,aAAa,EAAE,WAAW,EAC1B,OAAO,GAAE,wBAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DvC;AACD,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC"}
|
|
@@ -64,7 +64,6 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
64
64
|
hlpMint: anchor.web3.PublicKey;
|
|
65
65
|
reserveVault: anchor.web3.PublicKey;
|
|
66
66
|
collateralVault: anchor.web3.PublicKey;
|
|
67
|
-
interestVault: anchor.web3.PublicKey;
|
|
68
67
|
reserves: {
|
|
69
68
|
flashReceivable: anchor.BN;
|
|
70
69
|
liveReserve: anchor.BN;
|
|
@@ -97,29 +96,29 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
97
96
|
swapRemainderBps: number;
|
|
98
97
|
};
|
|
99
98
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
ledger: {
|
|
100
|
+
publicRecognized: anchor.BN;
|
|
101
|
+
fundingRecognized: anchor.BN;
|
|
102
|
+
credited: anchor.BN;
|
|
103
|
+
protocolUnpaid: anchor.BN;
|
|
104
|
+
operatorClaimable: anchor.BN;
|
|
105
|
+
protocolFractionQ64: anchor.BN;
|
|
106
|
+
operatorFractionQ64: anchor.BN;
|
|
107
|
+
protocolPending: anchor.BN;
|
|
108
|
+
deficit: anchor.BN;
|
|
105
109
|
};
|
|
106
110
|
swapFeeGrowthIndexQ64: anchor.BN;
|
|
107
111
|
interestGrowthIndexQ64: anchor.BN;
|
|
108
112
|
swapFeeGrowthRemainderScaled: anchor.BN;
|
|
109
113
|
interestGrowthRemainderScaled: anchor.BN;
|
|
110
|
-
hlpFundingInterestGrowthRemainderScaled: anchor.BN;
|
|
111
114
|
swapFeeCustodyBalance: anchor.BN;
|
|
112
|
-
interestVaultBalance: anchor.BN;
|
|
113
115
|
swapFeeLiability: anchor.BN;
|
|
114
|
-
interestLiability: anchor.BN;
|
|
115
116
|
unallocatedSwapFeeLiability: anchor.BN;
|
|
116
|
-
unallocatedInterestLiability: anchor.BN;
|
|
117
117
|
swapProtocolFeeLiability: anchor.BN;
|
|
118
118
|
swapBuybackFeeLiability: anchor.BN;
|
|
119
119
|
interestProtocolFeeLiability: anchor.BN;
|
|
120
120
|
interestBuybackFeeLiability: anchor.BN;
|
|
121
121
|
referralInterestLiability: anchor.BN;
|
|
122
|
-
revenueInterestLiability: anchor.BN;
|
|
123
122
|
feeSwapAuction: {
|
|
124
123
|
acceptedMint: anchor.web3.PublicKey;
|
|
125
124
|
virtualSoldReserve: anchor.BN;
|
|
@@ -165,7 +164,6 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
165
164
|
hlpMint: anchor.web3.PublicKey;
|
|
166
165
|
reserveVault: anchor.web3.PublicKey;
|
|
167
166
|
collateralVault: anchor.web3.PublicKey;
|
|
168
|
-
interestVault: anchor.web3.PublicKey;
|
|
169
167
|
reserves: {
|
|
170
168
|
flashReceivable: anchor.BN;
|
|
171
169
|
liveReserve: anchor.BN;
|
|
@@ -198,29 +196,29 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
198
196
|
swapRemainderBps: number;
|
|
199
197
|
};
|
|
200
198
|
};
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
ledger: {
|
|
200
|
+
publicRecognized: anchor.BN;
|
|
201
|
+
fundingRecognized: anchor.BN;
|
|
202
|
+
credited: anchor.BN;
|
|
203
|
+
protocolUnpaid: anchor.BN;
|
|
204
|
+
operatorClaimable: anchor.BN;
|
|
205
|
+
protocolFractionQ64: anchor.BN;
|
|
206
|
+
operatorFractionQ64: anchor.BN;
|
|
207
|
+
protocolPending: anchor.BN;
|
|
208
|
+
deficit: anchor.BN;
|
|
206
209
|
};
|
|
207
210
|
swapFeeGrowthIndexQ64: anchor.BN;
|
|
208
211
|
interestGrowthIndexQ64: anchor.BN;
|
|
209
212
|
swapFeeGrowthRemainderScaled: anchor.BN;
|
|
210
213
|
interestGrowthRemainderScaled: anchor.BN;
|
|
211
|
-
hlpFundingInterestGrowthRemainderScaled: anchor.BN;
|
|
212
214
|
swapFeeCustodyBalance: anchor.BN;
|
|
213
|
-
interestVaultBalance: anchor.BN;
|
|
214
215
|
swapFeeLiability: anchor.BN;
|
|
215
|
-
interestLiability: anchor.BN;
|
|
216
216
|
unallocatedSwapFeeLiability: anchor.BN;
|
|
217
|
-
unallocatedInterestLiability: anchor.BN;
|
|
218
217
|
swapProtocolFeeLiability: anchor.BN;
|
|
219
218
|
swapBuybackFeeLiability: anchor.BN;
|
|
220
219
|
interestProtocolFeeLiability: anchor.BN;
|
|
221
220
|
interestBuybackFeeLiability: anchor.BN;
|
|
222
221
|
referralInterestLiability: anchor.BN;
|
|
223
|
-
revenueInterestLiability: anchor.BN;
|
|
224
222
|
feeSwapAuction: {
|
|
225
223
|
acceptedMint: anchor.web3.PublicKey;
|
|
226
224
|
virtualSoldReserve: anchor.BN;
|
|
@@ -403,62 +401,6 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
403
401
|
queuedReceipts: anchor.BN;
|
|
404
402
|
generation: anchor.BN;
|
|
405
403
|
};
|
|
406
|
-
income: {
|
|
407
|
-
books: {
|
|
408
|
-
epoch: anchor.BN;
|
|
409
|
-
unpaid: anchor.BN;
|
|
410
|
-
units: anchor.BN;
|
|
411
|
-
paidPerUnitQ64: anchor.BN;
|
|
412
|
-
paidRemainder: anchor.BN;
|
|
413
|
-
growth: {
|
|
414
|
-
unitsQ64: anchor.BN;
|
|
415
|
-
weightedPaidQ128: anchor.BN[];
|
|
416
|
-
}[];
|
|
417
|
-
}[];
|
|
418
|
-
revenue: {
|
|
419
|
-
grossUnpaid: anchor.BN;
|
|
420
|
-
protocolUnpaid: anchor.BN;
|
|
421
|
-
operatorUnpaid: anchor.BN;
|
|
422
|
-
pendingGross: anchor.BN;
|
|
423
|
-
pendingProtocolGross: anchor.BN;
|
|
424
|
-
operatorClaimable: anchor.BN;
|
|
425
|
-
protocolFractionQ64: anchor.BN;
|
|
426
|
-
operatorFractionQ64: anchor.BN;
|
|
427
|
-
protocolCashFractionQ64: anchor.BN;
|
|
428
|
-
}[];
|
|
429
|
-
pending: anchor.BN[];
|
|
430
|
-
seed: {
|
|
431
|
-
epoch: anchor.BN;
|
|
432
|
-
unitsQ64: anchor.BN;
|
|
433
|
-
paidCheckpointQ64: anchor.BN;
|
|
434
|
-
growthCheckpoint: {
|
|
435
|
-
unitsQ64: anchor.BN;
|
|
436
|
-
weightedPaidQ128: anchor.BN[];
|
|
437
|
-
};
|
|
438
|
-
paidFractionQ128: anchor.BN;
|
|
439
|
-
claimable: anchor.BN;
|
|
440
|
-
}[];
|
|
441
|
-
hlp: {
|
|
442
|
-
epoch: anchor.BN;
|
|
443
|
-
unitsQ64: anchor.BN;
|
|
444
|
-
paidCheckpointQ64: anchor.BN;
|
|
445
|
-
growthCheckpoint: {
|
|
446
|
-
unitsQ64: anchor.BN;
|
|
447
|
-
weightedPaidQ128: anchor.BN[];
|
|
448
|
-
};
|
|
449
|
-
paidFractionQ128: anchor.BN;
|
|
450
|
-
claimable: anchor.BN;
|
|
451
|
-
}[][];
|
|
452
|
-
juniorEnd: {
|
|
453
|
-
ended: boolean;
|
|
454
|
-
epoch: anchor.BN;
|
|
455
|
-
growth: {
|
|
456
|
-
unitsQ64: anchor.BN;
|
|
457
|
-
weightedPaidQ128: anchor.BN[];
|
|
458
|
-
};
|
|
459
|
-
}[];
|
|
460
|
-
splitCarryBps: number[];
|
|
461
|
-
};
|
|
462
404
|
juniorExitConfig: {
|
|
463
405
|
minimumNoticeSlots: anchor.BN;
|
|
464
406
|
maximumNoticeSlots: anchor.BN;
|
|
@@ -483,13 +425,9 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
483
425
|
quoteSwapFeeGrowthIndexQ64: anchor.BN;
|
|
484
426
|
quoteInterestGrowthIndexQ64: anchor.BN;
|
|
485
427
|
baseSwapFeeCheckpointQ64: anchor.BN;
|
|
486
|
-
baseInterestCheckpointQ64: anchor.BN;
|
|
487
428
|
quoteSwapFeeCheckpointQ64: anchor.BN;
|
|
488
|
-
quoteInterestCheckpointQ64: anchor.BN;
|
|
489
429
|
baseSwapFeeRemainderQ64: anchor.BN;
|
|
490
|
-
baseInterestRemainderQ64: anchor.BN;
|
|
491
430
|
quoteSwapFeeRemainderQ64: anchor.BN;
|
|
492
|
-
quoteInterestRemainderQ64: anchor.BN;
|
|
493
431
|
baseSwapFeeGrowthRemainderScaled: anchor.BN;
|
|
494
432
|
baseInterestGrowthRemainderScaled: anchor.BN;
|
|
495
433
|
quoteSwapFeeGrowthRemainderScaled: anchor.BN;
|
|
@@ -502,6 +440,8 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
502
440
|
cachedSettlementPriceNad: anchor.BN;
|
|
503
441
|
fundingAprEmaNad: anchor.BN;
|
|
504
442
|
fundingAprEmaLastSlot: anchor.BN;
|
|
443
|
+
heldBaseInterest: anchor.BN;
|
|
444
|
+
heldQuoteInterest: anchor.BN;
|
|
505
445
|
};
|
|
506
446
|
quoteHlpVault: {
|
|
507
447
|
flashCollateralDebit: anchor.BN;
|
|
@@ -518,13 +458,9 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
518
458
|
quoteSwapFeeGrowthIndexQ64: anchor.BN;
|
|
519
459
|
quoteInterestGrowthIndexQ64: anchor.BN;
|
|
520
460
|
baseSwapFeeCheckpointQ64: anchor.BN;
|
|
521
|
-
baseInterestCheckpointQ64: anchor.BN;
|
|
522
461
|
quoteSwapFeeCheckpointQ64: anchor.BN;
|
|
523
|
-
quoteInterestCheckpointQ64: anchor.BN;
|
|
524
462
|
baseSwapFeeRemainderQ64: anchor.BN;
|
|
525
|
-
baseInterestRemainderQ64: anchor.BN;
|
|
526
463
|
quoteSwapFeeRemainderQ64: anchor.BN;
|
|
527
|
-
quoteInterestRemainderQ64: anchor.BN;
|
|
528
464
|
baseSwapFeeGrowthRemainderScaled: anchor.BN;
|
|
529
465
|
baseInterestGrowthRemainderScaled: anchor.BN;
|
|
530
466
|
quoteSwapFeeGrowthRemainderScaled: anchor.BN;
|
|
@@ -537,6 +473,8 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
537
473
|
cachedSettlementPriceNad: anchor.BN;
|
|
538
474
|
fundingAprEmaNad: anchor.BN;
|
|
539
475
|
fundingAprEmaLastSlot: anchor.BN;
|
|
476
|
+
heldBaseInterest: anchor.BN;
|
|
477
|
+
heldQuoteInterest: anchor.BN;
|
|
540
478
|
};
|
|
541
479
|
risk: {
|
|
542
480
|
basePriceEmaNad: anchor.BN;
|
|
@@ -665,6 +603,7 @@ export declare function decodeDuskVirtualBookBatch(program: Program<Dusk>, snaps
|
|
|
665
603
|
}[];
|
|
666
604
|
slot: number;
|
|
667
605
|
epoch: bigint;
|
|
606
|
+
unixTimestamp: bigint;
|
|
668
607
|
state: string;
|
|
669
608
|
};
|
|
670
609
|
/** One read-only native preview for each requested cumulative input. */
|
|
@@ -711,7 +650,6 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
711
650
|
hlpMint: anchor.web3.PublicKey;
|
|
712
651
|
reserveVault: anchor.web3.PublicKey;
|
|
713
652
|
collateralVault: anchor.web3.PublicKey;
|
|
714
|
-
interestVault: anchor.web3.PublicKey;
|
|
715
653
|
reserves: {
|
|
716
654
|
flashReceivable: anchor.BN;
|
|
717
655
|
liveReserve: anchor.BN;
|
|
@@ -744,29 +682,29 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
744
682
|
swapRemainderBps: number;
|
|
745
683
|
};
|
|
746
684
|
};
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
685
|
+
ledger: {
|
|
686
|
+
publicRecognized: anchor.BN;
|
|
687
|
+
fundingRecognized: anchor.BN;
|
|
688
|
+
credited: anchor.BN;
|
|
689
|
+
protocolUnpaid: anchor.BN;
|
|
690
|
+
operatorClaimable: anchor.BN;
|
|
691
|
+
protocolFractionQ64: anchor.BN;
|
|
692
|
+
operatorFractionQ64: anchor.BN;
|
|
693
|
+
protocolPending: anchor.BN;
|
|
694
|
+
deficit: anchor.BN;
|
|
752
695
|
};
|
|
753
696
|
swapFeeGrowthIndexQ64: anchor.BN;
|
|
754
697
|
interestGrowthIndexQ64: anchor.BN;
|
|
755
698
|
swapFeeGrowthRemainderScaled: anchor.BN;
|
|
756
699
|
interestGrowthRemainderScaled: anchor.BN;
|
|
757
|
-
hlpFundingInterestGrowthRemainderScaled: anchor.BN;
|
|
758
700
|
swapFeeCustodyBalance: anchor.BN;
|
|
759
|
-
interestVaultBalance: anchor.BN;
|
|
760
701
|
swapFeeLiability: anchor.BN;
|
|
761
|
-
interestLiability: anchor.BN;
|
|
762
702
|
unallocatedSwapFeeLiability: anchor.BN;
|
|
763
|
-
unallocatedInterestLiability: anchor.BN;
|
|
764
703
|
swapProtocolFeeLiability: anchor.BN;
|
|
765
704
|
swapBuybackFeeLiability: anchor.BN;
|
|
766
705
|
interestProtocolFeeLiability: anchor.BN;
|
|
767
706
|
interestBuybackFeeLiability: anchor.BN;
|
|
768
707
|
referralInterestLiability: anchor.BN;
|
|
769
|
-
revenueInterestLiability: anchor.BN;
|
|
770
708
|
feeSwapAuction: {
|
|
771
709
|
acceptedMint: anchor.web3.PublicKey;
|
|
772
710
|
virtualSoldReserve: anchor.BN;
|
|
@@ -812,7 +750,6 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
812
750
|
hlpMint: anchor.web3.PublicKey;
|
|
813
751
|
reserveVault: anchor.web3.PublicKey;
|
|
814
752
|
collateralVault: anchor.web3.PublicKey;
|
|
815
|
-
interestVault: anchor.web3.PublicKey;
|
|
816
753
|
reserves: {
|
|
817
754
|
flashReceivable: anchor.BN;
|
|
818
755
|
liveReserve: anchor.BN;
|
|
@@ -845,29 +782,29 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
845
782
|
swapRemainderBps: number;
|
|
846
783
|
};
|
|
847
784
|
};
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
785
|
+
ledger: {
|
|
786
|
+
publicRecognized: anchor.BN;
|
|
787
|
+
fundingRecognized: anchor.BN;
|
|
788
|
+
credited: anchor.BN;
|
|
789
|
+
protocolUnpaid: anchor.BN;
|
|
790
|
+
operatorClaimable: anchor.BN;
|
|
791
|
+
protocolFractionQ64: anchor.BN;
|
|
792
|
+
operatorFractionQ64: anchor.BN;
|
|
793
|
+
protocolPending: anchor.BN;
|
|
794
|
+
deficit: anchor.BN;
|
|
853
795
|
};
|
|
854
796
|
swapFeeGrowthIndexQ64: anchor.BN;
|
|
855
797
|
interestGrowthIndexQ64: anchor.BN;
|
|
856
798
|
swapFeeGrowthRemainderScaled: anchor.BN;
|
|
857
799
|
interestGrowthRemainderScaled: anchor.BN;
|
|
858
|
-
hlpFundingInterestGrowthRemainderScaled: anchor.BN;
|
|
859
800
|
swapFeeCustodyBalance: anchor.BN;
|
|
860
|
-
interestVaultBalance: anchor.BN;
|
|
861
801
|
swapFeeLiability: anchor.BN;
|
|
862
|
-
interestLiability: anchor.BN;
|
|
863
802
|
unallocatedSwapFeeLiability: anchor.BN;
|
|
864
|
-
unallocatedInterestLiability: anchor.BN;
|
|
865
803
|
swapProtocolFeeLiability: anchor.BN;
|
|
866
804
|
swapBuybackFeeLiability: anchor.BN;
|
|
867
805
|
interestProtocolFeeLiability: anchor.BN;
|
|
868
806
|
interestBuybackFeeLiability: anchor.BN;
|
|
869
807
|
referralInterestLiability: anchor.BN;
|
|
870
|
-
revenueInterestLiability: anchor.BN;
|
|
871
808
|
feeSwapAuction: {
|
|
872
809
|
acceptedMint: anchor.web3.PublicKey;
|
|
873
810
|
virtualSoldReserve: anchor.BN;
|
|
@@ -1050,62 +987,6 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
1050
987
|
queuedReceipts: anchor.BN;
|
|
1051
988
|
generation: anchor.BN;
|
|
1052
989
|
};
|
|
1053
|
-
income: {
|
|
1054
|
-
books: {
|
|
1055
|
-
epoch: anchor.BN;
|
|
1056
|
-
unpaid: anchor.BN;
|
|
1057
|
-
units: anchor.BN;
|
|
1058
|
-
paidPerUnitQ64: anchor.BN;
|
|
1059
|
-
paidRemainder: anchor.BN;
|
|
1060
|
-
growth: {
|
|
1061
|
-
unitsQ64: anchor.BN;
|
|
1062
|
-
weightedPaidQ128: anchor.BN[];
|
|
1063
|
-
}[];
|
|
1064
|
-
}[];
|
|
1065
|
-
revenue: {
|
|
1066
|
-
grossUnpaid: anchor.BN;
|
|
1067
|
-
protocolUnpaid: anchor.BN;
|
|
1068
|
-
operatorUnpaid: anchor.BN;
|
|
1069
|
-
pendingGross: anchor.BN;
|
|
1070
|
-
pendingProtocolGross: anchor.BN;
|
|
1071
|
-
operatorClaimable: anchor.BN;
|
|
1072
|
-
protocolFractionQ64: anchor.BN;
|
|
1073
|
-
operatorFractionQ64: anchor.BN;
|
|
1074
|
-
protocolCashFractionQ64: anchor.BN;
|
|
1075
|
-
}[];
|
|
1076
|
-
pending: anchor.BN[];
|
|
1077
|
-
seed: {
|
|
1078
|
-
epoch: anchor.BN;
|
|
1079
|
-
unitsQ64: anchor.BN;
|
|
1080
|
-
paidCheckpointQ64: anchor.BN;
|
|
1081
|
-
growthCheckpoint: {
|
|
1082
|
-
unitsQ64: anchor.BN;
|
|
1083
|
-
weightedPaidQ128: anchor.BN[];
|
|
1084
|
-
};
|
|
1085
|
-
paidFractionQ128: anchor.BN;
|
|
1086
|
-
claimable: anchor.BN;
|
|
1087
|
-
}[];
|
|
1088
|
-
hlp: {
|
|
1089
|
-
epoch: anchor.BN;
|
|
1090
|
-
unitsQ64: anchor.BN;
|
|
1091
|
-
paidCheckpointQ64: anchor.BN;
|
|
1092
|
-
growthCheckpoint: {
|
|
1093
|
-
unitsQ64: anchor.BN;
|
|
1094
|
-
weightedPaidQ128: anchor.BN[];
|
|
1095
|
-
};
|
|
1096
|
-
paidFractionQ128: anchor.BN;
|
|
1097
|
-
claimable: anchor.BN;
|
|
1098
|
-
}[][];
|
|
1099
|
-
juniorEnd: {
|
|
1100
|
-
ended: boolean;
|
|
1101
|
-
epoch: anchor.BN;
|
|
1102
|
-
growth: {
|
|
1103
|
-
unitsQ64: anchor.BN;
|
|
1104
|
-
weightedPaidQ128: anchor.BN[];
|
|
1105
|
-
};
|
|
1106
|
-
}[];
|
|
1107
|
-
splitCarryBps: number[];
|
|
1108
|
-
};
|
|
1109
990
|
juniorExitConfig: {
|
|
1110
991
|
minimumNoticeSlots: anchor.BN;
|
|
1111
992
|
maximumNoticeSlots: anchor.BN;
|
|
@@ -1130,13 +1011,9 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
1130
1011
|
quoteSwapFeeGrowthIndexQ64: anchor.BN;
|
|
1131
1012
|
quoteInterestGrowthIndexQ64: anchor.BN;
|
|
1132
1013
|
baseSwapFeeCheckpointQ64: anchor.BN;
|
|
1133
|
-
baseInterestCheckpointQ64: anchor.BN;
|
|
1134
1014
|
quoteSwapFeeCheckpointQ64: anchor.BN;
|
|
1135
|
-
quoteInterestCheckpointQ64: anchor.BN;
|
|
1136
1015
|
baseSwapFeeRemainderQ64: anchor.BN;
|
|
1137
|
-
baseInterestRemainderQ64: anchor.BN;
|
|
1138
1016
|
quoteSwapFeeRemainderQ64: anchor.BN;
|
|
1139
|
-
quoteInterestRemainderQ64: anchor.BN;
|
|
1140
1017
|
baseSwapFeeGrowthRemainderScaled: anchor.BN;
|
|
1141
1018
|
baseInterestGrowthRemainderScaled: anchor.BN;
|
|
1142
1019
|
quoteSwapFeeGrowthRemainderScaled: anchor.BN;
|
|
@@ -1149,6 +1026,8 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
1149
1026
|
cachedSettlementPriceNad: anchor.BN;
|
|
1150
1027
|
fundingAprEmaNad: anchor.BN;
|
|
1151
1028
|
fundingAprEmaLastSlot: anchor.BN;
|
|
1029
|
+
heldBaseInterest: anchor.BN;
|
|
1030
|
+
heldQuoteInterest: anchor.BN;
|
|
1152
1031
|
};
|
|
1153
1032
|
quoteHlpVault: {
|
|
1154
1033
|
flashCollateralDebit: anchor.BN;
|
|
@@ -1165,13 +1044,9 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
1165
1044
|
quoteSwapFeeGrowthIndexQ64: anchor.BN;
|
|
1166
1045
|
quoteInterestGrowthIndexQ64: anchor.BN;
|
|
1167
1046
|
baseSwapFeeCheckpointQ64: anchor.BN;
|
|
1168
|
-
baseInterestCheckpointQ64: anchor.BN;
|
|
1169
1047
|
quoteSwapFeeCheckpointQ64: anchor.BN;
|
|
1170
|
-
quoteInterestCheckpointQ64: anchor.BN;
|
|
1171
1048
|
baseSwapFeeRemainderQ64: anchor.BN;
|
|
1172
|
-
baseInterestRemainderQ64: anchor.BN;
|
|
1173
1049
|
quoteSwapFeeRemainderQ64: anchor.BN;
|
|
1174
|
-
quoteInterestRemainderQ64: anchor.BN;
|
|
1175
1050
|
baseSwapFeeGrowthRemainderScaled: anchor.BN;
|
|
1176
1051
|
baseInterestGrowthRemainderScaled: anchor.BN;
|
|
1177
1052
|
quoteSwapFeeGrowthRemainderScaled: anchor.BN;
|
|
@@ -1184,6 +1059,8 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
1184
1059
|
cachedSettlementPriceNad: anchor.BN;
|
|
1185
1060
|
fundingAprEmaNad: anchor.BN;
|
|
1186
1061
|
fundingAprEmaLastSlot: anchor.BN;
|
|
1062
|
+
heldBaseInterest: anchor.BN;
|
|
1063
|
+
heldQuoteInterest: anchor.BN;
|
|
1187
1064
|
};
|
|
1188
1065
|
risk: {
|
|
1189
1066
|
basePriceEmaNad: anchor.BN;
|
|
@@ -1312,6 +1189,7 @@ export declare function previewVirtualBookBatch(program: Program<Dusk>, snapshot
|
|
|
1312
1189
|
}[];
|
|
1313
1190
|
slot: number;
|
|
1314
1191
|
epoch: bigint;
|
|
1192
|
+
unixTimestamp: bigint;
|
|
1315
1193
|
state: string;
|
|
1316
1194
|
}>;
|
|
1317
1195
|
export interface VirtualBookQuoteOptions extends PreviewSimulationOptions {
|
|
@@ -1322,7 +1200,17 @@ export interface VirtualBookQuoteOptions extends PreviewSimulationOptions {
|
|
|
1322
1200
|
}
|
|
1323
1201
|
/** Sample the curve, then price cumulative sizes through bounded native batches. */
|
|
1324
1202
|
export declare function previewVirtualBookQuotes(program: Program<Dusk>, snapshot: DuskVirtualBookSnapshot, options?: VirtualBookQuoteOptions): Promise<DuskVirtualBookQuotes>;
|
|
1325
|
-
/** Refuse to combine observations across trades, fee changes, epochs or stale banks.
|
|
1203
|
+
/** Refuse to combine observations across trades, fee changes, epochs or stale banks.
|
|
1204
|
+
*
|
|
1205
|
+
* Batches may come from confirmed banks up to eight slots apart when no
|
|
1206
|
+
* transaction touched their inputs. Within one epoch, a swap preview reads the
|
|
1207
|
+
* Clock for interest, EMA and volatility decay (at a fixed 200 ms per slot,
|
|
1208
|
+
* half-lives of at least one minute), the concentration ramp, recentring gates
|
|
1209
|
+
* and the Unix-timestamp launch fees. Combining then requires everything a
|
|
1210
|
+
* Clock change could move to agree: no active ramp, launch windows over unless
|
|
1211
|
+
* the timestamps match, one centre, and start prices and volatility surcharges
|
|
1212
|
+
* within one part per million.
|
|
1213
|
+
*/
|
|
1326
1214
|
export declare function combineVirtualBookBatches(snapshot: DuskVirtualBookSnapshot, groupingBps: number, emptyMid: number, results: Awaited<ReturnType<typeof previewVirtualBookBatch>>[]): DuskVirtualBookQuotes;
|
|
1327
1215
|
export {};
|
|
1328
1216
|
//# sourceMappingURL=quotes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/virtual-book/quotes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/virtual-book/quotes.ts"],"names":[],"mappings":"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"}
|