@satrush/api 0.1.24 → 0.1.25
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 +6 -0
- package/dist/index.d.cts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1687,8 +1687,11 @@ var getStakingTreasuryResponseTransformer = async (data) => {
|
|
|
1687
1687
|
var publicAutomationDtoSchemaResponseTransformer = (data) => {
|
|
1688
1688
|
data.perRoundUsdAmount = u64DtoSchemaResponseTransformer(data.perRoundUsdAmount);
|
|
1689
1689
|
data.remainingUsdAmount = u64DtoSchemaResponseTransformer(data.remainingUsdAmount);
|
|
1690
|
+
data.totalBtcEarned = u64DtoSchemaResponseTransformer(data.totalBtcEarned);
|
|
1690
1691
|
data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
|
|
1691
1692
|
data.totalSatsEarned = u64DtoSchemaResponseTransformer(data.totalSatsEarned);
|
|
1693
|
+
data.totalTokenEarned = u64DtoSchemaResponseTransformer(data.totalTokenEarned);
|
|
1694
|
+
data.totalTokenSharesEarned = u64DtoSchemaResponseTransformer(data.totalTokenSharesEarned);
|
|
1692
1695
|
data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
|
|
1693
1696
|
data.totalUsdEarned = u64DtoSchemaResponseTransformer(data.totalUsdEarned);
|
|
1694
1697
|
return data;
|
|
@@ -2726,8 +2729,11 @@ var zPublicAutomationDto = z.object({
|
|
|
2726
2729
|
remainingUsdAmount: zU64Dto,
|
|
2727
2730
|
selectionMask: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2728
2731
|
strategy: zAutomationStrategyDto,
|
|
2732
|
+
totalBtcEarned: zU64Dto,
|
|
2729
2733
|
totalHashrateEarned: zU64Dto,
|
|
2730
2734
|
totalSatsEarned: zU64Dto,
|
|
2735
|
+
totalTokenEarned: zU64Dto,
|
|
2736
|
+
totalTokenSharesEarned: zU64Dto,
|
|
2731
2737
|
totalUsdDeployed: zU64Dto,
|
|
2732
2738
|
totalUsdEarned: zU64Dto
|
|
2733
2739
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1693,14 +1693,27 @@ type PublicAutomationDto = {
|
|
|
1693
1693
|
* Tile-selection strategy.
|
|
1694
1694
|
*/
|
|
1695
1695
|
strategy: AutomationStrategyDto;
|
|
1696
|
+
/**
|
|
1697
|
+
* Exact BTC (satoshis) deposited into the Sats Vault for those shares.
|
|
1698
|
+
*/
|
|
1699
|
+
totalBtcEarned: U64Dto;
|
|
1696
1700
|
/**
|
|
1697
1701
|
* Hashrate points earned across the session's rounds.
|
|
1698
1702
|
*/
|
|
1699
1703
|
totalHashrateEarned: U64Dto;
|
|
1700
1704
|
/**
|
|
1701
|
-
* Sats
|
|
1705
|
+
* Sats Vault shares settled across the session's rounds.
|
|
1702
1706
|
*/
|
|
1703
1707
|
totalSatsEarned: U64Dto;
|
|
1708
|
+
/**
|
|
1709
|
+
* Exact SatRush tokens (base units) deposited into the Token Vault
|
|
1710
|
+
* across the session's rounds; 0 for pre-mint settles or dust winnings.
|
|
1711
|
+
*/
|
|
1712
|
+
totalTokenEarned: U64Dto;
|
|
1713
|
+
/**
|
|
1714
|
+
* Token Vault shares minted for `total_token_earned`.
|
|
1715
|
+
*/
|
|
1716
|
+
totalTokenSharesEarned: U64Dto;
|
|
1704
1717
|
/**
|
|
1705
1718
|
* Gross USD deployed across the session's rounds.
|
|
1706
1719
|
*/
|
|
@@ -4578,8 +4591,11 @@ declare const zPublicAutomationDto: z.ZodObject<{
|
|
|
4578
4591
|
random: "random";
|
|
4579
4592
|
discretionary: "discretionary";
|
|
4580
4593
|
}>;
|
|
4594
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
4581
4595
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
4582
4596
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
4597
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
4598
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
4583
4599
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
4584
4600
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
4585
4601
|
}, z.core.$strip>;
|
|
@@ -4611,8 +4627,11 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
4611
4627
|
random: "random";
|
|
4612
4628
|
discretionary: "discretionary";
|
|
4613
4629
|
}>;
|
|
4630
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
4614
4631
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
4615
4632
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
4633
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
4634
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
4616
4635
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
4617
4636
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
4618
4637
|
}, z.core.$strip>]>>;
|
|
@@ -5333,8 +5352,11 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
5333
5352
|
random: "random";
|
|
5334
5353
|
discretionary: "discretionary";
|
|
5335
5354
|
}>;
|
|
5355
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
5336
5356
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
5337
5357
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
5358
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
5359
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
5338
5360
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
5339
5361
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
5340
5362
|
}, z.core.$strip>]>>;
|
|
@@ -5586,8 +5608,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
5586
5608
|
random: "random";
|
|
5587
5609
|
discretionary: "discretionary";
|
|
5588
5610
|
}>;
|
|
5611
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
5589
5612
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
5590
5613
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
5614
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
5615
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
5591
5616
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
5592
5617
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
5593
5618
|
}, z.core.$strip>]>>;
|
|
@@ -5845,8 +5870,11 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
5845
5870
|
random: "random";
|
|
5846
5871
|
discretionary: "discretionary";
|
|
5847
5872
|
}>;
|
|
5873
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
5848
5874
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
5849
5875
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
5876
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
5877
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
5850
5878
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
5851
5879
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
5852
5880
|
}, z.core.$strip>]>>;
|
|
@@ -7133,8 +7161,11 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
7133
7161
|
random: "random";
|
|
7134
7162
|
discretionary: "discretionary";
|
|
7135
7163
|
}>;
|
|
7164
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
7136
7165
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
7137
7166
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
7167
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
7168
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
7138
7169
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
7139
7170
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
7140
7171
|
}, z.core.$strip>]>>;
|
|
@@ -7235,8 +7266,11 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
7235
7266
|
random: "random";
|
|
7236
7267
|
discretionary: "discretionary";
|
|
7237
7268
|
}>;
|
|
7269
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
7238
7270
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
7239
7271
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
7272
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
7273
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
7240
7274
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
7241
7275
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
7242
7276
|
}, z.core.$strip>]>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1693,14 +1693,27 @@ type PublicAutomationDto = {
|
|
|
1693
1693
|
* Tile-selection strategy.
|
|
1694
1694
|
*/
|
|
1695
1695
|
strategy: AutomationStrategyDto;
|
|
1696
|
+
/**
|
|
1697
|
+
* Exact BTC (satoshis) deposited into the Sats Vault for those shares.
|
|
1698
|
+
*/
|
|
1699
|
+
totalBtcEarned: U64Dto;
|
|
1696
1700
|
/**
|
|
1697
1701
|
* Hashrate points earned across the session's rounds.
|
|
1698
1702
|
*/
|
|
1699
1703
|
totalHashrateEarned: U64Dto;
|
|
1700
1704
|
/**
|
|
1701
|
-
* Sats
|
|
1705
|
+
* Sats Vault shares settled across the session's rounds.
|
|
1702
1706
|
*/
|
|
1703
1707
|
totalSatsEarned: U64Dto;
|
|
1708
|
+
/**
|
|
1709
|
+
* Exact SatRush tokens (base units) deposited into the Token Vault
|
|
1710
|
+
* across the session's rounds; 0 for pre-mint settles or dust winnings.
|
|
1711
|
+
*/
|
|
1712
|
+
totalTokenEarned: U64Dto;
|
|
1713
|
+
/**
|
|
1714
|
+
* Token Vault shares minted for `total_token_earned`.
|
|
1715
|
+
*/
|
|
1716
|
+
totalTokenSharesEarned: U64Dto;
|
|
1704
1717
|
/**
|
|
1705
1718
|
* Gross USD deployed across the session's rounds.
|
|
1706
1719
|
*/
|
|
@@ -4578,8 +4591,11 @@ declare const zPublicAutomationDto: z.ZodObject<{
|
|
|
4578
4591
|
random: "random";
|
|
4579
4592
|
discretionary: "discretionary";
|
|
4580
4593
|
}>;
|
|
4594
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
4581
4595
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
4582
4596
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
4597
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
4598
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
4583
4599
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
4584
4600
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
4585
4601
|
}, z.core.$strip>;
|
|
@@ -4611,8 +4627,11 @@ declare const zProfileDto: z.ZodObject<{
|
|
|
4611
4627
|
random: "random";
|
|
4612
4628
|
discretionary: "discretionary";
|
|
4613
4629
|
}>;
|
|
4630
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
4614
4631
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
4615
4632
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
4633
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
4634
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
4616
4635
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
4617
4636
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
4618
4637
|
}, z.core.$strip>]>>;
|
|
@@ -5333,8 +5352,11 @@ declare const zSnapshotDto: z.ZodObject<{
|
|
|
5333
5352
|
random: "random";
|
|
5334
5353
|
discretionary: "discretionary";
|
|
5335
5354
|
}>;
|
|
5355
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
5336
5356
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
5337
5357
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
5358
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
5359
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
5338
5360
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
5339
5361
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
5340
5362
|
}, z.core.$strip>]>>;
|
|
@@ -5586,8 +5608,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
|
5586
5608
|
random: "random";
|
|
5587
5609
|
discretionary: "discretionary";
|
|
5588
5610
|
}>;
|
|
5611
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
5589
5612
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
5590
5613
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
5614
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
5615
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
5591
5616
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
5592
5617
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
5593
5618
|
}, z.core.$strip>]>>;
|
|
@@ -5845,8 +5870,11 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
5845
5870
|
random: "random";
|
|
5846
5871
|
discretionary: "discretionary";
|
|
5847
5872
|
}>;
|
|
5873
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
5848
5874
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
5849
5875
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
5876
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
5877
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
5850
5878
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
5851
5879
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
5852
5880
|
}, z.core.$strip>]>>;
|
|
@@ -7133,8 +7161,11 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
|
7133
7161
|
random: "random";
|
|
7134
7162
|
discretionary: "discretionary";
|
|
7135
7163
|
}>;
|
|
7164
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
7136
7165
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
7137
7166
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
7167
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
7168
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
7138
7169
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
7139
7170
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
7140
7171
|
}, z.core.$strip>]>>;
|
|
@@ -7235,8 +7266,11 @@ declare const zGetUserProfileResponse: z.ZodObject<{
|
|
|
7235
7266
|
random: "random";
|
|
7236
7267
|
discretionary: "discretionary";
|
|
7237
7268
|
}>;
|
|
7269
|
+
totalBtcEarned: z.ZodCoercedBigInt<unknown>;
|
|
7238
7270
|
totalHashrateEarned: z.ZodCoercedBigInt<unknown>;
|
|
7239
7271
|
totalSatsEarned: z.ZodCoercedBigInt<unknown>;
|
|
7272
|
+
totalTokenEarned: z.ZodCoercedBigInt<unknown>;
|
|
7273
|
+
totalTokenSharesEarned: z.ZodCoercedBigInt<unknown>;
|
|
7240
7274
|
totalUsdDeployed: z.ZodCoercedBigInt<unknown>;
|
|
7241
7275
|
totalUsdEarned: z.ZodCoercedBigInt<unknown>;
|
|
7242
7276
|
}, z.core.$strip>]>>;
|
package/dist/index.js
CHANGED
|
@@ -1439,8 +1439,11 @@ var getStakingTreasuryResponseTransformer = async (data) => {
|
|
|
1439
1439
|
var publicAutomationDtoSchemaResponseTransformer = (data) => {
|
|
1440
1440
|
data.perRoundUsdAmount = u64DtoSchemaResponseTransformer(data.perRoundUsdAmount);
|
|
1441
1441
|
data.remainingUsdAmount = u64DtoSchemaResponseTransformer(data.remainingUsdAmount);
|
|
1442
|
+
data.totalBtcEarned = u64DtoSchemaResponseTransformer(data.totalBtcEarned);
|
|
1442
1443
|
data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
|
|
1443
1444
|
data.totalSatsEarned = u64DtoSchemaResponseTransformer(data.totalSatsEarned);
|
|
1445
|
+
data.totalTokenEarned = u64DtoSchemaResponseTransformer(data.totalTokenEarned);
|
|
1446
|
+
data.totalTokenSharesEarned = u64DtoSchemaResponseTransformer(data.totalTokenSharesEarned);
|
|
1444
1447
|
data.totalUsdDeployed = u64DtoSchemaResponseTransformer(data.totalUsdDeployed);
|
|
1445
1448
|
data.totalUsdEarned = u64DtoSchemaResponseTransformer(data.totalUsdEarned);
|
|
1446
1449
|
return data;
|
|
@@ -2478,8 +2481,11 @@ var zPublicAutomationDto = z.object({
|
|
|
2478
2481
|
remainingUsdAmount: zU64Dto,
|
|
2479
2482
|
selectionMask: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
|
|
2480
2483
|
strategy: zAutomationStrategyDto,
|
|
2484
|
+
totalBtcEarned: zU64Dto,
|
|
2481
2485
|
totalHashrateEarned: zU64Dto,
|
|
2482
2486
|
totalSatsEarned: zU64Dto,
|
|
2487
|
+
totalTokenEarned: zU64Dto,
|
|
2488
|
+
totalTokenSharesEarned: zU64Dto,
|
|
2483
2489
|
totalUsdDeployed: zU64Dto,
|
|
2484
2490
|
totalUsdEarned: zU64Dto
|
|
2485
2491
|
});
|