@perena/vault-sdk 1.0.36 → 1.0.38
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/README.md +7 -2
- package/dist/index.d.ts +4621 -8256
- package/dist/index.js +5124 -8703
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -191,7 +191,13 @@ transaction and proposal. The member signs and submits that outer transaction;
|
|
|
191
191
|
the multisig must still approve and execute the proposal. When no route matches,
|
|
192
192
|
the helper returns the original instructions as a normal direct transaction.
|
|
193
193
|
The configured member must have Squads' `Initiate` permission, and the vault
|
|
194
|
-
program role must be assigned to the derived Squads vault PDA.
|
|
194
|
+
program role must be assigned to the derived Squads vault PDA. Before returning
|
|
195
|
+
a Squads transaction, `prepareVaultTransaction` simulates the inner instructions
|
|
196
|
+
with signature verification disabled so the derived vault PDA has the signer
|
|
197
|
+
privileges it will receive during execution. A failed simulation throws
|
|
198
|
+
`SquadsProposalExecutionSimulationError`, including the RPC error and program
|
|
199
|
+
logs. This dry run validates current program and account state, but not proposal
|
|
200
|
+
approvals or the Squads execution wrapper.
|
|
195
201
|
|
|
196
202
|
`VaultTransactionPlan` contains:
|
|
197
203
|
|
|
@@ -686,7 +692,6 @@ All builders are on `client.tx`:
|
|
|
686
692
|
| `updateAssetPrice` | `update_asset_price` | Oracle keeper |
|
|
687
693
|
| `vaultReallocation` | `vault_reallocation` | HW manager |
|
|
688
694
|
| `withdrawProtocolFees` | `withdraw_protocol_fees` | Curator |
|
|
689
|
-
| `withdrawTrancheFees` | `withdraw_tranche_fees` | Curator |
|
|
690
695
|
|
|
691
696
|
Argument shapes for each builder: [`src/client/builders/args.ts`](src/client/builders/args.ts).
|
|
692
697
|
|