@satrush/api 0.1.9 → 0.1.11

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 CHANGED
@@ -1315,6 +1315,24 @@ var roundHistoryDtoSchemaResponseTransformer = (data) => {
1315
1315
  if (data.strikeBonusUsd) {
1316
1316
  data.strikeBonusUsd = u64DtoSchemaResponseTransformer(data.strikeBonusUsd);
1317
1317
  }
1318
+ if (data.strikeEpochBtc) {
1319
+ data.strikeEpochBtc = u64DtoSchemaResponseTransformer(data.strikeEpochBtc);
1320
+ }
1321
+ if (data.strikeEpochUsd) {
1322
+ data.strikeEpochUsd = u64DtoSchemaResponseTransformer(data.strikeEpochUsd);
1323
+ }
1324
+ if (data.strikeReserveBtc) {
1325
+ data.strikeReserveBtc = u64DtoSchemaResponseTransformer(data.strikeReserveBtc);
1326
+ }
1327
+ if (data.strikeReserveUsd) {
1328
+ data.strikeReserveUsd = u64DtoSchemaResponseTransformer(data.strikeReserveUsd);
1329
+ }
1330
+ if (data.strikeSeedFromReserveBtc) {
1331
+ data.strikeSeedFromReserveBtc = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveBtc);
1332
+ }
1333
+ if (data.strikeSeedFromReserveUsd) {
1334
+ data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1335
+ }
1318
1336
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1319
1337
  if (data.totalPotBtc) {
1320
1338
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
@@ -1341,6 +1359,10 @@ var epochVaultEntryDtoSchemaResponseTransformer = (data) => {
1341
1359
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1342
1360
  return data;
1343
1361
  };
1362
+ var i64DtoSchemaResponseTransformer = (data) => {
1363
+ data = BigInt(data.toString());
1364
+ return data;
1365
+ };
1344
1366
  var minerDtoSchemaResponseTransformer = (data) => {
1345
1367
  data.hashrateAmount = u64DtoSchemaResponseTransformer(data.hashrateAmount);
1346
1368
  data.totalBtcReceived = u64DtoSchemaResponseTransformer(data.totalBtcReceived);
@@ -1353,6 +1375,7 @@ var minerDtoSchemaResponseTransformer = (data) => {
1353
1375
  data.unclaimedHashrateAmount = u64DtoSchemaResponseTransformer(data.unclaimedHashrateAmount);
1354
1376
  data.unclaimedSatsShares = u64DtoSchemaResponseTransformer(data.unclaimedSatsShares);
1355
1377
  data.unclaimedUsdAmount = u64DtoSchemaResponseTransformer(data.unclaimedUsdAmount);
1378
+ data.unrealizedBtcPnl = i64DtoSchemaResponseTransformer(data.unrealizedBtcPnl);
1356
1379
  data.unsettledSatsShares = u64DtoSchemaResponseTransformer(data.unsettledSatsShares);
1357
1380
  data.unsettledUsdAmount = u64DtoSchemaResponseTransformer(data.unsettledUsdAmount);
1358
1381
  return data;
@@ -1420,6 +1443,9 @@ var getUserClaimsResponseTransformer = async (data) => {
1420
1443
  return data;
1421
1444
  };
1422
1445
  var minerDeploymentDtoSchemaResponseTransformer = (data) => {
1446
+ if (data.btcEarned) {
1447
+ data.btcEarned = u64DtoSchemaResponseTransformer(data.btcEarned);
1448
+ }
1423
1449
  data.deployedAt = new Date(data.deployedAt);
1424
1450
  data.deployedUsdAmount = u64DtoSchemaResponseTransformer(data.deployedUsdAmount);
1425
1451
  data.hashrateEarned = u64DtoSchemaResponseTransformer(data.hashrateEarned);
@@ -1439,6 +1465,9 @@ var minerEpochEntryDtoSchemaResponseTransformer = (data) => {
1439
1465
  if (data.claimedAt) {
1440
1466
  data.claimedAt = new Date(data.claimedAt);
1441
1467
  }
1468
+ if (data.closedAt) {
1469
+ data.closedAt = new Date(data.closedAt);
1470
+ }
1442
1471
  data.createdAt = new Date(data.createdAt);
1443
1472
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1444
1473
  if (data.wonBtcAmount) {
@@ -1467,6 +1496,9 @@ var minerOneBtcEntryDtoSchemaResponseTransformer = (data) => {
1467
1496
  if (data.claimedAt) {
1468
1497
  data.claimedAt = new Date(data.claimedAt);
1469
1498
  }
1499
+ if (data.closedAt) {
1500
+ data.closedAt = new Date(data.closedAt);
1501
+ }
1470
1502
  data.createdAt = new Date(data.createdAt);
1471
1503
  data.startTicketId = u64DtoSchemaResponseTransformer(data.startTicketId);
1472
1504
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
@@ -1757,6 +1789,10 @@ var zMinerClaimDto = z.object({
1757
1789
  });
1758
1790
  var zMinerDeploymentDto = z.object({
1759
1791
  authority: zPubkeyDto,
1792
+ btcEarned: z.optional(z.union([
1793
+ z.null(),
1794
+ zU64Dto
1795
+ ])),
1760
1796
  deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1761
1797
  deployedUsdAmount: zU64Dto,
1762
1798
  deployment: zPubkeyDto,
@@ -1800,6 +1836,7 @@ var zMinerDto = z.object({
1800
1836
  unclaimedHashrateAmount: zU64Dto,
1801
1837
  unclaimedSatsShares: zU64Dto,
1802
1838
  unclaimedUsdAmount: zU64Dto,
1839
+ unrealizedBtcPnl: zI64Dto,
1803
1840
  unsettledSatsShares: zU64Dto,
1804
1841
  unsettledUsdAmount: zU64Dto
1805
1842
  });
@@ -1810,6 +1847,10 @@ var zMinerEpochEntryDto = z.object({
1810
1847
  z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1811
1848
  z.null()
1812
1849
  ])),
1850
+ closedAt: z.optional(z.union([
1851
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1852
+ z.null()
1853
+ ])),
1813
1854
  createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1814
1855
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1815
1856
  isWon: z.optional(z.union([
@@ -1847,6 +1888,10 @@ var zMinerOneBtcEntryDto = z.object({
1847
1888
  z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1848
1889
  z.null()
1849
1890
  ])),
1891
+ closedAt: z.optional(z.union([
1892
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1893
+ z.null()
1894
+ ])),
1850
1895
  createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1851
1896
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1852
1897
  isWon: z.optional(z.union([
@@ -1887,6 +1932,10 @@ var zOneBtcVaultIterationDto = z.object({
1887
1932
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1888
1933
  prizeBtc: zU64Dto,
1889
1934
  state: zOneBtcStateDto,
1935
+ totalParticipants: z.optional(z.union([
1936
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1937
+ z.null()
1938
+ ])),
1890
1939
  totalTickets: zU64Dto,
1891
1940
  winningTicket: z.optional(z.union([
1892
1941
  z.null(),
@@ -1959,6 +2008,30 @@ var zRoundHistoryDto = z.object({
1959
2008
  z.null(),
1960
2009
  zU64Dto
1961
2010
  ])),
2011
+ strikeEpochBtc: z.optional(z.union([
2012
+ z.null(),
2013
+ zU64Dto
2014
+ ])),
2015
+ strikeEpochUsd: z.optional(z.union([
2016
+ z.null(),
2017
+ zU64Dto
2018
+ ])),
2019
+ strikeReserveBtc: z.optional(z.union([
2020
+ z.null(),
2021
+ zU64Dto
2022
+ ])),
2023
+ strikeReserveUsd: z.optional(z.union([
2024
+ z.null(),
2025
+ zU64Dto
2026
+ ])),
2027
+ strikeSeedFromReserveBtc: z.optional(z.union([
2028
+ z.null(),
2029
+ zU64Dto
2030
+ ])),
2031
+ strikeSeedFromReserveUsd: z.optional(z.union([
2032
+ z.null(),
2033
+ zU64Dto
2034
+ ])),
1962
2035
  totalDeployedUsd: zU64Dto,
1963
2036
  totalPotBtc: z.optional(z.union([
1964
2037
  z.null(),
@@ -1993,6 +2066,10 @@ var zSatrushConfigDto = z.object({
1993
2066
  });
1994
2067
  var zSatsVaultDto = z.object({
1995
2068
  address: zPubkeyDto,
2069
+ apr: z.optional(z.union([
2070
+ z.number(),
2071
+ z.null()
2072
+ ])),
1996
2073
  btcAmount: zU64Dto,
1997
2074
  btcShares: zU64Dto
1998
2075
  });
@@ -2017,6 +2094,7 @@ var zRoundDto = z.object({
2017
2094
  deployedUsdAmount: zU64Dto,
2018
2095
  deployedUsdOnWinningTileAmount: zU64Dto,
2019
2096
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2097
+ isHashrateBoosted: z.boolean(),
2020
2098
  minersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2021
2099
  revealedMinersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2022
2100
  settledMinersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
package/dist/index.d.cts CHANGED
@@ -691,6 +691,7 @@ type MinerClaimDto = {
691
691
  */
692
692
  type MinerDeploymentDto = {
693
693
  authority: PubkeyDto;
694
+ btcEarned?: null | U64Dto;
694
695
  deployedAt: Date;
695
696
  /**
696
697
  * Gross USD deployed onto the round.
@@ -807,6 +808,11 @@ type MinerDto = {
807
808
  * USD rewards not yet claimed.
808
809
  */
809
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;
810
816
  /**
811
817
  * Sats Vault shares pending deployment settlement, estimated at the
812
818
  * vault's current exchange rate.
@@ -834,6 +840,11 @@ type MinerEpochEntryDto = {
834
840
  * When the win was claimed; `null` until claimed.
835
841
  */
836
842
  claimedAt?: Date | null;
843
+ /**
844
+ * When the on-chain entry account was closed (rent reclaimed by the
845
+ * cleanup crank or the owner); `null` while the account is still live.
846
+ */
847
+ closedAt?: Date | null;
837
848
  createdAt: Date;
838
849
  /**
839
850
  * Entry id; the pagination cursor.
@@ -896,6 +907,11 @@ type MinerOneBtcEntryDto = {
896
907
  * When the prize was claimed; `null` until claimed.
897
908
  */
898
909
  claimedAt?: Date | null;
910
+ /**
911
+ * When the on-chain ticket account was closed (rent reclaimed by the
912
+ * cleanup crank or the owner); `null` while the account is still live.
913
+ */
914
+ closedAt?: Date | null;
899
915
  createdAt: Date;
900
916
  /**
901
917
  * Entry id; the pagination cursor.
@@ -1025,6 +1041,11 @@ type OneBtcVaultIterationDto = {
1025
1041
  */
1026
1042
  prizeBtc: U64Dto;
1027
1043
  state: OneBtcStateDto;
1044
+ /**
1045
+ * Unique wallets holding entries, from the rounds indexer. Null when the
1046
+ * iteration is not indexed or the database is unavailable.
1047
+ */
1048
+ totalParticipants?: number | null;
1028
1049
  /**
1029
1050
  * Running ticket counter; also the next purchase's start ticket id.
1030
1051
  */
@@ -1159,6 +1180,11 @@ type RoundDto = {
1159
1180
  deployedUsdAmount: U64Dto;
1160
1181
  deployedUsdOnWinningTileAmount: U64Dto;
1161
1182
  id: number;
1183
+ /**
1184
+ * Whether the round runs under the post-strike hashrate boost (stamped
1185
+ * at creation from the board's strike window).
1186
+ */
1187
+ isHashrateBoosted: boolean;
1162
1188
  minersCount: number;
1163
1189
  revealedMinersCount: number;
1164
1190
  settledMinersCount: number;
@@ -1193,6 +1219,12 @@ type RoundHistoryDto = {
1193
1219
  state: RoundHistoryStateDto;
1194
1220
  strikeBonusBtc?: null | U64Dto;
1195
1221
  strikeBonusUsd?: null | U64Dto;
1222
+ strikeEpochBtc?: null | U64Dto;
1223
+ strikeEpochUsd?: null | U64Dto;
1224
+ strikeReserveBtc?: null | U64Dto;
1225
+ strikeReserveUsd?: null | U64Dto;
1226
+ strikeSeedFromReserveBtc?: null | U64Dto;
1227
+ strikeSeedFromReserveUsd?: null | U64Dto;
1196
1228
  totalDeployedUsd: U64Dto;
1197
1229
  totalPotBtc?: null | U64Dto;
1198
1230
  totalPotUsd?: null | U64Dto;
@@ -1308,6 +1340,12 @@ type SatrushConfigDto = {
1308
1340
  */
1309
1341
  type SatsVaultDto = {
1310
1342
  address: PubkeyDto;
1343
+ /**
1344
+ * Rolling 7-day projected APR in percentage points (12.0 = 12%): the
1345
+ * average hourly share-price return over the trailing 7 days,
1346
+ * annualized. `null` until enough history is indexed.
1347
+ */
1348
+ apr?: number | null;
1311
1349
  /**
1312
1350
  * Total BTC backing outstanding shares.
1313
1351
  */
@@ -2480,6 +2518,7 @@ declare const zMinerClaimDto: z.ZodObject<{
2480
2518
  */
2481
2519
  declare const zMinerDeploymentDto: z.ZodObject<{
2482
2520
  authority: z.ZodString;
2521
+ btcEarned: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2483
2522
  deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
2484
2523
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2485
2524
  deployment: z.ZodString;
@@ -2514,6 +2553,7 @@ declare const zMinerDto: z.ZodObject<{
2514
2553
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
2515
2554
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
2516
2555
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
2556
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
2517
2557
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
2518
2558
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
2519
2559
  }, z.core.$strip>;
@@ -2526,6 +2566,7 @@ declare const zMinerEpochEntryDto: z.ZodObject<{
2526
2566
  address: z.ZodString;
2527
2567
  authority: z.ZodString;
2528
2568
  claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2569
+ closedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2529
2570
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
2530
2571
  id: z.ZodInt;
2531
2572
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -2561,6 +2602,7 @@ declare const zMinerOneBtcEntryDto: z.ZodObject<{
2561
2602
  address: z.ZodString;
2562
2603
  authority: z.ZodString;
2563
2604
  claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2605
+ closedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2564
2606
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
2565
2607
  id: z.ZodInt;
2566
2608
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -2603,6 +2645,7 @@ declare const zOneBtcVaultIterationDto: z.ZodObject<{
2603
2645
  settled: "settled";
2604
2646
  complete: "complete";
2605
2647
  }>;
2648
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
2606
2649
  totalTickets: z.ZodCoercedBigInt<unknown>;
2607
2650
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2608
2651
  }, z.core.$strip>;
@@ -2621,6 +2664,7 @@ declare const zOneBtcVaultDto: z.ZodObject<{
2621
2664
  settled: "settled";
2622
2665
  complete: "complete";
2623
2666
  }>;
2667
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
2624
2668
  totalTickets: z.ZodCoercedBigInt<unknown>;
2625
2669
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2626
2670
  }, z.core.$strip>]>>;
@@ -2706,6 +2750,7 @@ declare const zProfileDto: z.ZodObject<{
2706
2750
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
2707
2751
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
2708
2752
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
2753
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
2709
2754
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
2710
2755
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
2711
2756
  }, z.core.$strip>;
@@ -2740,6 +2785,12 @@ declare const zRoundHistoryDto: z.ZodObject<{
2740
2785
  }>;
2741
2786
  strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2742
2787
  strikeBonusUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2788
+ strikeEpochBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2789
+ strikeEpochUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2790
+ strikeReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2791
+ strikeReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2792
+ strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2793
+ strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2743
2794
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
2744
2795
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2745
2796
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -2768,6 +2819,7 @@ declare const zSatrushConfigDto: z.ZodObject<{
2768
2819
  */
2769
2820
  declare const zSatsVaultDto: z.ZodObject<{
2770
2821
  address: z.ZodString;
2822
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
2771
2823
  btcAmount: z.ZodCoercedBigInt<unknown>;
2772
2824
  btcShares: z.ZodCoercedBigInt<unknown>;
2773
2825
  }, z.core.$strip>;
@@ -2798,6 +2850,7 @@ declare const zRoundDto: z.ZodObject<{
2798
2850
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2799
2851
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2800
2852
  id: z.ZodInt;
2853
+ isHashrateBoosted: z.ZodBoolean;
2801
2854
  minersCount: z.ZodInt;
2802
2855
  revealedMinersCount: z.ZodInt;
2803
2856
  settledMinersCount: z.ZodInt;
@@ -2828,6 +2881,7 @@ declare const zBoardDto: z.ZodObject<{
2828
2881
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2829
2882
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2830
2883
  id: z.ZodInt;
2884
+ isHashrateBoosted: z.ZodBoolean;
2831
2885
  minersCount: z.ZodInt;
2832
2886
  revealedMinersCount: z.ZodInt;
2833
2887
  settledMinersCount: z.ZodInt;
@@ -2895,6 +2949,7 @@ declare const zBoardDto: z.ZodObject<{
2895
2949
  settled: "settled";
2896
2950
  complete: "complete";
2897
2951
  }>;
2952
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
2898
2953
  totalTickets: z.ZodCoercedBigInt<unknown>;
2899
2954
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2900
2955
  }, z.core.$strip>]>>;
@@ -2910,6 +2965,7 @@ declare const zBoardDto: z.ZodObject<{
2910
2965
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2911
2966
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2912
2967
  id: z.ZodInt;
2968
+ isHashrateBoosted: z.ZodBoolean;
2913
2969
  minersCount: z.ZodInt;
2914
2970
  revealedMinersCount: z.ZodInt;
2915
2971
  settledMinersCount: z.ZodInt;
@@ -2942,6 +2998,7 @@ declare const zBoardDto: z.ZodObject<{
2942
2998
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2943
2999
  satsVault: z.ZodObject<{
2944
3000
  address: z.ZodString;
3001
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
2945
3002
  btcAmount: z.ZodCoercedBigInt<unknown>;
2946
3003
  btcShares: z.ZodCoercedBigInt<unknown>;
2947
3004
  }, z.core.$strip>;
@@ -2963,6 +3020,7 @@ declare const zSnapshotDto: z.ZodObject<{
2963
3020
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2964
3021
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2965
3022
  id: z.ZodInt;
3023
+ isHashrateBoosted: z.ZodBoolean;
2966
3024
  minersCount: z.ZodInt;
2967
3025
  revealedMinersCount: z.ZodInt;
2968
3026
  settledMinersCount: z.ZodInt;
@@ -3030,6 +3088,7 @@ declare const zSnapshotDto: z.ZodObject<{
3030
3088
  settled: "settled";
3031
3089
  complete: "complete";
3032
3090
  }>;
3091
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3033
3092
  totalTickets: z.ZodCoercedBigInt<unknown>;
3034
3093
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3035
3094
  }, z.core.$strip>]>>;
@@ -3045,6 +3104,7 @@ declare const zSnapshotDto: z.ZodObject<{
3045
3104
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3046
3105
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3047
3106
  id: z.ZodInt;
3107
+ isHashrateBoosted: z.ZodBoolean;
3048
3108
  minersCount: z.ZodInt;
3049
3109
  revealedMinersCount: z.ZodInt;
3050
3110
  settledMinersCount: z.ZodInt;
@@ -3077,6 +3137,7 @@ declare const zSnapshotDto: z.ZodObject<{
3077
3137
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3078
3138
  satsVault: z.ZodObject<{
3079
3139
  address: z.ZodString;
3140
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
3080
3141
  btcAmount: z.ZodCoercedBigInt<unknown>;
3081
3142
  btcShares: z.ZodCoercedBigInt<unknown>;
3082
3143
  }, z.core.$strip>;
@@ -3134,6 +3195,7 @@ declare const zSnapshotDto: z.ZodObject<{
3134
3195
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
3135
3196
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
3136
3197
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
3198
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
3137
3199
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
3138
3200
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
3139
3201
  }, z.core.$strip>;
@@ -3160,6 +3222,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3160
3222
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3161
3223
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3162
3224
  id: z.ZodInt;
3225
+ isHashrateBoosted: z.ZodBoolean;
3163
3226
  minersCount: z.ZodInt;
3164
3227
  revealedMinersCount: z.ZodInt;
3165
3228
  settledMinersCount: z.ZodInt;
@@ -3227,6 +3290,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3227
3290
  settled: "settled";
3228
3291
  complete: "complete";
3229
3292
  }>;
3293
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3230
3294
  totalTickets: z.ZodCoercedBigInt<unknown>;
3231
3295
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3232
3296
  }, z.core.$strip>]>>;
@@ -3242,6 +3306,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3242
3306
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3243
3307
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3244
3308
  id: z.ZodInt;
3309
+ isHashrateBoosted: z.ZodBoolean;
3245
3310
  minersCount: z.ZodInt;
3246
3311
  revealedMinersCount: z.ZodInt;
3247
3312
  settledMinersCount: z.ZodInt;
@@ -3274,6 +3339,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3274
3339
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3275
3340
  satsVault: z.ZodObject<{
3276
3341
  address: z.ZodString;
3342
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
3277
3343
  btcAmount: z.ZodCoercedBigInt<unknown>;
3278
3344
  btcShares: z.ZodCoercedBigInt<unknown>;
3279
3345
  }, z.core.$strip>;
@@ -3331,6 +3397,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3331
3397
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
3332
3398
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
3333
3399
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
3400
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
3334
3401
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
3335
3402
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
3336
3403
  }, z.core.$strip>;
@@ -3363,6 +3430,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3363
3430
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3364
3431
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3365
3432
  id: z.ZodInt;
3433
+ isHashrateBoosted: z.ZodBoolean;
3366
3434
  minersCount: z.ZodInt;
3367
3435
  revealedMinersCount: z.ZodInt;
3368
3436
  settledMinersCount: z.ZodInt;
@@ -3430,6 +3498,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3430
3498
  settled: "settled";
3431
3499
  complete: "complete";
3432
3500
  }>;
3501
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3433
3502
  totalTickets: z.ZodCoercedBigInt<unknown>;
3434
3503
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3435
3504
  }, z.core.$strip>]>>;
@@ -3445,6 +3514,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3445
3514
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3446
3515
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3447
3516
  id: z.ZodInt;
3517
+ isHashrateBoosted: z.ZodBoolean;
3448
3518
  minersCount: z.ZodInt;
3449
3519
  revealedMinersCount: z.ZodInt;
3450
3520
  settledMinersCount: z.ZodInt;
@@ -3477,6 +3547,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3477
3547
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3478
3548
  satsVault: z.ZodObject<{
3479
3549
  address: z.ZodString;
3550
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
3480
3551
  btcAmount: z.ZodCoercedBigInt<unknown>;
3481
3552
  btcShares: z.ZodCoercedBigInt<unknown>;
3482
3553
  }, z.core.$strip>;
@@ -3534,6 +3605,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3534
3605
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
3535
3606
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
3536
3607
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
3608
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
3537
3609
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
3538
3610
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
3539
3611
  }, z.core.$strip>;
@@ -3810,6 +3882,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3810
3882
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3811
3883
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3812
3884
  id: z.ZodInt;
3885
+ isHashrateBoosted: z.ZodBoolean;
3813
3886
  minersCount: z.ZodInt;
3814
3887
  revealedMinersCount: z.ZodInt;
3815
3888
  settledMinersCount: z.ZodInt;
@@ -3877,6 +3950,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3877
3950
  settled: "settled";
3878
3951
  complete: "complete";
3879
3952
  }>;
3953
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3880
3954
  totalTickets: z.ZodCoercedBigInt<unknown>;
3881
3955
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3882
3956
  }, z.core.$strip>]>>;
@@ -3892,6 +3966,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3892
3966
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3893
3967
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3894
3968
  id: z.ZodInt;
3969
+ isHashrateBoosted: z.ZodBoolean;
3895
3970
  minersCount: z.ZodInt;
3896
3971
  revealedMinersCount: z.ZodInt;
3897
3972
  settledMinersCount: z.ZodInt;
@@ -3924,6 +3999,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3924
3999
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3925
4000
  satsVault: z.ZodObject<{
3926
4001
  address: z.ZodString;
4002
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
3927
4003
  btcAmount: z.ZodCoercedBigInt<unknown>;
3928
4004
  btcShares: z.ZodCoercedBigInt<unknown>;
3929
4005
  }, z.core.$strip>;
@@ -4105,6 +4181,12 @@ declare const zGetRoundsResponse: z.ZodObject<{
4105
4181
  }>;
4106
4182
  strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4107
4183
  strikeBonusUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4184
+ strikeEpochBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4185
+ strikeEpochUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4186
+ strikeReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4187
+ strikeReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4188
+ strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4189
+ strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4108
4190
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
4109
4191
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4110
4192
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -4134,6 +4216,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4134
4216
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4135
4217
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
4136
4218
  id: z.ZodInt;
4219
+ isHashrateBoosted: z.ZodBoolean;
4137
4220
  minersCount: z.ZodInt;
4138
4221
  revealedMinersCount: z.ZodInt;
4139
4222
  settledMinersCount: z.ZodInt;
@@ -4201,6 +4284,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4201
4284
  settled: "settled";
4202
4285
  complete: "complete";
4203
4286
  }>;
4287
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4204
4288
  totalTickets: z.ZodCoercedBigInt<unknown>;
4205
4289
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4206
4290
  }, z.core.$strip>]>>;
@@ -4216,6 +4300,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4216
4300
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4217
4301
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
4218
4302
  id: z.ZodInt;
4303
+ isHashrateBoosted: z.ZodBoolean;
4219
4304
  minersCount: z.ZodInt;
4220
4305
  revealedMinersCount: z.ZodInt;
4221
4306
  settledMinersCount: z.ZodInt;
@@ -4248,6 +4333,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4248
4333
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4249
4334
  satsVault: z.ZodObject<{
4250
4335
  address: z.ZodString;
4336
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4251
4337
  btcAmount: z.ZodCoercedBigInt<unknown>;
4252
4338
  btcShares: z.ZodCoercedBigInt<unknown>;
4253
4339
  }, z.core.$strip>;
@@ -4305,6 +4391,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4305
4391
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
4306
4392
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
4307
4393
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
4394
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
4308
4395
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
4309
4396
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
4310
4397
  }, z.core.$strip>;
@@ -4377,6 +4464,7 @@ declare const zGetUserProfileResponse: z.ZodObject<{
4377
4464
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
4378
4465
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
4379
4466
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
4467
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
4380
4468
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
4381
4469
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
4382
4470
  }, z.core.$strip>;
@@ -4437,6 +4525,7 @@ declare const zGetUserDeploymentsData: z.ZodObject<{
4437
4525
  declare const zGetUserDeploymentsResponse: z.ZodObject<{
4438
4526
  data: z.ZodArray<z.ZodObject<{
4439
4527
  authority: z.ZodString;
4528
+ btcEarned: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4440
4529
  deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
4441
4530
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4442
4531
  deployment: z.ZodString;
@@ -4470,6 +4559,7 @@ declare const zGetUserEpochEntriesResponse: z.ZodObject<{
4470
4559
  address: z.ZodString;
4471
4560
  authority: z.ZodString;
4472
4561
  claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4562
+ closedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4473
4563
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
4474
4564
  id: z.ZodInt;
4475
4565
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -4524,6 +4614,7 @@ declare const zGetUserOneBtcEntriesResponse: z.ZodObject<{
4524
4614
  address: z.ZodString;
4525
4615
  authority: z.ZodString;
4526
4616
  claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4617
+ closedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4527
4618
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
4528
4619
  id: z.ZodInt;
4529
4620
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
package/dist/index.d.ts CHANGED
@@ -691,6 +691,7 @@ type MinerClaimDto = {
691
691
  */
692
692
  type MinerDeploymentDto = {
693
693
  authority: PubkeyDto;
694
+ btcEarned?: null | U64Dto;
694
695
  deployedAt: Date;
695
696
  /**
696
697
  * Gross USD deployed onto the round.
@@ -807,6 +808,11 @@ type MinerDto = {
807
808
  * USD rewards not yet claimed.
808
809
  */
809
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;
810
816
  /**
811
817
  * Sats Vault shares pending deployment settlement, estimated at the
812
818
  * vault's current exchange rate.
@@ -834,6 +840,11 @@ type MinerEpochEntryDto = {
834
840
  * When the win was claimed; `null` until claimed.
835
841
  */
836
842
  claimedAt?: Date | null;
843
+ /**
844
+ * When the on-chain entry account was closed (rent reclaimed by the
845
+ * cleanup crank or the owner); `null` while the account is still live.
846
+ */
847
+ closedAt?: Date | null;
837
848
  createdAt: Date;
838
849
  /**
839
850
  * Entry id; the pagination cursor.
@@ -896,6 +907,11 @@ type MinerOneBtcEntryDto = {
896
907
  * When the prize was claimed; `null` until claimed.
897
908
  */
898
909
  claimedAt?: Date | null;
910
+ /**
911
+ * When the on-chain ticket account was closed (rent reclaimed by the
912
+ * cleanup crank or the owner); `null` while the account is still live.
913
+ */
914
+ closedAt?: Date | null;
899
915
  createdAt: Date;
900
916
  /**
901
917
  * Entry id; the pagination cursor.
@@ -1025,6 +1041,11 @@ type OneBtcVaultIterationDto = {
1025
1041
  */
1026
1042
  prizeBtc: U64Dto;
1027
1043
  state: OneBtcStateDto;
1044
+ /**
1045
+ * Unique wallets holding entries, from the rounds indexer. Null when the
1046
+ * iteration is not indexed or the database is unavailable.
1047
+ */
1048
+ totalParticipants?: number | null;
1028
1049
  /**
1029
1050
  * Running ticket counter; also the next purchase's start ticket id.
1030
1051
  */
@@ -1159,6 +1180,11 @@ type RoundDto = {
1159
1180
  deployedUsdAmount: U64Dto;
1160
1181
  deployedUsdOnWinningTileAmount: U64Dto;
1161
1182
  id: number;
1183
+ /**
1184
+ * Whether the round runs under the post-strike hashrate boost (stamped
1185
+ * at creation from the board's strike window).
1186
+ */
1187
+ isHashrateBoosted: boolean;
1162
1188
  minersCount: number;
1163
1189
  revealedMinersCount: number;
1164
1190
  settledMinersCount: number;
@@ -1193,6 +1219,12 @@ type RoundHistoryDto = {
1193
1219
  state: RoundHistoryStateDto;
1194
1220
  strikeBonusBtc?: null | U64Dto;
1195
1221
  strikeBonusUsd?: null | U64Dto;
1222
+ strikeEpochBtc?: null | U64Dto;
1223
+ strikeEpochUsd?: null | U64Dto;
1224
+ strikeReserveBtc?: null | U64Dto;
1225
+ strikeReserveUsd?: null | U64Dto;
1226
+ strikeSeedFromReserveBtc?: null | U64Dto;
1227
+ strikeSeedFromReserveUsd?: null | U64Dto;
1196
1228
  totalDeployedUsd: U64Dto;
1197
1229
  totalPotBtc?: null | U64Dto;
1198
1230
  totalPotUsd?: null | U64Dto;
@@ -1308,6 +1340,12 @@ type SatrushConfigDto = {
1308
1340
  */
1309
1341
  type SatsVaultDto = {
1310
1342
  address: PubkeyDto;
1343
+ /**
1344
+ * Rolling 7-day projected APR in percentage points (12.0 = 12%): the
1345
+ * average hourly share-price return over the trailing 7 days,
1346
+ * annualized. `null` until enough history is indexed.
1347
+ */
1348
+ apr?: number | null;
1311
1349
  /**
1312
1350
  * Total BTC backing outstanding shares.
1313
1351
  */
@@ -2480,6 +2518,7 @@ declare const zMinerClaimDto: z.ZodObject<{
2480
2518
  */
2481
2519
  declare const zMinerDeploymentDto: z.ZodObject<{
2482
2520
  authority: z.ZodString;
2521
+ btcEarned: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2483
2522
  deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
2484
2523
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2485
2524
  deployment: z.ZodString;
@@ -2514,6 +2553,7 @@ declare const zMinerDto: z.ZodObject<{
2514
2553
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
2515
2554
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
2516
2555
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
2556
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
2517
2557
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
2518
2558
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
2519
2559
  }, z.core.$strip>;
@@ -2526,6 +2566,7 @@ declare const zMinerEpochEntryDto: z.ZodObject<{
2526
2566
  address: z.ZodString;
2527
2567
  authority: z.ZodString;
2528
2568
  claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2569
+ closedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2529
2570
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
2530
2571
  id: z.ZodInt;
2531
2572
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -2561,6 +2602,7 @@ declare const zMinerOneBtcEntryDto: z.ZodObject<{
2561
2602
  address: z.ZodString;
2562
2603
  authority: z.ZodString;
2563
2604
  claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2605
+ closedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2564
2606
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
2565
2607
  id: z.ZodInt;
2566
2608
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -2603,6 +2645,7 @@ declare const zOneBtcVaultIterationDto: z.ZodObject<{
2603
2645
  settled: "settled";
2604
2646
  complete: "complete";
2605
2647
  }>;
2648
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
2606
2649
  totalTickets: z.ZodCoercedBigInt<unknown>;
2607
2650
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2608
2651
  }, z.core.$strip>;
@@ -2621,6 +2664,7 @@ declare const zOneBtcVaultDto: z.ZodObject<{
2621
2664
  settled: "settled";
2622
2665
  complete: "complete";
2623
2666
  }>;
2667
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
2624
2668
  totalTickets: z.ZodCoercedBigInt<unknown>;
2625
2669
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2626
2670
  }, z.core.$strip>]>>;
@@ -2706,6 +2750,7 @@ declare const zProfileDto: z.ZodObject<{
2706
2750
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
2707
2751
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
2708
2752
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
2753
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
2709
2754
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
2710
2755
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
2711
2756
  }, z.core.$strip>;
@@ -2740,6 +2785,12 @@ declare const zRoundHistoryDto: z.ZodObject<{
2740
2785
  }>;
2741
2786
  strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2742
2787
  strikeBonusUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2788
+ strikeEpochBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2789
+ strikeEpochUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2790
+ strikeReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2791
+ strikeReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2792
+ strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2793
+ strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2743
2794
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
2744
2795
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2745
2796
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -2768,6 +2819,7 @@ declare const zSatrushConfigDto: z.ZodObject<{
2768
2819
  */
2769
2820
  declare const zSatsVaultDto: z.ZodObject<{
2770
2821
  address: z.ZodString;
2822
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
2771
2823
  btcAmount: z.ZodCoercedBigInt<unknown>;
2772
2824
  btcShares: z.ZodCoercedBigInt<unknown>;
2773
2825
  }, z.core.$strip>;
@@ -2798,6 +2850,7 @@ declare const zRoundDto: z.ZodObject<{
2798
2850
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2799
2851
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2800
2852
  id: z.ZodInt;
2853
+ isHashrateBoosted: z.ZodBoolean;
2801
2854
  minersCount: z.ZodInt;
2802
2855
  revealedMinersCount: z.ZodInt;
2803
2856
  settledMinersCount: z.ZodInt;
@@ -2828,6 +2881,7 @@ declare const zBoardDto: z.ZodObject<{
2828
2881
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2829
2882
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2830
2883
  id: z.ZodInt;
2884
+ isHashrateBoosted: z.ZodBoolean;
2831
2885
  minersCount: z.ZodInt;
2832
2886
  revealedMinersCount: z.ZodInt;
2833
2887
  settledMinersCount: z.ZodInt;
@@ -2895,6 +2949,7 @@ declare const zBoardDto: z.ZodObject<{
2895
2949
  settled: "settled";
2896
2950
  complete: "complete";
2897
2951
  }>;
2952
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
2898
2953
  totalTickets: z.ZodCoercedBigInt<unknown>;
2899
2954
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2900
2955
  }, z.core.$strip>]>>;
@@ -2910,6 +2965,7 @@ declare const zBoardDto: z.ZodObject<{
2910
2965
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2911
2966
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2912
2967
  id: z.ZodInt;
2968
+ isHashrateBoosted: z.ZodBoolean;
2913
2969
  minersCount: z.ZodInt;
2914
2970
  revealedMinersCount: z.ZodInt;
2915
2971
  settledMinersCount: z.ZodInt;
@@ -2942,6 +2998,7 @@ declare const zBoardDto: z.ZodObject<{
2942
2998
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
2943
2999
  satsVault: z.ZodObject<{
2944
3000
  address: z.ZodString;
3001
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
2945
3002
  btcAmount: z.ZodCoercedBigInt<unknown>;
2946
3003
  btcShares: z.ZodCoercedBigInt<unknown>;
2947
3004
  }, z.core.$strip>;
@@ -2963,6 +3020,7 @@ declare const zSnapshotDto: z.ZodObject<{
2963
3020
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2964
3021
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2965
3022
  id: z.ZodInt;
3023
+ isHashrateBoosted: z.ZodBoolean;
2966
3024
  minersCount: z.ZodInt;
2967
3025
  revealedMinersCount: z.ZodInt;
2968
3026
  settledMinersCount: z.ZodInt;
@@ -3030,6 +3088,7 @@ declare const zSnapshotDto: z.ZodObject<{
3030
3088
  settled: "settled";
3031
3089
  complete: "complete";
3032
3090
  }>;
3091
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3033
3092
  totalTickets: z.ZodCoercedBigInt<unknown>;
3034
3093
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3035
3094
  }, z.core.$strip>]>>;
@@ -3045,6 +3104,7 @@ declare const zSnapshotDto: z.ZodObject<{
3045
3104
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3046
3105
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3047
3106
  id: z.ZodInt;
3107
+ isHashrateBoosted: z.ZodBoolean;
3048
3108
  minersCount: z.ZodInt;
3049
3109
  revealedMinersCount: z.ZodInt;
3050
3110
  settledMinersCount: z.ZodInt;
@@ -3077,6 +3137,7 @@ declare const zSnapshotDto: z.ZodObject<{
3077
3137
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3078
3138
  satsVault: z.ZodObject<{
3079
3139
  address: z.ZodString;
3140
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
3080
3141
  btcAmount: z.ZodCoercedBigInt<unknown>;
3081
3142
  btcShares: z.ZodCoercedBigInt<unknown>;
3082
3143
  }, z.core.$strip>;
@@ -3134,6 +3195,7 @@ declare const zSnapshotDto: z.ZodObject<{
3134
3195
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
3135
3196
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
3136
3197
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
3198
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
3137
3199
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
3138
3200
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
3139
3201
  }, z.core.$strip>;
@@ -3160,6 +3222,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3160
3222
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3161
3223
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3162
3224
  id: z.ZodInt;
3225
+ isHashrateBoosted: z.ZodBoolean;
3163
3226
  minersCount: z.ZodInt;
3164
3227
  revealedMinersCount: z.ZodInt;
3165
3228
  settledMinersCount: z.ZodInt;
@@ -3227,6 +3290,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3227
3290
  settled: "settled";
3228
3291
  complete: "complete";
3229
3292
  }>;
3293
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3230
3294
  totalTickets: z.ZodCoercedBigInt<unknown>;
3231
3295
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3232
3296
  }, z.core.$strip>]>>;
@@ -3242,6 +3306,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3242
3306
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3243
3307
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3244
3308
  id: z.ZodInt;
3309
+ isHashrateBoosted: z.ZodBoolean;
3245
3310
  minersCount: z.ZodInt;
3246
3311
  revealedMinersCount: z.ZodInt;
3247
3312
  settledMinersCount: z.ZodInt;
@@ -3274,6 +3339,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3274
3339
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3275
3340
  satsVault: z.ZodObject<{
3276
3341
  address: z.ZodString;
3342
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
3277
3343
  btcAmount: z.ZodCoercedBigInt<unknown>;
3278
3344
  btcShares: z.ZodCoercedBigInt<unknown>;
3279
3345
  }, z.core.$strip>;
@@ -3331,6 +3397,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3331
3397
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
3332
3398
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
3333
3399
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
3400
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
3334
3401
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
3335
3402
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
3336
3403
  }, z.core.$strip>;
@@ -3363,6 +3430,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3363
3430
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3364
3431
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3365
3432
  id: z.ZodInt;
3433
+ isHashrateBoosted: z.ZodBoolean;
3366
3434
  minersCount: z.ZodInt;
3367
3435
  revealedMinersCount: z.ZodInt;
3368
3436
  settledMinersCount: z.ZodInt;
@@ -3430,6 +3498,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3430
3498
  settled: "settled";
3431
3499
  complete: "complete";
3432
3500
  }>;
3501
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3433
3502
  totalTickets: z.ZodCoercedBigInt<unknown>;
3434
3503
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3435
3504
  }, z.core.$strip>]>>;
@@ -3445,6 +3514,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3445
3514
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3446
3515
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3447
3516
  id: z.ZodInt;
3517
+ isHashrateBoosted: z.ZodBoolean;
3448
3518
  minersCount: z.ZodInt;
3449
3519
  revealedMinersCount: z.ZodInt;
3450
3520
  settledMinersCount: z.ZodInt;
@@ -3477,6 +3547,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3477
3547
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3478
3548
  satsVault: z.ZodObject<{
3479
3549
  address: z.ZodString;
3550
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
3480
3551
  btcAmount: z.ZodCoercedBigInt<unknown>;
3481
3552
  btcShares: z.ZodCoercedBigInt<unknown>;
3482
3553
  }, z.core.$strip>;
@@ -3534,6 +3605,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3534
3605
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
3535
3606
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
3536
3607
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
3608
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
3537
3609
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
3538
3610
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
3539
3611
  }, z.core.$strip>;
@@ -3810,6 +3882,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3810
3882
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3811
3883
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3812
3884
  id: z.ZodInt;
3885
+ isHashrateBoosted: z.ZodBoolean;
3813
3886
  minersCount: z.ZodInt;
3814
3887
  revealedMinersCount: z.ZodInt;
3815
3888
  settledMinersCount: z.ZodInt;
@@ -3877,6 +3950,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3877
3950
  settled: "settled";
3878
3951
  complete: "complete";
3879
3952
  }>;
3953
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3880
3954
  totalTickets: z.ZodCoercedBigInt<unknown>;
3881
3955
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3882
3956
  }, z.core.$strip>]>>;
@@ -3892,6 +3966,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3892
3966
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3893
3967
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3894
3968
  id: z.ZodInt;
3969
+ isHashrateBoosted: z.ZodBoolean;
3895
3970
  minersCount: z.ZodInt;
3896
3971
  revealedMinersCount: z.ZodInt;
3897
3972
  settledMinersCount: z.ZodInt;
@@ -3924,6 +3999,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3924
3999
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3925
4000
  satsVault: z.ZodObject<{
3926
4001
  address: z.ZodString;
4002
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
3927
4003
  btcAmount: z.ZodCoercedBigInt<unknown>;
3928
4004
  btcShares: z.ZodCoercedBigInt<unknown>;
3929
4005
  }, z.core.$strip>;
@@ -4105,6 +4181,12 @@ declare const zGetRoundsResponse: z.ZodObject<{
4105
4181
  }>;
4106
4182
  strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4107
4183
  strikeBonusUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4184
+ strikeEpochBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4185
+ strikeEpochUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4186
+ strikeReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4187
+ strikeReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4188
+ strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4189
+ strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4108
4190
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
4109
4191
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4110
4192
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -4134,6 +4216,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4134
4216
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4135
4217
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
4136
4218
  id: z.ZodInt;
4219
+ isHashrateBoosted: z.ZodBoolean;
4137
4220
  minersCount: z.ZodInt;
4138
4221
  revealedMinersCount: z.ZodInt;
4139
4222
  settledMinersCount: z.ZodInt;
@@ -4201,6 +4284,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4201
4284
  settled: "settled";
4202
4285
  complete: "complete";
4203
4286
  }>;
4287
+ totalParticipants: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4204
4288
  totalTickets: z.ZodCoercedBigInt<unknown>;
4205
4289
  winningTicket: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4206
4290
  }, z.core.$strip>]>>;
@@ -4216,6 +4300,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4216
4300
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4217
4301
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
4218
4302
  id: z.ZodInt;
4303
+ isHashrateBoosted: z.ZodBoolean;
4219
4304
  minersCount: z.ZodInt;
4220
4305
  revealedMinersCount: z.ZodInt;
4221
4306
  settledMinersCount: z.ZodInt;
@@ -4248,6 +4333,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4248
4333
  roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4249
4334
  satsVault: z.ZodObject<{
4250
4335
  address: z.ZodString;
4336
+ apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4251
4337
  btcAmount: z.ZodCoercedBigInt<unknown>;
4252
4338
  btcShares: z.ZodCoercedBigInt<unknown>;
4253
4339
  }, z.core.$strip>;
@@ -4305,6 +4391,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4305
4391
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
4306
4392
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
4307
4393
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
4394
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
4308
4395
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
4309
4396
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
4310
4397
  }, z.core.$strip>;
@@ -4377,6 +4464,7 @@ declare const zGetUserProfileResponse: z.ZodObject<{
4377
4464
  unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
4378
4465
  unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
4379
4466
  unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
4467
+ unrealizedBtcPnl: z.ZodCoercedBigInt<unknown>;
4380
4468
  unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
4381
4469
  unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
4382
4470
  }, z.core.$strip>;
@@ -4437,6 +4525,7 @@ declare const zGetUserDeploymentsData: z.ZodObject<{
4437
4525
  declare const zGetUserDeploymentsResponse: z.ZodObject<{
4438
4526
  data: z.ZodArray<z.ZodObject<{
4439
4527
  authority: z.ZodString;
4528
+ btcEarned: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4440
4529
  deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
4441
4530
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4442
4531
  deployment: z.ZodString;
@@ -4470,6 +4559,7 @@ declare const zGetUserEpochEntriesResponse: z.ZodObject<{
4470
4559
  address: z.ZodString;
4471
4560
  authority: z.ZodString;
4472
4561
  claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4562
+ closedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4473
4563
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
4474
4564
  id: z.ZodInt;
4475
4565
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -4524,6 +4614,7 @@ declare const zGetUserOneBtcEntriesResponse: z.ZodObject<{
4524
4614
  address: z.ZodString;
4525
4615
  authority: z.ZodString;
4526
4616
  claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4617
+ closedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4527
4618
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
4528
4619
  id: z.ZodInt;
4529
4620
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
package/dist/index.js CHANGED
@@ -1146,6 +1146,24 @@ var roundHistoryDtoSchemaResponseTransformer = (data) => {
1146
1146
  if (data.strikeBonusUsd) {
1147
1147
  data.strikeBonusUsd = u64DtoSchemaResponseTransformer(data.strikeBonusUsd);
1148
1148
  }
1149
+ if (data.strikeEpochBtc) {
1150
+ data.strikeEpochBtc = u64DtoSchemaResponseTransformer(data.strikeEpochBtc);
1151
+ }
1152
+ if (data.strikeEpochUsd) {
1153
+ data.strikeEpochUsd = u64DtoSchemaResponseTransformer(data.strikeEpochUsd);
1154
+ }
1155
+ if (data.strikeReserveBtc) {
1156
+ data.strikeReserveBtc = u64DtoSchemaResponseTransformer(data.strikeReserveBtc);
1157
+ }
1158
+ if (data.strikeReserveUsd) {
1159
+ data.strikeReserveUsd = u64DtoSchemaResponseTransformer(data.strikeReserveUsd);
1160
+ }
1161
+ if (data.strikeSeedFromReserveBtc) {
1162
+ data.strikeSeedFromReserveBtc = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveBtc);
1163
+ }
1164
+ if (data.strikeSeedFromReserveUsd) {
1165
+ data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1166
+ }
1149
1167
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1150
1168
  if (data.totalPotBtc) {
1151
1169
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
@@ -1172,6 +1190,10 @@ var epochVaultEntryDtoSchemaResponseTransformer = (data) => {
1172
1190
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1173
1191
  return data;
1174
1192
  };
1193
+ var i64DtoSchemaResponseTransformer = (data) => {
1194
+ data = BigInt(data.toString());
1195
+ return data;
1196
+ };
1175
1197
  var minerDtoSchemaResponseTransformer = (data) => {
1176
1198
  data.hashrateAmount = u64DtoSchemaResponseTransformer(data.hashrateAmount);
1177
1199
  data.totalBtcReceived = u64DtoSchemaResponseTransformer(data.totalBtcReceived);
@@ -1184,6 +1206,7 @@ var minerDtoSchemaResponseTransformer = (data) => {
1184
1206
  data.unclaimedHashrateAmount = u64DtoSchemaResponseTransformer(data.unclaimedHashrateAmount);
1185
1207
  data.unclaimedSatsShares = u64DtoSchemaResponseTransformer(data.unclaimedSatsShares);
1186
1208
  data.unclaimedUsdAmount = u64DtoSchemaResponseTransformer(data.unclaimedUsdAmount);
1209
+ data.unrealizedBtcPnl = i64DtoSchemaResponseTransformer(data.unrealizedBtcPnl);
1187
1210
  data.unsettledSatsShares = u64DtoSchemaResponseTransformer(data.unsettledSatsShares);
1188
1211
  data.unsettledUsdAmount = u64DtoSchemaResponseTransformer(data.unsettledUsdAmount);
1189
1212
  return data;
@@ -1251,6 +1274,9 @@ var getUserClaimsResponseTransformer = async (data) => {
1251
1274
  return data;
1252
1275
  };
1253
1276
  var minerDeploymentDtoSchemaResponseTransformer = (data) => {
1277
+ if (data.btcEarned) {
1278
+ data.btcEarned = u64DtoSchemaResponseTransformer(data.btcEarned);
1279
+ }
1254
1280
  data.deployedAt = new Date(data.deployedAt);
1255
1281
  data.deployedUsdAmount = u64DtoSchemaResponseTransformer(data.deployedUsdAmount);
1256
1282
  data.hashrateEarned = u64DtoSchemaResponseTransformer(data.hashrateEarned);
@@ -1270,6 +1296,9 @@ var minerEpochEntryDtoSchemaResponseTransformer = (data) => {
1270
1296
  if (data.claimedAt) {
1271
1297
  data.claimedAt = new Date(data.claimedAt);
1272
1298
  }
1299
+ if (data.closedAt) {
1300
+ data.closedAt = new Date(data.closedAt);
1301
+ }
1273
1302
  data.createdAt = new Date(data.createdAt);
1274
1303
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1275
1304
  if (data.wonBtcAmount) {
@@ -1298,6 +1327,9 @@ var minerOneBtcEntryDtoSchemaResponseTransformer = (data) => {
1298
1327
  if (data.claimedAt) {
1299
1328
  data.claimedAt = new Date(data.claimedAt);
1300
1329
  }
1330
+ if (data.closedAt) {
1331
+ data.closedAt = new Date(data.closedAt);
1332
+ }
1301
1333
  data.createdAt = new Date(data.createdAt);
1302
1334
  data.startTicketId = u64DtoSchemaResponseTransformer(data.startTicketId);
1303
1335
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
@@ -1588,6 +1620,10 @@ var zMinerClaimDto = z.object({
1588
1620
  });
1589
1621
  var zMinerDeploymentDto = z.object({
1590
1622
  authority: zPubkeyDto,
1623
+ btcEarned: z.optional(z.union([
1624
+ z.null(),
1625
+ zU64Dto
1626
+ ])),
1591
1627
  deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1592
1628
  deployedUsdAmount: zU64Dto,
1593
1629
  deployment: zPubkeyDto,
@@ -1631,6 +1667,7 @@ var zMinerDto = z.object({
1631
1667
  unclaimedHashrateAmount: zU64Dto,
1632
1668
  unclaimedSatsShares: zU64Dto,
1633
1669
  unclaimedUsdAmount: zU64Dto,
1670
+ unrealizedBtcPnl: zI64Dto,
1634
1671
  unsettledSatsShares: zU64Dto,
1635
1672
  unsettledUsdAmount: zU64Dto
1636
1673
  });
@@ -1641,6 +1678,10 @@ var zMinerEpochEntryDto = z.object({
1641
1678
  z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1642
1679
  z.null()
1643
1680
  ])),
1681
+ closedAt: z.optional(z.union([
1682
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1683
+ z.null()
1684
+ ])),
1644
1685
  createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1645
1686
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1646
1687
  isWon: z.optional(z.union([
@@ -1678,6 +1719,10 @@ var zMinerOneBtcEntryDto = z.object({
1678
1719
  z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1679
1720
  z.null()
1680
1721
  ])),
1722
+ closedAt: z.optional(z.union([
1723
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1724
+ z.null()
1725
+ ])),
1681
1726
  createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1682
1727
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1683
1728
  isWon: z.optional(z.union([
@@ -1718,6 +1763,10 @@ var zOneBtcVaultIterationDto = z.object({
1718
1763
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1719
1764
  prizeBtc: zU64Dto,
1720
1765
  state: zOneBtcStateDto,
1766
+ totalParticipants: z.optional(z.union([
1767
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1768
+ z.null()
1769
+ ])),
1721
1770
  totalTickets: zU64Dto,
1722
1771
  winningTicket: z.optional(z.union([
1723
1772
  z.null(),
@@ -1790,6 +1839,30 @@ var zRoundHistoryDto = z.object({
1790
1839
  z.null(),
1791
1840
  zU64Dto
1792
1841
  ])),
1842
+ strikeEpochBtc: z.optional(z.union([
1843
+ z.null(),
1844
+ zU64Dto
1845
+ ])),
1846
+ strikeEpochUsd: z.optional(z.union([
1847
+ z.null(),
1848
+ zU64Dto
1849
+ ])),
1850
+ strikeReserveBtc: z.optional(z.union([
1851
+ z.null(),
1852
+ zU64Dto
1853
+ ])),
1854
+ strikeReserveUsd: z.optional(z.union([
1855
+ z.null(),
1856
+ zU64Dto
1857
+ ])),
1858
+ strikeSeedFromReserveBtc: z.optional(z.union([
1859
+ z.null(),
1860
+ zU64Dto
1861
+ ])),
1862
+ strikeSeedFromReserveUsd: z.optional(z.union([
1863
+ z.null(),
1864
+ zU64Dto
1865
+ ])),
1793
1866
  totalDeployedUsd: zU64Dto,
1794
1867
  totalPotBtc: z.optional(z.union([
1795
1868
  z.null(),
@@ -1824,6 +1897,10 @@ var zSatrushConfigDto = z.object({
1824
1897
  });
1825
1898
  var zSatsVaultDto = z.object({
1826
1899
  address: zPubkeyDto,
1900
+ apr: z.optional(z.union([
1901
+ z.number(),
1902
+ z.null()
1903
+ ])),
1827
1904
  btcAmount: zU64Dto,
1828
1905
  btcShares: zU64Dto
1829
1906
  });
@@ -1848,6 +1925,7 @@ var zRoundDto = z.object({
1848
1925
  deployedUsdAmount: zU64Dto,
1849
1926
  deployedUsdOnWinningTileAmount: zU64Dto,
1850
1927
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1928
+ isHashrateBoosted: z.boolean(),
1851
1929
  minersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1852
1930
  revealedMinersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1853
1931
  settledMinersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satrush/api",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",