@satrush/api 0.1.17 → 0.1.19

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
@@ -1178,6 +1178,7 @@ var roundDtoSchemaResponseTransformer = (data) => {
1178
1178
  data.strikeBonusBtc = u64DtoSchemaResponseTransformer(data.strikeBonusBtc);
1179
1179
  data.strikeBonusUsd = u64DtoSchemaResponseTransformer(data.strikeBonusUsd);
1180
1180
  data.tileStakes = data.tileStakes.map((item) => tileStakeDtoSchemaResponseTransformer(item));
1181
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1181
1182
  return data;
1182
1183
  };
1183
1184
  var epochWinnerDtoSchemaResponseTransformer = (data) => {
@@ -1499,6 +1500,7 @@ var roundHistoryDtoSchemaResponseTransformer = (data) => {
1499
1500
  data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1500
1501
  }
1501
1502
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1503
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1502
1504
  if (data.totalPotBtc) {
1503
1505
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
1504
1506
  }
@@ -1530,6 +1532,12 @@ var roundDeploymentDtoSchemaResponseTransformer = (data) => {
1530
1532
  return data;
1531
1533
  };
1532
1534
  var roundDetailsDtoSchemaResponseTransformer = (data) => {
1535
+ if (data.affiliateFeeUsd) {
1536
+ data.affiliateFeeUsd = u64DtoSchemaResponseTransformer(data.affiliateFeeUsd);
1537
+ }
1538
+ if (data.buybacksFeeUsd) {
1539
+ data.buybacksFeeUsd = u64DtoSchemaResponseTransformer(data.buybacksFeeUsd);
1540
+ }
1533
1541
  data.deployedAt = new Date(data.deployedAt);
1534
1542
  data.deployments = data.deployments.map((item) => roundDeploymentDtoSchemaResponseTransformer(item));
1535
1543
  if (data.epochFeeUsd) {
@@ -1575,6 +1583,7 @@ var roundDetailsDtoSchemaResponseTransformer = (data) => {
1575
1583
  data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1576
1584
  }
1577
1585
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1586
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1578
1587
  if (data.totalPotBtc) {
1579
1588
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
1580
1589
  }
@@ -2541,6 +2550,14 @@ var zRoundDeploymentDto = z.object({
2541
2550
  });
2542
2551
  var zRoundDetailsDto = z.object({
2543
2552
  address: zPubkeyDto,
2553
+ affiliateFeeUsd: z.optional(z.union([
2554
+ z.null(),
2555
+ zU64Dto
2556
+ ])),
2557
+ buybacksFeeUsd: z.optional(z.union([
2558
+ z.null(),
2559
+ zU64Dto
2560
+ ])),
2544
2561
  deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2545
2562
  deployments: z.array(zRoundDeploymentDto),
2546
2563
  epochFeeUsd: z.optional(z.union([
@@ -2616,6 +2633,7 @@ var zRoundDetailsDto = z.object({
2616
2633
  zU64Dto
2617
2634
  ])),
2618
2635
  totalDeployedUsd: zU64Dto,
2636
+ totalGrossDeployedUsd: zU64Dto,
2619
2637
  totalPotBtc: z.optional(z.union([
2620
2638
  z.null(),
2621
2639
  zU64Dto
@@ -2694,6 +2712,7 @@ var zRoundHistoryDto = z.object({
2694
2712
  zU64Dto
2695
2713
  ])),
2696
2714
  totalDeployedUsd: zU64Dto,
2715
+ totalGrossDeployedUsd: zU64Dto,
2697
2716
  totalPotBtc: z.optional(z.union([
2698
2717
  z.null(),
2699
2718
  zU64Dto
@@ -2771,6 +2790,7 @@ var zRoundDto = z.object({
2771
2790
  strikeBonusBtc: zU64Dto,
2772
2791
  strikeBonusUsd: zU64Dto,
2773
2792
  tileStakes: z.array(zTileStakeDto),
2793
+ totalGrossDeployedUsd: zU64Dto,
2774
2794
  winnersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2775
2795
  winningTile: z.optional(z.union([
2776
2796
  z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
package/dist/index.d.cts CHANGED
@@ -1661,6 +1661,8 @@ type RoundDetailsDto = {
1661
1661
  * The on-chain Round account address.
1662
1662
  */
1663
1663
  address: PubkeyDto;
1664
+ affiliateFeeUsd?: null | U64Dto;
1665
+ buybacksFeeUsd?: null | U64Dto;
1664
1666
  /**
1665
1667
  * When the round row was created by the indexer.
1666
1668
  */
@@ -1713,7 +1715,15 @@ type RoundDetailsDto = {
1713
1715
  strikeReserveUsd?: null | U64Dto;
1714
1716
  strikeSeedFromReserveBtc?: null | U64Dto;
1715
1717
  strikeSeedFromReserveUsd?: null | U64Dto;
1718
+ /**
1719
+ * Sum of the miners' stakes after the protocol fees were taken; what
1720
+ * funds the pot.
1721
+ */
1716
1722
  totalDeployedUsd: U64Dto;
1723
+ /**
1724
+ * Sum of what the miners paid before the protocol fees were taken.
1725
+ */
1726
+ totalGrossDeployedUsd: U64Dto;
1717
1727
  totalPotBtc?: null | U64Dto;
1718
1728
  /**
1719
1729
  * Both pot legs in dollars at the settle-time BTC price; unset until
@@ -1757,6 +1767,13 @@ type RoundDto = {
1757
1767
  strikeBonusBtc: U64Dto;
1758
1768
  strikeBonusUsd: U64Dto;
1759
1769
  tileStakes: Array<TileStakeDto>;
1770
+ /**
1771
+ * What miners paid into the round before the protocol fees were taken.
1772
+ * The round account only tracks post-fee stakes, so this comes from the
1773
+ * indexed history: 0 until the indexer has recorded the round, and it
1774
+ * can trail the live figures by the indexing latency.
1775
+ */
1776
+ totalGrossDeployedUsd: U64Dto;
1760
1777
  winnersCount: number;
1761
1778
  winningTile?: number | null;
1762
1779
  };
@@ -1800,7 +1817,15 @@ type RoundHistoryDto = {
1800
1817
  strikeReserveUsd?: null | U64Dto;
1801
1818
  strikeSeedFromReserveBtc?: null | U64Dto;
1802
1819
  strikeSeedFromReserveUsd?: null | U64Dto;
1820
+ /**
1821
+ * Sum of the miners' stakes after the protocol fees were taken; what
1822
+ * funds the pot.
1823
+ */
1803
1824
  totalDeployedUsd: U64Dto;
1825
+ /**
1826
+ * Sum of what the miners paid before the protocol fees were taken.
1827
+ */
1828
+ totalGrossDeployedUsd: U64Dto;
1804
1829
  totalPotBtc?: null | U64Dto;
1805
1830
  /**
1806
1831
  * Both pot legs in dollars at the settle-time BTC price; unset until
@@ -3970,6 +3995,8 @@ declare const zRoundDeploymentDto: z.ZodObject<{
3970
3995
  */
3971
3996
  declare const zRoundDetailsDto: z.ZodObject<{
3972
3997
  address: z.ZodString;
3998
+ affiliateFeeUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3999
+ buybacksFeeUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3973
4000
  deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
3974
4001
  deployments: z.ZodArray<z.ZodObject<{
3975
4002
  authority: z.ZodString;
@@ -4017,6 +4044,7 @@ declare const zRoundDetailsDto: z.ZodObject<{
4017
4044
  strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4018
4045
  strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4019
4046
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
4047
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4020
4048
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4021
4049
  totalPotCombinedUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4022
4050
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -4050,6 +4078,7 @@ declare const zRoundHistoryDto: z.ZodObject<{
4050
4078
  strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4051
4079
  strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4052
4080
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
4081
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4053
4082
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4054
4083
  totalPotCombinedUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4055
4084
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -4129,6 +4158,7 @@ declare const zRoundDto: z.ZodObject<{
4129
4158
  deployCount: z.ZodInt;
4130
4159
  stake: z.ZodCoercedBigInt<unknown>;
4131
4160
  }, z.core.$strip>>;
4161
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4132
4162
  winnersCount: z.ZodInt;
4133
4163
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4134
4164
  }, z.core.$strip>;
@@ -4161,6 +4191,7 @@ declare const zBoardDto: z.ZodObject<{
4161
4191
  deployCount: z.ZodInt;
4162
4192
  stake: z.ZodCoercedBigInt<unknown>;
4163
4193
  }, z.core.$strip>>;
4194
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4164
4195
  winnersCount: z.ZodInt;
4165
4196
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4166
4197
  }, z.core.$strip>]>>;
@@ -4255,6 +4286,7 @@ declare const zBoardDto: z.ZodObject<{
4255
4286
  deployCount: z.ZodInt;
4256
4287
  stake: z.ZodCoercedBigInt<unknown>;
4257
4288
  }, z.core.$strip>>;
4289
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4258
4290
  winnersCount: z.ZodInt;
4259
4291
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4260
4292
  }, z.core.$strip>]>>;
@@ -4314,6 +4346,7 @@ declare const zSnapshotDto: z.ZodObject<{
4314
4346
  deployCount: z.ZodInt;
4315
4347
  stake: z.ZodCoercedBigInt<unknown>;
4316
4348
  }, z.core.$strip>>;
4349
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4317
4350
  winnersCount: z.ZodInt;
4318
4351
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4319
4352
  }, z.core.$strip>]>>;
@@ -4408,6 +4441,7 @@ declare const zSnapshotDto: z.ZodObject<{
4408
4441
  deployCount: z.ZodInt;
4409
4442
  stake: z.ZodCoercedBigInt<unknown>;
4410
4443
  }, z.core.$strip>>;
4444
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4411
4445
  winnersCount: z.ZodInt;
4412
4446
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4413
4447
  }, z.core.$strip>]>>;
@@ -4538,6 +4572,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4538
4572
  deployCount: z.ZodInt;
4539
4573
  stake: z.ZodCoercedBigInt<unknown>;
4540
4574
  }, z.core.$strip>>;
4575
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4541
4576
  winnersCount: z.ZodInt;
4542
4577
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4543
4578
  }, z.core.$strip>]>>;
@@ -4632,6 +4667,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4632
4667
  deployCount: z.ZodInt;
4633
4668
  stake: z.ZodCoercedBigInt<unknown>;
4634
4669
  }, z.core.$strip>>;
4670
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4635
4671
  winnersCount: z.ZodInt;
4636
4672
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4637
4673
  }, z.core.$strip>]>>;
@@ -4768,6 +4804,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4768
4804
  deployCount: z.ZodInt;
4769
4805
  stake: z.ZodCoercedBigInt<unknown>;
4770
4806
  }, z.core.$strip>>;
4807
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4771
4808
  winnersCount: z.ZodInt;
4772
4809
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4773
4810
  }, z.core.$strip>]>>;
@@ -4862,6 +4899,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4862
4899
  deployCount: z.ZodInt;
4863
4900
  stake: z.ZodCoercedBigInt<unknown>;
4864
4901
  }, z.core.$strip>>;
4902
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4865
4903
  winnersCount: z.ZodInt;
4866
4904
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4867
4905
  }, z.core.$strip>]>>;
@@ -5289,6 +5327,7 @@ declare const zGetBoardResponse: z.ZodObject<{
5289
5327
  deployCount: z.ZodInt;
5290
5328
  stake: z.ZodCoercedBigInt<unknown>;
5291
5329
  }, z.core.$strip>>;
5330
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5292
5331
  winnersCount: z.ZodInt;
5293
5332
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5294
5333
  }, z.core.$strip>]>>;
