@satrush/api 0.1.28 → 0.1.30

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 CHANGED
@@ -3092,6 +3092,7 @@ var zSatsVaultDto = z.object({
3092
3092
  var zStakingPositionDto = z.object({
3093
3093
  address: zPubkeyDto,
3094
3094
  authority: zPubkeyDto,
3095
+ autocompound: z.boolean(),
3095
3096
  shares: zU64Dto,
3096
3097
  unclaimedReward: zU64Dto
3097
3098
  });
@@ -3101,6 +3102,10 @@ var zStakingTreasuryDto = z.object({
3101
3102
  z.number(),
3102
3103
  z.null()
3103
3104
  ])),
3105
+ compoundPoolOne: z.optional(z.union([
3106
+ z.null(),
3107
+ zPubkeyDto
3108
+ ])),
3104
3109
  rewardTokenMint: zPubkeyDto,
3105
3110
  rewardVault: zPubkeyDto,
3106
3111
  stakedTokenMint: zPubkeyDto,
package/dist/index.d.cts CHANGED
@@ -2347,6 +2347,12 @@ type StakingPositionDto = {
2347
2347
  */
2348
2348
  address: PubkeyDto;
2349
2349
  authority: PubkeyDto;
2350
+ /**
2351
+ * Whether the position opted in to autocompounding: the treasury's
2352
+ * compound authority (the gamekeeper) may claim its reward, swap it
2353
+ * into the staked token and stake it back on its behalf.
2354
+ */
2355
+ autocompound: boolean;
2350
2356
  /**
2351
2357
  * Staked base units (1 share = 1 unit).
2352
2358
  */
@@ -2379,6 +2385,7 @@ type StakingTreasuryDto = {
2379
2385
  * stake snapshots with a token price exists.
2380
2386
  */
2381
2387
  apr?: number | null;
2388
+ compoundPoolOne?: null | PubkeyDto;
2382
2389
  /**
2383
2390
  * Token users earn (8 decimals).
2384
2391
  */
@@ -5115,6 +5122,7 @@ declare const zSatsVaultDto: z.ZodObject<{
5115
5122
  declare const zStakingPositionDto: z.ZodObject<{
5116
5123
  address: z.ZodString;
5117
5124
  authority: z.ZodString;
5125
+ autocompound: z.ZodBoolean;
5118
5126
  shares: z.ZodCoercedBigInt<unknown>;
5119
5127
  unclaimedReward: z.ZodCoercedBigInt<unknown>;
5120
5128
  }, z.core.$strip>;
@@ -5124,6 +5132,7 @@ declare const zStakingPositionDto: z.ZodObject<{
5124
5132
  declare const zStakingTreasuryDto: z.ZodObject<{
5125
5133
  address: z.ZodString;
5126
5134
  apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
5135
+ compoundPoolOne: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
5127
5136
  rewardTokenMint: z.ZodString;
5128
5137
  rewardVault: z.ZodString;
5129
5138
  stakedTokenMint: z.ZodString;
@@ -7219,6 +7228,7 @@ declare const zGetStakingTreasuryResponse: z.ZodObject<{
7219
7228
  data: z.ZodObject<{
7220
7229
  address: z.ZodString;
7221
7230
  apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
7231
+ compoundPoolOne: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
7222
7232
  rewardTokenMint: z.ZodString;
7223
7233
  rewardVault: z.ZodString;
7224
7234
  stakedTokenMint: z.ZodString;
@@ -7855,6 +7865,7 @@ declare const zGetUserStakingResponse: z.ZodObject<{
7855
7865
  data: z.ZodObject<{
7856
7866
  address: z.ZodString;
7857
7867
  authority: z.ZodString;
7868
+ autocompound: z.ZodBoolean;
7858
7869
  shares: z.ZodCoercedBigInt<unknown>;
7859
7870
  unclaimedReward: z.ZodCoercedBigInt<unknown>;
7860
7871
  }, z.core.$strip>;
package/dist/index.d.ts CHANGED
@@ -2347,6 +2347,12 @@ type StakingPositionDto = {
2347
2347
  */
2348
2348
  address: PubkeyDto;
2349
2349
  authority: PubkeyDto;
2350
+ /**
2351
+ * Whether the position opted in to autocompounding: the treasury's
2352
+ * compound authority (the gamekeeper) may claim its reward, swap it
2353
+ * into the staked token and stake it back on its behalf.
2354
+ */
2355
+ autocompound: boolean;
2350
2356
  /**
2351
2357
  * Staked base units (1 share = 1 unit).
2352
2358
  */
@@ -2379,6 +2385,7 @@ type StakingTreasuryDto = {
2379
2385
  * stake snapshots with a token price exists.
2380
2386
  */
2381
2387
  apr?: number | null;
2388
+ compoundPoolOne?: null | PubkeyDto;
2382
2389
  /**
2383
2390
  * Token users earn (8 decimals).
2384
2391
  */
@@ -5115,6 +5122,7 @@ declare const zSatsVaultDto: z.ZodObject<{
5115
5122
  declare const zStakingPositionDto: z.ZodObject<{
5116
5123
  address: z.ZodString;
5117
5124
  authority: z.ZodString;
5125
+ autocompound: z.ZodBoolean;
5118
5126
  shares: z.ZodCoercedBigInt<unknown>;
5119
5127
  unclaimedReward: z.ZodCoercedBigInt<unknown>;
5120
5128
  }, z.core.$strip>;
@@ -5124,6 +5132,7 @@ declare const zStakingPositionDto: z.ZodObject<{
5124
5132
  declare const zStakingTreasuryDto: z.ZodObject<{
5125
5133
  address: z.ZodString;
5126
5134
  apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
5135
+ compoundPoolOne: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
5127
5136
  rewardTokenMint: z.ZodString;
5128
5137
  rewardVault: z.ZodString;
5129
5138
  stakedTokenMint: z.ZodString;
@@ -7219,6 +7228,7 @@ declare const zGetStakingTreasuryResponse: z.ZodObject<{
7219
7228
  data: z.ZodObject<{
7220
7229
  address: z.ZodString;
7221
7230
  apr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
7231
+ compoundPoolOne: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodString]>>;
7222
7232
  rewardTokenMint: z.ZodString;
7223
7233
  rewardVault: z.ZodString;
7224
7234
  stakedTokenMint: z.ZodString;
@@ -7855,6 +7865,7 @@ declare const zGetUserStakingResponse: z.ZodObject<{
7855
7865
  data: z.ZodObject<{
7856
7866
  address: z.ZodString;
7857
7867
  authority: z.ZodString;
7868
+ autocompound: z.ZodBoolean;
7858
7869
  shares: z.ZodCoercedBigInt<unknown>;
7859
7870
  unclaimedReward: z.ZodCoercedBigInt<unknown>;
7860
7871
  }, z.core.$strip>;
package/dist/index.js CHANGED
@@ -2833,6 +2833,7 @@ var zSatsVaultDto = z.object({
2833
2833
  var zStakingPositionDto = z.object({
2834
2834
  address: zPubkeyDto,
2835
2835
  authority: zPubkeyDto,
2836
+ autocompound: z.boolean(),
2836
2837
  shares: zU64Dto,
2837
2838
  unclaimedReward: zU64Dto
2838
2839
  });
@@ -2842,6 +2843,10 @@ var zStakingTreasuryDto = z.object({
2842
2843
  z.number(),
2843
2844
  z.null()
2844
2845
  ])),
2846
+ compoundPoolOne: z.optional(z.union([
2847
+ z.null(),
2848
+ zPubkeyDto
2849
+ ])),
2845
2850
  rewardTokenMint: zPubkeyDto,
2846
2851
  rewardVault: zPubkeyDto,
2847
2852
  stakedTokenMint: zPubkeyDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satrush/api",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",