@satrush/api 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +157 -1
- package/dist/index.d.ts +157 -1
- package/dist/index.js +43 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1391,6 +1391,12 @@ var i64DtoSchemaResponseTransformer = (data) => {
|
|
|
1391
1391
|
return data;
|
|
1392
1392
|
};
|
|
1393
1393
|
var minerDtoSchemaResponseTransformer = (data) => {
|
|
1394
|
+
data.affiliatePointsEarned = u64DtoSchemaResponseTransformer(data.affiliatePointsEarned);
|
|
1395
|
+
data.affiliatePointsSpent = u64DtoSchemaResponseTransformer(data.affiliatePointsSpent);
|
|
1396
|
+
if (data.grubstakeExpiresAt) {
|
|
1397
|
+
data.grubstakeExpiresAt = new Date(data.grubstakeExpiresAt);
|
|
1398
|
+
}
|
|
1399
|
+
data.grubstakeUsdAmount = u64DtoSchemaResponseTransformer(data.grubstakeUsdAmount);
|
|
1394
1400
|
data.hashrateAmount = u64DtoSchemaResponseTransformer(data.hashrateAmount);
|
|
1395
1401
|
data.totalBtcReceived = u64DtoSchemaResponseTransformer(data.totalBtcReceived);
|
|
1396
1402
|
data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
|
|
@@ -1598,6 +1604,7 @@ var zEpochIterationParticipantsApiError500Error = z.object({
|
|
|
1598
1604
|
});
|
|
1599
1605
|
var zEpochStateDto = z.enum([
|
|
1600
1606
|
"open",
|
|
1607
|
+
"sealed",
|
|
1601
1608
|
"settling",
|
|
1602
1609
|
"settled",
|
|
1603
1610
|
"complete"
|
|
@@ -1700,6 +1707,7 @@ var zOneBtcIterationParticipantsApiError500Error = z.object({
|
|
|
1700
1707
|
});
|
|
1701
1708
|
var zOneBtcStateDto = z.enum([
|
|
1702
1709
|
"open",
|
|
1710
|
+
"sealed",
|
|
1703
1711
|
"settled",
|
|
1704
1712
|
"complete"
|
|
1705
1713
|
]);
|
|
@@ -1867,6 +1875,7 @@ var zEpochVaultEntryDto = z.object({
|
|
|
1867
1875
|
var zEpochWinnerDto = z.object({
|
|
1868
1876
|
authority: zPubkeyDto,
|
|
1869
1877
|
claimed: z.boolean(),
|
|
1878
|
+
distributed: z.boolean(),
|
|
1870
1879
|
tickets: zU64Dto
|
|
1871
1880
|
});
|
|
1872
1881
|
var zEpochVaultIterationDto = z.object({
|
|
@@ -1892,6 +1901,10 @@ var zEpochVaultIterationDto = z.object({
|
|
|
1892
1901
|
z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1893
1902
|
z.null()
|
|
1894
1903
|
])),
|
|
1904
|
+
winnersDistributed: z.optional(z.union([
|
|
1905
|
+
z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1906
|
+
z.null()
|
|
1907
|
+
])),
|
|
1895
1908
|
winnersSelected: z.optional(z.union([
|
|
1896
1909
|
z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1897
1910
|
z.null()
|
|
@@ -2003,6 +2016,10 @@ var zMinerDeploymentDto = z.object({
|
|
|
2003
2016
|
deployment: zPubkeyDto,
|
|
2004
2017
|
hashrateEarned: zU64Dto,
|
|
2005
2018
|
isAutomation: z.boolean(),
|
|
2019
|
+
isGrubstakeFunded: z.optional(z.union([
|
|
2020
|
+
z.boolean(),
|
|
2021
|
+
z.null()
|
|
2022
|
+
])),
|
|
2006
2023
|
isReload: z.optional(z.union([
|
|
2007
2024
|
z.boolean(),
|
|
2008
2025
|
z.null()
|
|
@@ -2025,11 +2042,30 @@ var zMinerDeploymentDto = z.object({
|
|
|
2025
2042
|
usdEarned: zU64Dto
|
|
2026
2043
|
});
|
|
2027
2044
|
var zMinerDto = z.object({
|
|
2045
|
+
affiliate: z.optional(z.union([
|
|
2046
|
+
z.null(),
|
|
2047
|
+
zPubkeyDto
|
|
2048
|
+
])),
|
|
2049
|
+
affiliatePointsEarned: zU64Dto,
|
|
2050
|
+
affiliatePointsSpent: zU64Dto,
|
|
2051
|
+
affiliateRateBps: z.optional(z.union([
|
|
2052
|
+
z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2053
|
+
z.null()
|
|
2054
|
+
])),
|
|
2028
2055
|
authority: zPubkeyDto,
|
|
2029
2056
|
currentStreakCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2057
|
+
grubstakeExpiresAt: z.optional(z.union([
|
|
2058
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
2059
|
+
z.null()
|
|
2060
|
+
])),
|
|
2061
|
+
grubstakeUsdAmount: zU64Dto,
|
|
2030
2062
|
hashrateAmount: zU64Dto,
|
|
2031
2063
|
lastMinedRoundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2032
2064
|
maxStreak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2065
|
+
tag: z.optional(z.union([
|
|
2066
|
+
z.string(),
|
|
2067
|
+
z.null()
|
|
2068
|
+
])),
|
|
2033
2069
|
totalBtcReceived: zU64Dto,
|
|
2034
2070
|
totalHashrateEarned: zU64Dto,
|
|
2035
2071
|
totalRounds: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
@@ -2222,6 +2258,7 @@ var zOneBtcVaultDto = z.object({
|
|
|
2222
2258
|
var zPublicAutomationDto = z.object({
|
|
2223
2259
|
address: zPubkeyDto,
|
|
2224
2260
|
executedDeployments: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2261
|
+
isGrubstakeFunded: z.boolean(),
|
|
2225
2262
|
perRoundUsdAmount: zU64Dto,
|
|
2226
2263
|
reload: z.boolean(),
|
|
2227
2264
|
remainingDeployments: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
@@ -2264,6 +2301,10 @@ var zRoundDeploymentDto = z.object({
|
|
|
2264
2301
|
deployment: zPubkeyDto,
|
|
2265
2302
|
hashrateEarned: zU64Dto,
|
|
2266
2303
|
isAutomation: z.boolean(),
|
|
2304
|
+
isGrubstakeFunded: z.optional(z.union([
|
|
2305
|
+
z.boolean(),
|
|
2306
|
+
z.null()
|
|
2307
|
+
])),
|
|
2267
2308
|
isWon: z.optional(z.union([
|
|
2268
2309
|
z.boolean(),
|
|
2269
2310
|
z.null()
|
|
@@ -3418,6 +3459,7 @@ var AutomationStrategyDto = {
|
|
|
3418
3459
|
var ClaimTypeDto = { USD: "usd", SATS: "sats" };
|
|
3419
3460
|
var EpochStateDto = {
|
|
3420
3461
|
OPEN: "open",
|
|
3462
|
+
SEALED: "sealed",
|
|
3421
3463
|
SETTLING: "settling",
|
|
3422
3464
|
SETTLED: "settled",
|
|
3423
3465
|
COMPLETE: "complete"
|
|
@@ -3434,6 +3476,7 @@ var LeaderboardSortDto = {
|
|
|
3434
3476
|
var NotificationEntity = { STATE_SNAPSHOT: "state_snapshot" };
|
|
3435
3477
|
var OneBtcStateDto = {
|
|
3436
3478
|
OPEN: "open",
|
|
3479
|
+
SEALED: "sealed",
|
|
3437
3480
|
SETTLED: "settled",
|
|
3438
3481
|
COMPLETE: "complete"
|
|
3439
3482
|
};
|