@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.js CHANGED
@@ -1285,6 +1285,7 @@ var roundHistoryDtoSchemaResponseTransformer = (data) => {
1285
1285
  data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1286
1286
  }
1287
1287
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1288
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1288
1289
  if (data.totalPotBtc) {
1289
1290
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
1290
1291
  }
@@ -1316,6 +1317,12 @@ var roundDeploymentDtoSchemaResponseTransformer = (data) => {
1316
1317
  return data;
1317
1318
  };
1318
1319
  var roundDetailsDtoSchemaResponseTransformer = (data) => {
1320
+ if (data.affiliateFeeUsd) {
1321
+ data.affiliateFeeUsd = u64DtoSchemaResponseTransformer(data.affiliateFeeUsd);
1322
+ }
1323
+ if (data.buybacksFeeUsd) {
1324
+ data.buybacksFeeUsd = u64DtoSchemaResponseTransformer(data.buybacksFeeUsd);
1325
+ }
1319
1326
  data.deployedAt = new Date(data.deployedAt);
1320
1327
  data.deployments = data.deployments.map((item) => roundDeploymentDtoSchemaResponseTransformer(item));
1321
1328
  if (data.epochFeeUsd) {
@@ -1361,6 +1368,7 @@ var roundDetailsDtoSchemaResponseTransformer = (data) => {
1361
1368
  data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1362
1369
  }
1363
1370
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1371
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1364
1372
  if (data.totalPotBtc) {
1365
1373
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
1366
1374
  }
@@ -1391,6 +1399,12 @@ var i64DtoSchemaResponseTransformer = (data) => {
1391
1399
  return data;
1392
1400
  };
1393
1401
  var minerDtoSchemaResponseTransformer = (data) => {
1402
+ data.affiliatePointsEarned = u64DtoSchemaResponseTransformer(data.affiliatePointsEarned);
1403
+ data.affiliatePointsSpent = u64DtoSchemaResponseTransformer(data.affiliatePointsSpent);
1404
+ if (data.grubstakeExpiresAt) {
1405
+ data.grubstakeExpiresAt = new Date(data.grubstakeExpiresAt);
1406
+ }
1407
+ data.grubstakeUsdAmount = u64DtoSchemaResponseTransformer(data.grubstakeUsdAmount);
1394
1408
  data.hashrateAmount = u64DtoSchemaResponseTransformer(data.hashrateAmount);
1395
1409
  data.totalBtcReceived = u64DtoSchemaResponseTransformer(data.totalBtcReceived);
1396
1410
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
@@ -1598,6 +1612,7 @@ var zEpochIterationParticipantsApiError500Error = z.object({
1598
1612
  });
1599
1613
  var zEpochStateDto = z.enum([
1600
1614
  "open",
1615
+ "sealed",
1601
1616
  "settling",
1602
1617
  "settled",
1603
1618
  "complete"
@@ -1700,6 +1715,7 @@ var zOneBtcIterationParticipantsApiError500Error = z.object({
1700
1715
  });
1701
1716
  var zOneBtcStateDto = z.enum([
1702
1717
  "open",
1718
+ "sealed",
1703
1719
  "settled",
1704
1720
  "complete"
1705
1721
  ]);
@@ -1867,6 +1883,7 @@ var zEpochVaultEntryDto = z.object({
1867
1883
  var zEpochWinnerDto = z.object({
1868
1884
  authority: zPubkeyDto,
1869
1885
  claimed: z.boolean(),
1886
+ distributed: z.boolean(),
1870
1887
  tickets: zU64Dto
1871
1888
  });
1872
1889
  var zEpochVaultIterationDto = z.object({
@@ -1892,6 +1909,10 @@ var zEpochVaultIterationDto = z.object({
1892
1909
  z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1893
1910
  z.null()
1894
1911
  ])),
1912
+ winnersDistributed: z.optional(z.union([
1913
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1914
+ z.null()
1915
+ ])),
1895
1916
  winnersSelected: z.optional(z.union([
1896
1917
  z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1897
1918
  z.null()
@@ -2003,6 +2024,10 @@ var zMinerDeploymentDto = z.object({
2003
2024
  deployment: zPubkeyDto,
2004
2025
  hashrateEarned: zU64Dto,
2005
2026
  isAutomation: z.boolean(),
2027
+ isGrubstakeFunded: z.optional(z.union([
2028
+ z.boolean(),
2029
+ z.null()
2030
+ ])),
2006
2031
  isReload: z.optional(z.union([
2007
2032
  z.boolean(),
2008
2033
  z.null()
@@ -2025,11 +2050,30 @@ var zMinerDeploymentDto = z.object({
2025
2050
  usdEarned: zU64Dto
2026
2051
  });
2027
2052
  var zMinerDto = z.object({
2053
+ affiliate: z.optional(z.union([
2054
+ z.null(),
2055
+ zPubkeyDto
2056
+ ])),
2057
+ affiliatePointsEarned: zU64Dto,
2058
+ affiliatePointsSpent: zU64Dto,
2059
+ affiliateRateBps: z.optional(z.union([
2060
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2061
+ z.null()
2062
+ ])),
2028
2063
  authority: zPubkeyDto,
2029
2064
  currentStreakCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2065
+ grubstakeExpiresAt: z.optional(z.union([
2066
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2067
+ z.null()
2068
+ ])),
2069
+ grubstakeUsdAmount: zU64Dto,
2030
2070
  hashrateAmount: zU64Dto,
2031
2071
  lastMinedRoundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2032
2072
  maxStreak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2073
+ tag: z.optional(z.union([
2074
+ z.string(),
2075
+ z.null()
2076
+ ])),
2033
2077
  totalBtcReceived: zU64Dto,
2034
2078
  totalHashrateEarned: zU64Dto,
2035
2079
  totalRounds: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -2222,6 +2266,7 @@ var zOneBtcVaultDto = z.object({
2222
2266
  var zPublicAutomationDto = z.object({
2223
2267
  address: zPubkeyDto,
2224
2268
  executedDeployments: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2269
+ isGrubstakeFunded: z.boolean(),
2225
2270
  perRoundUsdAmount: zU64Dto,
2226
2271
  reload: z.boolean(),
2227
2272
  remainingDeployments: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -2264,6 +2309,10 @@ var zRoundDeploymentDto = z.object({
2264
2309
  deployment: zPubkeyDto,
2265
2310
  hashrateEarned: zU64Dto,
2266
2311
  isAutomation: z.boolean(),
2312
+ isGrubstakeFunded: z.optional(z.union([
2313
+ z.boolean(),
2314
+ z.null()
2315
+ ])),
2267
2316
  isWon: z.optional(z.union([
2268
2317
  z.boolean(),
2269
2318
  z.null()
@@ -2286,6 +2335,14 @@ var zRoundDeploymentDto = z.object({
2286
2335
  });
2287
2336
  var zRoundDetailsDto = z.object({
2288
2337
  address: zPubkeyDto,
2338
+ affiliateFeeUsd: z.optional(z.union([
2339
+ z.null(),
2340
+ zU64Dto
2341
+ ])),
2342
+ buybacksFeeUsd: z.optional(z.union([
2343
+ z.null(),
2344
+ zU64Dto
2345
+ ])),
2289
2346
  deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2290
2347
  deployments: z.array(zRoundDeploymentDto),
2291
2348
  epochFeeUsd: z.optional(z.union([
@@ -2361,6 +2418,7 @@ var zRoundDetailsDto = z.object({
2361
2418
  zU64Dto
2362
2419
  ])),
2363
2420
  totalDeployedUsd: zU64Dto,
2421
+ totalGrossDeployedUsd: zU64Dto,
2364
2422
  totalPotBtc: z.optional(z.union([
2365
2423
  z.null(),
2366
2424
  zU64Dto
@@ -2439,6 +2497,7 @@ var zRoundHistoryDto = z.object({
2439
2497
  zU64Dto
2440
2498
  ])),
2441
2499
  totalDeployedUsd: zU64Dto,
2500
+ totalGrossDeployedUsd: zU64Dto,
2442
2501
  totalPotBtc: z.optional(z.union([
2443
2502
  z.null(),
2444
2503
  zU64Dto
@@ -3418,6 +3477,7 @@ var AutomationStrategyDto = {
3418
3477
  var ClaimTypeDto = { USD: "usd", SATS: "sats" };
3419
3478
  var EpochStateDto = {
3420
3479
  OPEN: "open",
3480
+ SEALED: "sealed",
3421
3481
  SETTLING: "settling",
3422
3482
  SETTLED: "settled",
3423
3483
  COMPLETE: "complete"
@@ -3434,6 +3494,7 @@ var LeaderboardSortDto = {
3434
3494
  var NotificationEntity = { STATE_SNAPSHOT: "state_snapshot" };
3435
3495
  var OneBtcStateDto = {
3436
3496
  OPEN: "open",
3497
+ SEALED: "sealed",
3437
3498
  SETTLED: "settled",
3438
3499
  COMPLETE: "complete"
3439
3500
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satrush/api",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",