@percolatorct/sdk 1.0.0-beta.32 → 1.0.0-beta.33

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.
@@ -38,12 +38,21 @@ export declare const STAKE_IX: {
38
38
  readonly Withdraw: 2;
39
39
  readonly FlushToInsurance: 3;
40
40
  readonly UpdateConfig: 4;
41
+ /** @deprecated Removed on-chain in stake v3. This tag now rejects. */
41
42
  readonly TransferAdmin: 5;
43
+ /** @deprecated Removed on-chain in stake v3. This tag now rejects. */
42
44
  readonly AdminSetOracleAuthority: 6;
45
+ /** @deprecated Removed on-chain in stake v3. This tag now rejects. */
43
46
  readonly AdminSetRiskThreshold: 7;
47
+ /** @deprecated Removed on-chain in stake v3. This tag now rejects. */
44
48
  readonly AdminSetMaintenanceFee: 8;
49
+ /** @deprecated Removed on-chain in stake v3. This tag now rejects. */
45
50
  readonly AdminResolveMarket: 9;
51
+ /** Current on-chain tag 10: transfer withdrawn insurance back into the pool vault. */
52
+ readonly ReturnInsurance: 10;
53
+ /** @deprecated Legacy alias for ReturnInsurance. */
46
54
  readonly AdminWithdrawInsurance: 10;
55
+ /** @deprecated Removed on-chain in stake v3. This tag now rejects. */
47
56
  readonly AdminSetInsurancePolicy: 11;
48
57
  /** PERC-272: Accrue trading fees to LP vault */
49
58
  readonly AccrueFees: 12;
@@ -55,6 +64,8 @@ export declare const STAKE_IX: {
55
64
  readonly AdminSetTrancheConfig: 15;
56
65
  /** PERC-303: Deposit into junior (first-loss) tranche */
57
66
  readonly DepositJunior: 16;
67
+ /** Mark the pool as resolved after the wrapper market has been resolved directly. */
68
+ readonly SetMarketResolved: 18;
58
69
  };
59
70
  /** Derive the stake pool PDA for a given slab (market). */
60
71
  export declare function deriveStakePool(slab: PublicKey, programId?: PublicKey): [PublicKey, number];
@@ -72,17 +83,19 @@ export declare function encodeStakeWithdraw(lpAmount: bigint | number): Uint8Arr
72
83
  export declare function encodeStakeFlushToInsurance(amount: bigint | number): Uint8Array;
73
84
  /** Tag 4: UpdateConfig — update cooldown and/or deposit cap. */
74
85
  export declare function encodeStakeUpdateConfig(newCooldownSlots?: bigint | number, newDepositCap?: bigint | number): Uint8Array;
75
- /** Tag 5: TransferAdmin transfer wrapper admin to pool PDA. */
86
+ /** @deprecated Removed on-chain in stake v3. Throws instead of emitting a dead instruction. */
76
87
  export declare function encodeStakeTransferAdmin(): Uint8Array;
77
- /** Tag 6: AdminSetOracleAuthority forward to wrapper via CPI. */
88
+ /** @deprecated Removed on-chain in stake v3. Throws instead of emitting a dead instruction. */
78
89
  export declare function encodeStakeAdminSetOracleAuthority(newAuthority: PublicKey): Uint8Array;
79
- /** Tag 7: AdminSetRiskThreshold forward to wrapper via CPI. */
90
+ /** @deprecated Removed on-chain in stake v3. Throws instead of emitting a dead instruction. */
80
91
  export declare function encodeStakeAdminSetRiskThreshold(newThreshold: bigint | number): Uint8Array;
81
- /** Tag 8: AdminSetMaintenanceFee forward to wrapper via CPI. */
92
+ /** @deprecated Removed on-chain in stake v3. Throws instead of emitting a dead instruction. */
82
93
  export declare function encodeStakeAdminSetMaintenanceFee(newFee: bigint | number): Uint8Array;
83
- /** Tag 9: AdminResolveMarket forward to wrapper via CPI. */
94
+ /** @deprecated Removed on-chain in stake v3. Throws instead of emitting a dead instruction. */
84
95
  export declare function encodeStakeAdminResolveMarket(): Uint8Array;
85
- /** Tag 10: AdminWithdrawInsurancewithdraw insurance after market resolution. */
96
+ /** Tag 10: ReturnInsurancetransfer withdrawn insurance back into the stake pool vault. */
97
+ export declare function encodeStakeReturnInsurance(amount: bigint | number): Uint8Array;
98
+ /** @deprecated Legacy alias for tag 10. Current on-chain semantics are ReturnInsurance. */
86
99
  export declare function encodeStakeAdminWithdrawInsurance(amount: bigint | number): Uint8Array;
87
100
  /** Tag 12: AccrueFees — permissionless: accrue trading fees to LP vault. */
88
101
  export declare function encodeStakeAccrueFees(): Uint8Array;
@@ -94,7 +107,9 @@ export declare function encodeStakeAdminSetHwmConfig(enabled: boolean, hwmFloorB
94
107
  export declare function encodeStakeAdminSetTrancheConfig(juniorFeeMultBps: number): Uint8Array;
95
108
  /** Tag 16 (PERC-303): DepositJunior — deposit into first-loss junior tranche. */
96
109
  export declare function encodeStakeDepositJunior(amount: bigint | number): Uint8Array;
97
- /** Tag 11: AdminSetInsurancePolicyset withdrawal policy on wrapper. */
110
+ /** Tag 18: SetMarketResolvedblocks new deposits after the wrapper market is resolved. */
111
+ export declare function encodeStakeSetMarketResolved(): Uint8Array;
112
+ /** @deprecated Removed on-chain in stake v3. Throws instead of emitting a dead instruction. */
98
113
  export declare function encodeStakeAdminSetInsurancePolicy(authority: PublicKey, minWithdrawBase: bigint | number, maxWithdrawBps: number, cooldownSlots: bigint | number): Uint8Array;
99
114
  /**
100
115
  * Decoded StakePool state (352 bytes on-chain).
@@ -105,6 +120,7 @@ export interface StakePoolState {
105
120
  bump: number;
106
121
  vaultAuthorityBump: number;
107
122
  adminTransferred: boolean;
123
+ marketResolved: boolean;
108
124
  slab: PublicKey;
109
125
  admin: PublicKey;
110
126
  collateralMint: PublicKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percolatorct/sdk",
3
- "version": "1.0.0-beta.32",
3
+ "version": "1.0.0-beta.33",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {