Complete guide for migrating from Swig TypeScript SDK beta versions to v1.0
@swig-wallet/lib
TransactionInstruction[]
instead of single instructions@swig-wallet/classic
now acts as a thin wrapper@solana/spl-token
to @solana-program/token
@swig-wallet/lib
and re-exported through the classic package.
@swig-wallet/classic
:
Ed25519Authority
, Secp256k1Authority
, etc.Actions
class is now imported from @swig-wallet/lib
(re-exported by @swig-wallet/classic
)Swig
class is now imported from @swig-wallet/lib
(re-exported by @swig-wallet/classic
)createSwig()
→ getCreateSwigInstruction()
addAuthorityInstruction()
→ getAddAuthorityInstructions()
signInstruction()
→ getSignInstructions()
removeAuthorityInstruction()
→ getRemoveAuthorityInstructions()
createSessionInstruction()
→ getCreateSessionInstructions()
createSubAccountInstruction()
→ getCreateSubAccountInstructions()
toggleSubAccountInstruction()
→ getToggleSubAccountInstructions()
withdrawFromSubAccountInstruction()
→ getWithdrawFromSubAccountSubAccountInstructions()
Ed25519Authority.fromPublicKey()
with createEd25519AuthorityInfo()
createSessionInstruction()
with getCreateSessionInstructions()
createSubAccountInstruction()
, toggleSubAccountInstruction()
, withdrawFromSubAccountInstruction()
Swig.create()
, Swig.fetch()
, Swig.fetchNullable()
(role, payer, ...)
to (swig, roleId, ...)