@satrush/api 0.1.10 → 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);
@@ -1447,6 +1465,9 @@ var minerEpochEntryDtoSchemaResponseTransformer = (data) => {
1447
1465
  if (data.claimedAt) {
1448
1466
  data.claimedAt = new Date(data.claimedAt);
1449
1467
  }
1468
+ if (data.closedAt) {
1469
+ data.closedAt = new Date(data.closedAt);
1470
+ }
1450
1471
  data.createdAt = new Date(data.createdAt);
1451
1472
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1452
1473
  if (data.wonBtcAmount) {
@@ -1475,6 +1496,9 @@ var minerOneBtcEntryDtoSchemaResponseTransformer = (data) => {
1475
1496
  if (data.claimedAt) {
1476
1497
  data.claimedAt = new Date(data.claimedAt);
1477
1498
  }
1499
+ if (data.closedAt) {
1500
+ data.closedAt = new Date(data.closedAt);
1501
+ }
1478
1502
  data.createdAt = new Date(data.createdAt);
1479
1503
  data.startTicketId = u64DtoSchemaResponseTransformer(data.startTicketId);
1480
1504
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
@@ -1823,6 +1847,10 @@ var zMinerEpochEntryDto = z.object({
1823
1847
  z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1824
1848
  z.null()
1825
1849
  ])),
1850
+ closedAt: z.optional(z.union([
1851
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1852
+ z.null()
1853
+ ])),
1826
1854
  createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1827
1855
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1828
1856
  isWon: z.optional(z.union([
@@ -1860,6 +1888,10 @@ var zMinerOneBtcEntryDto = z.object({
1860
1888
  z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1861
1889
  z.null()
1862
1890
  ])),
1891
+ closedAt: z.optional(z.union([
1892
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1893
+ z.null()
1894
+ ])),
1863
1895
  createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1864
1896
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1865
1897
  isWon: z.optional(z.union([
@@ -1976,6 +2008,30 @@ var zRoundHistoryDto = z.object({
1976
2008
  z.null(),
1977
2009
  zU64Dto
1978
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
+ ])),
1979
2035
  totalDeployedUsd: zU64Dto,
1980
2036
  totalPotBtc: z.optional(z.union([
1981
2037
  z.null(),
@@ -2038,6 +2094,7 @@ var zRoundDto = z.object({
2038
2094
  deployedUsdAmount: zU64Dto,
2039
2095
  deployedUsdOnWinningTileAmount: zU64Dto,
2040
2096
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2097
+ isHashrateBoosted: z.boolean(),
2041
2098
  minersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2042
2099
  revealedMinersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2043
2100
  settledMinersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
package/dist/index.d.cts CHANGED
@@ -840,6 +840,11 @@ type MinerEpochEntryDto = {
840
840
  * When the win was claimed; `null` until claimed.
841
841
  */
842
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;
843
848
  createdAt: Date;
844
849
  /**
845
850
  * Entry id; the pagination cursor.
@@ -902,6 +907,11 @@ type MinerOneBtcEntryDto = {
902
907
  * When the prize was claimed; `null` until claimed.
903
908
  */
904
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;
905
915
  createdAt: Date;
906
916
  /**
907
917
  * Entry id; the pagination cursor.
@@ -1170,6 +1180,11 @@ type RoundDto = {
1170
1180
  deployedUsdAmount: U64Dto;
1171
1181
  deployedUsdOnWinningTileAmount: U64Dto;
1172
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;
1173
1188
  minersCount: number;
1174
1189
  revealedMinersCount: number;
1175
1190
  settledMinersCount: number;
@@ -1204,6 +1219,12 @@ type RoundHistoryDto = {
1204
1219
  state: RoundHistoryStateDto;
1205
1220
  strikeBonusBtc?: null | U64Dto;
1206
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;
1207
1228
  totalDeployedUsd: U64Dto;
1208
1229
  totalPotBtc?: null | U64Dto;
1209
1230
  totalPotUsd?: null | U64Dto;
@@ -1320,9 +1341,9 @@ type SatrushConfigDto = {
1320
1341
  type SatsVaultDto = {
1321
1342
  address: PubkeyDto;
1322
1343
  /**
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.
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.
1326
1347
  */
1327
1348
  apr?: number | null;
1328
1349
  /**
@@ -2545,6 +2566,7 @@ declare const zMinerEpochEntryDto: z.ZodObject<{
2545
2566
  address: z.ZodString;
2546
2567
  authority: z.ZodString;
2547
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]>>;
2548
2570
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
2549
2571
  id: z.ZodInt;
2550
2572
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -2580,6 +2602,7 @@ declare const zMinerOneBtcEntryDto: z.ZodObject<{
2580
2602
  address: z.ZodString;
2581
2603
  authority: z.ZodString;
2582
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]>>;
2583
2606
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
2584
2607
  id: z.ZodInt;
2585
2608
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -2762,6 +2785,12 @@ declare const zRoundHistoryDto: z.ZodObject<{
2762
2785
  }>;
2763
2786
  strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2764
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>]>>;
2765
2794
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
2766
2795
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2767
2796
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -2821,6 +2850,7 @@ declare const zRoundDto: z.ZodObject<{
2821
2850
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2822
2851
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2823
2852
  id: z.ZodInt;
2853
+ isHashrateBoosted: z.ZodBoolean;
2824
2854
  minersCount: z.ZodInt;
2825
2855
  revealedMinersCount: z.ZodInt;
2826
2856
  settledMinersCount: z.ZodInt;
@@ -2851,6 +2881,7 @@ declare const zBoardDto: z.ZodObject<{
2851
2881
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2852
2882
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2853
2883
  id: z.ZodInt;
2884
+ isHashrateBoosted: z.ZodBoolean;
2854
2885
  minersCount: z.ZodInt;
2855
2886
  revealedMinersCount: z.ZodInt;
2856
2887
  settledMinersCount: z.ZodInt;
@@ -2934,6 +2965,7 @@ declare const zBoardDto: z.ZodObject<{
2934
2965
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2935
2966
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2936
2967
  id: z.ZodInt;
2968
+ isHashrateBoosted: z.ZodBoolean;
2937
2969
  minersCount: z.ZodInt;
2938
2970
  revealedMinersCount: z.ZodInt;
2939
2971
  settledMinersCount: z.ZodInt;
@@ -2988,6 +3020,7 @@ declare const zSnapshotDto: z.ZodObject<{
2988
3020
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2989
3021
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2990
3022
  id: z.ZodInt;
3023
+ isHashrateBoosted: z.ZodBoolean;
2991
3024
  minersCount: z.ZodInt;
2992
3025
  revealedMinersCount: z.ZodInt;
2993
3026
  settledMinersCount: z.ZodInt;
@@ -3071,6 +3104,7 @@ declare const zSnapshotDto: z.ZodObject<{
3071
3104
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3072
3105
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3073
3106
  id: z.ZodInt;
3107
+ isHashrateBoosted: z.ZodBoolean;
3074
3108
  minersCount: z.ZodInt;
3075
3109
  revealedMinersCount: z.ZodInt;
3076
3110
  settledMinersCount: z.ZodInt;
@@ -3188,6 +3222,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3188
3222
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3189
3223
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3190
3224
  id: z.ZodInt;
3225
+ isHashrateBoosted: z.ZodBoolean;
3191
3226
  minersCount: z.ZodInt;
3192
3227
  revealedMinersCount: z.ZodInt;
3193
3228
  settledMinersCount: z.ZodInt;
@@ -3271,6 +3306,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3271
3306
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3272
3307
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3273
3308
  id: z.ZodInt;
3309
+ isHashrateBoosted: z.ZodBoolean;
3274
3310
  minersCount: z.ZodInt;
3275
3311
  revealedMinersCount: z.ZodInt;
3276
3312
  settledMinersCount: z.ZodInt;
@@ -3394,6 +3430,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3394
3430
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3395
3431
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3396
3432
  id: z.ZodInt;
3433
+ isHashrateBoosted: z.ZodBoolean;
3397
3434
  minersCount: z.ZodInt;
3398
3435
  revealedMinersCount: z.ZodInt;
3399
3436
  settledMinersCount: z.ZodInt;
@@ -3477,6 +3514,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3477
3514
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3478
3515
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3479
3516
  id: z.ZodInt;
3517
+ isHashrateBoosted: z.ZodBoolean;
3480
3518
  minersCount: z.ZodInt;
3481
3519
  revealedMinersCount: z.ZodInt;
3482
3520
  settledMinersCount: z.ZodInt;
@@ -3844,6 +3882,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3844
3882
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3845
3883
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3846
3884
  id: z.ZodInt;
3885
+ isHashrateBoosted: z.ZodBoolean;
3847
3886
  minersCount: z.ZodInt;
3848
3887
  revealedMinersCount: z.ZodInt;
3849
3888
  settledMinersCount: z.ZodInt;
@@ -3927,6 +3966,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3927
3966
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3928
3967
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3929
3968
  id: z.ZodInt;
3969
+ isHashrateBoosted: z.ZodBoolean;
3930
3970
  minersCount: z.ZodInt;
3931
3971
  revealedMinersCount: z.ZodInt;
3932
3972
  settledMinersCount: z.ZodInt;
@@ -4141,6 +4181,12 @@ declare const zGetRoundsResponse: z.ZodObject<{
4141
4181
  }>;
4142
4182
  strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4143
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>]>>;
4144
4190
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
4145
4191
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4146
4192
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -4170,6 +4216,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4170
4216
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4171
4217
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
4172
4218
  id: z.ZodInt;
4219
+ isHashrateBoosted: z.ZodBoolean;
4173
4220
  minersCount: z.ZodInt;
4174
4221
  revealedMinersCount: z.ZodInt;
4175
4222
  settledMinersCount: z.ZodInt;
@@ -4253,6 +4300,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4253
4300
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4254
4301
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
4255
4302
  id: z.ZodInt;
4303
+ isHashrateBoosted: z.ZodBoolean;
4256
4304
  minersCount: z.ZodInt;
4257
4305
  revealedMinersCount: z.ZodInt;
4258
4306
  settledMinersCount: z.ZodInt;
@@ -4511,6 +4559,7 @@ declare const zGetUserEpochEntriesResponse: z.ZodObject<{
4511
4559
  address: z.ZodString;
4512
4560
  authority: z.ZodString;
4513
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]>>;
4514
4563
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
4515
4564
  id: z.ZodInt;
4516
4565
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -4565,6 +4614,7 @@ declare const zGetUserOneBtcEntriesResponse: z.ZodObject<{
4565
4614
  address: z.ZodString;
4566
4615
  authority: z.ZodString;
4567
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]>>;
4568
4618
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
4569
4619
  id: z.ZodInt;
4570
4620
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
package/dist/index.d.ts CHANGED
@@ -840,6 +840,11 @@ type MinerEpochEntryDto = {
840
840
  * When the win was claimed; `null` until claimed.
841
841
  */
842
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;
843
848
  createdAt: Date;
844
849
  /**
845
850
  * Entry id; the pagination cursor.
@@ -902,6 +907,11 @@ type MinerOneBtcEntryDto = {
902
907
  * When the prize was claimed; `null` until claimed.
903
908
  */
904
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;
905
915
  createdAt: Date;
906
916
  /**
907
917
  * Entry id; the pagination cursor.
@@ -1170,6 +1180,11 @@ type RoundDto = {
1170
1180
  deployedUsdAmount: U64Dto;
1171
1181
  deployedUsdOnWinningTileAmount: U64Dto;
1172
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;
1173
1188
  minersCount: number;
1174
1189
  revealedMinersCount: number;
1175
1190
  settledMinersCount: number;
@@ -1204,6 +1219,12 @@ type RoundHistoryDto = {
1204
1219
  state: RoundHistoryStateDto;
1205
1220
  strikeBonusBtc?: null | U64Dto;
1206
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;
1207
1228
  totalDeployedUsd: U64Dto;
1208
1229
  totalPotBtc?: null | U64Dto;
1209
1230
  totalPotUsd?: null | U64Dto;
@@ -1320,9 +1341,9 @@ type SatrushConfigDto = {
1320
1341
  type SatsVaultDto = {
1321
1342
  address: PubkeyDto;
1322
1343
  /**
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.
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.
1326
1347
  */
1327
1348
  apr?: number | null;
1328
1349
  /**
@@ -2545,6 +2566,7 @@ declare const zMinerEpochEntryDto: z.ZodObject<{
2545
2566
  address: z.ZodString;
2546
2567
  authority: z.ZodString;
2547
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]>>;
2548
2570
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
2549
2571
  id: z.ZodInt;
2550
2572
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -2580,6 +2602,7 @@ declare const zMinerOneBtcEntryDto: z.ZodObject<{
2580
2602
  address: z.ZodString;
2581
2603
  authority: z.ZodString;
2582
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]>>;
2583
2606
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
2584
2607
  id: z.ZodInt;
2585
2608
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -2762,6 +2785,12 @@ declare const zRoundHistoryDto: z.ZodObject<{
2762
2785
  }>;
2763
2786
  strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2764
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>]>>;
2765
2794
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
2766
2795
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
2767
2796
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -2821,6 +2850,7 @@ declare const zRoundDto: z.ZodObject<{
2821
2850
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2822
2851
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2823
2852
  id: z.ZodInt;
2853
+ isHashrateBoosted: z.ZodBoolean;
2824
2854
  minersCount: z.ZodInt;
2825
2855
  revealedMinersCount: z.ZodInt;
2826
2856
  settledMinersCount: z.ZodInt;
@@ -2851,6 +2881,7 @@ declare const zBoardDto: z.ZodObject<{
2851
2881
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2852
2882
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2853
2883
  id: z.ZodInt;
2884
+ isHashrateBoosted: z.ZodBoolean;
2854
2885
  minersCount: z.ZodInt;
2855
2886
  revealedMinersCount: z.ZodInt;
2856
2887
  settledMinersCount: z.ZodInt;
@@ -2934,6 +2965,7 @@ declare const zBoardDto: z.ZodObject<{
2934
2965
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2935
2966
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2936
2967
  id: z.ZodInt;
2968
+ isHashrateBoosted: z.ZodBoolean;
2937
2969
  minersCount: z.ZodInt;
2938
2970
  revealedMinersCount: z.ZodInt;
2939
2971
  settledMinersCount: z.ZodInt;
@@ -2988,6 +3020,7 @@ declare const zSnapshotDto: z.ZodObject<{
2988
3020
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
2989
3021
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
2990
3022
  id: z.ZodInt;
3023
+ isHashrateBoosted: z.ZodBoolean;
2991
3024
  minersCount: z.ZodInt;
2992
3025
  revealedMinersCount: z.ZodInt;
2993
3026
  settledMinersCount: z.ZodInt;
@@ -3071,6 +3104,7 @@ declare const zSnapshotDto: z.ZodObject<{
3071
3104
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3072
3105
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3073
3106
  id: z.ZodInt;
3107
+ isHashrateBoosted: z.ZodBoolean;
3074
3108
  minersCount: z.ZodInt;
3075
3109
  revealedMinersCount: z.ZodInt;
3076
3110
  settledMinersCount: z.ZodInt;
@@ -3188,6 +3222,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3188
3222
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3189
3223
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3190
3224
  id: z.ZodInt;
3225
+ isHashrateBoosted: z.ZodBoolean;
3191
3226
  minersCount: z.ZodInt;
3192
3227
  revealedMinersCount: z.ZodInt;
3193
3228
  settledMinersCount: z.ZodInt;
@@ -3271,6 +3306,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
3271
3306
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3272
3307
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3273
3308
  id: z.ZodInt;
3309
+ isHashrateBoosted: z.ZodBoolean;
3274
3310
  minersCount: z.ZodInt;
3275
3311
  revealedMinersCount: z.ZodInt;
3276
3312
  settledMinersCount: z.ZodInt;
@@ -3394,6 +3430,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3394
3430
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3395
3431
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3396
3432
  id: z.ZodInt;
3433
+ isHashrateBoosted: z.ZodBoolean;
3397
3434
  minersCount: z.ZodInt;
3398
3435
  revealedMinersCount: z.ZodInt;
3399
3436
  settledMinersCount: z.ZodInt;
@@ -3477,6 +3514,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
3477
3514
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3478
3515
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3479
3516
  id: z.ZodInt;
3517
+ isHashrateBoosted: z.ZodBoolean;
3480
3518
  minersCount: z.ZodInt;
3481
3519
  revealedMinersCount: z.ZodInt;
3482
3520
  settledMinersCount: z.ZodInt;
@@ -3844,6 +3882,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3844
3882
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3845
3883
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3846
3884
  id: z.ZodInt;
3885
+ isHashrateBoosted: z.ZodBoolean;
3847
3886
  minersCount: z.ZodInt;
3848
3887
  revealedMinersCount: z.ZodInt;
3849
3888
  settledMinersCount: z.ZodInt;
@@ -3927,6 +3966,7 @@ declare const zGetBoardResponse: z.ZodObject<{
3927
3966
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
3928
3967
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
3929
3968
  id: z.ZodInt;
3969
+ isHashrateBoosted: z.ZodBoolean;
3930
3970
  minersCount: z.ZodInt;
3931
3971
  revealedMinersCount: z.ZodInt;
3932
3972
  settledMinersCount: z.ZodInt;
@@ -4141,6 +4181,12 @@ declare const zGetRoundsResponse: z.ZodObject<{
4141
4181
  }>;
4142
4182
  strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4143
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>]>>;
4144
4190
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
4145
4191
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4146
4192
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -4170,6 +4216,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4170
4216
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4171
4217
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
4172
4218
  id: z.ZodInt;
4219
+ isHashrateBoosted: z.ZodBoolean;
4173
4220
  minersCount: z.ZodInt;
4174
4221
  revealedMinersCount: z.ZodInt;
4175
4222
  settledMinersCount: z.ZodInt;
@@ -4253,6 +4300,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
4253
4300
  deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
4254
4301
  deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
4255
4302
  id: z.ZodInt;
4303
+ isHashrateBoosted: z.ZodBoolean;
4256
4304
  minersCount: z.ZodInt;
4257
4305
  revealedMinersCount: z.ZodInt;
4258
4306
  settledMinersCount: z.ZodInt;
@@ -4511,6 +4559,7 @@ declare const zGetUserEpochEntriesResponse: z.ZodObject<{
4511
4559
  address: z.ZodString;
4512
4560
  authority: z.ZodString;
4513
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]>>;
4514
4563
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
4515
4564
  id: z.ZodInt;
4516
4565
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
@@ -4565,6 +4614,7 @@ declare const zGetUserOneBtcEntriesResponse: z.ZodObject<{
4565
4614
  address: z.ZodString;
4566
4615
  authority: z.ZodString;
4567
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]>>;
4568
4618
  createdAt: z.ZodPreprocess<z.ZodISODateTime>;
4569
4619
  id: z.ZodInt;
4570
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);
@@ -1278,6 +1296,9 @@ var minerEpochEntryDtoSchemaResponseTransformer = (data) => {
1278
1296
  if (data.claimedAt) {
1279
1297
  data.claimedAt = new Date(data.claimedAt);
1280
1298
  }
1299
+ if (data.closedAt) {
1300
+ data.closedAt = new Date(data.closedAt);
1301
+ }
1281
1302
  data.createdAt = new Date(data.createdAt);
1282
1303
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1283
1304
  if (data.wonBtcAmount) {
@@ -1306,6 +1327,9 @@ var minerOneBtcEntryDtoSchemaResponseTransformer = (data) => {
1306
1327
  if (data.claimedAt) {
1307
1328
  data.claimedAt = new Date(data.claimedAt);
1308
1329
  }
1330
+ if (data.closedAt) {
1331
+ data.closedAt = new Date(data.closedAt);
1332
+ }
1309
1333
  data.createdAt = new Date(data.createdAt);
1310
1334
  data.startTicketId = u64DtoSchemaResponseTransformer(data.startTicketId);
1311
1335
  data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
@@ -1654,6 +1678,10 @@ var zMinerEpochEntryDto = z.object({
1654
1678
  z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1655
1679
  z.null()
1656
1680
  ])),
1681
+ closedAt: z.optional(z.union([
1682
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1683
+ z.null()
1684
+ ])),
1657
1685
  createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1658
1686
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1659
1687
  isWon: z.optional(z.union([
@@ -1691,6 +1719,10 @@ var zMinerOneBtcEntryDto = z.object({
1691
1719
  z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1692
1720
  z.null()
1693
1721
  ])),
1722
+ closedAt: z.optional(z.union([
1723
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1724
+ z.null()
1725
+ ])),
1694
1726
  createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1695
1727
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1696
1728
  isWon: z.optional(z.union([
@@ -1807,6 +1839,30 @@ var zRoundHistoryDto = z.object({
1807
1839
  z.null(),
1808
1840
  zU64Dto
1809
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
+ ])),
1810
1866
  totalDeployedUsd: zU64Dto,
1811
1867
  totalPotBtc: z.optional(z.union([
1812
1868
  z.null(),
@@ -1869,6 +1925,7 @@ var zRoundDto = z.object({
1869
1925
  deployedUsdAmount: zU64Dto,
1870
1926
  deployedUsdOnWinningTileAmount: zU64Dto,
1871
1927
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1928
+ isHashrateBoosted: z.boolean(),
1872
1929
  minersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1873
1930
  revealedMinersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1874
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.10",
3
+ "version": "0.1.11",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",