@satrush/api 0.1.4 → 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 +205 -14
- package/dist/index.d.cts +605 -27
- package/dist/index.d.ts +605 -27
- package/dist/index.js +195 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -313,6 +313,18 @@ declare const createClient: (config?: Config) => Client;
|
|
|
313
313
|
type ClientOptions = {
|
|
314
314
|
baseUrl: `${string}://${string}/api` | (string & {});
|
|
315
315
|
};
|
|
316
|
+
/**
|
|
317
|
+
* Tile-selection strategy of an automation.
|
|
318
|
+
*/
|
|
319
|
+
declare const AutomationStrategyDto: {
|
|
320
|
+
readonly STATIC: "static";
|
|
321
|
+
readonly RANDOM: "random";
|
|
322
|
+
readonly DISCRETIONARY: "discretionary";
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Tile-selection strategy of an automation.
|
|
326
|
+
*/
|
|
327
|
+
type AutomationStrategyDto = typeof AutomationStrategyDto[keyof typeof AutomationStrategyDto];
|
|
316
328
|
type BadRequestErrorCodeErrorBody = {
|
|
317
329
|
code: 'invalid_path' | 'invalid_query' | 'invalid_body';
|
|
318
330
|
};
|
|
@@ -340,6 +352,11 @@ type BoardDto = {
|
|
|
340
352
|
*/
|
|
341
353
|
oneBtcVault: OneBtcVaultDto;
|
|
342
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>;
|
|
343
360
|
/**
|
|
344
361
|
* Live token prices.
|
|
345
362
|
*/
|
|
@@ -479,6 +496,62 @@ type I64Dto = bigint;
|
|
|
479
496
|
type InternalErrorCodeErrorBody = {
|
|
480
497
|
code: 'internal_error';
|
|
481
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
|
+
};
|
|
482
555
|
/**
|
|
483
556
|
* A miner's accumulated protocol state, keyed by its authority wallet.
|
|
484
557
|
*/
|
|
@@ -496,14 +569,66 @@ type MinerDto = {
|
|
|
496
569
|
* Id of the last round the miner played.
|
|
497
570
|
*/
|
|
498
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;
|
|
499
613
|
/**
|
|
500
614
|
* BTC shares in the Sats Vault not yet claimed.
|
|
501
615
|
*/
|
|
502
|
-
|
|
616
|
+
unclaimedSatsShares: U64Dto;
|
|
503
617
|
/**
|
|
504
618
|
* USD rewards not yet claimed.
|
|
505
619
|
*/
|
|
506
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;
|
|
507
632
|
};
|
|
508
633
|
declare const NotificationEntity: {
|
|
509
634
|
readonly STATE_SNAPSHOT: "state_snapshot";
|
|
@@ -580,6 +705,15 @@ type OneBtcVaultIterationDto = {
|
|
|
580
705
|
totalTickets: U64Dto;
|
|
581
706
|
winningTicket?: null | U64Dto;
|
|
582
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
|
+
};
|
|
583
717
|
/**
|
|
584
718
|
* Live token prices observed by the service.
|
|
585
719
|
*/
|
|
@@ -594,10 +728,11 @@ type PricesDto = {
|
|
|
594
728
|
sat: number;
|
|
595
729
|
};
|
|
596
730
|
/**
|
|
597
|
-
* A user's profile: their miner account, currently-open
|
|
598
|
-
* entries.
|
|
731
|
+
* A user's profile: their miner account, active automation, currently-open
|
|
732
|
+
* deployments and vault entries.
|
|
599
733
|
*/
|
|
600
734
|
type ProfileDto = {
|
|
735
|
+
automation?: null | PublicAutomationDto;
|
|
601
736
|
/**
|
|
602
737
|
* The authority's open public deployments.
|
|
603
738
|
*/
|
|
@@ -619,6 +754,59 @@ type ProfileDto = {
|
|
|
619
754
|
* - OpenAPI: `type: string`, pattern for base58, optional format
|
|
620
755
|
*/
|
|
621
756
|
type PubkeyDto = string;
|
|
757
|
+
/**
|
|
758
|
+
* A miner's public automation: the platform's crank plays one deployment per
|
|
759
|
+
* round on their behalf until the escrow can no longer cover a round.
|
|
760
|
+
*/
|
|
761
|
+
type PublicAutomationDto = {
|
|
762
|
+
address: PubkeyDto;
|
|
763
|
+
/**
|
|
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.
|
|
770
|
+
*/
|
|
771
|
+
perRoundUsdAmount: U64Dto;
|
|
772
|
+
/**
|
|
773
|
+
* Whether settled USD winnings reload the remaining amount.
|
|
774
|
+
*/
|
|
775
|
+
reload: boolean;
|
|
776
|
+
/**
|
|
777
|
+
* Full rounds the remaining escrow can still cover.
|
|
778
|
+
*/
|
|
779
|
+
remainingDeployments: number;
|
|
780
|
+
/**
|
|
781
|
+
* Escrowed funds still available.
|
|
782
|
+
*/
|
|
783
|
+
remainingUsdAmount: U64Dto;
|
|
784
|
+
/**
|
|
785
|
+
* Static: the mask used every round. Random: seeds the tile count.
|
|
786
|
+
* Discretionary: 0.
|
|
787
|
+
*/
|
|
788
|
+
selectionMask: number;
|
|
789
|
+
/**
|
|
790
|
+
* Tile-selection strategy.
|
|
791
|
+
*/
|
|
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;
|
|
809
|
+
};
|
|
622
810
|
/**
|
|
623
811
|
* A miner's deployment of USD onto a round's tiles.
|
|
624
812
|
*/
|
|
@@ -683,6 +871,14 @@ type SatrushConfigDto = {
|
|
|
683
871
|
* Epoch Vault fee in basis points.
|
|
684
872
|
*/
|
|
685
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;
|
|
686
882
|
/**
|
|
687
883
|
* 1 BTC Vault fee in basis points.
|
|
688
884
|
*/
|
|
@@ -703,6 +899,10 @@ type SatrushConfigDto = {
|
|
|
703
899
|
* Strike jackpot fee in basis points.
|
|
704
900
|
*/
|
|
705
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;
|
|
706
906
|
/**
|
|
707
907
|
* USD mint (initially USDC).
|
|
708
908
|
*/
|
|
@@ -769,6 +969,17 @@ type U128Dto = bigint;
|
|
|
769
969
|
* Unsigned 64-bit integer encoded as a decimal string.
|
|
770
970
|
*/
|
|
771
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
|
+
};
|
|
772
983
|
type UserProfileApiError400Error = ({
|
|
773
984
|
code: 'invalid_address';
|
|
774
985
|
} & UserProfileApiError400InvalidAddress) | ({
|
|
@@ -872,6 +1083,39 @@ type GetUserProfileResponses = {
|
|
|
872
1083
|
};
|
|
873
1084
|
};
|
|
874
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];
|
|
875
1119
|
|
|
876
1120
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
877
1121
|
/**
|
|
@@ -924,8 +1168,24 @@ declare class SatrushBackendSdk extends HeyApiClient {
|
|
|
924
1168
|
getUserProfile<ThrowOnError extends boolean = false>(parameters: {
|
|
925
1169
|
address: string;
|
|
926
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">;
|
|
927
1179
|
}
|
|
928
1180
|
|
|
1181
|
+
/**
|
|
1182
|
+
* Tile-selection strategy of an automation.
|
|
1183
|
+
*/
|
|
1184
|
+
declare const zAutomationStrategyDto: z.ZodEnum<{
|
|
1185
|
+
static: "static";
|
|
1186
|
+
random: "random";
|
|
1187
|
+
discretionary: "discretionary";
|
|
1188
|
+
}>;
|
|
929
1189
|
declare const zBadRequestErrorCodeErrorBody: z.ZodObject<{
|
|
930
1190
|
code: z.ZodEnum<{
|
|
931
1191
|
invalid_path: "invalid_path";
|
|
@@ -970,6 +1230,12 @@ declare const zOneBtcStateDto: z.ZodEnum<{
|
|
|
970
1230
|
settled: "settled";
|
|
971
1231
|
complete: "complete";
|
|
972
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>;
|
|
973
1239
|
/**
|
|
974
1240
|
* Live token prices observed by the service.
|
|
975
1241
|
*/
|
|
@@ -993,20 +1259,6 @@ declare const zRoundStateDto: z.ZodEnum<{
|
|
|
993
1259
|
revealed: "revealed";
|
|
994
1260
|
finished: "finished";
|
|
995
1261
|
}>;
|
|
996
|
-
/**
|
|
997
|
-
* Protocol configuration: token mints and fee rates.
|
|
998
|
-
*/
|
|
999
|
-
declare const zSatrushConfigDto: z.ZodObject<{
|
|
1000
|
-
address: z.ZodString;
|
|
1001
|
-
btcMint: z.ZodString;
|
|
1002
|
-
epochFeeBps: z.ZodInt;
|
|
1003
|
-
oneBtcFeeBps: z.ZodInt;
|
|
1004
|
-
protocolFeeBps: z.ZodInt;
|
|
1005
|
-
satsVaultClaimFeeBps: z.ZodInt;
|
|
1006
|
-
satsVaultRoundFeeBps: z.ZodInt;
|
|
1007
|
-
strikeFeeBps: z.ZodInt;
|
|
1008
|
-
usdMint: z.ZodString;
|
|
1009
|
-
}, z.core.$strip>;
|
|
1010
1262
|
/**
|
|
1011
1263
|
* Unsigned 128-bit integer encoded as a decimal string.
|
|
1012
1264
|
*/
|
|
@@ -1092,6 +1344,26 @@ declare const zEpochVaultDto: z.ZodObject<{
|
|
|
1092
1344
|
reservedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1093
1345
|
reservedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1094
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>;
|
|
1095
1367
|
/**
|
|
1096
1368
|
* A miner's accumulated protocol state, keyed by its authority wallet.
|
|
1097
1369
|
*/
|
|
@@ -1100,8 +1372,20 @@ declare const zMinerDto: z.ZodObject<{
|
|
|
1100
1372
|
currentStreakCount: z.ZodInt;
|
|
1101
1373
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1102
1374
|
lastMinedRoundId: z.ZodInt;
|
|
1103
|
-
|
|
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>;
|
|
1104
1386
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1387
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1388
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1105
1389
|
}, z.core.$strip>;
|
|
1106
1390
|
/**
|
|
1107
1391
|
* A user's ticket purchase in a 1 BTC vault iteration.
|
|
@@ -1150,6 +1434,28 @@ declare const zOneBtcVaultDto: z.ZodObject<{
|
|
|
1150
1434
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1151
1435
|
reservedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1152
1436
|
}, z.core.$strip>;
|
|
1437
|
+
/**
|
|
1438
|
+
* A miner's public automation: the platform's crank plays one deployment per
|
|
1439
|
+
* round on their behalf until the escrow can no longer cover a round.
|
|
1440
|
+
*/
|
|
1441
|
+
declare const zPublicAutomationDto: z.ZodObject<{
|
|
1442
|
+
address: z.ZodString;
|
|
1443
|
+
executedDeployments: z.ZodInt;
|
|
1444
|
+
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1445
|
+
reload: z.ZodBoolean;
|
|
1446
|
+
remainingDeployments: z.ZodInt;
|
|
1447
|
+
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1448
|
+
selectionMask: z.ZodInt;
|
|
1449
|
+
strategy: z.ZodEnum<{
|
|
1450
|
+
static: "static";
|
|
1451
|
+
random: "random";
|
|
1452
|
+
discretionary: "discretionary";
|
|
1453
|
+
}>;
|
|
1454
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1455
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1456
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1457
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1458
|
+
}, z.core.$strip>;
|
|
1153
1459
|
/**
|
|
1154
1460
|
* A miner's deployment of USD onto a round's tiles.
|
|
1155
1461
|
*/
|
|
@@ -1160,10 +1466,28 @@ declare const zPublicDeploymentDto: z.ZodObject<{
|
|
|
1160
1466
|
selectionMask: z.ZodInt;
|
|
1161
1467
|
}, z.core.$strip>;
|
|
1162
1468
|
/**
|
|
1163
|
-
* A user's profile: their miner account, currently-open
|
|
1164
|
-
* entries.
|
|
1469
|
+
* A user's profile: their miner account, active automation, currently-open
|
|
1470
|
+
* deployments and vault entries.
|
|
1165
1471
|
*/
|
|
1166
1472
|
declare const zProfileDto: z.ZodObject<{
|
|
1473
|
+
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1474
|
+
address: z.ZodString;
|
|
1475
|
+
executedDeployments: z.ZodInt;
|
|
1476
|
+
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1477
|
+
reload: z.ZodBoolean;
|
|
1478
|
+
remainingDeployments: z.ZodInt;
|
|
1479
|
+
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1480
|
+
selectionMask: z.ZodInt;
|
|
1481
|
+
strategy: z.ZodEnum<{
|
|
1482
|
+
static: "static";
|
|
1483
|
+
random: "random";
|
|
1484
|
+
discretionary: "discretionary";
|
|
1485
|
+
}>;
|
|
1486
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1487
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1488
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1489
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1490
|
+
}, z.core.$strip>]>>;
|
|
1167
1491
|
deployments: z.ZodArray<z.ZodObject<{
|
|
1168
1492
|
address: z.ZodString;
|
|
1169
1493
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1181,8 +1505,20 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
1181
1505
|
currentStreakCount: z.ZodInt;
|
|
1182
1506
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1183
1507
|
lastMinedRoundId: z.ZodInt;
|
|
1184
|
-
|
|
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>;
|
|
1185
1519
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1520
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1521
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1186
1522
|
}, z.core.$strip>;
|
|
1187
1523
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
1188
1524
|
address: z.ZodString;
|
|
@@ -1191,6 +1527,23 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
1191
1527
|
ticketsCount: z.ZodCoercedBigInt<unknown>;
|
|
1192
1528
|
}, z.core.$strip>>;
|
|
1193
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>;
|
|
1194
1547
|
/**
|
|
1195
1548
|
* Sats vault balances: the BTC backing and the shares issued against it.
|
|
1196
1549
|
*/
|
|
@@ -1353,6 +1706,9 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
1353
1706
|
winnersCount: z.ZodInt;
|
|
1354
1707
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1355
1708
|
}, z.core.$strip>]>>;
|
|
1709
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
1710
|
+
winningTile: z.ZodInt;
|
|
1711
|
+
}, z.core.$strip>>;
|
|
1356
1712
|
prices: z.ZodObject<{
|
|
1357
1713
|
btc: z.ZodNumber;
|
|
1358
1714
|
sat: z.ZodNumber;
|
|
@@ -1479,6 +1835,9 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
1479
1835
|
winnersCount: z.ZodInt;
|
|
1480
1836
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1481
1837
|
}, z.core.$strip>]>>;
|
|
1838
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
1839
|
+
winningTile: z.ZodInt;
|
|
1840
|
+
}, z.core.$strip>>;
|
|
1482
1841
|
prices: z.ZodObject<{
|
|
1483
1842
|
btc: z.ZodNumber;
|
|
1484
1843
|
sat: z.ZodNumber;
|
|
@@ -1502,6 +1861,24 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
1502
1861
|
state_snapshot: "state_snapshot";
|
|
1503
1862
|
}>;
|
|
1504
1863
|
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1864
|
+
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1865
|
+
address: z.ZodString;
|
|
1866
|
+
executedDeployments: z.ZodInt;
|
|
1867
|
+
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1868
|
+
reload: z.ZodBoolean;
|
|
1869
|
+
remainingDeployments: z.ZodInt;
|
|
1870
|
+
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1871
|
+
selectionMask: z.ZodInt;
|
|
1872
|
+
strategy: z.ZodEnum<{
|
|
1873
|
+
static: "static";
|
|
1874
|
+
random: "random";
|
|
1875
|
+
discretionary: "discretionary";
|
|
1876
|
+
}>;
|
|
1877
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1878
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1879
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1880
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
1881
|
+
}, z.core.$strip>]>>;
|
|
1505
1882
|
deployments: z.ZodArray<z.ZodObject<{
|
|
1506
1883
|
address: z.ZodString;
|
|
1507
1884
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1519,8 +1896,20 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
1519
1896
|
currentStreakCount: z.ZodInt;
|
|
1520
1897
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1521
1898
|
lastMinedRoundId: z.ZodInt;
|
|
1522
|
-
|
|
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>;
|
|
1523
1910
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1911
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1912
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1524
1913
|
}, z.core.$strip>;
|
|
1525
1914
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
1526
1915
|
address: z.ZodString;
|
|
@@ -1637,6 +2026,9 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
1637
2026
|
winnersCount: z.ZodInt;
|
|
1638
2027
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1639
2028
|
}, z.core.$strip>]>>;
|
|
2029
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
2030
|
+
winningTile: z.ZodInt;
|
|
2031
|
+
}, z.core.$strip>>;
|
|
1640
2032
|
prices: z.ZodObject<{
|
|
1641
2033
|
btc: z.ZodNumber;
|
|
1642
2034
|
sat: z.ZodNumber;
|
|
@@ -1660,6 +2052,24 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
1660
2052
|
state_snapshot: "state_snapshot";
|
|
1661
2053
|
}>;
|
|
1662
2054
|
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2055
|
+
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2056
|
+
address: z.ZodString;
|
|
2057
|
+
executedDeployments: z.ZodInt;
|
|
2058
|
+
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2059
|
+
reload: z.ZodBoolean;
|
|
2060
|
+
remainingDeployments: z.ZodInt;
|
|
2061
|
+
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2062
|
+
selectionMask: z.ZodInt;
|
|
2063
|
+
strategy: z.ZodEnum<{
|
|
2064
|
+
static: "static";
|
|
2065
|
+
random: "random";
|
|
2066
|
+
discretionary: "discretionary";
|
|
2067
|
+
}>;
|
|
2068
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2069
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2070
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2071
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2072
|
+
}, z.core.$strip>]>>;
|
|
1663
2073
|
deployments: z.ZodArray<z.ZodObject<{
|
|
1664
2074
|
address: z.ZodString;
|
|
1665
2075
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1677,8 +2087,20 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
1677
2087
|
currentStreakCount: z.ZodInt;
|
|
1678
2088
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1679
2089
|
lastMinedRoundId: z.ZodInt;
|
|
1680
|
-
|
|
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>;
|
|
1681
2101
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2102
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2103
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1682
2104
|
}, z.core.$strip>;
|
|
1683
2105
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
1684
2106
|
address: z.ZodString;
|
|
@@ -1801,6 +2223,9 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1801
2223
|
winnersCount: z.ZodInt;
|
|
1802
2224
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1803
2225
|
}, z.core.$strip>]>>;
|
|
2226
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
2227
|
+
winningTile: z.ZodInt;
|
|
2228
|
+
}, z.core.$strip>>;
|
|
1804
2229
|
prices: z.ZodObject<{
|
|
1805
2230
|
btc: z.ZodNumber;
|
|
1806
2231
|
sat: z.ZodNumber;
|
|
@@ -1824,6 +2249,24 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1824
2249
|
state_snapshot: "state_snapshot";
|
|
1825
2250
|
}>;
|
|
1826
2251
|
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2252
|
+
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2253
|
+
address: z.ZodString;
|
|
2254
|
+
executedDeployments: z.ZodInt;
|
|
2255
|
+
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2256
|
+
reload: z.ZodBoolean;
|
|
2257
|
+
remainingDeployments: z.ZodInt;
|
|
2258
|
+
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2259
|
+
selectionMask: z.ZodInt;
|
|
2260
|
+
strategy: z.ZodEnum<{
|
|
2261
|
+
static: "static";
|
|
2262
|
+
random: "random";
|
|
2263
|
+
discretionary: "discretionary";
|
|
2264
|
+
}>;
|
|
2265
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2266
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2267
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2268
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2269
|
+
}, z.core.$strip>]>>;
|
|
1827
2270
|
deployments: z.ZodArray<z.ZodObject<{
|
|
1828
2271
|
address: z.ZodString;
|
|
1829
2272
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1841,8 +2284,20 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1841
2284
|
currentStreakCount: z.ZodInt;
|
|
1842
2285
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1843
2286
|
lastMinedRoundId: z.ZodInt;
|
|
1844
|
-
|
|
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>;
|
|
1845
2298
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2299
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2300
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1846
2301
|
}, z.core.$strip>;
|
|
1847
2302
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
1848
2303
|
address: z.ZodString;
|
|
@@ -1856,6 +2311,31 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
1856
2311
|
state_snapshot: "state_snapshot";
|
|
1857
2312
|
}>;
|
|
1858
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>;
|
|
1859
2339
|
declare const zUserProfileApiError400InvalidAddress: z.ZodObject<{
|
|
1860
2340
|
code: z.ZodEnum<{
|
|
1861
2341
|
invalid_address: "invalid_address";
|
|
@@ -2010,6 +2490,9 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
2010
2490
|
winnersCount: z.ZodInt;
|
|
2011
2491
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2012
2492
|
}, z.core.$strip>]>>;
|
|
2493
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
2494
|
+
winningTile: z.ZodInt;
|
|
2495
|
+
}, z.core.$strip>>;
|
|
2013
2496
|
prices: z.ZodObject<{
|
|
2014
2497
|
btc: z.ZodNumber;
|
|
2015
2498
|
sat: z.ZodNumber;
|
|
@@ -2041,11 +2524,14 @@ declare const zGetConfigResponse: z.ZodObject<{
|
|
|
2041
2524
|
address: z.ZodString;
|
|
2042
2525
|
btcMint: z.ZodString;
|
|
2043
2526
|
epochFeeBps: z.ZodInt;
|
|
2527
|
+
epochVaultIterationDuration: z.ZodInt;
|
|
2528
|
+
minDeployUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2044
2529
|
oneBtcFeeBps: z.ZodInt;
|
|
2045
2530
|
protocolFeeBps: z.ZodInt;
|
|
2046
2531
|
satsVaultClaimFeeBps: z.ZodInt;
|
|
2047
2532
|
satsVaultRoundFeeBps: z.ZodInt;
|
|
2048
2533
|
strikeFeeBps: z.ZodInt;
|
|
2534
|
+
unclaimedHashrateBps: z.ZodInt;
|
|
2049
2535
|
usdMint: z.ZodString;
|
|
2050
2536
|
}, z.core.$strip>;
|
|
2051
2537
|
}, z.core.$strip>;
|
|
@@ -2169,6 +2655,9 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
2169
2655
|
winnersCount: z.ZodInt;
|
|
2170
2656
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2171
2657
|
}, z.core.$strip>]>>;
|
|
2658
|
+
previousRounds: z.ZodArray<z.ZodObject<{
|
|
2659
|
+
winningTile: z.ZodInt;
|
|
2660
|
+
}, z.core.$strip>>;
|
|
2172
2661
|
prices: z.ZodObject<{
|
|
2173
2662
|
btc: z.ZodNumber;
|
|
2174
2663
|
sat: z.ZodNumber;
|
|
@@ -2192,6 +2681,24 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
2192
2681
|
state_snapshot: "state_snapshot";
|
|
2193
2682
|
}>;
|
|
2194
2683
|
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2684
|
+
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2685
|
+
address: z.ZodString;
|
|
2686
|
+
executedDeployments: z.ZodInt;
|
|
2687
|
+
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2688
|
+
reload: z.ZodBoolean;
|
|
2689
|
+
remainingDeployments: z.ZodInt;
|
|
2690
|
+
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2691
|
+
selectionMask: z.ZodInt;
|
|
2692
|
+
strategy: z.ZodEnum<{
|
|
2693
|
+
static: "static";
|
|
2694
|
+
random: "random";
|
|
2695
|
+
discretionary: "discretionary";
|
|
2696
|
+
}>;
|
|
2697
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2698
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2699
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2700
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2701
|
+
}, z.core.$strip>]>>;
|
|
2195
2702
|
deployments: z.ZodArray<z.ZodObject<{
|
|
2196
2703
|
address: z.ZodString;
|
|
2197
2704
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2209,8 +2716,20 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
2209
2716
|
currentStreakCount: z.ZodInt;
|
|
2210
2717
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2211
2718
|
lastMinedRoundId: z.ZodInt;
|
|
2212
|
-
|
|
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>;
|
|
2213
2730
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2731
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2732
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2214
2733
|
}, z.core.$strip>;
|
|
2215
2734
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
2216
2735
|
address: z.ZodString;
|
|
@@ -2234,6 +2753,24 @@ declare const zGetUserProfileData: z.ZodObject<{
|
|
|
2234
2753
|
}, z.core.$strip>;
|
|
2235
2754
|
declare const zGetUserProfileResponse: z.ZodObject<{
|
|
2236
2755
|
data: z.ZodObject<{
|
|
2756
|
+
automation: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
2757
|
+
address: z.ZodString;
|
|
2758
|
+
executedDeployments: z.ZodInt;
|
|
2759
|
+
perRoundUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2760
|
+
reload: z.ZodBoolean;
|
|
2761
|
+
remainingDeployments: z.ZodInt;
|
|
2762
|
+
remainingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2763
|
+
selectionMask: z.ZodInt;
|
|
2764
|
+
strategy: z.ZodEnum<{
|
|
2765
|
+
static: "static";
|
|
2766
|
+
random: "random";
|
|
2767
|
+
discretionary: "discretionary";
|
|
2768
|
+
}>;
|
|
2769
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2770
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2771
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2772
|
+
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
2773
|
+
}, z.core.$strip>]>>;
|
|
2237
2774
|
deployments: z.ZodArray<z.ZodObject<{
|
|
2238
2775
|
address: z.ZodString;
|
|
2239
2776
|
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2251,8 +2788,20 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
2251
2788
|
currentStreakCount: z.ZodInt;
|
|
2252
2789
|
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
2253
2790
|
lastMinedRoundId: z.ZodInt;
|
|
2254
|
-
|
|
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>;
|
|
2255
2802
|
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2803
|
+
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
2804
|
+
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2256
2805
|
}, z.core.$strip>;
|
|
2257
2806
|
oneBtcVaultEntries: z.ZodArray<z.ZodObject<{
|
|
2258
2807
|
address: z.ZodString;
|
|
@@ -2263,6 +2812,35 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
2263
2812
|
}, z.core.$strip>;
|
|
2264
2813
|
}, z.core.$strip>;
|
|
2265
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>;
|
|
2266
2844
|
|
|
2267
2845
|
type HasOnlyDataKey<T> = T extends object ? Exclude<keyof T, 'data'> extends never ? true : false : false;
|
|
2268
2846
|
type UnwrapData<T> = T extends {
|
|
@@ -2286,4 +2864,4 @@ declare class SatrushBackendSdkError<TCause = unknown> extends Error {
|
|
|
2286
2864
|
declare const satrushSdkErrorInterceptor: (error: unknown, response?: Response) => SatrushBackendSdkError<unknown>;
|
|
2287
2865
|
declare const isSatrushSdkError: <TCause = unknown>(error: unknown) => error is SatrushBackendSdkError<TCause>;
|
|
2288
2866
|
|
|
2289
|
-
export { 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 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, 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, 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 };
|