@satrush/api 0.1.18 → 0.1.19
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 +2 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1178,6 +1178,7 @@ var roundDtoSchemaResponseTransformer = (data) => {
|
|
|
1178
1178
|
data.strikeBonusBtc = u64DtoSchemaResponseTransformer(data.strikeBonusBtc);
|
|
1179
1179
|
data.strikeBonusUsd = u64DtoSchemaResponseTransformer(data.strikeBonusUsd);
|
|
1180
1180
|
data.tileStakes = data.tileStakes.map((item) => tileStakeDtoSchemaResponseTransformer(item));
|
|
1181
|
+
data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
|
|
1181
1182
|
return data;
|
|
1182
1183
|
};
|
|
1183
1184
|
var epochWinnerDtoSchemaResponseTransformer = (data) => {
|
|
@@ -2789,6 +2790,7 @@ var zRoundDto = z.object({
|
|
|
2789
2790
|
strikeBonusBtc: zU64Dto,
|
|
2790
2791
|
strikeBonusUsd: zU64Dto,
|
|
2791
2792
|
tileStakes: z.array(zTileStakeDto),
|
|
2793
|
+
totalGrossDeployedUsd: zU64Dto,
|
|
2792
2794
|
winnersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2793
2795
|
winningTile: z.optional(z.union([
|
|
2794
2796
|
z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
package/dist/index.d.cts
CHANGED
|
@@ -1767,6 +1767,13 @@ type RoundDto = {
|
|
|
1767
1767
|
strikeBonusBtc: U64Dto;
|
|
1768
1768
|
strikeBonusUsd: U64Dto;
|
|
1769
1769
|
tileStakes: Array<TileStakeDto>;
|
|
1770
|
+
/**
|
|
1771
|
+
* What miners paid into the round before the protocol fees were taken.
|
|
1772
|
+
* The round account only tracks post-fee stakes, so this comes from the
|
|
1773
|
+
* indexed history: 0 until the indexer has recorded the round, and it
|
|
1774
|
+
* can trail the live figures by the indexing latency.
|
|
1775
|
+
*/
|
|
1776
|
+
totalGrossDeployedUsd: U64Dto;
|
|
1770
1777
|
winnersCount: number;
|
|
1771
1778
|
winningTile?: number | null;
|
|
1772
1779
|
};
|
|
@@ -4151,6 +4158,7 @@ declare const zRoundDto: z.ZodObject<{
|
|
|
4151
4158
|
deployCount: z.ZodInt;
|
|
4152
4159
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4153
4160
|
}, z.core.$strip>>;
|
|
4161
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4154
4162
|
winnersCount: z.ZodInt;
|
|
4155
4163
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4156
4164
|
}, z.core.$strip>;
|
|
@@ -4183,6 +4191,7 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
4183
4191
|
deployCount: z.ZodInt;
|
|
4184
4192
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4185
4193
|
}, z.core.$strip>>;
|
|
4194
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4186
4195
|
winnersCount: z.ZodInt;
|
|
4187
4196
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4188
4197
|
}, z.core.$strip>]>>;
|
|
@@ -4277,6 +4286,7 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
4277
4286
|
deployCount: z.ZodInt;
|
|
4278
4287
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4279
4288
|
}, z.core.$strip>>;
|
|
4289
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4280
4290
|
winnersCount: z.ZodInt;
|
|
4281
4291
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4282
4292
|
}, z.core.$strip>]>>;
|
|
@@ -4336,6 +4346,7 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
4336
4346
|
deployCount: z.ZodInt;
|
|
4337
4347
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4338
4348
|
}, z.core.$strip>>;
|
|
4349
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4339
4350
|
winnersCount: z.ZodInt;
|
|
4340
4351
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4341
4352
|
}, z.core.$strip>]>>;
|
|
@@ -4430,6 +4441,7 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
4430
4441
|
deployCount: z.ZodInt;
|
|
4431
4442
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4432
4443
|
}, z.core.$strip>>;
|
|
4444
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4433
4445
|
winnersCount: z.ZodInt;
|
|
4434
4446
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4435
4447
|
}, z.core.$strip>]>>;
|
|
@@ -4560,6 +4572,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
4560
4572
|
deployCount: z.ZodInt;
|
|
4561
4573
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4562
4574
|
}, z.core.$strip>>;
|
|
4575
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4563
4576
|
winnersCount: z.ZodInt;
|
|
4564
4577
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4565
4578
|
}, z.core.$strip>]>>;
|
|
@@ -4654,6 +4667,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
4654
4667
|
deployCount: z.ZodInt;
|
|
4655
4668
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4656
4669
|
}, z.core.$strip>>;
|
|
4670
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4657
4671
|
winnersCount: z.ZodInt;
|
|
4658
4672
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4659
4673
|
}, z.core.$strip>]>>;
|
|
@@ -4790,6 +4804,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
4790
4804
|
deployCount: z.ZodInt;
|
|
4791
4805
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4792
4806
|
}, z.core.$strip>>;
|
|
4807
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4793
4808
|
winnersCount: z.ZodInt;
|
|
4794
4809
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4795
4810
|
}, z.core.$strip>]>>;
|
|
@@ -4884,6 +4899,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
4884
4899
|
deployCount: z.ZodInt;
|
|
4885
4900
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4886
4901
|
}, z.core.$strip>>;
|
|
4902
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4887
4903
|
winnersCount: z.ZodInt;
|
|
4888
4904
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4889
4905
|
}, z.core.$strip>]>>;
|
|
@@ -5311,6 +5327,7 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
5311
5327
|
deployCount: z.ZodInt;
|
|
5312
5328
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
5313
5329
|
}, z.core.$strip>>;
|
|
5330
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
5314
5331
|
winnersCount: z.ZodInt;
|
|
5315
5332
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
5316
5333
|
}, z.core.$strip>]>>;
|
|
@@ -5405,6 +5422,7 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
5405
5422
|
deployCount: z.ZodInt;
|
|
5406
5423
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
5407
5424
|
}, z.core.$strip>>;
|
|
5425
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
5408
5426
|
winnersCount: z.ZodInt;
|
|
5409
5427
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
5410
5428
|
}, z.core.$strip>]>>;
|
|
@@ -5902,6 +5920,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
5902
5920
|
deployCount: z.ZodInt;
|
|
5903
5921
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
5904
5922
|
}, z.core.$strip>>;
|
|
5923
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
5905
5924
|
winnersCount: z.ZodInt;
|
|
5906
5925
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
5907
5926
|
}, z.core.$strip>]>>;
|
|
@@ -5996,6 +6015,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
5996
6015
|
deployCount: z.ZodInt;
|
|
5997
6016
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
5998
6017
|
}, z.core.$strip>>;
|
|
6018
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
5999
6019
|
winnersCount: z.ZodInt;
|
|
6000
6020
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
6001
6021
|
}, z.core.$strip>]>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1767,6 +1767,13 @@ type RoundDto = {
|
|
|
1767
1767
|
strikeBonusBtc: U64Dto;
|
|
1768
1768
|
strikeBonusUsd: U64Dto;
|
|
1769
1769
|
tileStakes: Array<TileStakeDto>;
|
|
1770
|
+
/**
|
|
1771
|
+
* What miners paid into the round before the protocol fees were taken.
|
|
1772
|
+
* The round account only tracks post-fee stakes, so this comes from the
|
|
1773
|
+
* indexed history: 0 until the indexer has recorded the round, and it
|
|
1774
|
+
* can trail the live figures by the indexing latency.
|
|
1775
|
+
*/
|
|
1776
|
+
totalGrossDeployedUsd: U64Dto;
|
|
1770
1777
|
winnersCount: number;
|
|
1771
1778
|
winningTile?: number | null;
|
|
1772
1779
|
};
|
|
@@ -4151,6 +4158,7 @@ declare const zRoundDto: z.ZodObject<{
|
|
|
4151
4158
|
deployCount: z.ZodInt;
|
|
4152
4159
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4153
4160
|
}, z.core.$strip>>;
|
|
4161
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4154
4162
|
winnersCount: z.ZodInt;
|
|
4155
4163
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4156
4164
|
}, z.core.$strip>;
|
|
@@ -4183,6 +4191,7 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
4183
4191
|
deployCount: z.ZodInt;
|
|
4184
4192
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4185
4193
|
}, z.core.$strip>>;
|
|
4194
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4186
4195
|
winnersCount: z.ZodInt;
|
|
4187
4196
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4188
4197
|
}, z.core.$strip>]>>;
|
|
@@ -4277,6 +4286,7 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
4277
4286
|
deployCount: z.ZodInt;
|
|
4278
4287
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4279
4288
|
}, z.core.$strip>>;
|
|
4289
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4280
4290
|
winnersCount: z.ZodInt;
|
|
4281
4291
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4282
4292
|
}, z.core.$strip>]>>;
|
|
@@ -4336,6 +4346,7 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
4336
4346
|
deployCount: z.ZodInt;
|
|
4337
4347
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4338
4348
|
}, z.core.$strip>>;
|
|
4349
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4339
4350
|
winnersCount: z.ZodInt;
|
|
4340
4351
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4341
4352
|
}, z.core.$strip>]>>;
|
|
@@ -4430,6 +4441,7 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
4430
4441
|
deployCount: z.ZodInt;
|
|
4431
4442
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4432
4443
|
}, z.core.$strip>>;
|
|
4444
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4433
4445
|
winnersCount: z.ZodInt;
|
|
4434
4446
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4435
4447
|
}, z.core.$strip>]>>;
|
|
@@ -4560,6 +4572,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
4560
4572
|
deployCount: z.ZodInt;
|
|
4561
4573
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4562
4574
|
}, z.core.$strip>>;
|
|
4575
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4563
4576
|
winnersCount: z.ZodInt;
|
|
4564
4577
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4565
4578
|
}, z.core.$strip>]>>;
|
|
@@ -4654,6 +4667,7 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
4654
4667
|
deployCount: z.ZodInt;
|
|
4655
4668
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4656
4669
|
}, z.core.$strip>>;
|
|
4670
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4657
4671
|
winnersCount: z.ZodInt;
|
|
4658
4672
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4659
4673
|
}, z.core.$strip>]>>;
|
|
@@ -4790,6 +4804,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
4790
4804
|
deployCount: z.ZodInt;
|
|
4791
4805
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4792
4806
|
}, z.core.$strip>>;
|
|
4807
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4793
4808
|
winnersCount: z.ZodInt;
|
|
4794
4809
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4795
4810
|
}, z.core.$strip>]>>;
|
|
@@ -4884,6 +4899,7 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
4884
4899
|
deployCount: z.ZodInt;
|
|
4885
4900
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
4886
4901
|
}, z.core.$strip>>;
|
|
4902
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
4887
4903
|
winnersCount: z.ZodInt;
|
|
4888
4904
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4889
4905
|
}, z.core.$strip>]>>;
|
|
@@ -5311,6 +5327,7 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
5311
5327
|
deployCount: z.ZodInt;
|
|
5312
5328
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
5313
5329
|
}, z.core.$strip>>;
|
|
5330
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
5314
5331
|
winnersCount: z.ZodInt;
|
|
5315
5332
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
5316
5333
|
}, z.core.$strip>]>>;
|
|
@@ -5405,6 +5422,7 @@ declare const zGetBoardResponse: z.ZodObject<{
|
|
|
5405
5422
|
deployCount: z.ZodInt;
|
|
5406
5423
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
5407
5424
|
}, z.core.$strip>>;
|
|
5425
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
5408
5426
|
winnersCount: z.ZodInt;
|
|
5409
5427
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
5410
5428
|
}, z.core.$strip>]>>;
|
|
@@ -5902,6 +5920,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
5902
5920
|
deployCount: z.ZodInt;
|
|
5903
5921
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
5904
5922
|
}, z.core.$strip>>;
|
|
5923
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
5905
5924
|
winnersCount: z.ZodInt;
|
|
5906
5925
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
5907
5926
|
}, z.core.$strip>]>>;
|
|
@@ -5996,6 +6015,7 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
5996
6015
|
deployCount: z.ZodInt;
|
|
5997
6016
|
stake: z.ZodCoercedBigInt<unknown>;
|
|
5998
6017
|
}, z.core.$strip>>;
|
|
6018
|
+
totalGrossDeployedUsd: z.ZodCoercedBigInt<unknown>;
|
|
5999
6019
|
winnersCount: z.ZodInt;
|
|
6000
6020
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
6001
6021
|
}, z.core.$strip>]>>;
|
package/dist/index.js
CHANGED
|
@@ -964,6 +964,7 @@ var roundDtoSchemaResponseTransformer = (data) => {
|
|
|
964
964
|
data.strikeBonusBtc = u64DtoSchemaResponseTransformer(data.strikeBonusBtc);
|
|
965
965
|
data.strikeBonusUsd = u64DtoSchemaResponseTransformer(data.strikeBonusUsd);
|
|
966
966
|
data.tileStakes = data.tileStakes.map((item) => tileStakeDtoSchemaResponseTransformer(item));
|
|
967
|
+
data.totalGrossDeployedUsd = u64DtoSchemaResponseTransformer(data.totalGrossDeployedUsd);
|
|
967
968
|
return data;
|
|
968
969
|
};
|
|
969
970
|
var epochWinnerDtoSchemaResponseTransformer = (data) => {
|
|
@@ -2575,6 +2576,7 @@ var zRoundDto = z.object({
|
|
|
2575
2576
|
strikeBonusBtc: zU64Dto,
|
|
2576
2577
|
strikeBonusUsd: zU64Dto,
|
|
2577
2578
|
tileStakes: z.array(zTileStakeDto),
|
|
2579
|
+
totalGrossDeployedUsd: zU64Dto,
|
|
2578
2580
|
winnersCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2579
2581
|
winningTile: z.optional(z.union([
|
|
2580
2582
|
z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|