@@ -5383,6 +5422,7 @@ declare const zGetBoardResponse: z.ZodObject<{
5383
5422
  deployCount: z.ZodInt;
5384
5423
  stake: z.ZodCoercedBigInt<unknown>;
5385
5424
  }, z.core.$strip>>;
5425
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5386
5426
  winnersCount: z.ZodInt;
5387
5427
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5388
5428
  }, z.core.$strip>]>>;
@@ -5765,6 +5805,7 @@ declare const zGetRoundsResponse: z.ZodObject<{
5765
5805
  strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5766
5806
  strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5767
5807
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
5808
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5768
5809
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5769
5810
  totalPotCombinedUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
5770
5811
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -5783,6 +5824,8 @@ declare const zGetRoundData: z.ZodObject<{
5783
5824
  declare const zGetRoundResponse: z.ZodObject<{
5784
5825
  data: z.ZodObject<{
5785
5826
  address: z.ZodString;
5827
+ affiliateFeeUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5828
+ buybacksFeeUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5786
5829
  deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
5787
5830
  deployments: z.ZodArray<z.ZodObject<{
5788
5831
  authority: z.ZodString;
@@ -5830,6 +5873,7 @@ declare const zGetRoundResponse: z.ZodObject<{
5830
5873
  strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5831
5874
  strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5832
5875
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
5876
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5833
5877
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5834
5878
  totalPotCombinedUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
5835
5879
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -5876,6 +5920,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5876
5920
  deployCount: z.ZodInt;
5877
5921
  stake: z.ZodCoercedBigInt<unknown>;
5878
5922
  }, z.core.$strip>>;
5923
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5879
5924
  winnersCount: z.ZodInt;
5880
5925
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5881
5926
  }, z.core.$strip>]>>;
@@ -5970,6 +6015,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5970
6015
  deployCount: z.ZodInt;
5971
6016
  stake: z.ZodCoercedBigInt<unknown>;
5972
6017
  }, z.core.$strip>>;
6018
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5973
6019
  winnersCount: z.ZodInt;
5974
6020
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5975
6021
  }, z.core.$strip>]>>;
