@satrush/api 0.1.7 → 0.1.9
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 +864 -21
- package/dist/index.d.cts +1385 -62
- package/dist/index.d.ts +1385 -62
- package/dist/index.js +807 -19
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -367,15 +367,16 @@ type BoardDto = {
|
|
|
367
367
|
roundDuration: number;
|
|
368
368
|
/**
|
|
369
369
|
* Wall-clock time of `end_slot` (in the future while the round is
|
|
370
|
-
* mining), derived the same way.
|
|
370
|
+
* mining), derived the same way. Null while the round is pending.
|
|
371
371
|
*/
|
|
372
|
-
roundEndsAt
|
|
372
|
+
roundEndsAt?: Date | null;
|
|
373
373
|
roundId: number;
|
|
374
374
|
/**
|
|
375
375
|
* Wall-clock time of `start_slot`, derived from the current time and
|
|
376
|
-
* slot assuming exactly 400ms per slot.
|
|
376
|
+
* slot assuming exactly 400ms per slot. Null while the round is pending
|
|
377
|
+
* and its slot window is not yet scheduled.
|
|
377
378
|
*/
|
|
378
|
-
roundStartedAt
|
|
379
|
+
roundStartedAt?: Date | null;
|
|
379
380
|
/**
|
|
380
381
|
* The sats vault balances.
|
|
381
382
|
*/
|
|
@@ -397,6 +398,49 @@ declare const ClaimTypeDto: {
|
|
|
397
398
|
* Kind of an indexed claim.
|
|
398
399
|
*/
|
|
399
400
|
type ClaimTypeDto = typeof ClaimTypeDto[keyof typeof ClaimTypeDto];
|
|
401
|
+
type EpochHistoryApiError400Error = ({
|
|
402
|
+
code: 'invalid_range';
|
|
403
|
+
} & EpochHistoryApiError400InvalidRange) | ({
|
|
404
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
405
|
+
} & BadRequestErrorCodeErrorBody);
|
|
406
|
+
type EpochHistoryApiError400InvalidRange = {
|
|
407
|
+
code: 'invalid_range';
|
|
408
|
+
};
|
|
409
|
+
type EpochHistoryApiError500Error = {
|
|
410
|
+
code: 'internal';
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* An Epoch Vault iteration as recorded by the rounds indexer.
|
|
414
|
+
*/
|
|
415
|
+
type EpochIterationHistoryDto = {
|
|
416
|
+
/**
|
|
417
|
+
* The on-chain EpochVaultIteration account address.
|
|
418
|
+
*/
|
|
419
|
+
address: PubkeyDto;
|
|
420
|
+
/**
|
|
421
|
+
* When the last winner was selected; `null` until the draw resolves.
|
|
422
|
+
*/
|
|
423
|
+
endedAt?: Date | null;
|
|
424
|
+
/**
|
|
425
|
+
* Iteration id; the pagination cursor.
|
|
426
|
+
*/
|
|
427
|
+
id: number;
|
|
428
|
+
/**
|
|
429
|
+
* BTC pot sealed into the draw at trigger time; 0 while accumulating.
|
|
430
|
+
*/
|
|
431
|
+
poolBtcAmount: U64Dto;
|
|
432
|
+
/**
|
|
433
|
+
* USD pot sealed into the draw at trigger time; 0 while accumulating.
|
|
434
|
+
*/
|
|
435
|
+
poolUsdAmount: U64Dto;
|
|
436
|
+
startedAt: Date;
|
|
437
|
+
totalParticipants: number;
|
|
438
|
+
totalTickets: U64Dto;
|
|
439
|
+
/**
|
|
440
|
+
* When the draw was triggered; `null` while still accumulating.
|
|
441
|
+
*/
|
|
442
|
+
triggeredAt?: Date | null;
|
|
443
|
+
};
|
|
400
444
|
/**
|
|
401
445
|
* Lifecycle state of an epoch vault iteration.
|
|
402
446
|
*/
|
|
@@ -420,13 +464,14 @@ type EpochVaultDto = {
|
|
|
420
464
|
* Wall-clock time the iteration's window closes (start plus the
|
|
421
465
|
* configured iteration duration), derived the same way.
|
|
422
466
|
*/
|
|
423
|
-
iterationEndsAt
|
|
467
|
+
iterationEndsAt?: Date | null;
|
|
424
468
|
iterationId: number;
|
|
425
469
|
/**
|
|
426
470
|
* Wall-clock time of `last_trigger_slot`, derived from the current time
|
|
427
|
-
* and slot assuming exactly 400ms per slot.
|
|
471
|
+
* and slot assuming exactly 400ms per slot. Null when the slot carries
|
|
472
|
+
* the not-yet-scheduled sentinel.
|
|
428
473
|
*/
|
|
429
|
-
iterationStartedAt
|
|
474
|
+
iterationStartedAt?: Date | null;
|
|
430
475
|
/**
|
|
431
476
|
* Slot at which the current iteration's window started.
|
|
432
477
|
*/
|
|
@@ -506,6 +551,57 @@ type EpochWinnerDto = {
|
|
|
506
551
|
*/
|
|
507
552
|
tickets: U64Dto;
|
|
508
553
|
};
|
|
554
|
+
/**
|
|
555
|
+
* An Epoch Vault draw winner as recorded by the rounds indexer.
|
|
556
|
+
*/
|
|
557
|
+
type EpochWinnerHistoryDto = {
|
|
558
|
+
authority: PubkeyDto;
|
|
559
|
+
/**
|
|
560
|
+
* Winning entry id; the pagination cursor.
|
|
561
|
+
*/
|
|
562
|
+
id: number;
|
|
563
|
+
/**
|
|
564
|
+
* Iteration whose draw this wallet won.
|
|
565
|
+
*/
|
|
566
|
+
iterationId: number;
|
|
567
|
+
/**
|
|
568
|
+
* 0-based selection order; determines the pot share.
|
|
569
|
+
*/
|
|
570
|
+
rank: number;
|
|
571
|
+
/**
|
|
572
|
+
* When the iteration's draw resolved; `null` if not yet indexed.
|
|
573
|
+
*/
|
|
574
|
+
settledAt?: Date | null;
|
|
575
|
+
settledAtSlot?: null | U64Dto;
|
|
576
|
+
/**
|
|
577
|
+
* The winner's total tickets in the iteration.
|
|
578
|
+
*/
|
|
579
|
+
tickets: U64Dto;
|
|
580
|
+
/**
|
|
581
|
+
* BTC share of the pot; 0 for wins indexed from pre-extension events.
|
|
582
|
+
*/
|
|
583
|
+
wonBtcAmount: U64Dto;
|
|
584
|
+
/**
|
|
585
|
+
* USD share of the pot; 0 for wins indexed from pre-extension events.
|
|
586
|
+
*/
|
|
587
|
+
wonUsdAmount: U64Dto;
|
|
588
|
+
};
|
|
589
|
+
type EpochWinnersApiError400Error = ({
|
|
590
|
+
code: 'invalid_before';
|
|
591
|
+
} & EpochWinnersApiError400InvalidBefore) | ({
|
|
592
|
+
code: 'invalid_range';
|
|
593
|
+
} & EpochWinnersApiError400InvalidRange) | ({
|
|
594
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
595
|
+
} & BadRequestErrorCodeErrorBody);
|
|
596
|
+
type EpochWinnersApiError400InvalidBefore = {
|
|
597
|
+
code: 'invalid_before';
|
|
598
|
+
};
|
|
599
|
+
type EpochWinnersApiError400InvalidRange = {
|
|
600
|
+
code: 'invalid_range';
|
|
601
|
+
};
|
|
602
|
+
type EpochWinnersApiError500Error = {
|
|
603
|
+
code: 'internal';
|
|
604
|
+
};
|
|
509
605
|
type FieldError = {
|
|
510
606
|
/**
|
|
511
607
|
* Field name in request.
|
|
@@ -516,6 +612,17 @@ type FieldError = {
|
|
|
516
612
|
*/
|
|
517
613
|
message: string;
|
|
518
614
|
};
|
|
615
|
+
/**
|
|
616
|
+
* Kind of an indexed hashrate spend.
|
|
617
|
+
*/
|
|
618
|
+
declare const HashrateActionTypeDto: {
|
|
619
|
+
readonly BUY_EPOCH_TICKETS: "buy_epoch_tickets";
|
|
620
|
+
readonly BUY_ONE_BTC_TICKETS: "buy_one_btc_tickets";
|
|
621
|
+
};
|
|
622
|
+
/**
|
|
623
|
+
* Kind of an indexed hashrate spend.
|
|
624
|
+
*/
|
|
625
|
+
type HashrateActionTypeDto = typeof HashrateActionTypeDto[keyof typeof HashrateActionTypeDto];
|
|
519
626
|
/**
|
|
520
627
|
* Signed 128-bit integer encoded as a decimal string.
|
|
521
628
|
*/
|
|
@@ -528,7 +635,7 @@ type InternalErrorCodeErrorBody = {
|
|
|
528
635
|
code: 'internal_error';
|
|
529
636
|
};
|
|
530
637
|
/**
|
|
531
|
-
* A miner's position on
|
|
638
|
+
* A miner's position on a lifetime-stats leaderboard.
|
|
532
639
|
*/
|
|
533
640
|
type LeaderboardEntryDto = {
|
|
534
641
|
authority: PubkeyDto;
|
|
@@ -537,13 +644,21 @@ type LeaderboardEntryDto = {
|
|
|
537
644
|
*/
|
|
538
645
|
maxStreak: number;
|
|
539
646
|
/**
|
|
540
|
-
* 1-based position, ordered by
|
|
647
|
+
* 1-based position, ordered by the leaderboard's sort key descending.
|
|
541
648
|
*/
|
|
542
649
|
rank: number;
|
|
650
|
+
/**
|
|
651
|
+
* Lifetime hashrate earned.
|
|
652
|
+
*/
|
|
653
|
+
totalHashrateEarned: U64Dto;
|
|
543
654
|
/**
|
|
544
655
|
* Lifetime count of rounds played.
|
|
545
656
|
*/
|
|
546
657
|
totalRoundsPlayed: number;
|
|
658
|
+
/**
|
|
659
|
+
* Lifetime sats earned.
|
|
660
|
+
*/
|
|
661
|
+
totalSatsEarned: U64Dto;
|
|
547
662
|
/**
|
|
548
663
|
* Lifetime gross USD deployed.
|
|
549
664
|
*/
|
|
@@ -704,10 +819,147 @@ type MinerDto = {
|
|
|
704
819
|
*/
|
|
705
820
|
unsettledUsdAmount: U64Dto;
|
|
706
821
|
};
|
|
822
|
+
/**
|
|
823
|
+
* A miner's Epoch Vault participation as recorded by the rounds indexer: one
|
|
824
|
+
* row per iteration, accumulating the wallet's ticket buys, plus the draw
|
|
825
|
+
* outcome once resolved.
|
|
826
|
+
*/
|
|
827
|
+
type MinerEpochEntryDto = {
|
|
828
|
+
/**
|
|
829
|
+
* The on-chain EpochVaultEntry account address.
|
|
830
|
+
*/
|
|
831
|
+
address: PubkeyDto;
|
|
832
|
+
authority: PubkeyDto;
|
|
833
|
+
/**
|
|
834
|
+
* When the win was claimed; `null` until claimed.
|
|
835
|
+
*/
|
|
836
|
+
claimedAt?: Date | null;
|
|
837
|
+
createdAt: Date;
|
|
838
|
+
/**
|
|
839
|
+
* Entry id; the pagination cursor.
|
|
840
|
+
*/
|
|
841
|
+
id: number;
|
|
842
|
+
/**
|
|
843
|
+
* Draw outcome; `null` until the iteration's draw resolves the entry.
|
|
844
|
+
*/
|
|
845
|
+
isWon?: boolean | null;
|
|
846
|
+
/**
|
|
847
|
+
* Iteration this entry belongs to.
|
|
848
|
+
*/
|
|
849
|
+
iterationId: number;
|
|
850
|
+
/**
|
|
851
|
+
* 0-based selection order of the win; only set on winning entries.
|
|
852
|
+
*/
|
|
853
|
+
rank?: number | null;
|
|
854
|
+
/**
|
|
855
|
+
* The wallet's total tickets in the iteration.
|
|
856
|
+
*/
|
|
857
|
+
tickets: U64Dto;
|
|
858
|
+
wonBtcAmount?: null | U64Dto;
|
|
859
|
+
wonUsdAmount?: null | U64Dto;
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* A miner's hashrate spend as recorded by the rounds indexer from a
|
|
863
|
+
* `buy_epoch_tickets` or `buy_one_btc_tickets` instruction.
|
|
864
|
+
*/
|
|
865
|
+
type MinerHashrateActionDto = {
|
|
866
|
+
actionType: HashrateActionTypeDto;
|
|
867
|
+
authority: PubkeyDto;
|
|
868
|
+
executedAt: Date;
|
|
869
|
+
/**
|
|
870
|
+
* Raw hashrate units spent (1 ticket = 100 units).
|
|
871
|
+
*/
|
|
872
|
+
hashrateSpent: U64Dto;
|
|
873
|
+
/**
|
|
874
|
+
* Monotonic action id; the pagination cursor.
|
|
875
|
+
*/
|
|
876
|
+
id: number;
|
|
877
|
+
/**
|
|
878
|
+
* Signature of the buying transaction.
|
|
879
|
+
*/
|
|
880
|
+
signature: string;
|
|
881
|
+
ticketsBought: U64Dto;
|
|
882
|
+
};
|
|
883
|
+
/**
|
|
884
|
+
* A miner's 1 BTC Vault ticket purchase as recorded by the rounds indexer:
|
|
885
|
+
* one row per buy holding the contiguous range
|
|
886
|
+
* `[start_ticket_id, start_ticket_id + tickets)`, plus the draw outcome once
|
|
887
|
+
* resolved.
|
|
888
|
+
*/
|
|
889
|
+
type MinerOneBtcEntryDto = {
|
|
890
|
+
/**
|
|
891
|
+
* The on-chain ticket receipt account address.
|
|
892
|
+
*/
|
|
893
|
+
address: PubkeyDto;
|
|
894
|
+
authority: PubkeyDto;
|
|
895
|
+
/**
|
|
896
|
+
* When the prize was claimed; `null` until claimed.
|
|
897
|
+
*/
|
|
898
|
+
claimedAt?: Date | null;
|
|
899
|
+
createdAt: Date;
|
|
900
|
+
/**
|
|
901
|
+
* Entry id; the pagination cursor.
|
|
902
|
+
*/
|
|
903
|
+
id: number;
|
|
904
|
+
/**
|
|
905
|
+
* Draw outcome; `null` until the iteration's draw resolves the entry.
|
|
906
|
+
*/
|
|
907
|
+
isWon?: boolean | null;
|
|
908
|
+
/**
|
|
909
|
+
* Iteration this purchase belongs to.
|
|
910
|
+
*/
|
|
911
|
+
iterationId: number;
|
|
912
|
+
/**
|
|
913
|
+
* First ticket id of this purchase's range.
|
|
914
|
+
*/
|
|
915
|
+
startTicketId: U64Dto;
|
|
916
|
+
/**
|
|
917
|
+
* Number of tickets in this purchase.
|
|
918
|
+
*/
|
|
919
|
+
tickets: U64Dto;
|
|
920
|
+
};
|
|
707
921
|
declare const NotificationEntity: {
|
|
708
922
|
readonly STATE_SNAPSHOT: "state_snapshot";
|
|
709
923
|
};
|
|
710
924
|
type NotificationEntity = typeof NotificationEntity[keyof typeof NotificationEntity];
|
|
925
|
+
type OneBtcHistoryApiError400Error = ({
|
|
926
|
+
code: 'invalid_range';
|
|
927
|
+
} & OneBtcHistoryApiError400InvalidRange) | ({
|
|
928
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
929
|
+
} & BadRequestErrorCodeErrorBody);
|
|
930
|
+
type OneBtcHistoryApiError400InvalidRange = {
|
|
931
|
+
code: 'invalid_range';
|
|
932
|
+
};
|
|
933
|
+
type OneBtcHistoryApiError500Error = {
|
|
934
|
+
code: 'internal';
|
|
935
|
+
};
|
|
936
|
+
/**
|
|
937
|
+
* A 1 BTC Vault iteration as recorded by the rounds indexer, including the
|
|
938
|
+
* draw's winner once settled.
|
|
939
|
+
*/
|
|
940
|
+
type OneBtcIterationHistoryDto = {
|
|
941
|
+
/**
|
|
942
|
+
* The on-chain OneBtcVaultIteration account address.
|
|
943
|
+
*/
|
|
944
|
+
address: PubkeyDto;
|
|
945
|
+
/**
|
|
946
|
+
* When the winner claimed the prize; `null` until claimed.
|
|
947
|
+
*/
|
|
948
|
+
endedAt?: Date | null;
|
|
949
|
+
/**
|
|
950
|
+
* Iteration id; the pagination cursor.
|
|
951
|
+
*/
|
|
952
|
+
id: number;
|
|
953
|
+
/**
|
|
954
|
+
* When the draw was triggered and the winning ticket fixed; `null` while
|
|
955
|
+
* still accumulating.
|
|
956
|
+
*/
|
|
957
|
+
settledAt?: Date | null;
|
|
958
|
+
startedAt: Date;
|
|
959
|
+
totalParticipants: number;
|
|
960
|
+
totalTickets: U64Dto;
|
|
961
|
+
winner?: null | PubkeyDto;
|
|
962
|
+
};
|
|
711
963
|
/**
|
|
712
964
|
* Lifecycle state of a 1 BTC vault iteration.
|
|
713
965
|
*/
|
|
@@ -917,6 +1169,56 @@ type RoundDto = {
|
|
|
917
1169
|
winnersCount: number;
|
|
918
1170
|
winningTile?: number | null;
|
|
919
1171
|
};
|
|
1172
|
+
/**
|
|
1173
|
+
* A round's outcome as recorded by the rounds indexer.
|
|
1174
|
+
*/
|
|
1175
|
+
type RoundHistoryDto = {
|
|
1176
|
+
/**
|
|
1177
|
+
* Round id; the pagination cursor.
|
|
1178
|
+
*/
|
|
1179
|
+
id: number;
|
|
1180
|
+
/**
|
|
1181
|
+
* Whether the reveal triggered the sat strike; unset until revealed.
|
|
1182
|
+
*/
|
|
1183
|
+
isSatStrike?: boolean | null;
|
|
1184
|
+
minersCount: number;
|
|
1185
|
+
/**
|
|
1186
|
+
* When the round's pots were settled.
|
|
1187
|
+
*/
|
|
1188
|
+
settledAt?: Date | null;
|
|
1189
|
+
/**
|
|
1190
|
+
* When the first deployment activated the round.
|
|
1191
|
+
*/
|
|
1192
|
+
startedAt?: Date | null;
|
|
1193
|
+
state: RoundHistoryStateDto;
|
|
1194
|
+
strikeBonusBtc?: null | U64Dto;
|
|
1195
|
+
strikeBonusUsd?: null | U64Dto;
|
|
1196
|
+
totalDeployedUsd: U64Dto;
|
|
1197
|
+
totalPotBtc?: null | U64Dto;
|
|
1198
|
+
totalPotUsd?: null | U64Dto;
|
|
1199
|
+
/**
|
|
1200
|
+
* Miners on the winning tile; unset until revealed.
|
|
1201
|
+
*/
|
|
1202
|
+
winnersCount?: number | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* Winning tile of the reveal; unset until revealed.
|
|
1205
|
+
*/
|
|
1206
|
+
winningTile?: number | null;
|
|
1207
|
+
};
|
|
1208
|
+
/**
|
|
1209
|
+
* Lifecycle state of an indexed round.
|
|
1210
|
+
*/
|
|
1211
|
+
declare const RoundHistoryStateDto: {
|
|
1212
|
+
readonly PENDING: "pending";
|
|
1213
|
+
readonly ACTIVE: "active";
|
|
1214
|
+
readonly REVEALED: "revealed";
|
|
1215
|
+
readonly SETTLED: "settled";
|
|
1216
|
+
readonly FINISHED: "finished";
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* Lifecycle state of an indexed round.
|
|
1220
|
+
*/
|
|
1221
|
+
type RoundHistoryStateDto = typeof RoundHistoryStateDto[keyof typeof RoundHistoryStateDto];
|
|
920
1222
|
/**
|
|
921
1223
|
* Lifecycle state of a round.
|
|
922
1224
|
*/
|
|
@@ -930,6 +1232,27 @@ declare const RoundStateDto: {
|
|
|
930
1232
|
* Lifecycle state of a round.
|
|
931
1233
|
*/
|
|
932
1234
|
type RoundStateDto = typeof RoundStateDto[keyof typeof RoundStateDto];
|
|
1235
|
+
type RoundsApiError400Error = ({
|
|
1236
|
+
code: 'invalid_before';
|
|
1237
|
+
} & RoundsApiError400InvalidBefore) | ({
|
|
1238
|
+
code: 'invalid_range';
|
|
1239
|
+
} & RoundsApiError400InvalidRange) | ({
|
|
1240
|
+
code: 'invalid_is_sat_strike';
|
|
1241
|
+
} & RoundsApiError400InvalidIsSatStrike) | ({
|
|
1242
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
1243
|
+
} & BadRequestErrorCodeErrorBody);
|
|
1244
|
+
type RoundsApiError400InvalidBefore = {
|
|
1245
|
+
code: 'invalid_before';
|
|
1246
|
+
};
|
|
1247
|
+
type RoundsApiError400InvalidIsSatStrike = {
|
|
1248
|
+
code: 'invalid_is_sat_strike';
|
|
1249
|
+
};
|
|
1250
|
+
type RoundsApiError400InvalidRange = {
|
|
1251
|
+
code: 'invalid_range';
|
|
1252
|
+
};
|
|
1253
|
+
type RoundsApiError500Error = {
|
|
1254
|
+
code: 'internal';
|
|
1255
|
+
};
|
|
933
1256
|
/**
|
|
934
1257
|
* Protocol configuration: token mints and fee rates.
|
|
935
1258
|
*/
|
|
@@ -1088,6 +1411,27 @@ type UserDeploymentsApiError400InvalidRange = {
|
|
|
1088
1411
|
type UserDeploymentsApiError500Error = {
|
|
1089
1412
|
code: 'internal';
|
|
1090
1413
|
};
|
|
1414
|
+
type UserHashrateApiError400Error = ({
|
|
1415
|
+
code: 'invalid_address';
|
|
1416
|
+
} & UserHashrateApiError400InvalidAddress) | ({
|
|
1417
|
+
code: 'invalid_before';
|
|
1418
|
+
} & UserHashrateApiError400InvalidBefore) | ({
|
|
1419
|
+
code: 'invalid_range';
|
|
1420
|
+
} & UserHashrateApiError400InvalidRange) | ({
|
|
1421
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
1422
|
+
} & BadRequestErrorCodeErrorBody);
|
|
1423
|
+
type UserHashrateApiError400InvalidAddress = {
|
|
1424
|
+
code: 'invalid_address';
|
|
1425
|
+
};
|
|
1426
|
+
type UserHashrateApiError400InvalidBefore = {
|
|
1427
|
+
code: 'invalid_before';
|
|
1428
|
+
};
|
|
1429
|
+
type UserHashrateApiError400InvalidRange = {
|
|
1430
|
+
code: 'invalid_range';
|
|
1431
|
+
};
|
|
1432
|
+
type UserHashrateApiError500Error = {
|
|
1433
|
+
code: 'internal';
|
|
1434
|
+
};
|
|
1091
1435
|
type UserProfileApiError400Error = ({
|
|
1092
1436
|
code: 'invalid_address';
|
|
1093
1437
|
} & UserProfileApiError400InvalidAddress) | ({
|
|
@@ -1096,6 +1440,32 @@ type UserProfileApiError400Error = ({
|
|
|
1096
1440
|
type UserProfileApiError400InvalidAddress = {
|
|
1097
1441
|
code: 'invalid_address';
|
|
1098
1442
|
};
|
|
1443
|
+
type UserVaultEntriesApiError400Error = ({
|
|
1444
|
+
code: 'invalid_address';
|
|
1445
|
+
} & UserVaultEntriesApiError400InvalidAddress) | ({
|
|
1446
|
+
code: 'invalid_before';
|
|
1447
|
+
} & UserVaultEntriesApiError400InvalidBefore) | ({
|
|
1448
|
+
code: 'invalid_range';
|
|
1449
|
+
} & UserVaultEntriesApiError400InvalidRange) | ({
|
|
1450
|
+
code: 'invalid_wins_only';
|
|
1451
|
+
} & UserVaultEntriesApiError400InvalidWinsOnly) | ({
|
|
1452
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
1453
|
+
} & BadRequestErrorCodeErrorBody);
|
|
1454
|
+
type UserVaultEntriesApiError400InvalidAddress = {
|
|
1455
|
+
code: 'invalid_address';
|
|
1456
|
+
};
|
|
1457
|
+
type UserVaultEntriesApiError400InvalidBefore = {
|
|
1458
|
+
code: 'invalid_before';
|
|
1459
|
+
};
|
|
1460
|
+
type UserVaultEntriesApiError400InvalidRange = {
|
|
1461
|
+
code: 'invalid_range';
|
|
1462
|
+
};
|
|
1463
|
+
type UserVaultEntriesApiError400InvalidWinsOnly = {
|
|
1464
|
+
code: 'invalid_wins_only';
|
|
1465
|
+
};
|
|
1466
|
+
type UserVaultEntriesApiError500Error = {
|
|
1467
|
+
code: 'internal';
|
|
1468
|
+
};
|
|
1099
1469
|
type ValidationErrorCodeErrorBody = {
|
|
1100
1470
|
code: 'validation_failed';
|
|
1101
1471
|
data?: {
|
|
@@ -1140,41 +1510,210 @@ type GetConfigResponses = {
|
|
|
1140
1510
|
};
|
|
1141
1511
|
};
|
|
1142
1512
|
type GetConfigResponse = GetConfigResponses[keyof GetConfigResponses];
|
|
1143
|
-
type
|
|
1513
|
+
type GetEpochHistoryData = {
|
|
1144
1514
|
body?: never;
|
|
1145
1515
|
path?: never;
|
|
1146
|
-
query?:
|
|
1147
|
-
|
|
1516
|
+
query?: {
|
|
1517
|
+
/**
|
|
1518
|
+
* Only iterations with `id` strictly below this cursor; pass the last
|
|
1519
|
+
* `id` of the previous page to fetch the next one.
|
|
1520
|
+
*/
|
|
1521
|
+
before?: number;
|
|
1522
|
+
/**
|
|
1523
|
+
* Only iterations with `id` strictly above this cursor; pass the first
|
|
1524
|
+
* `id` of a page to fetch newer iterations.
|
|
1525
|
+
*/
|
|
1526
|
+
after?: number;
|
|
1527
|
+
/**
|
|
1528
|
+
* Page size, 1..=100; defaults to 50.
|
|
1529
|
+
*/
|
|
1530
|
+
limit?: number;
|
|
1531
|
+
};
|
|
1532
|
+
url: '/v1/epoch/history';
|
|
1148
1533
|
};
|
|
1149
|
-
type
|
|
1150
|
-
|
|
1534
|
+
type GetEpochHistoryErrors = {
|
|
1535
|
+
400: EpochHistoryApiError400Error;
|
|
1536
|
+
422: ValidationErrorCodeErrorBody;
|
|
1537
|
+
500: EpochHistoryApiError500Error;
|
|
1151
1538
|
};
|
|
1152
|
-
type
|
|
1153
|
-
type
|
|
1539
|
+
type GetEpochHistoryError = GetEpochHistoryErrors[keyof GetEpochHistoryErrors];
|
|
1540
|
+
type GetEpochHistoryResponses = {
|
|
1154
1541
|
200: {
|
|
1155
|
-
data: Array<
|
|
1542
|
+
data: Array<EpochIterationHistoryDto>;
|
|
1156
1543
|
};
|
|
1157
1544
|
};
|
|
1158
|
-
type
|
|
1159
|
-
type
|
|
1545
|
+
type GetEpochHistoryResponse = GetEpochHistoryResponses[keyof GetEpochHistoryResponses];
|
|
1546
|
+
type GetEpochWinnersData = {
|
|
1160
1547
|
body?: never;
|
|
1161
1548
|
path?: never;
|
|
1162
1549
|
query?: {
|
|
1163
1550
|
/**
|
|
1164
|
-
*
|
|
1165
|
-
*
|
|
1551
|
+
* Only winners with entry `id` strictly below this cursor; pass the last
|
|
1552
|
+
* `id` of the previous page to fetch the next one.
|
|
1166
1553
|
*/
|
|
1167
|
-
|
|
1554
|
+
before?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* Only winners with entry `id` strictly above this cursor; pass the
|
|
1557
|
+
* first `id` of a page to fetch newer winners.
|
|
1558
|
+
*/
|
|
1559
|
+
after?: number;
|
|
1560
|
+
/**
|
|
1561
|
+
* Page size, 1..=100; defaults to 50.
|
|
1562
|
+
*/
|
|
1563
|
+
limit?: number;
|
|
1168
1564
|
};
|
|
1169
|
-
url: '/v1/
|
|
1565
|
+
url: '/v1/epoch/winners';
|
|
1170
1566
|
};
|
|
1171
|
-
type
|
|
1172
|
-
400:
|
|
1567
|
+
type GetEpochWinnersErrors = {
|
|
1568
|
+
400: EpochWinnersApiError400Error;
|
|
1173
1569
|
422: ValidationErrorCodeErrorBody;
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1570
|
+
500: EpochWinnersApiError500Error;
|
|
1571
|
+
};
|
|
1572
|
+
type GetEpochWinnersError = GetEpochWinnersErrors[keyof GetEpochWinnersErrors];
|
|
1573
|
+
type GetEpochWinnersResponses = {
|
|
1574
|
+
200: {
|
|
1575
|
+
data: Array<EpochWinnerHistoryDto>;
|
|
1576
|
+
};
|
|
1577
|
+
};
|
|
1578
|
+
type GetEpochWinnersResponse = GetEpochWinnersResponses[keyof GetEpochWinnersResponses];
|
|
1579
|
+
type GetHashrateEarnedLeaderboardData = {
|
|
1580
|
+
body?: never;
|
|
1581
|
+
path?: never;
|
|
1582
|
+
query?: never;
|
|
1583
|
+
url: '/v1/leaderboard/hashrate-earned';
|
|
1584
|
+
};
|
|
1585
|
+
type GetHashrateEarnedLeaderboardErrors = {
|
|
1586
|
+
500: InternalErrorCodeErrorBody;
|
|
1587
|
+
};
|
|
1588
|
+
type GetHashrateEarnedLeaderboardError = GetHashrateEarnedLeaderboardErrors[keyof GetHashrateEarnedLeaderboardErrors];
|
|
1589
|
+
type GetHashrateEarnedLeaderboardResponses = {
|
|
1590
|
+
200: {
|
|
1591
|
+
data: Array<LeaderboardEntryDto>;
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
type GetHashrateEarnedLeaderboardResponse = GetHashrateEarnedLeaderboardResponses[keyof GetHashrateEarnedLeaderboardResponses];
|
|
1595
|
+
type GetRoundsPlayedLeaderboardData = {
|
|
1596
|
+
body?: never;
|
|
1597
|
+
path?: never;
|
|
1598
|
+
query?: never;
|
|
1599
|
+
url: '/v1/leaderboard/rounds-played';
|
|
1600
|
+
};
|
|
1601
|
+
type GetRoundsPlayedLeaderboardErrors = {
|
|
1602
|
+
500: InternalErrorCodeErrorBody;
|
|
1603
|
+
};
|
|
1604
|
+
type GetRoundsPlayedLeaderboardError = GetRoundsPlayedLeaderboardErrors[keyof GetRoundsPlayedLeaderboardErrors];
|
|
1605
|
+
type GetRoundsPlayedLeaderboardResponses = {
|
|
1606
|
+
200: {
|
|
1607
|
+
data: Array<LeaderboardEntryDto>;
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
type GetRoundsPlayedLeaderboardResponse = GetRoundsPlayedLeaderboardResponses[keyof GetRoundsPlayedLeaderboardResponses];
|
|
1611
|
+
type GetSatsEarnedLeaderboardData = {
|
|
1612
|
+
body?: never;
|
|
1613
|
+
path?: never;
|
|
1614
|
+
query?: never;
|
|
1615
|
+
url: '/v1/leaderboard/sats-earned';
|
|
1616
|
+
};
|
|
1617
|
+
type GetSatsEarnedLeaderboardErrors = {
|
|
1618
|
+
500: InternalErrorCodeErrorBody;
|
|
1619
|
+
};
|
|
1620
|
+
type GetSatsEarnedLeaderboardError = GetSatsEarnedLeaderboardErrors[keyof GetSatsEarnedLeaderboardErrors];
|
|
1621
|
+
type GetSatsEarnedLeaderboardResponses = {
|
|
1622
|
+
200: {
|
|
1623
|
+
data: Array<LeaderboardEntryDto>;
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
type GetSatsEarnedLeaderboardResponse = GetSatsEarnedLeaderboardResponses[keyof GetSatsEarnedLeaderboardResponses];
|
|
1627
|
+
type GetOneBtcHistoryData = {
|
|
1628
|
+
body?: never;
|
|
1629
|
+
path?: never;
|
|
1630
|
+
query?: {
|
|
1631
|
+
/**
|
|
1632
|
+
* Only iterations with `id` strictly below this cursor; pass the last
|
|
1633
|
+
* `id` of the previous page to fetch the next one.
|
|
1634
|
+
*/
|
|
1635
|
+
before?: number;
|
|
1636
|
+
/**
|
|
1637
|
+
* Only iterations with `id` strictly above this cursor; pass the first
|
|
1638
|
+
* `id` of a page to fetch newer iterations.
|
|
1639
|
+
*/
|
|
1640
|
+
after?: number;
|
|
1641
|
+
/**
|
|
1642
|
+
* Page size, 1..=100; defaults to 50.
|
|
1643
|
+
*/
|
|
1644
|
+
limit?: number;
|
|
1645
|
+
};
|
|
1646
|
+
url: '/v1/one-btc/history';
|
|
1647
|
+
};
|
|
1648
|
+
type GetOneBtcHistoryErrors = {
|
|
1649
|
+
400: OneBtcHistoryApiError400Error;
|
|
1650
|
+
422: ValidationErrorCodeErrorBody;
|
|
1651
|
+
500: OneBtcHistoryApiError500Error;
|
|
1652
|
+
};
|
|
1653
|
+
type GetOneBtcHistoryError = GetOneBtcHistoryErrors[keyof GetOneBtcHistoryErrors];
|
|
1654
|
+
type GetOneBtcHistoryResponses = {
|
|
1655
|
+
200: {
|
|
1656
|
+
data: Array<OneBtcIterationHistoryDto>;
|
|
1657
|
+
};
|
|
1658
|
+
};
|
|
1659
|
+
type GetOneBtcHistoryResponse = GetOneBtcHistoryResponses[keyof GetOneBtcHistoryResponses];
|
|
1660
|
+
type GetRoundsData = {
|
|
1661
|
+
body?: never;
|
|
1662
|
+
path?: never;
|
|
1663
|
+
query?: {
|
|
1664
|
+
/**
|
|
1665
|
+
* Only rounds with `id` strictly below this cursor; pass the last `id`
|
|
1666
|
+
* of the previous page to fetch the next one.
|
|
1667
|
+
*/
|
|
1668
|
+
before?: number;
|
|
1669
|
+
/**
|
|
1670
|
+
* Only rounds with `id` strictly above this cursor; pass the first `id`
|
|
1671
|
+
* of a page to fetch newer rounds.
|
|
1672
|
+
*/
|
|
1673
|
+
after?: number;
|
|
1674
|
+
/**
|
|
1675
|
+
* Page size, 1..=100; defaults to 50.
|
|
1676
|
+
*/
|
|
1677
|
+
limit?: number;
|
|
1678
|
+
/**
|
|
1679
|
+
* Pass 1 to return only rounds where the sat strike was triggered; 0 or
|
|
1680
|
+
* omitted applies no filter.
|
|
1681
|
+
*/
|
|
1682
|
+
isSatStrike?: number;
|
|
1683
|
+
};
|
|
1684
|
+
url: '/v1/rounds';
|
|
1685
|
+
};
|
|
1686
|
+
type GetRoundsErrors = {
|
|
1687
|
+
400: RoundsApiError400Error;
|
|
1688
|
+
422: ValidationErrorCodeErrorBody;
|
|
1689
|
+
500: RoundsApiError500Error;
|
|
1690
|
+
};
|
|
1691
|
+
type GetRoundsError = GetRoundsErrors[keyof GetRoundsErrors];
|
|
1692
|
+
type GetRoundsResponses = {
|
|
1693
|
+
200: {
|
|
1694
|
+
data: Array<RoundHistoryDto>;
|
|
1695
|
+
};
|
|
1696
|
+
};
|
|
1697
|
+
type GetRoundsResponse = GetRoundsResponses[keyof GetRoundsResponses];
|
|
1698
|
+
type SseData = {
|
|
1699
|
+
body?: never;
|
|
1700
|
+
path?: never;
|
|
1701
|
+
query?: {
|
|
1702
|
+
/**
|
|
1703
|
+
* Wallet address (base58); when set, snapshots for this client also carry
|
|
1704
|
+
* that wallet's profile.
|
|
1705
|
+
*/
|
|
1706
|
+
wallet?: string;
|
|
1707
|
+
};
|
|
1708
|
+
url: '/v1/streams/sse';
|
|
1709
|
+
};
|
|
1710
|
+
type SseErrors = {
|
|
1711
|
+
400: BadRequestErrorCodeErrorBody;
|
|
1712
|
+
422: ValidationErrorCodeErrorBody;
|
|
1713
|
+
/**
|
|
1714
|
+
* Internal error
|
|
1715
|
+
*/
|
|
1716
|
+
500: unknown;
|
|
1178
1717
|
};
|
|
1179
1718
|
type SseError = SseErrors[keyof SseErrors];
|
|
1180
1719
|
type SseResponses = {
|
|
@@ -1283,6 +1822,128 @@ type GetUserDeploymentsResponses = {
|
|
|
1283
1822
|
};
|
|
1284
1823
|
};
|
|
1285
1824
|
type GetUserDeploymentsResponse = GetUserDeploymentsResponses[keyof GetUserDeploymentsResponses];
|
|
1825
|
+
type GetUserEpochEntriesData = {
|
|
1826
|
+
body?: never;
|
|
1827
|
+
path: {
|
|
1828
|
+
/**
|
|
1829
|
+
* User wallet address (base58)
|
|
1830
|
+
*/
|
|
1831
|
+
address: string;
|
|
1832
|
+
};
|
|
1833
|
+
query?: {
|
|
1834
|
+
/**
|
|
1835
|
+
* Only entries with `id` strictly below this cursor; pass the last `id`
|
|
1836
|
+
* of the previous page to fetch the next one.
|
|
1837
|
+
*/
|
|
1838
|
+
before?: number;
|
|
1839
|
+
/**
|
|
1840
|
+
* Only entries with `id` strictly above this cursor; pass the first
|
|
1841
|
+
* `id` of a page to fetch newer entries.
|
|
1842
|
+
*/
|
|
1843
|
+
after?: number;
|
|
1844
|
+
/**
|
|
1845
|
+
* Page size, 1..=100; defaults to 50.
|
|
1846
|
+
*/
|
|
1847
|
+
limit?: number;
|
|
1848
|
+
/**
|
|
1849
|
+
* Pass 1 to return only winning entries; 0 or omitted applies no filter.
|
|
1850
|
+
*/
|
|
1851
|
+
winsOnly?: number;
|
|
1852
|
+
};
|
|
1853
|
+
url: '/v1/users/{address}/epoch';
|
|
1854
|
+
};
|
|
1855
|
+
type GetUserEpochEntriesErrors = {
|
|
1856
|
+
400: UserVaultEntriesApiError400Error;
|
|
1857
|
+
422: ValidationErrorCodeErrorBody;
|
|
1858
|
+
500: UserVaultEntriesApiError500Error;
|
|
1859
|
+
};
|
|
1860
|
+
type GetUserEpochEntriesError = GetUserEpochEntriesErrors[keyof GetUserEpochEntriesErrors];
|
|
1861
|
+
type GetUserEpochEntriesResponses = {
|
|
1862
|
+
200: {
|
|
1863
|
+
data: Array<MinerEpochEntryDto>;
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1866
|
+
type GetUserEpochEntriesResponse = GetUserEpochEntriesResponses[keyof GetUserEpochEntriesResponses];
|
|
1867
|
+
type GetUserHashrateActionsData = {
|
|
1868
|
+
body?: never;
|
|
1869
|
+
path: {
|
|
1870
|
+
/**
|
|
1871
|
+
* User wallet address (base58)
|
|
1872
|
+
*/
|
|
1873
|
+
address: string;
|
|
1874
|
+
};
|
|
1875
|
+
query?: {
|
|
1876
|
+
/**
|
|
1877
|
+
* Only actions with `id` strictly below this cursor; pass the last `id`
|
|
1878
|
+
* of the previous page to fetch the next one.
|
|
1879
|
+
*/
|
|
1880
|
+
before?: number;
|
|
1881
|
+
/**
|
|
1882
|
+
* Only actions with `id` strictly above this cursor; pass the first
|
|
1883
|
+
* `id` of a page to fetch newer actions.
|
|
1884
|
+
*/
|
|
1885
|
+
after?: number;
|
|
1886
|
+
/**
|
|
1887
|
+
* Page size, 1..=100; defaults to 50.
|
|
1888
|
+
*/
|
|
1889
|
+
limit?: number;
|
|
1890
|
+
};
|
|
1891
|
+
url: '/v1/users/{address}/hashrate';
|
|
1892
|
+
};
|
|
1893
|
+
type GetUserHashrateActionsErrors = {
|
|
1894
|
+
400: UserHashrateApiError400Error;
|
|
1895
|
+
422: ValidationErrorCodeErrorBody;
|
|
1896
|
+
500: UserHashrateApiError500Error;
|
|
1897
|
+
};
|
|
1898
|
+
type GetUserHashrateActionsError = GetUserHashrateActionsErrors[keyof GetUserHashrateActionsErrors];
|
|
1899
|
+
type GetUserHashrateActionsResponses = {
|
|
1900
|
+
200: {
|
|
1901
|
+
data: Array<MinerHashrateActionDto>;
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
type GetUserHashrateActionsResponse = GetUserHashrateActionsResponses[keyof GetUserHashrateActionsResponses];
|
|
1905
|
+
type GetUserOneBtcEntriesData = {
|
|
1906
|
+
body?: never;
|
|
1907
|
+
path: {
|
|
1908
|
+
/**
|
|
1909
|
+
* User wallet address (base58)
|
|
1910
|
+
*/
|
|
1911
|
+
address: string;
|
|
1912
|
+
};
|
|
1913
|
+
query?: {
|
|
1914
|
+
/**
|
|
1915
|
+
* Only entries with `id` strictly below this cursor; pass the last `id`
|
|
1916
|
+
* of the previous page to fetch the next one.
|
|
1917
|
+
*/
|
|
1918
|
+
before?: number;
|
|
1919
|
+
/**
|
|
1920
|
+
* Only entries with `id` strictly above this cursor; pass the first
|
|
1921
|
+
* `id` of a page to fetch newer entries.
|
|
1922
|
+
*/
|
|
1923
|
+
after?: number;
|
|
1924
|
+
/**
|
|
1925
|
+
* Page size, 1..=100; defaults to 50.
|
|
1926
|
+
*/
|
|
1927
|
+
limit?: number;
|
|
1928
|
+
/**
|
|
1929
|
+
* Pass 1 to return only winning entries; 0 or omitted applies no filter.
|
|
1930
|
+
*/
|
|
1931
|
+
winsOnly?: number;
|
|
1932
|
+
};
|
|
1933
|
+
url: '/v1/users/{address}/one-btc';
|
|
1934
|
+
};
|
|
1935
|
+
type GetUserOneBtcEntriesErrors = {
|
|
1936
|
+
400: UserVaultEntriesApiError400Error;
|
|
1937
|
+
422: ValidationErrorCodeErrorBody;
|
|
1938
|
+
500: UserVaultEntriesApiError500Error;
|
|
1939
|
+
};
|
|
1940
|
+
type GetUserOneBtcEntriesError = GetUserOneBtcEntriesErrors[keyof GetUserOneBtcEntriesErrors];
|
|
1941
|
+
type GetUserOneBtcEntriesResponses = {
|
|
1942
|
+
200: {
|
|
1943
|
+
data: Array<MinerOneBtcEntryDto>;
|
|
1944
|
+
};
|
|
1945
|
+
};
|
|
1946
|
+
type GetUserOneBtcEntriesResponse = GetUserOneBtcEntriesResponses[keyof GetUserOneBtcEntriesResponses];
|
|
1286
1947
|
|
|
1287
1948
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
1288
1949
|
/**
|
|
@@ -1324,9 +1985,50 @@ declare class SatrushBackendSdk extends HeyApiClient {
|
|
|
1324
1985
|
*/
|
|
1325
1986
|
getConfig<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetConfigResponses, GetConfigErrors, ThrowOnError, "fields">;
|
|
1326
1987
|
/**
|
|
1327
|
-
* Request
|
|
1988
|
+
* Request Epoch Vault history
|
|
1989
|
+
*/
|
|
1990
|
+
getEpochHistory<ThrowOnError extends boolean = false>(parameters?: {
|
|
1991
|
+
before?: number;
|
|
1992
|
+
after?: number;
|
|
1993
|
+
limit?: number;
|
|
1994
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetEpochHistoryResponses, GetEpochHistoryErrors, ThrowOnError, "fields">;
|
|
1995
|
+
/**
|
|
1996
|
+
* Request Epoch Vault winners
|
|
1997
|
+
*/
|
|
1998
|
+
getEpochWinners<ThrowOnError extends boolean = false>(parameters?: {
|
|
1999
|
+
before?: number;
|
|
2000
|
+
after?: number;
|
|
2001
|
+
limit?: number;
|
|
2002
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetEpochWinnersResponses, GetEpochWinnersErrors, ThrowOnError, "fields">;
|
|
2003
|
+
/**
|
|
2004
|
+
* Request the top miners by lifetime hashrate earned
|
|
1328
2005
|
*/
|
|
1329
|
-
|
|
2006
|
+
getHashrateEarnedLeaderboard<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetHashrateEarnedLeaderboardResponses, GetHashrateEarnedLeaderboardErrors, ThrowOnError, "fields">;
|
|
2007
|
+
/**
|
|
2008
|
+
* Request the top miners by lifetime rounds played
|
|
2009
|
+
*/
|
|
2010
|
+
getRoundsPlayedLeaderboard<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetRoundsPlayedLeaderboardResponses, GetRoundsPlayedLeaderboardErrors, ThrowOnError, "fields">;
|
|
2011
|
+
/**
|
|
2012
|
+
* Request the top miners by lifetime sats earned
|
|
2013
|
+
*/
|
|
2014
|
+
getSatsEarnedLeaderboard<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetSatsEarnedLeaderboardResponses, GetSatsEarnedLeaderboardErrors, ThrowOnError, "fields">;
|
|
2015
|
+
/**
|
|
2016
|
+
* Request 1 BTC Vault history
|
|
2017
|
+
*/
|
|
2018
|
+
getOneBtcHistory<ThrowOnError extends boolean = false>(parameters?: {
|
|
2019
|
+
before?: number;
|
|
2020
|
+
after?: number;
|
|
2021
|
+
limit?: number;
|
|
2022
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetOneBtcHistoryResponses, GetOneBtcHistoryErrors, ThrowOnError, "fields">;
|
|
2023
|
+
/**
|
|
2024
|
+
* Request rounds history
|
|
2025
|
+
*/
|
|
2026
|
+
getRounds<ThrowOnError extends boolean = false>(parameters?: {
|
|
2027
|
+
before?: number;
|
|
2028
|
+
after?: number;
|
|
2029
|
+
limit?: number;
|
|
2030
|
+
isSatStrike?: number;
|
|
2031
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetRoundsResponses, GetRoundsErrors, ThrowOnError, "fields">;
|
|
1330
2032
|
/**
|
|
1331
2033
|
* Subscribe for SSE stream
|
|
1332
2034
|
*/
|
|
@@ -1357,6 +2059,35 @@ declare class SatrushBackendSdk extends HeyApiClient {
|
|
|
1357
2059
|
after?: number;
|
|
1358
2060
|
limit?: number;
|
|
1359
2061
|
}, options?: Options<never, ThrowOnError>): RequestResult<GetUserDeploymentsResponses, GetUserDeploymentsErrors, ThrowOnError, "fields">;
|
|
2062
|
+
/**
|
|
2063
|
+
* Request user Epoch Vault entries
|
|
2064
|
+
*/
|
|
2065
|
+
getUserEpochEntries<ThrowOnError extends boolean = false>(parameters: {
|
|
2066
|
+
address: string;
|
|
2067
|
+
before?: number;
|
|
2068
|
+
after?: number;
|
|
2069
|
+
limit?: number;
|
|
2070
|
+
winsOnly?: number;
|
|
2071
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetUserEpochEntriesResponses, GetUserEpochEntriesErrors, ThrowOnError, "fields">;
|
|
2072
|
+
/**
|
|
2073
|
+
* Request user hashrate history
|
|
2074
|
+
*/
|
|
2075
|
+
getUserHashrateActions<ThrowOnError extends boolean = false>(parameters: {
|
|
2076
|
+
address: string;
|
|
2077
|
+
before?: number;
|
|
2078
|
+
after?: number;
|
|
2079
|
+
limit?: number;
|
|
2080
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetUserHashrateActionsResponses, GetUserHashrateActionsErrors, ThrowOnError, "fields">;
|
|
2081
|
+
/**
|
|
2082
|
+
* Request user 1 BTC Vault entries
|
|
2083
|
+
*/
|
|
2084
|
+
getUserOneBtcEntries<ThrowOnError extends boolean = false>(parameters: {
|
|
2085
|
+
address: string;
|
|
2086
|
+
before?: number;
|
|
2087
|
+
after?: number;
|
|
2088
|
+
limit?: number;
|
|
2089
|
+
winsOnly?: number;
|
|
2090
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetUserOneBtcEntriesResponses, GetUserOneBtcEntriesErrors, ThrowOnError, "fields">;
|
|
1360
2091
|
}
|
|
1361
2092
|
|
|
1362
2093
|
/**
|
|
@@ -1381,6 +2112,31 @@ declare const zClaimTypeDto: z.ZodEnum<{
|
|
|
1381
2112
|
usd: "usd";
|
|
1382
2113
|
sats: "sats";
|
|
1383
2114
|
}>;
|
|
2115
|
+
declare const zEpochHistoryApiError400InvalidRange: z.ZodObject<{
|
|
2116
|
+
code: z.ZodEnum<{
|
|
2117
|
+
invalid_range: "invalid_range";
|
|
2118
|
+
}>;
|
|
2119
|
+
}, z.core.$strip>;
|
|
2120
|
+
declare const zEpochHistoryApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
2121
|
+
code: z.ZodLiteral<"invalid_range">;
|
|
2122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2123
|
+
code: z.ZodEnum<{
|
|
2124
|
+
invalid_range: "invalid_range";
|
|
2125
|
+
}>;
|
|
2126
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2127
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
2128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2129
|
+
code: z.ZodEnum<{
|
|
2130
|
+
invalid_path: "invalid_path";
|
|
2131
|
+
invalid_query: "invalid_query";
|
|
2132
|
+
invalid_body: "invalid_body";
|
|
2133
|
+
}>;
|
|
2134
|
+
}, z.core.$strip>>]>;
|
|
2135
|
+
declare const zEpochHistoryApiError500Error: z.ZodObject<{
|
|
2136
|
+
code: z.ZodEnum<{
|
|
2137
|
+
internal: "internal";
|
|
2138
|
+
}>;
|
|
2139
|
+
}, z.core.$strip>;
|
|
1384
2140
|
/**
|
|
1385
2141
|
* Lifecycle state of an epoch vault iteration.
|
|
1386
2142
|
*/
|
|
@@ -1390,10 +2146,53 @@ declare const zEpochStateDto: z.ZodEnum<{
|
|
|
1390
2146
|
settled: "settled";
|
|
1391
2147
|
complete: "complete";
|
|
1392
2148
|
}>;
|
|
2149
|
+
declare const zEpochWinnersApiError400InvalidBefore: z.ZodObject<{
|
|
2150
|
+
code: z.ZodEnum<{
|
|
2151
|
+
invalid_before: "invalid_before";
|
|
2152
|
+
}>;
|
|
2153
|
+
}, z.core.$strip>;
|
|
2154
|
+
declare const zEpochWinnersApiError400InvalidRange: z.ZodObject<{
|
|
2155
|
+
code: z.ZodEnum<{
|
|
2156
|
+
invalid_range: "invalid_range";
|
|
2157
|
+
}>;
|
|
2158
|
+
}, z.core.$strip>;
|
|
2159
|
+
declare const zEpochWinnersApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
2160
|
+
code: z.ZodLiteral<"invalid_before">;
|
|
2161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2162
|
+
code: z.ZodEnum<{
|
|
2163
|
+
invalid_before: "invalid_before";
|
|
2164
|
+
}>;
|
|
2165
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2166
|
+
code: z.ZodLiteral<"invalid_range">;
|
|
2167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2168
|
+
code: z.ZodEnum<{
|
|
2169
|
+
invalid_range: "invalid_range";
|
|
2170
|
+
}>;
|
|
2171
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2172
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
2173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2174
|
+
code: z.ZodEnum<{
|
|
2175
|
+
invalid_path: "invalid_path";
|
|
2176
|
+
invalid_query: "invalid_query";
|
|
2177
|
+
invalid_body: "invalid_body";
|
|
2178
|
+
}>;
|
|
2179
|
+
}, z.core.$strip>>]>;
|
|
2180
|
+
declare const zEpochWinnersApiError500Error: z.ZodObject<{
|
|
2181
|
+
code: z.ZodEnum<{
|
|
2182
|
+
internal: "internal";
|
|
2183
|
+
}>;
|
|
2184
|
+
}, z.core.$strip>;
|
|
1393
2185
|
declare const zFieldError: z.ZodObject<{
|
|
1394
2186
|
field: z.ZodString;
|
|
1395
2187
|
message: z.ZodString;
|
|
1396
2188
|
}, z.core.$strip>;
|
|
2189
|
+
/**
|
|
2190
|
+
* Kind of an indexed hashrate spend.
|
|
2191
|
+
*/
|
|
2192
|
+
declare const zHashrateActionTypeDto: z.ZodEnum<{
|
|
2193
|
+
buy_epoch_tickets: "buy_epoch_tickets";
|
|
2194
|
+
buy_one_btc_tickets: "buy_one_btc_tickets";
|
|
2195
|
+
}>;
|
|
1397
2196
|
/**
|
|
1398
2197
|
* Signed 128-bit integer encoded as a decimal string.
|
|
1399
2198
|
*/
|
|
@@ -1410,6 +2209,31 @@ declare const zInternalErrorCodeErrorBody: z.ZodObject<{
|
|
|
1410
2209
|
declare const zNotificationEntity: z.ZodEnum<{
|
|
1411
2210
|
state_snapshot: "state_snapshot";
|
|
1412
2211
|
}>;
|
|
2212
|
+
declare const zOneBtcHistoryApiError400InvalidRange: z.ZodObject<{
|
|
2213
|
+
code: z.ZodEnum<{
|
|
2214
|
+
invalid_range: "invalid_range";
|
|
2215
|
+
}>;
|
|
2216
|
+
}, z.core.$strip>;
|
|
2217
|
+
declare const zOneBtcHistoryApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
2218
|
+
code: z.ZodLiteral<"invalid_range">;
|
|
2219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2220
|
+
code: z.ZodEnum<{
|
|
2221
|
+
invalid_range: "invalid_range";
|
|
2222
|
+
}>;
|
|
2223
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2224
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
2225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2226
|
+
code: z.ZodEnum<{
|
|
2227
|
+
invalid_path: "invalid_path";
|
|
2228
|
+
invalid_query: "invalid_query";
|
|
2229
|
+
invalid_body: "invalid_body";
|
|
2230
|
+
}>;
|
|
2231
|
+
}, z.core.$strip>>]>;
|
|
2232
|
+
declare const zOneBtcHistoryApiError500Error: z.ZodObject<{
|
|
2233
|
+
code: z.ZodEnum<{
|
|
2234
|
+
internal: "internal";
|
|
2235
|
+
}>;
|
|
2236
|
+
}, z.core.$strip>;
|
|
1413
2237
|
/**
|
|
1414
2238
|
* Lifecycle state of a 1 BTC vault iteration.
|
|
1415
2239
|
*/
|
|
@@ -1439,6 +2263,16 @@ declare const zPricesDto: z.ZodObject<{
|
|
|
1439
2263
|
* - OpenAPI: `type: string`, pattern for base58, optional format
|
|
1440
2264
|
*/
|
|
1441
2265
|
declare const zPubkeyDto: z.ZodString;
|
|
2266
|
+
/**
|
|
2267
|
+
* Lifecycle state of an indexed round.
|
|
2268
|
+
*/
|
|
2269
|
+
declare const zRoundHistoryStateDto: z.ZodEnum<{
|
|
2270
|
+
settled: "settled";
|
|
2271
|
+
active: "active";
|
|
2272
|
+
revealed: "revealed";
|
|
2273
|
+
finished: "finished";
|
|
2274
|
+
pending: "pending";
|
|
2275
|
+
}>;
|
|
1442
2276
|
/**
|
|
1443
2277
|
* Lifecycle state of a round.
|
|
1444
2278
|
*/
|
|
@@ -1448,6 +2282,53 @@ declare const zRoundStateDto: z.ZodEnum<{
|
|
|
1448
2282
|
revealed: "revealed";
|
|
1449
2283
|
finished: "finished";
|
|
1450
2284
|
}>;
|
|
2285
|
+
declare const zRoundsApiError400InvalidBefore: z.ZodObject<{
|
|
2286
|
+
code: z.ZodEnum<{
|
|
2287
|
+
invalid_before: "invalid_before";
|
|
2288
|
+
}>;
|
|
2289
|
+
}, z.core.$strip>;
|
|
2290
|
+
declare const zRoundsApiError400InvalidIsSatStrike: z.ZodObject<{
|
|
2291
|
+
code: z.ZodEnum<{
|
|
2292
|
+
invalid_is_sat_strike: "invalid_is_sat_strike";
|
|
2293
|
+
}>;
|
|
2294
|
+
}, z.core.$strip>;
|
|
2295
|
+
declare const zRoundsApiError400InvalidRange: z.ZodObject<{
|
|
2296
|
+
code: z.ZodEnum<{
|
|
2297
|
+
invalid_range: "invalid_range";
|
|
2298
|
+
}>;
|
|
2299
|
+
}, z.core.$strip>;
|
|
2300
|
+
declare const zRoundsApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
2301
|
+
code: z.ZodLiteral<"invalid_before">;
|
|
2302
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2303
|
+
code: z.ZodEnum<{
|
|
2304
|
+
invalid_before: "invalid_before";
|
|
2305
|
+
}>;
|
|
2306
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2307
|
+
code: z.ZodLiteral<"invalid_range">;
|
|
2308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2309
|
+
code: z.ZodEnum<{
|
|
2310
|
+
invalid_range: "invalid_range";
|
|
2311
|
+
}>;
|
|
2312
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2313
|
+
code: z.ZodLiteral<"invalid_is_sat_strike">;
|
|
2314
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2315
|
+
code: z.ZodEnum<{
|
|
2316
|
+
invalid_is_sat_strike: "invalid_is_sat_strike";
|
|
2317
|
+
}>;
|
|
2318
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2319
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
2320
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2321
|
+
code: z.ZodEnum<{
|
|
2322
|
+
invalid_path: "invalid_path";
|
|
2323
|
+
invalid_query: "invalid_query";
|
|
2324
|
+
invalid_body: "invalid_body";
|
|
2325
|
+
}>;
|
|
2326
|
+
}, z.core.$strip>>]>;
|
|
2327
|
+
declare const zRoundsApiError500Error: z.ZodObject<{
|
|
2328
|
+
code: z.ZodEnum<{
|
|
2329
|
+
internal: "internal";
|
|
2330
|
+
}>;
|
|
2331
|
+
}, z.core.$strip>;
|
|
1451
2332
|
/**
|
|
1452
2333
|
* Unsigned 128-bit integer encoded as a decimal string.
|
|
1453
2334
|
*/
|
|
@@ -1456,6 +2337,20 @@ declare const zU128Dto: z.ZodString;
|
|
|
1456
2337
|
* Unsigned 64-bit integer encoded as a decimal string.
|
|
1457
2338
|
*/
|
|
1458
2339
|
declare const zU64Dto: z.ZodCoercedBigInt<unknown>;
|
|
2340
|
+
/**
|
|
2341
|
+
* An Epoch Vault iteration as recorded by the rounds indexer.
|
|
2342
|
+
*/
|
|
2343
|
+
declare const zEpochIterationHistoryDto: z.ZodObject<{
|
|
2344
|
+
address: z.ZodString;
|
|
2345
|
+
endedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2346
|
+
id: z.ZodInt;
|
|
2347
|
+
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
2348
|
+
poolUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2349
|
+
startedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
2350
|
+
totalParticipants: z.ZodInt;
|
|
2351
|
+
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
2352
|
+
triggeredAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2353
|
+
}, z.core.$strip>;
|
|
1459
2354
|
/**
|
|
1460
2355
|
* A user's participation in an epoch vault iteration.
|
|
1461
2356
|
*/
|
|
@@ -1525,9 +2420,9 @@ declare const zEpochVaultDto: z.ZodObject<{
|
|
|
1525
2420
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1526
2421
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1527
2422
|
}, z.core.$strip>]>>;
|
|
1528
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2423
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
1529
2424
|
iterationId: z.ZodInt;
|
|
1530
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2425
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
1531
2426
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
1532
2427
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1533
2428
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1536,13 +2431,29 @@ declare const zEpochVaultDto: z.ZodObject<{
|
|
|
1536
2431
|
reservedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1537
2432
|
}, z.core.$strip>;
|
|
1538
2433
|
/**
|
|
1539
|
-
*
|
|
2434
|
+
* An Epoch Vault draw winner as recorded by the rounds indexer.
|
|
2435
|
+
*/
|
|
2436
|
+
declare const zEpochWinnerHistoryDto: z.ZodObject<{
|
|
2437
|
+
authority: z.ZodString;
|
|
2438
|
+
id: z.ZodInt;
|
|
2439
|
+
iterationId: z.ZodInt;
|
|
2440
|
+
rank: z.ZodInt;
|
|
2441
|
+
settledAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2442
|
+
settledAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2443
|
+
tickets: z.ZodCoercedBigInt<unknown>;
|
|
2444
|
+
wonBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
2445
|
+
wonUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2446
|
+
}, z.core.$strip>;
|
|
2447
|
+
/**
|
|
2448
|
+
* A miner's position on a lifetime-stats leaderboard.
|
|
1540
2449
|
*/
|
|
1541
2450
|
declare const zLeaderboardEntryDto: z.ZodObject<{
|
|
1542
2451
|
authority: z.ZodString;
|
|
1543
2452
|
maxStreak: z.ZodInt;
|
|
1544
2453
|
rank: z.ZodInt;
|
|
2454
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
1545
2455
|
totalRoundsPlayed: z.ZodInt;
|
|
2456
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
1546
2457
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
1547
2458
|
}, z.core.$strip>;
|
|
1548
2459
|
/**
|
|
@@ -1606,6 +2517,71 @@ declare const zMinerDto: z.ZodObject<{
|
|
|
1606
2517
|
unsettledSatsShares: z.ZodCoercedBigInt<unknown>;
|
|
1607
2518
|
unsettledUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1608
2519
|
}, z.core.$strip>;
|
|
2520
|
+
/**
|
|
2521
|
+
* A miner's Epoch Vault participation as recorded by the rounds indexer: one
|
|
2522
|
+
* row per iteration, accumulating the wallet's ticket buys, plus the draw
|
|
2523
|
+
* outcome once resolved.
|
|
2524
|
+
*/
|
|
2525
|
+
declare const zMinerEpochEntryDto: z.ZodObject<{
|
|
2526
|
+
address: z.ZodString;
|
|
2527
|
+
authority: z.ZodString;
|
|
2528
|
+
claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2529
|
+
createdAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
2530
|
+
id: z.ZodInt;
|
|
2531
|
+
isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
2532
|
+
iterationId: z.ZodInt;
|
|
2533
|
+
rank: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2534
|
+
tickets: z.ZodCoercedBigInt<unknown>;
|
|
2535
|
+
wonBtcAmount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2536
|
+
wonUsdAmount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2537
|
+
}, z.core.$strip>;
|
|
2538
|
+
/**
|
|
2539
|
+
* A miner's hashrate spend as recorded by the rounds indexer from a
|
|
2540
|
+
* `buy_epoch_tickets` or `buy_one_btc_tickets` instruction.
|
|
2541
|
+
*/
|
|
2542
|
+
declare const zMinerHashrateActionDto: z.ZodObject<{
|
|
2543
|
+
actionType: z.ZodEnum<{
|
|
2544
|
+
buy_epoch_tickets: "buy_epoch_tickets";
|
|
2545
|
+
buy_one_btc_tickets: "buy_one_btc_tickets";
|
|
2546
|
+
}>;
|
|
2547
|
+
authority: z.ZodString;
|
|
2548
|
+
executedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
2549
|
+
hashrateSpent: z.ZodCoercedBigInt<unknown>;
|
|
2550
|
+
id: z.ZodInt;
|
|
2551
|
+
signature: z.ZodString;
|
|
2552
|
+
ticketsBought: z.ZodCoercedBigInt<unknown>;
|
|
2553
|
+
}, z.core.$strip>;
|
|
2554
|
+
/**
|
|
2555
|
+
* A miner's 1 BTC Vault ticket purchase as recorded by the rounds indexer:
|
|
2556
|
+
* one row per buy holding the contiguous range
|
|
2557
|
+
* `[start_ticket_id, start_ticket_id + tickets)`, plus the draw outcome once
|
|
2558
|
+
* resolved.
|
|
2559
|
+
*/
|
|
2560
|
+
declare const zMinerOneBtcEntryDto: z.ZodObject<{
|
|
2561
|
+
address: z.ZodString;
|
|
2562
|
+
authority: z.ZodString;
|
|
2563
|
+
claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2564
|
+
createdAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
2565
|
+
id: z.ZodInt;
|
|
2566
|
+
isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
2567
|
+
iterationId: z.ZodInt;
|
|
2568
|
+
startTicketId: z.ZodCoercedBigInt<unknown>;
|
|
2569
|
+
tickets: z.ZodCoercedBigInt<unknown>;
|
|
2570
|
+
}, z.core.$strip>;
|
|
2571
|
+
/**
|
|
2572
|
+
* A 1 BTC Vault iteration as recorded by the rounds indexer, including the
|
|
2573
|
+
* draw's winner once settled.
|
|
2574
|
+
*/
|
|
2575
|
+
declare const zOneBtcIterationHistoryDto: z.ZodObject<{
|
|
2576
|
+
address: z.ZodString;
|
|
2577
|
+
endedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2578
|
+
id: z.ZodInt;
|
|
2579
|
+
settledAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2580
|
+
startedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
2581
|
+
totalParticipants: z.ZodInt;
|
|
2582
|
+
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
2583
|
+
winner: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
|
|
2584
|
+
}, z.core.$strip>;
|
|
1609
2585
|
/**
|
|
1610
2586
|
* A user's ticket purchase in a 1 BTC vault iteration.
|
|
1611
2587
|
*/
|
|
@@ -1746,6 +2722,30 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
1746
2722
|
selectionMask: z.ZodInt;
|
|
1747
2723
|
}, z.core.$strip>>;
|
|
1748
2724
|
}, z.core.$strip>;
|
|
2725
|
+
/**
|
|
2726
|
+
* A round's outcome as recorded by the rounds indexer.
|
|
2727
|
+
*/
|
|
2728
|
+
declare const zRoundHistoryDto: z.ZodObject<{
|
|
2729
|
+
id: z.ZodInt;
|
|
2730
|
+
isSatStrike: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
2731
|
+
minersCount: z.ZodInt;
|
|
2732
|
+
settledAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2733
|
+
startedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2734
|
+
state: z.ZodEnum<{
|
|
2735
|
+
settled: "settled";
|
|
2736
|
+
active: "active";
|
|
2737
|
+
revealed: "revealed";
|
|
2738
|
+
finished: "finished";
|
|
2739
|
+
pending: "pending";
|
|
2740
|
+
}>;
|
|
2741
|
+
strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2742
|
+
strikeBonusUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2743
|
+
totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
2744
|
+
totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2745
|
+
totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
2746
|
+
winnersCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2747
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2748
|
+
}, z.core.$strip>;
|
|
1749
2749
|
/**
|
|
1750
2750
|
* Protocol configuration: token mints and fee rates.
|
|
1751
2751
|
*/
|
|
@@ -1873,9 +2873,9 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
1873
2873
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1874
2874
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1875
2875
|
}, z.core.$strip>]>>;
|
|
1876
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2876
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
1877
2877
|
iterationId: z.ZodInt;
|
|
1878
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2878
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
1879
2879
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
1880
2880
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1881
2881
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1937,9 +2937,9 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
1937
2937
|
sat: z.ZodNumber;
|
|
1938
2938
|
}, z.core.$strip>;
|
|
1939
2939
|
roundDuration: z.ZodInt;
|
|
1940
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2940
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
1941
2941
|
roundId: z.ZodInt;
|
|
1942
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
2942
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
1943
2943
|
satsVault: z.ZodObject<{
|
|
1944
2944
|
address: z.ZodString;
|
|
1945
2945
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2008,9 +3008,9 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
2008
3008
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2009
3009
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2010
3010
|
}, z.core.$strip>]>>;
|
|
2011
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3011
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2012
3012
|
iterationId: z.ZodInt;
|
|
2013
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3013
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2014
3014
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2015
3015
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2016
3016
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2072,9 +3072,9 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
2072
3072
|
sat: z.ZodNumber;
|
|
2073
3073
|
}, z.core.$strip>;
|
|
2074
3074
|
roundDuration: z.ZodInt;
|
|
2075
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3075
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2076
3076
|
roundId: z.ZodInt;
|
|
2077
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3077
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2078
3078
|
satsVault: z.ZodObject<{
|
|
2079
3079
|
address: z.ZodString;
|
|
2080
3080
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2205,9 +3205,9 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
2205
3205
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2206
3206
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2207
3207
|
}, z.core.$strip>]>>;
|
|
2208
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3208
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2209
3209
|
iterationId: z.ZodInt;
|
|
2210
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3210
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2211
3211
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2212
3212
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2213
3213
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2269,9 +3269,9 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
2269
3269
|
sat: z.ZodNumber;
|
|
2270
3270
|
}, z.core.$strip>;
|
|
2271
3271
|
roundDuration: z.ZodInt;
|
|
2272
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3272
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2273
3273
|
roundId: z.ZodInt;
|
|
2274
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3274
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2275
3275
|
satsVault: z.ZodObject<{
|
|
2276
3276
|
address: z.ZodString;
|
|
2277
3277
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2408,9 +3408,9 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
2408
3408
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2409
3409
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2410
3410
|
}, z.core.$strip>]>>;
|
|
2411
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3411
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2412
3412
|
iterationId: z.ZodInt;
|
|
2413
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3413
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2414
3414
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2415
3415
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2416
3416
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2472,9 +3472,9 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
2472
3472
|
sat: z.ZodNumber;
|
|
2473
3473
|
}, z.core.$strip>;
|
|
2474
3474
|
roundDuration: z.ZodInt;
|
|
2475
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3475
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2476
3476
|
roundId: z.ZodInt;
|
|
2477
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3477
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2478
3478
|
satsVault: z.ZodObject<{
|
|
2479
3479
|
address: z.ZodString;
|
|
2480
3480
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2649,6 +3649,53 @@ declare const zUserDeploymentsApiError500Error: z.ZodObject<{
|
|
|
2649
3649
|
internal: "internal";
|
|
2650
3650
|
}>;
|
|
2651
3651
|
}, z.core.$strip>;
|
|
3652
|
+
declare const zUserHashrateApiError400InvalidAddress: z.ZodObject<{
|
|
3653
|
+
code: z.ZodEnum<{
|
|
3654
|
+
invalid_address: "invalid_address";
|
|
3655
|
+
}>;
|
|
3656
|
+
}, z.core.$strip>;
|
|
3657
|
+
declare const zUserHashrateApiError400InvalidBefore: z.ZodObject<{
|
|
3658
|
+
code: z.ZodEnum<{
|
|
3659
|
+
invalid_before: "invalid_before";
|
|
3660
|
+
}>;
|
|
3661
|
+
}, z.core.$strip>;
|
|
3662
|
+
declare const zUserHashrateApiError400InvalidRange: z.ZodObject<{
|
|
3663
|
+
code: z.ZodEnum<{
|
|
3664
|
+
invalid_range: "invalid_range";
|
|
3665
|
+
}>;
|
|
3666
|
+
}, z.core.$strip>;
|
|
3667
|
+
declare const zUserHashrateApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
3668
|
+
code: z.ZodLiteral<"invalid_address">;
|
|
3669
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3670
|
+
code: z.ZodEnum<{
|
|
3671
|
+
invalid_address: "invalid_address";
|
|
3672
|
+
}>;
|
|
3673
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3674
|
+
code: z.ZodLiteral<"invalid_before">;
|
|
3675
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3676
|
+
code: z.ZodEnum<{
|
|
3677
|
+
invalid_before: "invalid_before";
|
|
3678
|
+
}>;
|
|
3679
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3680
|
+
code: z.ZodLiteral<"invalid_range">;
|
|
3681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3682
|
+
code: z.ZodEnum<{
|
|
3683
|
+
invalid_range: "invalid_range";
|
|
3684
|
+
}>;
|
|
3685
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3686
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
3687
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3688
|
+
code: z.ZodEnum<{
|
|
3689
|
+
invalid_path: "invalid_path";
|
|
3690
|
+
invalid_query: "invalid_query";
|
|
3691
|
+
invalid_body: "invalid_body";
|
|
3692
|
+
}>;
|
|
3693
|
+
}, z.core.$strip>>]>;
|
|
3694
|
+
declare const zUserHashrateApiError500Error: z.ZodObject<{
|
|
3695
|
+
code: z.ZodEnum<{
|
|
3696
|
+
internal: "internal";
|
|
3697
|
+
}>;
|
|
3698
|
+
}, z.core.$strip>;
|
|
2652
3699
|
declare const zUserProfileApiError400InvalidAddress: z.ZodObject<{
|
|
2653
3700
|
code: z.ZodEnum<{
|
|
2654
3701
|
invalid_address: "invalid_address";
|
|
@@ -2669,6 +3716,64 @@ declare const zUserProfileApiError400Error: z.ZodUnion<readonly [z.ZodIntersecti
|
|
|
2669
3716
|
invalid_body: "invalid_body";
|
|
2670
3717
|
}>;
|
|
2671
3718
|
}, z.core.$strip>>]>;
|
|
3719
|
+
declare const zUserVaultEntriesApiError400InvalidAddress: z.ZodObject<{
|
|
3720
|
+
code: z.ZodEnum<{
|
|
3721
|
+
invalid_address: "invalid_address";
|
|
3722
|
+
}>;
|
|
3723
|
+
}, z.core.$strip>;
|
|
3724
|
+
declare const zUserVaultEntriesApiError400InvalidBefore: z.ZodObject<{
|
|
3725
|
+
code: z.ZodEnum<{
|
|
3726
|
+
invalid_before: "invalid_before";
|
|
3727
|
+
}>;
|
|
3728
|
+
}, z.core.$strip>;
|
|
3729
|
+
declare const zUserVaultEntriesApiError400InvalidRange: z.ZodObject<{
|
|
3730
|
+
code: z.ZodEnum<{
|
|
3731
|
+
invalid_range: "invalid_range";
|
|
3732
|
+
}>;
|
|
3733
|
+
}, z.core.$strip>;
|
|
3734
|
+
declare const zUserVaultEntriesApiError400InvalidWinsOnly: z.ZodObject<{
|
|
3735
|
+
code: z.ZodEnum<{
|
|
3736
|
+
invalid_wins_only: "invalid_wins_only";
|
|
3737
|
+
}>;
|
|
3738
|
+
}, z.core.$strip>;
|
|
3739
|
+
declare const zUserVaultEntriesApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
3740
|
+
code: z.ZodLiteral<"invalid_address">;
|
|
3741
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3742
|
+
code: z.ZodEnum<{
|
|
3743
|
+
invalid_address: "invalid_address";
|
|
3744
|
+
}>;
|
|
3745
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3746
|
+
code: z.ZodLiteral<"invalid_before">;
|
|
3747
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3748
|
+
code: z.ZodEnum<{
|
|
3749
|
+
invalid_before: "invalid_before";
|
|
3750
|
+
}>;
|
|
3751
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3752
|
+
code: z.ZodLiteral<"invalid_range">;
|
|
3753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3754
|
+
code: z.ZodEnum<{
|
|
3755
|
+
invalid_range: "invalid_range";
|
|
3756
|
+
}>;
|
|
3757
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3758
|
+
code: z.ZodLiteral<"invalid_wins_only">;
|
|
3759
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3760
|
+
code: z.ZodEnum<{
|
|
3761
|
+
invalid_wins_only: "invalid_wins_only";
|
|
3762
|
+
}>;
|
|
3763
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3764
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
3765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3766
|
+
code: z.ZodEnum<{
|
|
3767
|
+
invalid_path: "invalid_path";
|
|
3768
|
+
invalid_query: "invalid_query";
|
|
3769
|
+
invalid_body: "invalid_body";
|
|
3770
|
+
}>;
|
|
3771
|
+
}, z.core.$strip>>]>;
|
|
3772
|
+
declare const zUserVaultEntriesApiError500Error: z.ZodObject<{
|
|
3773
|
+
code: z.ZodEnum<{
|
|
3774
|
+
internal: "internal";
|
|
3775
|
+
}>;
|
|
3776
|
+
}, z.core.$strip>;
|
|
2672
3777
|
declare const zValidationErrorCodeErrorBody: z.ZodObject<{
|
|
2673
3778
|
code: z.ZodEnum<{
|
|
2674
3779
|
validation_failed: "validation_failed";
|
|
@@ -2750,9 +3855,9 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
2750
3855
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2751
3856
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2752
3857
|
}, z.core.$strip>]>>;
|
|
2753
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3858
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2754
3859
|
iterationId: z.ZodInt;
|
|
2755
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3860
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2756
3861
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2757
3862
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2758
3863
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2814,9 +3919,9 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
2814
3919
|
sat: z.ZodNumber;
|
|
2815
3920
|
}, z.core.$strip>;
|
|
2816
3921
|
roundDuration: z.ZodInt;
|
|
2817
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3922
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2818
3923
|
roundId: z.ZodInt;
|
|
2819
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
3924
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2820
3925
|
satsVault: z.ZodObject<{
|
|
2821
3926
|
address: z.ZodString;
|
|
2822
3927
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -2855,21 +3960,159 @@ declare const zGetConfigResponse: z.ZodObject<{
|
|
|
2855
3960
|
}, z.core.$strip>;
|
|
2856
3961
|
}, z.core.$strip>;
|
|
2857
3962
|
type GetConfigResponseZodType = z.infer<typeof zGetConfigResponse>;
|
|
2858
|
-
declare const
|
|
3963
|
+
declare const zGetEpochHistoryData: z.ZodObject<{
|
|
3964
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
3965
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
3966
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
3967
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
3968
|
+
after: z.ZodOptional<z.ZodInt>;
|
|
3969
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
3970
|
+
}, z.core.$strip>>;
|
|
3971
|
+
}, z.core.$strip>;
|
|
3972
|
+
declare const zGetEpochHistoryResponse: z.ZodObject<{
|
|
3973
|
+
data: z.ZodArray<z.ZodObject<{
|
|
3974
|
+
address: z.ZodString;
|
|
3975
|
+
endedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3976
|
+
id: z.ZodInt;
|
|
3977
|
+
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
3978
|
+
poolUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
3979
|
+
startedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
3980
|
+
totalParticipants: z.ZodInt;
|
|
3981
|
+
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
3982
|
+
triggeredAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3983
|
+
}, z.core.$strip>>;
|
|
3984
|
+
}, z.core.$strip>;
|
|
3985
|
+
type GetEpochHistoryResponseZodType = z.infer<typeof zGetEpochHistoryResponse>;
|
|
3986
|
+
declare const zGetEpochWinnersData: z.ZodObject<{
|
|
3987
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
3988
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
3989
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
3990
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
3991
|
+
after: z.ZodOptional<z.ZodInt>;
|
|
3992
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
3993
|
+
}, z.core.$strip>>;
|
|
3994
|
+
}, z.core.$strip>;
|
|
3995
|
+
declare const zGetEpochWinnersResponse: z.ZodObject<{
|
|
3996
|
+
data: z.ZodArray<z.ZodObject<{
|
|
3997
|
+
authority: z.ZodString;
|
|
3998
|
+
id: z.ZodInt;
|
|
3999
|
+
iterationId: z.ZodInt;
|
|
4000
|
+
rank: z.ZodInt;
|
|
4001
|
+
settledAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4002
|
+
settledAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4003
|
+
tickets: z.ZodCoercedBigInt<unknown>;
|
|
4004
|
+
wonBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
4005
|
+
wonUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
4006
|
+
}, z.core.$strip>>;
|
|
4007
|
+
}, z.core.$strip>;
|
|
4008
|
+
type GetEpochWinnersResponseZodType = z.infer<typeof zGetEpochWinnersResponse>;
|
|
4009
|
+
declare const zGetHashrateEarnedLeaderboardData: z.ZodObject<{
|
|
4010
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
4011
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
4012
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
4013
|
+
}, z.core.$strip>;
|
|
4014
|
+
declare const zGetHashrateEarnedLeaderboardResponse: z.ZodObject<{
|
|
4015
|
+
data: z.ZodArray<z.ZodObject<{
|
|
4016
|
+
authority: z.ZodString;
|
|
4017
|
+
maxStreak: z.ZodInt;
|
|
4018
|
+
rank: z.ZodInt;
|
|
4019
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
4020
|
+
totalRoundsPlayed: z.ZodInt;
|
|
4021
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
4022
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
4023
|
+
}, z.core.$strip>>;
|
|
4024
|
+
}, z.core.$strip>;
|
|
4025
|
+
type GetHashrateEarnedLeaderboardResponseZodType = z.infer<typeof zGetHashrateEarnedLeaderboardResponse>;
|
|
4026
|
+
declare const zGetRoundsPlayedLeaderboardData: z.ZodObject<{
|
|
4027
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
4028
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
4029
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
4030
|
+
}, z.core.$strip>;
|
|
4031
|
+
declare const zGetRoundsPlayedLeaderboardResponse: z.ZodObject<{
|
|
4032
|
+
data: z.ZodArray<z.ZodObject<{
|
|
4033
|
+
authority: z.ZodString;
|
|
4034
|
+
maxStreak: z.ZodInt;
|
|
4035
|
+
rank: z.ZodInt;
|
|
4036
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
4037
|
+
totalRoundsPlayed: z.ZodInt;
|
|
4038
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
4039
|
+
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
4040
|
+
}, z.core.$strip>>;
|
|
4041
|
+
}, z.core.$strip>;
|
|
4042
|
+
type GetRoundsPlayedLeaderboardResponseZodType = z.infer<typeof zGetRoundsPlayedLeaderboardResponse>;
|
|
4043
|
+
declare const zGetSatsEarnedLeaderboardData: z.ZodObject<{
|
|
2859
4044
|
body: z.ZodOptional<z.ZodNever>;
|
|
2860
4045
|
path: z.ZodOptional<z.ZodNever>;
|
|
2861
4046
|
query: z.ZodOptional<z.ZodNever>;
|
|
2862
4047
|
}, z.core.$strip>;
|
|
2863
|
-
declare const
|
|
4048
|
+
declare const zGetSatsEarnedLeaderboardResponse: z.ZodObject<{
|
|
2864
4049
|
data: z.ZodArray<z.ZodObject<{
|
|
2865
4050
|
authority: z.ZodString;
|
|
2866
4051
|
maxStreak: z.ZodInt;
|
|
2867
4052
|
rank: z.ZodInt;
|
|
4053
|
+
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
2868
4054
|
totalRoundsPlayed: z.ZodInt;
|
|
4055
|
+
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
2869
4056
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
2870
4057
|
}, z.core.$strip>>;
|
|
2871
4058
|
}, z.core.$strip>;
|
|
2872
|
-
type
|
|
4059
|
+
type GetSatsEarnedLeaderboardResponseZodType = z.infer<typeof zGetSatsEarnedLeaderboardResponse>;
|
|
4060
|
+
declare const zGetOneBtcHistoryData: z.ZodObject<{
|
|
4061
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
4062
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
4063
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
4064
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
4065
|
+
after: z.ZodOptional<z.ZodInt>;
|
|
4066
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
4067
|
+
}, z.core.$strip>>;
|
|
4068
|
+
}, z.core.$strip>;
|
|
4069
|
+
declare const zGetOneBtcHistoryResponse: z.ZodObject<{
|
|
4070
|
+
data: z.ZodArray<z.ZodObject<{
|
|
4071
|
+
address: z.ZodString;
|
|
4072
|
+
endedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4073
|
+
id: z.ZodInt;
|
|
4074
|
+
settledAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4075
|
+
startedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
4076
|
+
totalParticipants: z.ZodInt;
|
|
4077
|
+
totalTickets: z.ZodCoercedBigInt<unknown>;
|
|
4078
|
+
winner: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
|
|
4079
|
+
}, z.core.$strip>>;
|
|
4080
|
+
}, z.core.$strip>;
|
|
4081
|
+
type GetOneBtcHistoryResponseZodType = z.infer<typeof zGetOneBtcHistoryResponse>;
|
|
4082
|
+
declare const zGetRoundsData: z.ZodObject<{
|
|
4083
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
4084
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
4085
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
4086
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
4087
|
+
after: z.ZodOptional<z.ZodInt>;
|
|
4088
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
4089
|
+
isSatStrike: z.ZodOptional<z.ZodInt>;
|
|
4090
|
+
}, z.core.$strip>>;
|
|
4091
|
+
}, z.core.$strip>;
|
|
4092
|
+
declare const zGetRoundsResponse: z.ZodObject<{
|
|
4093
|
+
data: z.ZodArray<z.ZodObject<{
|
|
4094
|
+
id: z.ZodInt;
|
|
4095
|
+
isSatStrike: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
4096
|
+
minersCount: z.ZodInt;
|
|
4097
|
+
settledAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4098
|
+
startedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4099
|
+
state: z.ZodEnum<{
|
|
4100
|
+
settled: "settled";
|
|
4101
|
+
active: "active";
|
|
4102
|
+
revealed: "revealed";
|
|
4103
|
+
finished: "finished";
|
|
4104
|
+
pending: "pending";
|
|
4105
|
+
}>;
|
|
4106
|
+
strikeBonusBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4107
|
+
strikeBonusUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4108
|
+
totalDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4109
|
+
totalPotBtc: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4110
|
+
totalPotUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4111
|
+
winnersCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4112
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4113
|
+
}, z.core.$strip>>;
|
|
4114
|
+
}, z.core.$strip>;
|
|
4115
|
+
type GetRoundsResponseZodType = z.infer<typeof zGetRoundsResponse>;
|
|
2873
4116
|
declare const zSseData: z.ZodObject<{
|
|
2874
4117
|
body: z.ZodOptional<z.ZodNever>;
|
|
2875
4118
|
path: z.ZodOptional<z.ZodNever>;
|
|
@@ -2936,9 +4179,9 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
2936
4179
|
winnersClaimed: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2937
4180
|
winnersSelected: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
2938
4181
|
}, z.core.$strip>]>>;
|
|
2939
|
-
iterationEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4182
|
+
iterationEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2940
4183
|
iterationId: z.ZodInt;
|
|
2941
|
-
iterationStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4184
|
+
iterationStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
2942
4185
|
lastTriggerSlot: z.ZodCoercedBigInt<unknown>;
|
|
2943
4186
|
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
2944
4187
|
poolBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3000,9 +4243,9 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
3000
4243
|
sat: z.ZodNumber;
|
|
3001
4244
|
}, z.core.$strip>;
|
|
3002
4245
|
roundDuration: z.ZodInt;
|
|
3003
|
-
roundEndsAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4246
|
+
roundEndsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3004
4247
|
roundId: z.ZodInt;
|
|
3005
|
-
roundStartedAt: z.ZodPreprocess<z.ZodISODateTime
|
|
4248
|
+
roundStartedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
3006
4249
|
satsVault: z.ZodObject<{
|
|
3007
4250
|
address: z.ZodString;
|
|
3008
4251
|
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -3210,6 +4453,86 @@ declare const zGetUserDeploymentsResponse: z.ZodObject<{
|
|
|
3210
4453
|
}, z.core.$strip>>;
|
|
3211
4454
|
}, z.core.$strip>;
|
|
3212
4455
|
type GetUserDeploymentsResponseZodType = z.infer<typeof zGetUserDeploymentsResponse>;
|
|
4456
|
+
declare const zGetUserEpochEntriesData: z.ZodObject<{
|
|
4457
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
4458
|
+
path: z.ZodObject<{
|
|
4459
|
+
address: z.ZodString;
|
|
4460
|
+
}, z.core.$strip>;
|
|
4461
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
4462
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
4463
|
+
after: z.ZodOptional<z.ZodInt>;
|
|
4464
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
4465
|
+
winsOnly: z.ZodOptional<z.ZodInt>;
|
|
4466
|
+
}, z.core.$strip>>;
|
|
4467
|
+
}, z.core.$strip>;
|
|
4468
|
+
declare const zGetUserEpochEntriesResponse: z.ZodObject<{
|
|
4469
|
+
data: z.ZodArray<z.ZodObject<{
|
|
4470
|
+
address: z.ZodString;
|
|
4471
|
+
authority: z.ZodString;
|
|
4472
|
+
claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4473
|
+
createdAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
4474
|
+
id: z.ZodInt;
|
|
4475
|
+
isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
4476
|
+
iterationId: z.ZodInt;
|
|
4477
|
+
rank: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4478
|
+
tickets: z.ZodCoercedBigInt<unknown>;
|
|
4479
|
+
wonBtcAmount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4480
|
+
wonUsdAmount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
|
|
4481
|
+
}, z.core.$strip>>;
|
|
4482
|
+
}, z.core.$strip>;
|
|
4483
|
+
type GetUserEpochEntriesResponseZodType = z.infer<typeof zGetUserEpochEntriesResponse>;
|
|
4484
|
+
declare const zGetUserHashrateActionsData: z.ZodObject<{
|
|
4485
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
4486
|
+
path: z.ZodObject<{
|
|
4487
|
+
address: z.ZodString;
|
|
4488
|
+
}, z.core.$strip>;
|
|
4489
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
4490
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
4491
|
+
after: z.ZodOptional<z.ZodInt>;
|
|
4492
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
4493
|
+
}, z.core.$strip>>;
|
|
4494
|
+
}, z.core.$strip>;
|
|
4495
|
+
declare const zGetUserHashrateActionsResponse: z.ZodObject<{
|
|
4496
|
+
data: z.ZodArray<z.ZodObject<{
|
|
4497
|
+
actionType: z.ZodEnum<{
|
|
4498
|
+
buy_epoch_tickets: "buy_epoch_tickets";
|
|
4499
|
+
buy_one_btc_tickets: "buy_one_btc_tickets";
|
|
4500
|
+
}>;
|
|
4501
|
+
authority: z.ZodString;
|
|
4502
|
+
executedAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
4503
|
+
hashrateSpent: z.ZodCoercedBigInt<unknown>;
|
|
4504
|
+
id: z.ZodInt;
|
|
4505
|
+
signature: z.ZodString;
|
|
4506
|
+
ticketsBought: z.ZodCoercedBigInt<unknown>;
|
|
4507
|
+
}, z.core.$strip>>;
|
|
4508
|
+
}, z.core.$strip>;
|
|
4509
|
+
type GetUserHashrateActionsResponseZodType = z.infer<typeof zGetUserHashrateActionsResponse>;
|
|
4510
|
+
declare const zGetUserOneBtcEntriesData: z.ZodObject<{
|
|
4511
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
4512
|
+
path: z.ZodObject<{
|
|
4513
|
+
address: z.ZodString;
|
|
4514
|
+
}, z.core.$strip>;
|
|
4515
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
4516
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
4517
|
+
after: z.ZodOptional<z.ZodInt>;
|
|
4518
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
4519
|
+
winsOnly: z.ZodOptional<z.ZodInt>;
|
|
4520
|
+
}, z.core.$strip>>;
|
|
4521
|
+
}, z.core.$strip>;
|
|
4522
|
+
declare const zGetUserOneBtcEntriesResponse: z.ZodObject<{
|
|
4523
|
+
data: z.ZodArray<z.ZodObject<{
|
|
4524
|
+
address: z.ZodString;
|
|
4525
|
+
authority: z.ZodString;
|
|
4526
|
+
claimedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPreprocess<z.ZodISODateTime>, z.ZodNull]>>;
|
|
4527
|
+
createdAt: z.ZodPreprocess<z.ZodISODateTime>;
|
|
4528
|
+
id: z.ZodInt;
|
|
4529
|
+
isWon: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
4530
|
+
iterationId: z.ZodInt;
|
|
4531
|
+
startTicketId: z.ZodCoercedBigInt<unknown>;
|
|
4532
|
+
tickets: z.ZodCoercedBigInt<unknown>;
|
|
4533
|
+
}, z.core.$strip>>;
|
|
4534
|
+
}, z.core.$strip>;
|
|
4535
|
+
type GetUserOneBtcEntriesResponseZodType = z.infer<typeof zGetUserOneBtcEntriesResponse>;
|
|
3213
4536
|
|
|
3214
4537
|
type HasOnlyDataKey<T> = T extends object ? Exclude<keyof T, 'data'> extends never ? true : false : false;
|
|
3215
4538
|
type UnwrapData<T> = T extends {
|
|
@@ -3233,4 +4556,4 @@ declare class SatrushBackendSdkError<TCause = unknown> extends Error {
|
|
|
3233
4556
|
declare const satrushSdkErrorInterceptor: (error: unknown, response?: Response) => SatrushBackendSdkError<unknown>;
|
|
3234
4557
|
declare const isSatrushSdkError: <TCause = unknown>(error: unknown) => error is SatrushBackendSdkError<TCause>;
|
|
3235
4558
|
|
|
3236
|
-
export { AutomationStrategyDto, type BadRequestErrorCodeErrorBody, type BoardDto, ClaimTypeDto, 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
|
|
4559
|
+
export { AutomationStrategyDto, type BadRequestErrorCodeErrorBody, type BoardDto, ClaimTypeDto, type ClientOptions, type EpochHistoryApiError400Error, type EpochHistoryApiError400InvalidRange, type EpochHistoryApiError500Error, type EpochIterationHistoryDto, EpochStateDto, type EpochVaultDto, type EpochVaultEntryDto, type EpochVaultIterationDto, type EpochWinnerDto, type EpochWinnerHistoryDto, type EpochWinnersApiError400Error, type EpochWinnersApiError400InvalidBefore, type EpochWinnersApiError400InvalidRange, type EpochWinnersApiError500Error, 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 GetEpochHistoryData, type GetEpochHistoryError, type GetEpochHistoryErrors, type GetEpochHistoryResponse, type GetEpochHistoryResponseZodType, type GetEpochHistoryResponses, type GetEpochWinnersData, type GetEpochWinnersError, type GetEpochWinnersErrors, type GetEpochWinnersResponse, type GetEpochWinnersResponseZodType, type GetEpochWinnersResponses, type GetHashrateEarnedLeaderboardData, type GetHashrateEarnedLeaderboardError, type GetHashrateEarnedLeaderboardErrors, type GetHashrateEarnedLeaderboardResponse, type GetHashrateEarnedLeaderboardResponseZodType, type GetHashrateEarnedLeaderboardResponses, type GetOneBtcHistoryData, type GetOneBtcHistoryError, type GetOneBtcHistoryErrors, type GetOneBtcHistoryResponse, type GetOneBtcHistoryResponseZodType, type GetOneBtcHistoryResponses, type GetRoundsData, type GetRoundsError, type GetRoundsErrors, type GetRoundsPlayedLeaderboardData, type GetRoundsPlayedLeaderboardError, type GetRoundsPlayedLeaderboardErrors, type GetRoundsPlayedLeaderboardResponse, type GetRoundsPlayedLeaderboardResponseZodType, type GetRoundsPlayedLeaderboardResponses, type GetRoundsResponse, type GetRoundsResponseZodType, type GetRoundsResponses, type GetSatsEarnedLeaderboardData, type GetSatsEarnedLeaderboardError, type GetSatsEarnedLeaderboardErrors, type GetSatsEarnedLeaderboardResponse, type GetSatsEarnedLeaderboardResponseZodType, type GetSatsEarnedLeaderboardResponses, type GetUserClaimsData, type GetUserClaimsError, type GetUserClaimsErrors, type GetUserClaimsResponse, type GetUserClaimsResponseZodType, type GetUserClaimsResponses, type GetUserDeploymentsData, type GetUserDeploymentsError, type GetUserDeploymentsErrors, type GetUserDeploymentsResponse, type GetUserDeploymentsResponseZodType, type GetUserDeploymentsResponses, type GetUserEpochEntriesData, type GetUserEpochEntriesError, type GetUserEpochEntriesErrors, type GetUserEpochEntriesResponse, type GetUserEpochEntriesResponseZodType, type GetUserEpochEntriesResponses, type GetUserHashrateActionsData, type GetUserHashrateActionsError, type GetUserHashrateActionsErrors, type GetUserHashrateActionsResponse, type GetUserHashrateActionsResponseZodType, type GetUserHashrateActionsResponses, type GetUserOneBtcEntriesData, type GetUserOneBtcEntriesError, type GetUserOneBtcEntriesErrors, type GetUserOneBtcEntriesResponse, type GetUserOneBtcEntriesResponseZodType, type GetUserOneBtcEntriesResponses, type GetUserProfileData, type GetUserProfileError, type GetUserProfileErrors, type GetUserProfileResponse, type GetUserProfileResponseZodType, type GetUserProfileResponses, HashrateActionTypeDto, type I128Dto, type I64Dto, type InternalErrorCodeErrorBody, type LeaderboardEntryDto, type MinerClaimDto, type MinerDeploymentDto, type MinerDto, type MinerEpochEntryDto, type MinerHashrateActionDto, type MinerOneBtcEntryDto, NotificationEntity, type OneBtcHistoryApiError400Error, type OneBtcHistoryApiError400InvalidRange, type OneBtcHistoryApiError500Error, type OneBtcIterationHistoryDto, OneBtcStateDto, type OneBtcVaultDto, type OneBtcVaultEntryDto, type OneBtcVaultIterationDto, type Options, type PreviousRoundDto, type PricesDto, type ProfileDto, type PubkeyDto, type PublicAutomationDto, type PublicDeploymentDto, type RoundDto, type RoundHistoryDto, RoundHistoryStateDto, RoundStateDto, type RoundsApiError400Error, type RoundsApiError400InvalidBefore, type RoundsApiError400InvalidIsSatStrike, type RoundsApiError400InvalidRange, type RoundsApiError500Error, 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 UserClaimsApiError400Error, type UserClaimsApiError400InvalidAddress, type UserClaimsApiError400InvalidBefore, type UserClaimsApiError400InvalidRange, type UserClaimsApiError500Error, type UserDeploymentsApiError400Error, type UserDeploymentsApiError400InvalidAddress, type UserDeploymentsApiError400InvalidBefore, type UserDeploymentsApiError400InvalidRange, type UserDeploymentsApiError500Error, type UserHashrateApiError400Error, type UserHashrateApiError400InvalidAddress, type UserHashrateApiError400InvalidBefore, type UserHashrateApiError400InvalidRange, type UserHashrateApiError500Error, type UserProfileApiError400Error, type UserProfileApiError400InvalidAddress, type UserVaultEntriesApiError400Error, type UserVaultEntriesApiError400InvalidAddress, type UserVaultEntriesApiError400InvalidBefore, type UserVaultEntriesApiError400InvalidRange, type UserVaultEntriesApiError400InvalidWinsOnly, type UserVaultEntriesApiError500Error, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, createClient, createSseClient, isSatrushSdkError, satrushSdkErrorInterceptor, unwrap, zAutomationStrategyDto, zBadRequestErrorCodeErrorBody, zBoardDto, zClaimTypeDto, zEpochHistoryApiError400Error, zEpochHistoryApiError400InvalidRange, zEpochHistoryApiError500Error, zEpochIterationHistoryDto, zEpochStateDto, zEpochVaultDto, zEpochVaultEntryDto, zEpochVaultIterationDto, zEpochWinnerDto, zEpochWinnerHistoryDto, zEpochWinnersApiError400Error, zEpochWinnersApiError400InvalidBefore, zEpochWinnersApiError400InvalidRange, zEpochWinnersApiError500Error, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetEpochHistoryData, zGetEpochHistoryResponse, zGetEpochWinnersData, zGetEpochWinnersResponse, zGetHashrateEarnedLeaderboardData, zGetHashrateEarnedLeaderboardResponse, zGetOneBtcHistoryData, zGetOneBtcHistoryResponse, zGetRoundsData, zGetRoundsPlayedLeaderboardData, zGetRoundsPlayedLeaderboardResponse, zGetRoundsResponse, zGetSatsEarnedLeaderboardData, zGetSatsEarnedLeaderboardResponse, zGetUserClaimsData, zGetUserClaimsResponse, zGetUserDeploymentsData, zGetUserDeploymentsResponse, zGetUserEpochEntriesData, zGetUserEpochEntriesResponse, zGetUserHashrateActionsData, zGetUserHashrateActionsResponse, zGetUserOneBtcEntriesData, zGetUserOneBtcEntriesResponse, zGetUserProfileData, zGetUserProfileResponse, zHashrateActionTypeDto, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zLeaderboardEntryDto, zMinerClaimDto, zMinerDeploymentDto, zMinerDto, zMinerEpochEntryDto, zMinerHashrateActionDto, zMinerOneBtcEntryDto, zNotificationEntity, zOneBtcHistoryApiError400Error, zOneBtcHistoryApiError400InvalidRange, zOneBtcHistoryApiError500Error, zOneBtcIterationHistoryDto, zOneBtcStateDto, zOneBtcVaultDto, zOneBtcVaultEntryDto, zOneBtcVaultIterationDto, zPreviousRoundDto, zPricesDto, zProfileDto, zPubkeyDto, zPublicAutomationDto, zPublicDeploymentDto, zRoundDto, zRoundHistoryDto, zRoundHistoryStateDto, zRoundStateDto, zRoundsApiError400Error, zRoundsApiError400InvalidBefore, zRoundsApiError400InvalidIsSatStrike, zRoundsApiError400InvalidRange, zRoundsApiError500Error, zSatrushConfigDto, zSatsVaultDto, zSnapshotDto, zSseData, zSseResponse, zSseResponse2, zSseResponseSnapshot, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserClaimsApiError400Error, zUserClaimsApiError400InvalidAddress, zUserClaimsApiError400InvalidBefore, zUserClaimsApiError400InvalidRange, zUserClaimsApiError500Error, zUserDeploymentsApiError400Error, zUserDeploymentsApiError400InvalidAddress, zUserDeploymentsApiError400InvalidBefore, zUserDeploymentsApiError400InvalidRange, zUserDeploymentsApiError500Error, zUserHashrateApiError400Error, zUserHashrateApiError400InvalidAddress, zUserHashrateApiError400InvalidBefore, zUserHashrateApiError400InvalidRange, zUserHashrateApiError500Error, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zUserVaultEntriesApiError400Error, zUserVaultEntriesApiError400InvalidAddress, zUserVaultEntriesApiError400InvalidBefore, zUserVaultEntriesApiError400InvalidRange, zUserVaultEntriesApiError400InvalidWinsOnly, zUserVaultEntriesApiError500Error, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
|