@satrush/api 0.1.8 → 0.1.10
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/dist/index.cjs +49 -8
- package/dist/index.d.cts +76 -33
- package/dist/index.d.ts +76 -33
- package/dist/index.js +49 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1156,8 +1156,12 @@ var epochVaultDtoSchemaResponseTransformer = (data) => {
|
|
|
1156
1156
|
if (data.currentIteration) {
|
|
1157
1157
|
data.currentIteration = epochVaultIterationDtoSchemaResponseTransformer(data.currentIteration);
|
|
1158
1158
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1159
|
+
if (data.iterationEndsAt) {
|
|
1160
|
+
data.iterationEndsAt = new Date(data.iterationEndsAt);
|
|
1161
|
+
}
|
|
1162
|
+
if (data.iterationStartedAt) {
|
|
1163
|
+
data.iterationStartedAt = new Date(data.iterationStartedAt);
|
|
1164
|
+
}
|
|
1161
1165
|
data.lastTriggerSlot = u64DtoSchemaResponseTransformer(data.lastTriggerSlot);
|
|
1162
1166
|
data.pendingUsdAmount = u64DtoSchemaResponseTransformer(data.pendingUsdAmount);
|
|
1163
1167
|
data.poolBtcAmount = u64DtoSchemaResponseTransformer(data.poolBtcAmount);
|
|
@@ -1209,8 +1213,12 @@ var boardDtoSchemaResponseTransformer = (data) => {
|
|
|
1209
1213
|
if (data.previousRound) {
|
|
1210
1214
|
data.previousRound = roundDtoSchemaResponseTransformer(data.previousRound);
|
|
1211
1215
|
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1216
|
+
if (data.roundEndsAt) {
|
|
1217
|
+
data.roundEndsAt = new Date(data.roundEndsAt);
|
|
1218
|
+
}
|
|
1219
|
+
if (data.roundStartedAt) {
|
|
1220
|
+
data.roundStartedAt = new Date(data.roundStartedAt);
|
|
1221
|
+
}
|
|
1214
1222
|
data.satsVault = satsVaultDtoSchemaResponseTransformer(data.satsVault);
|
|
1215
1223
|
data.startSlot = u64DtoSchemaResponseTransformer(data.startSlot);
|
|
1216
1224
|
data.strike = strikeJackpotDtoSchemaResponseTransformer(data.strike);
|
|
@@ -1333,6 +1341,10 @@ var epochVaultEntryDtoSchemaResponseTransformer = (data) => {
|
|
|
1333
1341
|
data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
|
|
1334
1342
|
return data;
|
|
1335
1343
|
};
|
|
1344
|
+
var i64DtoSchemaResponseTransformer = (data) => {
|
|
1345
|
+
data = BigInt(data.toString());
|
|
1346
|
+
return data;
|
|
1347
|
+
};
|
|
1336
1348
|
var minerDtoSchemaResponseTransformer = (data) => {
|
|
1337
1349
|
data.hashrateAmount = u64DtoSchemaResponseTransformer(data.hashrateAmount);
|
|
1338
1350
|
data.totalBtcReceived = u64DtoSchemaResponseTransformer(data.totalBtcReceived);
|
|
@@ -1345,6 +1357,7 @@ var minerDtoSchemaResponseTransformer = (data) => {
|
|
|
1345
1357
|
data.unclaimedHashrateAmount = u64DtoSchemaResponseTransformer(data.unclaimedHashrateAmount);
|
|
1346
1358
|
data.unclaimedSatsShares = u64DtoSchemaResponseTransformer(data.unclaimedSatsShares);
|
|
1347
1359
|
data.unclaimedUsdAmount = u64DtoSchemaResponseTransformer(data.unclaimedUsdAmount);
|
|
1360
|
+
data.unrealizedBtcPnl = i64DtoSchemaResponseTransformer(data.unrealizedBtcPnl);
|
|
1348
1361
|
data.unsettledSatsShares = u64DtoSchemaResponseTransformer(data.unsettledSatsShares);
|
|
1349
1362
|
data.unsettledUsdAmount = u64DtoSchemaResponseTransformer(data.unsettledUsdAmount);
|
|
1350
1363
|
return data;
|
|
@@ -1412,6 +1425,9 @@ var getUserClaimsResponseTransformer = async (data) => {
|
|
|
1412
1425
|
return data;
|
|
1413
1426
|
};
|
|
1414
1427
|
var minerDeploymentDtoSchemaResponseTransformer = (data) => {
|
|
1428
|
+
if (data.btcEarned) {
|
|
1429
|
+
data.btcEarned = u64DtoSchemaResponseTransformer(data.btcEarned);
|
|
1430
|
+
}
|
|
1415
1431
|
data.deployedAt = new Date(data.deployedAt);
|
|
1416
1432
|
data.deployedUsdAmount = u64DtoSchemaResponseTransformer(data.deployedUsdAmount);
|
|
1417
1433
|
data.hashrateEarned = u64DtoSchemaResponseTransformer(data.hashrateEarned);
|
|
@@ -1682,9 +1698,15 @@ var zEpochVaultDto = z.object({
|
|
|
1682
1698
|
z.null(),
|
|
1683
1699
|
zEpochVaultIterationDto
|
|
1684
1700
|
])),
|
|
1685
|
-
iterationEndsAt: z.
|
|
1701
|
+
iterationEndsAt: z.optional(z.union([
|
|
1702
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1703
|
+
z.null()
|
|
1704
|
+
])),
|
|
1686
1705
|
iterationId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1687
|
-
iterationStartedAt: z.
|
|
1706
|
+
iterationStartedAt: z.optional(z.union([
|
|
1707
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1708
|
+
z.null()
|
|
1709
|
+
])),
|
|
1688
1710
|
lastTriggerSlot: zU64Dto,
|
|
1689
1711
|
pendingUsdAmount: zU64Dto,
|
|
1690
1712
|
poolBtcAmount: zU64Dto,
|
|
@@ -1743,6 +1765,10 @@ var zMinerClaimDto = z.object({
|
|
|
1743
1765
|
});
|
|
1744
1766
|
var zMinerDeploymentDto = z.object({
|
|
1745
1767
|
authority: zPubkeyDto,
|
|
1768
|
+
btcEarned: z.optional(z.union([
|
|
1769
|
+
z.null(),
|
|
1770
|
+
zU64Dto
|
|
1771
|
+
])),
|
|
1746
1772
|
deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1747
1773
|
deployedUsdAmount: zU64Dto,
|
|
1748
1774
|
deployment: zPubkeyDto,
|
|
@@ -1786,6 +1812,7 @@ var zMinerDto = z.object({
|
|
|
1786
1812
|
unclaimedHashrateAmount: zU64Dto,
|
|
1787
1813
|
unclaimedSatsShares: zU64Dto,
|
|
1788
1814
|
unclaimedUsdAmount: zU64Dto,
|
|
1815
|
+
unrealizedBtcPnl: zI64Dto,
|
|
1789
1816
|
unsettledSatsShares: zU64Dto,
|
|
1790
1817
|
unsettledUsdAmount: zU64Dto
|
|
1791
1818
|
});
|
|
@@ -1873,6 +1900,10 @@ var zOneBtcVaultIterationDto = z.object({
|
|
|
1873
1900
|
id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1874
1901
|
prizeBtc: zU64Dto,
|
|
1875
1902
|
state: zOneBtcStateDto,
|
|
1903
|
+
totalParticipants: z.optional(z.union([
|
|
1904
|
+
z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1905
|
+
z.null()
|
|
1906
|
+
])),
|
|
1876
1907
|
totalTickets: zU64Dto,
|
|
1877
1908
|
winningTicket: z.optional(z.union([
|
|
1878
1909
|
z.null(),
|
|
@@ -1979,6 +2010,10 @@ var zSatrushConfigDto = z.object({
|
|
|
1979
2010
|
});
|
|
1980
2011
|
var zSatsVaultDto = z.object({
|
|
1981
2012
|
address: zPubkeyDto,
|
|
2013
|
+
apr: z.optional(z.union([
|
|
2014
|
+
z.number(),
|
|
2015
|
+
z.null()
|
|
2016
|
+
])),
|
|
1982
2017
|
btcAmount: zU64Dto,
|
|
1983
2018
|
btcShares: zU64Dto
|
|
1984
2019
|
});
|
|
@@ -2033,9 +2068,15 @@ var zBoardDto = z.object({
|
|
|
2033
2068
|
previousRounds: z.array(zPreviousRoundDto),
|
|
2034
2069
|
prices: zPricesDto,
|
|
2035
2070
|
roundDuration: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2036
|
-
roundEndsAt: z.
|
|
2071
|
+
roundEndsAt: z.optional(z.union([
|
|
2072
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
2073
|
+
z.null()
|
|
2074
|
+
])),
|
|
2037
2075
|
roundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2038
|
-
roundStartedAt: z.
|
|
2076
|
+
roundStartedAt: z.optional(z.union([
|
|
2077
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
2078
|
+
z.null()
|
|
2079
|
+
])),
|
|
2039
2080
|
satsVault: zSatsVaultDto,
|
|
2040
2081
|
startSlot: zU64Dto,
|
|
2041
2082
|
strike: zStrikeJackpotDto
|
package/dist/index.d.cts
CHANGED
|
@@ -367,15 +367,16 @@ type BoardDto = {
|
|
|
367
367
|
roundDuration: number;
|
|
368
368
|
/**
|
|
369
369
|
* Wall-clock time of `end_slot` (in the future while the round is
|
|
370
|
-
* mining), derived the same way.
|
|
370
|
+
* mining), derived the same way. Null while the round is pending.
|
|
371
371
|
*/
|
|
372
|
-
roundEndsAt
|
|
372
|
+
roundEndsAt?: Date | null;
|
|
373
373
|
roundId: number;
|
|
374
374
|
/**
|
|
375
375
|
* Wall-clock time of `start_slot`, derived from the current time and
|
|
376
|
-
* slot assuming exactly 400ms per slot.
|
|
376
|
+
* slot assuming exactly 400ms per slot. Null while the round is pending
|
|
377
|
+
* and its slot window is not yet scheduled.
|
|
377
378
|
*/
|
|
378
|
-
roundStartedAt
|
|
379
|
+
roundStartedAt?: Date | null;
|
|
379
380
|
/**
|
|
380
381
|
* The sats vault balances.
|
|
381
382
|
*/
|
|
@@ -463,13 +464,14 @@ type EpochVaultDto = {
|
|
|
463
464
|
* Wall-clock time the iteration's window closes (start plus the
|
|
464
465
|
* configured iteration duration), derived the same way.
|
|
465
466
|
*/
|
|
466
|
-
iterationEndsAt
|
|
467
|
+
iterationEndsAt?: Date | null;
|
|
467
468
|
iterationId: number;
|
|
468
469
|
/**
|
|
469
470
|
* Wall-clock time of `last_trigger_slot`, derived from the current time
|
|
470
|
-
* and slot assuming exactly 400ms per slot.
|
|
471
|
+
* and slot assuming exactly 400ms per slot. Null when the slot carries
|
|
472
|
+
* the not-yet-scheduled sentinel.
|
|
471
473
|
*/
|
|
472
|
-
iterationStartedAt
|
|
474
|
+
iterationStartedAt?: Date | null;
|
|
473
475
|
/**
|
|
474
476
|
* Slot at which the current iteration's window started.
|
|
475
477
|
*/
|
|
@@ -689,6 +691,7 @@ type MinerClaimDto = {
|
|
|
689
691
|
*/
|
|
690
692
|
type MinerDeploymentDto = {
|
|
691
693
|
authority: PubkeyDto;
|
|
694
|
+
btcEarned?: null | U64Dto;
|
|
692
695
|
deployedAt: Date;
|
|
693
696
|
/**
|
|
694
697
|
* Gross USD deployed onto the round.
|
|
@@ -805,6 +808,11 @@ type MinerDto = {
|
|
|
805
808
|
* USD rewards not yet claimed.
|
|
806
809
|
*/
|
|
807
810
|
unclaimedUsdAmount: U64Dto;
|
|
811
|
+
/**
|
|
812
|
+
* Unrealized PNL in satoshis: `sats_current_value - sats_cost_basis`.
|
|
813
|
+
* Zero while the vault account is not loaded.
|
|
814
|
+
*/
|
|
815
|
+
unrealizedBtcPnl: I64Dto;
|
|
808
816
|
/**
|
|
809
817
|
* Sats Vault shares pending deployment settlement, estimated at the
|
|
810
818
|
* vault's current exchange rate.
|
|
@@ -1023,6 +1031,11 @@ type OneBtcVaultIterationDto = {
|
|
|
1023
1031
|
*/
|
|
1024
1032
|
prizeBtc: U64Dto;
|
|
1025
1033
|
state: OneBtcStateDto;
|
|
1034
|
+
/**
|
|
1035
|
+
* Unique wallets holding entries, from the rounds indexer. Null when the
|
|
1036
|
+
* iteration is not indexed or the database is unavailable.
|
|
1037
|
+
*/
|
|
1038
|
+
totalParticipants?: number | null;
|
|
1026
1039
|
/**
|
|
1027
1040
|
* Running ticket counter; also the next purchase's start ticket id.
|
|
1028
1041
|
*/
|
|
@@ -1306,6 +1319,12 @@ type SatrushConfigDto = {
|
|
|
1306
1319
|
*/
|
|
1307
1320
|
type SatsVaultDto = {
|
|
1308
1321
|
address: PubkeyDto;
|
|
1322
|
+
/**
|
|
1323
|
+
* Rolling 7-day projected APR as a fraction (0.12 = 12%): the average
|
|
1324
|
+
* hourly share-price return over the trailing 7 days, annualized.
|
|
1325
|
+
* `null` until enough history is indexed.
|
|
1326
|
+
*/
|
|
1327
|
+
apr?: number | null;
|
|
1309
1328
|
/**
|
|
1310
1329
|
* Total BTC backing outstanding shares.
|
|
1311
1330
|
*/
|
|
@@ -2418,9 +2437,9 @@ declare const zEpochVaultDto: z.ZodObject<{
|
|
|
2418
2437
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2419
2438
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2420
2439
|
}, z.core.$strip>]>>;
|
|
2421
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2440
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2422
2441
|
iterationId: z.ZodInt;
|
|
2423
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2442
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2424
2443
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2425
2444
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2426
2445
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2478,6 +2497,7 @@ declare const zMinerClaimDto: z.ZodObject<{
|
|
|
2478
2497
|
*/
|
|
2479
2498
|
declare const zMinerDeploymentDto: z.ZodObject<{
|
|
2480
2499
|
authority: z.ZodString;
|
|
2500
|
+
btcEarned: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2481
2501
|
deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
2482
2502
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2483
2503
|
deployment: z.ZodString;
|
|
@@ -2512,6 +2532,7 @@ declare const zMinerDto: z.ZodObject<{
|
|
|
2512
2532
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2513
2533
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2514
2534
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2535
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
2515
2536
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2516
2537
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2517
2538
|
}, z.core.$strip>;
|
|
@@ -2601,6 +2622,7 @@ declare const zOneBtcVaultIterationDto: z.ZodObject<{
|
|
|
2601
2622
|
settled: "settled";
|
|
2602
2623
|
complete: "complete";
|
|
2603
2624
|
}>;
|
|
2625
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2604
2626
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
2605
2627
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2606
2628
|
}, z.core.$strip>;
|
|
@@ -2619,6 +2641,7 @@ declare const zOneBtcVaultDto: z.ZodObject<{
|
|
|
2619
2641
|
settled: "settled";
|
|
2620
2642
|
complete: "complete";
|
|
2621
2643
|
}>;
|
|
2644
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2622
2645
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
2623
2646
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2624
2647
|
}, z.core.$strip>]>>;
|
|
@@ -2704,6 +2727,7 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
2704
2727
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2705
2728
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2706
2729
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2730
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
2707
2731
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2708
2732
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2709
2733
|
}, z.core.$strip>;
|
|
@@ -2766,6 +2790,7 @@ declare const zSatrushConfigDto: z.ZodObject<{
|
|
|
2766
2790
|
*/
|
|
2767
2791
|
declare const zSatsVaultDto: z.ZodObject<{
|
|
2768
2792
|
address: z.ZodString;
|
|
2793
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2769
2794
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
2770
2795
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
2771
2796
|
}, z.core.$strip>;
|
|
@@ -2871,9 +2896,9 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
2871
2896
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2872
2897
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2873
2898
|
}, z.core.$strip>]>>;
|
|
2874
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2899
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2875
2900
|
iterationId: z.ZodInt;
|
|
2876
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2901
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2877
2902
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2878
2903
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2879
2904
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2893,6 +2918,7 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
2893
2918
|
settled: "settled";
|
|
2894
2919
|
complete: "complete";
|
|
2895
2920
|
}>;
|
|
2921
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2896
2922
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
2897
2923
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2898
2924
|
}, z.core.$strip>]>>;
|
|
@@ -2935,11 +2961,12 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
2935
2961
|
sat: z.ZodNumber;
|
|
2936
2962
|
}, z.core.$strip>;
|
|
2937
2963
|
roundDuration: z.ZodInt;
|
|
2938
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2964
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2939
2965
|
roundId: z.ZodInt;
|
|
2940
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2966
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2941
2967
|
satsVault: z.ZodObject<{
|
|
2942
2968
|
address: z.ZodString;
|
|
2969
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2943
2970
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
2944
2971
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
2945
2972
|
}, z.core.$strip>;
|
|
@@ -3006,9 +3033,9 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
3006
3033
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3007
3034
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3008
3035
|
}, z.core.$strip>]>>;
|
|
3009
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3036
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3010
3037
|
iterationId: z.ZodInt;
|
|
3011
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3038
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3012
3039
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
3013
3040
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3014
3041
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3028,6 +3055,7 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
3028
3055
|
settled: "settled";
|
|
3029
3056
|
complete: "complete";
|
|
3030
3057
|
}>;
|
|
3058
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3031
3059
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3032
3060
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
3033
3061
|
}, z.core.$strip>]>>;
|
|
@@ -3070,11 +3098,12 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
3070
3098
|
sat: z.ZodNumber;
|
|
3071
3099
|
}, z.core.$strip>;
|
|
3072
3100
|
roundDuration: z.ZodInt;
|
|
3073
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3101
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3074
3102
|
roundId: z.ZodInt;
|
|
3075
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3103
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3076
3104
|
satsVault: z.ZodObject<{
|
|
3077
3105
|
address: z.ZodString;
|
|
3106
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3078
3107
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3079
3108
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
3080
3109
|
}, z.core.$strip>;
|
|
@@ -3132,6 +3161,7 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
3132
3161
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
3133
3162
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3134
3163
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3164
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
3135
3165
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3136
3166
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3137
3167
|
}, z.core.$strip>;
|
|
@@ -3203,9 +3233,9 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
3203
3233
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3204
3234
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3205
3235
|
}, z.core.$strip>]>>;
|
|
3206
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3236
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3207
3237
|
iterationId: z.ZodInt;
|
|
3208
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3238
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3209
3239
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
3210
3240
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3211
3241
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3225,6 +3255,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
3225
3255
|
settled: "settled";
|
|
3226
3256
|
complete: "complete";
|
|
3227
3257
|
}>;
|
|
3258
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3228
3259
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3229
3260
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
3230
3261
|
}, z.core.$strip>]>>;
|
|
@@ -3267,11 +3298,12 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
3267
3298
|
sat: z.ZodNumber;
|
|
3268
3299
|
}, z.core.$strip>;
|
|
3269
3300
|
roundDuration: z.ZodInt;
|
|
3270
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3301
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3271
3302
|
roundId: z.ZodInt;
|
|
3272
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3303
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3273
3304
|
satsVault: z.ZodObject<{
|
|
3274
3305
|
address: z.ZodString;
|
|
3306
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3275
3307
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3276
3308
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
3277
3309
|
}, z.core.$strip>;
|
|
@@ -3329,6 +3361,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
3329
3361
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
3330
3362
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3331
3363
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3364
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
3332
3365
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3333
3366
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3334
3367
|
}, z.core.$strip>;
|
|
@@ -3406,9 +3439,9 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
3406
3439
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3407
3440
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3408
3441
|
}, z.core.$strip>]>>;
|
|
3409
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3442
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3410
3443
|
iterationId: z.ZodInt;
|
|
3411
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3444
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3412
3445
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
3413
3446
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3414
3447
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3428,6 +3461,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
3428
3461
|
settled: "settled";
|
|
3429
3462
|
complete: "complete";
|
|
3430
3463
|
}>;
|
|
3464
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3431
3465
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3432
3466
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
3433
3467
|
}, z.core.$strip>]>>;
|
|
@@ -3470,11 +3504,12 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
3470
3504
|
sat: z.ZodNumber;
|
|
3471
3505
|
}, z.core.$strip>;
|
|
3472
3506
|
roundDuration: z.ZodInt;
|
|
3473
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3507
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3474
3508
|
roundId: z.ZodInt;
|
|
3475
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3509
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3476
3510
|
satsVault: z.ZodObject<{
|
|
3477
3511
|
address: z.ZodString;
|
|
3512
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3478
3513
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3479
3514
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
3480
3515
|
}, z.core.$strip>;
|
|
@@ -3532,6 +3567,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
3532
3567
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
3533
3568
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3534
3569
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3570
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
3535
3571
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3536
3572
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3537
3573
|
}, z.core.$strip>;
|
|
@@ -3853,9 +3889,9 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
3853
3889
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3854
3890
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3855
3891
|
}, z.core.$strip>]>>;
|
|
3856
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3892
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3857
3893
|
iterationId: z.ZodInt;
|
|
3858
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3894
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3859
3895
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
3860
3896
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3861
3897
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3875,6 +3911,7 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
3875
3911
|
settled: "settled";
|
|
3876
3912
|
complete: "complete";
|
|
3877
3913
|
}>;
|
|
3914
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3878
3915
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3879
3916
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
3880
3917
|
}, z.core.$strip>]>>;
|
|
@@ -3917,11 +3954,12 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
3917
3954
|
sat: z.ZodNumber;
|
|
3918
3955
|
}, z.core.$strip>;
|
|
3919
3956
|
roundDuration: z.ZodInt;
|
|
3920
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3957
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3921
3958
|
roundId: z.ZodInt;
|
|
3922
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3959
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3923
3960
|
satsVault: z.ZodObject<{
|
|
3924
3961
|
address: z.ZodString;
|
|
3962
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3925
3963
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3926
3964
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
3927
3965
|
}, z.core.$strip>;
|
|
@@ -4177,9 +4215,9 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
4177
4215
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4178
4216
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4179
4217
|
}, z.core.$strip>]>>;
|
|
4180
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4218
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4181
4219
|
iterationId: z.ZodInt;
|
|
4182
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4220
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4183
4221
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
4184
4222
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4185
4223
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -4199,6 +4237,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
4199
4237
|
settled: "settled";
|
|
4200
4238
|
complete: "complete";
|
|
4201
4239
|
}>;
|
|
4240
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4202
4241
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
4203
4242
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4204
4243
|
}, z.core.$strip>]>>;
|
|
@@ -4241,11 +4280,12 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
4241
4280
|
sat: z.ZodNumber;
|
|
4242
4281
|
}, z.core.$strip>;
|
|
4243
4282
|
roundDuration: z.ZodInt;
|
|
4244
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4283
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4245
4284
|
roundId: z.ZodInt;
|
|
4246
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4285
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4247
4286
|
satsVault: z.ZodObject<{
|
|
4248
4287
|
address: z.ZodString;
|
|
4288
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4249
4289
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
4250
4290
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
4251
4291
|
}, z.core.$strip>;
|
|
@@ -4303,6 +4343,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
4303
4343
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
4304
4344
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
4305
4345
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4346
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
4306
4347
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
4307
4348
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4308
4349
|
}, z.core.$strip>;
|
|
@@ -4375,6 +4416,7 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
4375
4416
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
4376
4417
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
4377
4418
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4419
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
4378
4420
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
4379
4421
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4380
4422
|
}, z.core.$strip>;
|
|
@@ -4435,6 +4477,7 @@ declare const zGetUserDeploymentsData: z.ZodObject<{
|
|
|
4435
4477
|
declare const zGetUserDeploymentsResponse: z.ZodObject<{
|
|
4436
4478
|
data: z.ZodArray<z.ZodObject<{
|
|
4437
4479
|
authority: z.ZodString;
|
|
4480
|
+
btcEarned: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4438
4481
|
deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
4439
4482
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4440
4483
|
deployment: z.ZodString;
|
package/dist/index.d.ts
CHANGED
|
@@ -367,15 +367,16 @@ type BoardDto = {
|
|
|
367
367
|
roundDuration: number;
|
|
368
368
|
/**
|
|
369
369
|
* Wall-clock time of `end_slot` (in the future while the round is
|
|
370
|
-
* mining), derived the same way.
|
|
370
|
+
* mining), derived the same way. Null while the round is pending.
|
|
371
371
|
*/
|
|
372
|
-
roundEndsAt
|
|
372
|
+
roundEndsAt?: Date | null;
|
|
373
373
|
roundId: number;
|
|
374
374
|
/**
|
|
375
375
|
* Wall-clock time of `start_slot`, derived from the current time and
|
|
376
|
-
* slot assuming exactly 400ms per slot.
|
|
376
|
+
* slot assuming exactly 400ms per slot. Null while the round is pending
|
|
377
|
+
* and its slot window is not yet scheduled.
|
|
377
378
|
*/
|
|
378
|
-
roundStartedAt
|
|
379
|
+
roundStartedAt?: Date | null;
|
|
379
380
|
/**
|
|
380
381
|
* The sats vault balances.
|
|
381
382
|
*/
|
|
@@ -463,13 +464,14 @@ type EpochVaultDto = {
|
|
|
463
464
|
* Wall-clock time the iteration's window closes (start plus the
|
|
464
465
|
* configured iteration duration), derived the same way.
|
|
465
466
|
*/
|
|
466
|
-
iterationEndsAt
|
|
467
|
+
iterationEndsAt?: Date | null;
|
|
467
468
|
iterationId: number;
|
|
468
469
|
/**
|
|
469
470
|
* Wall-clock time of `last_trigger_slot`, derived from the current time
|
|
470
|
-
* and slot assuming exactly 400ms per slot.
|
|
471
|
+
* and slot assuming exactly 400ms per slot. Null when the slot carries
|
|
472
|
+
* the not-yet-scheduled sentinel.
|
|
471
473
|
*/
|
|
472
|
-
iterationStartedAt
|
|
474
|
+
iterationStartedAt?: Date | null;
|
|
473
475
|
/**
|
|
474
476
|
* Slot at which the current iteration's window started.
|
|
475
477
|
*/
|
|
@@ -689,6 +691,7 @@ type MinerClaimDto = {
|
|
|
689
691
|
*/
|
|
690
692
|
type MinerDeploymentDto = {
|
|
691
693
|
authority: PubkeyDto;
|
|
694
|
+
btcEarned?: null | U64Dto;
|
|
692
695
|
deployedAt: Date;
|
|
693
696
|
/**
|
|
694
697
|
* Gross USD deployed onto the round.
|
|
@@ -805,6 +808,11 @@ type MinerDto = {
|
|
|
805
808
|
* USD rewards not yet claimed.
|
|
806
809
|
*/
|
|
807
810
|
unclaimedUsdAmount: U64Dto;
|
|
811
|
+
/**
|
|
812
|
+
* Unrealized PNL in satoshis: `sats_current_value - sats_cost_basis`.
|
|
813
|
+
* Zero while the vault account is not loaded.
|
|
814
|
+
*/
|
|
815
|
+
unrealizedBtcPnl: I64Dto;
|
|
808
816
|
/**
|
|
809
817
|
* Sats Vault shares pending deployment settlement, estimated at the
|
|
810
818
|
* vault's current exchange rate.
|
|
@@ -1023,6 +1031,11 @@ type OneBtcVaultIterationDto = {
|
|
|
1023
1031
|
*/
|
|
1024
1032
|
prizeBtc: U64Dto;
|
|
1025
1033
|
state: OneBtcStateDto;
|
|
1034
|
+
/**
|
|
1035
|
+
* Unique wallets holding entries, from the rounds indexer. Null when the
|
|
1036
|
+
* iteration is not indexed or the database is unavailable.
|
|
1037
|
+
*/
|
|
1038
|
+
totalParticipants?: number | null;
|
|
1026
1039
|
/**
|
|
1027
1040
|
* Running ticket counter; also the next purchase's start ticket id.
|
|
1028
1041
|
*/
|
|
@@ -1306,6 +1319,12 @@ type SatrushConfigDto = {
|
|
|
1306
1319
|
*/
|
|
1307
1320
|
type SatsVaultDto = {
|
|
1308
1321
|
address: PubkeyDto;
|
|
1322
|
+
/**
|
|
1323
|
+
* Rolling 7-day projected APR as a fraction (0.12 = 12%): the average
|
|
1324
|
+
* hourly share-price return over the trailing 7 days, annualized.
|
|
1325
|
+
* `null` until enough history is indexed.
|
|
1326
|
+
*/
|
|
1327
|
+
apr?: number | null;
|
|
1309
1328
|
/**
|
|
1310
1329
|
* Total BTC backing outstanding shares.
|
|
1311
1330
|
*/
|
|
@@ -2418,9 +2437,9 @@ declare const zEpochVaultDto: z.ZodObject<{
|
|
|
2418
2437
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2419
2438
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2420
2439
|
}, z.core.$strip>]>>;
|
|
2421
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2440
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2422
2441
|
iterationId: z.ZodInt;
|
|
2423
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2442
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2424
2443
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2425
2444
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2426
2445
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2478,6 +2497,7 @@ declare const zMinerClaimDto: z.ZodObject<{
|
|
|
2478
2497
|
*/
|
|
2479
2498
|
declare const zMinerDeploymentDto: z.ZodObject<{
|
|
2480
2499
|
authority: z.ZodString;
|
|
2500
|
+
btcEarned: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2481
2501
|
deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
2482
2502
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2483
2503
|
deployment: z.ZodString;
|
|
@@ -2512,6 +2532,7 @@ declare const zMinerDto: z.ZodObject<{
|
|
|
2512
2532
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2513
2533
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2514
2534
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2535
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
2515
2536
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2516
2537
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2517
2538
|
}, z.core.$strip>;
|
|
@@ -2601,6 +2622,7 @@ declare const zOneBtcVaultIterationDto: z.ZodObject<{
|
|
|
2601
2622
|
settled: "settled";
|
|
2602
2623
|
complete: "complete";
|
|
2603
2624
|
}>;
|
|
2625
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2604
2626
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
2605
2627
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2606
2628
|
}, z.core.$strip>;
|
|
@@ -2619,6 +2641,7 @@ declare const zOneBtcVaultDto: z.ZodObject<{
|
|
|
2619
2641
|
settled: "settled";
|
|
2620
2642
|
complete: "complete";
|
|
2621
2643
|
}>;
|
|
2644
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2622
2645
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
2623
2646
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2624
2647
|
}, z.core.$strip>]>>;
|
|
@@ -2704,6 +2727,7 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
2704
2727
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2705
2728
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2706
2729
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2730
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
2707
2731
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2708
2732
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2709
2733
|
}, z.core.$strip>;
|
|
@@ -2766,6 +2790,7 @@ declare const zSatrushConfigDto: z.ZodObject<{
|
|
|
2766
2790
|
*/
|
|
2767
2791
|
declare const zSatsVaultDto: z.ZodObject<{
|
|
2768
2792
|
address: z.ZodString;
|
|
2793
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2769
2794
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
2770
2795
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
2771
2796
|
}, z.core.$strip>;
|
|
@@ -2871,9 +2896,9 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
2871
2896
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2872
2897
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2873
2898
|
}, z.core.$strip>]>>;
|
|
2874
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2899
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2875
2900
|
iterationId: z.ZodInt;
|
|
2876
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2901
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2877
2902
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2878
2903
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2879
2904
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2893,6 +2918,7 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
2893
2918
|
settled: "settled";
|
|
2894
2919
|
complete: "complete";
|
|
2895
2920
|
}>;
|
|
2921
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2896
2922
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
2897
2923
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2898
2924
|
}, z.core.$strip>]>>;
|
|
@@ -2935,11 +2961,12 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
2935
2961
|
sat: z.ZodNumber;
|
|
2936
2962
|
}, z.core.$strip>;
|
|
2937
2963
|
roundDuration: z.ZodInt;
|
|
2938
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2964
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2939
2965
|
roundId: z.ZodInt;
|
|
2940
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2966
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2941
2967
|
satsVault: z.ZodObject<{
|
|
2942
2968
|
address: z.ZodString;
|
|
2969
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2943
2970
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
2944
2971
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
2945
2972
|
}, z.core.$strip>;
|
|
@@ -3006,9 +3033,9 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
3006
3033
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3007
3034
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3008
3035
|
}, z.core.$strip>]>>;
|
|
3009
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3036
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3010
3037
|
iterationId: z.ZodInt;
|
|
3011
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3038
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3012
3039
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
3013
3040
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3014
3041
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3028,6 +3055,7 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
3028
3055
|
settled: "settled";
|
|
3029
3056
|
complete: "complete";
|
|
3030
3057
|
}>;
|
|
3058
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3031
3059
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3032
3060
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
3033
3061
|
}, z.core.$strip>]>>;
|
|
@@ -3070,11 +3098,12 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
3070
3098
|
sat: z.ZodNumber;
|
|
3071
3099
|
}, z.core.$strip>;
|
|
3072
3100
|
roundDuration: z.ZodInt;
|
|
3073
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3101
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3074
3102
|
roundId: z.ZodInt;
|
|
3075
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3103
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3076
3104
|
satsVault: z.ZodObject<{
|
|
3077
3105
|
address: z.ZodString;
|
|
3106
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3078
3107
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3079
3108
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
3080
3109
|
}, z.core.$strip>;
|
|
@@ -3132,6 +3161,7 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
3132
3161
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
3133
3162
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3134
3163
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3164
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
3135
3165
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3136
3166
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3137
3167
|
}, z.core.$strip>;
|
|
@@ -3203,9 +3233,9 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
3203
3233
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3204
3234
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3205
3235
|
}, z.core.$strip>]>>;
|
|
3206
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3236
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3207
3237
|
iterationId: z.ZodInt;
|
|
3208
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3238
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3209
3239
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
3210
3240
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3211
3241
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3225,6 +3255,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
3225
3255
|
settled: "settled";
|
|
3226
3256
|
complete: "complete";
|
|
3227
3257
|
}>;
|
|
3258
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3228
3259
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3229
3260
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
3230
3261
|
}, z.core.$strip>]>>;
|
|
@@ -3267,11 +3298,12 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
3267
3298
|
sat: z.ZodNumber;
|
|
3268
3299
|
}, z.core.$strip>;
|
|
3269
3300
|
roundDuration: z.ZodInt;
|
|
3270
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3301
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3271
3302
|
roundId: z.ZodInt;
|
|
3272
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3303
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3273
3304
|
satsVault: z.ZodObject<{
|
|
3274
3305
|
address: z.ZodString;
|
|
3306
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3275
3307
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3276
3308
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
3277
3309
|
}, z.core.$strip>;
|
|
@@ -3329,6 +3361,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
3329
3361
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
3330
3362
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3331
3363
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3364
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
3332
3365
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3333
3366
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3334
3367
|
}, z.core.$strip>;
|
|
@@ -3406,9 +3439,9 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
3406
3439
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3407
3440
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3408
3441
|
}, z.core.$strip>]>>;
|
|
3409
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3442
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3410
3443
|
iterationId: z.ZodInt;
|
|
3411
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3444
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3412
3445
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
3413
3446
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3414
3447
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3428,6 +3461,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
3428
3461
|
settled: "settled";
|
|
3429
3462
|
complete: "complete";
|
|
3430
3463
|
}>;
|
|
3464
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3431
3465
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3432
3466
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
3433
3467
|
}, z.core.$strip>]>>;
|
|
@@ -3470,11 +3504,12 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
3470
3504
|
sat: z.ZodNumber;
|
|
3471
3505
|
}, z.core.$strip>;
|
|
3472
3506
|
roundDuration: z.ZodInt;
|
|
3473
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3507
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3474
3508
|
roundId: z.ZodInt;
|
|
3475
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3509
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3476
3510
|
satsVault: z.ZodObject<{
|
|
3477
3511
|
address: z.ZodString;
|
|
3512
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3478
3513
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3479
3514
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
3480
3515
|
}, z.core.$strip>;
|
|
@@ -3532,6 +3567,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
3532
3567
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
3533
3568
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3534
3569
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3570
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
3535
3571
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
3536
3572
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3537
3573
|
}, z.core.$strip>;
|
|
@@ -3853,9 +3889,9 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
3853
3889
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3854
3890
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3855
3891
|
}, z.core.$strip>]>>;
|
|
3856
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3892
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3857
3893
|
iterationId: z.ZodInt;
|
|
3858
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3894
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3859
3895
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
3860
3896
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3861
3897
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3875,6 +3911,7 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
3875
3911
|
settled: "settled";
|
|
3876
3912
|
complete: "complete";
|
|
3877
3913
|
}>;
|
|
3914
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
3878
3915
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3879
3916
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
3880
3917
|
}, z.core.$strip>]>>;
|
|
@@ -3917,11 +3954,12 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
3917
3954
|
sat: z.ZodNumber;
|
|
3918
3955
|
}, z.core.$strip>;
|
|
3919
3956
|
roundDuration: z.ZodInt;
|
|
3920
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3957
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3921
3958
|
roundId: z.ZodInt;
|
|
3922
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3959
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3923
3960
|
satsVault: z.ZodObject<{
|
|
3924
3961
|
address: z.ZodString;
|
|
3962
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3925
3963
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3926
3964
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
3927
3965
|
}, z.core.$strip>;
|
|
@@ -4177,9 +4215,9 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
4177
4215
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4178
4216
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4179
4217
|
}, z.core.$strip>]>>;
|
|
4180
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4218
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4181
4219
|
iterationId: z.ZodInt;
|
|
4182
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4220
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4183
4221
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
4184
4222
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4185
4223
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -4199,6 +4237,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
4199
4237
|
settled: "settled";
|
|
4200
4238
|
complete: "complete";
|
|
4201
4239
|
}>;
|
|
4240
|
+
totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4202
4241
|
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
4203
4242
|
winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4204
4243
|
}, z.core.$strip>]>>;
|
|
@@ -4241,11 +4280,12 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
4241
4280
|
sat: z.ZodNumber;
|
|
4242
4281
|
}, z.core.$strip>;
|
|
4243
4282
|
roundDuration: z.ZodInt;
|
|
4244
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4283
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4245
4284
|
roundId: z.ZodInt;
|
|
4246
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4285
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4247
4286
|
satsVault: z.ZodObject<{
|
|
4248
4287
|
address: z.ZodString;
|
|
4288
|
+
apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4249
4289
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
4250
4290
|
btcShares: z.ZodCoercedBigInt<unknown>;
|
|
4251
4291
|
}, z.core.$strip>;
|
|
@@ -4303,6 +4343,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
4303
4343
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
4304
4344
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
4305
4345
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4346
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
4306
4347
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
4307
4348
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4308
4349
|
}, z.core.$strip>;
|
|
@@ -4375,6 +4416,7 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
4375
4416
|
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
4376
4417
|
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
4377
4418
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4419
|
+
unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
|
|
4378
4420
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
4379
4421
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4380
4422
|
}, z.core.$strip>;
|
|
@@ -4435,6 +4477,7 @@ declare const zGetUserDeploymentsData: z.ZodObject<{
|
|
|
4435
4477
|
declare const zGetUserDeploymentsResponse: z.ZodObject<{
|
|
4436
4478
|
data: z.ZodArray<z.ZodObject<{
|
|
4437
4479
|
authority: z.ZodString;
|
|
4480
|
+
btcEarned: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4438
4481
|
deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
4439
4482
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4440
4483
|
deployment: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -987,8 +987,12 @@ var epochVaultDtoSchemaResponseTransformer = (data) => {
|
|
|
987
987
|
if (data.currentIteration) {
|
|
988
988
|
data.currentIteration = epochVaultIterationDtoSchemaResponseTransformer(data.currentIteration);
|
|
989
989
|
}
|
|
990
|
-
|
|
991
|
-
|
|
990
|
+
if (data.iterationEndsAt) {
|
|
991
|
+
data.iterationEndsAt = new Date(data.iterationEndsAt);
|
|
992
|
+
}
|
|
993
|
+
if (data.iterationStartedAt) {
|
|
994
|
+
data.iterationStartedAt = new Date(data.iterationStartedAt);
|
|
995
|
+
}
|
|
992
996
|
data.lastTriggerSlot = u64DtoSchemaResponseTransformer(data.lastTriggerSlot);
|
|
993
997
|
data.pendingUsdAmount = u64DtoSchemaResponseTransformer(data.pendingUsdAmount);
|
|
994
998
|
data.poolBtcAmount = u64DtoSchemaResponseTransformer(data.poolBtcAmount);
|
|
@@ -1040,8 +1044,12 @@ var boardDtoSchemaResponseTransformer = (data) => {
|
|
|
1040
1044
|
if (data.previousRound) {
|
|
1041
1045
|
data.previousRound = roundDtoSchemaResponseTransformer(data.previousRound);
|
|
1042
1046
|
}
|
|
1043
|
-
|
|
1044
|
-
|
|
1047
|
+
if (data.roundEndsAt) {
|
|
1048
|
+
data.roundEndsAt = new Date(data.roundEndsAt);
|
|
1049
|
+
}
|
|
1050
|
+
if (data.roundStartedAt) {
|
|
1051
|
+
data.roundStartedAt = new Date(data.roundStartedAt);
|
|
1052
|
+
}
|
|
1045
1053
|
data.satsVault = satsVaultDtoSchemaResponseTransformer(data.satsVault);
|
|
1046
1054
|
data.startSlot = u64DtoSchemaResponseTransformer(data.startSlot);
|
|
1047
1055
|
data.strike = strikeJackpotDtoSchemaResponseTransformer(data.strike);
|
|
@@ -1164,6 +1172,10 @@ var epochVaultEntryDtoSchemaResponseTransformer = (data) => {
|
|
|
1164
1172
|
data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
|
|
1165
1173
|
return data;
|
|
1166
1174
|
};
|
|
1175
|
+
var i64DtoSchemaResponseTransformer = (data) => {
|
|
1176
|
+
data = BigInt(data.toString());
|
|
1177
|
+
return data;
|
|
1178
|
+
};
|
|
1167
1179
|
var minerDtoSchemaResponseTransformer = (data) => {
|
|
1168
1180
|
data.hashrateAmount = u64DtoSchemaResponseTransformer(data.hashrateAmount);
|
|
1169
1181
|
data.totalBtcReceived = u64DtoSchemaResponseTransformer(data.totalBtcReceived);
|
|
@@ -1176,6 +1188,7 @@ var minerDtoSchemaResponseTransformer = (data) => {
|
|
|
1176
1188
|
data.unclaimedHashrateAmount = u64DtoSchemaResponseTransformer(data.unclaimedHashrateAmount);
|
|
1177
1189
|
data.unclaimedSatsShares = u64DtoSchemaResponseTransformer(data.unclaimedSatsShares);
|
|
1178
1190
|
data.unclaimedUsdAmount = u64DtoSchemaResponseTransformer(data.unclaimedUsdAmount);
|
|
1191
|
+
data.unrealizedBtcPnl = i64DtoSchemaResponseTransformer(data.unrealizedBtcPnl);
|
|
1179
1192
|
data.unsettledSatsShares = u64DtoSchemaResponseTransformer(data.unsettledSatsShares);
|
|
1180
1193
|
data.unsettledUsdAmount = u64DtoSchemaResponseTransformer(data.unsettledUsdAmount);
|
|
1181
1194
|
return data;
|
|
@@ -1243,6 +1256,9 @@ var getUserClaimsResponseTransformer = async (data) => {
|
|
|
1243
1256
|
return data;
|
|
1244
1257
|
};
|
|
1245
1258
|
var minerDeploymentDtoSchemaResponseTransformer = (data) => {
|
|
1259
|
+
if (data.btcEarned) {
|
|
1260
|
+
data.btcEarned = u64DtoSchemaResponseTransformer(data.btcEarned);
|
|
1261
|
+
}
|
|
1246
1262
|
data.deployedAt = new Date(data.deployedAt);
|
|
1247
1263
|
data.deployedUsdAmount = u64DtoSchemaResponseTransformer(data.deployedUsdAmount);
|
|
1248
1264
|
data.hashrateEarned = u64DtoSchemaResponseTransformer(data.hashrateEarned);
|
|
@@ -1513,9 +1529,15 @@ var zEpochVaultDto = z.object({
|
|
|
1513
1529
|
z.null(),
|
|
1514
1530
|
zEpochVaultIterationDto
|
|
1515
1531
|
])),
|
|
1516
|
-
iterationEndsAt: z.
|
|
1532
|
+
iterationEndsAt: z.optional(z.union([
|
|
1533
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1534
|
+
z.null()
|
|
1535
|
+
])),
|
|
1517
1536
|
iterationId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1518
|
-
iterationStartedAt: z.
|
|
1537
|
+
iterationStartedAt: z.optional(z.union([
|
|
1538
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1539
|
+
z.null()
|
|
1540
|
+
])),
|
|
1519
1541
|
lastTriggerSlot: zU64Dto,
|
|
1520
1542
|
pendingUsdAmount: zU64Dto,
|
|
1521
1543
|
poolBtcAmount: zU64Dto,
|
|
@@ -1574,6 +1596,10 @@ var zMinerClaimDto = z.object({
|
|
|
1574
1596
|
});
|
|
1575
1597
|
var zMinerDeploymentDto = z.object({
|
|
1576
1598
|
authority: zPubkeyDto,
|
|
1599
|
+
btcEarned: z.optional(z.union([
|
|
1600
|
+
z.null(),
|
|
1601
|
+
zU64Dto
|
|
1602
|
+
])),
|
|
1577
1603
|
deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1578
1604
|
deployedUsdAmount: zU64Dto,
|
|
1579
1605
|
deployment: zPubkeyDto,
|
|
@@ -1617,6 +1643,7 @@ var zMinerDto = z.object({
|
|
|
1617
1643
|
unclaimedHashrateAmount: zU64Dto,
|
|
1618
1644
|
unclaimedSatsShares: zU64Dto,
|
|
1619
1645
|
unclaimedUsdAmount: zU64Dto,
|
|
1646
|
+
unrealizedBtcPnl: zI64Dto,
|
|
1620
1647
|
unsettledSatsShares: zU64Dto,
|
|
1621
1648
|
unsettledUsdAmount: zU64Dto
|
|
1622
1649
|
});
|
|
@@ -1704,6 +1731,10 @@ var zOneBtcVaultIterationDto = z.object({
|
|
|
1704
1731
|
id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1705
1732
|
prizeBtc: zU64Dto,
|
|
1706
1733
|
state: zOneBtcStateDto,
|
|
1734
|
+
totalParticipants: z.optional(z.union([
|
|
1735
|
+
z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1736
|
+
z.null()
|
|
1737
|
+
])),
|
|
1707
1738
|
totalTickets: zU64Dto,
|
|
1708
1739
|
winningTicket: z.optional(z.union([
|
|
1709
1740
|
z.null(),
|
|
@@ -1810,6 +1841,10 @@ var zSatrushConfigDto = z.object({
|
|
|
1810
1841
|
});
|
|
1811
1842
|
var zSatsVaultDto = z.object({
|
|
1812
1843
|
address: zPubkeyDto,
|
|
1844
|
+
apr: z.optional(z.union([
|
|
1845
|
+
z.number(),
|
|
1846
|
+
z.null()
|
|
1847
|
+
])),
|
|
1813
1848
|
btcAmount: zU64Dto,
|
|
1814
1849
|
btcShares: zU64Dto
|
|
1815
1850
|
});
|
|
@@ -1864,9 +1899,15 @@ var zBoardDto = z.object({
|
|
|
1864
1899
|
previousRounds: z.array(zPreviousRoundDto),
|
|
1865
1900
|
prices: zPricesDto,
|
|
1866
1901
|
roundDuration: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1867
|
-
roundEndsAt: z.
|
|
1902
|
+
roundEndsAt: z.optional(z.union([
|
|
1903
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1904
|
+
z.null()
|
|
1905
|
+
])),
|
|
1868
1906
|
roundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1869
|
-
roundStartedAt: z.
|
|
1907
|
+
roundStartedAt: z.optional(z.union([
|
|
1908
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1909
|
+
z.null()
|
|
1910
|
+
])),
|
|
1870
1911
|
satsVault: zSatsVaultDto,
|
|
1871
1912
|
startSlot: zU64Dto,
|
|
1872
1913
|
strike: zStrikeJackpotDto
|