@satrush/api 0.1.16 → 0.1.17

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.d.ts CHANGED
@@ -599,6 +599,7 @@ type EpochIterationWinnerDto = {
599
599
  */
600
600
  declare const EpochStateDto: {
601
601
  readonly OPEN: "open";
602
+ readonly SEALED: "sealed";
602
603
  readonly SETTLING: "settling";
603
604
  readonly SETTLED: "settled";
604
605
  readonly COMPLETE: "complete";
@@ -704,9 +705,17 @@ type EpochVaultIterationDto = {
704
705
  */
705
706
  winners?: Array<EpochWinnerDto> | null;
706
707
  /**
707
- * Null until the iteration is settled.
708
+ * Deprecated mirror of `winners_distributed` (rewards are
709
+ * crank-distributed since the rotor upgrade, no longer user-claimed) —
710
+ * kept for older frontends; remove once they migrate.
711
+ *
712
+ * @deprecated
708
713
  */
709
714
  winnersClaimed?: number | null;
715
+ /**
716
+ * Null until the iteration is settled.
717
+ */
718
+ winnersDistributed?: number | null;
710
719
  /**
711
720
  * Null until the iteration is settled.
712
721
  */
@@ -717,7 +726,15 @@ type EpochVaultIterationDto = {
717
726
  */
718
727
  type EpochWinnerDto = {
719
728
  authority: PubkeyDto;
729
+ /**
730
+ * Deprecated mirror of `distributed` (rewards are crank-distributed
731
+ * since the rotor upgrade, no longer user-claimed) — kept for older
732
+ * frontends; remove once they migrate.
733
+ *
734
+ * @deprecated
735
+ */
720
736
  claimed: boolean;
737
+ distributed: boolean;
721
738
  /**
722
739
  * Ticket weight removed from the draw when this winner was selected.
723
740
  */
@@ -966,6 +983,12 @@ type MinerDeploymentDto = {
966
983
  * Whether the platform crank deployed on the miner's behalf.
967
984
  */
968
985
  isAutomation: boolean;
986
+ /**
987
+ * Whether the play was paid from the miner's grubstake balance (its
988
+ * winnings return to that balance); `null` for deploys predating the
989
+ * flag.
990
+ */
991
+ isGrubstakeFunded?: boolean | null;
969
992
  /**
970
993
  * Whether winnings reloaded the automation escrow; automation only.
971
994
  */
@@ -1003,11 +1026,34 @@ type MinerDeploymentDto = {
1003
1026
  * A miner's accumulated protocol state, keyed by its authority wallet.
1004
1027
  */
1005
1028
  type MinerDto = {
1029
+ affiliate?: null | PubkeyDto;
1030
+ /**
1031
+ * Lifetime affiliate points accrued by referred deploys (USD base units).
1032
+ */
1033
+ affiliatePointsEarned: U64Dto;
1034
+ /**
1035
+ * Lifetime affiliate points exchanged for grubstake credits.
1036
+ */
1037
+ affiliatePointsSpent: U64Dto;
1038
+ /**
1039
+ * The wallet's affiliate share of the protocol fee leg, in bps; `null`
1040
+ * until it claims a tag.
1041
+ */
1042
+ affiliateRateBps?: number | null;
1006
1043
  authority: PubkeyDto;
1007
1044
  /**
1008
1045
  * Number of consecutive rounds played.
1009
1046
  */
1010
1047
  currentStreakCount: number;
1048
+ /**
1049
+ * When the grubstake balance stops being spendable; `null` until the
1050
+ * first grant.
1051
+ */
1052
+ grubstakeExpiresAt?: Date | null;
1053
+ /**
1054
+ * Indexed grubstake balance (bonus USD spendable only on rounds).
1055
+ */
1056
+ grubstakeUsdAmount: U64Dto;
1011
1057
  /**
1012
1058
  * Accumulated hashrate points.
1013
1059
  */
@@ -1021,6 +1067,10 @@ type MinerDto = {
1021
1067
  * indexer has recorded the miner (as are all lifetime totals below).
1022
1068
  */
1023
1069
  maxStreak: number;
1070
+ /**
1071
+ * The wallet's claimed affiliate tag; `null` until it claims one.
1072
+ */
1073
+ tag?: string | null;
1024
1074
  /**
1025
1075
  * Lifetime BTC received for claimed shares.
1026
1076
  */
@@ -1342,6 +1392,7 @@ type OneBtcIterationWinnerDto = {
1342
1392
  */
1343
1393
  declare const OneBtcStateDto: {
1344
1394
  readonly OPEN: "open";
1395
+ readonly SEALED: "sealed";
1345
1396
  readonly SETTLED: "settled";
1346
1397
  readonly COMPLETE: "complete";
1347
1398
  };
@@ -1471,6 +1522,10 @@ type PublicAutomationDto = {
1471
1522
  * indexer has recorded the session.
1472
1523
  */
1473
1524
  executedDeployments: number;
1525
+ /**
1526
+ * Whether the escrow is funded from the miner's grubstake balance.
1527
+ */
1528
+ isGrubstakeFunded: boolean;
1474
1529
  /**
1475
1530
  * Gross deploy size per round; all fee legs are deducted from it.
1476
1531
  */
@@ -1560,6 +1615,11 @@ type RoundDeploymentDto = {
1560
1615
  * Whether the platform crank deployed on the miner's behalf.
1561
1616
  */
1562
1617
  isAutomation: boolean;
1618
+ /**
1619
+ * Whether the play was paid from the miner's grubstake balance; `null`
1620
+ * for deploys predating the flag.
1621
+ */
1622
+ isGrubstakeFunded?: boolean | null;
1563
1623
  /**
1564
1624
  * Settlement outcome; `null` until the deployment is settled.
1565
1625
  */
@@ -3061,6 +3121,7 @@ declare const zEpochIterationParticipantsApiError500Error: z.ZodObject<{
3061
3121
  */
3062
3122
  declare const zEpochStateDto: z.ZodEnum<{
3063
3123
  open: "open";
3124
+ sealed: "sealed";
3064
3125
  settling: "settling";
3065
3126
  settled: "settled";
3066
3127
  complete: "complete";
@@ -3220,6 +3281,7 @@ declare const zOneBtcIterationParticipantsApiError500Error: z.ZodObject<{
3220
3281
  */
3221
3282
  declare const zOneBtcStateDto: z.ZodEnum<{
3222
3283
  open: "open";
3284
+ sealed: "sealed";
3223
3285
  settled: "settled";
3224
3286
  complete: "complete";
3225
3287
  }>;
@@ -3413,6 +3475,7 @@ declare const zEpochVaultEntryDto: z.ZodObject<{
3413
3475
  declare const zEpochWinnerDto: z.ZodObject<{
3414
3476
  authority: z.ZodString;
3415
3477
  claimed: z.ZodBoolean;
3478
+ distributed: z.ZodBoolean;
3416
3479
  tickets: z.ZodCoercedBigInt<unknown>;
3417
3480
  }, z.core.$strip>;
3418
3481
  /**
@@ -3427,6 +3490,7 @@ declare const zEpochVaultIterationDto: z.ZodObject<{
3427
3490
  participantsCount: z.ZodInt;
3428
3491
  state: z.ZodEnum<{
3429
3492
  open: "open";
3493
+ sealed: "sealed";
3430
3494
  settling: "settling";
3431
3495
  settled: "settled";
3432
3496
  complete: "complete";
@@ -3435,9 +3499,11 @@ declare const zEpochVaultIterationDto: z.ZodObject<{
3435
3499
  winners: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
3436
3500
  authority: z.ZodString;
3437
3501
  claimed: z.ZodBoolean;
3502
+ distributed: z.ZodBoolean;
3438
3503
  tickets: z.ZodCoercedBigInt<unknown>;
3439
3504
  }, z.core.$strip>>, z.ZodNull]>>;
3440
3505
  winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3506
+ winnersDistributed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3441
3507
  winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3442
3508
  }, z.core.$strip>;
3443
3509
  /**
@@ -3458,6 +3524,7 @@ declare const zEpochVaultDto: z.ZodObject<{
3458
3524
  participantsCount: z.ZodInt;
3459
3525
  state: z.ZodEnum<{
3460
3526
  open: "open";
3527
+ sealed: "sealed";
3461
3528
  settling: "settling";
3462
3529
  settled: "settled";
3463
3530
  complete: "complete";
@@ -3466,9 +3533,11 @@ declare const zEpochVaultDto: z.ZodObject<{
3466
3533
  winners: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
3467
3534
  authority: z.ZodString;
3468
3535
  claimed: z.ZodBoolean;
3536
+ distributed: z.ZodBoolean;
3469
3537
  tickets: z.ZodCoercedBigInt<unknown>;
3470
3538
  }, z.core.$strip>>, z.ZodNull]>>;
3471
3539
  winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3540
+ winnersDistributed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3472
3541
  winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3473
3542
  }, z.core.$strip>]>>;
3474
3543
  iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
@@ -3570,6 +3639,7 @@ declare const zMinerDeploymentDto: z.ZodObject<{
3570
3639
  deployment: z.ZodString;
3571
3640
  hashrateEarned: z.ZodCoercedBigInt<unknown>;
3572
3641
  isAutomation: z.ZodBoolean;
3642
+ isGrubstakeFunded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
3573
3643
  isReload: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
3574
3644
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
3575
3645
  roundId: z.ZodInt;
@@ -3583,11 +3653,18 @@ declare const zMinerDeploymentDto: z.ZodObject<{
3583
3653
  * A miner's accumulated protocol state, keyed by its authority wallet.
3584
3654
  */
3585
3655
  declare const zMinerDto: z.ZodObject<{
3656
+ affiliate: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
3657
+ affiliatePointsEarned: z.ZodCoercedBigInt<unknown>;
3658
+ affiliatePointsSpent: z.ZodCoercedBigInt<unknown>;
3659
+ affiliateRateBps: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3586
3660
  authority: z.ZodString;
3587
3661
  currentStreakCount: z.ZodInt;
3662
+ grubstakeExpiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3663
+ grubstakeUsdAmount: z.ZodCoercedBigInt<unknown>;
3588
3664
  hashrateAmount: z.ZodCoercedBigInt<unknown>;
3589
3665
  lastMinedRoundId: z.ZodInt;
3590
3666
  maxStreak: z.ZodInt;
3667
+ tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3591
3668
  totalBtcReceived: z.ZodCoercedBigInt<unknown>;
3592
3669
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
3593
3670
  totalRounds: z.ZodInt;
@@ -3729,6 +3806,7 @@ declare const zOneBtcVaultIterationDto: z.ZodObject<{
3729
3806
  prizeBtc: z.ZodCoercedBigInt<unknown>;
3730
3807
  state: z.ZodEnum<{
3731
3808
  open: "open";
3809
+ sealed: "sealed";
3732
3810
  settled: "settled";
3733
3811
  complete: "complete";
3734
3812
  }>;
@@ -3748,6 +3826,7 @@ declare const zOneBtcVaultDto: z.ZodObject<{
3748
3826
  prizeBtc: z.ZodCoercedBigInt<unknown>;
3749
3827
  state: z.ZodEnum<{
3750
3828
  open: "open";
3829
+ sealed: "sealed";
3751
3830
  settled: "settled";
3752
3831
  complete: "complete";
3753
3832
  }>;
@@ -3767,6 +3846,7 @@ declare const zOneBtcVaultDto: z.ZodObject<{
3767
3846
  declare const zPublicAutomationDto: z.ZodObject<{
3768
3847
  address: z.ZodString;
3769
3848
  executedDeployments: z.ZodInt;
3849
+ isGrubstakeFunded: z.ZodBoolean;
3770
3850
  perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
3771
3851
  reload: z.ZodBoolean;
3772
3852
  remainingDeployments: z.ZodInt;
@@ -3799,6 +3879,7 @@ declare const zProfileDto: z.ZodObject<{
3799
3879
  automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
3800
3880
  address: z.ZodString;
3801
3881
  executedDeployments: z.ZodInt;
3882
+ isGrubstakeFunded: z.ZodBoolean;
3802
3883
  perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
3803
3884
  reload: z.ZodBoolean;
3804
3885
  remainingDeployments: z.ZodInt;
@@ -3821,11 +3902,18 @@ declare const zProfileDto: z.ZodObject<{
3821
3902
  tickets: z.ZodCoercedBigInt<unknown>;
3822
3903
  }, z.core.$strip>>;
3823
3904
  miner: z.ZodObject<{
3905
+ affiliate: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
3906
+ affiliatePointsEarned: z.ZodCoercedBigInt<unknown>;
3907
+ affiliatePointsSpent: z.ZodCoercedBigInt<unknown>;
3908
+ affiliateRateBps: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
3824
3909
  authority: z.ZodString;
3825
3910
  currentStreakCount: z.ZodInt;
3911
+ grubstakeExpiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
3912
+ grubstakeUsdAmount: z.ZodCoercedBigInt<unknown>;
3826
3913
  hashrateAmount: z.ZodCoercedBigInt<unknown>;
3827
3914
  lastMinedRoundId: z.ZodInt;
3828
3915
  maxStreak: z.ZodInt;
3916
+ tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
3829
3917
  totalBtcReceived: z.ZodCoercedBigInt<unknown>;
3830
3918
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
3831
3919
  totalRounds: z.ZodInt;
@@ -3867,6 +3955,7 @@ declare const zRoundDeploymentDto: z.ZodObject<{
3867
3955
  deployment: z.ZodString;
3868
3956
  hashrateEarned: z.ZodCoercedBigInt<unknown>;
3869
3957
  isAutomation: z.ZodBoolean;
3958
+ isGrubstakeFunded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
3870
3959
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
3871
3960
  satsSharesEarned: z.ZodCoercedBigInt<unknown>;
3872
3961
  selectedTiles: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
@@ -3891,6 +3980,7 @@ declare const zRoundDetailsDto: z.ZodObject<{
3891
3980
  deployment: z.ZodString;
3892
3981
  hashrateEarned: z.ZodCoercedBigInt<unknown>;
3893
3982
  isAutomation: z.ZodBoolean;
3983
+ isGrubstakeFunded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
3894
3984
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
3895
3985
  satsSharesEarned: z.ZodCoercedBigInt<unknown>;
3896
3986
  selectedTiles: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
@@ -4092,6 +4182,7 @@ declare const zBoardDto: z.ZodObject<{
4092
4182
  participantsCount: z.ZodInt;
4093
4183
  state: z.ZodEnum<{
4094
4184
  open: "open";
4185
+ sealed: "sealed";
4095
4186
  settling: "settling";
4096
4187
  settled: "settled";
4097
4188
  complete: "complete";
@@ -4100,9 +4191,11 @@ declare const zBoardDto: z.ZodObject<{
4100
4191
  winners: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
4101
4192
  authority: z.ZodString;
4102
4193
  claimed: z.ZodBoolean;
4194
+ distributed: z.ZodBoolean;
4103
4195
  tickets: z.ZodCoercedBigInt<unknown>;
4104
4196
  }, z.core.$strip>>, z.ZodNull]>>;
4105
4197
  winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4198
+ winnersDistributed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4106
4199
  winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4107
4200
  }, z.core.$strip>]>>;
4108
4201
  iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
@@ -4125,6 +4218,7 @@ declare const zBoardDto: z.ZodObject<{
4125
4218
  prizeBtc: z.ZodCoercedBigInt<unknown>;
4126
4219
  state: z.ZodEnum<{
4127
4220
  open: "open";
4221
+ sealed: "sealed";
4128
4222
  settled: "settled";
4129
4223
  complete: "complete";
4130
4224
  }>;
@@ -4241,6 +4335,7 @@ declare const zSnapshotDto: z.ZodObject<{
4241
4335
  participantsCount: z.ZodInt;
4242
4336
  state: z.ZodEnum<{
4243
4337
  open: "open";
4338
+ sealed: "sealed";
4244
4339
  settling: "settling";
4245
4340
  settled: "settled";
4246
4341
  complete: "complete";
@@ -4249,9 +4344,11 @@ declare const zSnapshotDto: z.ZodObject<{
4249
4344
  winners: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
4250
4345
  authority: z.ZodString;
4251
4346
  claimed: z.ZodBoolean;
4347
+ distributed: z.ZodBoolean;
4252
4348
  tickets: z.ZodCoercedBigInt<unknown>;
4253
4349
  }, z.core.$strip>>, z.ZodNull]>>;
4254
4350
  winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4351
+ winnersDistributed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4255
4352
  winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4256
4353
  }, z.core.$strip>]>>;
4257
4354
  iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
@@ -4274,6 +4371,7 @@ declare const zSnapshotDto: z.ZodObject<{
4274
4371
  prizeBtc: z.ZodCoercedBigInt<unknown>;
4275
4372
  state: z.ZodEnum<{
4276
4373
  open: "open";
4374
+ sealed: "sealed";
4277
4375
  settled: "settled";
4278
4376
  complete: "complete";
4279
4377
  }>;
@@ -4350,6 +4448,7 @@ declare const zSnapshotDto: z.ZodObject<{
4350
4448
  automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
4351
4449
  address: z.ZodString;
4352
4450
  executedDeployments: z.ZodInt;
4451
+ isGrubstakeFunded: z.ZodBoolean;
4353
4452
  perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
4354
4453
  reload: z.ZodBoolean;
4355
4454
  remainingDeployments: z.ZodInt;
@@ -4372,11 +4471,18 @@ declare const zSnapshotDto: z.ZodObject<{
4372
4471
  tickets: z.ZodCoercedBigInt<unknown>;
4373
4472
  }, z.core.$strip>>;
4374
4473
  miner: z.ZodObject<{
4474
+ affiliate: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
4475
+ affiliatePointsEarned: z.ZodCoercedBigInt<unknown>;
4476
+ affiliatePointsSpent: z.ZodCoercedBigInt<unknown>;
4477
+ affiliateRateBps: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4375
4478
  authority: z.ZodString;
4376
4479
  currentStreakCount: z.ZodInt;
4480
+ grubstakeExpiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4481
+ grubstakeUsdAmount: z.ZodCoercedBigInt<unknown>;
4377
4482
  hashrateAmount: z.ZodCoercedBigInt<unknown>;
4378
4483
  lastMinedRoundId: z.ZodInt;
4379
4484
  maxStreak: z.ZodInt;
4485
+ tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
4380
4486
  totalBtcReceived: z.ZodCoercedBigInt<unknown>;
4381
4487
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
4382
4488
  totalRounds: z.ZodInt;
@@ -4453,6 +4559,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4453
4559
  participantsCount: z.ZodInt;
4454
4560
  state: z.ZodEnum<{
4455
4561
  open: "open";
4562
+ sealed: "sealed";
4456
4563
  settling: "settling";
4457
4564
  settled: "settled";
4458
4565
  complete: "complete";
@@ -4461,9 +4568,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4461
4568
  winners: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
4462
4569
  authority: z.ZodString;
4463
4570
  claimed: z.ZodBoolean;
4571
+ distributed: z.ZodBoolean;
4464
4572
  tickets: z.ZodCoercedBigInt<unknown>;
4465
4573
  }, z.core.$strip>>, z.ZodNull]>>;
4466
4574
  winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4575
+ winnersDistributed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4467
4576
  winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4468
4577
  }, z.core.$strip>]>>;
4469
4578
  iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
@@ -4486,6 +4595,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4486
4595
  prizeBtc: z.ZodCoercedBigInt<unknown>;
4487
4596
  state: z.ZodEnum<{
4488
4597
  open: "open";
4598
+ sealed: "sealed";
4489
4599
  settled: "settled";
4490
4600
  complete: "complete";
4491
4601
  }>;
@@ -4562,6 +4672,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4562
4672
  automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
4563
4673
  address: z.ZodString;
4564
4674
  executedDeployments: z.ZodInt;
4675
+ isGrubstakeFunded: z.ZodBoolean;
4565
4676
  perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
4566
4677
  reload: z.ZodBoolean;
4567
4678
  remainingDeployments: z.ZodInt;
@@ -4584,11 +4695,18 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
4584
4695
  tickets: z.ZodCoercedBigInt<unknown>;
4585
4696
  }, z.core.$strip>>;
4586
4697
  miner: z.ZodObject<{
4698
+ affiliate: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
4699
+ affiliatePointsEarned: z.ZodCoercedBigInt<unknown>;
4700
+ affiliatePointsSpent: z.ZodCoercedBigInt<unknown>;
4701
+ affiliateRateBps: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4587
4702
  authority: z.ZodString;
4588
4703
  currentStreakCount: z.ZodInt;
4704
+ grubstakeExpiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4705
+ grubstakeUsdAmount: z.ZodCoercedBigInt<unknown>;
4589
4706
  hashrateAmount: z.ZodCoercedBigInt<unknown>;
4590
4707
  lastMinedRoundId: z.ZodInt;
4591
4708
  maxStreak: z.ZodInt;
4709
+ tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
4592
4710
  totalBtcReceived: z.ZodCoercedBigInt<unknown>;
4593
4711
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
4594
4712
  totalRounds: z.ZodInt;
@@ -4671,6 +4789,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4671
4789
  participantsCount: z.ZodInt;
4672
4790
  state: z.ZodEnum<{
4673
4791
  open: "open";
4792
+ sealed: "sealed";
4674
4793
  settling: "settling";
4675
4794
  settled: "settled";
4676
4795
  complete: "complete";
@@ -4679,9 +4798,11 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4679
4798
  winners: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
4680
4799
  authority: z.ZodString;
4681
4800
  claimed: z.ZodBoolean;
4801
+ distributed: z.ZodBoolean;
4682
4802
  tickets: z.ZodCoercedBigInt<unknown>;
4683
4803
  }, z.core.$strip>>, z.ZodNull]>>;
4684
4804
  winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4805
+ winnersDistributed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4685
4806
  winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4686
4807
  }, z.core.$strip>]>>;
4687
4808
  iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
@@ -4704,6 +4825,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4704
4825
  prizeBtc: z.ZodCoercedBigInt<unknown>;
4705
4826
  state: z.ZodEnum<{
4706
4827
  open: "open";
4828
+ sealed: "sealed";
4707
4829
  settled: "settled";
4708
4830
  complete: "complete";
4709
4831
  }>;
@@ -4780,6 +4902,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4780
4902
  automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
4781
4903
  address: z.ZodString;
4782
4904
  executedDeployments: z.ZodInt;
4905
+ isGrubstakeFunded: z.ZodBoolean;
4783
4906
  perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
4784
4907
  reload: z.ZodBoolean;
4785
4908
  remainingDeployments: z.ZodInt;
@@ -4802,11 +4925,18 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
4802
4925
  tickets: z.ZodCoercedBigInt<unknown>;
4803
4926
  }, z.core.$strip>>;
4804
4927
  miner: z.ZodObject<{
4928
+ affiliate: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
4929
+ affiliatePointsEarned: z.ZodCoercedBigInt<unknown>;
4930
+ affiliatePointsSpent: z.ZodCoercedBigInt<unknown>;
4931
+ affiliateRateBps: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
4805
4932
  authority: z.ZodString;
4806
4933
  currentStreakCount: z.ZodInt;
4934
+ grubstakeExpiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
4935
+ grubstakeUsdAmount: z.ZodCoercedBigInt<unknown>;
4807
4936
  hashrateAmount: z.ZodCoercedBigInt<unknown>;
4808
4937
  lastMinedRoundId: z.ZodInt;
4809
4938
  maxStreak: z.ZodInt;
4939
+ tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
4810
4940
  totalBtcReceived: z.ZodCoercedBigInt<unknown>;
4811
4941
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
4812
4942
  totalRounds: z.ZodInt;
@@ -5180,6 +5310,7 @@ declare const zGetBoardResponse: z.ZodObject<{
5180
5310
  participantsCount: z.ZodInt;
5181
5311
  state: z.ZodEnum<{
5182
5312
  open: "open";
5313
+ sealed: "sealed";
5183
5314
  settling: "settling";
5184
5315
  settled: "settled";
5185
5316
  complete: "complete";
@@ -5188,9 +5319,11 @@ declare const zGetBoardResponse: z.ZodObject<{
5188
5319
  winners: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
5189
5320
  authority: z.ZodString;
5190
5321
  claimed: z.ZodBoolean;
5322
+ distributed: z.ZodBoolean;
5191
5323
  tickets: z.ZodCoercedBigInt<unknown>;
5192
5324
  }, z.core.$strip>>, z.ZodNull]>>;
5193
5325
  winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5326
+ winnersDistributed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5194
5327
  winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5195
5328
  }, z.core.$strip>]>>;
5196
5329
  iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
@@ -5213,6 +5346,7 @@ declare const zGetBoardResponse: z.ZodObject<{
5213
5346
  prizeBtc: z.ZodCoercedBigInt<unknown>;
5214
5347
  state: z.ZodEnum<{
5215
5348
  open: "open";
5349
+ sealed: "sealed";
5216
5350
  settled: "settled";
5217
5351
  complete: "complete";
5218
5352
  }>;
@@ -5659,6 +5793,7 @@ declare const zGetRoundResponse: z.ZodObject<{
5659
5793
  deployment: z.ZodString;
5660
5794
  hashrateEarned: z.ZodCoercedBigInt<unknown>;
5661
5795
  isAutomation: z.ZodBoolean;
5796
+ isGrubstakeFunded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
5662
5797
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
5663
5798
  satsSharesEarned: z.ZodCoercedBigInt<unknown>;
5664
5799
  selectedTiles: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
@@ -5762,6 +5897,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5762
5897
  participantsCount: z.ZodInt;
5763
5898
  state: z.ZodEnum<{
5764
5899
  open: "open";
5900
+ sealed: "sealed";
5765
5901
  settling: "settling";
5766
5902
  settled: "settled";
5767
5903
  complete: "complete";
@@ -5770,9 +5906,11 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5770
5906
  winners: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
5771
5907
  authority: z.ZodString;
5772
5908
  claimed: z.ZodBoolean;
5909
+ distributed: z.ZodBoolean;
5773
5910
  tickets: z.ZodCoercedBigInt<unknown>;
5774
5911
  }, z.core.$strip>>, z.ZodNull]>>;
5775
5912
  winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5913
+ winnersDistributed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5776
5914
  winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5777
5915
  }, z.core.$strip>]>>;
5778
5916
  iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
@@ -5795,6 +5933,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5795
5933
  prizeBtc: z.ZodCoercedBigInt<unknown>;
5796
5934
  state: z.ZodEnum<{
5797
5935
  open: "open";
5936
+ sealed: "sealed";
5798
5937
  settled: "settled";
5799
5938
  complete: "complete";
5800
5939
  }>;
@@ -5871,6 +6010,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5871
6010
  automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
5872
6011
  address: z.ZodString;
5873
6012
  executedDeployments: z.ZodInt;
6013
+ isGrubstakeFunded: z.ZodBoolean;
5874
6014
  perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
5875
6015
  reload: z.ZodBoolean;
5876
6016
  remainingDeployments: z.ZodInt;
@@ -5893,11 +6033,18 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
5893
6033
  tickets: z.ZodCoercedBigInt<unknown>;
5894
6034
  }, z.core.$strip>>;
5895
6035
  miner: z.ZodObject<{
6036
+ affiliate: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
6037
+ affiliatePointsEarned: z.ZodCoercedBigInt<unknown>;
6038
+ affiliatePointsSpent: z.ZodCoercedBigInt<unknown>;
6039
+ affiliateRateBps: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5896
6040
  authority: z.ZodString;
5897
6041
  currentStreakCount: z.ZodInt;
6042
+ grubstakeExpiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
6043
+ grubstakeUsdAmount: z.ZodCoercedBigInt<unknown>;
5898
6044
  hashrateAmount: z.ZodCoercedBigInt<unknown>;
5899
6045
  lastMinedRoundId: z.ZodInt;
5900
6046
  maxStreak: z.ZodInt;
6047
+ tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
5901
6048
  totalBtcReceived: z.ZodCoercedBigInt<unknown>;
5902
6049
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
5903
6050
  totalRounds: z.ZodInt;
@@ -5944,6 +6091,7 @@ declare const zGetUserProfileResponse: z.ZodObject<{
5944
6091
  automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
5945
6092
  address: z.ZodString;
5946
6093
  executedDeployments: z.ZodInt;
6094
+ isGrubstakeFunded: z.ZodBoolean;
5947
6095
  perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
5948
6096
  reload: z.ZodBoolean;
5949
6097
  remainingDeployments: z.ZodInt;
@@ -5966,11 +6114,18 @@ declare const zGetUserProfileResponse: z.ZodObject<{
5966
6114
  tickets: z.ZodCoercedBigInt<unknown>;
5967
6115
  }, z.core.$strip>>;
5968
6116
  miner: z.ZodObject<{
6117
+ affiliate: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
6118
+ affiliatePointsEarned: z.ZodCoercedBigInt<unknown>;
6119
+ affiliatePointsSpent: z.ZodCoercedBigInt<unknown>;
6120
+ affiliateRateBps: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
5969
6121
  authority: z.ZodString;
5970
6122
  currentStreakCount: z.ZodInt;
6123
+ grubstakeExpiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
6124
+ grubstakeUsdAmount: z.ZodCoercedBigInt<unknown>;
5971
6125
  hashrateAmount: z.ZodCoercedBigInt<unknown>;
5972
6126
  lastMinedRoundId: z.ZodInt;
5973
6127
  maxStreak: z.ZodInt;
6128
+ tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
5974
6129
  totalBtcReceived: z.ZodCoercedBigInt<unknown>;
5975
6130
  totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
5976
6131
  totalRounds: z.ZodInt;
@@ -6050,6 +6205,7 @@ declare const zGetUserDeploymentsResponse: z.ZodObject<{
6050
6205
  deployment: z.ZodString;
6051
6206
  hashrateEarned: z.ZodCoercedBigInt<unknown>;
6052
6207
  isAutomation: z.ZodBoolean;
6208
+ isGrubstakeFunded: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
6053
6209
  isReload: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
6054
6210
  isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
6055
6211
  roundId: z.ZodInt;