@solana/subscriptions 0.4.0-rc.1 → 0.4.0
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 +20 -12
- package/dist/index.cjs +668 -260
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +298 -68
- package/dist/index.d.ts +298 -68
- package/dist/index.js +647 -226
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -634,7 +634,6 @@ declare const SUBSCRIPTIONS_ERROR__MIGRATION_REQUIRED = 134;
|
|
|
634
634
|
declare const SUBSCRIPTIONS_ERROR__DELEGATION_ALREADY_EXISTS = 135;
|
|
635
635
|
declare const SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_AUTHORITY = 136;
|
|
636
636
|
declare const SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_TOO_MANY_ACCOUNTS = 137;
|
|
637
|
-
declare const SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_VALIDATION_ACCOUNT_MISSING = 138;
|
|
638
637
|
declare const SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_LIMIT = 300;
|
|
639
638
|
declare const SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_EXPIRY_IN_PAST = 301;
|
|
640
639
|
declare const SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_AMOUNT_ZERO = 302;
|
|
@@ -667,11 +666,13 @@ declare const SUBSCRIPTIONS_ERROR__PLAN_CLOSED = 516;
|
|
|
667
666
|
declare const SUBSCRIPTIONS_ERROR__ALREADY_SUBSCRIBED = 517;
|
|
668
667
|
declare const SUBSCRIPTIONS_ERROR__PLAN_ALREADY_EXISTS = 518;
|
|
669
668
|
declare const SUBSCRIPTIONS_ERROR__PLAN_TERMS_MISMATCH = 519;
|
|
669
|
+
declare const SUBSCRIPTIONS_ERROR__PLAN_END_TS_CANNOT_EXTEND = 520;
|
|
670
670
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_AUTHORITY = 600;
|
|
671
671
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_DATA = 601;
|
|
672
672
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_TAG = 602;
|
|
673
673
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_DISCRIMINATOR = 603;
|
|
674
|
-
|
|
674
|
+
declare const SUBSCRIPTIONS_ERROR__INVALID_SELF_PROGRAM = 604;
|
|
675
|
+
type SubscriptionsError = typeof SUBSCRIPTIONS_ERROR__ACCOUNT_NOT_WRITABLE | typeof SUBSCRIPTIONS_ERROR__ALREADY_SUBSCRIBED | typeof SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_LIMIT | typeof SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_PERIOD_LIMIT | typeof SUBSCRIPTIONS_ERROR__ARITHMETIC_OVERFLOW | typeof SUBSCRIPTIONS_ERROR__ARITHMETIC_UNDERFLOW | typeof SUBSCRIPTIONS_ERROR__ATA_OWNER_MISMATCH | typeof SUBSCRIPTIONS_ERROR__DELEGATION_ALREADY_EXISTS | typeof SUBSCRIPTIONS_ERROR__DELEGATION_EXPIRED | typeof SUBSCRIPTIONS_ERROR__DELEGATION_NOT_STARTED | typeof SUBSCRIPTIONS_ERROR__DELEGATION_VERSION_MISMATCH | typeof SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_AMOUNT_ZERO | typeof SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_EXPIRY_IN_PAST | typeof SUBSCRIPTIONS_ERROR__INVALID_ACCOUNT_DATA | typeof SUBSCRIPTIONS_ERROR__INVALID_ACCOUNT_DISCRIMINATOR | typeof SUBSCRIPTIONS_ERROR__INVALID_ADDRESS | typeof SUBSCRIPTIONS_ERROR__INVALID_AMOUNT | typeof SUBSCRIPTIONS_ERROR__INVALID_ASSOCIATED_TOKEN_ACCOUNT_DERIVED_ADDRESS | typeof SUBSCRIPTIONS_ERROR__INVALID_DELEGATE_PDA | typeof SUBSCRIPTIONS_ERROR__INVALID_END_TS | typeof SUBSCRIPTIONS_ERROR__INVALID_ESCROW_PDA | typeof SUBSCRIPTIONS_ERROR__INVALID_EVENT_AUTHORITY | typeof SUBSCRIPTIONS_ERROR__INVALID_EVENT_DATA | typeof SUBSCRIPTIONS_ERROR__INVALID_EVENT_DISCRIMINATOR | typeof SUBSCRIPTIONS_ERROR__INVALID_EVENT_TAG | typeof SUBSCRIPTIONS_ERROR__INVALID_HEADER_DATA | typeof SUBSCRIPTIONS_ERROR__INVALID_INSTRUCTION | typeof SUBSCRIPTIONS_ERROR__INVALID_INSTRUCTION_DATA | typeof SUBSCRIPTIONS_ERROR__INVALID_NUM_DESTINATIONS | typeof SUBSCRIPTIONS_ERROR__INVALID_PAYER_DATA | typeof SUBSCRIPTIONS_ERROR__INVALID_PERIOD_LENGTH | typeof SUBSCRIPTIONS_ERROR__INVALID_PLAN_PDA | typeof SUBSCRIPTIONS_ERROR__INVALID_PLAN_STATUS | typeof SUBSCRIPTIONS_ERROR__INVALID_SELF_PROGRAM | typeof SUBSCRIPTIONS_ERROR__INVALID_SUBSCRIPTION_AUTHORITY_PDA | typeof SUBSCRIPTIONS_ERROR__INVALID_SUBSCRIPTION_PDA | typeof SUBSCRIPTIONS_ERROR__INVALID_TOKEN2022_MINT_ACCOUNT_DATA | typeof SUBSCRIPTIONS_ERROR__INVALID_TOKEN2022_TOKEN_ACCOUNT_DATA | typeof SUBSCRIPTIONS_ERROR__INVALID_TOKEN_PROGRAM | typeof SUBSCRIPTIONS_ERROR__INVALID_TOKEN_SPL_MINT_ACCOUNT_DATA | typeof SUBSCRIPTIONS_ERROR__INVALID_TOKEN_SPL_TOKEN_ACCOUNT_DATA | typeof SUBSCRIPTIONS_ERROR__MIGRATION_REQUIRED | typeof SUBSCRIPTIONS_ERROR__MINT_HAS_CONFIDENTIAL_TRANSFER | typeof SUBSCRIPTIONS_ERROR__MINT_HAS_MINT_CLOSE_AUTHORITY | typeof SUBSCRIPTIONS_ERROR__MINT_HAS_NON_TRANSFERABLE | typeof SUBSCRIPTIONS_ERROR__MINT_HAS_PAUSABLE | typeof SUBSCRIPTIONS_ERROR__MINT_HAS_PERMANENT_DELEGATE | typeof SUBSCRIPTIONS_ERROR__MINT_HAS_TRANSFER_FEE | typeof SUBSCRIPTIONS_ERROR__MINT_HAS_TRANSFER_HOOK | typeof SUBSCRIPTIONS_ERROR__MINT_MISMATCH | typeof SUBSCRIPTIONS_ERROR__NOT_ENOUGH_ACCOUNT_KEYS | typeof SUBSCRIPTIONS_ERROR__NOT_PLAN_OWNER | typeof SUBSCRIPTIONS_ERROR__NOT_SIGNER | typeof SUBSCRIPTIONS_ERROR__NOT_SYSTEM_PROGRAM | typeof SUBSCRIPTIONS_ERROR__PERIOD_NOT_ELAPSED | typeof SUBSCRIPTIONS_ERROR__PLAN_ALREADY_EXISTS | typeof SUBSCRIPTIONS_ERROR__PLAN_CLOSED | typeof SUBSCRIPTIONS_ERROR__PLAN_END_TS_CANNOT_EXTEND | typeof SUBSCRIPTIONS_ERROR__PLAN_EXPIRED | typeof SUBSCRIPTIONS_ERROR__PLAN_IMMUTABLE_AFTER_SUNSET | typeof SUBSCRIPTIONS_ERROR__PLAN_NOT_EXPIRED | typeof SUBSCRIPTIONS_ERROR__PLAN_SUNSET | typeof SUBSCRIPTIONS_ERROR__PLAN_TERMS_MISMATCH | typeof SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_AMOUNT_ZERO | typeof SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_ON_LANDING_REQUIRES_EXPIRY | typeof SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_GREATER_THAN_EXPIRY | typeof SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_IN_PAST | typeof SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_AUTHORITY | typeof SUBSCRIPTIONS_ERROR__SUBSCRIPTION_ALREADY_CANCELLED | typeof SUBSCRIPTIONS_ERROR__SUBSCRIPTION_CANCELLED | typeof SUBSCRIPTIONS_ERROR__SUBSCRIPTION_NOT_CANCELLED | typeof SUBSCRIPTIONS_ERROR__SUBSCRIPTION_PLAN_MISMATCH | typeof SUBSCRIPTIONS_ERROR__SUNSET_REQUIRES_END_TS | typeof SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_TOO_MANY_ACCOUNTS | typeof SUBSCRIPTIONS_ERROR__UNAUTHORIZED | typeof SUBSCRIPTIONS_ERROR__UNAUTHORIZED_DESTINATION;
|
|
675
676
|
declare function getSubscriptionsErrorMessage(code: SubscriptionsError): string;
|
|
676
677
|
declare function isSubscriptionsError<TProgramErrorCode extends SubscriptionsError>(error: unknown, transactionMessage: {
|
|
677
678
|
instructions: Record<number, {
|
|
@@ -716,7 +717,8 @@ declare enum SubscriptionsInstruction {
|
|
|
716
717
|
CancelSubscription = 12,
|
|
717
718
|
ResumeSubscription = 13,
|
|
718
719
|
RevokeSubscriptionAuthority = 14,
|
|
719
|
-
RevokeAbandonedDelegation = 15
|
|
720
|
+
RevokeAbandonedDelegation = 15,
|
|
721
|
+
RevokeAbandonedSubscription = 16
|
|
720
722
|
}
|
|
721
723
|
declare function identifySubscriptionsInstruction(instruction: {
|
|
722
724
|
data: ReadonlyUint8Array;
|
|
@@ -753,7 +755,9 @@ type ParsedSubscriptionsInstruction<TProgram extends string = 'De1egAFMkMWZSN5rY
|
|
|
753
755
|
instructionType: SubscriptionsInstruction.RevokeSubscriptionAuthority;
|
|
754
756
|
} & ParsedRevokeSubscriptionAuthorityInstruction<TProgram>) | ({
|
|
755
757
|
instructionType: SubscriptionsInstruction.RevokeAbandonedDelegation;
|
|
756
|
-
} & ParsedRevokeAbandonedDelegationInstruction<TProgram>)
|
|
758
|
+
} & ParsedRevokeAbandonedDelegationInstruction<TProgram>) | ({
|
|
759
|
+
instructionType: SubscriptionsInstruction.RevokeAbandonedSubscription;
|
|
760
|
+
} & ParsedRevokeAbandonedSubscriptionInstruction<TProgram>);
|
|
757
761
|
declare function parseSubscriptionsInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSubscriptionsInstruction<TProgram>;
|
|
758
762
|
type SubscriptionsPlugin$1 = {
|
|
759
763
|
accounts: SubscriptionsPluginAccounts;
|
|
@@ -773,18 +777,19 @@ type SubscriptionsPluginInstructions$1 = {
|
|
|
773
777
|
createFixedDelegation: (input: CreateFixedDelegationInput$1) => ReturnType<typeof getCreateFixedDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
774
778
|
createRecurringDelegation: (input: CreateRecurringDelegationInput$1) => ReturnType<typeof getCreateRecurringDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
775
779
|
revokeDelegation: (input: RevokeDelegationInput$1) => ReturnType<typeof getRevokeDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
776
|
-
transferFixed: (input:
|
|
777
|
-
transferRecurring: (input:
|
|
780
|
+
transferFixed: (input: TransferFixedAsyncInput) => ReturnType<typeof getTransferFixedInstructionAsync> & SelfPlanAndSendFunctions;
|
|
781
|
+
transferRecurring: (input: TransferRecurringAsyncInput) => ReturnType<typeof getTransferRecurringInstructionAsync> & SelfPlanAndSendFunctions;
|
|
778
782
|
closeSubscriptionAuthority: (input: CloseSubscriptionAuthorityInput$1) => ReturnType<typeof getCloseSubscriptionAuthorityInstruction> & SelfPlanAndSendFunctions;
|
|
779
783
|
createPlan: (input: CreatePlanInput$1) => ReturnType<typeof getCreatePlanInstruction> & SelfPlanAndSendFunctions;
|
|
780
|
-
updatePlan: (input:
|
|
784
|
+
updatePlan: (input: UpdatePlanAsyncInput) => ReturnType<typeof getUpdatePlanInstructionAsync> & SelfPlanAndSendFunctions;
|
|
781
785
|
deletePlan: (input: DeletePlanInput$1) => ReturnType<typeof getDeletePlanInstruction> & SelfPlanAndSendFunctions;
|
|
782
|
-
transferSubscription: (input:
|
|
786
|
+
transferSubscription: (input: TransferSubscriptionAsyncInput) => ReturnType<typeof getTransferSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
|
|
783
787
|
subscribe: (input: SubscribeAsyncInput) => ReturnType<typeof getSubscribeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
784
788
|
cancelSubscription: (input: CancelSubscriptionAsyncInput) => ReturnType<typeof getCancelSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
|
|
785
789
|
resumeSubscription: (input: ResumeSubscriptionAsyncInput) => ReturnType<typeof getResumeSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
|
|
786
|
-
revokeSubscriptionAuthority: (input:
|
|
790
|
+
revokeSubscriptionAuthority: (input: RevokeSubscriptionAuthorityAsyncInput) => ReturnType<typeof getRevokeSubscriptionAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
|
|
787
791
|
revokeAbandonedDelegation: (input: RevokeAbandonedDelegationInput) => ReturnType<typeof getRevokeAbandonedDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
792
|
+
revokeAbandonedSubscription: (input: RevokeAbandonedSubscriptionInput) => ReturnType<typeof getRevokeAbandonedSubscriptionInstruction> & SelfPlanAndSendFunctions;
|
|
788
793
|
};
|
|
789
794
|
type SubscriptionsPluginPdas = {
|
|
790
795
|
fixedDelegation: typeof findFixedDelegationPda;
|
|
@@ -806,7 +811,7 @@ type SubscriptionsPluginRequirements$1 = ClientWithRpc<GetAccountInfoApi & GetMu
|
|
|
806
811
|
|
|
807
812
|
declare const CANCEL_SUBSCRIPTION_DISCRIMINATOR = 12;
|
|
808
813
|
declare function getCancelSubscriptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
809
|
-
type CancelSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountSubscriber extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountSubscriptionPda extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> =
|
|
814
|
+
type CancelSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountSubscriber extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountSubscriptionPda extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountSelfProgram extends string | AccountMeta<string> = 'De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
810
815
|
TAccountSubscriber extends string ? ReadonlySignerAccount<TAccountSubscriber> & AccountSignerMeta<TAccountSubscriber> : TAccountSubscriber,
|
|
811
816
|
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
812
817
|
TAccountSubscriptionPda extends string ? WritableAccount<TAccountSubscriptionPda> : TAccountSubscriptionPda,
|
|
@@ -844,7 +849,7 @@ type CancelSubscriptionInput$1<TAccountSubscriber extends string = string, TAcco
|
|
|
844
849
|
/** The subscription PDA being cancelled */
|
|
845
850
|
subscriptionPda: Address<TAccountSubscriptionPda>;
|
|
846
851
|
/** The event authority PDA */
|
|
847
|
-
eventAuthority
|
|
852
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
848
853
|
/** This program (for self-CPI) */
|
|
849
854
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
850
855
|
};
|
|
@@ -879,9 +884,10 @@ declare function parseCancelSubscriptionInstruction<TProgram extends string, TAc
|
|
|
879
884
|
|
|
880
885
|
declare const CLOSE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR = 6;
|
|
881
886
|
declare function getCloseSubscriptionAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
882
|
-
type CloseSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
887
|
+
type CloseSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> | undefined = undefined, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
883
888
|
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
884
889
|
TAccountSubscriptionAuthority extends string ? WritableAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
890
|
+
...(TAccountReceiver extends undefined ? [] : [TAccountReceiver extends string ? WritableAccount<TAccountReceiver> : TAccountReceiver]),
|
|
885
891
|
...TRemainingAccounts
|
|
886
892
|
]>;
|
|
887
893
|
type CloseSubscriptionAuthorityInstructionData = {
|
|
@@ -891,15 +897,17 @@ type CloseSubscriptionAuthorityInstructionDataArgs = {};
|
|
|
891
897
|
declare function getCloseSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<CloseSubscriptionAuthorityInstructionDataArgs>;
|
|
892
898
|
declare function getCloseSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<CloseSubscriptionAuthorityInstructionData>;
|
|
893
899
|
declare function getCloseSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<CloseSubscriptionAuthorityInstructionDataArgs, CloseSubscriptionAuthorityInstructionData>;
|
|
894
|
-
type CloseSubscriptionAuthorityInput$1<TAccountUser extends string = string, TAccountSubscriptionAuthority extends string = string> = {
|
|
900
|
+
type CloseSubscriptionAuthorityInput$1<TAccountUser extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountReceiver extends string = string> = {
|
|
895
901
|
/** The user who owns the SubscriptionAuthority PDA (receives rent) */
|
|
896
902
|
user: TransactionSigner<TAccountUser>;
|
|
897
903
|
/** The SubscriptionAuthority PDA to close */
|
|
898
904
|
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
905
|
+
/** Optional rent recipient, required when the recorded payer differs from the user. Must match the stored payer. */
|
|
906
|
+
receiver?: Address<TAccountReceiver>;
|
|
899
907
|
};
|
|
900
|
-
declare function getCloseSubscriptionAuthorityInstruction<TAccountUser extends string, TAccountSubscriptionAuthority extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CloseSubscriptionAuthorityInput$1<TAccountUser, TAccountSubscriptionAuthority>, config?: {
|
|
908
|
+
declare function getCloseSubscriptionAuthorityInstruction<TAccountUser extends string, TAccountSubscriptionAuthority extends string, TAccountReceiver extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CloseSubscriptionAuthorityInput$1<TAccountUser, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
|
|
901
909
|
programAddress?: TProgramAddress;
|
|
902
|
-
}): CloseSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountSubscriptionAuthority>;
|
|
910
|
+
}): CloseSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountSubscriptionAuthority, TAccountReceiver>;
|
|
903
911
|
type ParsedCloseSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
904
912
|
programAddress: Address<TProgram>;
|
|
905
913
|
accounts: {
|
|
@@ -907,6 +915,8 @@ type ParsedCloseSubscriptionAuthorityInstruction<TProgram extends string = typeo
|
|
|
907
915
|
user: TAccountMetas[0];
|
|
908
916
|
/** The SubscriptionAuthority PDA to close */
|
|
909
917
|
subscriptionAuthority: TAccountMetas[1];
|
|
918
|
+
/** Optional rent recipient, required when the recorded payer differs from the user. Must match the stored payer. */
|
|
919
|
+
receiver?: TAccountMetas[2] | undefined;
|
|
910
920
|
};
|
|
911
921
|
data: CloseSubscriptionAuthorityInstructionData;
|
|
912
922
|
};
|
|
@@ -922,12 +932,15 @@ declare function parseCloseSubscriptionAuthorityInstruction<TProgram extends str
|
|
|
922
932
|
|
|
923
933
|
declare const CREATE_FIXED_DELEGATION_DISCRIMINATOR = 1;
|
|
924
934
|
declare function getCreateFixedDelegationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
925
|
-
type CreateFixedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountDelegator extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegationAccount extends string | AccountMeta<string> = string, TAccountDelegatee extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
935
|
+
type CreateFixedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountDelegator extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegationAccount extends string | AccountMeta<string> = string, TAccountDelegatee extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountPayer extends string | AccountMeta<string> | undefined = undefined, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
926
936
|
TAccountDelegator extends string ? WritableSignerAccount<TAccountDelegator> & AccountSignerMeta<TAccountDelegator> : TAccountDelegator,
|
|
927
937
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
928
938
|
TAccountDelegationAccount extends string ? WritableAccount<TAccountDelegationAccount> : TAccountDelegationAccount,
|
|
929
939
|
TAccountDelegatee extends string ? ReadonlyAccount<TAccountDelegatee> : TAccountDelegatee,
|
|
930
940
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
941
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
942
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
943
|
+
]),
|
|
931
944
|
...TRemainingAccounts
|
|
932
945
|
]>;
|
|
933
946
|
type CreateFixedDelegationInstructionData = {
|
|
@@ -940,7 +953,7 @@ type CreateFixedDelegationInstructionDataArgs = {
|
|
|
940
953
|
declare function getCreateFixedDelegationInstructionDataEncoder(): FixedSizeEncoder<CreateFixedDelegationInstructionDataArgs>;
|
|
941
954
|
declare function getCreateFixedDelegationInstructionDataDecoder(): FixedSizeDecoder<CreateFixedDelegationInstructionData>;
|
|
942
955
|
declare function getCreateFixedDelegationInstructionDataCodec(): FixedSizeCodec<CreateFixedDelegationInstructionDataArgs, CreateFixedDelegationInstructionData>;
|
|
943
|
-
type CreateFixedDelegationInput$1<TAccountDelegator extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegationAccount extends string = string, TAccountDelegatee extends string = string, TAccountSystemProgram extends string = string> = {
|
|
956
|
+
type CreateFixedDelegationInput$1<TAccountDelegator extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegationAccount extends string = string, TAccountDelegatee extends string = string, TAccountSystemProgram extends string = string, TAccountPayer extends string = string> = {
|
|
944
957
|
/** The user creating the delegation */
|
|
945
958
|
delegator: TransactionSigner<TAccountDelegator>;
|
|
946
959
|
/** The subscription_authority PDA for this token */
|
|
@@ -951,11 +964,13 @@ type CreateFixedDelegationInput$1<TAccountDelegator extends string = string, TAc
|
|
|
951
964
|
delegatee: Address<TAccountDelegatee>;
|
|
952
965
|
/** The system program */
|
|
953
966
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
967
|
+
/** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
|
|
968
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
954
969
|
fixedDelegation: CreateFixedDelegationInstructionDataArgs['fixedDelegation'];
|
|
955
970
|
};
|
|
956
|
-
declare function getCreateFixedDelegationInstruction<TAccountDelegator extends string, TAccountSubscriptionAuthority extends string, TAccountDelegationAccount extends string, TAccountDelegatee extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreateFixedDelegationInput$1<TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram>, config?: {
|
|
971
|
+
declare function getCreateFixedDelegationInstruction<TAccountDelegator extends string, TAccountSubscriptionAuthority extends string, TAccountDelegationAccount extends string, TAccountDelegatee extends string, TAccountSystemProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreateFixedDelegationInput$1<TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>, config?: {
|
|
957
972
|
programAddress?: TProgramAddress;
|
|
958
|
-
}): CreateFixedDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram>;
|
|
973
|
+
}): CreateFixedDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>;
|
|
959
974
|
type ParsedCreateFixedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
960
975
|
programAddress: Address<TProgram>;
|
|
961
976
|
accounts: {
|
|
@@ -969,6 +984,8 @@ type ParsedCreateFixedDelegationInstruction<TProgram extends string = typeof SUB
|
|
|
969
984
|
delegatee: TAccountMetas[3];
|
|
970
985
|
/** The system program */
|
|
971
986
|
systemProgram: TAccountMetas[4];
|
|
987
|
+
/** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
|
|
988
|
+
payer?: TAccountMetas[5] | undefined;
|
|
972
989
|
};
|
|
973
990
|
data: CreateFixedDelegationInstructionData;
|
|
974
991
|
};
|
|
@@ -1046,12 +1063,15 @@ declare function parseCreatePlanInstruction<TProgram extends string, TAccountMet
|
|
|
1046
1063
|
|
|
1047
1064
|
declare const CREATE_RECURRING_DELEGATION_DISCRIMINATOR = 2;
|
|
1048
1065
|
declare function getCreateRecurringDelegationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1049
|
-
type CreateRecurringDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountDelegator extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegationAccount extends string | AccountMeta<string> = string, TAccountDelegatee extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1066
|
+
type CreateRecurringDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountDelegator extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegationAccount extends string | AccountMeta<string> = string, TAccountDelegatee extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountPayer extends string | AccountMeta<string> | undefined = undefined, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1050
1067
|
TAccountDelegator extends string ? WritableSignerAccount<TAccountDelegator> & AccountSignerMeta<TAccountDelegator> : TAccountDelegator,
|
|
1051
1068
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1052
1069
|
TAccountDelegationAccount extends string ? WritableAccount<TAccountDelegationAccount> : TAccountDelegationAccount,
|
|
1053
1070
|
TAccountDelegatee extends string ? ReadonlyAccount<TAccountDelegatee> : TAccountDelegatee,
|
|
1054
1071
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1072
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
1073
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
1074
|
+
]),
|
|
1055
1075
|
...TRemainingAccounts
|
|
1056
1076
|
]>;
|
|
1057
1077
|
type CreateRecurringDelegationInstructionData = {
|
|
@@ -1064,7 +1084,7 @@ type CreateRecurringDelegationInstructionDataArgs = {
|
|
|
1064
1084
|
declare function getCreateRecurringDelegationInstructionDataEncoder(): FixedSizeEncoder<CreateRecurringDelegationInstructionDataArgs>;
|
|
1065
1085
|
declare function getCreateRecurringDelegationInstructionDataDecoder(): FixedSizeDecoder<CreateRecurringDelegationInstructionData>;
|
|
1066
1086
|
declare function getCreateRecurringDelegationInstructionDataCodec(): FixedSizeCodec<CreateRecurringDelegationInstructionDataArgs, CreateRecurringDelegationInstructionData>;
|
|
1067
|
-
type CreateRecurringDelegationInput$1<TAccountDelegator extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegationAccount extends string = string, TAccountDelegatee extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1087
|
+
type CreateRecurringDelegationInput$1<TAccountDelegator extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegationAccount extends string = string, TAccountDelegatee extends string = string, TAccountSystemProgram extends string = string, TAccountPayer extends string = string> = {
|
|
1068
1088
|
/** The user creating the delegation */
|
|
1069
1089
|
delegator: TransactionSigner<TAccountDelegator>;
|
|
1070
1090
|
/** The subscription_authority PDA for this token */
|
|
@@ -1075,11 +1095,13 @@ type CreateRecurringDelegationInput$1<TAccountDelegator extends string = string,
|
|
|
1075
1095
|
delegatee: Address<TAccountDelegatee>;
|
|
1076
1096
|
/** The system program */
|
|
1077
1097
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1098
|
+
/** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
|
|
1099
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1078
1100
|
recurringDelegation: CreateRecurringDelegationInstructionDataArgs['recurringDelegation'];
|
|
1079
1101
|
};
|
|
1080
|
-
declare function getCreateRecurringDelegationInstruction<TAccountDelegator extends string, TAccountSubscriptionAuthority extends string, TAccountDelegationAccount extends string, TAccountDelegatee extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreateRecurringDelegationInput$1<TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram>, config?: {
|
|
1102
|
+
declare function getCreateRecurringDelegationInstruction<TAccountDelegator extends string, TAccountSubscriptionAuthority extends string, TAccountDelegationAccount extends string, TAccountDelegatee extends string, TAccountSystemProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreateRecurringDelegationInput$1<TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>, config?: {
|
|
1081
1103
|
programAddress?: TProgramAddress;
|
|
1082
|
-
}): CreateRecurringDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram>;
|
|
1104
|
+
}): CreateRecurringDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>;
|
|
1083
1105
|
type ParsedCreateRecurringDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1084
1106
|
programAddress: Address<TProgram>;
|
|
1085
1107
|
accounts: {
|
|
@@ -1093,6 +1115,8 @@ type ParsedCreateRecurringDelegationInstruction<TProgram extends string = typeof
|
|
|
1093
1115
|
delegatee: TAccountMetas[3];
|
|
1094
1116
|
/** The system program */
|
|
1095
1117
|
systemProgram: TAccountMetas[4];
|
|
1118
|
+
/** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
|
|
1119
|
+
payer?: TAccountMetas[5] | undefined;
|
|
1096
1120
|
};
|
|
1097
1121
|
data: CreateRecurringDelegationInstructionData;
|
|
1098
1122
|
};
|
|
@@ -1151,13 +1175,16 @@ declare function parseDeletePlanInstruction<TProgram extends string, TAccountMet
|
|
|
1151
1175
|
|
|
1152
1176
|
declare const INIT_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR = 0;
|
|
1153
1177
|
declare function getInitSubscriptionAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1154
|
-
type InitSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountUserAta extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1178
|
+
type InitSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountUserAta extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> | undefined = undefined, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1155
1179
|
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
1156
1180
|
TAccountSubscriptionAuthority extends string ? WritableAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1157
1181
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1158
1182
|
TAccountUserAta extends string ? WritableAccount<TAccountUserAta> : TAccountUserAta,
|
|
1159
1183
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1160
1184
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1185
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
1186
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
1187
|
+
]),
|
|
1161
1188
|
...TRemainingAccounts
|
|
1162
1189
|
]>;
|
|
1163
1190
|
type InitSubscriptionAuthorityInstructionData = {
|
|
@@ -1167,7 +1194,7 @@ type InitSubscriptionAuthorityInstructionDataArgs = {};
|
|
|
1167
1194
|
declare function getInitSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<InitSubscriptionAuthorityInstructionDataArgs>;
|
|
1168
1195
|
declare function getInitSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<InitSubscriptionAuthorityInstructionData>;
|
|
1169
1196
|
declare function getInitSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<InitSubscriptionAuthorityInstructionDataArgs, InitSubscriptionAuthorityInstructionData>;
|
|
1170
|
-
type InitSubscriptionAuthorityAsyncInput<TAccountOwner extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountTokenMint extends string = string, TAccountUserAta extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1197
|
+
type InitSubscriptionAuthorityAsyncInput<TAccountOwner extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountTokenMint extends string = string, TAccountUserAta extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountPayer extends string = string> = {
|
|
1171
1198
|
/** The owner of the subscription-authority program */
|
|
1172
1199
|
owner: TransactionSigner<TAccountOwner>;
|
|
1173
1200
|
/** The subscription_authority PDA that will be the delegate instance for this token */
|
|
@@ -1180,11 +1207,13 @@ type InitSubscriptionAuthorityAsyncInput<TAccountOwner extends string = string,
|
|
|
1180
1207
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1181
1208
|
/** Token program */
|
|
1182
1209
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1210
|
+
/** Optional sponsor that funds the account rent. Defaults to the owner/signer when omitted. */
|
|
1211
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1183
1212
|
};
|
|
1184
|
-
declare function getInitSubscriptionAuthorityInstructionAsync<TAccountOwner extends string, TAccountSubscriptionAuthority extends string, TAccountTokenMint extends string, TAccountUserAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: InitSubscriptionAuthorityAsyncInput<TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram>, config?: {
|
|
1213
|
+
declare function getInitSubscriptionAuthorityInstructionAsync<TAccountOwner extends string, TAccountSubscriptionAuthority extends string, TAccountTokenMint extends string, TAccountUserAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: InitSubscriptionAuthorityAsyncInput<TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>, config?: {
|
|
1185
1214
|
programAddress?: TProgramAddress;
|
|
1186
|
-
}): Promise<InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram>>;
|
|
1187
|
-
type InitSubscriptionAuthorityInput$1<TAccountOwner extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountTokenMint extends string = string, TAccountUserAta extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1215
|
+
}): Promise<InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>>;
|
|
1216
|
+
type InitSubscriptionAuthorityInput$1<TAccountOwner extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountTokenMint extends string = string, TAccountUserAta extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountPayer extends string = string> = {
|
|
1188
1217
|
/** The owner of the subscription-authority program */
|
|
1189
1218
|
owner: TransactionSigner<TAccountOwner>;
|
|
1190
1219
|
/** The subscription_authority PDA that will be the delegate instance for this token */
|
|
@@ -1197,10 +1226,12 @@ type InitSubscriptionAuthorityInput$1<TAccountOwner extends string = string, TAc
|
|
|
1197
1226
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1198
1227
|
/** Token program */
|
|
1199
1228
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1229
|
+
/** Optional sponsor that funds the account rent. Defaults to the owner/signer when omitted. */
|
|
1230
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1200
1231
|
};
|
|
1201
|
-
declare function getInitSubscriptionAuthorityInstruction<TAccountOwner extends string, TAccountSubscriptionAuthority extends string, TAccountTokenMint extends string, TAccountUserAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: InitSubscriptionAuthorityInput$1<TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram>, config?: {
|
|
1232
|
+
declare function getInitSubscriptionAuthorityInstruction<TAccountOwner extends string, TAccountSubscriptionAuthority extends string, TAccountTokenMint extends string, TAccountUserAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: InitSubscriptionAuthorityInput$1<TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>, config?: {
|
|
1202
1233
|
programAddress?: TProgramAddress;
|
|
1203
|
-
}): InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram>;
|
|
1234
|
+
}): InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>;
|
|
1204
1235
|
type ParsedInitSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1205
1236
|
programAddress: Address<TProgram>;
|
|
1206
1237
|
accounts: {
|
|
@@ -1216,6 +1247,8 @@ type ParsedInitSubscriptionAuthorityInstruction<TProgram extends string = typeof
|
|
|
1216
1247
|
systemProgram: TAccountMetas[4];
|
|
1217
1248
|
/** Token program */
|
|
1218
1249
|
tokenProgram: TAccountMetas[5];
|
|
1250
|
+
/** Optional sponsor that funds the account rent. Defaults to the owner/signer when omitted. */
|
|
1251
|
+
payer?: TAccountMetas[6] | undefined;
|
|
1219
1252
|
};
|
|
1220
1253
|
data: InitSubscriptionAuthorityInstructionData;
|
|
1221
1254
|
};
|
|
@@ -1231,10 +1264,11 @@ declare function parseInitSubscriptionAuthorityInstruction<TProgram extends stri
|
|
|
1231
1264
|
|
|
1232
1265
|
declare const RESUME_SUBSCRIPTION_DISCRIMINATOR = 13;
|
|
1233
1266
|
declare function getResumeSubscriptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1234
|
-
type ResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountSubscriber extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountSubscriptionPda extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> =
|
|
1267
|
+
type ResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountSubscriber extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountSubscriptionPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountSelfProgram extends string | AccountMeta<string> = 'De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1235
1268
|
TAccountSubscriber extends string ? ReadonlySignerAccount<TAccountSubscriber> & AccountSignerMeta<TAccountSubscriber> : TAccountSubscriber,
|
|
1236
1269
|
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
1237
1270
|
TAccountSubscriptionPda extends string ? WritableAccount<TAccountSubscriptionPda> : TAccountSubscriptionPda,
|
|
1271
|
+
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1238
1272
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
1239
1273
|
TAccountSelfProgram extends string ? ReadonlyAccount<TAccountSelfProgram> : TAccountSelfProgram,
|
|
1240
1274
|
...TRemainingAccounts
|
|
@@ -1246,36 +1280,40 @@ type ResumeSubscriptionInstructionDataArgs = {};
|
|
|
1246
1280
|
declare function getResumeSubscriptionInstructionDataEncoder(): FixedSizeEncoder<ResumeSubscriptionInstructionDataArgs>;
|
|
1247
1281
|
declare function getResumeSubscriptionInstructionDataDecoder(): FixedSizeDecoder<ResumeSubscriptionInstructionData>;
|
|
1248
1282
|
declare function getResumeSubscriptionInstructionDataCodec(): FixedSizeCodec<ResumeSubscriptionInstructionDataArgs, ResumeSubscriptionInstructionData>;
|
|
1249
|
-
type ResumeSubscriptionAsyncInput<TAccountSubscriber extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1283
|
+
type ResumeSubscriptionAsyncInput<TAccountSubscriber extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1250
1284
|
/** The subscriber resuming the subscription */
|
|
1251
1285
|
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
1252
1286
|
/** The plan PDA for the subscription */
|
|
1253
1287
|
planPda: Address<TAccountPlanPda>;
|
|
1254
1288
|
/** The subscription PDA being resumed */
|
|
1255
1289
|
subscriptionPda?: Address<TAccountSubscriptionPda>;
|
|
1290
|
+
/** The subscriber's SubscriptionAuthority PDA for the plan's mint */
|
|
1291
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1256
1292
|
/** The event authority PDA */
|
|
1257
1293
|
eventAuthority?: Address<TAccountEventAuthority>;
|
|
1258
1294
|
/** This program (for self-CPI) */
|
|
1259
1295
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1260
1296
|
};
|
|
1261
|
-
declare function getResumeSubscriptionInstructionAsync<TAccountSubscriber extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: ResumeSubscriptionAsyncInput<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1297
|
+
declare function getResumeSubscriptionInstructionAsync<TAccountSubscriber extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountSubscriptionAuthority extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: ResumeSubscriptionAsyncInput<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1262
1298
|
programAddress?: TProgramAddress;
|
|
1263
|
-
}): Promise<ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
1264
|
-
type ResumeSubscriptionInput$1<TAccountSubscriber extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1299
|
+
}): Promise<ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
1300
|
+
type ResumeSubscriptionInput$1<TAccountSubscriber extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1265
1301
|
/** The subscriber resuming the subscription */
|
|
1266
1302
|
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
1267
1303
|
/** The plan PDA for the subscription */
|
|
1268
1304
|
planPda: Address<TAccountPlanPda>;
|
|
1269
1305
|
/** The subscription PDA being resumed */
|
|
1270
1306
|
subscriptionPda: Address<TAccountSubscriptionPda>;
|
|
1307
|
+
/** The subscriber's SubscriptionAuthority PDA for the plan's mint */
|
|
1308
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1271
1309
|
/** The event authority PDA */
|
|
1272
|
-
eventAuthority
|
|
1310
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1273
1311
|
/** This program (for self-CPI) */
|
|
1274
1312
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1275
1313
|
};
|
|
1276
|
-
declare function getResumeSubscriptionInstruction<TAccountSubscriber extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: ResumeSubscriptionInput$1<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1314
|
+
declare function getResumeSubscriptionInstruction<TAccountSubscriber extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountSubscriptionAuthority extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: ResumeSubscriptionInput$1<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1277
1315
|
programAddress?: TProgramAddress;
|
|
1278
|
-
}): ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>;
|
|
1316
|
+
}): ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>;
|
|
1279
1317
|
type ParsedResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1280
1318
|
programAddress: Address<TProgram>;
|
|
1281
1319
|
accounts: {
|
|
@@ -1285,10 +1323,12 @@ type ParsedResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCR
|
|
|
1285
1323
|
planPda: TAccountMetas[1];
|
|
1286
1324
|
/** The subscription PDA being resumed */
|
|
1287
1325
|
subscriptionPda: TAccountMetas[2];
|
|
1326
|
+
/** The subscriber's SubscriptionAuthority PDA for the plan's mint */
|
|
1327
|
+
subscriptionAuthority: TAccountMetas[3];
|
|
1288
1328
|
/** The event authority PDA */
|
|
1289
|
-
eventAuthority: TAccountMetas[
|
|
1329
|
+
eventAuthority: TAccountMetas[4];
|
|
1290
1330
|
/** This program (for self-CPI) */
|
|
1291
|
-
selfProgram: TAccountMetas[
|
|
1331
|
+
selfProgram: TAccountMetas[5];
|
|
1292
1332
|
};
|
|
1293
1333
|
data: ResumeSubscriptionInstructionData;
|
|
1294
1334
|
};
|
|
@@ -1342,6 +1382,59 @@ type ParsedRevokeAbandonedDelegationInstruction<TProgram extends string = typeof
|
|
|
1342
1382
|
};
|
|
1343
1383
|
declare function parseRevokeAbandonedDelegationInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeAbandonedDelegationInstruction<TProgram, TAccountMetas>;
|
|
1344
1384
|
|
|
1385
|
+
/**
|
|
1386
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1387
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1388
|
+
* to add features, then rerun Codama to update it.
|
|
1389
|
+
*
|
|
1390
|
+
* @see https://github.com/codama-idl/codama
|
|
1391
|
+
*/
|
|
1392
|
+
|
|
1393
|
+
declare const REVOKE_ABANDONED_SUBSCRIPTION_DISCRIMINATOR = 16;
|
|
1394
|
+
declare function getRevokeAbandonedSubscriptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1395
|
+
type RevokeAbandonedSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountSubscriptionAccount extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1396
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
1397
|
+
TAccountSubscriptionAccount extends string ? WritableAccount<TAccountSubscriptionAccount> : TAccountSubscriptionAccount,
|
|
1398
|
+
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1399
|
+
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
1400
|
+
...TRemainingAccounts
|
|
1401
|
+
]>;
|
|
1402
|
+
type RevokeAbandonedSubscriptionInstructionData = {
|
|
1403
|
+
discriminator: number;
|
|
1404
|
+
};
|
|
1405
|
+
type RevokeAbandonedSubscriptionInstructionDataArgs = {};
|
|
1406
|
+
declare function getRevokeAbandonedSubscriptionInstructionDataEncoder(): FixedSizeEncoder<RevokeAbandonedSubscriptionInstructionDataArgs>;
|
|
1407
|
+
declare function getRevokeAbandonedSubscriptionInstructionDataDecoder(): FixedSizeDecoder<RevokeAbandonedSubscriptionInstructionData>;
|
|
1408
|
+
declare function getRevokeAbandonedSubscriptionInstructionDataCodec(): FixedSizeCodec<RevokeAbandonedSubscriptionInstructionDataArgs, RevokeAbandonedSubscriptionInstructionData>;
|
|
1409
|
+
type RevokeAbandonedSubscriptionInput<TAccountPayer extends string = string, TAccountSubscriptionAccount extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountPlanPda extends string = string> = {
|
|
1410
|
+
/** The recorded payer reclaiming rent */
|
|
1411
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
1412
|
+
/** The abandoned subscription PDA to close */
|
|
1413
|
+
subscriptionAccount: Address<TAccountSubscriptionAccount>;
|
|
1414
|
+
/** The subscriber's recorded SubscriptionAuthority PDA for the plan's mint (may be closed) */
|
|
1415
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1416
|
+
/** The plan the subscription belongs to; provides the mint */
|
|
1417
|
+
planPda: Address<TAccountPlanPda>;
|
|
1418
|
+
};
|
|
1419
|
+
declare function getRevokeAbandonedSubscriptionInstruction<TAccountPayer extends string, TAccountSubscriptionAccount extends string, TAccountSubscriptionAuthority extends string, TAccountPlanPda extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeAbandonedSubscriptionInput<TAccountPayer, TAccountSubscriptionAccount, TAccountSubscriptionAuthority, TAccountPlanPda>, config?: {
|
|
1420
|
+
programAddress?: TProgramAddress;
|
|
1421
|
+
}): RevokeAbandonedSubscriptionInstruction<TProgramAddress, TAccountPayer, TAccountSubscriptionAccount, TAccountSubscriptionAuthority, TAccountPlanPda>;
|
|
1422
|
+
type ParsedRevokeAbandonedSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1423
|
+
programAddress: Address<TProgram>;
|
|
1424
|
+
accounts: {
|
|
1425
|
+
/** The recorded payer reclaiming rent */
|
|
1426
|
+
payer: TAccountMetas[0];
|
|
1427
|
+
/** The abandoned subscription PDA to close */
|
|
1428
|
+
subscriptionAccount: TAccountMetas[1];
|
|
1429
|
+
/** The subscriber's recorded SubscriptionAuthority PDA for the plan's mint (may be closed) */
|
|
1430
|
+
subscriptionAuthority: TAccountMetas[2];
|
|
1431
|
+
/** The plan the subscription belongs to; provides the mint */
|
|
1432
|
+
planPda: TAccountMetas[3];
|
|
1433
|
+
};
|
|
1434
|
+
data: RevokeAbandonedSubscriptionInstructionData;
|
|
1435
|
+
};
|
|
1436
|
+
declare function parseRevokeAbandonedSubscriptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeAbandonedSubscriptionInstruction<TProgram, TAccountMetas>;
|
|
1437
|
+
|
|
1345
1438
|
/**
|
|
1346
1439
|
* This code was AUTOGENERATED using the Codama library.
|
|
1347
1440
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1395,11 +1488,13 @@ declare function parseRevokeDelegationInstruction<TProgram extends string, TAcco
|
|
|
1395
1488
|
|
|
1396
1489
|
declare const REVOKE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR = 14;
|
|
1397
1490
|
declare function getRevokeSubscriptionAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1398
|
-
type RevokeSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountUserAta extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1399
|
-
TAccountUser extends string ?
|
|
1491
|
+
type RevokeSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountUserAta extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> | undefined = undefined, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1492
|
+
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
1400
1493
|
TAccountUserAta extends string ? WritableAccount<TAccountUserAta> : TAccountUserAta,
|
|
1401
1494
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1402
1495
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1496
|
+
TAccountSubscriptionAuthority extends string ? WritableAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1497
|
+
...(TAccountReceiver extends undefined ? [] : [TAccountReceiver extends string ? WritableAccount<TAccountReceiver> : TAccountReceiver]),
|
|
1403
1498
|
...TRemainingAccounts
|
|
1404
1499
|
]>;
|
|
1405
1500
|
type RevokeSubscriptionAuthorityInstructionData = {
|
|
@@ -1409,8 +1504,25 @@ type RevokeSubscriptionAuthorityInstructionDataArgs = {};
|
|
|
1409
1504
|
declare function getRevokeSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<RevokeSubscriptionAuthorityInstructionDataArgs>;
|
|
1410
1505
|
declare function getRevokeSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<RevokeSubscriptionAuthorityInstructionData>;
|
|
1411
1506
|
declare function getRevokeSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<RevokeSubscriptionAuthorityInstructionDataArgs, RevokeSubscriptionAuthorityInstructionData>;
|
|
1412
|
-
type
|
|
1413
|
-
/** The ATA owner
|
|
1507
|
+
type RevokeSubscriptionAuthorityAsyncInput<TAccountUser extends string = string, TAccountUserAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountReceiver extends string = string> = {
|
|
1508
|
+
/** The ATA owner: revokes the program's delegate and, when still open, closes the SubscriptionAuthority PDA (receives rent when self-funded) */
|
|
1509
|
+
user: TransactionSigner<TAccountUser>;
|
|
1510
|
+
/** The user's ATA whose delegate is being revoked */
|
|
1511
|
+
userAta: Address<TAccountUserAta>;
|
|
1512
|
+
/** The token mint of the user's ATA */
|
|
1513
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1514
|
+
/** Token program */
|
|
1515
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1516
|
+
/** The SubscriptionAuthority PDA. Closed when still open; ignored when already closed. */
|
|
1517
|
+
subscriptionAuthority?: Address<TAccountSubscriptionAuthority>;
|
|
1518
|
+
/** Optional rent recipient, required when the SubscriptionAuthority is still open and its recorded payer differs from the user. Must match the stored payer. */
|
|
1519
|
+
receiver?: Address<TAccountReceiver>;
|
|
1520
|
+
};
|
|
1521
|
+
declare function getRevokeSubscriptionAuthorityInstructionAsync<TAccountUser extends string, TAccountUserAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountSubscriptionAuthority extends string, TAccountReceiver extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeSubscriptionAuthorityAsyncInput<TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
|
|
1522
|
+
programAddress?: TProgramAddress;
|
|
1523
|
+
}): Promise<RevokeSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>>;
|
|
1524
|
+
type RevokeSubscriptionAuthorityInput$1<TAccountUser extends string = string, TAccountUserAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountReceiver extends string = string> = {
|
|
1525
|
+
/** The ATA owner: revokes the program's delegate and, when still open, closes the SubscriptionAuthority PDA (receives rent when self-funded) */
|
|
1414
1526
|
user: TransactionSigner<TAccountUser>;
|
|
1415
1527
|
/** The user's ATA whose delegate is being revoked */
|
|
1416
1528
|
userAta: Address<TAccountUserAta>;
|
|
@@ -1418,14 +1530,18 @@ type RevokeSubscriptionAuthorityInput$1<TAccountUser extends string = string, TA
|
|
|
1418
1530
|
tokenMint: Address<TAccountTokenMint>;
|
|
1419
1531
|
/** Token program */
|
|
1420
1532
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1533
|
+
/** The SubscriptionAuthority PDA. Closed when still open; ignored when already closed. */
|
|
1534
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1535
|
+
/** Optional rent recipient, required when the SubscriptionAuthority is still open and its recorded payer differs from the user. Must match the stored payer. */
|
|
1536
|
+
receiver?: Address<TAccountReceiver>;
|
|
1421
1537
|
};
|
|
1422
|
-
declare function getRevokeSubscriptionAuthorityInstruction<TAccountUser extends string, TAccountUserAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeSubscriptionAuthorityInput$1<TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram>, config?: {
|
|
1538
|
+
declare function getRevokeSubscriptionAuthorityInstruction<TAccountUser extends string, TAccountUserAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountSubscriptionAuthority extends string, TAccountReceiver extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeSubscriptionAuthorityInput$1<TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
|
|
1423
1539
|
programAddress?: TProgramAddress;
|
|
1424
|
-
}): RevokeSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram>;
|
|
1540
|
+
}): RevokeSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>;
|
|
1425
1541
|
type ParsedRevokeSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1426
1542
|
programAddress: Address<TProgram>;
|
|
1427
1543
|
accounts: {
|
|
1428
|
-
/** The ATA owner
|
|
1544
|
+
/** The ATA owner: revokes the program's delegate and, when still open, closes the SubscriptionAuthority PDA (receives rent when self-funded) */
|
|
1429
1545
|
user: TAccountMetas[0];
|
|
1430
1546
|
/** The user's ATA whose delegate is being revoked */
|
|
1431
1547
|
userAta: TAccountMetas[1];
|
|
@@ -1433,6 +1549,10 @@ type ParsedRevokeSubscriptionAuthorityInstruction<TProgram extends string = type
|
|
|
1433
1549
|
tokenMint: TAccountMetas[2];
|
|
1434
1550
|
/** Token program */
|
|
1435
1551
|
tokenProgram: TAccountMetas[3];
|
|
1552
|
+
/** The SubscriptionAuthority PDA. Closed when still open; ignored when already closed. */
|
|
1553
|
+
subscriptionAuthority: TAccountMetas[4];
|
|
1554
|
+
/** Optional rent recipient, required when the SubscriptionAuthority is still open and its recorded payer differs from the user. Must match the stored payer. */
|
|
1555
|
+
receiver?: TAccountMetas[5] | undefined;
|
|
1436
1556
|
};
|
|
1437
1557
|
data: RevokeSubscriptionAuthorityInstructionData;
|
|
1438
1558
|
};
|
|
@@ -1448,7 +1568,7 @@ declare function parseRevokeSubscriptionAuthorityInstruction<TProgram extends st
|
|
|
1448
1568
|
|
|
1449
1569
|
declare const SUBSCRIBE_DISCRIMINATOR = 11;
|
|
1450
1570
|
declare function getSubscribeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1451
|
-
type SubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountSubscriber extends string | AccountMeta<string> = string, TAccountMerchant extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountSubscriptionPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthorityPda extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> =
|
|
1571
|
+
type SubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountSubscriber extends string | AccountMeta<string> = string, TAccountMerchant extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountSubscriptionPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthorityPda extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountSelfProgram extends string | AccountMeta<string> = 'De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44', TAccountPayer extends string | AccountMeta<string> | undefined = undefined, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1452
1572
|
TAccountSubscriber extends string ? WritableSignerAccount<TAccountSubscriber> & AccountSignerMeta<TAccountSubscriber> : TAccountSubscriber,
|
|
1453
1573
|
TAccountMerchant extends string ? ReadonlyAccount<TAccountMerchant> : TAccountMerchant,
|
|
1454
1574
|
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
@@ -1457,6 +1577,9 @@ type SubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM
|
|
|
1457
1577
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1458
1578
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
1459
1579
|
TAccountSelfProgram extends string ? ReadonlyAccount<TAccountSelfProgram> : TAccountSelfProgram,
|
|
1580
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
1581
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
1582
|
+
]),
|
|
1460
1583
|
...TRemainingAccounts
|
|
1461
1584
|
]>;
|
|
1462
1585
|
type SubscribeInstructionData = {
|
|
@@ -1469,7 +1592,7 @@ type SubscribeInstructionDataArgs = {
|
|
|
1469
1592
|
declare function getSubscribeInstructionDataEncoder(): FixedSizeEncoder<SubscribeInstructionDataArgs>;
|
|
1470
1593
|
declare function getSubscribeInstructionDataDecoder(): FixedSizeDecoder<SubscribeInstructionData>;
|
|
1471
1594
|
declare function getSubscribeInstructionDataCodec(): FixedSizeCodec<SubscribeInstructionDataArgs, SubscribeInstructionData>;
|
|
1472
|
-
type SubscribeAsyncInput<TAccountSubscriber extends string = string, TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthorityPda extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1595
|
+
type SubscribeAsyncInput<TAccountSubscriber extends string = string, TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthorityPda extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string, TAccountPayer extends string = string> = {
|
|
1473
1596
|
/** The subscriber creating the subscription (pays rent) */
|
|
1474
1597
|
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
1475
1598
|
/** The merchant who owns the plan */
|
|
@@ -1486,12 +1609,14 @@ type SubscribeAsyncInput<TAccountSubscriber extends string = string, TAccountMer
|
|
|
1486
1609
|
eventAuthority?: Address<TAccountEventAuthority>;
|
|
1487
1610
|
/** This program (for self-CPI) */
|
|
1488
1611
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1612
|
+
/** Optional sponsor that funds the account rent. Defaults to the subscriber/signer when omitted. */
|
|
1613
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1489
1614
|
subscribeData: SubscribeInstructionDataArgs['subscribeData'];
|
|
1490
1615
|
};
|
|
1491
|
-
declare function getSubscribeInstructionAsync<TAccountSubscriber extends string, TAccountMerchant extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountSubscriptionAuthorityPda extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: SubscribeAsyncInput<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1616
|
+
declare function getSubscribeInstructionAsync<TAccountSubscriber extends string, TAccountMerchant extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountSubscriptionAuthorityPda extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: SubscribeAsyncInput<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>, config?: {
|
|
1492
1617
|
programAddress?: TProgramAddress;
|
|
1493
|
-
}): Promise<SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
1494
|
-
type SubscribeInput$1<TAccountSubscriber extends string = string, TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthorityPda extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1618
|
+
}): Promise<SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>>;
|
|
1619
|
+
type SubscribeInput$1<TAccountSubscriber extends string = string, TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthorityPda extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string, TAccountPayer extends string = string> = {
|
|
1495
1620
|
/** The subscriber creating the subscription (pays rent) */
|
|
1496
1621
|
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
1497
1622
|
/** The merchant who owns the plan */
|
|
@@ -1505,14 +1630,16 @@ type SubscribeInput$1<TAccountSubscriber extends string = string, TAccountMercha
|
|
|
1505
1630
|
/** The system program */
|
|
1506
1631
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1507
1632
|
/** The event authority PDA */
|
|
1508
|
-
eventAuthority
|
|
1633
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1509
1634
|
/** This program (for self-CPI) */
|
|
1510
1635
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1636
|
+
/** Optional sponsor that funds the account rent. Defaults to the subscriber/signer when omitted. */
|
|
1637
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1511
1638
|
subscribeData: SubscribeInstructionDataArgs['subscribeData'];
|
|
1512
1639
|
};
|
|
1513
|
-
declare function getSubscribeInstruction<TAccountSubscriber extends string, TAccountMerchant extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountSubscriptionAuthorityPda extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: SubscribeInput$1<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1640
|
+
declare function getSubscribeInstruction<TAccountSubscriber extends string, TAccountMerchant extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountSubscriptionAuthorityPda extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: SubscribeInput$1<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>, config?: {
|
|
1514
1641
|
programAddress?: TProgramAddress;
|
|
1515
|
-
}): SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram>;
|
|
1642
|
+
}): SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>;
|
|
1516
1643
|
type ParsedSubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1517
1644
|
programAddress: Address<TProgram>;
|
|
1518
1645
|
accounts: {
|
|
@@ -1532,6 +1659,8 @@ type ParsedSubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_P
|
|
|
1532
1659
|
eventAuthority: TAccountMetas[6];
|
|
1533
1660
|
/** This program (for self-CPI) */
|
|
1534
1661
|
selfProgram: TAccountMetas[7];
|
|
1662
|
+
/** Optional sponsor that funds the account rent. Defaults to the subscriber/signer when omitted. */
|
|
1663
|
+
payer?: TAccountMetas[8] | undefined;
|
|
1535
1664
|
};
|
|
1536
1665
|
data: SubscribeInstructionData;
|
|
1537
1666
|
};
|
|
@@ -1547,7 +1676,7 @@ declare function parseSubscribeInstruction<TProgram extends string, TAccountMeta
|
|
|
1547
1676
|
|
|
1548
1677
|
declare const TRANSFER_FIXED_DISCRIMINATOR = 4;
|
|
1549
1678
|
declare function getTransferFixedDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1550
|
-
type TransferFixedInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountDelegationPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegatorAta extends string | AccountMeta<string> = string, TAccountReceiverAta extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountDelegatee extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> =
|
|
1679
|
+
type TransferFixedInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountDelegationPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegatorAta extends string | AccountMeta<string> = string, TAccountReceiverAta extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountDelegatee extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountSelfProgram extends string | AccountMeta<string> = 'De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1551
1680
|
TAccountDelegationPda extends string ? WritableAccount<TAccountDelegationPda> : TAccountDelegationPda,
|
|
1552
1681
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1553
1682
|
TAccountDelegatorAta extends string ? WritableAccount<TAccountDelegatorAta> : TAccountDelegatorAta,
|
|
@@ -1569,7 +1698,7 @@ type TransferFixedInstructionDataArgs = {
|
|
|
1569
1698
|
declare function getTransferFixedInstructionDataEncoder(): FixedSizeEncoder<TransferFixedInstructionDataArgs>;
|
|
1570
1699
|
declare function getTransferFixedInstructionDataDecoder(): FixedSizeDecoder<TransferFixedInstructionData>;
|
|
1571
1700
|
declare function getTransferFixedInstructionDataCodec(): FixedSizeCodec<TransferFixedInstructionDataArgs, TransferFixedInstructionData>;
|
|
1572
|
-
type
|
|
1701
|
+
type TransferFixedAsyncInput<TAccountDelegationPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountDelegatee extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1573
1702
|
/** The fixed delegation PDA to transfer from */
|
|
1574
1703
|
delegationPda: Address<TAccountDelegationPda>;
|
|
1575
1704
|
/** The subscription-authority PDA */
|
|
@@ -1590,6 +1719,30 @@ type TransferFixedInput<TAccountDelegationPda extends string = string, TAccountS
|
|
|
1590
1719
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1591
1720
|
transferData: TransferFixedInstructionDataArgs['transferData'];
|
|
1592
1721
|
};
|
|
1722
|
+
declare function getTransferFixedInstructionAsync<TAccountDelegationPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountDelegatee extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferFixedAsyncInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1723
|
+
programAddress?: TProgramAddress;
|
|
1724
|
+
}): Promise<TransferFixedInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
1725
|
+
type TransferFixedInput<TAccountDelegationPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountDelegatee extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1726
|
+
/** The fixed delegation PDA to transfer from */
|
|
1727
|
+
delegationPda: Address<TAccountDelegationPda>;
|
|
1728
|
+
/** The subscription-authority PDA */
|
|
1729
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1730
|
+
/** The delegator's ATA to transfer from */
|
|
1731
|
+
delegatorAta: Address<TAccountDelegatorAta>;
|
|
1732
|
+
/** The receiver's ATA to transfer to */
|
|
1733
|
+
receiverAta: Address<TAccountReceiverAta>;
|
|
1734
|
+
/** The token mint */
|
|
1735
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1736
|
+
/** Token program */
|
|
1737
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1738
|
+
/** The delegatee signing the transfer */
|
|
1739
|
+
delegatee: TransactionSigner<TAccountDelegatee>;
|
|
1740
|
+
/** The event authority PDA */
|
|
1741
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1742
|
+
/** This program (for self-CPI) */
|
|
1743
|
+
selfProgram?: Address<TAccountSelfProgram>;
|
|
1744
|
+
transferData: TransferFixedInstructionDataArgs['transferData'];
|
|
1745
|
+
};
|
|
1593
1746
|
declare function getTransferFixedInstruction<TAccountDelegationPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountDelegatee extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferFixedInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1594
1747
|
programAddress?: TProgramAddress;
|
|
1595
1748
|
}): TransferFixedInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>;
|
|
@@ -1629,7 +1782,7 @@ declare function parseTransferFixedInstruction<TProgram extends string, TAccount
|
|
|
1629
1782
|
|
|
1630
1783
|
declare const TRANSFER_RECURRING_DISCRIMINATOR = 5;
|
|
1631
1784
|
declare function getTransferRecurringDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1632
|
-
type TransferRecurringInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountDelegationPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegatorAta extends string | AccountMeta<string> = string, TAccountReceiverAta extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountDelegatee extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> =
|
|
1785
|
+
type TransferRecurringInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountDelegationPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegatorAta extends string | AccountMeta<string> = string, TAccountReceiverAta extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountDelegatee extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountSelfProgram extends string | AccountMeta<string> = 'De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1633
1786
|
TAccountDelegationPda extends string ? WritableAccount<TAccountDelegationPda> : TAccountDelegationPda,
|
|
1634
1787
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1635
1788
|
TAccountDelegatorAta extends string ? WritableAccount<TAccountDelegatorAta> : TAccountDelegatorAta,
|
|
@@ -1651,7 +1804,7 @@ type TransferRecurringInstructionDataArgs = {
|
|
|
1651
1804
|
declare function getTransferRecurringInstructionDataEncoder(): FixedSizeEncoder<TransferRecurringInstructionDataArgs>;
|
|
1652
1805
|
declare function getTransferRecurringInstructionDataDecoder(): FixedSizeDecoder<TransferRecurringInstructionData>;
|
|
1653
1806
|
declare function getTransferRecurringInstructionDataCodec(): FixedSizeCodec<TransferRecurringInstructionDataArgs, TransferRecurringInstructionData>;
|
|
1654
|
-
type
|
|
1807
|
+
type TransferRecurringAsyncInput<TAccountDelegationPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountDelegatee extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1655
1808
|
/** The recurring delegation PDA to transfer from */
|
|
1656
1809
|
delegationPda: Address<TAccountDelegationPda>;
|
|
1657
1810
|
/** The subscription-authority PDA */
|
|
@@ -1672,6 +1825,30 @@ type TransferRecurringInput<TAccountDelegationPda extends string = string, TAcco
|
|
|
1672
1825
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1673
1826
|
transferData: TransferRecurringInstructionDataArgs['transferData'];
|
|
1674
1827
|
};
|
|
1828
|
+
declare function getTransferRecurringInstructionAsync<TAccountDelegationPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountDelegatee extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferRecurringAsyncInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1829
|
+
programAddress?: TProgramAddress;
|
|
1830
|
+
}): Promise<TransferRecurringInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
1831
|
+
type TransferRecurringInput<TAccountDelegationPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountDelegatee extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1832
|
+
/** The recurring delegation PDA to transfer from */
|
|
1833
|
+
delegationPda: Address<TAccountDelegationPda>;
|
|
1834
|
+
/** The subscription-authority PDA */
|
|
1835
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1836
|
+
/** The delegator's ATA to transfer from */
|
|
1837
|
+
delegatorAta: Address<TAccountDelegatorAta>;
|
|
1838
|
+
/** The receiver's ATA to transfer to */
|
|
1839
|
+
receiverAta: Address<TAccountReceiverAta>;
|
|
1840
|
+
/** The token mint */
|
|
1841
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1842
|
+
/** Token program */
|
|
1843
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1844
|
+
/** The delegatee signing the transfer */
|
|
1845
|
+
delegatee: TransactionSigner<TAccountDelegatee>;
|
|
1846
|
+
/** The event authority PDA */
|
|
1847
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1848
|
+
/** This program (for self-CPI) */
|
|
1849
|
+
selfProgram?: Address<TAccountSelfProgram>;
|
|
1850
|
+
transferData: TransferRecurringInstructionDataArgs['transferData'];
|
|
1851
|
+
};
|
|
1675
1852
|
declare function getTransferRecurringInstruction<TAccountDelegationPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountDelegatee extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferRecurringInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1676
1853
|
programAddress?: TProgramAddress;
|
|
1677
1854
|
}): TransferRecurringInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>;
|
|
@@ -1711,7 +1888,7 @@ declare function parseTransferRecurringInstruction<TProgram extends string, TAcc
|
|
|
1711
1888
|
|
|
1712
1889
|
declare const TRANSFER_SUBSCRIPTION_DISCRIMINATOR = 10;
|
|
1713
1890
|
declare function getTransferSubscriptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1714
|
-
type TransferSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountSubscriptionPda extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegatorAta extends string | AccountMeta<string> = string, TAccountReceiverAta extends string | AccountMeta<string> = string, TAccountCaller extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> =
|
|
1891
|
+
type TransferSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountSubscriptionPda extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TAccountDelegatorAta extends string | AccountMeta<string> = string, TAccountReceiverAta extends string | AccountMeta<string> = string, TAccountCaller extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountSelfProgram extends string | AccountMeta<string> = 'De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1715
1892
|
TAccountSubscriptionPda extends string ? WritableAccount<TAccountSubscriptionPda> : TAccountSubscriptionPda,
|
|
1716
1893
|
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
1717
1894
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
@@ -1734,7 +1911,7 @@ type TransferSubscriptionInstructionDataArgs = {
|
|
|
1734
1911
|
declare function getTransferSubscriptionInstructionDataEncoder(): FixedSizeEncoder<TransferSubscriptionInstructionDataArgs>;
|
|
1735
1912
|
declare function getTransferSubscriptionInstructionDataDecoder(): FixedSizeDecoder<TransferSubscriptionInstructionData>;
|
|
1736
1913
|
declare function getTransferSubscriptionInstructionDataCodec(): FixedSizeCodec<TransferSubscriptionInstructionDataArgs, TransferSubscriptionInstructionData>;
|
|
1737
|
-
type
|
|
1914
|
+
type TransferSubscriptionAsyncInput<TAccountSubscriptionPda extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountCaller extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1738
1915
|
/** The subscription delegation PDA */
|
|
1739
1916
|
subscriptionPda: Address<TAccountSubscriptionPda>;
|
|
1740
1917
|
/** The plan PDA */
|
|
@@ -1757,6 +1934,32 @@ type TransferSubscriptionInput$1<TAccountSubscriptionPda extends string = string
|
|
|
1757
1934
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1758
1935
|
transferData: TransferSubscriptionInstructionDataArgs['transferData'];
|
|
1759
1936
|
};
|
|
1937
|
+
declare function getTransferSubscriptionInstructionAsync<TAccountSubscriptionPda extends string, TAccountPlanPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountCaller extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferSubscriptionAsyncInput<TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1938
|
+
programAddress?: TProgramAddress;
|
|
1939
|
+
}): Promise<TransferSubscriptionInstruction<TProgramAddress, TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
1940
|
+
type TransferSubscriptionInput$1<TAccountSubscriptionPda extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountCaller extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1941
|
+
/** The subscription delegation PDA */
|
|
1942
|
+
subscriptionPda: Address<TAccountSubscriptionPda>;
|
|
1943
|
+
/** The plan PDA */
|
|
1944
|
+
planPda: Address<TAccountPlanPda>;
|
|
1945
|
+
/** The subscription-authority PDA */
|
|
1946
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1947
|
+
/** The delegator's ATA to transfer from */
|
|
1948
|
+
delegatorAta: Address<TAccountDelegatorAta>;
|
|
1949
|
+
/** The receiver's ATA to transfer to */
|
|
1950
|
+
receiverAta: Address<TAccountReceiverAta>;
|
|
1951
|
+
/** The authorized puller (plan owner or whitelisted) */
|
|
1952
|
+
caller: TransactionSigner<TAccountCaller>;
|
|
1953
|
+
/** The token mint */
|
|
1954
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1955
|
+
/** Token program */
|
|
1956
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1957
|
+
/** The event authority PDA */
|
|
1958
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1959
|
+
/** This program (for self-CPI) */
|
|
1960
|
+
selfProgram?: Address<TAccountSelfProgram>;
|
|
1961
|
+
transferData: TransferSubscriptionInstructionDataArgs['transferData'];
|
|
1962
|
+
};
|
|
1760
1963
|
declare function getTransferSubscriptionInstruction<TAccountSubscriptionPda extends string, TAccountPlanPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountCaller extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferSubscriptionInput$1<TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1761
1964
|
programAddress?: TProgramAddress;
|
|
1762
1965
|
}): TransferSubscriptionInstruction<TProgramAddress, TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>;
|
|
@@ -1798,9 +2001,11 @@ declare function parseTransferSubscriptionInstruction<TProgram extends string, T
|
|
|
1798
2001
|
|
|
1799
2002
|
declare const UPDATE_PLAN_DISCRIMINATOR = 8;
|
|
1800
2003
|
declare function getUpdatePlanDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1801
|
-
type UpdatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
2004
|
+
type UpdatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountSelfProgram extends string | AccountMeta<string> = 'De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1802
2005
|
TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
1803
2006
|
TAccountPlanPda extends string ? WritableAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
2007
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
2008
|
+
TAccountSelfProgram extends string ? ReadonlyAccount<TAccountSelfProgram> : TAccountSelfProgram,
|
|
1804
2009
|
...TRemainingAccounts
|
|
1805
2010
|
]>;
|
|
1806
2011
|
type UpdatePlanInstructionData = {
|
|
@@ -1813,16 +2018,34 @@ type UpdatePlanInstructionDataArgs = {
|
|
|
1813
2018
|
declare function getUpdatePlanInstructionDataEncoder(): FixedSizeEncoder<UpdatePlanInstructionDataArgs>;
|
|
1814
2019
|
declare function getUpdatePlanInstructionDataDecoder(): FixedSizeDecoder<UpdatePlanInstructionData>;
|
|
1815
2020
|
declare function getUpdatePlanInstructionDataCodec(): FixedSizeCodec<UpdatePlanInstructionDataArgs, UpdatePlanInstructionData>;
|
|
1816
|
-
type
|
|
2021
|
+
type UpdatePlanAsyncInput<TAccountOwner extends string = string, TAccountPlanPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1817
2022
|
/** The plan owner updating the plan */
|
|
1818
2023
|
owner: TransactionSigner<TAccountOwner>;
|
|
1819
2024
|
/** The plan PDA being updated */
|
|
1820
2025
|
planPda: Address<TAccountPlanPda>;
|
|
2026
|
+
/** The event authority PDA */
|
|
2027
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
2028
|
+
/** This program (for self-CPI) */
|
|
2029
|
+
selfProgram?: Address<TAccountSelfProgram>;
|
|
1821
2030
|
updatePlanData: UpdatePlanInstructionDataArgs['updatePlanData'];
|
|
1822
2031
|
};
|
|
1823
|
-
declare function
|
|
2032
|
+
declare function getUpdatePlanInstructionAsync<TAccountOwner extends string, TAccountPlanPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: UpdatePlanAsyncInput<TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
1824
2033
|
programAddress?: TProgramAddress;
|
|
1825
|
-
}): UpdatePlanInstruction<TProgramAddress, TAccountOwner, TAccountPlanPda
|
|
2034
|
+
}): Promise<UpdatePlanInstruction<TProgramAddress, TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
2035
|
+
type UpdatePlanInput$1<TAccountOwner extends string = string, TAccountPlanPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
2036
|
+
/** The plan owner updating the plan */
|
|
2037
|
+
owner: TransactionSigner<TAccountOwner>;
|
|
2038
|
+
/** The plan PDA being updated */
|
|
2039
|
+
planPda: Address<TAccountPlanPda>;
|
|
2040
|
+
/** The event authority PDA */
|
|
2041
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
2042
|
+
/** This program (for self-CPI) */
|
|
2043
|
+
selfProgram?: Address<TAccountSelfProgram>;
|
|
2044
|
+
updatePlanData: UpdatePlanInstructionDataArgs['updatePlanData'];
|
|
2045
|
+
};
|
|
2046
|
+
declare function getUpdatePlanInstruction<TAccountOwner extends string, TAccountPlanPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: UpdatePlanInput$1<TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
2047
|
+
programAddress?: TProgramAddress;
|
|
2048
|
+
}): UpdatePlanInstruction<TProgramAddress, TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>;
|
|
1826
2049
|
type ParsedUpdatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1827
2050
|
programAddress: Address<TProgram>;
|
|
1828
2051
|
accounts: {
|
|
@@ -1830,6 +2053,10 @@ type ParsedUpdatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_
|
|
|
1830
2053
|
owner: TAccountMetas[0];
|
|
1831
2054
|
/** The plan PDA being updated */
|
|
1832
2055
|
planPda: TAccountMetas[1];
|
|
2056
|
+
/** The event authority PDA */
|
|
2057
|
+
eventAuthority: TAccountMetas[2];
|
|
2058
|
+
/** This program (for self-CPI) */
|
|
2059
|
+
selfProgram: TAccountMetas[3];
|
|
1833
2060
|
};
|
|
1834
2061
|
data: UpdatePlanInstructionData;
|
|
1835
2062
|
};
|
|
@@ -2003,6 +2230,8 @@ type CloseSubscriptionAuthorityInput = WithProgramAddress & {
|
|
|
2003
2230
|
user: TransactionSigner;
|
|
2004
2231
|
};
|
|
2005
2232
|
type RevokeSubscriptionAuthorityInput = WithProgramAddress & {
|
|
2233
|
+
/** Rent recipient for closing the SubscriptionAuthority PDA. Required when the authority's stored payer differs from `user`, and must equal that stored payer. */
|
|
2234
|
+
receiver?: Address;
|
|
2006
2235
|
tokenMint: Address;
|
|
2007
2236
|
tokenProgram: Address;
|
|
2008
2237
|
user: TransactionSigner;
|
|
@@ -2119,6 +2348,7 @@ type ResumeSubscriptionInput = WithProgramAddress & {
|
|
|
2119
2348
|
planPda: Address;
|
|
2120
2349
|
subscriber: TransactionSigner;
|
|
2121
2350
|
subscriptionPda?: Address;
|
|
2351
|
+
tokenMint: Address;
|
|
2122
2352
|
};
|
|
2123
2353
|
declare function getInitSubscriptionAuthorityOverlayInstructionAsync(input: InitSubscriptionAuthorityInput): Promise<Instruction>;
|
|
2124
2354
|
declare function getCloseSubscriptionAuthorityOverlayInstructionAsync(input: CloseSubscriptionAuthorityInput): Promise<Instruction>;
|
|
@@ -2136,7 +2366,7 @@ declare function getTransferFixedOverlayInstructionAsync(input: TransferDelegati
|
|
|
2136
2366
|
declare function getTransferRecurringOverlayInstructionAsync(input: TransferDelegationInput): Promise<Instruction>;
|
|
2137
2367
|
declare function getTransferSubscriptionOverlayInstructionAsync(input: TransferSubscriptionInput): Promise<Instruction>;
|
|
2138
2368
|
declare function getCreatePlanOverlayInstructionAsync(input: CreatePlanInput): Promise<Instruction>;
|
|
2139
|
-
declare function getUpdatePlanOverlayInstruction(input: UpdatePlanInput): Instruction
|
|
2369
|
+
declare function getUpdatePlanOverlayInstruction(input: UpdatePlanInput): Promise<Instruction>;
|
|
2140
2370
|
declare function getDeletePlanOverlayInstruction(input: DeletePlanInput): Instruction;
|
|
2141
2371
|
declare function getSubscribeOverlayInstructionAsync(input: SubscribeInput): Promise<Instruction>;
|
|
2142
2372
|
declare function getCancelSubscriptionOverlayInstructionAsync(input: CancelSubscriptionInput): Promise<Instruction>;
|
|
@@ -2159,7 +2389,7 @@ type SubscriptionsPluginInstructions = {
|
|
|
2159
2389
|
transferFixed: (input: MakeOptional<TransferDelegationInput, 'delegatee'>) => Self<Promise<Instruction>>;
|
|
2160
2390
|
transferRecurring: (input: MakeOptional<TransferDelegationInput, 'delegatee'>) => Self<Promise<Instruction>>;
|
|
2161
2391
|
transferSubscription: (input: MakeOptional<TransferSubscriptionInput, 'caller'>) => Self<Promise<Instruction>>;
|
|
2162
|
-
updatePlan: (input: MakeOptional<UpdatePlanInput, 'owner'>) => Self<Instruction
|
|
2392
|
+
updatePlan: (input: MakeOptional<UpdatePlanInput, 'owner'>) => Self<Promise<Instruction>>;
|
|
2163
2393
|
};
|
|
2164
2394
|
type SubscriptionsPluginQueries = {
|
|
2165
2395
|
/** Counts of active delegations grouped by kind. */
|
|
@@ -2199,4 +2429,4 @@ declare class ValidationError extends Error {
|
|
|
2199
2429
|
constructor(message: string);
|
|
2200
2430
|
}
|
|
2201
2431
|
|
|
2202
|
-
export { AccountDiscriminator, type AccountDiscriminatorArgs, CANCEL_SUBSCRIPTION_DISCRIMINATOR, CLOSE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, CREATE_FIXED_DELEGATION_DISCRIMINATOR, CREATE_PLAN_DISCRIMINATOR, CREATE_RECURRING_DELEGATION_DISCRIMINATOR, CURRENT_PROGRAM_VERSION, type CancelSubscriptionAsyncInput, type CancelSubscriptionInput, type CancelSubscriptionInstruction, type CancelSubscriptionInstructionData, type CancelSubscriptionInstructionDataArgs, type CloseSubscriptionAuthorityInput, type CloseSubscriptionAuthorityInstruction, type CloseSubscriptionAuthorityInstructionData, type CloseSubscriptionAuthorityInstructionDataArgs, type CreateFixedDelegationData, type CreateFixedDelegationDataArgs, type CreateFixedDelegationInput, type CreateFixedDelegationInstruction, type CreateFixedDelegationInstructionData, type CreateFixedDelegationInstructionDataArgs, type CreatePlanInput, type CreatePlanInstruction, type CreatePlanInstructionData, type CreatePlanInstructionDataArgs, type CreateRecurringDelegationData, type CreateRecurringDelegationDataArgs, type CreateRecurringDelegationInput, type CreateRecurringDelegationInstruction, type CreateRecurringDelegationInstructionData, type CreateRecurringDelegationInstructionDataArgs, DELEGATEE_OFFSET, DELEGATION_SEED, DELEGATOR_OFFSET, DELETE_PLAN_DISCRIMINATOR, DISCRIMINATOR_OFFSET, type Delegation, type DelegationKindId, type DeletePlanInput, type DeletePlanInstruction, type DeletePlanInstructionData, type DeletePlanInstructionDataArgs, EVENT_AUTHORITY_SEED, type EventAuthority, type EventAuthorityArgs, type FixedDelegation, type FixedDelegationArgs, type FixedDelegationSeeds, type Header, type HeaderArgs, INIT_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, type InitSubscriptionAuthorityAsyncInput, type InitSubscriptionAuthorityInput, type InitSubscriptionAuthorityInstruction, type InitSubscriptionAuthorityInstructionData, type InitSubscriptionAuthorityInstructionDataArgs, MAX_PLAN_DESTINATIONS, MAX_PLAN_PULLERS, METADATA_URI_LEN, PLAN_OWNER_OFFSET, PLAN_SEED, PLAN_SIZE, PROGRAM_ID, type ParsedCancelSubscriptionInstruction, type ParsedCloseSubscriptionAuthorityInstruction, type ParsedCreateFixedDelegationInstruction, type ParsedCreatePlanInstruction, type ParsedCreateRecurringDelegationInstruction, type ParsedDeletePlanInstruction, type ParsedInitSubscriptionAuthorityInstruction, type ParsedResumeSubscriptionInstruction, type ParsedRevokeAbandonedDelegationInstruction, type ParsedRevokeDelegationInstruction, type ParsedRevokeSubscriptionAuthorityInstruction, type ParsedSubscribeInstruction, type ParsedSubscriptionsInstruction, type ParsedTransferFixedInstruction, type ParsedTransferRecurringInstruction, type ParsedTransferSubscriptionInstruction, type ParsedUpdatePlanInstruction, type Plan, type PlanArgs, type PlanData, type PlanDataArgs, type PlanSeeds, PlanStatus, type PlanStatusArgs, type PlanTerms, type PlanTermsArgs, type PlanWithAddress, RESUME_SUBSCRIPTION_DISCRIMINATOR, REVOKE_ABANDONED_DELEGATION_DISCRIMINATOR, REVOKE_DELEGATION_DISCRIMINATOR, REVOKE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, type RawProgramAccount, type RecurringDelegation, type RecurringDelegationArgs, type RecurringDelegationSeeds, type ResolveTransferHookArgs, type ResumeSubscriptionAsyncInput, type ResumeSubscriptionInput, type ResumeSubscriptionInstruction, type ResumeSubscriptionInstructionData, type ResumeSubscriptionInstructionDataArgs, type RevokeAbandonedDelegationInput, type RevokeAbandonedDelegationInstruction, type RevokeAbandonedDelegationInstructionData, type RevokeAbandonedDelegationInstructionDataArgs, type RevokeDelegationInput, type RevokeDelegationInstruction, type RevokeDelegationInstructionData, type RevokeDelegationInstructionDataArgs, type RevokeSubscriptionAuthorityInput, type RevokeSubscriptionAuthorityInstruction, type RevokeSubscriptionAuthorityInstructionData, type RevokeSubscriptionAuthorityInstructionDataArgs, type RevokeSubscriptionInput, SUBSCRIBE_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__ACCOUNT_NOT_WRITABLE, SUBSCRIPTIONS_ERROR__ALREADY_SUBSCRIBED, SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_LIMIT, SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_PERIOD_LIMIT, SUBSCRIPTIONS_ERROR__ARITHMETIC_OVERFLOW, SUBSCRIPTIONS_ERROR__ARITHMETIC_UNDERFLOW, SUBSCRIPTIONS_ERROR__ATA_OWNER_MISMATCH, SUBSCRIPTIONS_ERROR__DELEGATION_ALREADY_EXISTS, SUBSCRIPTIONS_ERROR__DELEGATION_EXPIRED, SUBSCRIPTIONS_ERROR__DELEGATION_NOT_STARTED, SUBSCRIPTIONS_ERROR__DELEGATION_VERSION_MISMATCH, SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_AMOUNT_ZERO, SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_EXPIRY_IN_PAST, SUBSCRIPTIONS_ERROR__INVALID_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_ACCOUNT_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__INVALID_ADDRESS, SUBSCRIPTIONS_ERROR__INVALID_AMOUNT, SUBSCRIPTIONS_ERROR__INVALID_ASSOCIATED_TOKEN_ACCOUNT_DERIVED_ADDRESS, SUBSCRIPTIONS_ERROR__INVALID_DELEGATE_PDA, SUBSCRIPTIONS_ERROR__INVALID_END_TS, SUBSCRIPTIONS_ERROR__INVALID_ESCROW_PDA, SUBSCRIPTIONS_ERROR__INVALID_EVENT_AUTHORITY, SUBSCRIPTIONS_ERROR__INVALID_EVENT_DATA, SUBSCRIPTIONS_ERROR__INVALID_EVENT_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__INVALID_EVENT_TAG, SUBSCRIPTIONS_ERROR__INVALID_HEADER_DATA, SUBSCRIPTIONS_ERROR__INVALID_INSTRUCTION, SUBSCRIPTIONS_ERROR__INVALID_INSTRUCTION_DATA, SUBSCRIPTIONS_ERROR__INVALID_NUM_DESTINATIONS, SUBSCRIPTIONS_ERROR__INVALID_PAYER_DATA, SUBSCRIPTIONS_ERROR__INVALID_PERIOD_LENGTH, SUBSCRIPTIONS_ERROR__INVALID_PLAN_PDA, SUBSCRIPTIONS_ERROR__INVALID_PLAN_STATUS, SUBSCRIPTIONS_ERROR__INVALID_SUBSCRIPTION_AUTHORITY_PDA, SUBSCRIPTIONS_ERROR__INVALID_SUBSCRIPTION_PDA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN2022_MINT_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN2022_TOKEN_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_PROGRAM, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_SPL_MINT_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_SPL_TOKEN_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__MIGRATION_REQUIRED, SUBSCRIPTIONS_ERROR__MINT_HAS_CONFIDENTIAL_TRANSFER, SUBSCRIPTIONS_ERROR__MINT_HAS_MINT_CLOSE_AUTHORITY, SUBSCRIPTIONS_ERROR__MINT_HAS_NON_TRANSFERABLE, SUBSCRIPTIONS_ERROR__MINT_HAS_PAUSABLE, SUBSCRIPTIONS_ERROR__MINT_HAS_PERMANENT_DELEGATE, SUBSCRIPTIONS_ERROR__MINT_HAS_TRANSFER_FEE, SUBSCRIPTIONS_ERROR__MINT_HAS_TRANSFER_HOOK, SUBSCRIPTIONS_ERROR__MINT_MISMATCH, SUBSCRIPTIONS_ERROR__NOT_ENOUGH_ACCOUNT_KEYS, SUBSCRIPTIONS_ERROR__NOT_PLAN_OWNER, SUBSCRIPTIONS_ERROR__NOT_SIGNER, SUBSCRIPTIONS_ERROR__NOT_SYSTEM_PROGRAM, SUBSCRIPTIONS_ERROR__PERIOD_NOT_ELAPSED, SUBSCRIPTIONS_ERROR__PLAN_ALREADY_EXISTS, SUBSCRIPTIONS_ERROR__PLAN_CLOSED, SUBSCRIPTIONS_ERROR__PLAN_EXPIRED, SUBSCRIPTIONS_ERROR__PLAN_IMMUTABLE_AFTER_SUNSET, SUBSCRIPTIONS_ERROR__PLAN_NOT_EXPIRED, SUBSCRIPTIONS_ERROR__PLAN_SUNSET, SUBSCRIPTIONS_ERROR__PLAN_TERMS_MISMATCH, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_AMOUNT_ZERO, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_ON_LANDING_REQUIRES_EXPIRY, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_GREATER_THAN_EXPIRY, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_IN_PAST, SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_AUTHORITY, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_ALREADY_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_NOT_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_PLAN_MISMATCH, SUBSCRIPTIONS_ERROR__SUNSET_REQUIRES_END_TS, SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_TOO_MANY_ACCOUNTS, SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_VALIDATION_ACCOUNT_MISSING, SUBSCRIPTIONS_ERROR__UNAUTHORIZED, SUBSCRIPTIONS_ERROR__UNAUTHORIZED_DESTINATION, SUBSCRIPTIONS_PROGRAM_ADDRESS, SUBSCRIPTION_AUTHORITY_SEED, SUBSCRIPTION_SEED, SUBSCRIPTION_SIZE, type SubscribeAsyncInput, type SubscribeData, type SubscribeDataArgs, type SubscribeInput, type SubscribeInstruction, type SubscribeInstructionData, type SubscribeInstructionDataArgs, type SubscriptionAuthority, type SubscriptionAuthorityArgs, type SubscriptionAuthoritySeeds, type SubscriptionDelegation, type SubscriptionDelegationArgs, type SubscriptionDelegationSeeds, SubscriptionsAccount, type SubscriptionsError, SubscriptionsInstruction, type SubscriptionsPlugin, type SubscriptionsPluginAccounts, type SubscriptionsPluginInstructions, type SubscriptionsPluginPdas, type SubscriptionsPluginQueries, type SubscriptionsPluginRequirements, TRANSFER_FIXED_DISCRIMINATOR, TRANSFER_RECURRING_DISCRIMINATOR, TRANSFER_SUBSCRIPTION_DISCRIMINATOR, type TransferData, type TransferDataArgs, type TransferDelegationInput, type TransferFixedInput, type TransferFixedInstruction, type TransferFixedInstructionData, type TransferFixedInstructionDataArgs, type TransferHookAccount, type TransferRecurringInput, type TransferRecurringInstruction, type TransferRecurringInstructionData, type TransferRecurringInstructionDataArgs, type TransferSubscriptionInput, type TransferSubscriptionInstruction, type TransferSubscriptionInstructionData, type TransferSubscriptionInstructionDataArgs, U64_BYTE_SIZE, UPDATE_PLAN_DISCRIMINATOR, type UpdatePlanData, type UpdatePlanDataArgs, type UpdatePlanInput, type UpdatePlanInstruction, type UpdatePlanInstructionData, type UpdatePlanInstructionDataArgs, ValidationError, ZERO_ADDRESS, decodeDelegationAccount, decodeEventAuthority, decodeFixedDelegation, decodePlan, decodeRecurringDelegation, decodeSubscriptionAuthority, decodeSubscriptionDelegation, fetchAllEventAuthority, fetchAllFixedDelegation, fetchAllMaybeEventAuthority, fetchAllMaybeFixedDelegation, fetchAllMaybePlan, fetchAllMaybeRecurringDelegation, fetchAllMaybeSubscriptionAuthority, fetchAllMaybeSubscriptionDelegation, fetchAllPlan, fetchAllRecurringDelegation, fetchAllSubscriptionAuthority, fetchAllSubscriptionDelegation, fetchDelegationsByDelegatee, fetchDelegationsByDelegator, fetchEventAuthority, fetchEventAuthorityFromSeeds, fetchFixedDelegation, fetchFixedDelegationFromSeeds, fetchMaybeEventAuthority, fetchMaybeEventAuthorityFromSeeds, fetchMaybeFixedDelegation, fetchMaybeFixedDelegationFromSeeds, fetchMaybePlan, fetchMaybePlanFromSeeds, fetchMaybeRecurringDelegation, fetchMaybeRecurringDelegationFromSeeds, fetchMaybeSubscriptionAuthority, fetchMaybeSubscriptionAuthorityFromSeeds, fetchMaybeSubscriptionDelegation, fetchMaybeSubscriptionDelegationFromSeeds, fetchPlan, fetchPlanFromSeeds, fetchPlansForOwner, fetchRecurringDelegation, fetchRecurringDelegationFromSeeds, fetchSubscriptionAuthority, fetchSubscriptionAuthorityFromSeeds, fetchSubscriptionDelegation, fetchSubscriptionDelegationFromSeeds, fetchSubscriptionsForUser, findEventAuthorityPda, findFixedDelegationPda, findPlanPda, findRecurringDelegationPda, findSubscriptionAuthorityPda, findSubscriptionDelegationPda, getAccountDiscriminatorCodec, getAccountDiscriminatorDecoder, getAccountDiscriminatorEncoder, getCancelSubscriptionDiscriminatorBytes, getCancelSubscriptionInstruction, getCancelSubscriptionInstructionAsync, getCancelSubscriptionInstructionDataCodec, getCancelSubscriptionInstructionDataDecoder, getCancelSubscriptionInstructionDataEncoder, getCancelSubscriptionOverlayInstructionAsync, getCloseSubscriptionAuthorityDiscriminatorBytes, getCloseSubscriptionAuthorityInstruction, getCloseSubscriptionAuthorityInstructionDataCodec, getCloseSubscriptionAuthorityInstructionDataDecoder, getCloseSubscriptionAuthorityInstructionDataEncoder, getCloseSubscriptionAuthorityOverlayInstructionAsync, getCreateFixedDelegationDataCodec, getCreateFixedDelegationDataDecoder, getCreateFixedDelegationDataEncoder, getCreateFixedDelegationDiscriminatorBytes, getCreateFixedDelegationInstruction, getCreateFixedDelegationInstructionDataCodec, getCreateFixedDelegationInstructionDataDecoder, getCreateFixedDelegationInstructionDataEncoder, getCreateFixedDelegationOverlayInstructionAsync, getCreatePlanDiscriminatorBytes, getCreatePlanInstruction, getCreatePlanInstructionDataCodec, getCreatePlanInstructionDataDecoder, getCreatePlanInstructionDataEncoder, getCreatePlanOverlayInstructionAsync, getCreateRecurringDelegationDataCodec, getCreateRecurringDelegationDataDecoder, getCreateRecurringDelegationDataEncoder, getCreateRecurringDelegationDiscriminatorBytes, getCreateRecurringDelegationInstruction, getCreateRecurringDelegationInstructionDataCodec, getCreateRecurringDelegationInstructionDataDecoder, getCreateRecurringDelegationInstructionDataEncoder, getCreateRecurringDelegationOverlayInstructionAsync, getDeletePlanDiscriminatorBytes, getDeletePlanInstruction, getDeletePlanInstructionDataCodec, getDeletePlanInstructionDataDecoder, getDeletePlanInstructionDataEncoder, getDeletePlanOverlayInstruction, getEventAuthorityCodec, getEventAuthorityDecoder, getEventAuthorityEncoder, getFixedDelegationCodec, getFixedDelegationDecoder, getFixedDelegationEncoder, getHeaderCodec, getHeaderDecoder, getHeaderEncoder, getInitSubscriptionAuthorityDiscriminatorBytes, getInitSubscriptionAuthorityInstruction, getInitSubscriptionAuthorityInstructionAsync, getInitSubscriptionAuthorityInstructionDataCodec, getInitSubscriptionAuthorityInstructionDataDecoder, getInitSubscriptionAuthorityInstructionDataEncoder, getInitSubscriptionAuthorityOverlayInstructionAsync, getPlanCodec, getPlanDataCodec, getPlanDataDecoder, getPlanDataEncoder, getPlanDecoder, getPlanEncoder, getPlanStatusCodec, getPlanStatusDecoder, getPlanStatusEncoder, getPlanTermsCodec, getPlanTermsDecoder, getPlanTermsEncoder, getRecurringDelegationCodec, getRecurringDelegationDecoder, getRecurringDelegationEncoder, getResumeSubscriptionDiscriminatorBytes, getResumeSubscriptionInstruction, getResumeSubscriptionInstructionAsync, getResumeSubscriptionInstructionDataCodec, getResumeSubscriptionInstructionDataDecoder, getResumeSubscriptionInstructionDataEncoder, getResumeSubscriptionOverlayInstructionAsync, getRevokeAbandonedDelegationDiscriminatorBytes, getRevokeAbandonedDelegationInstruction, getRevokeAbandonedDelegationInstructionDataCodec, getRevokeAbandonedDelegationInstructionDataDecoder, getRevokeAbandonedDelegationInstructionDataEncoder, getRevokeDelegationDiscriminatorBytes, getRevokeDelegationInstruction, getRevokeDelegationInstructionDataCodec, getRevokeDelegationInstructionDataDecoder, getRevokeDelegationInstructionDataEncoder, getRevokeDelegationOverlayInstruction, getRevokeSubscriptionAuthorityDiscriminatorBytes, getRevokeSubscriptionAuthorityInstruction, getRevokeSubscriptionAuthorityInstructionDataCodec, getRevokeSubscriptionAuthorityInstructionDataDecoder, getRevokeSubscriptionAuthorityInstructionDataEncoder, getRevokeSubscriptionAuthorityOverlayInstructionAsync, getRevokeSubscriptionOverlayInstruction, getSubscribeDataCodec, getSubscribeDataDecoder, getSubscribeDataEncoder, getSubscribeDiscriminatorBytes, getSubscribeInstruction, getSubscribeInstructionAsync, getSubscribeInstructionDataCodec, getSubscribeInstructionDataDecoder, getSubscribeInstructionDataEncoder, getSubscribeOverlayInstructionAsync, getSubscriptionAuthorityCodec, getSubscriptionAuthorityDecoder, getSubscriptionAuthorityEncoder, getSubscriptionDelegationCodec, getSubscriptionDelegationDecoder, getSubscriptionDelegationEncoder, getSubscriptionsErrorMessage, getTransferDataCodec, getTransferDataDecoder, getTransferDataEncoder, getTransferFixedDiscriminatorBytes, getTransferFixedInstruction, getTransferFixedInstructionDataCodec, getTransferFixedInstructionDataDecoder, getTransferFixedInstructionDataEncoder, getTransferFixedOverlayInstructionAsync, getTransferRecurringDiscriminatorBytes, getTransferRecurringInstruction, getTransferRecurringInstructionDataCodec, getTransferRecurringInstructionDataDecoder, getTransferRecurringInstructionDataEncoder, getTransferRecurringOverlayInstructionAsync, getTransferSubscriptionDiscriminatorBytes, getTransferSubscriptionInstruction, getTransferSubscriptionInstructionDataCodec, getTransferSubscriptionInstructionDataDecoder, getTransferSubscriptionInstructionDataEncoder, getTransferSubscriptionOverlayInstructionAsync, getUpdatePlanDataCodec, getUpdatePlanDataDecoder, getUpdatePlanDataEncoder, getUpdatePlanDiscriminatorBytes, getUpdatePlanInstruction, getUpdatePlanInstructionDataCodec, getUpdatePlanInstructionDataDecoder, getUpdatePlanInstructionDataEncoder, getUpdatePlanOverlayInstruction, identifySubscriptionsInstruction, isSubscriptionsError, parseCancelSubscriptionInstruction, parseCloseSubscriptionAuthorityInstruction, parseCreateFixedDelegationInstruction, parseCreatePlanInstruction, parseCreateRecurringDelegationInstruction, parseDeletePlanInstruction, parseInitSubscriptionAuthorityInstruction, parseResumeSubscriptionInstruction, parseRevokeAbandonedDelegationInstruction, parseRevokeDelegationInstruction, parseRevokeSubscriptionAuthorityInstruction, parseSubscribeInstruction, parseSubscriptionsInstruction, parseTransferFixedInstruction, parseTransferRecurringInstruction, parseTransferSubscriptionInstruction, parseUpdatePlanInstruction, resolveTransferHookAccounts, subscriptionsProgram, toEncodedAccount };
|
|
2432
|
+
export { AccountDiscriminator, type AccountDiscriminatorArgs, CANCEL_SUBSCRIPTION_DISCRIMINATOR, CLOSE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, CREATE_FIXED_DELEGATION_DISCRIMINATOR, CREATE_PLAN_DISCRIMINATOR, CREATE_RECURRING_DELEGATION_DISCRIMINATOR, CURRENT_PROGRAM_VERSION, type CancelSubscriptionAsyncInput, type CancelSubscriptionInput, type CancelSubscriptionInstruction, type CancelSubscriptionInstructionData, type CancelSubscriptionInstructionDataArgs, type CloseSubscriptionAuthorityInput, type CloseSubscriptionAuthorityInstruction, type CloseSubscriptionAuthorityInstructionData, type CloseSubscriptionAuthorityInstructionDataArgs, type CreateFixedDelegationData, type CreateFixedDelegationDataArgs, type CreateFixedDelegationInput, type CreateFixedDelegationInstruction, type CreateFixedDelegationInstructionData, type CreateFixedDelegationInstructionDataArgs, type CreatePlanInput, type CreatePlanInstruction, type CreatePlanInstructionData, type CreatePlanInstructionDataArgs, type CreateRecurringDelegationData, type CreateRecurringDelegationDataArgs, type CreateRecurringDelegationInput, type CreateRecurringDelegationInstruction, type CreateRecurringDelegationInstructionData, type CreateRecurringDelegationInstructionDataArgs, DELEGATEE_OFFSET, DELEGATION_SEED, DELEGATOR_OFFSET, DELETE_PLAN_DISCRIMINATOR, DISCRIMINATOR_OFFSET, type Delegation, type DelegationKindId, type DeletePlanInput, type DeletePlanInstruction, type DeletePlanInstructionData, type DeletePlanInstructionDataArgs, EVENT_AUTHORITY_SEED, type EventAuthority, type EventAuthorityArgs, type FixedDelegation, type FixedDelegationArgs, type FixedDelegationSeeds, type Header, type HeaderArgs, INIT_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, type InitSubscriptionAuthorityAsyncInput, type InitSubscriptionAuthorityInput, type InitSubscriptionAuthorityInstruction, type InitSubscriptionAuthorityInstructionData, type InitSubscriptionAuthorityInstructionDataArgs, MAX_PLAN_DESTINATIONS, MAX_PLAN_PULLERS, METADATA_URI_LEN, PLAN_OWNER_OFFSET, PLAN_SEED, PLAN_SIZE, PROGRAM_ID, type ParsedCancelSubscriptionInstruction, type ParsedCloseSubscriptionAuthorityInstruction, type ParsedCreateFixedDelegationInstruction, type ParsedCreatePlanInstruction, type ParsedCreateRecurringDelegationInstruction, type ParsedDeletePlanInstruction, type ParsedInitSubscriptionAuthorityInstruction, type ParsedResumeSubscriptionInstruction, type ParsedRevokeAbandonedDelegationInstruction, type ParsedRevokeAbandonedSubscriptionInstruction, type ParsedRevokeDelegationInstruction, type ParsedRevokeSubscriptionAuthorityInstruction, type ParsedSubscribeInstruction, type ParsedSubscriptionsInstruction, type ParsedTransferFixedInstruction, type ParsedTransferRecurringInstruction, type ParsedTransferSubscriptionInstruction, type ParsedUpdatePlanInstruction, type Plan, type PlanArgs, type PlanData, type PlanDataArgs, type PlanSeeds, PlanStatus, type PlanStatusArgs, type PlanTerms, type PlanTermsArgs, type PlanWithAddress, RESUME_SUBSCRIPTION_DISCRIMINATOR, REVOKE_ABANDONED_DELEGATION_DISCRIMINATOR, REVOKE_ABANDONED_SUBSCRIPTION_DISCRIMINATOR, REVOKE_DELEGATION_DISCRIMINATOR, REVOKE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, type RawProgramAccount, type RecurringDelegation, type RecurringDelegationArgs, type RecurringDelegationSeeds, type ResolveTransferHookArgs, type ResumeSubscriptionAsyncInput, type ResumeSubscriptionInput, type ResumeSubscriptionInstruction, type ResumeSubscriptionInstructionData, type ResumeSubscriptionInstructionDataArgs, type RevokeAbandonedDelegationInput, type RevokeAbandonedDelegationInstruction, type RevokeAbandonedDelegationInstructionData, type RevokeAbandonedDelegationInstructionDataArgs, type RevokeAbandonedSubscriptionInput, type RevokeAbandonedSubscriptionInstruction, type RevokeAbandonedSubscriptionInstructionData, type RevokeAbandonedSubscriptionInstructionDataArgs, type RevokeDelegationInput, type RevokeDelegationInstruction, type RevokeDelegationInstructionData, type RevokeDelegationInstructionDataArgs, type RevokeSubscriptionAuthorityAsyncInput, type RevokeSubscriptionAuthorityInput, type RevokeSubscriptionAuthorityInstruction, type RevokeSubscriptionAuthorityInstructionData, type RevokeSubscriptionAuthorityInstructionDataArgs, type RevokeSubscriptionInput, SUBSCRIBE_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__ACCOUNT_NOT_WRITABLE, SUBSCRIPTIONS_ERROR__ALREADY_SUBSCRIBED, SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_LIMIT, SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_PERIOD_LIMIT, SUBSCRIPTIONS_ERROR__ARITHMETIC_OVERFLOW, SUBSCRIPTIONS_ERROR__ARITHMETIC_UNDERFLOW, SUBSCRIPTIONS_ERROR__ATA_OWNER_MISMATCH, SUBSCRIPTIONS_ERROR__DELEGATION_ALREADY_EXISTS, SUBSCRIPTIONS_ERROR__DELEGATION_EXPIRED, SUBSCRIPTIONS_ERROR__DELEGATION_NOT_STARTED, SUBSCRIPTIONS_ERROR__DELEGATION_VERSION_MISMATCH, SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_AMOUNT_ZERO, SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_EXPIRY_IN_PAST, SUBSCRIPTIONS_ERROR__INVALID_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_ACCOUNT_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__INVALID_ADDRESS, SUBSCRIPTIONS_ERROR__INVALID_AMOUNT, SUBSCRIPTIONS_ERROR__INVALID_ASSOCIATED_TOKEN_ACCOUNT_DERIVED_ADDRESS, SUBSCRIPTIONS_ERROR__INVALID_DELEGATE_PDA, SUBSCRIPTIONS_ERROR__INVALID_END_TS, SUBSCRIPTIONS_ERROR__INVALID_ESCROW_PDA, SUBSCRIPTIONS_ERROR__INVALID_EVENT_AUTHORITY, SUBSCRIPTIONS_ERROR__INVALID_EVENT_DATA, SUBSCRIPTIONS_ERROR__INVALID_EVENT_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__INVALID_EVENT_TAG, SUBSCRIPTIONS_ERROR__INVALID_HEADER_DATA, SUBSCRIPTIONS_ERROR__INVALID_INSTRUCTION, SUBSCRIPTIONS_ERROR__INVALID_INSTRUCTION_DATA, SUBSCRIPTIONS_ERROR__INVALID_NUM_DESTINATIONS, SUBSCRIPTIONS_ERROR__INVALID_PAYER_DATA, SUBSCRIPTIONS_ERROR__INVALID_PERIOD_LENGTH, SUBSCRIPTIONS_ERROR__INVALID_PLAN_PDA, SUBSCRIPTIONS_ERROR__INVALID_PLAN_STATUS, SUBSCRIPTIONS_ERROR__INVALID_SELF_PROGRAM, SUBSCRIPTIONS_ERROR__INVALID_SUBSCRIPTION_AUTHORITY_PDA, SUBSCRIPTIONS_ERROR__INVALID_SUBSCRIPTION_PDA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN2022_MINT_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN2022_TOKEN_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_PROGRAM, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_SPL_MINT_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_SPL_TOKEN_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__MIGRATION_REQUIRED, SUBSCRIPTIONS_ERROR__MINT_HAS_CONFIDENTIAL_TRANSFER, SUBSCRIPTIONS_ERROR__MINT_HAS_MINT_CLOSE_AUTHORITY, SUBSCRIPTIONS_ERROR__MINT_HAS_NON_TRANSFERABLE, SUBSCRIPTIONS_ERROR__MINT_HAS_PAUSABLE, SUBSCRIPTIONS_ERROR__MINT_HAS_PERMANENT_DELEGATE, SUBSCRIPTIONS_ERROR__MINT_HAS_TRANSFER_FEE, SUBSCRIPTIONS_ERROR__MINT_HAS_TRANSFER_HOOK, SUBSCRIPTIONS_ERROR__MINT_MISMATCH, SUBSCRIPTIONS_ERROR__NOT_ENOUGH_ACCOUNT_KEYS, SUBSCRIPTIONS_ERROR__NOT_PLAN_OWNER, SUBSCRIPTIONS_ERROR__NOT_SIGNER, SUBSCRIPTIONS_ERROR__NOT_SYSTEM_PROGRAM, SUBSCRIPTIONS_ERROR__PERIOD_NOT_ELAPSED, SUBSCRIPTIONS_ERROR__PLAN_ALREADY_EXISTS, SUBSCRIPTIONS_ERROR__PLAN_CLOSED, SUBSCRIPTIONS_ERROR__PLAN_END_TS_CANNOT_EXTEND, SUBSCRIPTIONS_ERROR__PLAN_EXPIRED, SUBSCRIPTIONS_ERROR__PLAN_IMMUTABLE_AFTER_SUNSET, SUBSCRIPTIONS_ERROR__PLAN_NOT_EXPIRED, SUBSCRIPTIONS_ERROR__PLAN_SUNSET, SUBSCRIPTIONS_ERROR__PLAN_TERMS_MISMATCH, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_AMOUNT_ZERO, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_ON_LANDING_REQUIRES_EXPIRY, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_GREATER_THAN_EXPIRY, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_IN_PAST, SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_AUTHORITY, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_ALREADY_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_NOT_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_PLAN_MISMATCH, SUBSCRIPTIONS_ERROR__SUNSET_REQUIRES_END_TS, SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_TOO_MANY_ACCOUNTS, SUBSCRIPTIONS_ERROR__UNAUTHORIZED, SUBSCRIPTIONS_ERROR__UNAUTHORIZED_DESTINATION, SUBSCRIPTIONS_PROGRAM_ADDRESS, SUBSCRIPTION_AUTHORITY_SEED, SUBSCRIPTION_SEED, SUBSCRIPTION_SIZE, type SubscribeAsyncInput, type SubscribeData, type SubscribeDataArgs, type SubscribeInput, type SubscribeInstruction, type SubscribeInstructionData, type SubscribeInstructionDataArgs, type SubscriptionAuthority, type SubscriptionAuthorityArgs, type SubscriptionAuthoritySeeds, type SubscriptionDelegation, type SubscriptionDelegationArgs, type SubscriptionDelegationSeeds, SubscriptionsAccount, type SubscriptionsError, SubscriptionsInstruction, type SubscriptionsPlugin, type SubscriptionsPluginAccounts, type SubscriptionsPluginInstructions, type SubscriptionsPluginPdas, type SubscriptionsPluginQueries, type SubscriptionsPluginRequirements, TRANSFER_FIXED_DISCRIMINATOR, TRANSFER_RECURRING_DISCRIMINATOR, TRANSFER_SUBSCRIPTION_DISCRIMINATOR, type TransferData, type TransferDataArgs, type TransferDelegationInput, type TransferFixedAsyncInput, type TransferFixedInput, type TransferFixedInstruction, type TransferFixedInstructionData, type TransferFixedInstructionDataArgs, type TransferHookAccount, type TransferRecurringAsyncInput, type TransferRecurringInput, type TransferRecurringInstruction, type TransferRecurringInstructionData, type TransferRecurringInstructionDataArgs, type TransferSubscriptionAsyncInput, type TransferSubscriptionInput, type TransferSubscriptionInstruction, type TransferSubscriptionInstructionData, type TransferSubscriptionInstructionDataArgs, U64_BYTE_SIZE, UPDATE_PLAN_DISCRIMINATOR, type UpdatePlanAsyncInput, type UpdatePlanData, type UpdatePlanDataArgs, type UpdatePlanInput, type UpdatePlanInstruction, type UpdatePlanInstructionData, type UpdatePlanInstructionDataArgs, ValidationError, ZERO_ADDRESS, decodeDelegationAccount, decodeEventAuthority, decodeFixedDelegation, decodePlan, decodeRecurringDelegation, decodeSubscriptionAuthority, decodeSubscriptionDelegation, fetchAllEventAuthority, fetchAllFixedDelegation, fetchAllMaybeEventAuthority, fetchAllMaybeFixedDelegation, fetchAllMaybePlan, fetchAllMaybeRecurringDelegation, fetchAllMaybeSubscriptionAuthority, fetchAllMaybeSubscriptionDelegation, fetchAllPlan, fetchAllRecurringDelegation, fetchAllSubscriptionAuthority, fetchAllSubscriptionDelegation, fetchDelegationsByDelegatee, fetchDelegationsByDelegator, fetchEventAuthority, fetchEventAuthorityFromSeeds, fetchFixedDelegation, fetchFixedDelegationFromSeeds, fetchMaybeEventAuthority, fetchMaybeEventAuthorityFromSeeds, fetchMaybeFixedDelegation, fetchMaybeFixedDelegationFromSeeds, fetchMaybePlan, fetchMaybePlanFromSeeds, fetchMaybeRecurringDelegation, fetchMaybeRecurringDelegationFromSeeds, fetchMaybeSubscriptionAuthority, fetchMaybeSubscriptionAuthorityFromSeeds, fetchMaybeSubscriptionDelegation, fetchMaybeSubscriptionDelegationFromSeeds, fetchPlan, fetchPlanFromSeeds, fetchPlansForOwner, fetchRecurringDelegation, fetchRecurringDelegationFromSeeds, fetchSubscriptionAuthority, fetchSubscriptionAuthorityFromSeeds, fetchSubscriptionDelegation, fetchSubscriptionDelegationFromSeeds, fetchSubscriptionsForUser, findEventAuthorityPda, findFixedDelegationPda, findPlanPda, findRecurringDelegationPda, findSubscriptionAuthorityPda, findSubscriptionDelegationPda, getAccountDiscriminatorCodec, getAccountDiscriminatorDecoder, getAccountDiscriminatorEncoder, getCancelSubscriptionDiscriminatorBytes, getCancelSubscriptionInstruction, getCancelSubscriptionInstructionAsync, getCancelSubscriptionInstructionDataCodec, getCancelSubscriptionInstructionDataDecoder, getCancelSubscriptionInstructionDataEncoder, getCancelSubscriptionOverlayInstructionAsync, getCloseSubscriptionAuthorityDiscriminatorBytes, getCloseSubscriptionAuthorityInstruction, getCloseSubscriptionAuthorityInstructionDataCodec, getCloseSubscriptionAuthorityInstructionDataDecoder, getCloseSubscriptionAuthorityInstructionDataEncoder, getCloseSubscriptionAuthorityOverlayInstructionAsync, getCreateFixedDelegationDataCodec, getCreateFixedDelegationDataDecoder, getCreateFixedDelegationDataEncoder, getCreateFixedDelegationDiscriminatorBytes, getCreateFixedDelegationInstruction, getCreateFixedDelegationInstructionDataCodec, getCreateFixedDelegationInstructionDataDecoder, getCreateFixedDelegationInstructionDataEncoder, getCreateFixedDelegationOverlayInstructionAsync, getCreatePlanDiscriminatorBytes, getCreatePlanInstruction, getCreatePlanInstructionDataCodec, getCreatePlanInstructionDataDecoder, getCreatePlanInstructionDataEncoder, getCreatePlanOverlayInstructionAsync, getCreateRecurringDelegationDataCodec, getCreateRecurringDelegationDataDecoder, getCreateRecurringDelegationDataEncoder, getCreateRecurringDelegationDiscriminatorBytes, getCreateRecurringDelegationInstruction, getCreateRecurringDelegationInstructionDataCodec, getCreateRecurringDelegationInstructionDataDecoder, getCreateRecurringDelegationInstructionDataEncoder, getCreateRecurringDelegationOverlayInstructionAsync, getDeletePlanDiscriminatorBytes, getDeletePlanInstruction, getDeletePlanInstructionDataCodec, getDeletePlanInstructionDataDecoder, getDeletePlanInstructionDataEncoder, getDeletePlanOverlayInstruction, getEventAuthorityCodec, getEventAuthorityDecoder, getEventAuthorityEncoder, getFixedDelegationCodec, getFixedDelegationDecoder, getFixedDelegationEncoder, getHeaderCodec, getHeaderDecoder, getHeaderEncoder, getInitSubscriptionAuthorityDiscriminatorBytes, getInitSubscriptionAuthorityInstruction, getInitSubscriptionAuthorityInstructionAsync, getInitSubscriptionAuthorityInstructionDataCodec, getInitSubscriptionAuthorityInstructionDataDecoder, getInitSubscriptionAuthorityInstructionDataEncoder, getInitSubscriptionAuthorityOverlayInstructionAsync, getPlanCodec, getPlanDataCodec, getPlanDataDecoder, getPlanDataEncoder, getPlanDecoder, getPlanEncoder, getPlanStatusCodec, getPlanStatusDecoder, getPlanStatusEncoder, getPlanTermsCodec, getPlanTermsDecoder, getPlanTermsEncoder, getRecurringDelegationCodec, getRecurringDelegationDecoder, getRecurringDelegationEncoder, getResumeSubscriptionDiscriminatorBytes, getResumeSubscriptionInstruction, getResumeSubscriptionInstructionAsync, getResumeSubscriptionInstructionDataCodec, getResumeSubscriptionInstructionDataDecoder, getResumeSubscriptionInstructionDataEncoder, getResumeSubscriptionOverlayInstructionAsync, getRevokeAbandonedDelegationDiscriminatorBytes, getRevokeAbandonedDelegationInstruction, getRevokeAbandonedDelegationInstructionDataCodec, getRevokeAbandonedDelegationInstructionDataDecoder, getRevokeAbandonedDelegationInstructionDataEncoder, getRevokeAbandonedSubscriptionDiscriminatorBytes, getRevokeAbandonedSubscriptionInstruction, getRevokeAbandonedSubscriptionInstructionDataCodec, getRevokeAbandonedSubscriptionInstructionDataDecoder, getRevokeAbandonedSubscriptionInstructionDataEncoder, getRevokeDelegationDiscriminatorBytes, getRevokeDelegationInstruction, getRevokeDelegationInstructionDataCodec, getRevokeDelegationInstructionDataDecoder, getRevokeDelegationInstructionDataEncoder, getRevokeDelegationOverlayInstruction, getRevokeSubscriptionAuthorityDiscriminatorBytes, getRevokeSubscriptionAuthorityInstruction, getRevokeSubscriptionAuthorityInstructionAsync, getRevokeSubscriptionAuthorityInstructionDataCodec, getRevokeSubscriptionAuthorityInstructionDataDecoder, getRevokeSubscriptionAuthorityInstructionDataEncoder, getRevokeSubscriptionAuthorityOverlayInstructionAsync, getRevokeSubscriptionOverlayInstruction, getSubscribeDataCodec, getSubscribeDataDecoder, getSubscribeDataEncoder, getSubscribeDiscriminatorBytes, getSubscribeInstruction, getSubscribeInstructionAsync, getSubscribeInstructionDataCodec, getSubscribeInstructionDataDecoder, getSubscribeInstructionDataEncoder, getSubscribeOverlayInstructionAsync, getSubscriptionAuthorityCodec, getSubscriptionAuthorityDecoder, getSubscriptionAuthorityEncoder, getSubscriptionDelegationCodec, getSubscriptionDelegationDecoder, getSubscriptionDelegationEncoder, getSubscriptionsErrorMessage, getTransferDataCodec, getTransferDataDecoder, getTransferDataEncoder, getTransferFixedDiscriminatorBytes, getTransferFixedInstruction, getTransferFixedInstructionAsync, getTransferFixedInstructionDataCodec, getTransferFixedInstructionDataDecoder, getTransferFixedInstructionDataEncoder, getTransferFixedOverlayInstructionAsync, getTransferRecurringDiscriminatorBytes, getTransferRecurringInstruction, getTransferRecurringInstructionAsync, getTransferRecurringInstructionDataCodec, getTransferRecurringInstructionDataDecoder, getTransferRecurringInstructionDataEncoder, getTransferRecurringOverlayInstructionAsync, getTransferSubscriptionDiscriminatorBytes, getTransferSubscriptionInstruction, getTransferSubscriptionInstructionAsync, getTransferSubscriptionInstructionDataCodec, getTransferSubscriptionInstructionDataDecoder, getTransferSubscriptionInstructionDataEncoder, getTransferSubscriptionOverlayInstructionAsync, getUpdatePlanDataCodec, getUpdatePlanDataDecoder, getUpdatePlanDataEncoder, getUpdatePlanDiscriminatorBytes, getUpdatePlanInstruction, getUpdatePlanInstructionAsync, getUpdatePlanInstructionDataCodec, getUpdatePlanInstructionDataDecoder, getUpdatePlanInstructionDataEncoder, getUpdatePlanOverlayInstruction, identifySubscriptionsInstruction, isSubscriptionsError, parseCancelSubscriptionInstruction, parseCloseSubscriptionAuthorityInstruction, parseCreateFixedDelegationInstruction, parseCreatePlanInstruction, parseCreateRecurringDelegationInstruction, parseDeletePlanInstruction, parseInitSubscriptionAuthorityInstruction, parseResumeSubscriptionInstruction, parseRevokeAbandonedDelegationInstruction, parseRevokeAbandonedSubscriptionInstruction, parseRevokeDelegationInstruction, parseRevokeSubscriptionAuthorityInstruction, parseSubscribeInstruction, parseSubscriptionsInstruction, parseTransferFixedInstruction, parseTransferRecurringInstruction, parseTransferSubscriptionInstruction, parseUpdatePlanInstruction, resolveTransferHookAccounts, subscriptionsProgram, toEncodedAccount };
|