@elemental-stv-core/sdk 0.5.0 → 0.7.0
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/LICENSE +201 -0
- package/README.md +250 -0
- package/dist/common/ata.d.ts +14 -0
- package/dist/common/ata.js +21 -0
- package/dist/common/buffer.d.ts +0 -1
- package/dist/common/buffer.js +16 -1
- package/dist/common/connection.d.ts +13 -0
- package/dist/common/connection.js +2 -0
- package/dist/common/constants.d.ts +6 -1
- package/dist/common/constants.js +21 -2
- package/dist/common/index.d.ts +3 -2
- package/dist/common/index.js +6 -2
- package/dist/common/strategy-interface.d.ts +35 -5
- package/dist/common/strategy-interface.js +7 -5
- package/dist/elemental-lend/accounts.d.ts +53 -9
- package/dist/elemental-lend/accounts.js +66 -8
- package/dist/elemental-lend/constants.d.ts +4 -5
- package/dist/elemental-lend/constants.js +11 -10
- package/dist/elemental-lend/index.d.ts +0 -1
- package/dist/elemental-lend/index.js +0 -1
- package/dist/elemental-lend/instructions.d.ts +0 -1
- package/dist/elemental-lend/instructions.js +0 -1
- package/dist/elemental-lend/jupiter-lend.d.ts +0 -1
- package/dist/elemental-lend/jupiter-lend.js +2 -3
- package/dist/elemental-lend/kamino-vault.d.ts +6 -6
- package/dist/elemental-lend/kamino-vault.js +49 -26
- package/dist/elemental-lend/pda.d.ts +9 -2
- package/dist/elemental-lend/pda.js +10 -3
- package/dist/elemental-lend/protocol-actions.d.ts +6 -5
- package/dist/elemental-lend/protocol-actions.js +22 -17
- package/dist/elemental-lend/types.d.ts +0 -1
- package/dist/elemental-lend/types.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/jlpd-strategy/accounts.d.ts +64 -11
- package/dist/jlpd-strategy/accounts.js +66 -7
- package/dist/jlpd-strategy/adapter.d.ts +1 -2
- package/dist/jlpd-strategy/adapter.js +1 -2
- package/dist/jlpd-strategy/constants.d.ts +21 -13
- package/dist/jlpd-strategy/constants.js +31 -27
- package/dist/jlpd-strategy/index.d.ts +0 -1
- package/dist/jlpd-strategy/index.js +0 -1
- package/dist/jlpd-strategy/instructions.d.ts +0 -1
- package/dist/jlpd-strategy/instructions.js +0 -1
- package/dist/jlpd-strategy/jlp-borrow.d.ts +29 -1
- package/dist/jlpd-strategy/jlp-borrow.js +29 -1
- package/dist/jlpd-strategy/jlp-data.d.ts +4 -4
- package/dist/jlpd-strategy/jlp-data.js +0 -1
- package/dist/jlpd-strategy/jupusd-earn.d.ts +31 -6
- package/dist/jlpd-strategy/jupusd-earn.js +40 -26
- package/dist/jlpd-strategy/pda.d.ts +9 -4
- package/dist/jlpd-strategy/pda.js +10 -6
- package/dist/jlpd-strategy/settle-yield.d.ts +12 -45
- package/dist/jlpd-strategy/settle-yield.js +14 -19
- package/dist/jlpd-strategy/swap-jlp.d.ts +4 -4
- package/dist/jlpd-strategy/swap-jlp.js +36 -29
- package/dist/jlpd-strategy/types.d.ts +5 -4
- package/dist/jlpd-strategy/types.js +0 -1
- package/dist/p-stv-core/accounts.d.ts +84 -11
- package/dist/p-stv-core/accounts.js +108 -30
- package/dist/p-stv-core/constants.d.ts +13 -3
- package/dist/p-stv-core/constants.js +22 -12
- package/dist/p-stv-core/events.d.ts +0 -1
- package/dist/p-stv-core/events.js +51 -2
- package/dist/p-stv-core/index.d.ts +0 -1
- package/dist/p-stv-core/index.js +0 -1
- package/dist/p-stv-core/instructions.d.ts +49 -4
- package/dist/p-stv-core/instructions.js +46 -14
- package/dist/p-stv-core/pda.d.ts +9 -2
- package/dist/p-stv-core/pda.js +10 -3
- package/dist/p-stv-core/prices.d.ts +0 -1
- package/dist/p-stv-core/prices.js +0 -1
- package/dist/p-stv-core/remaining-accounts.d.ts +15 -18
- package/dist/p-stv-core/remaining-accounts.js +66 -75
- package/dist/p-stv-core/send-tx.d.ts +21 -7
- package/dist/p-stv-core/send-tx.js +16 -25
- package/dist/p-stv-core/sol-wrap.d.ts +0 -1
- package/dist/p-stv-core/sol-wrap.js +5 -6
- package/dist/p-stv-core/types.d.ts +12 -5
- package/dist/p-stv-core/types.js +0 -1
- package/package.json +17 -1
- package/dist/common/buffer.d.ts.map +0 -1
- package/dist/common/buffer.js.map +0 -1
- package/dist/common/constants.d.ts.map +0 -1
- package/dist/common/constants.js.map +0 -1
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js.map +0 -1
- package/dist/common/strategy-interface.d.ts.map +0 -1
- package/dist/common/strategy-interface.js.map +0 -1
- package/dist/elemental-lend/accounts.d.ts.map +0 -1
- package/dist/elemental-lend/accounts.js.map +0 -1
- package/dist/elemental-lend/constants.d.ts.map +0 -1
- package/dist/elemental-lend/constants.js.map +0 -1
- package/dist/elemental-lend/index.d.ts.map +0 -1
- package/dist/elemental-lend/index.js.map +0 -1
- package/dist/elemental-lend/instructions.d.ts.map +0 -1
- package/dist/elemental-lend/instructions.js.map +0 -1
- package/dist/elemental-lend/jupiter-lend.d.ts.map +0 -1
- package/dist/elemental-lend/jupiter-lend.js.map +0 -1
- package/dist/elemental-lend/kamino-vault.d.ts.map +0 -1
- package/dist/elemental-lend/kamino-vault.js.map +0 -1
- package/dist/elemental-lend/pda.d.ts.map +0 -1
- package/dist/elemental-lend/pda.js.map +0 -1
- package/dist/elemental-lend/protocol-actions.d.ts.map +0 -1
- package/dist/elemental-lend/protocol-actions.js.map +0 -1
- package/dist/elemental-lend/types.d.ts.map +0 -1
- package/dist/elemental-lend/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/jlpd-strategy/accounts.d.ts.map +0 -1
- package/dist/jlpd-strategy/accounts.js.map +0 -1
- package/dist/jlpd-strategy/adapter.d.ts.map +0 -1
- package/dist/jlpd-strategy/adapter.js.map +0 -1
- package/dist/jlpd-strategy/constants.d.ts.map +0 -1
- package/dist/jlpd-strategy/constants.js.map +0 -1
- package/dist/jlpd-strategy/index.d.ts.map +0 -1
- package/dist/jlpd-strategy/index.js.map +0 -1
- package/dist/jlpd-strategy/instructions.d.ts.map +0 -1
- package/dist/jlpd-strategy/instructions.js.map +0 -1
- package/dist/jlpd-strategy/jlp-borrow.d.ts.map +0 -1
- package/dist/jlpd-strategy/jlp-borrow.js.map +0 -1
- package/dist/jlpd-strategy/jlp-data.d.ts.map +0 -1
- package/dist/jlpd-strategy/jlp-data.js.map +0 -1
- package/dist/jlpd-strategy/jupusd-earn.d.ts.map +0 -1
- package/dist/jlpd-strategy/jupusd-earn.js.map +0 -1
- package/dist/jlpd-strategy/pda.d.ts.map +0 -1
- package/dist/jlpd-strategy/pda.js.map +0 -1
- package/dist/jlpd-strategy/settle-yield.d.ts.map +0 -1
- package/dist/jlpd-strategy/settle-yield.js.map +0 -1
- package/dist/jlpd-strategy/swap-jlp.d.ts.map +0 -1
- package/dist/jlpd-strategy/swap-jlp.js.map +0 -1
- package/dist/jlpd-strategy/types.d.ts.map +0 -1
- package/dist/jlpd-strategy/types.js.map +0 -1
- package/dist/p-stv-core/accounts.d.ts.map +0 -1
- package/dist/p-stv-core/accounts.js.map +0 -1
- package/dist/p-stv-core/constants.d.ts.map +0 -1
- package/dist/p-stv-core/constants.js.map +0 -1
- package/dist/p-stv-core/events.d.ts.map +0 -1
- package/dist/p-stv-core/events.js.map +0 -1
- package/dist/p-stv-core/index.d.ts.map +0 -1
- package/dist/p-stv-core/index.js.map +0 -1
- package/dist/p-stv-core/instructions.d.ts.map +0 -1
- package/dist/p-stv-core/instructions.js.map +0 -1
- package/dist/p-stv-core/pda.d.ts.map +0 -1
- package/dist/p-stv-core/pda.js.map +0 -1
- package/dist/p-stv-core/prices.d.ts.map +0 -1
- package/dist/p-stv-core/prices.js.map +0 -1
- package/dist/p-stv-core/remaining-accounts.d.ts.map +0 -1
- package/dist/p-stv-core/remaining-accounts.js.map +0 -1
- package/dist/p-stv-core/send-tx.d.ts.map +0 -1
- package/dist/p-stv-core/send-tx.js.map +0 -1
- package/dist/p-stv-core/sol-wrap.d.ts.map +0 -1
- package/dist/p-stv-core/sol-wrap.js.map +0 -1
- package/dist/p-stv-core/types.d.ts.map +0 -1
- package/dist/p-stv-core/types.js.map +0 -1
|
@@ -40,6 +40,45 @@ function parseEventsFromLogs(logs, programId = constants_1.PROGRAM_ID) {
|
|
|
40
40
|
}
|
|
41
41
|
return events;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* p-stv-core event payload layout reference (offsets are within the
|
|
45
|
+
* `Program data: …` log buffer; see also `EVT_*` discriminators in
|
|
46
|
+
* `constants.ts`):
|
|
47
|
+
*
|
|
48
|
+
* ConfigInitialized [0..1] disc | [1..33] admin
|
|
49
|
+
* ConfigUpdated [0..1] disc | [1..33] admin | [33..35] flags
|
|
50
|
+
* StvCreated [0..1] disc | [1..9] vaultId | [9..41] baseMint |
|
|
51
|
+
* [41..73] evMint | [73..105] feeReceiver | [105..137] strategy |
|
|
52
|
+
* [137..169] lendProgram | [169..173] epochSec |
|
|
53
|
+
* [173..175] mgmtFeeBps | [175..177] perfFeeBps
|
|
54
|
+
* StvUpdated [0..1] disc | [1..9] vaultId | [9..41] feeReceiver |
|
|
55
|
+
* [41..43] flags | [43..45] mgmtFeeBps | [45..47] perfFeeBps |
|
|
56
|
+
* [47..55] vaultCapacity | [55..63] minDeposit |
|
|
57
|
+
* [63..64] childVaultCount | [64..96] lendProgram
|
|
58
|
+
* Deposited [0..1] disc | [1..9] vaultId | [9..41] user |
|
|
59
|
+
* [41..49] amount | [49..57] sharesMinted | [57..65] pps
|
|
60
|
+
* WithdrawRequested [0..1] disc | [1..9] vaultId | [9..41] user |
|
|
61
|
+
* [41..49] shares | [49..53] epochId
|
|
62
|
+
* WithdrawRequestIncreased [0..1] disc | [1..9] vaultId | [9..41] user |
|
|
63
|
+
* [41..49] additionalShares | [49..57] totalShares |
|
|
64
|
+
* [57..61] epochId
|
|
65
|
+
* WithdrawClaimed [0..1] disc | [1..9] vaultId | [9..41] user |
|
|
66
|
+
* [41..49] shares | [49..57] baseAmount | [57..61] epochId
|
|
67
|
+
* DepositedToStrategy [0..1] disc | [1..9] vaultId | [9..41] strategy |
|
|
68
|
+
* [41..49] amount | [49..57] sharesReceived
|
|
69
|
+
* WithdrawnFromStrategy [0..1] disc | [1..9] vaultId | [9..41] strategy |
|
|
70
|
+
* [41..49] shares | [49..57] baseReceived
|
|
71
|
+
* EpochProcessed [0..1] disc | [1..9] vaultId | [9..13] epochId |
|
|
72
|
+
* [13..21] epochPps | [21..29] feeSharesMinted
|
|
73
|
+
* EpochAdvanced [0..1] disc | [1..9] vaultId | [9..13] newEpochId |
|
|
74
|
+
* [13..17] nextEpochTs
|
|
75
|
+
* FeesSettled [0..1] disc | [1..9] vaultId | [9..17] mgmtFeeBase |
|
|
76
|
+
* [17..25] perfFeeBase | [25..33] feeSharesMinted |
|
|
77
|
+
* [33..41] postFeePps | [41..49] hwm
|
|
78
|
+
* StvClosed [0..1] disc | [1..9] vaultId
|
|
79
|
+
* ManagerAdded [0..1] disc | [1..33] stv | [33..65] manager
|
|
80
|
+
* ManagerRemoved [0..1] disc | [1..33] stv | [33..65] manager
|
|
81
|
+
*/
|
|
43
82
|
function parseEventBuffer(data) {
|
|
44
83
|
if (data.length === 0)
|
|
45
84
|
return null;
|
|
@@ -61,7 +100,7 @@ function parseEventBuffer(data) {
|
|
|
61
100
|
name: "StvUpdated", vaultId: (0, buffer_1.readU64)(data, 1), feeReceiver: (0, buffer_1.readPubkey)(data, 9),
|
|
62
101
|
flags: (0, buffer_1.readU16)(data, 41), mgmtFeeBps: (0, buffer_1.readU16)(data, 43),
|
|
63
102
|
perfFeeBps: (0, buffer_1.readU16)(data, 45), vaultCapacity: (0, buffer_1.readU64)(data, 47), minDeposit: (0, buffer_1.readU64)(data, 55),
|
|
64
|
-
|
|
103
|
+
childVaultCount: data[63], lendProgram: (0, buffer_1.readPubkey)(data, 64),
|
|
65
104
|
} : null;
|
|
66
105
|
case constants_1.EVT_DEPOSITED:
|
|
67
106
|
return data.length >= 65 ? {
|
|
@@ -120,8 +159,18 @@ function parseEventBuffer(data) {
|
|
|
120
159
|
return data.length >= 65 ? {
|
|
121
160
|
name: "ManagerRemoved", stv: (0, buffer_1.readPubkey)(data, 1), manager: (0, buffer_1.readPubkey)(data, 33),
|
|
122
161
|
} : null;
|
|
162
|
+
case constants_1.EVT_WITHDRAW_OVERRIDE_CLAIMED:
|
|
163
|
+
return data.length >= 109 ? {
|
|
164
|
+
name: "WithdrawOverrideClaimed", vaultId: (0, buffer_1.readU64)(data, 1), manager: (0, buffer_1.readPubkey)(data, 9),
|
|
165
|
+
user: (0, buffer_1.readPubkey)(data, 41), shares: (0, buffer_1.readU64)(data, 73), baseAmount: (0, buffer_1.readU64)(data, 81),
|
|
166
|
+
epochId: (0, buffer_1.readU32)(data, 89), dailyWithdrawnBase: (0, buffer_1.readU64)(data, 93), dailyLimit: (0, buffer_1.readU64)(data, 101),
|
|
167
|
+
} : null;
|
|
168
|
+
case constants_1.EVT_LEND_MIGRATED:
|
|
169
|
+
return data.length >= 89 ? {
|
|
170
|
+
name: "LendMigrated", vaultId: (0, buffer_1.readU64)(data, 1), oldLendProgram: (0, buffer_1.readPubkey)(data, 9),
|
|
171
|
+
newLendProgram: (0, buffer_1.readPubkey)(data, 41), sharesWithdrawn: (0, buffer_1.readU64)(data, 73), baseMigrated: (0, buffer_1.readU64)(data, 81),
|
|
172
|
+
} : null;
|
|
123
173
|
default:
|
|
124
174
|
return null;
|
|
125
175
|
}
|
|
126
176
|
}
|
|
127
|
-
//# sourceMappingURL=events.js.map
|
package/dist/p-stv-core/index.js
CHANGED
|
@@ -42,6 +42,8 @@ export interface InitOrUpdateStvArgs {
|
|
|
42
42
|
export declare function createInitOrUpdateStvIx(args: InitOrUpdateStvArgs, programId?: PublicKey): TransactionInstruction;
|
|
43
43
|
export interface DepositArgs {
|
|
44
44
|
user: PublicKey;
|
|
45
|
+
/** GlobalConfig PDA — checked for CFG_FLAG_GLOBAL_PAUSED */
|
|
46
|
+
config: PublicKey;
|
|
45
47
|
stv: PublicKey;
|
|
46
48
|
vaultAta: PublicKey;
|
|
47
49
|
userBaseAta: PublicKey;
|
|
@@ -61,6 +63,8 @@ export interface DepositArgs {
|
|
|
61
63
|
export declare function createDepositIx(args: DepositArgs, programId?: PublicKey): TransactionInstruction;
|
|
62
64
|
export interface RequestWithdrawArgs {
|
|
63
65
|
user: PublicKey;
|
|
66
|
+
/** GlobalConfig PDA — checked for CFG_FLAG_GLOBAL_PAUSED */
|
|
67
|
+
config: PublicKey;
|
|
64
68
|
stv: PublicKey;
|
|
65
69
|
withdrawRequest: PublicKey;
|
|
66
70
|
userEvAta: PublicKey;
|
|
@@ -74,6 +78,8 @@ export interface RequestWithdrawArgs {
|
|
|
74
78
|
export declare function createRequestWithdrawIx(args: RequestWithdrawArgs, programId?: PublicKey): TransactionInstruction;
|
|
75
79
|
export interface ClaimWithdrawArgs {
|
|
76
80
|
user: PublicKey;
|
|
81
|
+
/** GlobalConfig PDA — checked for CFG_FLAG_GLOBAL_PAUSED */
|
|
82
|
+
config: PublicKey;
|
|
77
83
|
stv: PublicKey;
|
|
78
84
|
withdrawRequest: PublicKey;
|
|
79
85
|
vaultAta: PublicKey;
|
|
@@ -88,6 +94,8 @@ export declare function createClaimWithdrawIx(args: ClaimWithdrawArgs, programId
|
|
|
88
94
|
export interface OverrideClaimWithdrawArgs {
|
|
89
95
|
manager: PublicKey;
|
|
90
96
|
managerRole: PublicKey;
|
|
97
|
+
/** GlobalConfig PDA — checked for CFG_FLAG_GLOBAL_PAUSED */
|
|
98
|
+
config: PublicKey;
|
|
91
99
|
user: PublicKey;
|
|
92
100
|
stv: PublicKey;
|
|
93
101
|
withdrawRequest: PublicKey;
|
|
@@ -101,6 +109,8 @@ export interface OverrideClaimWithdrawArgs {
|
|
|
101
109
|
export declare function createOverrideClaimWithdrawIx(args: OverrideClaimWithdrawArgs, programId?: PublicKey): TransactionInstruction;
|
|
102
110
|
export interface ProcessEpochArgs {
|
|
103
111
|
payer: PublicKey;
|
|
112
|
+
/** GlobalConfig PDA — checked for CFG_FLAG_GLOBAL_PAUSED */
|
|
113
|
+
config: PublicKey;
|
|
104
114
|
stv: PublicKey;
|
|
105
115
|
evMint: PublicKey;
|
|
106
116
|
feeReceiverEvAta: PublicKey;
|
|
@@ -116,6 +126,8 @@ export declare function createProcessEpochIx(args: ProcessEpochArgs, programId?:
|
|
|
116
126
|
export interface DepositToStrategyArgs {
|
|
117
127
|
manager: PublicKey;
|
|
118
128
|
managerRole: PublicKey;
|
|
129
|
+
/** GlobalConfig PDA — checked for CFG_FLAG_GLOBAL_PAUSED */
|
|
130
|
+
config: PublicKey;
|
|
119
131
|
stv: PublicKey;
|
|
120
132
|
vaultAta: PublicKey;
|
|
121
133
|
baseMint: PublicKey;
|
|
@@ -126,7 +138,13 @@ export interface DepositToStrategyArgs {
|
|
|
126
138
|
tokenProgram: PublicKey;
|
|
127
139
|
amount: BN | number;
|
|
128
140
|
minShares: BN | number;
|
|
129
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* Number of protocol AUM accounts (kVault: 2/protocol, Jupiter Lend: 3/protocol)
|
|
143
|
+
* used by update_lend_aum for fresh lend valuation before the reserved_base
|
|
144
|
+
* liquidity lock check. Always required (0 if lend has no active protocols).
|
|
145
|
+
*/
|
|
146
|
+
protocolAumCount: number;
|
|
147
|
+
/** Number of auto-unroute accounts appended after protocol accounts (0 = no auto-unroute) */
|
|
130
148
|
autoUnrouteCount?: number;
|
|
131
149
|
remainingAccounts?: AccountMeta[];
|
|
132
150
|
}
|
|
@@ -134,6 +152,8 @@ export declare function createDepositToStrategyIx(args: DepositToStrategyArgs, p
|
|
|
134
152
|
export interface WithdrawFromStrategyArgs {
|
|
135
153
|
manager: PublicKey;
|
|
136
154
|
managerRole: PublicKey;
|
|
155
|
+
/** GlobalConfig PDA — checked for CFG_FLAG_GLOBAL_PAUSED */
|
|
156
|
+
config: PublicKey;
|
|
137
157
|
stv: PublicKey;
|
|
138
158
|
vaultAta: PublicKey;
|
|
139
159
|
baseMint: PublicKey;
|
|
@@ -153,9 +173,7 @@ export interface CloseStvArgs {
|
|
|
153
173
|
stv: PublicKey;
|
|
154
174
|
evMint: PublicKey;
|
|
155
175
|
vaultAta: PublicKey;
|
|
156
|
-
baseMint: PublicKey;
|
|
157
176
|
tokenProgram: PublicKey;
|
|
158
|
-
remainingAccounts?: AccountMeta[];
|
|
159
177
|
}
|
|
160
178
|
export declare function createCloseStvIx(args: CloseStvArgs, programId?: PublicKey): TransactionInstruction;
|
|
161
179
|
export interface AddManagerArgs {
|
|
@@ -176,6 +194,34 @@ export interface RemoveManagerArgs {
|
|
|
176
194
|
managerRole: PublicKey;
|
|
177
195
|
}
|
|
178
196
|
export declare function createRemoveManagerIx(args: RemoveManagerArgs, programId?: PublicKey): TransactionInstruction;
|
|
197
|
+
export interface MigrateLendArgs {
|
|
198
|
+
admin: PublicKey;
|
|
199
|
+
payer: PublicKey;
|
|
200
|
+
config: PublicKey;
|
|
201
|
+
stv: PublicKey;
|
|
202
|
+
vaultAta: PublicKey;
|
|
203
|
+
baseMint: PublicKey;
|
|
204
|
+
tokenProgram: PublicKey;
|
|
205
|
+
systemProgram?: PublicKey;
|
|
206
|
+
/** Current lend program — must match stv.lend_program on-chain. */
|
|
207
|
+
oldLendProgram: PublicKey;
|
|
208
|
+
/** New lend program (PublicKey.default to deactivate lend entirely). */
|
|
209
|
+
newLendProgram: PublicKey;
|
|
210
|
+
/** Protocol AUM accounts for old lend update_aum. */
|
|
211
|
+
protocolAumCount: number;
|
|
212
|
+
/** Auto-unroute accounts for old lend withdraw. */
|
|
213
|
+
autoUnrouteCount: number;
|
|
214
|
+
/**
|
|
215
|
+
* remaining_accounts layout:
|
|
216
|
+
* Old section (4 + protocolAumCount + autoUnrouteCount):
|
|
217
|
+
* [oldLendProgram, oldStrategyState, oldStvPosition, oldBaseAta,
|
|
218
|
+
* ...protocolAumAccounts, ...autoUnrouteAccounts]
|
|
219
|
+
* New section (if newLendProgram != default, 4 accounts):
|
|
220
|
+
* [newLendProgram, newStrategyState, newPositionPda, newBaseAta]
|
|
221
|
+
*/
|
|
222
|
+
remainingAccounts?: AccountMeta[];
|
|
223
|
+
}
|
|
224
|
+
export declare function createMigrateLendIx(args: MigrateLendArgs, programId?: PublicKey): TransactionInstruction;
|
|
179
225
|
export declare function buildLendRemainingAccounts(lend: {
|
|
180
226
|
lendProgram: PublicKey;
|
|
181
227
|
lendStrategyState: PublicKey;
|
|
@@ -186,4 +232,3 @@ export declare function buildStrategyRemainingAccounts(strategies: {
|
|
|
186
232
|
strategyState: PublicKey;
|
|
187
233
|
stvPosition: PublicKey;
|
|
188
234
|
}[]): AccountMeta[];
|
|
189
|
-
//# sourceMappingURL=instructions.d.ts.map
|
|
@@ -12,6 +12,7 @@ exports.createWithdrawFromStrategyIx = createWithdrawFromStrategyIx;
|
|
|
12
12
|
exports.createCloseStvIx = createCloseStvIx;
|
|
13
13
|
exports.createAddManagerIx = createAddManagerIx;
|
|
14
14
|
exports.createRemoveManagerIx = createRemoveManagerIx;
|
|
15
|
+
exports.createMigrateLendIx = createMigrateLendIx;
|
|
15
16
|
exports.buildLendRemainingAccounts = buildLendRemainingAccounts;
|
|
16
17
|
exports.buildStrategyRemainingAccounts = buildStrategyRemainingAccounts;
|
|
17
18
|
const web3_js_1 = require("@solana/web3.js");
|
|
@@ -71,7 +72,7 @@ function createInitOrUpdateStvIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
74
|
function createDepositIx(args, programId = constants_1.PROGRAM_ID) {
|
|
74
|
-
const { user, stv, vaultAta, userBaseAta, userEvAta, evMint, feeReceiverEvAta, baseMint, tokenProgram, amount, minShares, protocolAumCount = 0, autoRouteCount = 0, remainingAccounts = [], } = args;
|
|
75
|
+
const { user, config, stv, vaultAta, userBaseAta, userEvAta, evMint, feeReceiverEvAta, baseMint, tokenProgram, amount, minShares, protocolAumCount = 0, autoRouteCount = 0, remainingAccounts = [], } = args;
|
|
75
76
|
const data = [constants_1.IX_DEPOSIT];
|
|
76
77
|
(0, buffer_1.writeU64)(data, amount);
|
|
77
78
|
(0, buffer_1.writeU64)(data, minShares);
|
|
@@ -80,6 +81,7 @@ function createDepositIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
80
81
|
return new web3_js_1.TransactionInstruction({
|
|
81
82
|
keys: [
|
|
82
83
|
{ pubkey: user, isSigner: true, isWritable: true },
|
|
84
|
+
{ pubkey: config, isSigner: false, isWritable: false },
|
|
83
85
|
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
84
86
|
{ pubkey: vaultAta, isSigner: false, isWritable: true },
|
|
85
87
|
{ pubkey: userBaseAta, isSigner: false, isWritable: true },
|
|
@@ -95,13 +97,14 @@ function createDepositIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
99
|
function createRequestWithdrawIx(args, programId = constants_1.PROGRAM_ID) {
|
|
98
|
-
const { user, stv, withdrawRequest, userEvAta, escrowEvAta, evMint, tokenProgram, systemProgram = web3_js_1.SystemProgram.programId, shares, wrBump, } = args;
|
|
100
|
+
const { user, config, stv, withdrawRequest, userEvAta, escrowEvAta, evMint, tokenProgram, systemProgram = web3_js_1.SystemProgram.programId, shares, wrBump, } = args;
|
|
99
101
|
const data = [constants_1.IX_REQUEST_WITHDRAW];
|
|
100
102
|
(0, buffer_1.writeU64)(data, shares);
|
|
101
103
|
data.push(wrBump & 0xff);
|
|
102
104
|
return new web3_js_1.TransactionInstruction({
|
|
103
105
|
keys: [
|
|
104
106
|
{ pubkey: user, isSigner: true, isWritable: true },
|
|
107
|
+
{ pubkey: config, isSigner: false, isWritable: false },
|
|
105
108
|
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
106
109
|
{ pubkey: withdrawRequest, isSigner: false, isWritable: true },
|
|
107
110
|
{ pubkey: userEvAta, isSigner: false, isWritable: true },
|
|
@@ -115,13 +118,15 @@ function createRequestWithdrawIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
115
118
|
});
|
|
116
119
|
}
|
|
117
120
|
function createClaimWithdrawIx(args, programId = constants_1.PROGRAM_ID) {
|
|
118
|
-
const { user, stv, withdrawRequest, vaultAta, userBaseAta, baseMint, tokenProgram, remainingAccounts = [], autoUnrouteCount = 0, } = args;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
const { user, config, stv, withdrawRequest, vaultAta, userBaseAta, baseMint, tokenProgram, remainingAccounts = [], autoUnrouteCount = 0, } = args;
|
|
122
|
+
// Always serialize the auto_unroute_count byte (write 0 when there's no
|
|
123
|
+
// auto-unroute). The on-chain handler always reads this byte from
|
|
124
|
+
// instruction data.
|
|
125
|
+
const data = Buffer.from([constants_1.IX_CLAIM_WITHDRAW, autoUnrouteCount & 0xff]);
|
|
122
126
|
return new web3_js_1.TransactionInstruction({
|
|
123
127
|
keys: [
|
|
124
128
|
{ pubkey: user, isSigner: true, isWritable: true },
|
|
129
|
+
{ pubkey: config, isSigner: false, isWritable: false },
|
|
125
130
|
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
126
131
|
{ pubkey: withdrawRequest, isSigner: false, isWritable: true },
|
|
127
132
|
{ pubkey: vaultAta, isSigner: false, isWritable: true },
|
|
@@ -135,7 +140,7 @@ function createClaimWithdrawIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
135
140
|
});
|
|
136
141
|
}
|
|
137
142
|
function createOverrideClaimWithdrawIx(args, programId = constants_1.PROGRAM_ID) {
|
|
138
|
-
const { manager, managerRole, user, stv, withdrawRequest, vaultAta, userBaseAta, baseMint, tokenProgram, remainingAccounts = [], autoUnrouteCount = 0, } = args;
|
|
143
|
+
const { manager, managerRole, config, user, stv, withdrawRequest, vaultAta, userBaseAta, baseMint, tokenProgram, remainingAccounts = [], autoUnrouteCount = 0, } = args;
|
|
139
144
|
const data = autoUnrouteCount > 0
|
|
140
145
|
? Buffer.from([constants_1.IX_OVERRIDE_CLAIM_WITHDRAW, autoUnrouteCount & 0xff])
|
|
141
146
|
: Buffer.from([constants_1.IX_OVERRIDE_CLAIM_WITHDRAW]);
|
|
@@ -143,6 +148,7 @@ function createOverrideClaimWithdrawIx(args, programId = constants_1.PROGRAM_ID)
|
|
|
143
148
|
keys: [
|
|
144
149
|
{ pubkey: manager, isSigner: true, isWritable: false },
|
|
145
150
|
{ pubkey: managerRole, isSigner: false, isWritable: false },
|
|
151
|
+
{ pubkey: config, isSigner: false, isWritable: false },
|
|
146
152
|
{ pubkey: user, isSigner: false, isWritable: true },
|
|
147
153
|
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
148
154
|
{ pubkey: withdrawRequest, isSigner: false, isWritable: true },
|
|
@@ -157,10 +163,11 @@ function createOverrideClaimWithdrawIx(args, programId = constants_1.PROGRAM_ID)
|
|
|
157
163
|
});
|
|
158
164
|
}
|
|
159
165
|
function createProcessEpochIx(args, programId = constants_1.PROGRAM_ID) {
|
|
160
|
-
const { payer, stv, evMint, feeReceiverEvAta, escrowEvAta, vaultAta, tokenProgram, advanceEpoch, protocolAumCount = 0, remainingAccounts = [], } = args;
|
|
166
|
+
const { payer, config, stv, evMint, feeReceiverEvAta, escrowEvAta, vaultAta, tokenProgram, advanceEpoch, protocolAumCount = 0, remainingAccounts = [], } = args;
|
|
161
167
|
return new web3_js_1.TransactionInstruction({
|
|
162
168
|
keys: [
|
|
163
169
|
{ pubkey: payer, isSigner: true, isWritable: true },
|
|
170
|
+
{ pubkey: config, isSigner: false, isWritable: false },
|
|
164
171
|
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
165
172
|
{ pubkey: evMint, isSigner: false, isWritable: true },
|
|
166
173
|
{ pubkey: feeReceiverEvAta, isSigner: false, isWritable: true },
|
|
@@ -174,10 +181,13 @@ function createProcessEpochIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
174
181
|
});
|
|
175
182
|
}
|
|
176
183
|
function createDepositToStrategyIx(args, programId = constants_1.PROGRAM_ID) {
|
|
177
|
-
const { manager, managerRole, stv, vaultAta, baseMint, strategyProgram, strategyState, stvPosition, strategyBaseAta, tokenProgram, amount, minShares, autoUnrouteCount = 0, remainingAccounts = [], } = args;
|
|
184
|
+
const { manager, managerRole, config, stv, vaultAta, baseMint, strategyProgram, strategyState, stvPosition, strategyBaseAta, tokenProgram, amount, minShares, protocolAumCount, autoUnrouteCount = 0, remainingAccounts = [], } = args;
|
|
178
185
|
const data = [constants_1.IX_DEPOSIT_TO_STRATEGY];
|
|
179
186
|
(0, buffer_1.writeU64)(data, amount);
|
|
180
187
|
(0, buffer_1.writeU64)(data, minShares);
|
|
188
|
+
// Always emit protocol_aum_count at offset 16 (even if 0); auto_unroute_count
|
|
189
|
+
// remains optional and is appended only when > 0.
|
|
190
|
+
data.push(protocolAumCount & 0xff);
|
|
181
191
|
if (autoUnrouteCount > 0) {
|
|
182
192
|
data.push(autoUnrouteCount & 0xff);
|
|
183
193
|
}
|
|
@@ -185,6 +195,7 @@ function createDepositToStrategyIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
185
195
|
keys: [
|
|
186
196
|
{ pubkey: manager, isSigner: true, isWritable: true },
|
|
187
197
|
{ pubkey: managerRole, isSigner: false, isWritable: false },
|
|
198
|
+
{ pubkey: config, isSigner: false, isWritable: false },
|
|
188
199
|
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
189
200
|
{ pubkey: vaultAta, isSigner: false, isWritable: true },
|
|
190
201
|
{ pubkey: baseMint, isSigner: false, isWritable: false },
|
|
@@ -200,13 +211,14 @@ function createDepositToStrategyIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
200
211
|
});
|
|
201
212
|
}
|
|
202
213
|
function createWithdrawFromStrategyIx(args, programId = constants_1.PROGRAM_ID) {
|
|
203
|
-
const { manager, managerRole, stv, vaultAta, baseMint, strategyProgram, strategyState, stvPosition, strategyBaseAta, tokenProgram, shares, remainingAccounts = [], } = args;
|
|
214
|
+
const { manager, managerRole, config, stv, vaultAta, baseMint, strategyProgram, strategyState, stvPosition, strategyBaseAta, tokenProgram, shares, remainingAccounts = [], } = args;
|
|
204
215
|
const data = [constants_1.IX_WITHDRAW_FROM_STRATEGY];
|
|
205
216
|
(0, buffer_1.writeU64)(data, shares);
|
|
206
217
|
return new web3_js_1.TransactionInstruction({
|
|
207
218
|
keys: [
|
|
208
219
|
{ pubkey: manager, isSigner: true, isWritable: true },
|
|
209
220
|
{ pubkey: managerRole, isSigner: false, isWritable: false },
|
|
221
|
+
{ pubkey: config, isSigner: false, isWritable: false },
|
|
210
222
|
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
211
223
|
{ pubkey: vaultAta, isSigner: false, isWritable: true },
|
|
212
224
|
{ pubkey: baseMint, isSigner: false, isWritable: false },
|
|
@@ -222,7 +234,7 @@ function createWithdrawFromStrategyIx(args, programId = constants_1.PROGRAM_ID)
|
|
|
222
234
|
});
|
|
223
235
|
}
|
|
224
236
|
function createCloseStvIx(args, programId = constants_1.PROGRAM_ID) {
|
|
225
|
-
const { admin, payer, config, stv, evMint, vaultAta,
|
|
237
|
+
const { admin, payer, config, stv, evMint, vaultAta, tokenProgram } = args;
|
|
226
238
|
return new web3_js_1.TransactionInstruction({
|
|
227
239
|
keys: [
|
|
228
240
|
{ pubkey: admin, isSigner: true, isWritable: false },
|
|
@@ -231,9 +243,7 @@ function createCloseStvIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
231
243
|
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
232
244
|
{ pubkey: evMint, isSigner: false, isWritable: true },
|
|
233
245
|
{ pubkey: vaultAta, isSigner: false, isWritable: true },
|
|
234
|
-
{ pubkey: baseMint, isSigner: false, isWritable: false },
|
|
235
246
|
{ pubkey: tokenProgram, isSigner: false, isWritable: false },
|
|
236
|
-
...remainingAccounts,
|
|
237
247
|
],
|
|
238
248
|
programId,
|
|
239
249
|
data: Buffer.from([constants_1.IX_CLOSE_STV]),
|
|
@@ -269,6 +279,29 @@ function createRemoveManagerIx(args, programId = constants_1.PROGRAM_ID) {
|
|
|
269
279
|
data: Buffer.from([constants_1.IX_REMOVE_MANAGER]),
|
|
270
280
|
});
|
|
271
281
|
}
|
|
282
|
+
function createMigrateLendIx(args, programId = constants_1.PROGRAM_ID) {
|
|
283
|
+
const { admin, payer, config, stv, vaultAta, baseMint, tokenProgram, systemProgram = web3_js_1.SystemProgram.programId, oldLendProgram, newLendProgram, protocolAumCount, autoUnrouteCount, remainingAccounts = [], } = args;
|
|
284
|
+
const data = [constants_1.IX_MIGRATE_LEND];
|
|
285
|
+
data.push(...oldLendProgram.toBuffer());
|
|
286
|
+
data.push(...newLendProgram.toBuffer());
|
|
287
|
+
data.push(protocolAumCount & 0xff);
|
|
288
|
+
data.push(autoUnrouteCount & 0xff);
|
|
289
|
+
return new web3_js_1.TransactionInstruction({
|
|
290
|
+
keys: [
|
|
291
|
+
{ pubkey: admin, isSigner: true, isWritable: false },
|
|
292
|
+
{ pubkey: payer, isSigner: true, isWritable: true },
|
|
293
|
+
{ pubkey: config, isSigner: false, isWritable: false },
|
|
294
|
+
{ pubkey: stv, isSigner: false, isWritable: true },
|
|
295
|
+
{ pubkey: vaultAta, isSigner: false, isWritable: true },
|
|
296
|
+
{ pubkey: baseMint, isSigner: false, isWritable: false },
|
|
297
|
+
{ pubkey: tokenProgram, isSigner: false, isWritable: false },
|
|
298
|
+
{ pubkey: systemProgram, isSigner: false, isWritable: false },
|
|
299
|
+
...remainingAccounts,
|
|
300
|
+
],
|
|
301
|
+
programId,
|
|
302
|
+
data: Buffer.from(data),
|
|
303
|
+
});
|
|
304
|
+
}
|
|
272
305
|
// ---------------------------------------------------------------------------
|
|
273
306
|
// Remaining Accounts Helpers
|
|
274
307
|
// ---------------------------------------------------------------------------
|
|
@@ -287,4 +320,3 @@ function buildStrategyRemainingAccounts(strategies) {
|
|
|
287
320
|
}
|
|
288
321
|
return accounts;
|
|
289
322
|
}
|
|
290
|
-
//# sourceMappingURL=instructions.js.map
|
package/dist/p-stv-core/pda.d.ts
CHANGED
|
@@ -4,5 +4,12 @@ export declare function findConfigPda(programId?: PublicKey): [PublicKey, number
|
|
|
4
4
|
export declare function findStvPda(vaultId: number | BN, programId?: PublicKey): [PublicKey, number];
|
|
5
5
|
export declare function findEvMintPda(vaultId: number | BN, programId?: PublicKey): [PublicKey, number];
|
|
6
6
|
export declare function findWithdrawRequestPda(stv: PublicKey, user: PublicKey, epochId: number, programId?: PublicKey): [PublicKey, number];
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Derive the per-STV `ManagerRole` PDA for p-STV Core.
|
|
9
|
+
* Seeds: `["manager", stv, manager]`.
|
|
10
|
+
*
|
|
11
|
+
* Note the per-program prefix on the name: each Elemental program has its
|
|
12
|
+
* own `ManagerRole` PDA scoped to a different anchor account
|
|
13
|
+
* (`elemental-lend` → strategy_state, `jlpd-strategy` → config).
|
|
14
|
+
*/
|
|
15
|
+
export declare function findStvManagerRolePda(stv: PublicKey, manager: PublicKey, programId?: PublicKey): [PublicKey, number];
|
package/dist/p-stv-core/pda.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.findConfigPda = findConfigPda;
|
|
|
7
7
|
exports.findStvPda = findStvPda;
|
|
8
8
|
exports.findEvMintPda = findEvMintPda;
|
|
9
9
|
exports.findWithdrawRequestPda = findWithdrawRequestPda;
|
|
10
|
-
exports.
|
|
10
|
+
exports.findStvManagerRolePda = findStvManagerRolePda;
|
|
11
11
|
const web3_js_1 = require("@solana/web3.js");
|
|
12
12
|
const bn_js_1 = __importDefault(require("bn.js"));
|
|
13
13
|
const constants_1 = require("./constants");
|
|
@@ -27,7 +27,14 @@ function findWithdrawRequestPda(stv, user, epochId, programId = constants_1.PROG
|
|
|
27
27
|
epochBuf.writeUInt32LE(epochId, 0);
|
|
28
28
|
return web3_js_1.PublicKey.findProgramAddressSync([constants_1.WITHDRAW_REQUEST_SEED, stv.toBuffer(), user.toBuffer(), epochBuf], programId);
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Derive the per-STV `ManagerRole` PDA for p-STV Core.
|
|
32
|
+
* Seeds: `["manager", stv, manager]`.
|
|
33
|
+
*
|
|
34
|
+
* Note the per-program prefix on the name: each Elemental program has its
|
|
35
|
+
* own `ManagerRole` PDA scoped to a different anchor account
|
|
36
|
+
* (`elemental-lend` → strategy_state, `jlpd-strategy` → config).
|
|
37
|
+
*/
|
|
38
|
+
function findStvManagerRolePda(stv, manager, programId = constants_1.PROGRAM_ID) {
|
|
31
39
|
return web3_js_1.PublicKey.findProgramAddressSync([constants_1.MANAGER_SEED, stv.toBuffer(), manager.toBuffer()], programId);
|
|
32
40
|
}
|
|
33
|
-
//# sourceMappingURL=pda.js.map
|
|
@@ -6,13 +6,9 @@
|
|
|
6
6
|
* lend + protocol AUM + strategy pair + auto-route/unroute account building
|
|
7
7
|
* logic out of the frontend and into the SDK.
|
|
8
8
|
*/
|
|
9
|
-
import { AccountMeta,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* Using a structural type avoids nominal type mismatches when the
|
|
13
|
-
* consumer has a different version of @solana/web3.js installed.
|
|
14
|
-
*/
|
|
15
|
-
export type SolanaConnection = Pick<Connection, "getAccountInfo" | "getMultipleAccountsInfo" | "getTokenAccountsByOwner" | "getSlot" | "getEpochInfo" | "getBlockTime">;
|
|
9
|
+
import { AccountMeta, PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
10
|
+
import type { SolanaConnection } from "../common/connection";
|
|
11
|
+
export type { SolanaConnection };
|
|
16
12
|
/** Minimal vault shape required by the context builders. */
|
|
17
13
|
export interface VaultInfo {
|
|
18
14
|
/** STV account address */
|
|
@@ -21,10 +17,8 @@ export interface VaultInfo {
|
|
|
21
17
|
baseMint: PublicKey;
|
|
22
18
|
/** Lend program (PublicKey.default if not active) */
|
|
23
19
|
lendProgram: PublicKey;
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
/** Number of active strategies */
|
|
27
|
-
strategyCount: number;
|
|
20
|
+
/** Immutable strategy program (PublicKey.default if none) */
|
|
21
|
+
strategy: PublicKey;
|
|
28
22
|
}
|
|
29
23
|
export interface DepositContext {
|
|
30
24
|
remainingAccounts: AccountMeta[];
|
|
@@ -43,6 +37,8 @@ export interface ClaimWithdrawContext {
|
|
|
43
37
|
}
|
|
44
38
|
export interface DepositToStrategyContext {
|
|
45
39
|
remainingAccounts: AccountMeta[];
|
|
40
|
+
/** Number of protocol AUM accounts (after the 4 fixed lend accounts). */
|
|
41
|
+
protocolAumCount: number;
|
|
46
42
|
autoUnrouteCount: number;
|
|
47
43
|
preInstructions: TransactionInstruction[];
|
|
48
44
|
}
|
|
@@ -76,17 +72,19 @@ export declare function buildDepositContext(connection: SolanaConnection, vault:
|
|
|
76
72
|
* - If lend is active, derives lend PDAs
|
|
77
73
|
* - If USDC + Jupiter Lend, appends auto-unroute accounts
|
|
78
74
|
*/
|
|
79
|
-
export declare function buildClaimWithdrawContext(
|
|
75
|
+
export declare function buildClaimWithdrawContext(vault: VaultInfo): Promise<ClaimWithdrawContext>;
|
|
80
76
|
/**
|
|
81
77
|
* Build the complete remaining_accounts for a deposit_to_strategy instruction.
|
|
82
78
|
*
|
|
83
|
-
* Layout: [4 lend, K auto_unroute]
|
|
79
|
+
* Layout: [4 fixed lend, N protocol_aum, K auto_unroute]
|
|
84
80
|
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
81
|
+
* - Fixed lend accounts (if lend is active)
|
|
82
|
+
* - Protocol AUM accounts: required by the on-chain handler to refresh lend
|
|
83
|
+
* valuation via update_lend_aum before the reserved_base liquidity lock check
|
|
84
|
+
* - Auto-unroute accounts: forwarded to the lend withdraw CPI for unsweep
|
|
87
85
|
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
86
|
+
* The `connection` parameter is required to fetch LendStrategyState and
|
|
87
|
+
* resolve protocol AUM accounts.
|
|
90
88
|
*/
|
|
91
89
|
export declare function buildDepositToStrategyContext(connection: SolanaConnection, vault: VaultInfo): Promise<DepositToStrategyContext>;
|
|
92
90
|
/**
|
|
@@ -96,4 +94,3 @@ export declare function buildDepositToStrategyContext(connection: SolanaConnecti
|
|
|
96
94
|
* 'advance': empty remaining_accounts.
|
|
97
95
|
*/
|
|
98
96
|
export declare function buildProcessEpochContext(connection: SolanaConnection, vault: VaultInfo, phase: "lockPps" | "advance"): Promise<ProcessEpochContext>;
|
|
99
|
-
//# sourceMappingURL=remaining-accounts.d.ts.map
|