package/dist/index.d.ts CHANGED
@@ -1661,6 +1661,8 @@ type RoundDetailsDto = {
1661
1661
  * The on-chain Round account address.
1662
1662
  */
1663
1663
  address: PubkeyDto;
1664
+ affiliateFeeUsd?: null | U64Dto;
1665
+ buybacksFeeUsd?: null | U64Dto;
1664
1666
  /**
1665
1667
  * When the round row was created by the indexer.
1666
1668
  */
@@ -1713,7 +1715,15 @@ type RoundDetailsDto = {
1713
1715
  strikeReserveUsd?: null | U64Dto;
1714
1716
  strikeSeedFromReserveBtc?: null | U64Dto;
1715
1717
  strikeSeedFromReserveUsd?: null | U64Dto;
1718
+ /**
1719
+ * Sum of the miners' stakes after the protocol fees were taken; what
1720
+ * funds the pot.
1721
+ */
1716
1722
  totalDeployedUsd: U64Dto;
1723
+ /**
1724
+ * Sum of what the miners paid before the protocol fees were taken.
1725
+ */
1726
+ totalGrossDeployedUsd: U64Dto;
1717
1727
  totalPotBtc?: null | U64Dto;
1718
1728
  /**
1719
1729
  * Both pot legs in dollars at the settle-time BTC price; unset until
@@ -1757,6 +1767,13 @@ type RoundDto = {
1757
1767
  strikeBonusBtc: U64Dto;
1758
1768
  strikeBonusUsd: U64Dto;
1759
1769
  tileStakes: Array<TileStakeDto>;
1770
+ /**
1771
+ * What miners paid into the round before the protocol fees were taken.
1772
+ * The round account only tracks post-fee stakes, so this comes from the
1773
+ * indexed history: 0 until the indexer has recorded the round, and it
1774
+ * can trail the live figures by the indexing latency.
1775
+ */
1776
+ totalGrossDeployedUsd: U64Dto;
1760
1777
  winnersCount: number;
1761
1778
  winningTile?: number | null;
1762
1779
  };
@@ -1800,7 +1817,15 @@ type RoundHistoryDto = {
1800
1817
  strikeReserveUsd?: null | U64Dto;
1801
1818
  strikeSeedFromReserveBtc?: null | U64Dto;
1802
1819
  strikeSeedFromReserveUsd?: null | U64Dto;
1820
+ /**
1821
+ * Sum of the miners' stakes after the protocol fees were taken; what
1822
+ * funds the pot.
1823
+ */
1803
1824
  totalDeployedUsd: U64Dto;
1825
+ /**
1826
+ * Sum of what the miners paid before the protocol fees were taken.
1827
+ */
1828
+ totalGrossDeployedUsd: U64Dto;
1804
1829
  totalPotBtc?: null | U64Dto;
1805
1830
  /**
1806
1831
  * Both pot legs in dollars at the settle-time BTC price; unset until
@@ -3970,6 +3995,8 @@ declare const zRoundDeploymentDto: z.ZodObject<{
3970
3995
  */
3971
3996
  declare const zRoundDetailsDto: z.ZodObject<{
3972
3997
  address: z.ZodString;
3998
+ affiliateFeeUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3999
+ buybacksFeeUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
3973
4000
  deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
3974
4001
  deployments: z.ZodArray<z.ZodObject<{
3975
4002
  authority: z.ZodString;
@@ -4017,6 +4044,7 @@ declare const zRoundDetailsDto: z.ZodObject<{
4017
4044
  strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4018
4045
  strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4019
4046
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
4047
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4020
4048
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4021
4049
  totalPotCombinedUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4022
4050
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -4050,6 +4078,7 @@ declare const zRoundHistoryDto: z.ZodObject<{
4050
4078
  strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4051
4079
  strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4052
4080
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
4081
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4053
4082
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
4054
4083
  totalPotCombinedUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
4055
4084
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -4129,6 +4158,7 @@ declare const zRoundDto: z.ZodObject<{
4129
4158
  deployCount: z.ZodInt;
4130
4159
  stake: z.ZodCoercedBigInt<unknown>;
4131
4160
  }, z.core.$strip>>;
4161
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4132
4162
  winnersCount: z.ZodInt;
4133
4163
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4134
4164
  }, z.core.$strip>;
@@ -4161,6 +4191,7 @@ declare const zBoardDto: z.ZodObject<{
4161
4191
  deployCount: z.ZodInt;
4162
4192
  stake: z.ZodCoercedBigInt<unknown>;
4163
4193
  }, z.core.$strip>>;
4194
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4164
4195
  winnersCount: z.ZodInt;
4165
4196
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4166
4197
  }, z.core.$strip>]>>;
@@ -4255,6 +4286,7 @@ declare const zBoardDto: z.ZodObject<{
4255
4286
  deployCount: z.ZodInt;
4256
4287
  stake: z.ZodCoercedBigInt<unknown>;
4257
4288
  }, z.core.$strip>>;
4289
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4258
4290
  winnersCount: z.ZodInt;
4259
4291
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4260
4292
  }, z.core.$strip>]>>;
@@ -4314,6 +4346,7 @@ declare const zSnapshotDto: z.ZodObject<{
4314
4346
  deployCount: z.ZodInt;
4315
4347
  stake: z.ZodCoercedBigInt<unknown>;
4316
4348
  }, z.core.$strip>>;
4349
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4317
4350
  winnersCount: z.ZodInt;
4318
4351
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4319
4352
  }, z.core.$strip>]>>;
