@solana/subscriptions 0.3.0 → 0.4.0-rc.2
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 +15 -11
- package/dist/index.cjs +1082 -261
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +450 -61
- package/dist/index.d.ts +450 -61
- package/dist/index.js +1084 -245
- package/dist/index.js.map +1 -1
- package/package.json +9 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _solana_kit from '@solana/kit';
|
|
2
|
-
import { FixedSizeCodec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, Address, FetchAccountsConfig, fetchEncodedAccount, FetchAccountConfig, FixedSizeDecoder, FixedSizeEncoder, ProgramDerivedAddress, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetAccountInfoApi, GetMultipleAccountsApi, ClientWithTransactionPlanning, ClientWithTransactionSending, ReadonlyUint8Array, Instruction, InstructionWithData, TransactionSigner, AccountMeta, InstructionWithAccounts, ReadonlySignerAccount, AccountSignerMeta, ReadonlyAccount, WritableAccount, WritableSignerAccount, AccountInfoWithPubkey, AccountInfoBase, AccountInfoWithBase64EncodedData, Rpc, GetProgramAccountsApi, ClientWithIdentity, ClientWithPayer } from '@solana/kit';
|
|
2
|
+
import { FixedSizeCodec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, Address, FetchAccountsConfig, fetchEncodedAccount, FetchAccountConfig, FixedSizeDecoder, FixedSizeEncoder, ProgramDerivedAddress, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetAccountInfoApi, GetMultipleAccountsApi, ClientWithTransactionPlanning, ClientWithTransactionSending, ReadonlyUint8Array, Instruction, InstructionWithData, TransactionSigner, AccountMeta, InstructionWithAccounts, ReadonlySignerAccount, AccountSignerMeta, ReadonlyAccount, WritableAccount, WritableSignerAccount, AccountInfoWithPubkey, AccountInfoBase, AccountInfoWithBase64EncodedData, Rpc, GetProgramAccountsApi, AccountRole, ClientWithIdentity, ClientWithPayer } from '@solana/kit';
|
|
3
3
|
import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
|
|
4
|
+
import { fetchMint } from '@solana-program/token-2022';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* This code was AUTOGENERATED using the Codama library.
|
|
@@ -632,6 +633,7 @@ declare const SUBSCRIPTIONS_ERROR__DELEGATION_VERSION_MISMATCH = 133;
|
|
|
632
633
|
declare const SUBSCRIPTIONS_ERROR__MIGRATION_REQUIRED = 134;
|
|
633
634
|
declare const SUBSCRIPTIONS_ERROR__DELEGATION_ALREADY_EXISTS = 135;
|
|
634
635
|
declare const SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_AUTHORITY = 136;
|
|
636
|
+
declare const SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_TOO_MANY_ACCOUNTS = 137;
|
|
635
637
|
declare const SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_LIMIT = 300;
|
|
636
638
|
declare const SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_EXPIRY_IN_PAST = 301;
|
|
637
639
|
declare const SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_AMOUNT_ZERO = 302;
|
|
@@ -643,6 +645,7 @@ declare const SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_IN_PAST = 404
|
|
|
643
645
|
declare const SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_GREATER_THAN_EXPIRY = 405;
|
|
644
646
|
declare const SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_AMOUNT_ZERO = 406;
|
|
645
647
|
declare const SUBSCRIPTIONS_ERROR__DELEGATION_NOT_STARTED = 407;
|
|
648
|
+
declare const SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_ON_LANDING_REQUIRES_EXPIRY = 408;
|
|
646
649
|
declare const SUBSCRIPTIONS_ERROR__PLAN_SUNSET = 500;
|
|
647
650
|
declare const SUBSCRIPTIONS_ERROR__PLAN_EXPIRED = 501;
|
|
648
651
|
declare const SUBSCRIPTIONS_ERROR__INVALID_PLAN_PDA = 502;
|
|
@@ -663,11 +666,13 @@ declare const SUBSCRIPTIONS_ERROR__PLAN_CLOSED = 516;
|
|
|
663
666
|
declare const SUBSCRIPTIONS_ERROR__ALREADY_SUBSCRIBED = 517;
|
|
664
667
|
declare const SUBSCRIPTIONS_ERROR__PLAN_ALREADY_EXISTS = 518;
|
|
665
668
|
declare const SUBSCRIPTIONS_ERROR__PLAN_TERMS_MISMATCH = 519;
|
|
669
|
+
declare const SUBSCRIPTIONS_ERROR__PLAN_END_TS_CANNOT_EXTEND = 520;
|
|
666
670
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_AUTHORITY = 600;
|
|
667
671
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_DATA = 601;
|
|
668
672
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_TAG = 602;
|
|
669
673
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_DISCRIMINATOR = 603;
|
|
670
|
-
|
|
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;
|
|
671
676
|
declare function getSubscriptionsErrorMessage(code: SubscriptionsError): string;
|
|
672
677
|
declare function isSubscriptionsError<TProgramErrorCode extends SubscriptionsError>(error: unknown, transactionMessage: {
|
|
673
678
|
instructions: Record<number, {
|
|
@@ -710,7 +715,10 @@ declare enum SubscriptionsInstruction {
|
|
|
710
715
|
TransferSubscription = 10,
|
|
711
716
|
Subscribe = 11,
|
|
712
717
|
CancelSubscription = 12,
|
|
713
|
-
ResumeSubscription = 13
|
|
718
|
+
ResumeSubscription = 13,
|
|
719
|
+
RevokeSubscriptionAuthority = 14,
|
|
720
|
+
RevokeAbandonedDelegation = 15,
|
|
721
|
+
RevokeAbandonedSubscription = 16
|
|
714
722
|
}
|
|
715
723
|
declare function identifySubscriptionsInstruction(instruction: {
|
|
716
724
|
data: ReadonlyUint8Array;
|
|
@@ -743,7 +751,13 @@ type ParsedSubscriptionsInstruction<TProgram extends string = 'De1egAFMkMWZSN5rY
|
|
|
743
751
|
instructionType: SubscriptionsInstruction.CancelSubscription;
|
|
744
752
|
} & ParsedCancelSubscriptionInstruction<TProgram>) | ({
|
|
745
753
|
instructionType: SubscriptionsInstruction.ResumeSubscription;
|
|
746
|
-
} & ParsedResumeSubscriptionInstruction<TProgram>)
|
|
754
|
+
} & ParsedResumeSubscriptionInstruction<TProgram>) | ({
|
|
755
|
+
instructionType: SubscriptionsInstruction.RevokeSubscriptionAuthority;
|
|
756
|
+
} & ParsedRevokeSubscriptionAuthorityInstruction<TProgram>) | ({
|
|
757
|
+
instructionType: SubscriptionsInstruction.RevokeAbandonedDelegation;
|
|
758
|
+
} & ParsedRevokeAbandonedDelegationInstruction<TProgram>) | ({
|
|
759
|
+
instructionType: SubscriptionsInstruction.RevokeAbandonedSubscription;
|
|
760
|
+
} & ParsedRevokeAbandonedSubscriptionInstruction<TProgram>);
|
|
747
761
|
declare function parseSubscriptionsInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSubscriptionsInstruction<TProgram>;
|
|
748
762
|
type SubscriptionsPlugin$1 = {
|
|
749
763
|
accounts: SubscriptionsPluginAccounts;
|
|
@@ -763,16 +777,19 @@ type SubscriptionsPluginInstructions$1 = {
|
|
|
763
777
|
createFixedDelegation: (input: CreateFixedDelegationInput$1) => ReturnType<typeof getCreateFixedDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
764
778
|
createRecurringDelegation: (input: CreateRecurringDelegationInput$1) => ReturnType<typeof getCreateRecurringDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
765
779
|
revokeDelegation: (input: RevokeDelegationInput$1) => ReturnType<typeof getRevokeDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
766
|
-
transferFixed: (input:
|
|
767
|
-
transferRecurring: (input:
|
|
780
|
+
transferFixed: (input: TransferFixedAsyncInput) => ReturnType<typeof getTransferFixedInstructionAsync> & SelfPlanAndSendFunctions;
|
|
781
|
+
transferRecurring: (input: TransferRecurringAsyncInput) => ReturnType<typeof getTransferRecurringInstructionAsync> & SelfPlanAndSendFunctions;
|
|
768
782
|
closeSubscriptionAuthority: (input: CloseSubscriptionAuthorityInput$1) => ReturnType<typeof getCloseSubscriptionAuthorityInstruction> & SelfPlanAndSendFunctions;
|
|
769
783
|
createPlan: (input: CreatePlanInput$1) => ReturnType<typeof getCreatePlanInstruction> & SelfPlanAndSendFunctions;
|
|
770
|
-
updatePlan: (input:
|
|
784
|
+
updatePlan: (input: UpdatePlanAsyncInput) => ReturnType<typeof getUpdatePlanInstructionAsync> & SelfPlanAndSendFunctions;
|
|
771
785
|
deletePlan: (input: DeletePlanInput$1) => ReturnType<typeof getDeletePlanInstruction> & SelfPlanAndSendFunctions;
|
|
772
|
-
transferSubscription: (input:
|
|
786
|
+
transferSubscription: (input: TransferSubscriptionAsyncInput) => ReturnType<typeof getTransferSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
|
|
773
787
|
subscribe: (input: SubscribeAsyncInput) => ReturnType<typeof getSubscribeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
774
788
|
cancelSubscription: (input: CancelSubscriptionAsyncInput) => ReturnType<typeof getCancelSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
|
|
775
789
|
resumeSubscription: (input: ResumeSubscriptionAsyncInput) => ReturnType<typeof getResumeSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
|
|
790
|
+
revokeSubscriptionAuthority: (input: RevokeSubscriptionAuthorityAsyncInput) => ReturnType<typeof getRevokeSubscriptionAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
|
|
791
|
+
revokeAbandonedDelegation: (input: RevokeAbandonedDelegationInput) => ReturnType<typeof getRevokeAbandonedDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
792
|
+
revokeAbandonedSubscription: (input: RevokeAbandonedSubscriptionInput) => ReturnType<typeof getRevokeAbandonedSubscriptionInstruction> & SelfPlanAndSendFunctions;
|
|
776
793
|
};
|
|
777
794
|
type SubscriptionsPluginPdas = {
|
|
778
795
|
fixedDelegation: typeof findFixedDelegationPda;
|
|
@@ -794,7 +811,7 @@ type SubscriptionsPluginRequirements$1 = ClientWithRpc<GetAccountInfoApi & GetMu
|
|
|
794
811
|
|
|
795
812
|
declare const CANCEL_SUBSCRIPTION_DISCRIMINATOR = 12;
|
|
796
813
|
declare function getCancelSubscriptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
797
|
-
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<[
|
|
798
815
|
TAccountSubscriber extends string ? ReadonlySignerAccount<TAccountSubscriber> & AccountSignerMeta<TAccountSubscriber> : TAccountSubscriber,
|
|
799
816
|
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
800
817
|
TAccountSubscriptionPda extends string ? WritableAccount<TAccountSubscriptionPda> : TAccountSubscriptionPda,
|
|
@@ -832,7 +849,7 @@ type CancelSubscriptionInput$1<TAccountSubscriber extends string = string, TAcco
|
|
|
832
849
|
/** The subscription PDA being cancelled */
|
|
833
850
|
subscriptionPda: Address<TAccountSubscriptionPda>;
|
|
834
851
|
/** The event authority PDA */
|
|
835
|
-
eventAuthority
|
|
852
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
836
853
|
/** This program (for self-CPI) */
|
|
837
854
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
838
855
|
};
|
|
@@ -867,9 +884,10 @@ declare function parseCancelSubscriptionInstruction<TProgram extends string, TAc
|
|
|
867
884
|
|
|
868
885
|
declare const CLOSE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR = 6;
|
|
869
886
|
declare function getCloseSubscriptionAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
870
|
-
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<[
|
|
871
888
|
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
872
889
|
TAccountSubscriptionAuthority extends string ? WritableAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
890
|
+
...(TAccountReceiver extends undefined ? [] : [TAccountReceiver extends string ? WritableAccount<TAccountReceiver> : TAccountReceiver]),
|
|
873
891
|
...TRemainingAccounts
|
|
874
892
|
]>;
|
|
875
893
|
type CloseSubscriptionAuthorityInstructionData = {
|
|
@@ -879,15 +897,17 @@ type CloseSubscriptionAuthorityInstructionDataArgs = {};
|
|
|
879
897
|
declare function getCloseSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<CloseSubscriptionAuthorityInstructionDataArgs>;
|
|
880
898
|
declare function getCloseSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<CloseSubscriptionAuthorityInstructionData>;
|
|
881
899
|
declare function getCloseSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<CloseSubscriptionAuthorityInstructionDataArgs, CloseSubscriptionAuthorityInstructionData>;
|
|
882
|
-
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> = {
|
|
883
901
|
/** The user who owns the SubscriptionAuthority PDA (receives rent) */
|
|
884
902
|
user: TransactionSigner<TAccountUser>;
|
|
885
903
|
/** The SubscriptionAuthority PDA to close */
|
|
886
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>;
|
|
887
907
|
};
|
|
888
|
-
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?: {
|
|
889
909
|
programAddress?: TProgramAddress;
|
|
890
|
-
}): CloseSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountSubscriptionAuthority>;
|
|
910
|
+
}): CloseSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountSubscriptionAuthority, TAccountReceiver>;
|
|
891
911
|
type ParsedCloseSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
892
912
|
programAddress: Address<TProgram>;
|
|
893
913
|
accounts: {
|
|
@@ -895,6 +915,8 @@ type ParsedCloseSubscriptionAuthorityInstruction<TProgram extends string = typeo
|
|
|
895
915
|
user: TAccountMetas[0];
|
|
896
916
|
/** The SubscriptionAuthority PDA to close */
|
|
897
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;
|
|
898
920
|
};
|
|
899
921
|
data: CloseSubscriptionAuthorityInstructionData;
|
|
900
922
|
};
|
|
@@ -910,12 +932,15 @@ declare function parseCloseSubscriptionAuthorityInstruction<TProgram extends str
|
|
|
910
932
|
|
|
911
933
|
declare const CREATE_FIXED_DELEGATION_DISCRIMINATOR = 1;
|
|
912
934
|
declare function getCreateFixedDelegationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
913
|
-
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<[
|
|
914
936
|
TAccountDelegator extends string ? WritableSignerAccount<TAccountDelegator> & AccountSignerMeta<TAccountDelegator> : TAccountDelegator,
|
|
915
937
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
916
938
|
TAccountDelegationAccount extends string ? WritableAccount<TAccountDelegationAccount> : TAccountDelegationAccount,
|
|
917
939
|
TAccountDelegatee extends string ? ReadonlyAccount<TAccountDelegatee> : TAccountDelegatee,
|
|
918
940
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
941
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
942
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
943
|
+
]),
|
|
919
944
|
...TRemainingAccounts
|
|
920
945
|
]>;
|
|
921
946
|
type CreateFixedDelegationInstructionData = {
|
|
@@ -928,7 +953,7 @@ type CreateFixedDelegationInstructionDataArgs = {
|
|
|
928
953
|
declare function getCreateFixedDelegationInstructionDataEncoder(): FixedSizeEncoder<CreateFixedDelegationInstructionDataArgs>;
|
|
929
954
|
declare function getCreateFixedDelegationInstructionDataDecoder(): FixedSizeDecoder<CreateFixedDelegationInstructionData>;
|
|
930
955
|
declare function getCreateFixedDelegationInstructionDataCodec(): FixedSizeCodec<CreateFixedDelegationInstructionDataArgs, CreateFixedDelegationInstructionData>;
|
|
931
|
-
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> = {
|
|
932
957
|
/** The user creating the delegation */
|
|
933
958
|
delegator: TransactionSigner<TAccountDelegator>;
|
|
934
959
|
/** The subscription_authority PDA for this token */
|
|
@@ -939,11 +964,13 @@ type CreateFixedDelegationInput$1<TAccountDelegator extends string = string, TAc
|
|
|
939
964
|
delegatee: Address<TAccountDelegatee>;
|
|
940
965
|
/** The system program */
|
|
941
966
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
967
|
+
/** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
|
|
968
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
942
969
|
fixedDelegation: CreateFixedDelegationInstructionDataArgs['fixedDelegation'];
|
|
943
970
|
};
|
|
944
|
-
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?: {
|
|
945
972
|
programAddress?: TProgramAddress;
|
|
946
|
-
}): CreateFixedDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram>;
|
|
973
|
+
}): CreateFixedDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>;
|
|
947
974
|
type ParsedCreateFixedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
948
975
|
programAddress: Address<TProgram>;
|
|
949
976
|
accounts: {
|
|
@@ -957,6 +984,8 @@ type ParsedCreateFixedDelegationInstruction<TProgram extends string = typeof SUB
|
|
|
957
984
|
delegatee: TAccountMetas[3];
|
|
958
985
|
/** The system program */
|
|
959
986
|
systemProgram: TAccountMetas[4];
|
|
987
|
+
/** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
|
|
988
|
+
payer?: TAccountMetas[5] | undefined;
|
|
960
989
|
};
|
|
961
990
|
data: CreateFixedDelegationInstructionData;
|
|
962
991
|
};
|
|
@@ -1034,12 +1063,15 @@ declare function parseCreatePlanInstruction<TProgram extends string, TAccountMet
|
|
|
1034
1063
|
|
|
1035
1064
|
declare const CREATE_RECURRING_DELEGATION_DISCRIMINATOR = 2;
|
|
1036
1065
|
declare function getCreateRecurringDelegationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1037
|
-
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<[
|
|
1038
1067
|
TAccountDelegator extends string ? WritableSignerAccount<TAccountDelegator> & AccountSignerMeta<TAccountDelegator> : TAccountDelegator,
|
|
1039
1068
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1040
1069
|
TAccountDelegationAccount extends string ? WritableAccount<TAccountDelegationAccount> : TAccountDelegationAccount,
|
|
1041
1070
|
TAccountDelegatee extends string ? ReadonlyAccount<TAccountDelegatee> : TAccountDelegatee,
|
|
1042
1071
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1072
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
1073
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
1074
|
+
]),
|
|
1043
1075
|
...TRemainingAccounts
|
|
1044
1076
|
]>;
|
|
1045
1077
|
type CreateRecurringDelegationInstructionData = {
|
|
@@ -1052,7 +1084,7 @@ type CreateRecurringDelegationInstructionDataArgs = {
|
|
|
1052
1084
|
declare function getCreateRecurringDelegationInstructionDataEncoder(): FixedSizeEncoder<CreateRecurringDelegationInstructionDataArgs>;
|
|
1053
1085
|
declare function getCreateRecurringDelegationInstructionDataDecoder(): FixedSizeDecoder<CreateRecurringDelegationInstructionData>;
|
|
1054
1086
|
declare function getCreateRecurringDelegationInstructionDataCodec(): FixedSizeCodec<CreateRecurringDelegationInstructionDataArgs, CreateRecurringDelegationInstructionData>;
|
|
1055
|
-
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> = {
|
|
1056
1088
|
/** The user creating the delegation */
|
|
1057
1089
|
delegator: TransactionSigner<TAccountDelegator>;
|
|
1058
1090
|
/** The subscription_authority PDA for this token */
|
|
@@ -1063,11 +1095,13 @@ type CreateRecurringDelegationInput$1<TAccountDelegator extends string = string,
|
|
|
1063
1095
|
delegatee: Address<TAccountDelegatee>;
|
|
1064
1096
|
/** The system program */
|
|
1065
1097
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1098
|
+
/** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
|
|
1099
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1066
1100
|
recurringDelegation: CreateRecurringDelegationInstructionDataArgs['recurringDelegation'];
|
|
1067
1101
|
};
|
|
1068
|
-
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?: {
|
|
1069
1103
|
programAddress?: TProgramAddress;
|
|
1070
|
-
}): CreateRecurringDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram>;
|
|
1104
|
+
}): CreateRecurringDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>;
|
|
1071
1105
|
type ParsedCreateRecurringDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1072
1106
|
programAddress: Address<TProgram>;
|
|
1073
1107
|
accounts: {
|
|
@@ -1081,6 +1115,8 @@ type ParsedCreateRecurringDelegationInstruction<TProgram extends string = typeof
|
|
|
1081
1115
|
delegatee: TAccountMetas[3];
|
|
1082
1116
|
/** The system program */
|
|
1083
1117
|
systemProgram: TAccountMetas[4];
|
|
1118
|
+
/** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
|
|
1119
|
+
payer?: TAccountMetas[5] | undefined;
|
|
1084
1120
|
};
|
|
1085
1121
|
data: CreateRecurringDelegationInstructionData;
|
|
1086
1122
|
};
|
|
@@ -1139,13 +1175,16 @@ declare function parseDeletePlanInstruction<TProgram extends string, TAccountMet
|
|
|
1139
1175
|
|
|
1140
1176
|
declare const INIT_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR = 0;
|
|
1141
1177
|
declare function getInitSubscriptionAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1142
|
-
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<[
|
|
1143
1179
|
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
1144
1180
|
TAccountSubscriptionAuthority extends string ? WritableAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1145
1181
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1146
1182
|
TAccountUserAta extends string ? WritableAccount<TAccountUserAta> : TAccountUserAta,
|
|
1147
1183
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1148
1184
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1185
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
1186
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
1187
|
+
]),
|
|
1149
1188
|
...TRemainingAccounts
|
|
1150
1189
|
]>;
|
|
1151
1190
|
type InitSubscriptionAuthorityInstructionData = {
|
|
@@ -1155,7 +1194,7 @@ type InitSubscriptionAuthorityInstructionDataArgs = {};
|
|
|
1155
1194
|
declare function getInitSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<InitSubscriptionAuthorityInstructionDataArgs>;
|
|
1156
1195
|
declare function getInitSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<InitSubscriptionAuthorityInstructionData>;
|
|
1157
1196
|
declare function getInitSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<InitSubscriptionAuthorityInstructionDataArgs, InitSubscriptionAuthorityInstructionData>;
|
|
1158
|
-
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> = {
|
|
1159
1198
|
/** The owner of the subscription-authority program */
|
|
1160
1199
|
owner: TransactionSigner<TAccountOwner>;
|
|
1161
1200
|
/** The subscription_authority PDA that will be the delegate instance for this token */
|
|
@@ -1168,11 +1207,13 @@ type InitSubscriptionAuthorityAsyncInput<TAccountOwner extends string = string,
|
|
|
1168
1207
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1169
1208
|
/** Token program */
|
|
1170
1209
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1210
|
+
/** Optional sponsor that funds the account rent. Defaults to the owner/signer when omitted. */
|
|
1211
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1171
1212
|
};
|
|
1172
|
-
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?: {
|
|
1173
1214
|
programAddress?: TProgramAddress;
|
|
1174
|
-
}): Promise<InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram>>;
|
|
1175
|
-
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> = {
|
|
1176
1217
|
/** The owner of the subscription-authority program */
|
|
1177
1218
|
owner: TransactionSigner<TAccountOwner>;
|
|
1178
1219
|
/** The subscription_authority PDA that will be the delegate instance for this token */
|
|
@@ -1185,10 +1226,12 @@ type InitSubscriptionAuthorityInput$1<TAccountOwner extends string = string, TAc
|
|
|
1185
1226
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1186
1227
|
/** Token program */
|
|
1187
1228
|
tokenProgram: Address<TAccountTokenProgram>;
|
|
1229
|
+
/** Optional sponsor that funds the account rent. Defaults to the owner/signer when omitted. */
|
|
1230
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1188
1231
|
};
|
|
1189
|
-
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?: {
|
|
1190
1233
|
programAddress?: TProgramAddress;
|
|
1191
|
-
}): InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram>;
|
|
1234
|
+
}): InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>;
|
|
1192
1235
|
type ParsedInitSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1193
1236
|
programAddress: Address<TProgram>;
|
|
1194
1237
|
accounts: {
|
|
@@ -1204,6 +1247,8 @@ type ParsedInitSubscriptionAuthorityInstruction<TProgram extends string = typeof
|
|
|
1204
1247
|
systemProgram: TAccountMetas[4];
|
|
1205
1248
|
/** Token program */
|
|
1206
1249
|
tokenProgram: TAccountMetas[5];
|
|
1250
|
+
/** Optional sponsor that funds the account rent. Defaults to the owner/signer when omitted. */
|
|
1251
|
+
payer?: TAccountMetas[6] | undefined;
|
|
1207
1252
|
};
|
|
1208
1253
|
data: InitSubscriptionAuthorityInstructionData;
|
|
1209
1254
|
};
|
|
@@ -1219,10 +1264,11 @@ declare function parseInitSubscriptionAuthorityInstruction<TProgram extends stri
|
|
|
1219
1264
|
|
|
1220
1265
|
declare const RESUME_SUBSCRIPTION_DISCRIMINATOR = 13;
|
|
1221
1266
|
declare function getResumeSubscriptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1222
|
-
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<[
|
|
1223
1268
|
TAccountSubscriber extends string ? ReadonlySignerAccount<TAccountSubscriber> & AccountSignerMeta<TAccountSubscriber> : TAccountSubscriber,
|
|
1224
1269
|
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
1225
1270
|
TAccountSubscriptionPda extends string ? WritableAccount<TAccountSubscriptionPda> : TAccountSubscriptionPda,
|
|
1271
|
+
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1226
1272
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
1227
1273
|
TAccountSelfProgram extends string ? ReadonlyAccount<TAccountSelfProgram> : TAccountSelfProgram,
|
|
1228
1274
|
...TRemainingAccounts
|
|
@@ -1234,36 +1280,40 @@ type ResumeSubscriptionInstructionDataArgs = {};
|
|
|
1234
1280
|
declare function getResumeSubscriptionInstructionDataEncoder(): FixedSizeEncoder<ResumeSubscriptionInstructionDataArgs>;
|
|
1235
1281
|
declare function getResumeSubscriptionInstructionDataDecoder(): FixedSizeDecoder<ResumeSubscriptionInstructionData>;
|
|
1236
1282
|
declare function getResumeSubscriptionInstructionDataCodec(): FixedSizeCodec<ResumeSubscriptionInstructionDataArgs, ResumeSubscriptionInstructionData>;
|
|
1237
|
-
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> = {
|
|
1238
1284
|
/** The subscriber resuming the subscription */
|
|
1239
1285
|
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
1240
1286
|
/** The plan PDA for the subscription */
|
|
1241
1287
|
planPda: Address<TAccountPlanPda>;
|
|
1242
1288
|
/** The subscription PDA being resumed */
|
|
1243
1289
|
subscriptionPda?: Address<TAccountSubscriptionPda>;
|
|
1290
|
+
/** The subscriber's SubscriptionAuthority PDA for the plan's mint */
|
|
1291
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1244
1292
|
/** The event authority PDA */
|
|
1245
1293
|
eventAuthority?: Address<TAccountEventAuthority>;
|
|
1246
1294
|
/** This program (for self-CPI) */
|
|
1247
1295
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1248
1296
|
};
|
|
1249
|
-
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?: {
|
|
1250
1298
|
programAddress?: TProgramAddress;
|
|
1251
|
-
}): Promise<ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
1252
|
-
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> = {
|
|
1253
1301
|
/** The subscriber resuming the subscription */
|
|
1254
1302
|
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
1255
1303
|
/** The plan PDA for the subscription */
|
|
1256
1304
|
planPda: Address<TAccountPlanPda>;
|
|
1257
1305
|
/** The subscription PDA being resumed */
|
|
1258
1306
|
subscriptionPda: Address<TAccountSubscriptionPda>;
|
|
1307
|
+
/** The subscriber's SubscriptionAuthority PDA for the plan's mint */
|
|
1308
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1259
1309
|
/** The event authority PDA */
|
|
1260
|
-
eventAuthority
|
|
1310
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1261
1311
|
/** This program (for self-CPI) */
|
|
1262
1312
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1263
1313
|
};
|
|
1264
|
-
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?: {
|
|
1265
1315
|
programAddress?: TProgramAddress;
|
|
1266
|
-
}): ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>;
|
|
1316
|
+
}): ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>;
|
|
1267
1317
|
type ParsedResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1268
1318
|
programAddress: Address<TProgram>;
|
|
1269
1319
|
accounts: {
|
|
@@ -1273,15 +1323,118 @@ type ParsedResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCR
|
|
|
1273
1323
|
planPda: TAccountMetas[1];
|
|
1274
1324
|
/** The subscription PDA being resumed */
|
|
1275
1325
|
subscriptionPda: TAccountMetas[2];
|
|
1326
|
+
/** The subscriber's SubscriptionAuthority PDA for the plan's mint */
|
|
1327
|
+
subscriptionAuthority: TAccountMetas[3];
|
|
1276
1328
|
/** The event authority PDA */
|
|
1277
|
-
eventAuthority: TAccountMetas[
|
|
1329
|
+
eventAuthority: TAccountMetas[4];
|
|
1278
1330
|
/** This program (for self-CPI) */
|
|
1279
|
-
selfProgram: TAccountMetas[
|
|
1331
|
+
selfProgram: TAccountMetas[5];
|
|
1280
1332
|
};
|
|
1281
1333
|
data: ResumeSubscriptionInstructionData;
|
|
1282
1334
|
};
|
|
1283
1335
|
declare function parseResumeSubscriptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResumeSubscriptionInstruction<TProgram, TAccountMetas>;
|
|
1284
1336
|
|
|
1337
|
+
/**
|
|
1338
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1339
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1340
|
+
* to add features, then rerun Codama to update it.
|
|
1341
|
+
*
|
|
1342
|
+
* @see https://github.com/codama-idl/codama
|
|
1343
|
+
*/
|
|
1344
|
+
|
|
1345
|
+
declare const REVOKE_ABANDONED_DELEGATION_DISCRIMINATOR = 15;
|
|
1346
|
+
declare function getRevokeAbandonedDelegationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1347
|
+
type RevokeAbandonedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountDelegationAccount extends string | AccountMeta<string> = string, TAccountSubscriptionAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1348
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
1349
|
+
TAccountDelegationAccount extends string ? WritableAccount<TAccountDelegationAccount> : TAccountDelegationAccount,
|
|
1350
|
+
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1351
|
+
...TRemainingAccounts
|
|
1352
|
+
]>;
|
|
1353
|
+
type RevokeAbandonedDelegationInstructionData = {
|
|
1354
|
+
discriminator: number;
|
|
1355
|
+
};
|
|
1356
|
+
type RevokeAbandonedDelegationInstructionDataArgs = {};
|
|
1357
|
+
declare function getRevokeAbandonedDelegationInstructionDataEncoder(): FixedSizeEncoder<RevokeAbandonedDelegationInstructionDataArgs>;
|
|
1358
|
+
declare function getRevokeAbandonedDelegationInstructionDataDecoder(): FixedSizeDecoder<RevokeAbandonedDelegationInstructionData>;
|
|
1359
|
+
declare function getRevokeAbandonedDelegationInstructionDataCodec(): FixedSizeCodec<RevokeAbandonedDelegationInstructionDataArgs, RevokeAbandonedDelegationInstructionData>;
|
|
1360
|
+
type RevokeAbandonedDelegationInput<TAccountPayer extends string = string, TAccountDelegationAccount extends string = string, TAccountSubscriptionAuthority extends string = string> = {
|
|
1361
|
+
/** The recorded payer reclaiming rent */
|
|
1362
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
1363
|
+
/** The fixed or recurring delegation PDA to close */
|
|
1364
|
+
delegationAccount: Address<TAccountDelegationAccount>;
|
|
1365
|
+
/** The delegation's recorded SubscriptionAuthority PDA (may be closed) */
|
|
1366
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1367
|
+
};
|
|
1368
|
+
declare function getRevokeAbandonedDelegationInstruction<TAccountPayer extends string, TAccountDelegationAccount extends string, TAccountSubscriptionAuthority extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeAbandonedDelegationInput<TAccountPayer, TAccountDelegationAccount, TAccountSubscriptionAuthority>, config?: {
|
|
1369
|
+
programAddress?: TProgramAddress;
|
|
1370
|
+
}): RevokeAbandonedDelegationInstruction<TProgramAddress, TAccountPayer, TAccountDelegationAccount, TAccountSubscriptionAuthority>;
|
|
1371
|
+
type ParsedRevokeAbandonedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1372
|
+
programAddress: Address<TProgram>;
|
|
1373
|
+
accounts: {
|
|
1374
|
+
/** The recorded payer reclaiming rent */
|
|
1375
|
+
payer: TAccountMetas[0];
|
|
1376
|
+
/** The fixed or recurring delegation PDA to close */
|
|
1377
|
+
delegationAccount: TAccountMetas[1];
|
|
1378
|
+
/** The delegation's recorded SubscriptionAuthority PDA (may be closed) */
|
|
1379
|
+
subscriptionAuthority: TAccountMetas[2];
|
|
1380
|
+
};
|
|
1381
|
+
data: RevokeAbandonedDelegationInstructionData;
|
|
1382
|
+
};
|
|
1383
|
+
declare function parseRevokeAbandonedDelegationInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeAbandonedDelegationInstruction<TProgram, TAccountMetas>;
|
|
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
|
+
|
|
1285
1438
|
/**
|
|
1286
1439
|
* This code was AUTOGENERATED using the Codama library.
|
|
1287
1440
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1325,6 +1478,86 @@ type ParsedRevokeDelegationInstruction<TProgram extends string = typeof SUBSCRIP
|
|
|
1325
1478
|
};
|
|
1326
1479
|
declare function parseRevokeDelegationInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeDelegationInstruction<TProgram, TAccountMetas>;
|
|
1327
1480
|
|
|
1481
|
+
/**
|
|
1482
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1483
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1484
|
+
* to add features, then rerun Codama to update it.
|
|
1485
|
+
*
|
|
1486
|
+
* @see https://github.com/codama-idl/codama
|
|
1487
|
+
*/
|
|
1488
|
+
|
|
1489
|
+
declare const REVOKE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR = 14;
|
|
1490
|
+
declare function getRevokeSubscriptionAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
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,
|
|
1493
|
+
TAccountUserAta extends string ? WritableAccount<TAccountUserAta> : TAccountUserAta,
|
|
1494
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1495
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1496
|
+
TAccountSubscriptionAuthority extends string ? WritableAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1497
|
+
...(TAccountReceiver extends undefined ? [] : [TAccountReceiver extends string ? WritableAccount<TAccountReceiver> : TAccountReceiver]),
|
|
1498
|
+
...TRemainingAccounts
|
|
1499
|
+
]>;
|
|
1500
|
+
type RevokeSubscriptionAuthorityInstructionData = {
|
|
1501
|
+
discriminator: number;
|
|
1502
|
+
};
|
|
1503
|
+
type RevokeSubscriptionAuthorityInstructionDataArgs = {};
|
|
1504
|
+
declare function getRevokeSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<RevokeSubscriptionAuthorityInstructionDataArgs>;
|
|
1505
|
+
declare function getRevokeSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<RevokeSubscriptionAuthorityInstructionData>;
|
|
1506
|
+
declare function getRevokeSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<RevokeSubscriptionAuthorityInstructionDataArgs, RevokeSubscriptionAuthorityInstructionData>;
|
|
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) */
|
|
1526
|
+
user: TransactionSigner<TAccountUser>;
|
|
1527
|
+
/** The user's ATA whose delegate is being revoked */
|
|
1528
|
+
userAta: Address<TAccountUserAta>;
|
|
1529
|
+
/** The token mint of the user's ATA */
|
|
1530
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1531
|
+
/** Token program */
|
|
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>;
|
|
1537
|
+
};
|
|
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?: {
|
|
1539
|
+
programAddress?: TProgramAddress;
|
|
1540
|
+
}): RevokeSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>;
|
|
1541
|
+
type ParsedRevokeSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1542
|
+
programAddress: Address<TProgram>;
|
|
1543
|
+
accounts: {
|
|
1544
|
+
/** The ATA owner: revokes the program's delegate and, when still open, closes the SubscriptionAuthority PDA (receives rent when self-funded) */
|
|
1545
|
+
user: TAccountMetas[0];
|
|
1546
|
+
/** The user's ATA whose delegate is being revoked */
|
|
1547
|
+
userAta: TAccountMetas[1];
|
|
1548
|
+
/** The token mint of the user's ATA */
|
|
1549
|
+
tokenMint: TAccountMetas[2];
|
|
1550
|
+
/** Token program */
|
|
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;
|
|
1556
|
+
};
|
|
1557
|
+
data: RevokeSubscriptionAuthorityInstructionData;
|
|
1558
|
+
};
|
|
1559
|
+
declare function parseRevokeSubscriptionAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeSubscriptionAuthorityInstruction<TProgram, TAccountMetas>;
|
|
1560
|
+
|
|
1328
1561
|
/**
|
|
1329
1562
|
* This code was AUTOGENERATED using the Codama library.
|
|
1330
1563
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1335,7 +1568,7 @@ declare function parseRevokeDelegationInstruction<TProgram extends string, TAcco
|
|
|
1335
1568
|
|
|
1336
1569
|
declare const SUBSCRIBE_DISCRIMINATOR = 11;
|
|
1337
1570
|
declare function getSubscribeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1338
|
-
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<[
|
|
1339
1572
|
TAccountSubscriber extends string ? WritableSignerAccount<TAccountSubscriber> & AccountSignerMeta<TAccountSubscriber> : TAccountSubscriber,
|
|
1340
1573
|
TAccountMerchant extends string ? ReadonlyAccount<TAccountMerchant> : TAccountMerchant,
|
|
1341
1574
|
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
@@ -1344,6 +1577,9 @@ type SubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM
|
|
|
1344
1577
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1345
1578
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
1346
1579
|
TAccountSelfProgram extends string ? ReadonlyAccount<TAccountSelfProgram> : TAccountSelfProgram,
|
|
1580
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
1581
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
1582
|
+
]),
|
|
1347
1583
|
...TRemainingAccounts
|
|
1348
1584
|
]>;
|
|
1349
1585
|
type SubscribeInstructionData = {
|
|
@@ -1356,7 +1592,7 @@ type SubscribeInstructionDataArgs = {
|
|
|
1356
1592
|
declare function getSubscribeInstructionDataEncoder(): FixedSizeEncoder<SubscribeInstructionDataArgs>;
|
|
1357
1593
|
declare function getSubscribeInstructionDataDecoder(): FixedSizeDecoder<SubscribeInstructionData>;
|
|
1358
1594
|
declare function getSubscribeInstructionDataCodec(): FixedSizeCodec<SubscribeInstructionDataArgs, SubscribeInstructionData>;
|
|
1359
|
-
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> = {
|
|
1360
1596
|
/** The subscriber creating the subscription (pays rent) */
|
|
1361
1597
|
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
1362
1598
|
/** The merchant who owns the plan */
|
|
@@ -1373,12 +1609,14 @@ type SubscribeAsyncInput<TAccountSubscriber extends string = string, TAccountMer
|
|
|
1373
1609
|
eventAuthority?: Address<TAccountEventAuthority>;
|
|
1374
1610
|
/** This program (for self-CPI) */
|
|
1375
1611
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1612
|
+
/** Optional sponsor that funds the account rent. Defaults to the subscriber/signer when omitted. */
|
|
1613
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1376
1614
|
subscribeData: SubscribeInstructionDataArgs['subscribeData'];
|
|
1377
1615
|
};
|
|
1378
|
-
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?: {
|
|
1379
1617
|
programAddress?: TProgramAddress;
|
|
1380
|
-
}): Promise<SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
1381
|
-
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> = {
|
|
1382
1620
|
/** The subscriber creating the subscription (pays rent) */
|
|
1383
1621
|
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
1384
1622
|
/** The merchant who owns the plan */
|
|
@@ -1392,14 +1630,16 @@ type SubscribeInput$1<TAccountSubscriber extends string = string, TAccountMercha
|
|
|
1392
1630
|
/** The system program */
|
|
1393
1631
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1394
1632
|
/** The event authority PDA */
|
|
1395
|
-
eventAuthority
|
|
1633
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
1396
1634
|
/** This program (for self-CPI) */
|
|
1397
1635
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1636
|
+
/** Optional sponsor that funds the account rent. Defaults to the subscriber/signer when omitted. */
|
|
1637
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1398
1638
|
subscribeData: SubscribeInstructionDataArgs['subscribeData'];
|
|
1399
1639
|
};
|
|
1400
|
-
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?: {
|
|
1401
1641
|
programAddress?: TProgramAddress;
|
|
1402
|
-
}): SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram>;
|
|
1642
|
+
}): SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>;
|
|
1403
1643
|
type ParsedSubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1404
1644
|
programAddress: Address<TProgram>;
|
|
1405
1645
|
accounts: {
|
|
@@ -1419,6 +1659,8 @@ type ParsedSubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_P
|
|
|
1419
1659
|
eventAuthority: TAccountMetas[6];
|
|
1420
1660
|
/** This program (for self-CPI) */
|
|
1421
1661
|
selfProgram: TAccountMetas[7];
|
|
1662
|
+
/** Optional sponsor that funds the account rent. Defaults to the subscriber/signer when omitted. */
|
|
1663
|
+
payer?: TAccountMetas[8] | undefined;
|
|
1422
1664
|
};
|
|
1423
1665
|
data: SubscribeInstructionData;
|
|
1424
1666
|
};
|
|
@@ -1434,7 +1676,7 @@ declare function parseSubscribeInstruction<TProgram extends string, TAccountMeta
|
|
|
1434
1676
|
|
|
1435
1677
|
declare const TRANSFER_FIXED_DISCRIMINATOR = 4;
|
|
1436
1678
|
declare function getTransferFixedDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1437
|
-
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<[
|
|
1438
1680
|
TAccountDelegationPda extends string ? WritableAccount<TAccountDelegationPda> : TAccountDelegationPda,
|
|
1439
1681
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1440
1682
|
TAccountDelegatorAta extends string ? WritableAccount<TAccountDelegatorAta> : TAccountDelegatorAta,
|
|
@@ -1456,7 +1698,7 @@ type TransferFixedInstructionDataArgs = {
|
|
|
1456
1698
|
declare function getTransferFixedInstructionDataEncoder(): FixedSizeEncoder<TransferFixedInstructionDataArgs>;
|
|
1457
1699
|
declare function getTransferFixedInstructionDataDecoder(): FixedSizeDecoder<TransferFixedInstructionData>;
|
|
1458
1700
|
declare function getTransferFixedInstructionDataCodec(): FixedSizeCodec<TransferFixedInstructionDataArgs, TransferFixedInstructionData>;
|
|
1459
|
-
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> = {
|
|
1460
1702
|
/** The fixed delegation PDA to transfer from */
|
|
1461
1703
|
delegationPda: Address<TAccountDelegationPda>;
|
|
1462
1704
|
/** The subscription-authority PDA */
|
|
@@ -1477,6 +1719,30 @@ type TransferFixedInput<TAccountDelegationPda extends string = string, TAccountS
|
|
|
1477
1719
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1478
1720
|
transferData: TransferFixedInstructionDataArgs['transferData'];
|
|
1479
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
|
+
};
|
|
1480
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?: {
|
|
1481
1747
|
programAddress?: TProgramAddress;
|
|
1482
1748
|
}): TransferFixedInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>;
|
|
@@ -1516,7 +1782,7 @@ declare function parseTransferFixedInstruction<TProgram extends string, TAccount
|
|
|
1516
1782
|
|
|
1517
1783
|
declare const TRANSFER_RECURRING_DISCRIMINATOR = 5;
|
|
1518
1784
|
declare function getTransferRecurringDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1519
|
-
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<[
|
|
1520
1786
|
TAccountDelegationPda extends string ? WritableAccount<TAccountDelegationPda> : TAccountDelegationPda,
|
|
1521
1787
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1522
1788
|
TAccountDelegatorAta extends string ? WritableAccount<TAccountDelegatorAta> : TAccountDelegatorAta,
|
|
@@ -1538,7 +1804,7 @@ type TransferRecurringInstructionDataArgs = {
|
|
|
1538
1804
|
declare function getTransferRecurringInstructionDataEncoder(): FixedSizeEncoder<TransferRecurringInstructionDataArgs>;
|
|
1539
1805
|
declare function getTransferRecurringInstructionDataDecoder(): FixedSizeDecoder<TransferRecurringInstructionData>;
|
|
1540
1806
|
declare function getTransferRecurringInstructionDataCodec(): FixedSizeCodec<TransferRecurringInstructionDataArgs, TransferRecurringInstructionData>;
|
|
1541
|
-
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> = {
|
|
1542
1808
|
/** The recurring delegation PDA to transfer from */
|
|
1543
1809
|
delegationPda: Address<TAccountDelegationPda>;
|
|
1544
1810
|
/** The subscription-authority PDA */
|
|
@@ -1559,6 +1825,30 @@ type TransferRecurringInput<TAccountDelegationPda extends string = string, TAcco
|
|
|
1559
1825
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1560
1826
|
transferData: TransferRecurringInstructionDataArgs['transferData'];
|
|
1561
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
|
+
};
|
|
1562
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?: {
|
|
1563
1853
|
programAddress?: TProgramAddress;
|
|
1564
1854
|
}): TransferRecurringInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>;
|
|
@@ -1598,7 +1888,7 @@ declare function parseTransferRecurringInstruction<TProgram extends string, TAcc
|
|
|
1598
1888
|
|
|
1599
1889
|
declare const TRANSFER_SUBSCRIPTION_DISCRIMINATOR = 10;
|
|
1600
1890
|
declare function getTransferSubscriptionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1601
|
-
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<[
|
|
1602
1892
|
TAccountSubscriptionPda extends string ? WritableAccount<TAccountSubscriptionPda> : TAccountSubscriptionPda,
|
|
1603
1893
|
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
1604
1894
|
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
@@ -1621,7 +1911,7 @@ type TransferSubscriptionInstructionDataArgs = {
|
|
|
1621
1911
|
declare function getTransferSubscriptionInstructionDataEncoder(): FixedSizeEncoder<TransferSubscriptionInstructionDataArgs>;
|
|
1622
1912
|
declare function getTransferSubscriptionInstructionDataDecoder(): FixedSizeDecoder<TransferSubscriptionInstructionData>;
|
|
1623
1913
|
declare function getTransferSubscriptionInstructionDataCodec(): FixedSizeCodec<TransferSubscriptionInstructionDataArgs, TransferSubscriptionInstructionData>;
|
|
1624
|
-
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> = {
|
|
1625
1915
|
/** The subscription delegation PDA */
|
|
1626
1916
|
subscriptionPda: Address<TAccountSubscriptionPda>;
|
|
1627
1917
|
/** The plan PDA */
|
|
@@ -1644,6 +1934,32 @@ type TransferSubscriptionInput$1<TAccountSubscriptionPda extends string = string
|
|
|
1644
1934
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1645
1935
|
transferData: TransferSubscriptionInstructionDataArgs['transferData'];
|
|
1646
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
|
+
};
|
|
1647
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?: {
|
|
1648
1964
|
programAddress?: TProgramAddress;
|
|
1649
1965
|
}): TransferSubscriptionInstruction<TProgramAddress, TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>;
|
|
@@ -1685,9 +2001,11 @@ declare function parseTransferSubscriptionInstruction<TProgram extends string, T
|
|
|
1685
2001
|
|
|
1686
2002
|
declare const UPDATE_PLAN_DISCRIMINATOR = 8;
|
|
1687
2003
|
declare function getUpdatePlanDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1688
|
-
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<[
|
|
1689
2005
|
TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
1690
2006
|
TAccountPlanPda extends string ? WritableAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
2007
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
2008
|
+
TAccountSelfProgram extends string ? ReadonlyAccount<TAccountSelfProgram> : TAccountSelfProgram,
|
|
1691
2009
|
...TRemainingAccounts
|
|
1692
2010
|
]>;
|
|
1693
2011
|
type UpdatePlanInstructionData = {
|
|
@@ -1700,16 +2018,34 @@ type UpdatePlanInstructionDataArgs = {
|
|
|
1700
2018
|
declare function getUpdatePlanInstructionDataEncoder(): FixedSizeEncoder<UpdatePlanInstructionDataArgs>;
|
|
1701
2019
|
declare function getUpdatePlanInstructionDataDecoder(): FixedSizeDecoder<UpdatePlanInstructionData>;
|
|
1702
2020
|
declare function getUpdatePlanInstructionDataCodec(): FixedSizeCodec<UpdatePlanInstructionDataArgs, UpdatePlanInstructionData>;
|
|
1703
|
-
type
|
|
2021
|
+
type UpdatePlanAsyncInput<TAccountOwner extends string = string, TAccountPlanPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
1704
2022
|
/** The plan owner updating the plan */
|
|
1705
2023
|
owner: TransactionSigner<TAccountOwner>;
|
|
1706
2024
|
/** The plan PDA being updated */
|
|
1707
2025
|
planPda: Address<TAccountPlanPda>;
|
|
2026
|
+
/** The event authority PDA */
|
|
2027
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
2028
|
+
/** This program (for self-CPI) */
|
|
2029
|
+
selfProgram?: Address<TAccountSelfProgram>;
|
|
1708
2030
|
updatePlanData: UpdatePlanInstructionDataArgs['updatePlanData'];
|
|
1709
2031
|
};
|
|
1710
|
-
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?: {
|
|
1711
2033
|
programAddress?: TProgramAddress;
|
|
1712
|
-
}): 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>;
|
|
1713
2049
|
type ParsedUpdatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1714
2050
|
programAddress: Address<TProgram>;
|
|
1715
2051
|
accounts: {
|
|
@@ -1717,6 +2053,10 @@ type ParsedUpdatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_
|
|
|
1717
2053
|
owner: TAccountMetas[0];
|
|
1718
2054
|
/** The plan PDA being updated */
|
|
1719
2055
|
planPda: TAccountMetas[1];
|
|
2056
|
+
/** The event authority PDA */
|
|
2057
|
+
eventAuthority: TAccountMetas[2];
|
|
2058
|
+
/** This program (for self-CPI) */
|
|
2059
|
+
selfProgram: TAccountMetas[3];
|
|
1720
2060
|
};
|
|
1721
2061
|
data: UpdatePlanInstructionData;
|
|
1722
2062
|
};
|
|
@@ -1840,6 +2180,35 @@ declare const METADATA_URI_LEN = 128;
|
|
|
1840
2180
|
/** On-chain delegation variant identifier (matches the `kind` tag in the `Delegation` union). */
|
|
1841
2181
|
type DelegationKindId = 'fixed' | 'recurring' | 'subscription';
|
|
1842
2182
|
|
|
2183
|
+
/**
|
|
2184
|
+
* Token-2022 transfer-hook account resolution, ported to `@solana/kit` from the
|
|
2185
|
+
* web3.js `@solana/spl-token` resolver (the kit client ships no equivalent).
|
|
2186
|
+
* Computes the trailing accounts a hooked `TransferChecked` must forward.
|
|
2187
|
+
*/
|
|
2188
|
+
|
|
2189
|
+
type TransferHookAccount = {
|
|
2190
|
+
address: Address;
|
|
2191
|
+
role: AccountRole;
|
|
2192
|
+
};
|
|
2193
|
+
/** Identity of the four base `Execute` accounts and the transfer amount, needed
|
|
2194
|
+
* to resolve seed- and instruction-data-derived extra accounts. */
|
|
2195
|
+
type ResolveTransferHookArgs = {
|
|
2196
|
+
amount: bigint | number;
|
|
2197
|
+
authority: Address;
|
|
2198
|
+
destination: Address;
|
|
2199
|
+
mint: Address;
|
|
2200
|
+
source: Address;
|
|
2201
|
+
tokenProgram: Address;
|
|
2202
|
+
transferHookAccounts?: TransferHookAccount[];
|
|
2203
|
+
};
|
|
2204
|
+
type ResolveRpc = Parameters<typeof fetchMint>[0];
|
|
2205
|
+
/**
|
|
2206
|
+
* Trailing hook accounts for a `TransferChecked` — `[hook program, validation PDA,
|
|
2207
|
+
* ...resolved extras]`. Returns `[]` for non-2022, no-hook, or inert mints, and
|
|
2208
|
+
* the explicit `transferHookAccounts` verbatim when provided.
|
|
2209
|
+
*/
|
|
2210
|
+
declare function resolveTransferHookAccounts(rpc: ResolveRpc, args: ResolveTransferHookArgs): Promise<TransferHookAccount[]>;
|
|
2211
|
+
|
|
1843
2212
|
type WithProgramAddress = {
|
|
1844
2213
|
programAddress?: Address;
|
|
1845
2214
|
};
|
|
@@ -1860,6 +2229,13 @@ type CloseSubscriptionAuthorityInput = WithProgramAddress & {
|
|
|
1860
2229
|
tokenMint: Address;
|
|
1861
2230
|
user: TransactionSigner;
|
|
1862
2231
|
};
|
|
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;
|
|
2235
|
+
tokenMint: Address;
|
|
2236
|
+
tokenProgram: Address;
|
|
2237
|
+
user: TransactionSigner;
|
|
2238
|
+
};
|
|
1863
2239
|
type CreateFixedDelegationInput = WithProgramAddress & {
|
|
1864
2240
|
amount: bigint | number;
|
|
1865
2241
|
delegatee: Address;
|
|
@@ -1879,6 +2255,8 @@ type CreateRecurringDelegationInput = WithProgramAddress & {
|
|
|
1879
2255
|
nonce: bigint | number;
|
|
1880
2256
|
payer?: TransactionSigner;
|
|
1881
2257
|
periodLengthS: bigint | number;
|
|
2258
|
+
/** Unix timestamp when the first period begins. Pass 0 to start when the
|
|
2259
|
+
* transaction lands on chain (requires a non-zero `expiryTs`). */
|
|
1882
2260
|
startTs: bigint | number;
|
|
1883
2261
|
tokenMint: Address;
|
|
1884
2262
|
};
|
|
@@ -1902,6 +2280,10 @@ type TransferDelegationInput = WithProgramAddress & {
|
|
|
1902
2280
|
receiverAta: Address;
|
|
1903
2281
|
tokenMint: Address;
|
|
1904
2282
|
tokenProgram: Address;
|
|
2283
|
+
/** Token-2022 transfer-hook accounts. Leave unset: the plugin client resolves
|
|
2284
|
+
* them from the mint's hook. Set to override resolution, or when calling the
|
|
2285
|
+
* overlay instruction directly (which does not auto-resolve). */
|
|
2286
|
+
transferHookAccounts?: TransferHookAccount[];
|
|
1905
2287
|
};
|
|
1906
2288
|
type TransferSubscriptionInput = WithProgramAddress & {
|
|
1907
2289
|
amount: bigint | number;
|
|
@@ -1912,6 +2294,10 @@ type TransferSubscriptionInput = WithProgramAddress & {
|
|
|
1912
2294
|
subscriptionPda: Address;
|
|
1913
2295
|
tokenMint: Address;
|
|
1914
2296
|
tokenProgram: Address;
|
|
2297
|
+
/** Token-2022 transfer-hook accounts. Leave unset: the plugin client resolves
|
|
2298
|
+
* them from the mint's hook. Set to override resolution, or when calling the
|
|
2299
|
+
* overlay instruction directly (which does not auto-resolve). */
|
|
2300
|
+
transferHookAccounts?: TransferHookAccount[];
|
|
1915
2301
|
};
|
|
1916
2302
|
type CreatePlanInput = WithProgramAddress & {
|
|
1917
2303
|
amount: bigint | number;
|
|
@@ -1930,7 +2316,7 @@ type UpdatePlanInput = WithProgramAddress & {
|
|
|
1930
2316
|
metadataUri: string;
|
|
1931
2317
|
owner: TransactionSigner;
|
|
1932
2318
|
planPda: Address;
|
|
1933
|
-
pullers
|
|
2319
|
+
pullers: Address[];
|
|
1934
2320
|
status: PlanStatus;
|
|
1935
2321
|
};
|
|
1936
2322
|
type DeletePlanInput = WithProgramAddress & {
|
|
@@ -1962,9 +2348,11 @@ type ResumeSubscriptionInput = WithProgramAddress & {
|
|
|
1962
2348
|
planPda: Address;
|
|
1963
2349
|
subscriber: TransactionSigner;
|
|
1964
2350
|
subscriptionPda?: Address;
|
|
2351
|
+
tokenMint: Address;
|
|
1965
2352
|
};
|
|
1966
2353
|
declare function getInitSubscriptionAuthorityOverlayInstructionAsync(input: InitSubscriptionAuthorityInput): Promise<Instruction>;
|
|
1967
2354
|
declare function getCloseSubscriptionAuthorityOverlayInstructionAsync(input: CloseSubscriptionAuthorityInput): Promise<Instruction>;
|
|
2355
|
+
declare function getRevokeSubscriptionAuthorityOverlayInstructionAsync(input: RevokeSubscriptionAuthorityInput): Promise<Instruction>;
|
|
1968
2356
|
declare function getCreateFixedDelegationOverlayInstructionAsync(input: CreateFixedDelegationInput): Promise<Instruction>;
|
|
1969
2357
|
declare function getCreateRecurringDelegationOverlayInstructionAsync(input: CreateRecurringDelegationInput): Promise<Instruction>;
|
|
1970
2358
|
/** Revoke a fixed/recurring delegation. For subscription PDAs use {@link getRevokeSubscriptionOverlayInstruction}. */
|
|
@@ -1978,7 +2366,7 @@ declare function getTransferFixedOverlayInstructionAsync(input: TransferDelegati
|
|
|
1978
2366
|
declare function getTransferRecurringOverlayInstructionAsync(input: TransferDelegationInput): Promise<Instruction>;
|
|
1979
2367
|
declare function getTransferSubscriptionOverlayInstructionAsync(input: TransferSubscriptionInput): Promise<Instruction>;
|
|
1980
2368
|
declare function getCreatePlanOverlayInstructionAsync(input: CreatePlanInput): Promise<Instruction>;
|
|
1981
|
-
declare function getUpdatePlanOverlayInstruction(input: UpdatePlanInput): Instruction
|
|
2369
|
+
declare function getUpdatePlanOverlayInstruction(input: UpdatePlanInput): Promise<Instruction>;
|
|
1982
2370
|
declare function getDeletePlanOverlayInstruction(input: DeletePlanInput): Instruction;
|
|
1983
2371
|
declare function getSubscribeOverlayInstructionAsync(input: SubscribeInput): Promise<Instruction>;
|
|
1984
2372
|
declare function getCancelSubscriptionOverlayInstructionAsync(input: CancelSubscriptionInput): Promise<Instruction>;
|
|
@@ -1996,11 +2384,12 @@ type SubscriptionsPluginInstructions = {
|
|
|
1996
2384
|
resumeSubscription: (input: MakeOptional<ResumeSubscriptionInput, 'subscriber'>) => Self<Promise<Instruction>>;
|
|
1997
2385
|
revokeDelegation: (input: MakeOptional<RevokeDelegationInput, 'authority'>) => Self<Instruction>;
|
|
1998
2386
|
revokeSubscription: (input: MakeOptional<RevokeSubscriptionInput, 'authority'>) => Self<Instruction>;
|
|
2387
|
+
revokeSubscriptionAuthority: (input: MakeOptional<RevokeSubscriptionAuthorityInput, 'user'>) => Self<Promise<Instruction>>;
|
|
1999
2388
|
subscribe: (input: MakeOptional<SubscribeInput, 'payer' | 'subscriber'>) => Self<Promise<Instruction>>;
|
|
2000
2389
|
transferFixed: (input: MakeOptional<TransferDelegationInput, 'delegatee'>) => Self<Promise<Instruction>>;
|
|
2001
2390
|
transferRecurring: (input: MakeOptional<TransferDelegationInput, 'delegatee'>) => Self<Promise<Instruction>>;
|
|
2002
2391
|
transferSubscription: (input: MakeOptional<TransferSubscriptionInput, 'caller'>) => Self<Promise<Instruction>>;
|
|
2003
|
-
updatePlan: (input: MakeOptional<UpdatePlanInput, 'owner'>) => Self<Instruction
|
|
2392
|
+
updatePlan: (input: MakeOptional<UpdatePlanInput, 'owner'>) => Self<Promise<Instruction>>;
|
|
2004
2393
|
};
|
|
2005
2394
|
type SubscriptionsPluginQueries = {
|
|
2006
2395
|
/** Counts of active delegations grouped by kind. */
|
|
@@ -2040,4 +2429,4 @@ declare class ValidationError extends Error {
|
|
|
2040
2429
|
constructor(message: string);
|
|
2041
2430
|
}
|
|
2042
2431
|
|
|
2043
|
-
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 ParsedRevokeDelegationInstruction, 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_DELEGATION_DISCRIMINATOR, type RawProgramAccount, type RecurringDelegation, type RecurringDelegationArgs, type RecurringDelegationSeeds, type ResumeSubscriptionAsyncInput, type ResumeSubscriptionInput, type ResumeSubscriptionInstruction, type ResumeSubscriptionInstructionData, type ResumeSubscriptionInstructionDataArgs, type RevokeDelegationInput, type RevokeDelegationInstruction, type RevokeDelegationInstructionData, type RevokeDelegationInstructionDataArgs, 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_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__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 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, getRevokeDelegationDiscriminatorBytes, getRevokeDelegationInstruction, getRevokeDelegationInstructionDataCodec, getRevokeDelegationInstructionDataDecoder, getRevokeDelegationInstructionDataEncoder, getRevokeDelegationOverlayInstruction, 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, parseRevokeDelegationInstruction, parseSubscribeInstruction, parseSubscriptionsInstruction, parseTransferFixedInstruction, parseTransferRecurringInstruction, parseTransferSubscriptionInstruction, parseUpdatePlanInstruction, 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 };
|