Skip to content

update SDK for permissionless program update#18

Merged
metapileks merged 2 commits into
masterfrom
pileks/sdk-update
Jun 23, 2026
Merged

update SDK for permissionless program update#18
metapileks merged 2 commits into
masterfrom
pileks/sdk-update

Conversation

@metapileks

Copy link
Copy Markdown
Collaborator

Brings the SDK in line with the now-permissionless program (#14): any signer can create a vault and becomes its admin, and initialize validates Fixed exponents.

  • initializeIx: admin is now a parameter (defaults to the connected wallet) instead of the hardcoded legacy key.
  • migrateIx: takes the target vault explicitly and passes the vault ATAs, since its PDA is seeded by its own stored admin and can't be auto-resolved.
  • getAllVaults(admin?): admin filter is now optional (enumerates all vaults by default); fixed the memcmp offset 8 → 1 for the 1-byte account discriminator.
  • vaultExists(..., admin?): admin-aware.
  • TOKEN_MIGRATOR_ADMIN marked @deprecated — no longer "the" admin, kept for reference to the original vaults.
  • Regenerated IDL/types (adds ExponentOutOfRange, code 6000); bumped to 0.1.0-alpha.6.
  • Example scripts updated for the permissionless flow.

Breaking: the four client signatures above changed (covered by the version bump).

@metapileks metapileks self-assigned this Jun 23, 2026
@metapileks
metapileks merged commit f9f488b into master Jun 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants