@satrush/api 0.1.16 → 0.1.18

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
@@ -1499,6 +1499,7 @@ var roundHistoryDtoSchemaResponseTransformer = (data) => {
1499
1499
  data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1500
1500
  }
1501
1501
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1502
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1502
1503
  if (data.totalPotBtc) {
1503
1504
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
1504
1505
  }
@@ -1530,6 +1531,12 @@ var roundDeploymentDtoSchemaResponseTransformer = (data) => {
1530
1531
  return data;
1531
1532
  };
1532
1533
  var roundDetailsDtoSchemaResponseTransformer = (data) => {
1534
+ if (data.affiliateFeeUsd) {
1535
+ data.affiliateFeeUsd = u64DtoSchemaResponseTransformer(data.affiliateFeeUsd);
1536
+ }
1537
+ if (data.buybacksFeeUsd) {
1538
+ data.buybacksFeeUsd = u64DtoSchemaResponseTransformer(data.buybacksFeeUsd);
1539
+ }
1533
1540
  data.deployedAt = new Date(data.deployedAt);
1534
1541
  data.deployments = data.deployments.map((item) => roundDeploymentDtoSchemaResponseTransformer(item));
1535
1542
  if (data.epochFeeUsd) {
@@ -1575,6 +1582,7 @@ var roundDetailsDtoSchemaResponseTransformer = (data) => {
1575
1582
  data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1576
1583
  }
1577
1584
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1585
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1578
1586
  if (data.totalPotBtc) {
1579
1587
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
1580
1588
  }
@@ -1605,6 +1613,12 @@ var i64DtoSchemaResponseTransformer = (data) => {
1605
1613
  return data;
1606
1614
  };
1607
1615
  var minerDtoSchemaResponseTransformer = (data) => {
1616
+ data.affiliatePointsEarned = u64DtoSchemaResponseTransformer(data.affiliatePointsEarned);
1617
+ data.affiliatePointsSpent = u64DtoSchemaResponseTransformer(data.affiliatePointsSpent);
1618
+ if (data.grubstakeExpiresAt) {
1619
+ data.grubstakeExpiresAt = new Date(data.grubstakeExpiresAt);
1620
+ }
1621
+ data.grubstakeUsdAmount = u64DtoSchemaResponseTransformer(data.grubstakeUsdAmount);
1608
1622
  data.hashrateAmount = u64DtoSchemaResponseTransformer(data.hashrateAmount);
1609
1623
  data.totalBtcReceived = u64DtoSchemaResponseTransformer(data.totalBtcReceived);
1610
1624
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
@@ -1812,6 +1826,7 @@ var zEpochIterationParticipantsApiError500Error = z.object({
1812
1826
  });
1813
1827
  var zEpochStateDto = z.enum([
1814
1828
  "open",
1829
+ "sealed",
1815
1830
  "settling",
1816
1831
  "settled",
1817
1832
  "complete"
@@ -1914,6 +1929,7 @@ var zOneBtcIterationParticipantsApiError500Error = z.object({
1914
1929
  });
1915
1930
  var zOneBtcStateDto = z.enum([
1916
1931
  "open",
1932
+ "sealed",
1917
1933
  "settled",
1918
1934
  "complete"
1919
1935
  ]);
@@ -2081,6 +2097,7 @@ var zEpochVaultEntryDto = z.object({
2081
2097
  var zEpochWinnerDto = z.object({
2082
2098
  authority: zPubkeyDto,
2083
2099
  claimed: z.boolean(),
2100
+ distributed: z.boolean(),
2084
2101
  tickets: zU64Dto
2085
2102
  });
2086
2103
  var zEpochVaultIterationDto = z.object({
@@ -2106,6 +2123,10 @@ var zEpochVaultIterationDto = z.object({
2106
2123
  z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2107
2124
  z.null()
2108
2125
  ])),
2126
+ winnersDistributed: z.optional(z.union([
2127
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2128
+ z.null()
2129
+ ])),
2109
2130
  winnersSelected: z.optional(z.union([
2110
2131
  z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2111
2132
  z.null()
@@ -2217,6 +2238,10 @@ var zMinerDeploymentDto = z.object({
2217
2238
  deployment: zPubkeyDto,
2218
2239
  hashrateEarned: zU64Dto,
2219
2240
  isAutomation: z.boolean(),
2241
+ isGrubstakeFunded: z.optional(z.union([
2242
+ z.boolean(),
2243
+ z.null()
2244
+ ])),
2220
2245
  isReload: z.optional(z.union([
2221
2246
  z.boolean(),
2222
2247
  z.null()
@@ -2239,11 +2264,30 @@ var zMinerDeploymentDto = z.object({
2239
2264
  usdEarned: zU64Dto
2240
2265
  });
2241
2266
  var zMinerDto = z.object({
2267
+ affiliate: z.optional(z.union([
2268
+ z.null(),
2269
+ zPubkeyDto
2270
+ ])),
2271
+ affiliatePointsEarned: zU64Dto,
2272
+ affiliatePointsSpent: zU64Dto,
2273
+ affiliateRateBps: z.optional(z.union([
2274
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2275
+ z.null()
2276
+ ])),
2242
2277
  authority: zPubkeyDto,
2243
2278
  currentStreakCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2279
+ grubstakeExpiresAt: z.optional(z.union([
2280
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2281
+ z.null()
2282
+ ])),
2283
+ grubstakeUsdAmount: zU64Dto,
2244
2284
  hashrateAmount: zU64Dto,
2245
2285
  lastMinedRoundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2246
2286
  maxStreak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2287
+ tag: z.optional(z.union([
2288
+ z.string(),
2289
+ z.null()
2290
+ ])),
2247
2291
  totalBtcReceived: zU64Dto,
2248
2292
  totalHashrateEarned: zU64Dto,
2249
2293
  totalRounds: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -2436,6 +2480,7 @@ var zOneBtcVaultDto = z.object({
2436
2480
  var zPublicAutomationDto = z.object({
2437
2481
  address: zPubkeyDto,
2438
2482
  executedDeployments: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2483
+ isGrubstakeFunded: z.boolean(),
2439
2484
  perRoundUsdAmount: zU64Dto,
2440
2485
  reload: z.boolean(),
2441
2486
  remainingDeployments: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -2478,6 +2523,10 @@ var zRoundDeploymentDto = z.object({
2478
2523
  deployment: zPubkeyDto,
2479
2524
  hashrateEarned: zU64Dto,
2480
2525
  isAutomation: z.boolean(),
2526
+ isGrubstakeFunded: z.optional(z.union([
2527
+ z.boolean(),
2528
+ z.null()
2529
+ ])),
2481
2530
  isWon: z.optional(z.union([
2482
2531
  z.boolean(),
2483
2532
  z.null()
@@ -2500,6 +2549,14 @@ var zRoundDeploymentDto = z.object({
2500
2549
  });
2501
2550
  var zRoundDetailsDto = z.object({
2502
2551
  address: zPubkeyDto,
2552
+ affiliateFeeUsd: z.optional(z.union([
2553
+ z.null(),
2554
+ zU64Dto
2555
+ ])),
2556
+ buybacksFeeUsd: z.optional(z.union([
2557
+ z.null(),
2558
+ zU64Dto
2559
+ ])),
2503
2560
  deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2504
2561
  deployments: z.array(zRoundDeploymentDto),
2505
2562
  epochFeeUsd: z.optional(z.union([
@@ -2575,6 +2632,7 @@ var zRoundDetailsDto = z.object({
2575
2632
  zU64Dto
2576
2633
  ])),
2577
2634
  totalDeployedUsd: zU64Dto,
2635
+ totalGrossDeployedUsd: zU64Dto,
2578
2636
  totalPotBtc: z.optional(z.union([
2579
2637
  z.null(),
2580
2638
  zU64Dto
@@ -2653,6 +2711,7 @@ var zRoundHistoryDto = z.object({
2653
2711
  zU64Dto
2654
2712
  ])),
2655
2713
  totalDeployedUsd: zU64Dto,
2714
+ totalGrossDeployedUsd: zU64Dto,
2656
2715
  totalPotBtc: z.optional(z.union([
2657
2716
  z.null(),
2658
2717
  zU64Dto
@@ -3632,6 +3691,7 @@ var AutomationStrategyDto = {
3632
3691
  var ClaimTypeDto = { USD: "usd", SATS: "sats" };
3633
3692
  var EpochStateDto = {
3634
3693
  OPEN: "open",
3694
+ SEALED: "sealed",
3635
3695
  SETTLING: "settling",
3636
3696
  SETTLED: "settled",
3637
3697
  COMPLETE: "complete"
@@ -3648,6 +3708,7 @@ var LeaderboardSortDto = {
3648
3708
  var NotificationEntity = { STATE_SNAPSHOT: "state_snapshot" };
3649
3709
  var OneBtcStateDto = {
3650
3710
  OPEN: "open",
3711
+ SEALED: "sealed",
3651
3712
  SETTLED: "settled",
3652
3713
  COMPLETE: "complete"
3653
3714
  };