@@ -4408,6 +4441,7 @@ declare const zSnapshotDto: z.ZodObject<{
4408
4441
  deployCount: z.ZodInt;
4409
4442
  stake: z.ZodCoercedBigInt<unknown>;
4410
4443
  }, z.core.$strip>>;
4444
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4411
4445
  winnersCount: z.ZodInt;
4412
4446
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4413
4447
  }, z.core.$strip>]>>;
@@ -4538,6 +4572,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4538
4572
  deployCount: z.ZodInt;
4539
4573
  stake: z.ZodCoercedBigInt<unknown>;
4540
4574
  }, z.core.$strip>>;
4575
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4541
4576
  winnersCount: z.ZodInt;
4542
4577
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4543
4578
  }, z.core.$strip>]>>;
@@ -4632,6 +4667,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4632
4667
  deployCount: z.ZodInt;
4633
4668
  stake: z.ZodCoercedBigInt<unknown>;
4634
4669
  }, z.core.$strip>>;
4670
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4635
4671
  winnersCount: z.ZodInt;
4636
4672
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4637
4673
  }, z.core.$strip>]>>;
@@ -4768,6 +4804,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4768
4804
  deployCount: z.ZodInt;
4769
4805
  stake: z.ZodCoercedBigInt<unknown>;
4770
4806
  }, z.core.$strip>>;
