@satrush/api 0.1.5 → 0.1.6
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 +170 -15
- package/dist/index.d.cts +465 -24
- package/dist/index.d.ts +465 -24
- package/dist/index.js +163 -15
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -352,6 +352,11 @@ type BoardDto = {
|
|
|
352
352
|
*/
|
|
353
353
|
oneBtcVault: OneBtcVaultDto;
|
|
354
354
|
previousRound?: null | RoundDto;
|
|
355
|
+
/**
|
|
356
|
+
* Outcomes of the most recently revealed rounds, newest first (indexed
|
|
357
|
+
* history; empty until the indexer has recorded revealed rounds).
|
|
358
|
+
*/
|
|
359
|
+
previousRounds: Array<PreviousRoundDto>;
|
|
355
360
|
/**
|
|
356
361
|
* Live token prices.
|
|
357
362
|
*/
|
|
@@ -491,6 +496,62 @@ type I64Dto = bigint;
|
|
|
491
496
|
type InternalErrorCodeErrorBody = {
|
|
492
497
|
code: 'internal_error';
|
|
493
498
|
};
|
|
499
|
+
/**
|
|
500
|
+
* A miner's deployment as recorded by the rounds indexer: the deploy itself
|
|
501
|
+
* plus its settlement outcome once the round is settled.
|
|
502
|
+
*/
|
|
503
|
+
type MinerDeploymentDto = {
|
|
504
|
+
authority: PubkeyDto;
|
|
505
|
+
deployedAt: Date;
|
|
506
|
+
/**
|
|
507
|
+
* Gross USD deployed onto the round.
|
|
508
|
+
*/
|
|
509
|
+
deployedUsdAmount: U64Dto;
|
|
510
|
+
/**
|
|
511
|
+
* The on-chain PublicDeployment account address.
|
|
512
|
+
*/
|
|
513
|
+
deployment: PubkeyDto;
|
|
514
|
+
/**
|
|
515
|
+
* Hashrate points earned on settlement.
|
|
516
|
+
*/
|
|
517
|
+
hashrateEarned: U64Dto;
|
|
518
|
+
/**
|
|
519
|
+
* Whether the platform crank deployed on the miner's behalf.
|
|
520
|
+
*/
|
|
521
|
+
isAutomation: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* Whether winnings reloaded the automation escrow; automation only.
|
|
524
|
+
*/
|
|
525
|
+
isReload?: boolean | null;
|
|
526
|
+
/**
|
|
527
|
+
* Settlement outcome; `null` until the deployment is settled.
|
|
528
|
+
*/
|
|
529
|
+
isWon?: boolean | null;
|
|
530
|
+
/**
|
|
531
|
+
* Round this deployment belongs to.
|
|
532
|
+
*/
|
|
533
|
+
roundId: number;
|
|
534
|
+
/**
|
|
535
|
+
* Sats Vault shares earned on settlement.
|
|
536
|
+
*/
|
|
537
|
+
satsSharesEarned: U64Dto;
|
|
538
|
+
/**
|
|
539
|
+
* 21-bit mask of the selected tiles; unknown until revealed.
|
|
540
|
+
*/
|
|
541
|
+
selectedTiles?: number | null;
|
|
542
|
+
/**
|
|
543
|
+
* `null` until the deployment is settled.
|
|
544
|
+
*/
|
|
545
|
+
settledAt?: Date | null;
|
|
546
|
+
/**
|
|
547
|
+
* Total USD stake across the deployment's selected tiles.
|
|
548
|
+
*/
|
|
549
|
+
totalUsdStakeAmount: U64Dto;
|
|
550
|
+
/**
|
|
551
|
+
* USD winnings earned on settlement.
|
|
552
|
+
*/
|
|
553
|
+
usdEarned: U64Dto;
|
|
554
|
+
};
|
|
494
555
|
/**
|
|
495
556
|
* A miner's accumulated protocol state, keyed by its authority wallet.
|
|
496
557
|
*/
|
|
@@ -508,14 +569,66 @@ type MinerDto = {
|
|
|
508
569
|
* Id of the last round the miner played.
|
|
509
570
|
*/
|
|
510
571
|
lastMinedRoundId: number;
|
|
572
|
+
/**
|
|
573
|
+
* Longest streak of consecutive rounds ever played. Zero until the
|
|
574
|
+
* indexer has recorded the miner (as are all lifetime totals below).
|
|
575
|
+
*/
|
|
576
|
+
maxStreak: number;
|
|
577
|
+
/**
|
|
578
|
+
* Lifetime BTC received for claimed shares.
|
|
579
|
+
*/
|
|
580
|
+
totalBtcReceived: U64Dto;
|
|
581
|
+
/**
|
|
582
|
+
* Lifetime hashrate points earned; deferred bonuses count at sats claim.
|
|
583
|
+
*/
|
|
584
|
+
totalHashrateEarned: U64Dto;
|
|
585
|
+
/**
|
|
586
|
+
* Lifetime count of rounds played.
|
|
587
|
+
*/
|
|
588
|
+
totalRounds: number;
|
|
589
|
+
/**
|
|
590
|
+
* Lifetime Sats Vault shares claimed.
|
|
591
|
+
*/
|
|
592
|
+
totalSatsClaimed: U64Dto;
|
|
593
|
+
/**
|
|
594
|
+
* Lifetime sats winnings settled.
|
|
595
|
+
*/
|
|
596
|
+
totalSatsEarned: U64Dto;
|
|
597
|
+
/**
|
|
598
|
+
* Lifetime USD claimed.
|
|
599
|
+
*/
|
|
600
|
+
totalUsdClaimed: U64Dto;
|
|
601
|
+
/**
|
|
602
|
+
* Lifetime gross USD deployed.
|
|
603
|
+
*/
|
|
604
|
+
totalUsdDeployed: U64Dto;
|
|
605
|
+
/**
|
|
606
|
+
* Lifetime USD winnings settled.
|
|
607
|
+
*/
|
|
608
|
+
totalUsdEarned: U64Dto;
|
|
609
|
+
/**
|
|
610
|
+
* Deferred hashrate bonus, converted into `hashrate_amount` on sats claim.
|
|
611
|
+
*/
|
|
612
|
+
unclaimedHashrateAmount: U64Dto;
|
|
511
613
|
/**
|
|
512
614
|
* BTC shares in the Sats Vault not yet claimed.
|
|
513
615
|
*/
|
|
514
|
-
|
|
616
|
+
unclaimedSatsShares: U64Dto;
|
|
515
617
|
/**
|
|
516
618
|
* USD rewards not yet claimed.
|
|
517
619
|
*/
|
|
518
620
|
unclaimedUsdAmount: U64Dto;
|
|
621
|
+
/**
|
|
622
|
+
* Sats Vault shares pending deployment settlement, estimated at the
|
|
623
|
+
* vault's current exchange rate.
|
|
624
|
+
*/
|
|
625
|
+
unsettledSatsShares: U64Dto;
|
|
626
|
+
/**
|
|
627
|
+
* USD winnings on settled rounds pending deployment settlement. Derived
|
|
628
|
+
* from the miner's open deployments; includes amounts an automation
|
|
629
|
+
* reload would route past the miner account.
|
|
630
|
+
*/
|
|
631
|
+
unsettledUsdAmount: U64Dto;
|
|
519
632
|
};
|
|
520
633
|
declare const NotificationEntity: {
|
|
521
634
|
readonly STATE_SNAPSHOT: "state_snapshot";
|
|
@@ -592,6 +705,15 @@ type OneBtcVaultIterationDto = {
|
|
|
592
705
|
totalTickets: U64Dto;
|
|
593
706
|
winningTicket?: null | U64Dto;
|
|
594
707
|
};
|
|
708
|
+
/**
|
|
709
|
+
* A past round's outcome from the indexed history.
|
|
710
|
+
*/
|
|
711
|
+
type PreviousRoundDto = {
|
|
712
|
+
/**
|
|
713
|
+
* The tile that won the round.
|
|
714
|
+
*/
|
|
715
|
+
winningTile: number;
|
|
716
|
+
};
|
|
595
717
|
/**
|
|
596
718
|
* Live token prices observed by the service.
|
|
597
719
|
*/
|
|
@@ -639,13 +761,22 @@ type PubkeyDto = string;
|
|
|
639
761
|
type PublicAutomationDto = {
|
|
640
762
|
address: PubkeyDto;
|
|
641
763
|
/**
|
|
642
|
-
*
|
|
764
|
+
* Rounds the platform crank has played for this session. Zero until the
|
|
765
|
+
* indexer has recorded the session.
|
|
766
|
+
*/
|
|
767
|
+
executedDeployments: number;
|
|
768
|
+
/**
|
|
769
|
+
* Gross deploy size per round; all fee legs are deducted from it.
|
|
643
770
|
*/
|
|
644
771
|
perRoundUsdAmount: U64Dto;
|
|
645
772
|
/**
|
|
646
773
|
* Whether settled USD winnings reload the remaining amount.
|
|
647
774
|
*/
|
|
648
775
|
reload: boolean;
|
|
776
|
+
/**
|
|
777
|
+
* Full rounds the remaining escrow can still cover.
|
|
778
|
+
*/
|
|
779
|
+
remainingDeployments: number;
|
|
649
780
|
/**
|
|
650
781
|
* Escrowed funds still available.
|
|
651
782
|
*/
|
|
@@ -659,6 +790,22 @@ type PublicAutomationDto = {
|
|
|
659
790
|
* Tile-selection strategy.
|
|
660
791
|
*/
|
|
661
792
|
strategy: AutomationStrategyDto;
|
|
793
|
+
/**
|
|
794
|
+
* Hashrate points earned across the session's rounds.
|
|
795
|
+
*/
|
|
796
|
+
totalHashrateEarned: U64Dto;
|
|
797
|
+
/**
|
|
798
|
+
* Sats winnings settled across the session's rounds.
|
|
799
|
+
*/
|
|
800
|
+
totalSatsEarned: U64Dto;
|
|
801
|
+
/**
|
|
802
|
+
* Gross USD deployed across the session's rounds.
|
|
803
|
+
*/
|
|
804
|
+
totalUsdDeployed: U64Dto;
|
|
805
|
+
/**
|
|
806
|
+
* USD winnings settled across the session's rounds.
|
|
807
|
+
*/
|
|
808
|
+
totalUsdEarned: U64Dto;
|
|
662
809
|
};
|
|
663
810
|
/**
|
|
664
811
|
* A miner's deployment of USD onto a round's tiles.
|
|
@@ -724,6 +871,14 @@ type SatrushConfigDto = {
|
|
|
724
871
|
* Epoch Vault fee in basis points.
|
|
725
872
|
*/
|
|
726
873
|
epochFeeBps: number;
|
|
874
|
+
/**
|
|
875
|
+
* Epoch Vault iteration length in slots.
|
|
876
|
+
*/
|
|
877
|
+
epochVaultIterationDuration: number;
|
|
878
|
+
/**
|
|
879
|
+
* Minimum gross deploy size per round, manual or automated, in USD mint (6 decimals).
|
|
880
|
+
*/
|
|
881
|
+
minDeployUsdAmount: U64Dto;
|
|
727
882
|
/**
|
|
728
883
|
* 1 BTC Vault fee in basis points.
|
|
729
884
|
*/
|
|
@@ -744,6 +899,10 @@ type SatrushConfigDto = {
|
|
|
744
899
|
* Strike jackpot fee in basis points.
|
|
745
900
|
*/
|
|
746
901
|
strikeFeeBps: number;
|
|
902
|
+
/**
|
|
903
|
+
* Share of each settled play's hashrate reward deferred until the sats claim in basis points.
|
|
904
|
+
*/
|
|
905
|
+
unclaimedHashrateBps: number;
|
|
747
906
|
/**
|
|
748
907
|
* USD mint (initially USDC).
|
|
749
908
|
*/
|
|
@@ -810,6 +969,17 @@ type U128Dto = bigint;
|
|
|
810
969
|
* Unsigned 64-bit integer encoded as a decimal string.
|
|
811
970
|
*/
|
|
812
971
|
type U64Dto = bigint;
|
|
972
|
+
type UserDeploymentsApiError400Error = ({
|
|
973
|
+
code: 'invalid_address';
|
|
974
|
+
} & UserDeploymentsApiError400InvalidAddress) | ({
|
|
975
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
976
|
+
} & BadRequestErrorCodeErrorBody);
|
|
977
|
+
type UserDeploymentsApiError400InvalidAddress = {
|
|
978
|
+
code: 'invalid_address';
|
|
979
|
+
};
|
|
980
|
+
type UserDeploymentsApiError500Error = {
|
|
981
|
+
code: 'internal';
|
|
982
|
+
};
|
|
813
983
|
type UserProfileApiError400Error = ({
|
|
814
984
|
code: 'invalid_address';
|
|
815
985
|
} & UserProfileApiError400InvalidAddress) | ({
|
|
@@ -913,6 +1083,39 @@ type GetUserProfileResponses = {
|
|
|
913
1083
|
};
|
|
914
1084
|
};
|
|
915
1085
|
type GetUserProfileResponse = GetUserProfileResponses[keyof GetUserProfileResponses];
|
|
1086
|
+
type GetUserDeploymentsData = {
|
|
1087
|
+
body?: never;
|
|
1088
|
+
path: {
|
|
1089
|
+
/**
|
|
1090
|
+
* User wallet address (base58)
|
|
1091
|
+
*/
|
|
1092
|
+
address: string;
|
|
1093
|
+
};
|
|
1094
|
+
query?: {
|
|
1095
|
+
/**
|
|
1096
|
+
* Only deployments with `round_id` strictly below this cursor; pass the
|
|
1097
|
+
* last `round_id` of the previous page to fetch the next one.
|
|
1098
|
+
*/
|
|
1099
|
+
before?: number;
|
|
1100
|
+
/**
|
|
1101
|
+
* Page size, 1..=100; defaults to 50.
|
|
1102
|
+
*/
|
|
1103
|
+
limit?: number;
|
|
1104
|
+
};
|
|
1105
|
+
url: '/v1/users/{address}/deployments';
|
|
1106
|
+
};
|
|
1107
|
+
type GetUserDeploymentsErrors = {
|
|
1108
|
+
400: UserDeploymentsApiError400Error;
|
|
1109
|
+
422: ValidationErrorCodeErrorBody;
|
|
1110
|
+
500: UserDeploymentsApiError500Error;
|
|
1111
|
+
};
|
|
1112
|
+
type GetUserDeploymentsError = GetUserDeploymentsErrors[keyof GetUserDeploymentsErrors];
|
|
1113
|
+
type GetUserDeploymentsResponses = {
|
|
1114
|
+
200: {
|
|
1115
|
+
data: Array<MinerDeploymentDto>;
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
type GetUserDeploymentsResponse = GetUserDeploymentsResponses[keyof GetUserDeploymentsResponses];
|
|
916
1119
|
|
|
917
1120
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
918
1121
|
/**
|
|
@@ -965,6 +1168,14 @@ declare class SatrushBackendSdk extends HeyApiClient {
|
|
|
965
1168
|
getUserProfile<ThrowOnError extends boolean = false>(parameters: {
|
|
966
1169
|
address: string;
|
|
967
1170
|
}, options?: Options<never, ThrowOnError>): RequestResult<GetUserProfileResponses, GetUserProfileErrors, ThrowOnError, "fields">;
|
|
1171
|
+
/**
|
|
1172
|
+
* Request user deployments
|
|
1173
|
+
*/
|
|
1174
|
+
getUserDeployments<ThrowOnError extends boolean = false>(parameters: {
|
|
1175
|
+
address: string;
|
|
1176
|
+
before?: number;
|
|
1177
|
+
limit?: number;
|
|
1178
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetUserDeploymentsResponses, GetUserDeploymentsErrors, ThrowOnError, "fields">;
|
|
968
1179
|
}
|
|
969
1180
|
|
|
970
1181
|
/**
|
|
@@ -1019,6 +1230,12 @@ declare const zOneBtcStateDto: z.ZodEnum<{
|
|
|
1019
1230
|
settled: "settled";
|
|
1020
1231
|
complete: "complete";
|
|
1021
1232
|
}>;
|
|
1233
|
+
/**
|
|
1234
|
+
* A past round's outcome from the indexed history.
|
|
1235
|
+
*/
|
|
1236
|
+
declare const zPreviousRoundDto: z.ZodObject<{
|
|
1237
|
+
winningTile: z.ZodInt;
|
|
1238
|
+
}, z.core.$strip>;
|
|
1022
1239
|
/**
|
|
1023
1240
|
* Live token prices observed by the service.
|
|
1024
1241
|
*/
|
|
@@ -1042,20 +1259,6 @@ declare const zRoundStateDto: z.ZodEnum<{
|
|
|
1042
1259
|
revealed: "revealed";
|
|
1043
1260
|
finished: "finished";
|
|
1044
1261
|
}>;
|
|
1045
|
-
/**
|
|
1046
|
-
* Protocol configuration: token mints and fee rates.
|
|
1047
|
-
*/
|
|
1048
|
-
declare const zSatrushConfigDto: z.ZodObject<{
|
|
1049
|
-
address: z.ZodString;
|
|
1050
|
-
btcMint: z.ZodString;
|
|
1051
|
-
epochFeeBps: z.ZodInt;
|
|
1052
|
-
oneBtcFeeBps: z.ZodInt;
|
|
1053
|
-
protocolFeeBps: z.ZodInt;
|
|
1054
|
-
satsVaultClaimFeeBps: z.ZodInt;
|
|
1055
|
-
satsVaultRoundFeeBps: z.ZodInt;
|
|
1056
|
-
strikeFeeBps: z.ZodInt;
|
|
1057
|
-
usdMint: z.ZodString;
|
|
1058
|
-
}, z.core.$strip>;
|
|
1059
1262
|
/**
|
|
1060
1263
|
* Unsigned 128-bit integer encoded as a decimal string.
|
|
1061
1264
|
*/
|
|
@@ -1141,6 +1344,26 @@ declare const zEpochVaultDto: z.ZodObject<{
|
|
|
1141
1344
|
reservedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1142
1345
|
reservedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1143
1346
|
}, z.core.$strip>;
|
|
1347
|
+
/**
|
|
1348
|
+
* A miner's deployment as recorded by the rounds indexer: the deploy itself
|
|
1349
|
+
* plus its settlement outcome once the round is settled.
|
|
1350
|
+
*/
|
|
1351
|
+
declare const zMinerDeploymentDto: z.ZodObject<{
|
|
1352
|
+
authority: z.ZodString;
|
|
1353
|
+
deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
1354
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1355
|
+
deployment: z.ZodString;
|
|
1356
|
+
hashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1357
|
+
isAutomation: z.ZodBoolean;
|
|
1358
|
+
isReload: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
1359
|
+
isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
1360
|
+
roundId: z.ZodInt;
|
|
1361
|
+
satsSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
1362
|
+
selectedTiles: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1363
|
+
settledAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
1364
|
+
totalUsdStakeAmount: z.ZodCoercedBigInt<unknown>;
|
|
1365
|
+
usdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1366
|
+
}, z.core.$strip>;
|
|
1144
1367
|
/**
|
|
1145
1368
|
* A miner's accumulated protocol state, keyed by its authority wallet.
|
|
1146
1369
|
*/
|
|
@@ -1149,8 +1372,20 @@ declare const zMinerDto: z.ZodObject<{
|
|
|
1149
1372
|
currentStreakCount: z.ZodInt;
|
|
1150
1373
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1151
1374
|
lastMinedRoundId: z.ZodInt;
|
|
1152
|
-
|
|
1375
|
+
maxStreak: z.ZodInt;
|
|
1376
|
+
totalBtcReceived: z.ZodCoercedBigInt<unknown>;
|
|
1377
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1378
|
+
totalRounds: z.ZodInt;
|
|
1379
|
+
totalSatsClaimed: z.ZodCoercedBigInt<unknown>;
|
|
1380
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1381
|
+
totalUsdClaimed: z.ZodCoercedBigInt<unknown>;
|
|
1382
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1383
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1384
|
+
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1385
|
+
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1153
1386
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1387
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1388
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1154
1389
|
}, z.core.$strip>;
|
|
1155
1390
|
/**
|
|
1156
1391
|
* A user's ticket purchase in a 1 BTC vault iteration.
|
|
@@ -1205,8 +1440,10 @@ declare const zOneBtcVaultDto: z.ZodObject<{
|
|
|
1205
1440
|
*/
|
|
1206
1441
|
declare const zPublicAutomationDto: z.ZodObject<{
|
|
1207
1442
|
address: z.ZodString;
|
|
1443
|
+
executedDeployments: z.ZodInt;
|
|
1208
1444
|
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1209
1445
|
reload: z.ZodBoolean;
|
|
1446
|
+
remainingDeployments: z.ZodInt;
|
|
1210
1447
|
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1211
1448
|
selectionMask: z.ZodInt;
|
|
1212
1449
|
strategy: z.ZodEnum<{
|
|
@@ -1214,6 +1451,10 @@ declare const zPublicAutomationDto: z.ZodObject<{
|
|
|
1214
1451
|
random: "random";
|
|
1215
1452
|
discretionary: "discretionary";
|
|
1216
1453
|
}>;
|
|
1454
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1455
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1456
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1457
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1217
1458
|
}, z.core.$strip>;
|
|
1218
1459
|
/**
|
|
1219
1460
|
* A miner's deployment of USD onto a round's tiles.
|
|
@@ -1231,8 +1472,10 @@ declare const zPublicDeploymentDto: z.ZodObject<{
|
|
|
1231
1472
|
declare const zProfileDto: z.ZodObject<{
|
|
1232
1473
|
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1233
1474
|
address: z.ZodString;
|
|
1475
|
+
executedDeployments: z.ZodInt;
|
|
1234
1476
|
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1235
1477
|
reload: z.ZodBoolean;
|
|
1478
|
+
remainingDeployments: z.ZodInt;
|
|
1236
1479
|
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1237
1480
|
selectionMask: z.ZodInt;
|
|
1238
1481
|
strategy: z.ZodEnum<{
|
|
@@ -1240,6 +1483,10 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
1240
1483
|
random: "random";
|
|
1241
1484
|
discretionary: "discretionary";
|
|
1242
1485
|
}>;
|
|
1486
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1487
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1488
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1489
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1243
1490
|
}, z.core.$strip>]>>;
|
|
1244
1491
|
deployments: z.ZodArray<z.ZodObject<{
|
|
1245
1492
|
address: z.ZodString;
|
|
@@ -1258,8 +1505,20 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
1258
1505
|
currentStreakCount: z.ZodInt;
|
|
1259
1506
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1260
1507
|
lastMinedRoundId: z.ZodInt;
|
|
1261
|
-
|
|
1508
|
+
maxStreak: z.ZodInt;
|
|
1509
|
+
totalBtcReceived: z.ZodCoercedBigInt<unknown>;
|
|
1510
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1511
|
+
totalRounds: z.ZodInt;
|
|
1512
|
+
totalSatsClaimed: z.ZodCoercedBigInt<unknown>;
|
|
1513
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1514
|
+
totalUsdClaimed: z.ZodCoercedBigInt<unknown>;
|
|
1515
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1516
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1517
|
+
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1518
|
+
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1262
1519
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1520
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1521
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1263
1522
|
}, z.core.$strip>;
|
|
1264
1523
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
1265
1524
|
address: z.ZodString;
|
|
@@ -1268,6 +1527,23 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
1268
1527
|
ticketsCount: z.ZodCoercedBigInt<unknown>;
|
|
1269
1528
|
}, z.core.$strip>>;
|
|
1270
1529
|
}, z.core.$strip>;
|
|
1530
|
+
/**
|
|
1531
|
+
* Protocol configuration: token mints and fee rates.
|
|
1532
|
+
*/
|
|
1533
|
+
declare const zSatrushConfigDto: z.ZodObject<{
|
|
1534
|
+
address: z.ZodString;
|
|
1535
|
+
btcMint: z.ZodString;
|
|
1536
|
+
epochFeeBps: z.ZodInt;
|
|
1537
|
+
epochVaultIterationDuration: z.ZodInt;
|
|
1538
|
+
minDeployUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1539
|
+
oneBtcFeeBps: z.ZodInt;
|
|
1540
|
+
protocolFeeBps: z.ZodInt;
|
|
1541
|
+
satsVaultClaimFeeBps: z.ZodInt;
|
|
1542
|
+
satsVaultRoundFeeBps: z.ZodInt;
|
|
1543
|
+
strikeFeeBps: z.ZodInt;
|
|
1544
|
+
unclaimedHashrateBps: z.ZodInt;
|
|
1545
|
+
usdMint: z.ZodString;
|
|
1546
|
+
}, z.core.$strip>;
|
|
1271
1547
|
/**
|
|
1272
1548
|
* Sats vault balances: the BTC backing and the shares issued against it.
|
|
1273
1549
|
*/
|
|
@@ -1430,6 +1706,9 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
1430
1706
|
winnersCount: z.ZodInt;
|
|
1431
1707
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1432
1708
|
}, z.core.$strip>]>>;
|
|
1709
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
1710
|
+
winningTile: z.ZodInt;
|
|
1711
|
+
}, z.core.$strip>>;
|
|
1433
1712
|
prices: z.ZodObject<{
|
|
1434
1713
|
btc: z.ZodNumber;
|
|
1435
1714
|
sat: z.ZodNumber;
|
|
@@ -1556,6 +1835,9 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
1556
1835
|
winnersCount: z.ZodInt;
|
|
1557
1836
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1558
1837
|
}, z.core.$strip>]>>;
|
|
1838
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
1839
|
+
winningTile: z.ZodInt;
|
|
1840
|
+
}, z.core.$strip>>;
|
|
1559
1841
|
prices: z.ZodObject<{
|
|
1560
1842
|
btc: z.ZodNumber;
|
|
1561
1843
|
sat: z.ZodNumber;
|
|
@@ -1581,8 +1863,10 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
1581
1863
|
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1582
1864
|
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1583
1865
|
address: z.ZodString;
|
|
1866
|
+
executedDeployments: z.ZodInt;
|
|
1584
1867
|
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1585
1868
|
reload: z.ZodBoolean;
|
|
1869
|
+
remainingDeployments: z.ZodInt;
|
|
1586
1870
|
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1587
1871
|
selectionMask: z.ZodInt;
|
|
1588
1872
|
strategy: z.ZodEnum<{
|
|
@@ -1590,6 +1874,10 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
1590
1874
|
random: "random";
|
|
1591
1875
|
discretionary: "discretionary";
|
|
1592
1876
|
}>;
|
|
1877
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1878
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1879
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1880
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1593
1881
|
}, z.core.$strip>]>>;
|
|
1594
1882
|
deployments: z.ZodArray<z.ZodObject<{
|
|
1595
1883
|
address: z.ZodString;
|
|
@@ -1608,8 +1896,20 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
1608
1896
|
currentStreakCount: z.ZodInt;
|
|
1609
1897
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1610
1898
|
lastMinedRoundId: z.ZodInt;
|
|
1611
|
-
|
|
1899
|
+
maxStreak: z.ZodInt;
|
|
1900
|
+
totalBtcReceived: z.ZodCoercedBigInt<unknown>;
|
|
1901
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1902
|
+
totalRounds: z.ZodInt;
|
|
1903
|
+
totalSatsClaimed: z.ZodCoercedBigInt<unknown>;
|
|
1904
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1905
|
+
totalUsdClaimed: z.ZodCoercedBigInt<unknown>;
|
|
1906
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1907
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1908
|
+
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1909
|
+
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1612
1910
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1911
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1912
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1613
1913
|
}, z.core.$strip>;
|
|
1614
1914
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
1615
1915
|
address: z.ZodString;
|
|
@@ -1726,6 +2026,9 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
1726
2026
|
winnersCount: z.ZodInt;
|
|
1727
2027
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1728
2028
|
}, z.core.$strip>]>>;
|
|
2029
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
2030
|
+
winningTile: z.ZodInt;
|
|
2031
|
+
}, z.core.$strip>>;
|
|
1729
2032
|
prices: z.ZodObject<{
|
|
1730
2033
|
btc: z.ZodNumber;
|
|
1731
2034
|
sat: z.ZodNumber;
|
|
@@ -1751,8 +2054,10 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
1751
2054
|
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1752
2055
|
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1753
2056
|
address: z.ZodString;
|
|
2057
|
+
executedDeployments: z.ZodInt;
|
|
1754
2058
|
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1755
2059
|
reload: z.ZodBoolean;
|
|
2060
|
+
remainingDeployments: z.ZodInt;
|
|
1756
2061
|
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1757
2062
|
selectionMask: z.ZodInt;
|
|
1758
2063
|
strategy: z.ZodEnum<{
|
|
@@ -1760,6 +2065,10 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
1760
2065
|
random: "random";
|
|
1761
2066
|
discretionary: "discretionary";
|
|
1762
2067
|
}>;
|
|
2068
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2069
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2070
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2071
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1763
2072
|
}, z.core.$strip>]>>;
|
|
1764
2073
|
deployments: z.ZodArray<z.ZodObject<{
|
|
1765
2074
|
address: z.ZodString;
|
|
@@ -1778,8 +2087,20 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
1778
2087
|
currentStreakCount: z.ZodInt;
|
|
1779
2088
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1780
2089
|
lastMinedRoundId: z.ZodInt;
|
|
1781
|
-
|
|
2090
|
+
maxStreak: z.ZodInt;
|
|
2091
|
+
totalBtcReceived: z.ZodCoercedBigInt<unknown>;
|
|
2092
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2093
|
+
totalRounds: z.ZodInt;
|
|
2094
|
+
totalSatsClaimed: z.ZodCoercedBigInt<unknown>;
|
|
2095
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2096
|
+
totalUsdClaimed: z.ZodCoercedBigInt<unknown>;
|
|
2097
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2098
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2099
|
+
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2100
|
+
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1782
2101
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2102
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2103
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1783
2104
|
}, z.core.$strip>;
|
|
1784
2105
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
1785
2106
|
address: z.ZodString;
|
|
@@ -1902,6 +2223,9 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1902
2223
|
winnersCount: z.ZodInt;
|
|
1903
2224
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1904
2225
|
}, z.core.$strip>]>>;
|
|
2226
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
2227
|
+
winningTile: z.ZodInt;
|
|
2228
|
+
}, z.core.$strip>>;
|
|
1905
2229
|
prices: z.ZodObject<{
|
|
1906
2230
|
btc: z.ZodNumber;
|
|
1907
2231
|
sat: z.ZodNumber;
|
|
@@ -1927,8 +2251,10 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1927
2251
|
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1928
2252
|
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1929
2253
|
address: z.ZodString;
|
|
2254
|
+
executedDeployments: z.ZodInt;
|
|
1930
2255
|
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1931
2256
|
reload: z.ZodBoolean;
|
|
2257
|
+
remainingDeployments: z.ZodInt;
|
|
1932
2258
|
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1933
2259
|
selectionMask: z.ZodInt;
|
|
1934
2260
|
strategy: z.ZodEnum<{
|
|
@@ -1936,6 +2262,10 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1936
2262
|
random: "random";
|
|
1937
2263
|
discretionary: "discretionary";
|
|
1938
2264
|
}>;
|
|
2265
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2266
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2267
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2268
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1939
2269
|
}, z.core.$strip>]>>;
|
|
1940
2270
|
deployments: z.ZodArray<z.ZodObject<{
|
|
1941
2271
|
address: z.ZodString;
|
|
@@ -1954,8 +2284,20 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1954
2284
|
currentStreakCount: z.ZodInt;
|
|
1955
2285
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1956
2286
|
lastMinedRoundId: z.ZodInt;
|
|
1957
|
-
|
|
2287
|
+
maxStreak: z.ZodInt;
|
|
2288
|
+
totalBtcReceived: z.ZodCoercedBigInt<unknown>;
|
|
2289
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2290
|
+
totalRounds: z.ZodInt;
|
|
2291
|
+
totalSatsClaimed: z.ZodCoercedBigInt<unknown>;
|
|
2292
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2293
|
+
totalUsdClaimed: z.ZodCoercedBigInt<unknown>;
|
|
2294
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2295
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2296
|
+
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2297
|
+
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1958
2298
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2299
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2300
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1959
2301
|
}, z.core.$strip>;
|
|
1960
2302
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
1961
2303
|
address: z.ZodString;
|
|
@@ -1969,6 +2311,31 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1969
2311
|
state_snapshot: "state_snapshot";
|
|
1970
2312
|
}>;
|
|
1971
2313
|
}, z.core.$strip>>>;
|
|
2314
|
+
declare const zUserDeploymentsApiError400InvalidAddress: z.ZodObject<{
|
|
2315
|
+
code: z.ZodEnum<{
|
|
2316
|
+
invalid_address: "invalid_address";
|
|
2317
|
+
}>;
|
|
2318
|
+
}, z.core.$strip>;
|
|
2319
|
+
declare const zUserDeploymentsApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
2320
|
+
code: z.ZodLiteral<"invalid_address">;
|
|
2321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2322
|
+
code: z.ZodEnum<{
|
|
2323
|
+
invalid_address: "invalid_address";
|
|
2324
|
+
}>;
|
|
2325
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2326
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
2327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2328
|
+
code: z.ZodEnum<{
|
|
2329
|
+
invalid_path: "invalid_path";
|
|
2330
|
+
invalid_query: "invalid_query";
|
|
2331
|
+
invalid_body: "invalid_body";
|
|
2332
|
+
}>;
|
|
2333
|
+
}, z.core.$strip>>]>;
|
|
2334
|
+
declare const zUserDeploymentsApiError500Error: z.ZodObject<{
|
|
2335
|
+
code: z.ZodEnum<{
|
|
2336
|
+
internal: "internal";
|
|
2337
|
+
}>;
|
|
2338
|
+
}, z.core.$strip>;
|
|
1972
2339
|
declare const zUserProfileApiError400InvalidAddress: z.ZodObject<{
|
|
1973
2340
|
code: z.ZodEnum<{
|
|
1974
2341
|
invalid_address: "invalid_address";
|
|
@@ -2123,6 +2490,9 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
2123
2490
|
winnersCount: z.ZodInt;
|
|
2124
2491
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2125
2492
|
}, z.core.$strip>]>>;
|
|
2493
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
2494
|
+
winningTile: z.ZodInt;
|
|
2495
|
+
}, z.core.$strip>>;
|
|
2126
2496
|
prices: z.ZodObject<{
|
|
2127
2497
|
btc: z.ZodNumber;
|
|
2128
2498
|
sat: z.ZodNumber;
|
|
@@ -2154,11 +2524,14 @@ declare const zGetConfigResponse: z.ZodObject<{
|
|
|
2154
2524
|
address: z.ZodString;
|
|
2155
2525
|
btcMint: z.ZodString;
|
|
2156
2526
|
epochFeeBps: z.ZodInt;
|
|
2527
|
+
epochVaultIterationDuration: z.ZodInt;
|
|
2528
|
+
minDeployUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2157
2529
|
oneBtcFeeBps: z.ZodInt;
|
|
2158
2530
|
protocolFeeBps: z.ZodInt;
|
|
2159
2531
|
satsVaultClaimFeeBps: z.ZodInt;
|
|
2160
2532
|
satsVaultRoundFeeBps: z.ZodInt;
|
|
2161
2533
|
strikeFeeBps: z.ZodInt;
|
|
2534
|
+
unclaimedHashrateBps: z.ZodInt;
|
|
2162
2535
|
usdMint: z.ZodString;
|
|
2163
2536
|
}, z.core.$strip>;
|
|
2164
2537
|
}, z.core.$strip>;
|
|
@@ -2282,6 +2655,9 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
2282
2655
|
winnersCount: z.ZodInt;
|
|
2283
2656
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2284
2657
|
}, z.core.$strip>]>>;
|
|
2658
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
2659
|
+
winningTile: z.ZodInt;
|
|
2660
|
+
}, z.core.$strip>>;
|
|
2285
2661
|
prices: z.ZodObject<{
|
|
2286
2662
|
btc: z.ZodNumber;
|
|
2287
2663
|
sat: z.ZodNumber;
|
|
@@ -2307,8 +2683,10 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
2307
2683
|
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2308
2684
|
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2309
2685
|
address: z.ZodString;
|
|
2686
|
+
executedDeployments: z.ZodInt;
|
|
2310
2687
|
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2311
2688
|
reload: z.ZodBoolean;
|
|
2689
|
+
remainingDeployments: z.ZodInt;
|
|
2312
2690
|
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2313
2691
|
selectionMask: z.ZodInt;
|
|
2314
2692
|
strategy: z.ZodEnum<{
|
|
@@ -2316,6 +2694,10 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
2316
2694
|
random: "random";
|
|
2317
2695
|
discretionary: "discretionary";
|
|
2318
2696
|
}>;
|
|
2697
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2698
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2699
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2700
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2319
2701
|
}, z.core.$strip>]>>;
|
|
2320
2702
|
deployments: z.ZodArray<z.ZodObject<{
|
|
2321
2703
|
address: z.ZodString;
|
|
@@ -2334,8 +2716,20 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
2334
2716
|
currentStreakCount: z.ZodInt;
|
|
2335
2717
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2336
2718
|
lastMinedRoundId: z.ZodInt;
|
|
2337
|
-
|
|
2719
|
+
maxStreak: z.ZodInt;
|
|
2720
|
+
totalBtcReceived: z.ZodCoercedBigInt<unknown>;
|
|
2721
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2722
|
+
totalRounds: z.ZodInt;
|
|
2723
|
+
totalSatsClaimed: z.ZodCoercedBigInt<unknown>;
|
|
2724
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2725
|
+
totalUsdClaimed: z.ZodCoercedBigInt<unknown>;
|
|
2726
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2727
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2728
|
+
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2729
|
+
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2338
2730
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2731
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2732
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2339
2733
|
}, z.core.$strip>;
|
|
2340
2734
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
2341
2735
|
address: z.ZodString;
|
|
@@ -2361,8 +2755,10 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
2361
2755
|
data: z.ZodObject<{
|
|
2362
2756
|
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2363
2757
|
address: z.ZodString;
|
|
2758
|
+
executedDeployments: z.ZodInt;
|
|
2364
2759
|
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2365
2760
|
reload: z.ZodBoolean;
|
|
2761
|
+
remainingDeployments: z.ZodInt;
|
|
2366
2762
|
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2367
2763
|
selectionMask: z.ZodInt;
|
|
2368
2764
|
strategy: z.ZodEnum<{
|
|
@@ -2370,6 +2766,10 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
2370
2766
|
random: "random";
|
|
2371
2767
|
discretionary: "discretionary";
|
|
2372
2768
|
}>;
|
|
2769
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2770
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2771
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2772
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2373
2773
|
}, z.core.$strip>]>>;
|
|
2374
2774
|
deployments: z.ZodArray<z.ZodObject<{
|
|
2375
2775
|
address: z.ZodString;
|
|
@@ -2388,8 +2788,20 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
2388
2788
|
currentStreakCount: z.ZodInt;
|
|
2389
2789
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2390
2790
|
lastMinedRoundId: z.ZodInt;
|
|
2391
|
-
|
|
2791
|
+
maxStreak: z.ZodInt;
|
|
2792
|
+
totalBtcReceived: z.ZodCoercedBigInt<unknown>;
|
|
2793
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2794
|
+
totalRounds: z.ZodInt;
|
|
2795
|
+
totalSatsClaimed: z.ZodCoercedBigInt<unknown>;
|
|
2796
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2797
|
+
totalUsdClaimed: z.ZodCoercedBigInt<unknown>;
|
|
2798
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2799
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2800
|
+
unclaimedHashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2801
|
+
unclaimedSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2392
2802
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2803
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2804
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2393
2805
|
}, z.core.$strip>;
|
|
2394
2806
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
2395
2807
|
address: z.ZodString;
|
|
@@ -2400,6 +2812,35 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
2400
2812
|
}, z.core.$strip>;
|
|
2401
2813
|
}, z.core.$strip>;
|
|
2402
2814
|
type GetUserProfileResponseZodType = z.infer<typeof zGetUserProfileResponse>;
|
|
2815
|
+
declare const zGetUserDeploymentsData: z.ZodObject<{
|
|
2816
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
2817
|
+
path: z.ZodObject<{
|
|
2818
|
+
address: z.ZodString;
|
|
2819
|
+
}, z.core.$strip>;
|
|
2820
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
2821
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
2822
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
2823
|
+
}, z.core.$strip>>;
|
|
2824
|
+
}, z.core.$strip>;
|
|
2825
|
+
declare const zGetUserDeploymentsResponse: z.ZodObject<{
|
|
2826
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2827
|
+
authority: z.ZodString;
|
|
2828
|
+
deployedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
2829
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2830
|
+
deployment: z.ZodString;
|
|
2831
|
+
hashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2832
|
+
isAutomation: z.ZodBoolean;
|
|
2833
|
+
isReload: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
2834
|
+
isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
2835
|
+
roundId: z.ZodInt;
|
|
2836
|
+
satsSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
2837
|
+
selectedTiles: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2838
|
+
settledAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2839
|
+
totalUsdStakeAmount: z.ZodCoercedBigInt<unknown>;
|
|
2840
|
+
usdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2841
|
+
}, z.core.$strip>>;
|
|
2842
|
+
}, z.core.$strip>;
|
|
2843
|
+
type GetUserDeploymentsResponseZodType = z.infer<typeof zGetUserDeploymentsResponse>;
|
|
2403
2844
|
|
|
2404
2845
|
type HasOnlyDataKey<T> = T extends object ? Exclude<keyof T, 'data'> extends never ? true : false : false;
|
|
2405
2846
|
type UnwrapData<T> = T extends {
|
|
@@ -2423,4 +2864,4 @@ declare class SatrushBackendSdkError<TCause = unknown> extends Error {
|
|
|
2423
2864
|
declare const satrushSdkErrorInterceptor: (error: unknown, response?: Response) => SatrushBackendSdkError<unknown>;
|
|
2424
2865
|
declare const isSatrushSdkError: <TCause = unknown>(error: unknown) => error is SatrushBackendSdkError<TCause>;
|
|
2425
2866
|
|
|
2426
|
-
export { AutomationStrategyDto, type BadRequestErrorCodeErrorBody, type BoardDto, type ClientOptions, EpochStateDto, type EpochVaultDto, type EpochVaultEntryDto, type EpochVaultIterationDto, type EpochWinnerDto, type FieldError, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponseZodType, type GetBoardResponses, type GetConfigData, type GetConfigError, type GetConfigErrors, type GetConfigResponse, type GetConfigResponseZodType, type GetConfigResponses, type GetUserProfileData, type GetUserProfileError, type GetUserProfileErrors, type GetUserProfileResponse, type GetUserProfileResponseZodType, type GetUserProfileResponses, type I128Dto, type I64Dto, type InternalErrorCodeErrorBody, type MinerDto, NotificationEntity, OneBtcStateDto, type OneBtcVaultDto, type OneBtcVaultEntryDto, type OneBtcVaultIterationDto, type Options, type PricesDto, type ProfileDto, type PubkeyDto, type PublicAutomationDto, type PublicDeploymentDto, type RoundDto, RoundStateDto, SatrushBackendSdk, SatrushBackendSdkError, type SatrushConfigDto, type SatsVaultDto, type ServerSentEventsOptions, type ServerSentEventsResult, type SnapshotDto, type SseData, type SseError, type SseErrors, type SseResponse, type SseResponse2, type SseResponseSnapshot, type SseResponseZodType, type SseResponses, type StreamEvent, type StrikeJackpotDto, type TileStakeDto, type U128Dto, type U64Dto, type UserProfileApiError400Error, type UserProfileApiError400InvalidAddress, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, createClient, createSseClient, isSatrushSdkError, satrushSdkErrorInterceptor, unwrap, zAutomationStrategyDto, zBadRequestErrorCodeErrorBody, zBoardDto, zEpochStateDto, zEpochVaultDto, zEpochVaultEntryDto, zEpochVaultIterationDto, zEpochWinnerDto, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetUserProfileData, zGetUserProfileResponse, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zMinerDto, zNotificationEntity, zOneBtcStateDto, zOneBtcVaultDto, zOneBtcVaultEntryDto, zOneBtcVaultIterationDto, zPricesDto, zProfileDto, zPubkeyDto, zPublicAutomationDto, zPublicDeploymentDto, zRoundDto, zRoundStateDto, zSatrushConfigDto, zSatsVaultDto, zSnapshotDto, zSseData, zSseResponse, zSseResponse2, zSseResponseSnapshot, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
|
|
2867
|
+
export { AutomationStrategyDto, type BadRequestErrorCodeErrorBody, type BoardDto, type ClientOptions, EpochStateDto, type EpochVaultDto, type EpochVaultEntryDto, type EpochVaultIterationDto, type EpochWinnerDto, type FieldError, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponseZodType, type GetBoardResponses, type GetConfigData, type GetConfigError, type GetConfigErrors, type GetConfigResponse, type GetConfigResponseZodType, type GetConfigResponses, type GetUserDeploymentsData, type GetUserDeploymentsError, type GetUserDeploymentsErrors, type GetUserDeploymentsResponse, type GetUserDeploymentsResponseZodType, type GetUserDeploymentsResponses, type GetUserProfileData, type GetUserProfileError, type GetUserProfileErrors, type GetUserProfileResponse, type GetUserProfileResponseZodType, type GetUserProfileResponses, type I128Dto, type I64Dto, type InternalErrorCodeErrorBody, type MinerDeploymentDto, type MinerDto, NotificationEntity, OneBtcStateDto, type OneBtcVaultDto, type OneBtcVaultEntryDto, type OneBtcVaultIterationDto, type Options, type PreviousRoundDto, type PricesDto, type ProfileDto, type PubkeyDto, type PublicAutomationDto, type PublicDeploymentDto, type RoundDto, RoundStateDto, SatrushBackendSdk, SatrushBackendSdkError, type SatrushConfigDto, type SatsVaultDto, type ServerSentEventsOptions, type ServerSentEventsResult, type SnapshotDto, type SseData, type SseError, type SseErrors, type SseResponse, type SseResponse2, type SseResponseSnapshot, type SseResponseZodType, type SseResponses, type StreamEvent, type StrikeJackpotDto, type TileStakeDto, type U128Dto, type U64Dto, type UserDeploymentsApiError400Error, type UserDeploymentsApiError400InvalidAddress, type UserDeploymentsApiError500Error, type UserProfileApiError400Error, type UserProfileApiError400InvalidAddress, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, createClient, createSseClient, isSatrushSdkError, satrushSdkErrorInterceptor, unwrap, zAutomationStrategyDto, zBadRequestErrorCodeErrorBody, zBoardDto, zEpochStateDto, zEpochVaultDto, zEpochVaultEntryDto, zEpochVaultIterationDto, zEpochWinnerDto, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetUserDeploymentsData, zGetUserDeploymentsResponse, zGetUserProfileData, zGetUserProfileResponse, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zMinerDeploymentDto, zMinerDto, zNotificationEntity, zOneBtcStateDto, zOneBtcVaultDto, zOneBtcVaultEntryDto, zOneBtcVaultIterationDto, zPreviousRoundDto, zPricesDto, zProfileDto, zPubkeyDto, zPublicAutomationDto, zPublicDeploymentDto, zRoundDto, zRoundStateDto, zSatrushConfigDto, zSatsVaultDto, zSnapshotDto, zSseData, zSseResponse, zSseResponse2, zSseResponseSnapshot, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserDeploymentsApiError400Error, zUserDeploymentsApiError400InvalidAddress, zUserDeploymentsApiError500Error, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
|