@satrush/api 0.1.23 → 0.1.25

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
@@ -1687,8 +1687,11 @@ var getStakingTreasuryResponseTransformer = async (data) => {
1687
1687
  var publicAutomationDtoSchemaResponseTransformer = (data) => {
1688
1688
  data.perRoundUsdAmount = u64DtoSchemaResponseTransformer(data.perRoundUsdAmount);
1689
1689
  data.remainingUsdAmount = u64DtoSchemaResponseTransformer(data.remainingUsdAmount);
1690
+ data.totalBtcEarned = u64DtoSchemaResponseTransformer(data.totalBtcEarned);
1690
1691
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
1691
1692
  data.totalSatsEarned = u64DtoSchemaResponseTransformer(data.totalSatsEarned);
1693
+ data.totalTokenEarned = u64DtoSchemaResponseTransformer(data.totalTokenEarned);
1694
+ data.totalTokenSharesEarned = u64DtoSchemaResponseTransformer(data.totalTokenSharesEarned);
1692
1695
  data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
1693
1696
  data.totalUsdEarned = u64DtoSchemaResponseTransformer(data.totalUsdEarned);
1694
1697
  return data;
@@ -1772,6 +1775,8 @@ var tokenStatsDtoSchemaResponseTransformer = (data) => {
1772
1775
  data.buybackBurned = u64DtoSchemaResponseTransformer(data.buybackBurned);
1773
1776
  data.lpBurned = u64DtoSchemaResponseTransformer(data.lpBurned);
1774
1777
  data.totalBurned = u64DtoSchemaResponseTransformer(data.totalBurned);
1778
+ data.totalBuybackUsd = u64DtoSchemaResponseTransformer(data.totalBuybackUsd);
1779
+ data.totalMined = u64DtoSchemaResponseTransformer(data.totalMined);
1775
1780
  return data;
1776
1781
  };
1777
1782
  var getTokenStatsResponseTransformer = async (data) => {
@@ -2724,8 +2729,11 @@ var zPublicAutomationDto = z.object({
2724
2729
  remainingUsdAmount: zU64Dto,
2725
2730
  selectionMask: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2726
2731
  strategy: zAutomationStrategyDto,
2732
+ totalBtcEarned: zU64Dto,
2727
2733
  totalHashrateEarned: zU64Dto,
2728
2734
  totalSatsEarned: zU64Dto,
2735
+ totalTokenEarned: zU64Dto,
2736
+ totalTokenSharesEarned: zU64Dto,
2729
2737
  totalUsdDeployed: zU64Dto,
2730
2738
  totalUsdEarned: zU64Dto
2731
2739
  });
@@ -3099,7 +3107,9 @@ var zRoundDto = z.object({
3099
3107
  var zTokenStatsDto = z.object({
3100
3108
  buybackBurned: zU64Dto,
3101
3109
  lpBurned: zU64Dto,
3102
- totalBurned: zU64Dto
3110
+ totalBurned: zU64Dto,
3111
+ totalBuybackUsd: zU64Dto,
3112
+ totalMined: zU64Dto
3103
3113
  });
3104
3114
  var zTokenVaultDto = z.object({
3105
3115
  address: zPubkeyDto,
@@ -4011,7 +4021,7 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
4011
4021
  });
4012
4022
  }
4013
4023
  /**
4014
- * Request the protocol token stats: lifetime burned tokens, the protocol's buyback burns plus the LP wallet's burns
4024
+ * Request the protocol token stats: lifetime burned tokens (the protocol's buyback burns plus the LP wallet's burns), the USD spent on buybacks and the tokens mined
4015
4025
  */
4016
4026
  getTokenStats(options) {
4017
4027
  return (options?.client ?? this.client).get({
package/dist/index.d.cts CHANGED
@@ -1693,14 +1693,27 @@ type PublicAutomationDto = {
1693
1693
  * Tile-selection strategy.
1694
1694
  */
1695
1695
  strategy: AutomationStrategyDto;
1696
+ /**
1697
+ * Exact BTC (satoshis) deposited into the Sats Vault for those shares.
1698
+ */
1699
+ totalBtcEarned: U64Dto;
1696
1700
  /**
1697
1701
  * Hashrate points earned across the session's rounds.
1698
1702
  */
1699
1703
  totalHashrateEarned: U64Dto;
1700
1704
  /**
1701
- * Sats winnings settled across the session's rounds.
1705
+ * Sats Vault shares settled across the session's rounds.
1702
1706
  */
1703
1707
  totalSatsEarned: U64Dto;
1708
+ /**
1709
+ * Exact SatRush tokens (base units) deposited into the Token Vault
1710
+ * across the session's rounds; 0 for pre-mint settles or dust winnings.
1711
+ */
1712
+ totalTokenEarned: U64Dto;
1713
+ /**
1714
+ * Token Vault shares minted for `total_token_earned`.
1715
+ */
1716
+ totalTokenSharesEarned: U64Dto;
1704
1717
  /**
1705
1718
  * Gross USD deployed across the session's rounds.
1706
1719
  */
@@ -2402,8 +2415,9 @@ type TokenApiError500Error = {
2402
2415
  code: 'internal';
2403
2416
  };
2404
2417
  /**
2405
- * Protocol token figures that live only in the database. Amounts are
2406
- * mint base units (9 decimals).
2418
+ * Protocol token figures that live only in the database. Token amounts
2419
+ * are mint base units (9 decimals); `total_buyback_usd` is USD-mint base
2420
+ * units (6 decimals).
2407
2421
  */
2408
2422
  type TokenStatsDto = {
2409
2423
  /**
@@ -2418,6 +2432,15 @@ type TokenStatsDto = {
2418
2432
  * `buyback_burned + lp_burned`.
2419
2433
  */
2420
2434
  totalBurned: U64Dto;
2435
+ /**
2436
+ * USD the treasury spent on those buybacks.
2437
+ */
2438
+ totalBuybackUsd: U64Dto;
2439
+ /**
2440
+ * Tokens the mint program issued over revealed rounds, including the
2441
+ * strike legs.
2442
+ */
2443
+ totalMined: U64Dto;
2421
2444
  };
2422
2445
  /**
2423
2446
  * Token vault balances: the SatRush tokens backing the shares issued against
@@ -3586,7 +3609,7 @@ declare class SatrushBackendSdk extends HeyApiClient {
3586
3609
  wallet?: string;
3587
3610
  }, options?: Options<never, ThrowOnError>): Promise<ServerSentEventsResult<SseResponses, SseErrors>>;
3588
3611
  /**
3589
- * Request the protocol token stats: lifetime burned tokens, the protocol's buyback burns plus the LP wallet's burns
3612
+ * Request the protocol token stats: lifetime burned tokens (the protocol's buyback burns plus the LP wallet's burns), the USD spent on buybacks and the tokens mined
3590
3613
  */
3591
3614
  getTokenStats<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetTokenStatsResponses, GetTokenStatsErrors, ThrowOnError, "fields">;
3592
3615
  /**
@@ -4568,8 +4591,11 @@ declare const zPublicAutomationDto: z.ZodObject<{
4568
4591
  random: "random";
4569
4592
  discretionary: "discretionary";
4570
4593
  }>;
4594
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
4571
4595
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
4572
4596
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
4597
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
4598
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
4573
4599
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
4574
4600
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
4575
4601
  }, z.core.$strip>;
@@ -4601,8 +4627,11 @@ declare const zProfileDto: z.ZodObject<{
4601
4627
  random: "random";
4602
4628
  discretionary: "discretionary";
4603
4629
  }>;
4630
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
4604
4631
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
4605
4632
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
4633
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
4634
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
4606
4635
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
4607
4636
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
4608
4637
  }, z.core.$strip>]>>;
@@ -4928,13 +4957,16 @@ declare const zRoundDto: z.ZodObject<{
4928
4957
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4929
4958
  }, z.core.$strip>;
4930
4959
  /**
4931
- * Protocol token figures that live only in the database. Amounts are
4932
- * mint base units (9 decimals).
4960
+ * Protocol token figures that live only in the database. Token amounts
4961
+ * are mint base units (9 decimals); `total_buyback_usd` is USD-mint base
4962
+ * units (6 decimals).
4933
4963
  */
4934
4964
  declare const zTokenStatsDto: z.ZodObject<{
4935
4965
  buybackBurned: z.ZodCoercedBigInt<unknown>;
4936
4966
  lpBurned: z.ZodCoercedBigInt<unknown>;
4937
4967
  totalBurned: z.ZodCoercedBigInt<unknown>;
4968
+ totalBuybackUsd: z.ZodCoercedBigInt<unknown>;
4969
+ totalMined: z.ZodCoercedBigInt<unknown>;
4938
4970
  }, z.core.$strip>;
4939
4971
  /**
4940
4972
  * Token vault balances: the SatRush tokens backing the shares issued against
@@ -5320,8 +5352,11 @@ declare const zSnapshotDto: z.ZodObject<{
5320
5352
  random: "random";
5321
5353
  discretionary: "discretionary";
5322
5354
  }>;
5355
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
5323
5356
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
5324
5357
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
5358
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
5359
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
5325
5360
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
5326
5361
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
5327
5362
  }, z.core.$strip>]>>;
@@ -5573,8 +5608,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
5573
5608
  random: "random";
5574
5609
  discretionary: "discretionary";
5575
5610
  }>;
5611
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
5576
5612
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
5577
5613
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
5614
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
5615
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
5578
5616
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
5579
5617
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
5580
5618
  }, z.core.$strip>]>>;
@@ -5832,8 +5870,11 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
5832
5870
  random: "random";
5833
5871
  discretionary: "discretionary";
5834
5872
  }>;
5873
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
5835
5874
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
5836
5875
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
5876
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
5877
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
5837
5878
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
5838
5879
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
5839
5880
  }, z.core.$strip>]>>;
@@ -7120,8 +7161,11 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
7120
7161
  random: "random";
7121
7162
  discretionary: "discretionary";
7122
7163
  }>;
7164
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
7123
7165
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
7124
7166
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
7167
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
7168
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
7125
7169
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
7126
7170
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
7127
7171
  }, z.core.$strip>]>>;
@@ -7194,6 +7238,8 @@ declare const zGetTokenStatsResponse: z.ZodObject<{
7194
7238
  buybackBurned: z.ZodCoercedBigInt<unknown>;
7195
7239
  lpBurned: z.ZodCoercedBigInt<unknown>;
7196
7240
  totalBurned: z.ZodCoercedBigInt<unknown>;
7241
+ totalBuybackUsd: z.ZodCoercedBigInt<unknown>;
7242
+ totalMined: z.ZodCoercedBigInt<unknown>;
7197
7243
  }, z.core.$strip>;
7198
7244
  }, z.core.$strip>;
7199
7245
  type GetTokenStatsResponseZodType = z.infer<typeof zGetTokenStatsResponse>;
@@ -7220,8 +7266,11 @@ declare const zGetUserProfileResponse: z.ZodObject<{
7220
7266
  random: "random";
7221
7267
  discretionary: "discretionary";
7222
7268
  }>;
7269
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
7223
7270
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
7224
7271
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
7272
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
7273
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
7225
7274
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
7226
7275
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
7227
7276
  }, z.core.$strip>]>>;
package/dist/index.d.ts CHANGED
@@ -1693,14 +1693,27 @@ type PublicAutomationDto = {
1693
1693
  * Tile-selection strategy.
1694
1694
  */
1695
1695
  strategy: AutomationStrategyDto;
1696
+ /**
1697
+ * Exact BTC (satoshis) deposited into the Sats Vault for those shares.
1698
+ */
1699
+ totalBtcEarned: U64Dto;
1696
1700
  /**
1697
1701
  * Hashrate points earned across the session's rounds.
1698
1702
  */
1699
1703
  totalHashrateEarned: U64Dto;
1700
1704
  /**
1701
- * Sats winnings settled across the session's rounds.
1705
+ * Sats Vault shares settled across the session's rounds.
1702
1706
  */
1703
1707
  totalSatsEarned: U64Dto;
1708
+ /**
1709
+ * Exact SatRush tokens (base units) deposited into the Token Vault
1710
+ * across the session's rounds; 0 for pre-mint settles or dust winnings.
1711
+ */
1712
+ totalTokenEarned: U64Dto;
1713
+ /**
1714
+ * Token Vault shares minted for `total_token_earned`.
1715
+ */
1716
+ totalTokenSharesEarned: U64Dto;
1704
1717
  /**
1705
1718
  * Gross USD deployed across the session's rounds.
1706
1719
  */
@@ -2402,8 +2415,9 @@ type TokenApiError500Error = {
2402
2415
  code: 'internal';
2403
2416
  };
2404
2417
  /**
2405
- * Protocol token figures that live only in the database. Amounts are
2406
- * mint base units (9 decimals).
2418
+ * Protocol token figures that live only in the database. Token amounts
2419
+ * are mint base units (9 decimals); `total_buyback_usd` is USD-mint base
2420
+ * units (6 decimals).
2407
2421
  */
2408
2422
  type TokenStatsDto = {
2409
2423
  /**
@@ -2418,6 +2432,15 @@ type TokenStatsDto = {
2418
2432
  * `buyback_burned + lp_burned`.
2419
2433
  */
2420
2434
  totalBurned: U64Dto;
2435
+ /**
2436
+ * USD the treasury spent on those buybacks.
2437
+ */
2438
+ totalBuybackUsd: U64Dto;
2439
+ /**
2440
+ * Tokens the mint program issued over revealed rounds, including the
2441
+ * strike legs.
2442
+ */
2443
+ totalMined: U64Dto;
2421
2444
  };
2422
2445
  /**
2423
2446
  * Token vault balances: the SatRush tokens backing the shares issued against
@@ -3586,7 +3609,7 @@ declare class SatrushBackendSdk extends HeyApiClient {
3586
3609
  wallet?: string;
3587
3610
  }, options?: Options<never, ThrowOnError>): Promise<ServerSentEventsResult<SseResponses, SseErrors>>;
3588
3611
  /**
3589
- * Request the protocol token stats: lifetime burned tokens, the protocol's buyback burns plus the LP wallet's burns
3612
+ * Request the protocol token stats: lifetime burned tokens (the protocol's buyback burns plus the LP wallet's burns), the USD spent on buybacks and the tokens mined
3590
3613
  */
3591
3614
  getTokenStats<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetTokenStatsResponses, GetTokenStatsErrors, ThrowOnError, "fields">;
3592
3615
  /**
@@ -4568,8 +4591,11 @@ declare const zPublicAutomationDto: z.ZodObject<{
4568
4591
  random: "random";
4569
4592
  discretionary: "discretionary";
4570
4593
  }>;
4594
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
4571
4595
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
4572
4596
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
4597
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
4598
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
4573
4599
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
4574
4600
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
4575
4601
  }, z.core.$strip>;
@@ -4601,8 +4627,11 @@ declare const zProfileDto: z.ZodObject<{
4601
4627
  random: "random";
4602
4628
  discretionary: "discretionary";
4603
4629
  }>;
4630
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
4604
4631
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
4605
4632
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
4633
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
4634
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
4606
4635
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
4607
4636
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
4608
4637
  }, z.core.$strip>]>>;
@@ -4928,13 +4957,16 @@ declare const zRoundDto: z.ZodObject<{
4928
4957
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4929
4958
  }, z.core.$strip>;
4930
4959
  /**
4931
- * Protocol token figures that live only in the database. Amounts are
4932
- * mint base units (9 decimals).
4960
+ * Protocol token figures that live only in the database. Token amounts
4961
+ * are mint base units (9 decimals); `total_buyback_usd` is USD-mint base
4962
+ * units (6 decimals).
4933
4963
  */
4934
4964
  declare const zTokenStatsDto: z.ZodObject<{
4935
4965
  buybackBurned: z.ZodCoercedBigInt<unknown>;
4936
4966
  lpBurned: z.ZodCoercedBigInt<unknown>;
4937
4967
  totalBurned: z.ZodCoercedBigInt<unknown>;
4968
+ totalBuybackUsd: z.ZodCoercedBigInt<unknown>;
4969
+ totalMined: z.ZodCoercedBigInt<unknown>;
4938
4970
  }, z.core.$strip>;
4939
4971
  /**
4940
4972
  * Token vault balances: the SatRush tokens backing the shares issued against
@@ -5320,8 +5352,11 @@ declare const zSnapshotDto: z.ZodObject<{
5320
5352
  random: "random";
5321
5353
  discretionary: "discretionary";
5322
5354
  }>;
5355
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
5323
5356
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
5324
5357
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
5358
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
5359
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
5325
5360
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
5326
5361
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
5327
5362
  }, z.core.$strip>]>>;
@@ -5573,8 +5608,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
5573
5608
  random: "random";
5574
5609
  discretionary: "discretionary";
5575
5610
  }>;
5611
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
5576
5612
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
5577
5613
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
5614
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
5615
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
5578
5616
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
5579
5617
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
5580
5618
  }, z.core.$strip>]>>;
@@ -5832,8 +5870,11 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
5832
5870
  random: "random";
5833
5871
  discretionary: "discretionary";
5834
5872
  }>;
5873
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
5835
5874
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
5836
5875
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
5876
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
5877
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
5837
5878
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
5838
5879
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
5839
5880
  }, z.core.$strip>]>>;
@@ -7120,8 +7161,11 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
7120
7161
  random: "random";
7121
7162
  discretionary: "discretionary";
7122
7163
  }>;
7164
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
7123
7165
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
7124
7166
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
7167
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
7168
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
7125
7169
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
7126
7170
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
7127
7171
  }, z.core.$strip>]>>;
@@ -7194,6 +7238,8 @@ declare const zGetTokenStatsResponse: z.ZodObject<{
7194
7238
  buybackBurned: z.ZodCoercedBigInt<unknown>;
7195
7239
  lpBurned: z.ZodCoercedBigInt<unknown>;
7196
7240
  totalBurned: z.ZodCoercedBigInt<unknown>;
7241
+ totalBuybackUsd: z.ZodCoercedBigInt<unknown>;
7242
+ totalMined: z.ZodCoercedBigInt<unknown>;
7197
7243
  }, z.core.$strip>;
7198
7244
  }, z.core.$strip>;
7199
7245
  type GetTokenStatsResponseZodType = z.infer<typeof zGetTokenStatsResponse>;
@@ -7220,8 +7266,11 @@ declare const zGetUserProfileResponse: z.ZodObject<{
7220
7266
  random: "random";
7221
7267
  discretionary: "discretionary";
7222
7268
  }>;
7269
+ totalBtcEarned: z.ZodCoercedBigInt<unknown>;
7223
7270
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
7224
7271
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
7272
+ totalTokenEarned: z.ZodCoercedBigInt<unknown>;
7273
+ totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
7225
7274
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
7226
7275
  totalUsdEarned: z.ZodCoercedBigInt<unknown>;
7227
7276
  }, z.core.$strip>]>>;
package/dist/index.js CHANGED
@@ -1439,8 +1439,11 @@ var getStakingTreasuryResponseTransformer = async (data) => {
1439
1439
  var publicAutomationDtoSchemaResponseTransformer = (data) => {
1440
1440
  data.perRoundUsdAmount = u64DtoSchemaResponseTransformer(data.perRoundUsdAmount);
1441
1441
  data.remainingUsdAmount = u64DtoSchemaResponseTransformer(data.remainingUsdAmount);
1442
+ data.totalBtcEarned = u64DtoSchemaResponseTransformer(data.totalBtcEarned);
1442
1443
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
1443
1444
  data.totalSatsEarned = u64DtoSchemaResponseTransformer(data.totalSatsEarned);
1445
+ data.totalTokenEarned = u64DtoSchemaResponseTransformer(data.totalTokenEarned);
1446
+ data.totalTokenSharesEarned = u64DtoSchemaResponseTransformer(data.totalTokenSharesEarned);
1444
1447
  data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
1445
1448
  data.totalUsdEarned = u64DtoSchemaResponseTransformer(data.totalUsdEarned);
1446
1449
  return data;
@@ -1524,6 +1527,8 @@ var tokenStatsDtoSchemaResponseTransformer = (data) => {
1524
1527
  data.buybackBurned = u64DtoSchemaResponseTransformer(data.buybackBurned);
1525
1528
  data.lpBurned = u64DtoSchemaResponseTransformer(data.lpBurned);
1526
1529
  data.totalBurned = u64DtoSchemaResponseTransformer(data.totalBurned);
1530
+ data.totalBuybackUsd = u64DtoSchemaResponseTransformer(data.totalBuybackUsd);
1531
+ data.totalMined = u64DtoSchemaResponseTransformer(data.totalMined);
1527
1532
  return data;
1528
1533
  };
1529
1534
  var getTokenStatsResponseTransformer = async (data) => {
@@ -2476,8 +2481,11 @@ var zPublicAutomationDto = z.object({
2476
2481
  remainingUsdAmount: zU64Dto,
2477
2482
  selectionMask: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2478
2483
  strategy: zAutomationStrategyDto,
2484
+ totalBtcEarned: zU64Dto,
2479
2485
  totalHashrateEarned: zU64Dto,
2480
2486
  totalSatsEarned: zU64Dto,
2487
+ totalTokenEarned: zU64Dto,
2488
+ totalTokenSharesEarned: zU64Dto,
2481
2489
  totalUsdDeployed: zU64Dto,
2482
2490
  totalUsdEarned: zU64Dto
2483
2491
  });
@@ -2851,7 +2859,9 @@ var zRoundDto = z.object({
2851
2859
  var zTokenStatsDto = z.object({
2852
2860
  buybackBurned: zU64Dto,
2853
2861
  lpBurned: zU64Dto,
2854
- totalBurned: zU64Dto
2862
+ totalBurned: zU64Dto,
2863
+ totalBuybackUsd: zU64Dto,
2864
+ totalMined: zU64Dto
2855
2865
  });
2856
2866
  var zTokenVaultDto = z.object({
2857
2867
  address: zPubkeyDto,
@@ -3763,7 +3773,7 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
3763
3773
  });
3764
3774
  }
3765
3775
  /**
3766
- * Request the protocol token stats: lifetime burned tokens, the protocol's buyback burns plus the LP wallet's burns
3776
+ * Request the protocol token stats: lifetime burned tokens (the protocol's buyback burns plus the LP wallet's burns), the USD spent on buybacks and the tokens mined
3767
3777
  */
3768
3778
  getTokenStats(options) {
3769
3779
  return (options?.client ?? this.client).get({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satrush/api",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",