4807
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4771
4808
  winnersCount: z.ZodInt;
4772
4809
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4773
4810
  }, z.core.$strip>]>>;
@@ -4862,6 +4899,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4862
4899
  deployCount: z.ZodInt;
4863
4900
  stake: z.ZodCoercedBigInt<unknown>;
4864
4901
  }, z.core.$strip>>;
4902
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
4865
4903
  winnersCount: z.ZodInt;
4866
4904
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4867
4905
  }, z.core.$strip>]>>;
@@ -5289,6 +5327,7 @@ declare const zGetBoardResponse: z.ZodObject<{
5289
5327
  deployCount: z.ZodInt;
5290
5328
  stake: z.ZodCoercedBigInt<unknown>;
5291
5329
  }, z.core.$strip>>;
5330
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5292
5331
  winnersCount: z.ZodInt;
5293
5332
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5294
5333
  }, z.core.$strip>]>>;
@@ -5383,6 +5422,7 @@ declare const zGetBoardResponse: z.ZodObject<{
5383
5422
  deployCount: z.ZodInt;
5384
5423
  stake: z.ZodCoercedBigInt<unknown>;
5385
5424
  }, z.core.$strip>>;
5425
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5386
5426
  winnersCount: z.ZodInt;
5387
5427
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5388
5428
  }, z.core.$strip>]>>;
@@ -5765,6 +5805,7 @@ declare const zGetRoundsResponse: z.ZodObject<{
5765
5805
  strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5766
5806
  strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5767
5807
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
5808
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5768
5809
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5769
5810
  totalPotCombinedUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
5770
5811
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -5783,6 +5824,8 @@ declare const zGetRoundData: z.ZodObject<{
5783
5824
  declare const zGetRoundResponse: z.ZodObject<{
5784
5825
  data: z.ZodObject<{
5785
5826
  address: z.ZodString;
5827
+ affiliateFeeUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5828
+ buybacksFeeUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5786
5829
  deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
5787
5830
  deployments: z.ZodArray<z.ZodObject<{
5788
5831
  authority: z.ZodString;
@@ -5830,6 +5873,7 @@ declare const zGetRoundResponse: z.ZodObject<{
5830
5873
  strikeSeedFromReserveBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5831
5874
  strikeSeedFromReserveUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5832
5875
  totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
5876
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5833
5877
  totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
5834
5878
  totalPotCombinedUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
5835
5879
  totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
@@ -5876,6 +5920,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5876
5920
  deployCount: z.ZodInt;
5877
5921
  stake: z.ZodCoercedBigInt<unknown>;
5878
5922
  }, z.core.$strip>>;
5923
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5879
5924
  winnersCount: z.ZodInt;
5880
5925
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5881
5926
  }, z.core.$strip>]>>;
@@ -5970,6 +6015,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5970
6015
  deployCount: z.ZodInt;
5971
6016
  stake: z.ZodCoercedBigInt<unknown>;
5972
6017
  }, z.core.$strip>>;
6018
+ totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
5973
6019
  winnersCount: z.ZodInt;
5974
6020
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5975
6021
  }, z.core.$strip>]>>;
package/dist/index.js CHANGED
@@ -964,6 +964,7 @@ var roundDtoSchemaResponseTransformer = (data) => {
964
964
  data.strikeBonusBtc = u64DtoSchemaResponseTransformer(data.strikeBonusBtc);
965
965
  data.strikeBonusUsd = u64DtoSchemaResponseTransformer(data.strikeBonusUsd);
966
966
  data.tileStakes = data.tileStakes.map((item) => tileStakeDtoSchemaResponseTransformer(item));
967
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
967
968
  return data;
968
969
  };
969
970
  var epochWinnerDtoSchemaResponseTransformer = (data) => {
@@ -1285,6 +1286,7 @@ var roundHistoryDtoSchemaResponseTransformer = (data) => {
1285
1286
  data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1286
1287
  }
1287
1288
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1289
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1288
1290
  if (data.totalPotBtc) {
1289
1291
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
1290
1292
  }
@@ -1316,6 +1318,12 @@ var roundDeploymentDtoSchemaResponseTransformer = (data) => {
1316
1318
  return data;
1317
1319
  };
1318
1320
  var roundDetailsDtoSchemaResponseTransformer = (data) => {
1321
+ if (data.affiliateFeeUsd) {
1322
+ data.affiliateFeeUsd = u64DtoSchemaResponseTransformer(data.affiliateFeeUsd);
1323
+ }
1324
+ if (data.buybacksFeeUsd) {
1325
+ data.buybacksFeeUsd = u64DtoSchemaResponseTransformer(data.buybacksFeeUsd);
1326
+ }
1319
1327
  data.deployedAt = new Date(data.deployedAt);
1320
1328
  data.deployments = data.deployments.map((item) => roundDeploymentDtoSchemaResponseTransformer(item));
1321
1329
  if (data.epochFeeUsd) {
@@ -1361,6 +1369,7 @@ var roundDetailsDtoSchemaResponseTransformer = (data) => {
1361
1369
  data.strikeSeedFromReserveUsd = u64DtoSchemaResponseTransformer(data.strikeSeedFromReserveUsd);
1362
1370
  }
1363
1371
  data.totalDeployedUsd = u64DtoSchemaResponseTransformer(data.totalDeployedUsd);
1372
+ data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
1364
1373
  if (data.totalPotBtc) {
1365
1374
  data.totalPotBtc = u64DtoSchemaResponseTransformer(data.totalPotBtc);
1366
1375
  }
@@ -2327,6 +2336,14 @@ var zRoundDeploymentDto = z.object({
2327
2336
  });
2328
2337
  var zRoundDetailsDto = z.object({
2329
2338
  address: zPubkeyDto,
2339
+ affiliateFeeUsd: z.optional(z.union([
2340
+ z.null(),
2341
+ zU64Dto
2342
+ ])),
2343
+ buybacksFeeUsd: z.optional(z.union([
2344
+ z.null(),
2345
+ zU64Dto
2346
+ ])),
2330
2347
  deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2331
2348
  deployments: z.array(zRoundDeploymentDto),
2332
2349
  epochFeeUsd: z.optional(z.union([
@@ -2402,6 +2419,7 @@ var zRoundDetailsDto = z.object({
2402
2419
  zU64Dto
2403
2420
  ])),
2404
2421
  totalDeployedUsd: zU64Dto,
2422
+ totalGrossDeployedUsd: zU64Dto,
2405
2423
  totalPotBtc: z.optional(z.union([
2406
2424
  z.null(),
2407
2425
  zU64Dto
@@ -2480,6 +2498,7 @@ var zRoundHistoryDto = z.object({
2480
2498
  zU64Dto
2481
2499
  ])),
2482
2500
  totalDeployedUsd: zU64Dto,
2501
+ totalGrossDeployedUsd: zU64Dto,
2483
2502
  totalPotBtc: z.optional(z.union([
2484
2503
  z.null(),
2485
2504
  zU64Dto
@@ -2557,6 +2576,7 @@ var zRoundDto = z.object({
2557
2576
  strikeBonusBtc: zU64Dto,
2558
2577
  strikeBonusUsd: zU64Dto,
2559
2578
  tileStakes: z.array(zTileStakeDto),
2579
+ totalGrossDeployedUsd: zU64Dto,
2560
2580
  winnersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2561
2581
  winningTile: z.optional(z.union([
2562
2582
  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.17",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",