@satrush/api 0.1.6 → 0.1.7
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 +210 -7
- package/dist/index.d.cts +413 -44
- package/dist/index.d.ts +413 -44
- package/dist/index.js +195 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -987,6 +987,8 @@ var epochVaultDtoSchemaResponseTransformer = (data) => {
|
|
|
987
987
|
if (data.currentIteration) {
|
|
988
988
|
data.currentIteration = epochVaultIterationDtoSchemaResponseTransformer(data.currentIteration);
|
|
989
989
|
}
|
|
990
|
+
data.iterationEndsAt = new Date(data.iterationEndsAt);
|
|
991
|
+
data.iterationStartedAt = new Date(data.iterationStartedAt);
|
|
990
992
|
data.lastTriggerSlot = u64DtoSchemaResponseTransformer(data.lastTriggerSlot);
|
|
991
993
|
data.pendingUsdAmount = u64DtoSchemaResponseTransformer(data.pendingUsdAmount);
|
|
992
994
|
data.poolBtcAmount = u64DtoSchemaResponseTransformer(data.poolBtcAmount);
|
|
@@ -1020,6 +1022,9 @@ var satsVaultDtoSchemaResponseTransformer = (data) => {
|
|
|
1020
1022
|
};
|
|
1021
1023
|
var strikeJackpotDtoSchemaResponseTransformer = (data) => {
|
|
1022
1024
|
data.btcAmount = u64DtoSchemaResponseTransformer(data.btcAmount);
|
|
1025
|
+
if (data.lastTriggerAt) {
|
|
1026
|
+
data.lastTriggerAt = new Date(data.lastTriggerAt);
|
|
1027
|
+
}
|
|
1023
1028
|
data.pendingUsdAmount = u64DtoSchemaResponseTransformer(data.pendingUsdAmount);
|
|
1024
1029
|
data.usdAmount = u64DtoSchemaResponseTransformer(data.usdAmount);
|
|
1025
1030
|
return data;
|
|
@@ -1035,6 +1040,8 @@ var boardDtoSchemaResponseTransformer = (data) => {
|
|
|
1035
1040
|
if (data.previousRound) {
|
|
1036
1041
|
data.previousRound = roundDtoSchemaResponseTransformer(data.previousRound);
|
|
1037
1042
|
}
|
|
1043
|
+
data.roundEndsAt = new Date(data.roundEndsAt);
|
|
1044
|
+
data.roundStartedAt = new Date(data.roundStartedAt);
|
|
1038
1045
|
data.satsVault = satsVaultDtoSchemaResponseTransformer(data.satsVault);
|
|
1039
1046
|
data.startSlot = u64DtoSchemaResponseTransformer(data.startSlot);
|
|
1040
1047
|
data.strike = strikeJackpotDtoSchemaResponseTransformer(data.strike);
|
|
@@ -1052,6 +1059,14 @@ var getConfigResponseTransformer = async (data) => {
|
|
|
1052
1059
|
data.data = satrushConfigDtoSchemaResponseTransformer(data.data);
|
|
1053
1060
|
return data;
|
|
1054
1061
|
};
|
|
1062
|
+
var leaderboardEntryDtoSchemaResponseTransformer = (data) => {
|
|
1063
|
+
data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
|
|
1064
|
+
return data;
|
|
1065
|
+
};
|
|
1066
|
+
var getLeaderboardResponseTransformer = async (data) => {
|
|
1067
|
+
data.data = data.data.map((item) => leaderboardEntryDtoSchemaResponseTransformer(item));
|
|
1068
|
+
return data;
|
|
1069
|
+
};
|
|
1055
1070
|
var publicAutomationDtoSchemaResponseTransformer = (data) => {
|
|
1056
1071
|
data.perRoundUsdAmount = u64DtoSchemaResponseTransformer(data.perRoundUsdAmount);
|
|
1057
1072
|
data.remainingUsdAmount = u64DtoSchemaResponseTransformer(data.remainingUsdAmount);
|
|
@@ -1061,10 +1076,6 @@ var publicAutomationDtoSchemaResponseTransformer = (data) => {
|
|
|
1061
1076
|
data.totalUsdEarned = u64DtoSchemaResponseTransformer(data.totalUsdEarned);
|
|
1062
1077
|
return data;
|
|
1063
1078
|
};
|
|
1064
|
-
var publicDeploymentDtoSchemaResponseTransformer = (data) => {
|
|
1065
|
-
data.deployedUsdAmount = u64DtoSchemaResponseTransformer(data.deployedUsdAmount);
|
|
1066
|
-
return data;
|
|
1067
|
-
};
|
|
1068
1079
|
var epochVaultEntryDtoSchemaResponseTransformer = (data) => {
|
|
1069
1080
|
data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
|
|
1070
1081
|
return data;
|
|
@@ -1090,14 +1101,18 @@ var oneBtcVaultEntryDtoSchemaResponseTransformer = (data) => {
|
|
|
1090
1101
|
data.ticketsCount = u64DtoSchemaResponseTransformer(data.ticketsCount);
|
|
1091
1102
|
return data;
|
|
1092
1103
|
};
|
|
1104
|
+
var publicDeploymentDtoSchemaResponseTransformer = (data) => {
|
|
1105
|
+
data.deployedUsdAmount = u64DtoSchemaResponseTransformer(data.deployedUsdAmount);
|
|
1106
|
+
return data;
|
|
1107
|
+
};
|
|
1093
1108
|
var profileDtoSchemaResponseTransformer = (data) => {
|
|
1094
1109
|
if (data.automation) {
|
|
1095
1110
|
data.automation = publicAutomationDtoSchemaResponseTransformer(data.automation);
|
|
1096
1111
|
}
|
|
1097
|
-
data.deployments = data.deployments.map((item) => publicDeploymentDtoSchemaResponseTransformer(item));
|
|
1098
1112
|
data.epochVaultEntries = data.epochVaultEntries.map((item) => epochVaultEntryDtoSchemaResponseTransformer(item));
|
|
1099
1113
|
data.miner = minerDtoSchemaResponseTransformer(data.miner);
|
|
1100
1114
|
data.oneBtcVaultEntries = data.oneBtcVaultEntries.map((item) => oneBtcVaultEntryDtoSchemaResponseTransformer(item));
|
|
1115
|
+
data.unsettledDeployments = data.unsettledDeployments.map((item) => publicDeploymentDtoSchemaResponseTransformer(item));
|
|
1101
1116
|
return data;
|
|
1102
1117
|
};
|
|
1103
1118
|
var snapshotDtoSchemaResponseTransformer = (data) => {
|
|
@@ -1123,6 +1138,26 @@ var getUserProfileResponseTransformer = async (data) => {
|
|
|
1123
1138
|
data.data = profileDtoSchemaResponseTransformer(data.data);
|
|
1124
1139
|
return data;
|
|
1125
1140
|
};
|
|
1141
|
+
var minerClaimDtoSchemaResponseTransformer = (data) => {
|
|
1142
|
+
if (data.btcReceived) {
|
|
1143
|
+
data.btcReceived = u64DtoSchemaResponseTransformer(data.btcReceived);
|
|
1144
|
+
}
|
|
1145
|
+
data.claimedAt = new Date(data.claimedAt);
|
|
1146
|
+
if (data.hashrateClaimed) {
|
|
1147
|
+
data.hashrateClaimed = u64DtoSchemaResponseTransformer(data.hashrateClaimed);
|
|
1148
|
+
}
|
|
1149
|
+
if (data.satsClaimed) {
|
|
1150
|
+
data.satsClaimed = u64DtoSchemaResponseTransformer(data.satsClaimed);
|
|
1151
|
+
}
|
|
1152
|
+
if (data.usdClaimed) {
|
|
1153
|
+
data.usdClaimed = u64DtoSchemaResponseTransformer(data.usdClaimed);
|
|
1154
|
+
}
|
|
1155
|
+
return data;
|
|
1156
|
+
};
|
|
1157
|
+
var getUserClaimsResponseTransformer = async (data) => {
|
|
1158
|
+
data.data = data.data.map((item) => minerClaimDtoSchemaResponseTransformer(item));
|
|
1159
|
+
return data;
|
|
1160
|
+
};
|
|
1126
1161
|
var minerDeploymentDtoSchemaResponseTransformer = (data) => {
|
|
1127
1162
|
data.deployedAt = new Date(data.deployedAt);
|
|
1128
1163
|
data.deployedUsdAmount = u64DtoSchemaResponseTransformer(data.deployedUsdAmount);
|
|
@@ -1154,6 +1189,7 @@ var zBadRequestErrorCodeErrorBody = z.object({
|
|
|
1154
1189
|
"invalid_body"
|
|
1155
1190
|
])
|
|
1156
1191
|
});
|
|
1192
|
+
var zClaimTypeDto = z.enum(["usd", "sats"]);
|
|
1157
1193
|
var zEpochStateDto = z.enum([
|
|
1158
1194
|
"open",
|
|
1159
1195
|
"settling",
|
|
@@ -1176,6 +1212,7 @@ var zOneBtcStateDto = z.enum([
|
|
|
1176
1212
|
"complete"
|
|
1177
1213
|
]);
|
|
1178
1214
|
var zPreviousRoundDto = z.object({
|
|
1215
|
+
roundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1179
1216
|
winningTile: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
|
|
1180
1217
|
});
|
|
1181
1218
|
var zPricesDto = z.object({
|
|
@@ -1236,7 +1273,9 @@ var zEpochVaultDto = z.object({
|
|
|
1236
1273
|
z.null(),
|
|
1237
1274
|
zEpochVaultIterationDto
|
|
1238
1275
|
])),
|
|
1276
|
+
iterationEndsAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1239
1277
|
iterationId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1278
|
+
iterationStartedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1240
1279
|
lastTriggerSlot: zU64Dto,
|
|
1241
1280
|
pendingUsdAmount: zU64Dto,
|
|
1242
1281
|
poolBtcAmount: zU64Dto,
|
|
@@ -1244,6 +1283,36 @@ var zEpochVaultDto = z.object({
|
|
|
1244
1283
|
reservedBtcAmount: zU64Dto,
|
|
1245
1284
|
reservedUsdAmount: zU64Dto
|
|
1246
1285
|
});
|
|
1286
|
+
var zLeaderboardEntryDto = z.object({
|
|
1287
|
+
authority: zPubkeyDto,
|
|
1288
|
+
maxStreak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1289
|
+
rank: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1290
|
+
totalRoundsPlayed: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1291
|
+
totalUsdDeployed: zU64Dto
|
|
1292
|
+
});
|
|
1293
|
+
var zMinerClaimDto = z.object({
|
|
1294
|
+
authority: zPubkeyDto,
|
|
1295
|
+
btcReceived: z.optional(z.union([
|
|
1296
|
+
z.null(),
|
|
1297
|
+
zU64Dto
|
|
1298
|
+
])),
|
|
1299
|
+
claimType: zClaimTypeDto,
|
|
1300
|
+
claimedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1301
|
+
hashrateClaimed: z.optional(z.union([
|
|
1302
|
+
z.null(),
|
|
1303
|
+
zU64Dto
|
|
1304
|
+
])),
|
|
1305
|
+
id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1306
|
+
satsClaimed: z.optional(z.union([
|
|
1307
|
+
z.null(),
|
|
1308
|
+
zU64Dto
|
|
1309
|
+
])),
|
|
1310
|
+
signature: z.string(),
|
|
1311
|
+
usdClaimed: z.optional(z.union([
|
|
1312
|
+
z.null(),
|
|
1313
|
+
zU64Dto
|
|
1314
|
+
]))
|
|
1315
|
+
});
|
|
1247
1316
|
var zMinerDeploymentDto = z.object({
|
|
1248
1317
|
authority: zPubkeyDto,
|
|
1249
1318
|
deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
@@ -1346,10 +1415,10 @@ var zProfileDto = z.object({
|
|
|
1346
1415
|
z.null(),
|
|
1347
1416
|
zPublicAutomationDto
|
|
1348
1417
|
])),
|
|
1349
|
-
deployments: z.array(zPublicDeploymentDto),
|
|
1350
1418
|
epochVaultEntries: z.array(zEpochVaultEntryDto),
|
|
1351
1419
|
miner: zMinerDto,
|
|
1352
|
-
oneBtcVaultEntries: z.array(zOneBtcVaultEntryDto)
|
|
1420
|
+
oneBtcVaultEntries: z.array(zOneBtcVaultEntryDto),
|
|
1421
|
+
unsettledDeployments: z.array(zPublicDeploymentDto)
|
|
1353
1422
|
});
|
|
1354
1423
|
var zSatrushConfigDto = z.object({
|
|
1355
1424
|
address: zPubkeyDto,
|
|
@@ -1372,6 +1441,10 @@ var zSatsVaultDto = z.object({
|
|
|
1372
1441
|
});
|
|
1373
1442
|
var zStrikeJackpotDto = z.object({
|
|
1374
1443
|
btcAmount: zU64Dto,
|
|
1444
|
+
lastTriggerAt: z.optional(z.union([
|
|
1445
|
+
z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1446
|
+
z.null()
|
|
1447
|
+
])),
|
|
1375
1448
|
lastTriggerRoundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1376
1449
|
pendingUsdAmount: zU64Dto,
|
|
1377
1450
|
usdAmount: zU64Dto
|
|
@@ -1417,7 +1490,9 @@ var zBoardDto = z.object({
|
|
|
1417
1490
|
previousRounds: z.array(zPreviousRoundDto),
|
|
1418
1491
|
prices: zPricesDto,
|
|
1419
1492
|
roundDuration: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1493
|
+
roundEndsAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1420
1494
|
roundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
1495
|
+
roundStartedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
|
|
1421
1496
|
satsVault: zSatsVaultDto,
|
|
1422
1497
|
startSlot: zU64Dto,
|
|
1423
1498
|
strike: zStrikeJackpotDto
|
|
@@ -1436,13 +1511,55 @@ var zSseResponseSnapshot = zSnapshotDto.and(z.object({
|
|
|
1436
1511
|
var zSseResponse = z.object({
|
|
1437
1512
|
entity: z.literal("state_snapshot")
|
|
1438
1513
|
}).and(zSseResponseSnapshot);
|
|
1514
|
+
var zUserClaimsApiError400InvalidAddress = z.object({
|
|
1515
|
+
code: z.enum(["invalid_address"])
|
|
1516
|
+
});
|
|
1517
|
+
var zUserClaimsApiError400InvalidBefore = z.object({
|
|
1518
|
+
code: z.enum(["invalid_before"])
|
|
1519
|
+
});
|
|
1520
|
+
var zUserClaimsApiError400InvalidRange = z.object({
|
|
1521
|
+
code: z.enum(["invalid_range"])
|
|
1522
|
+
});
|
|
1523
|
+
var zUserClaimsApiError400Error = z.union([
|
|
1524
|
+
z.object({
|
|
1525
|
+
code: z.literal("invalid_address")
|
|
1526
|
+
}).and(zUserClaimsApiError400InvalidAddress),
|
|
1527
|
+
z.object({
|
|
1528
|
+
code: z.literal("invalid_before")
|
|
1529
|
+
}).and(zUserClaimsApiError400InvalidBefore),
|
|
1530
|
+
z.object({
|
|
1531
|
+
code: z.literal("invalid_range")
|
|
1532
|
+
}).and(zUserClaimsApiError400InvalidRange),
|
|
1533
|
+
z.object({
|
|
1534
|
+
code: z.union([
|
|
1535
|
+
z.literal("invalid_body"),
|
|
1536
|
+
z.literal("invalid_path"),
|
|
1537
|
+
z.literal("invalid_query")
|
|
1538
|
+
])
|
|
1539
|
+
}).and(zBadRequestErrorCodeErrorBody)
|
|
1540
|
+
]);
|
|
1541
|
+
var zUserClaimsApiError500Error = z.object({
|
|
1542
|
+
code: z.enum(["internal"])
|
|
1543
|
+
});
|
|
1439
1544
|
var zUserDeploymentsApiError400InvalidAddress = z.object({
|
|
1440
1545
|
code: z.enum(["invalid_address"])
|
|
1441
1546
|
});
|
|
1547
|
+
var zUserDeploymentsApiError400InvalidBefore = z.object({
|
|
1548
|
+
code: z.enum(["invalid_before"])
|
|
1549
|
+
});
|
|
1550
|
+
var zUserDeploymentsApiError400InvalidRange = z.object({
|
|
1551
|
+
code: z.enum(["invalid_range"])
|
|
1552
|
+
});
|
|
1442
1553
|
var zUserDeploymentsApiError400Error = z.union([
|
|
1443
1554
|
z.object({
|
|
1444
1555
|
code: z.literal("invalid_address")
|
|
1445
1556
|
}).and(zUserDeploymentsApiError400InvalidAddress),
|
|
1557
|
+
z.object({
|
|
1558
|
+
code: z.literal("invalid_before")
|
|
1559
|
+
}).and(zUserDeploymentsApiError400InvalidBefore),
|
|
1560
|
+
z.object({
|
|
1561
|
+
code: z.literal("invalid_range")
|
|
1562
|
+
}).and(zUserDeploymentsApiError400InvalidRange),
|
|
1446
1563
|
z.object({
|
|
1447
1564
|
code: z.union([
|
|
1448
1565
|
z.literal("invalid_body"),
|
|
@@ -1497,6 +1614,14 @@ var zGetConfigData = z.object({
|
|
|
1497
1614
|
var zGetConfigResponse = z.object({
|
|
1498
1615
|
data: zSatrushConfigDto
|
|
1499
1616
|
});
|
|
1617
|
+
var zGetLeaderboardData = z.object({
|
|
1618
|
+
body: z.optional(z.never()),
|
|
1619
|
+
path: z.optional(z.never()),
|
|
1620
|
+
query: z.optional(z.never())
|
|
1621
|
+
});
|
|
1622
|
+
var zGetLeaderboardResponse = z.object({
|
|
1623
|
+
data: z.array(zLeaderboardEntryDto)
|
|
1624
|
+
});
|
|
1500
1625
|
var zSseData = z.object({
|
|
1501
1626
|
body: z.optional(z.never()),
|
|
1502
1627
|
path: z.optional(z.never()),
|
|
@@ -1515,6 +1640,20 @@ var zGetUserProfileData = z.object({
|
|
|
1515
1640
|
var zGetUserProfileResponse = z.object({
|
|
1516
1641
|
data: zProfileDto
|
|
1517
1642
|
});
|
|
1643
|
+
var zGetUserClaimsData = z.object({
|
|
1644
|
+
body: z.optional(z.never()),
|
|
1645
|
+
path: z.object({
|
|
1646
|
+
address: z.string()
|
|
1647
|
+
}),
|
|
1648
|
+
query: z.optional(z.object({
|
|
1649
|
+
before: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
|
|
1650
|
+
after: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
|
|
1651
|
+
limit: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
|
|
1652
|
+
}))
|
|
1653
|
+
});
|
|
1654
|
+
var zGetUserClaimsResponse = z.object({
|
|
1655
|
+
data: z.array(zMinerClaimDto)
|
|
1656
|
+
});
|
|
1518
1657
|
var zGetUserDeploymentsData = z.object({
|
|
1519
1658
|
body: z.optional(z.never()),
|
|
1520
1659
|
path: z.object({
|
|
@@ -1522,6 +1661,7 @@ var zGetUserDeploymentsData = z.object({
|
|
|
1522
1661
|
}),
|
|
1523
1662
|
query: z.optional(z.object({
|
|
1524
1663
|
before: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
|
|
1664
|
+
after: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
|
|
1525
1665
|
limit: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
|
|
1526
1666
|
}))
|
|
1527
1667
|
});
|
|
@@ -1580,6 +1720,18 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
|
|
|
1580
1720
|
...options
|
|
1581
1721
|
});
|
|
1582
1722
|
}
|
|
1723
|
+
/**
|
|
1724
|
+
* Request the top miners by lifetime USD deployed
|
|
1725
|
+
*/
|
|
1726
|
+
getLeaderboard(options) {
|
|
1727
|
+
return (options?.client ?? this.client).get({
|
|
1728
|
+
requestValidator: async (data) => await zGetLeaderboardData.parseAsync(data),
|
|
1729
|
+
responseTransformer: getLeaderboardResponseTransformer,
|
|
1730
|
+
responseValidator: async (data) => await zGetLeaderboardResponse.parseAsync(data),
|
|
1731
|
+
url: "/v1/leaderboard",
|
|
1732
|
+
...options
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1583
1735
|
/**
|
|
1584
1736
|
* Subscribe for SSE stream
|
|
1585
1737
|
*/
|
|
@@ -1608,6 +1760,25 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
|
|
|
1608
1760
|
...params
|
|
1609
1761
|
});
|
|
1610
1762
|
}
|
|
1763
|
+
/**
|
|
1764
|
+
* Request user claims
|
|
1765
|
+
*/
|
|
1766
|
+
getUserClaims(parameters, options) {
|
|
1767
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
1768
|
+
{ in: "path", key: "address" },
|
|
1769
|
+
{ in: "query", key: "before" },
|
|
1770
|
+
{ in: "query", key: "after" },
|
|
1771
|
+
{ in: "query", key: "limit" }
|
|
1772
|
+
] }]);
|
|
1773
|
+
return (options?.client ?? this.client).get({
|
|
1774
|
+
requestValidator: async (data) => await zGetUserClaimsData.parseAsync(data),
|
|
1775
|
+
responseTransformer: getUserClaimsResponseTransformer,
|
|
1776
|
+
responseValidator: async (data) => await zGetUserClaimsResponse.parseAsync(data),
|
|
1777
|
+
url: "/v1/users/{address}/claims",
|
|
1778
|
+
...options,
|
|
1779
|
+
...params
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1611
1782
|
/**
|
|
1612
1783
|
* Request user deployments
|
|
1613
1784
|
*/
|
|
@@ -1615,6 +1786,7 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
|
|
|
1615
1786
|
const params = buildClientParams([parameters], [{ args: [
|
|
1616
1787
|
{ in: "path", key: "address" },
|
|
1617
1788
|
{ in: "query", key: "before" },
|
|
1789
|
+
{ in: "query", key: "after" },
|
|
1618
1790
|
{ in: "query", key: "limit" }
|
|
1619
1791
|
] }]);
|
|
1620
1792
|
return (options?.client ?? this.client).get({
|
|
@@ -1634,6 +1806,7 @@ var AutomationStrategyDto = {
|
|
|
1634
1806
|
RANDOM: "random",
|
|
1635
1807
|
DISCRETIONARY: "discretionary"
|
|
1636
1808
|
};
|
|
1809
|
+
var ClaimTypeDto = { USD: "usd", SATS: "sats" };
|
|
1637
1810
|
var EpochStateDto = {
|
|
1638
1811
|
OPEN: "open",
|
|
1639
1812
|
SETTLING: "settling",
|
|
@@ -1699,6 +1872,7 @@ async function unwrap(promise) {
|
|
|
1699
1872
|
}
|
|
1700
1873
|
export {
|
|
1701
1874
|
AutomationStrategyDto,
|
|
1875
|
+
ClaimTypeDto,
|
|
1702
1876
|
EpochStateDto,
|
|
1703
1877
|
NotificationEntity,
|
|
1704
1878
|
OneBtcStateDto,
|
|
@@ -1713,6 +1887,7 @@ export {
|
|
|
1713
1887
|
zAutomationStrategyDto,
|
|
1714
1888
|
zBadRequestErrorCodeErrorBody,
|
|
1715
1889
|
zBoardDto,
|
|
1890
|
+
zClaimTypeDto,
|
|
1716
1891
|
zEpochStateDto,
|
|
1717
1892
|
zEpochVaultDto,
|
|
1718
1893
|
zEpochVaultEntryDto,
|
|
@@ -1723,6 +1898,10 @@ export {
|
|
|
1723
1898
|
zGetBoardResponse,
|
|
1724
1899
|
zGetConfigData,
|
|
1725
1900
|
zGetConfigResponse,
|
|
1901
|
+
zGetLeaderboardData,
|
|
1902
|
+
zGetLeaderboardResponse,
|
|
1903
|
+
zGetUserClaimsData,
|
|
1904
|
+
zGetUserClaimsResponse,
|
|
1726
1905
|
zGetUserDeploymentsData,
|
|
1727
1906
|
zGetUserDeploymentsResponse,
|
|
1728
1907
|
zGetUserProfileData,
|
|
@@ -1730,6 +1909,8 @@ export {
|
|
|
1730
1909
|
zI128Dto,
|
|
1731
1910
|
zI64Dto,
|
|
1732
1911
|
zInternalErrorCodeErrorBody,
|
|
1912
|
+
zLeaderboardEntryDto,
|
|
1913
|
+
zMinerClaimDto,
|
|
1733
1914
|
zMinerDeploymentDto,
|
|
1734
1915
|
zMinerDto,
|
|
1735
1916
|
zNotificationEntity,
|
|
@@ -1756,8 +1937,15 @@ export {
|
|
|
1756
1937
|
zTileStakeDto,
|
|
1757
1938
|
zU128Dto,
|
|
1758
1939
|
zU64Dto,
|
|
1940
|
+
zUserClaimsApiError400Error,
|
|
1941
|
+
zUserClaimsApiError400InvalidAddress,
|
|
1942
|
+
zUserClaimsApiError400InvalidBefore,
|
|
1943
|
+
zUserClaimsApiError400InvalidRange,
|
|
1944
|
+
zUserClaimsApiError500Error,
|
|
1759
1945
|
zUserDeploymentsApiError400Error,
|
|
1760
1946
|
zUserDeploymentsApiError400InvalidAddress,
|
|
1947
|
+
zUserDeploymentsApiError400InvalidBefore,
|
|
1948
|
+
zUserDeploymentsApiError400InvalidRange,
|
|
1761
1949
|
zUserDeploymentsApiError500Error,
|
|
1762
1950
|
zUserProfileApiError400Error,
|
|
1763
1951
|
zUserProfileApiError400InvalidAddress,
|