@satrush/api 0.1.27 → 0.1.29

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
@@ -1446,6 +1446,7 @@ var leaderboardPageEntryDtoSchemaResponseTransformer = (data) => {
1446
1446
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
1447
1447
  data.totalSatsEarned = u64DtoSchemaResponseTransformer(data.totalSatsEarned);
1448
1448
  data.totalStaked = u64DtoSchemaResponseTransformer(data.totalStaked);
1449
+ data.totalTokenMined = u64DtoSchemaResponseTransformer(data.totalTokenMined);
1449
1450
  data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
1450
1451
  return data;
1451
1452
  };
@@ -1492,6 +1493,7 @@ var walletLeaderboardDtoSchemaResponseTransformer = (data) => {
1492
1493
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
1493
1494
  data.totalSatsEarned = u64DtoSchemaResponseTransformer(data.totalSatsEarned);
1494
1495
  data.totalStaked = u64DtoSchemaResponseTransformer(data.totalStaked);
1496
+ data.totalTokenMined = u64DtoSchemaResponseTransformer(data.totalTokenMined);
1495
1497
  data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
1496
1498
  data.updatedAt = new Date(data.updatedAt);
1497
1499
  return data;
@@ -2062,7 +2064,8 @@ var zLeaderboardRanksDto = z.object({
2062
2064
  satsEarned: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2063
2065
  score: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2064
2066
  staked: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2065
- streak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2067
+ streak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2068
+ tokenMined: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2066
2069
  });
2067
2070
  var zLeaderboardSortDto = z.enum([
2068
2071
  "score",
@@ -2071,7 +2074,8 @@ var zLeaderboardSortDto = z.enum([
2071
2074
  "sats_earned",
2072
2075
  "hashrate",
2073
2076
  "streak",
2074
- "staked"
2077
+ "staked",
2078
+ "token_mined"
2075
2079
  ]);
2076
2080
  var zNotificationEntity = z.enum(["state_snapshot"]);
2077
2081
  var zOneBtcHistoryApiError400InvalidRange = z.object({
@@ -2455,6 +2459,7 @@ var zLeaderboardPageEntryDto = z.object({
2455
2459
  totalRoundsPlayed: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2456
2460
  totalSatsEarned: zU64Dto,
2457
2461
  totalStaked: zU64Dto,
2462
+ totalTokenMined: zU64Dto,
2458
2463
  totalUsdDeployed: zU64Dto
2459
2464
  });
2460
2465
  var zLeaderboardPageDto = z.object({
@@ -3087,6 +3092,7 @@ var zSatsVaultDto = z.object({
3087
3092
  var zStakingPositionDto = z.object({
3088
3093
  address: zPubkeyDto,
3089
3094
  authority: zPubkeyDto,
3095
+ autocompound: z.boolean(),
3090
3096
  shares: zU64Dto,
3091
3097
  unclaimedReward: zU64Dto
3092
3098
  });
@@ -3463,6 +3469,7 @@ var zWalletLeaderboardDto = z.object({
3463
3469
  totalRoundsPlayed: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
3464
3470
  totalSatsEarned: zU64Dto,
3465
3471
  totalStaked: zU64Dto,
3472
+ totalTokenMined: zU64Dto,
3466
3473
  totalUsdDeployed: zU64Dto,
3467
3474
  updatedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime())
3468
3475
  });
@@ -4356,7 +4363,8 @@ var LeaderboardSortDto = {
4356
4363
  SATS_EARNED: "sats_earned",
4357
4364
  HASHRATE: "hashrate",
4358
4365
  STREAK: "streak",
4359
- STAKED: "staked"
4366
+ STAKED: "staked",
4367
+ TOKEN_MINED: "token_mined"
4360
4368
  };
4361
4369
  var NotificationEntity = { STATE_SNAPSHOT: "state_snapshot" };
4362
4370
  var OneBtcStateDto = {
package/dist/index.d.cts CHANGED
@@ -1004,9 +1004,10 @@ type LeaderboardPageEntryDto = {
1004
1004
  */
1005
1005
  rank: number;
1006
1006
  /**
1007
- * Composite activity score:
1008
- * `(38·√usd_deployed + rounds) × (1 + days_active ÷ 24)`, with USD in
1009
- * whole dollars.
1007
+ * Composite activity score over the current season (Season 2, since
1008
+ * 2026-09-10T18:30:00Z): `(38·√usd_deployed + rounds) × (1 + days_active ÷ 24)`,
1009
+ * with USD in whole dollars, every input counting that season's
1010
+ * deployments only. All other stats are lifetime.
1010
1011
  */
1011
1012
  score: number;
1012
1013
  /**
@@ -1029,6 +1030,12 @@ type LeaderboardPageEntryDto = {
1029
1030
  * Currently staked base units; 0 for a wallet that never staked.
1030
1031
  */
1031
1032
  totalStaked: U64Dto;
1033
+ /**
1034
+ * Lifetime SatRush tokens (base units) mined: the tokens deposited into
1035
+ * the Token Vault for the wallet's winnings across its settled
1036
+ * deployments.
1037
+ */
1038
+ totalTokenMined: U64Dto;
1032
1039
  /**
1033
1040
  * Lifetime gross USD deployed.
1034
1041
  */
@@ -1045,6 +1052,7 @@ type LeaderboardRanksDto = {
1045
1052
  score: number;
1046
1053
  staked: number;
1047
1054
  streak: number;
1055
+ tokenMined: number;
1048
1056
  };
1049
1057
  /**
1050
1058
  * Sort key of a general-leaderboard page; always descending.
@@ -1057,6 +1065,7 @@ declare const LeaderboardSortDto: {
1057
1065
  readonly HASHRATE: "hashrate";
1058
1066
  readonly STREAK: "streak";
1059
1067
  readonly STAKED: "staked";
1068
+ readonly TOKEN_MINED: "token_mined";
1060
1069
  };
1061
1070
  /**
1062
1071
  * Sort key of a general-leaderboard page; always descending.
@@ -2338,6 +2347,12 @@ type StakingPositionDto = {
2338
2347
  */
2339
2348
  address: PubkeyDto;
2340
2349
  authority: PubkeyDto;
2350
+ /**
2351
+ * Whether the position opted in to autocompounding: the treasury's
2352
+ * compound authority (the gamekeeper) may claim its reward, swap it
2353
+ * into the staked token and stake it back on its behalf.
2354
+ */
2355
+ autocompound: boolean;
2341
2356
  /**
2342
2357
  * Staked base units (1 share = 1 unit).
2343
2358
  */
@@ -2717,9 +2732,10 @@ type WalletLeaderboardDto = {
2717
2732
  maxStreak: number;
2718
2733
  ranks: LeaderboardRanksDto;
2719
2734
  /**
2720
- * Composite activity score:
2721
- * `(38·√usd_deployed + rounds) × (1 + days_active ÷ 24)`, with USD in
2722
- * whole dollars.
2735
+ * Composite activity score over the current season (Season 2, since
2736
+ * 2026-09-10T18:30:00Z): `(38·√usd_deployed + rounds) × (1 + days_active ÷ 24)`,
2737
+ * with USD in whole dollars, every input counting that season's
2738
+ * deployments only. All other stats are lifetime.
2723
2739
  */
2724
2740
  score: number;
2725
2741
  /**
@@ -2742,6 +2758,12 @@ type WalletLeaderboardDto = {
2742
2758
  * Currently staked base units; 0 for a wallet that never staked.
2743
2759
  */
2744
2760
  totalStaked: U64Dto;
2761
+ /**
2762
+ * Lifetime SatRush tokens (base units) mined: the tokens deposited into
2763
+ * the Token Vault for the wallet's winnings across its settled
2764
+ * deployments.
2765
+ */
2766
+ totalTokenMined: U64Dto;
2745
2767
  /**
2746
2768
  * Lifetime gross USD deployed.
2747
2769
  */
@@ -4031,6 +4053,7 @@ declare const zLeaderboardRanksDto: z.ZodObject<{
4031
4053
  score: z.ZodInt;
4032
4054
  staked: z.ZodInt;
4033
4055
  streak: z.ZodInt;
4056
+ tokenMined: z.ZodInt;
4034
4057
  }, z.core.$strip>;
4035
4058
  /**
4036
4059
  * Sort key of a general-leaderboard page; always descending.
@@ -4043,6 +4066,7 @@ declare const zLeaderboardSortDto: z.ZodEnum<{
4043
4066
  hashrate: "hashrate";
4044
4067
  streak: "streak";
4045
4068
  staked: "staked";
4069
+ token_mined: "token_mined";
4046
4070
  }>;
4047
4071
  declare const zNotificationEntity: z.ZodEnum<{
4048
4072
  state_snapshot: "state_snapshot";
@@ -4514,6 +4538,7 @@ declare const zLeaderboardPageEntryDto: z.ZodObject<{
4514
4538
  totalRoundsPlayed: z.ZodInt;
4515
4539
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
4516
4540
  totalStaked: z.ZodCoercedBigInt<unknown>;
4541
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
4517
4542
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
4518
4543
  }, z.core.$strip>;
4519
4544
  /**
@@ -4531,6 +4556,7 @@ declare const zLeaderboardPageDto: z.ZodObject<{
4531
4556
  totalRoundsPlayed: z.ZodInt;
4532
4557
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
4533
4558
  totalStaked: z.ZodCoercedBigInt<unknown>;
4559
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
4534
4560
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
4535
4561
  }, z.core.$strip>>;
4536
4562
  total: z.ZodInt;
@@ -5095,6 +5121,7 @@ declare const zSatsVaultDto: z.ZodObject<{
5095
5121
  declare const zStakingPositionDto: z.ZodObject<{
5096
5122
  address: z.ZodString;
5097
5123
  authority: z.ZodString;
5124
+ autocompound: z.ZodBoolean;
5098
5125
  shares: z.ZodCoercedBigInt<unknown>;
5099
5126
  unclaimedReward: z.ZodCoercedBigInt<unknown>;
5100
5127
  }, z.core.$strip>;
@@ -6517,6 +6544,7 @@ declare const zWalletLeaderboardDto: z.ZodObject<{
6517
6544
  score: z.ZodInt;
6518
6545
  staked: z.ZodInt;
6519
6546
  streak: z.ZodInt;
6547
+ tokenMined: z.ZodInt;
6520
6548
  }, z.core.$strip>;
6521
6549
  score: z.ZodNumber;
6522
6550
  tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -6524,6 +6552,7 @@ declare const zWalletLeaderboardDto: z.ZodObject<{
6524
6552
  totalRoundsPlayed: z.ZodInt;
6525
6553
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
6526
6554
  totalStaked: z.ZodCoercedBigInt<unknown>;
6555
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
6527
6556
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
6528
6557
  updatedAt: z.ZodPreprocess<z.ZodISODateTime>;
6529
6558
  }, z.core.$strip>;
@@ -6857,6 +6886,7 @@ declare const zGetLeaderboardData: z.ZodObject<{
6857
6886
  hashrate: "hashrate";
6858
6887
  streak: "streak";
6859
6888
  staked: "staked";
6889
+ token_mined: "token_mined";
6860
6890
  }>>;
6861
6891
  offset: z.ZodOptional<z.ZodInt>;
6862
6892
  limit: z.ZodOptional<z.ZodInt>;
@@ -6875,6 +6905,7 @@ declare const zGetLeaderboardResponse: z.ZodObject<{
6875
6905
  totalRoundsPlayed: z.ZodInt;
6876
6906
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
6877
6907
  totalStaked: z.ZodCoercedBigInt<unknown>;
6908
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
6878
6909
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
6879
6910
  }, z.core.$strip>>;
6880
6911
  total: z.ZodInt;
@@ -6974,6 +7005,7 @@ declare const zGetWalletLeaderboardResponse: z.ZodObject<{
6974
7005
  score: z.ZodInt;
6975
7006
  staked: z.ZodInt;
6976
7007
  streak: z.ZodInt;
7008
+ tokenMined: z.ZodInt;
6977
7009
  }, z.core.$strip>;
6978
7010
  score: z.ZodNumber;
6979
7011
  tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -6981,6 +7013,7 @@ declare const zGetWalletLeaderboardResponse: z.ZodObject<{
6981
7013
  totalRoundsPlayed: z.ZodInt;
6982
7014
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
6983
7015
  totalStaked: z.ZodCoercedBigInt<unknown>;
7016
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
6984
7017
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
6985
7018
  updatedAt: z.ZodPreprocess<z.ZodISODateTime>;
6986
7019
  }, z.core.$strip>;
@@ -7829,6 +7862,7 @@ declare const zGetUserStakingResponse: z.ZodObject<{
7829
7862
  data: z.ZodObject<{
7830
7863
  address: z.ZodString;
7831
7864
  authority: z.ZodString;
7865
+ autocompound: z.ZodBoolean;
7832
7866
  shares: z.ZodCoercedBigInt<unknown>;
7833
7867
  unclaimedReward: z.ZodCoercedBigInt<unknown>;
7834
7868
  }, z.core.$strip>;
package/dist/index.d.ts CHANGED
@@ -1004,9 +1004,10 @@ type LeaderboardPageEntryDto = {
1004
1004
  */
1005
1005
  rank: number;
1006
1006
  /**
1007
- * Composite activity score:
1008
- * `(38·√usd_deployed + rounds) × (1 + days_active ÷ 24)`, with USD in
1009
- * whole dollars.
1007
+ * Composite activity score over the current season (Season 2, since
1008
+ * 2026-09-10T18:30:00Z): `(38·√usd_deployed + rounds) × (1 + days_active ÷ 24)`,
1009
+ * with USD in whole dollars, every input counting that season's
1010
+ * deployments only. All other stats are lifetime.
1010
1011
  */
1011
1012
  score: number;
1012
1013
  /**
@@ -1029,6 +1030,12 @@ type LeaderboardPageEntryDto = {
1029
1030
  * Currently staked base units; 0 for a wallet that never staked.
1030
1031
  */
1031
1032
  totalStaked: U64Dto;
1033
+ /**
1034
+ * Lifetime SatRush tokens (base units) mined: the tokens deposited into
1035
+ * the Token Vault for the wallet's winnings across its settled
1036
+ * deployments.
1037
+ */
1038
+ totalTokenMined: U64Dto;
1032
1039
  /**
1033
1040
  * Lifetime gross USD deployed.
1034
1041
  */
@@ -1045,6 +1052,7 @@ type LeaderboardRanksDto = {
1045
1052
  score: number;
1046
1053
  staked: number;
1047
1054
  streak: number;
1055
+ tokenMined: number;
1048
1056
  };
1049
1057
  /**
1050
1058
  * Sort key of a general-leaderboard page; always descending.
@@ -1057,6 +1065,7 @@ declare const LeaderboardSortDto: {
1057
1065
  readonly HASHRATE: "hashrate";
1058
1066
  readonly STREAK: "streak";
1059
1067
  readonly STAKED: "staked";
1068
+ readonly TOKEN_MINED: "token_mined";
1060
1069
  };
1061
1070
  /**
1062
1071
  * Sort key of a general-leaderboard page; always descending.
@@ -2338,6 +2347,12 @@ type StakingPositionDto = {
2338
2347
  */
2339
2348
  address: PubkeyDto;
2340
2349
  authority: PubkeyDto;
2350
+ /**
2351
+ * Whether the position opted in to autocompounding: the treasury's
2352
+ * compound authority (the gamekeeper) may claim its reward, swap it
2353
+ * into the staked token and stake it back on its behalf.
2354
+ */
2355
+ autocompound: boolean;
2341
2356
  /**
2342
2357
  * Staked base units (1 share = 1 unit).
2343
2358
  */
@@ -2717,9 +2732,10 @@ type WalletLeaderboardDto = {
2717
2732
  maxStreak: number;
2718
2733
  ranks: LeaderboardRanksDto;
2719
2734
  /**
2720
- * Composite activity score:
2721
- * `(38·√usd_deployed + rounds) × (1 + days_active ÷ 24)`, with USD in
2722
- * whole dollars.
2735
+ * Composite activity score over the current season (Season 2, since
2736
+ * 2026-09-10T18:30:00Z): `(38·√usd_deployed + rounds) × (1 + days_active ÷ 24)`,
2737
+ * with USD in whole dollars, every input counting that season's
2738
+ * deployments only. All other stats are lifetime.
2723
2739
  */
2724
2740
  score: number;
2725
2741
  /**
@@ -2742,6 +2758,12 @@ type WalletLeaderboardDto = {
2742
2758
  * Currently staked base units; 0 for a wallet that never staked.
2743
2759
  */
2744
2760
  totalStaked: U64Dto;
2761
+ /**
2762
+ * Lifetime SatRush tokens (base units) mined: the tokens deposited into
2763
+ * the Token Vault for the wallet's winnings across its settled
2764
+ * deployments.
2765
+ */
2766
+ totalTokenMined: U64Dto;
2745
2767
  /**
2746
2768
  * Lifetime gross USD deployed.
2747
2769
  */
@@ -4031,6 +4053,7 @@ declare const zLeaderboardRanksDto: z.ZodObject<{
4031
4053
  score: z.ZodInt;
4032
4054
  staked: z.ZodInt;
4033
4055
  streak: z.ZodInt;
4056
+ tokenMined: z.ZodInt;
4034
4057
  }, z.core.$strip>;
4035
4058
  /**
4036
4059
  * Sort key of a general-leaderboard page; always descending.
@@ -4043,6 +4066,7 @@ declare const zLeaderboardSortDto: z.ZodEnum<{
4043
4066
  hashrate: "hashrate";
4044
4067
  streak: "streak";
4045
4068
  staked: "staked";
4069
+ token_mined: "token_mined";
4046
4070
  }>;
4047
4071
  declare const zNotificationEntity: z.ZodEnum<{
4048
4072
  state_snapshot: "state_snapshot";
@@ -4514,6 +4538,7 @@ declare const zLeaderboardPageEntryDto: z.ZodObject<{
4514
4538
  totalRoundsPlayed: z.ZodInt;
4515
4539
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
4516
4540
  totalStaked: z.ZodCoercedBigInt<unknown>;
4541
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
4517
4542
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
4518
4543
  }, z.core.$strip>;
4519
4544
  /**
@@ -4531,6 +4556,7 @@ declare const zLeaderboardPageDto: z.ZodObject<{
4531
4556
  totalRoundsPlayed: z.ZodInt;
4532
4557
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
4533
4558
  totalStaked: z.ZodCoercedBigInt<unknown>;
4559
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
4534
4560
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
4535
4561
  }, z.core.$strip>>;
4536
4562
  total: z.ZodInt;
@@ -5095,6 +5121,7 @@ declare const zSatsVaultDto: z.ZodObject<{
5095
5121
  declare const zStakingPositionDto: z.ZodObject<{
5096
5122
  address: z.ZodString;
5097
5123
  authority: z.ZodString;
5124
+ autocompound: z.ZodBoolean;
5098
5125
  shares: z.ZodCoercedBigInt<unknown>;
5099
5126
  unclaimedReward: z.ZodCoercedBigInt<unknown>;
5100
5127
  }, z.core.$strip>;
@@ -6517,6 +6544,7 @@ declare const zWalletLeaderboardDto: z.ZodObject<{
6517
6544
  score: z.ZodInt;
6518
6545
  staked: z.ZodInt;
6519
6546
  streak: z.ZodInt;
6547
+ tokenMined: z.ZodInt;
6520
6548
  }, z.core.$strip>;
6521
6549
  score: z.ZodNumber;
6522
6550
  tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -6524,6 +6552,7 @@ declare const zWalletLeaderboardDto: z.ZodObject<{
6524
6552
  totalRoundsPlayed: z.ZodInt;
6525
6553
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
6526
6554
  totalStaked: z.ZodCoercedBigInt<unknown>;
6555
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
6527
6556
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
6528
6557
  updatedAt: z.ZodPreprocess<z.ZodISODateTime>;
6529
6558
  }, z.core.$strip>;
@@ -6857,6 +6886,7 @@ declare const zGetLeaderboardData: z.ZodObject<{
6857
6886
  hashrate: "hashrate";
6858
6887
  streak: "streak";
6859
6888
  staked: "staked";
6889
+ token_mined: "token_mined";
6860
6890
  }>>;
6861
6891
  offset: z.ZodOptional<z.ZodInt>;
6862
6892
  limit: z.ZodOptional<z.ZodInt>;
@@ -6875,6 +6905,7 @@ declare const zGetLeaderboardResponse: z.ZodObject<{
6875
6905
  totalRoundsPlayed: z.ZodInt;
6876
6906
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
6877
6907
  totalStaked: z.ZodCoercedBigInt<unknown>;
6908
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
6878
6909
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
6879
6910
  }, z.core.$strip>>;
6880
6911
  total: z.ZodInt;
@@ -6974,6 +7005,7 @@ declare const zGetWalletLeaderboardResponse: z.ZodObject<{
6974
7005
  score: z.ZodInt;
6975
7006
  staked: z.ZodInt;
6976
7007
  streak: z.ZodInt;
7008
+ tokenMined: z.ZodInt;
6977
7009
  }, z.core.$strip>;
6978
7010
  score: z.ZodNumber;
6979
7011
  tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -6981,6 +7013,7 @@ declare const zGetWalletLeaderboardResponse: z.ZodObject<{
6981
7013
  totalRoundsPlayed: z.ZodInt;
6982
7014
  totalSatsEarned: z.ZodCoercedBigInt<unknown>;
6983
7015
  totalStaked: z.ZodCoercedBigInt<unknown>;
7016
+ totalTokenMined: z.ZodCoercedBigInt<unknown>;
6984
7017
  totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
6985
7018
  updatedAt: z.ZodPreprocess<z.ZodISODateTime>;
6986
7019
  }, z.core.$strip>;
@@ -7829,6 +7862,7 @@ declare const zGetUserStakingResponse: z.ZodObject<{
7829
7862
  data: z.ZodObject<{
7830
7863
  address: z.ZodString;
7831
7864
  authority: z.ZodString;
7865
+ autocompound: z.ZodBoolean;
7832
7866
  shares: z.ZodCoercedBigInt<unknown>;
7833
7867
  unclaimedReward: z.ZodCoercedBigInt<unknown>;
7834
7868
  }, z.core.$strip>;
package/dist/index.js CHANGED
@@ -1187,6 +1187,7 @@ var leaderboardPageEntryDtoSchemaResponseTransformer = (data) => {
1187
1187
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
1188
1188
  data.totalSatsEarned = u64DtoSchemaResponseTransformer(data.totalSatsEarned);
1189
1189
  data.totalStaked = u64DtoSchemaResponseTransformer(data.totalStaked);
1190
+ data.totalTokenMined = u64DtoSchemaResponseTransformer(data.totalTokenMined);
1190
1191
  data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
1191
1192
  return data;
1192
1193
  };
@@ -1233,6 +1234,7 @@ var walletLeaderboardDtoSchemaResponseTransformer = (data) => {
1233
1234
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
1234
1235
  data.totalSatsEarned = u64DtoSchemaResponseTransformer(data.totalSatsEarned);
1235
1236
  data.totalStaked = u64DtoSchemaResponseTransformer(data.totalStaked);
1237
+ data.totalTokenMined = u64DtoSchemaResponseTransformer(data.totalTokenMined);
1236
1238
  data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
1237
1239
  data.updatedAt = new Date(data.updatedAt);
1238
1240
  return data;
@@ -1803,7 +1805,8 @@ var zLeaderboardRanksDto = z.object({
1803
1805
  satsEarned: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1804
1806
  score: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1805
1807
  staked: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1806
- streak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1808
+ streak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1809
+ tokenMined: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1807
1810
  });
1808
1811
  var zLeaderboardSortDto = z.enum([
1809
1812
  "score",
@@ -1812,7 +1815,8 @@ var zLeaderboardSortDto = z.enum([
1812
1815
  "sats_earned",
1813
1816
  "hashrate",
1814
1817
  "streak",
1815
- "staked"
1818
+ "staked",
1819
+ "token_mined"
1816
1820
  ]);
1817
1821
  var zNotificationEntity = z.enum(["state_snapshot"]);
1818
1822
  var zOneBtcHistoryApiError400InvalidRange = z.object({
@@ -2196,6 +2200,7 @@ var zLeaderboardPageEntryDto = z.object({
2196
2200
  totalRoundsPlayed: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2197
2201
  totalSatsEarned: zU64Dto,
2198
2202
  totalStaked: zU64Dto,
2203
+ totalTokenMined: zU64Dto,
2199
2204
  totalUsdDeployed: zU64Dto
2200
2205
  });
2201
2206
  var zLeaderboardPageDto = z.object({
@@ -2828,6 +2833,7 @@ var zSatsVaultDto = z.object({
2828
2833
  var zStakingPositionDto = z.object({
2829
2834
  address: zPubkeyDto,
2830
2835
  authority: zPubkeyDto,
2836
+ autocompound: z.boolean(),
2831
2837
  shares: zU64Dto,
2832
2838
  unclaimedReward: zU64Dto
2833
2839
  });
@@ -3204,6 +3210,7 @@ var zWalletLeaderboardDto = z.object({
3204
3210
  totalRoundsPlayed: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
3205
3211
  totalSatsEarned: zU64Dto,
3206
3212
  totalStaked: zU64Dto,
3213
+ totalTokenMined: zU64Dto,
3207
3214
  totalUsdDeployed: zU64Dto,
3208
3215
  updatedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime())
3209
3216
  });
@@ -4097,7 +4104,8 @@ var LeaderboardSortDto = {
4097
4104
  SATS_EARNED: "sats_earned",
4098
4105
  HASHRATE: "hashrate",
4099
4106
  STREAK: "streak",
4100
- STAKED: "staked"
4107
+ STAKED: "staked",
4108
+ TOKEN_MINED: "token_mined"
4101
4109
  };
4102
4110
  var NotificationEntity = { STATE_SNAPSHOT: "state_snapshot" };
4103
4111
  var OneBtcStateDto = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satrush/api",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",