Conversation
dc81513 to
72cb295
Compare
| newAuthority: newAuthority, | ||
| programAccount: programToTransfer, | ||
| }) | ||
| .accountsPartial({ |
There was a problem hiding this comment.
normally you only pass one of accounts or accountsPartial
also PDAs are usually derived automatically, you can probably get away without specifying escrowAuthority and even programData in recent versions of anchor. if it's failing to derive them, make an accountsPartial block with all the accounts
scripts/ledger.ts
Outdated
| transaction: T | ||
| ): Promise<T> { | ||
| if (transaction instanceof VersionedTransaction) { | ||
| throw new Error("VersionedTransaction not supported by Ledger"); |
There was a problem hiding this comment.
check https://github.com/fogo-foundation/fogo-sessions/blob/main/scripts/ts/src/ledger.ts#L127 for a more updated version that supports VersionedTransaction too
README.md
Outdated
|
|
||
| TypeScript scripts are provided to interact with the on-chain program. All scripts support: | ||
| - File-based keypairs or Ledger hardware wallets | ||
| - Squads v3 multisig proposals via `--multisig` |
There was a problem hiding this comment.
the transfer and revert scripts don't really support squads. To support squads you need to let currentAuthority be a multisigAuthority
|
Did another pass at the scripts. Now they support the Squads program deployed at a specific address, and proper handling of the Squads multisig vault index. |
* Updated deps, fixed test to work in the current year Plus cleanup * Fix CI * fix test clippy * Comment on time * Revamp scripts (#10) * Revamp scripts * Remove empty section from Anchor.toml * Switch to pnpm, improve multisig support, update scripts, etc. * fix: ledger send transaction logic (#11) --------- Co-authored-by: guibescos <59208140+guibescos@users.noreply.github.com> --------- Co-authored-by: Barnabas Ratki <barna@dourolabs.xyz> Co-authored-by: Thomaz Leite <7709+thmzlt@users.noreply.github.com> Co-authored-by: guibescos <59208140+guibescos@users.noreply.github.com>
This updates the set of included scripts to call the propose/accept/revert instructions of the main program-authority-escrow program with support for file keys, Ledger wallets, and Squads v3 multisigs.