Swig TS — API References
    Preparing search index...

    Module @swig-wallet/coder - v1.3.0

    Swig TS SDK

    This module hosts the source for interacting with the Swig program in typescript.

    Enumerations

    AuthorityType
    NumericType
    Permission
    ProgramScopeType
    R1AuthenticationType
    SwigAccountDiscriminator
    SwigInstructionDiscriminator
    WebAuthnField

    Classes

    HuffmanEncoder

    Type Aliases

    AccountMetaLike
    AccountPayload
    ActionHeader
    AddAuthorityV1AuthorityPayload
    AddAuthorityV1AuthorityPayloadArgs
    AddAuthorityV1InstructionData
    AddAuthorityV1InstructionDataArgs
    CompactInstruction
    CreateSessionV1InstructionAuthorityPayload
    CreateSessionV1InstructionAuthorityPayloadArgs
    CreateSessionV1InstructionData
    CreateSessionV1InstructionDataArgs
    CreateV1InstructionData
    CreateV1InstructionDataArgs
    Ed25519SessionAuthorityData
    Position
    ProgramCurated
    ProgramLimit
    ProgramScope
    RemoveAuthorityV1AuthorityPayloadArgs
    RemoveAuthorityV1InstructionData
    RemoveAuthorityV1InstructionDataArgs
    Secp256k1CreateSessionAuthorityData
    Secp256k1SessionAuthorityData
    Secp256k1SessionAuthorityDataArgs
    Secp256r1CreateSessionAuthorityData
    Secp256r1SessionAuthorityData
    Secp256r1SessionAuthorityDataArgs
    Secp256r1SignatureInstructionData
    SignV1InstructionData
    SignV1InstructionDataArgs
    SolLimit
    SolRecurringLimit
    StakeLimit
    StakeRecurringLimit
    SubAccount
    SubAccountCreateV1InstructionData
    SubAccountCreateV1InstructionDataArgs
    SubAccountSignV1InstructionData
    SubAccountSignV1InstructionDataArgs
    SubAccountToggleV1InstructionData
    SubAccountToggleV1InstructionDataArgs
    SubAccountWithdrawV1InstructionData
    SubAccountWithdrawV1InstructionDataArgs
    SwigAccount
    SwigSubAccount
    TokenLimit
    TokenRecurringLimit

    Variables

    ACTION_HEADER_LENGTH
    POSITION_LENGTH

    Functions

    getAccountPayloadEncoder
    getAccountsPayloadEncoder
    getActionHeaderCodec
    getActionHeaderDecoder
    getActionHeaderEncoder
    getAddAuthorityV1AuthorityPayloadEncoder
    getAddAuthorityV1InstructionCodec
    getAuthorityTypeCodec
    getAuthorityTypeDecoder
    getAuthorityTypeEncoder
    getCompactInstructionDecoder
    getCompactInstructionEncoder
    getCompactInstructionsDecoder
    getCompactInstructionsEncoder
    getCreateSecp256k1SessionDecoder
    getCreateSecp256k1SessionEncoder
    getCreateSecp256r1SessionDecoder
    getCreateSecp256r1SessionEncoder
    getCreateSessionV1AuthorityPayloadCodec
    getCreateSessionV1InstructionCodec
    getCreateV1InstructionDataCodec
    getEd25519SessionDecoder
    getEd25519SessionEncoder
    getNumericTypeDecoder
    getNumericTypeEncoder
    getPermissionCodec
    getPermissionDecoder
    getPermissionEncoder
    getPositionDecoder
    getProgramCuratedCodec
    getProgramCuratedDecoder
    getProgramCuratedEncoder
    getProgramLimitCodec
    getProgramLimitDecoder
    getProgramLimitEncoder
    getProgramScopeDecoder
    getProgramScopeEncoder
    getProgramScopeTypeDecoder
    getProgramScopeTypeEncoder
    getRemoveAuthorityV1AuthorityPayloadEncoder
    getRemoveAuthorityV1InstructionCodec
    getSecp256k1SessionDecoder
    getSecp256k1SessionEncoder
    getSecp256r1SessionDecoder
    getSecp256r1SessionEncoder
    getSecp256r1SignatureInstructionDataEncoder
    getSignV1InstructionCodec
    getSolLimitCodec
    getSolLimitDecoder
    getSolLimitEncoder
    getSolRecurringLimitCodec
    getSolRecurringLimitDecoder
    getSolRecurringLimitEncoder
    getStakeLimitCodec
    getStakeLimitDecoder
    getStakeLimitEncoder
    getStakeRecurringLimitCodec
    getStakeRecurringLimitDecoder
    getStakeRecurringLimitEncoder
    getSubAccountCodec
    getSubAccountCreateV1InstructionDataCodec
    getSubAccountDecoder
    getSubAccountEncoder
    getSubAccountSignV1InstructionDataCodec
    getSubAccountToggleV1InstructionDataCodec
    getSubAccountWithdrawV1InstructionDataCodec
    getSwigAccountDiscriminatorDecoder
    getSwigAccountDiscriminatorEncoder
    getSwigCodec
    getSwigInstructionDiscriminatorDecoder
    getSwigInstructionDiscriminatorEncoder
    getSwigSubAccountCodec
    getTokenLimitCodec
    getTokenLimitDecoder
    getTokenLimitEncoder
    getTokenRecurringLimitCodec
    getTokenRecurringLimitDecoder
    getTokenRecurringLimitEncoder
    identifySwigInstruction