@satrush/api 0.1.23 → 0.1.24
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 -2
- package/dist/index.d.cts +20 -5
- package/dist/index.d.ts +20 -5
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1772,6 +1772,8 @@ var tokenStatsDtoSchemaResponseTransformer = (data) => {
|
|
|
1772
1772
|
data.buybackBurned = u64DtoSchemaResponseTransformer(data.buybackBurned);
|
|
1773
1773
|
data.lpBurned = u64DtoSchemaResponseTransformer(data.lpBurned);
|
|
1774
1774
|
data.totalBurned = u64DtoSchemaResponseTransformer(data.totalBurned);
|
|
1775
|
+
data.totalBuybackUsd = u64DtoSchemaResponseTransformer(data.totalBuybackUsd);
|
|
1776
|
+
data.totalMined = u64DtoSchemaResponseTransformer(data.totalMined);
|
|
1775
1777
|
return data;
|
|
1776
1778
|
};
|
|
1777
1779
|
var getTokenStatsResponseTransformer = async (data) => {
|
|
@@ -3099,7 +3101,9 @@ var zRoundDto = z.object({
|
|
|
3099
3101
|
var zTokenStatsDto = z.object({
|
|
3100
3102
|
buybackBurned: zU64Dto,
|
|
3101
3103
|
lpBurned: zU64Dto,
|
|
3102
|
-
totalBurned: zU64Dto
|
|
3104
|
+
totalBurned: zU64Dto,
|
|
3105
|
+
totalBuybackUsd: zU64Dto,
|
|
3106
|
+
totalMined: zU64Dto
|
|
3103
3107
|
});
|
|
3104
3108
|
var zTokenVaultDto = z.object({
|
|
3105
3109
|
address: zPubkeyDto,
|
|
@@ -4011,7 +4015,7 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
|
|
|
4011
4015
|
});
|
|
4012
4016
|
}
|
|
4013
4017
|
/**
|
|
4014
|
-
* Request the protocol token stats: lifetime burned tokens
|
|
4018
|
+
* Request the protocol token stats: lifetime burned tokens (the protocol's buyback burns plus the LP wallet's burns), the USD spent on buybacks and the tokens mined
|
|
4015
4019
|
*/
|
|
4016
4020
|
getTokenStats(options) {
|
|
4017
4021
|
return (options?.client ?? this.client).get({
|
package/dist/index.d.cts
CHANGED
|
@@ -2402,8 +2402,9 @@ type TokenApiError500Error = {
|
|
|
2402
2402
|
code: 'internal';
|
|
2403
2403
|
};
|
|
2404
2404
|
/**
|
|
2405
|
-
* Protocol token figures that live only in the database.
|
|
2406
|
-
* mint base units (9 decimals)
|
|
2405
|
+
* Protocol token figures that live only in the database. Token amounts
|
|
2406
|
+
* are mint base units (9 decimals); `total_buyback_usd` is USD-mint base
|
|
2407
|
+
* units (6 decimals).
|
|
2407
2408
|
*/
|
|
2408
2409
|
type TokenStatsDto = {
|
|
2409
2410
|
/**
|
|
@@ -2418,6 +2419,15 @@ type TokenStatsDto = {
|
|
|
2418
2419
|
* `buyback_burned + lp_burned`.
|
|
2419
2420
|
*/
|
|
2420
2421
|
totalBurned: U64Dto;
|
|
2422
|
+
/**
|
|
2423
|
+
* USD the treasury spent on those buybacks.
|
|
2424
|
+
*/
|
|
2425
|
+
totalBuybackUsd: U64Dto;
|
|
2426
|
+
/**
|
|
2427
|
+
* Tokens the mint program issued over revealed rounds, including the
|
|
2428
|
+
* strike legs.
|
|
2429
|
+
*/
|
|
2430
|
+
totalMined: U64Dto;
|
|
2421
2431
|
};
|
|
2422
2432
|
/**
|
|
2423
2433
|
* Token vault balances: the SatRush tokens backing the shares issued against
|
|
@@ -3586,7 +3596,7 @@ declare class SatrushBackendSdk extends HeyApiClient {
|
|
|
3586
3596
|
wallet?: string;
|
|
3587
3597
|
}, options?: Options<never, ThrowOnError>): Promise<ServerSentEventsResult<SseResponses, SseErrors>>;
|
|
3588
3598
|
/**
|
|
3589
|
-
* Request the protocol token stats: lifetime burned tokens
|
|
3599
|
+
* Request the protocol token stats: lifetime burned tokens (the protocol's buyback burns plus the LP wallet's burns), the USD spent on buybacks and the tokens mined
|
|
3590
3600
|
*/
|
|
3591
3601
|
getTokenStats<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetTokenStatsResponses, GetTokenStatsErrors, ThrowOnError, "fields">;
|
|
3592
3602
|
/**
|
|
@@ -4928,13 +4938,16 @@ declare const zRoundDto: z.ZodObject<{
|
|
|
4928
4938
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4929
4939
|
}, z.core.$strip>;
|
|
4930
4940
|
/**
|
|
4931
|
-
* Protocol token figures that live only in the database.
|
|
4932
|
-
* mint base units (9 decimals)
|
|
4941
|
+
* Protocol token figures that live only in the database. Token amounts
|
|
4942
|
+
* are mint base units (9 decimals); `total_buyback_usd` is USD-mint base
|
|
4943
|
+
* units (6 decimals).
|
|
4933
4944
|
*/
|
|
4934
4945
|
declare const zTokenStatsDto: z.ZodObject<{
|
|
4935
4946
|
buybackBurned: z.ZodCoercedBigInt<unknown>;
|
|
4936
4947
|
lpBurned: z.ZodCoercedBigInt<unknown>;
|
|
4937
4948
|
totalBurned: z.ZodCoercedBigInt<unknown>;
|
|
4949
|
+
totalBuybackUsd: z.ZodCoercedBigInt<unknown>;
|
|
4950
|
+
totalMined: z.ZodCoercedBigInt<unknown>;
|
|
4938
4951
|
}, z.core.$strip>;
|
|
4939
4952
|
/**
|
|
4940
4953
|
* Token vault balances: the SatRush tokens backing the shares issued against
|
|
@@ -7194,6 +7207,8 @@ declare const zGetTokenStatsResponse: z.ZodObject<{
|
|
|
7194
7207
|
buybackBurned: z.ZodCoercedBigInt<unknown>;
|
|
7195
7208
|
lpBurned: z.ZodCoercedBigInt<unknown>;
|
|
7196
7209
|
totalBurned: z.ZodCoercedBigInt<unknown>;
|
|
7210
|
+
totalBuybackUsd: z.ZodCoercedBigInt<unknown>;
|
|
7211
|
+
totalMined: z.ZodCoercedBigInt<unknown>;
|
|
7197
7212
|
}, z.core.$strip>;
|
|
7198
7213
|
}, z.core.$strip>;
|
|
7199
7214
|
type GetTokenStatsResponseZodType = z.infer<typeof zGetTokenStatsResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2402,8 +2402,9 @@ type TokenApiError500Error = {
|
|
|
2402
2402
|
code: 'internal';
|
|
2403
2403
|
};
|
|
2404
2404
|
/**
|
|
2405
|
-
* Protocol token figures that live only in the database.
|
|
2406
|
-
* mint base units (9 decimals)
|
|
2405
|
+
* Protocol token figures that live only in the database. Token amounts
|
|
2406
|
+
* are mint base units (9 decimals); `total_buyback_usd` is USD-mint base
|
|
2407
|
+
* units (6 decimals).
|
|
2407
2408
|
*/
|
|
2408
2409
|
type TokenStatsDto = {
|
|
2409
2410
|
/**
|
|
@@ -2418,6 +2419,15 @@ type TokenStatsDto = {
|
|
|
2418
2419
|
* `buyback_burned + lp_burned`.
|
|
2419
2420
|
*/
|
|
2420
2421
|
totalBurned: U64Dto;
|
|
2422
|
+
/**
|
|
2423
|
+
* USD the treasury spent on those buybacks.
|
|
2424
|
+
*/
|
|
2425
|
+
totalBuybackUsd: U64Dto;
|
|
2426
|
+
/**
|
|
2427
|
+
* Tokens the mint program issued over revealed rounds, including the
|
|
2428
|
+
* strike legs.
|
|
2429
|
+
*/
|
|
2430
|
+
totalMined: U64Dto;
|
|
2421
2431
|
};
|
|
2422
2432
|
/**
|
|
2423
2433
|
* Token vault balances: the SatRush tokens backing the shares issued against
|
|
@@ -3586,7 +3596,7 @@ declare class SatrushBackendSdk extends HeyApiClient {
|
|
|
3586
3596
|
wallet?: string;
|
|
3587
3597
|
}, options?: Options<never, ThrowOnError>): Promise<ServerSentEventsResult<SseResponses, SseErrors>>;
|
|
3588
3598
|
/**
|
|
3589
|
-
* Request the protocol token stats: lifetime burned tokens
|
|
3599
|
+
* Request the protocol token stats: lifetime burned tokens (the protocol's buyback burns plus the LP wallet's burns), the USD spent on buybacks and the tokens mined
|
|
3590
3600
|
*/
|
|
3591
3601
|
getTokenStats<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetTokenStatsResponses, GetTokenStatsErrors, ThrowOnError, "fields">;
|
|
3592
3602
|
/**
|
|
@@ -4928,13 +4938,16 @@ declare const zRoundDto: z.ZodObject<{
|
|
|
4928
4938
|
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
4929
4939
|
}, z.core.$strip>;
|
|
4930
4940
|
/**
|
|
4931
|
-
* Protocol token figures that live only in the database.
|
|
4932
|
-
* mint base units (9 decimals)
|
|
4941
|
+
* Protocol token figures that live only in the database. Token amounts
|
|
4942
|
+
* are mint base units (9 decimals); `total_buyback_usd` is USD-mint base
|
|
4943
|
+
* units (6 decimals).
|
|
4933
4944
|
*/
|
|
4934
4945
|
declare const zTokenStatsDto: z.ZodObject<{
|
|
4935
4946
|
buybackBurned: z.ZodCoercedBigInt<unknown>;
|
|
4936
4947
|
lpBurned: z.ZodCoercedBigInt<unknown>;
|
|
4937
4948
|
totalBurned: z.ZodCoercedBigInt<unknown>;
|
|
4949
|
+
totalBuybackUsd: z.ZodCoercedBigInt<unknown>;
|
|
4950
|
+
totalMined: z.ZodCoercedBigInt<unknown>;
|
|
4938
4951
|
}, z.core.$strip>;
|
|
4939
4952
|
/**
|
|
4940
4953
|
* Token vault balances: the SatRush tokens backing the shares issued against
|
|
@@ -7194,6 +7207,8 @@ declare const zGetTokenStatsResponse: z.ZodObject<{
|
|
|
7194
7207
|
buybackBurned: z.ZodCoercedBigInt<unknown>;
|
|
7195
7208
|
lpBurned: z.ZodCoercedBigInt<unknown>;
|
|
7196
7209
|
totalBurned: z.ZodCoercedBigInt<unknown>;
|
|
7210
|
+
totalBuybackUsd: z.ZodCoercedBigInt<unknown>;
|
|
7211
|
+
totalMined: z.ZodCoercedBigInt<unknown>;
|
|
7197
7212
|
}, z.core.$strip>;
|
|
7198
7213
|
}, z.core.$strip>;
|
|
7199
7214
|
type GetTokenStatsResponseZodType = z.infer<typeof zGetTokenStatsResponse>;
|
package/dist/index.js
CHANGED
|
@@ -1524,6 +1524,8 @@ var tokenStatsDtoSchemaResponseTransformer = (data) => {
|
|
|
1524
1524
|
data.buybackBurned = u64DtoSchemaResponseTransformer(data.buybackBurned);
|
|
1525
1525
|
data.lpBurned = u64DtoSchemaResponseTransformer(data.lpBurned);
|
|
1526
1526
|
data.totalBurned = u64DtoSchemaResponseTransformer(data.totalBurned);
|
|
1527
|
+
data.totalBuybackUsd = u64DtoSchemaResponseTransformer(data.totalBuybackUsd);
|
|
1528
|
+
data.totalMined = u64DtoSchemaResponseTransformer(data.totalMined);
|
|
1527
1529
|
return data;
|
|
1528
1530
|
};
|
|
1529
1531
|
var getTokenStatsResponseTransformer = async (data) => {
|
|
@@ -2851,7 +2853,9 @@ var zRoundDto = z.object({
|
|
|
2851
2853
|
var zTokenStatsDto = z.object({
|
|
2852
2854
|
buybackBurned: zU64Dto,
|
|
2853
2855
|
lpBurned: zU64Dto,
|
|
2854
|
-
totalBurned: zU64Dto
|
|
2856
|
+
totalBurned: zU64Dto,
|
|
2857
|
+
totalBuybackUsd: zU64Dto,
|
|
2858
|
+
totalMined: zU64Dto
|
|
2855
2859
|
});
|
|
2856
2860
|
var zTokenVaultDto = z.object({
|
|
2857
2861
|
address: zPubkeyDto,
|
|
@@ -3763,7 +3767,7 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
|
|
|
3763
3767
|
});
|
|
3764
3768
|
}
|
|
3765
3769
|
/**
|
|
3766
|
-
* Request the protocol token stats: lifetime burned tokens
|
|
3770
|
+
* Request the protocol token stats: lifetime burned tokens (the protocol's buyback burns plus the LP wallet's burns), the USD spent on buybacks and the tokens mined
|
|
3767
3771
|
*/
|
|
3768
3772
|
getTokenStats(options) {
|
|
3769
3773
|
return (options?.client ?? this.client).get({
|