@solana/subscriptions 0.4.0 → 0.5.0-beta.1
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 +22 -17
- package/dist/index.cjs +832 -551
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +197 -17
- package/dist/index.d.ts +197 -17
- package/dist/index.js +811 -522
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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,
|
|
2
|
+
import { FixedSizeCodec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, Address, FetchAccountsConfig, fetchEncodedAccount, FetchAccountConfig, FixedSizeDecoder, FixedSizeEncoder, ProgramDerivedAddress, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ReadonlyUint8Array, Instruction, InstructionWithData, ClientWithRpc, GetAccountInfoApi, GetMultipleAccountsApi, ClientWithTransactionPlanning, ClientWithTransactionSending, 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
4
|
import { fetchMint } from '@solana-program/token-2022';
|
|
5
5
|
|
|
@@ -148,6 +148,24 @@ declare function getAccountDiscriminatorEncoder(): FixedSizeEncoder<AccountDiscr
|
|
|
148
148
|
declare function getAccountDiscriminatorDecoder(): FixedSizeDecoder<AccountDiscriminator>;
|
|
149
149
|
declare function getAccountDiscriminatorCodec(): FixedSizeCodec<AccountDiscriminatorArgs, AccountDiscriminator>;
|
|
150
150
|
|
|
151
|
+
/**
|
|
152
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
153
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
154
|
+
* to add features, then rerun Codama to update it.
|
|
155
|
+
*
|
|
156
|
+
* @see https://github.com/codama-idl/codama
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
type CancelSubscriptionNowData = {
|
|
160
|
+
expectedCurrentPeriodStartTs: bigint;
|
|
161
|
+
};
|
|
162
|
+
type CancelSubscriptionNowDataArgs = {
|
|
163
|
+
expectedCurrentPeriodStartTs: number | bigint;
|
|
164
|
+
};
|
|
165
|
+
declare function getCancelSubscriptionNowDataEncoder(): FixedSizeEncoder<CancelSubscriptionNowDataArgs>;
|
|
166
|
+
declare function getCancelSubscriptionNowDataDecoder(): FixedSizeDecoder<CancelSubscriptionNowData>;
|
|
167
|
+
declare function getCancelSubscriptionNowDataCodec(): FixedSizeCodec<CancelSubscriptionNowDataArgs, CancelSubscriptionNowData>;
|
|
168
|
+
|
|
151
169
|
/**
|
|
152
170
|
* This code was AUTOGENERATED using the Codama library.
|
|
153
171
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -299,6 +317,24 @@ declare function getPlanTermsEncoder(): FixedSizeEncoder<PlanTermsArgs>;
|
|
|
299
317
|
declare function getPlanTermsDecoder(): FixedSizeDecoder<PlanTerms>;
|
|
300
318
|
declare function getPlanTermsCodec(): FixedSizeCodec<PlanTermsArgs, PlanTerms>;
|
|
301
319
|
|
|
320
|
+
/**
|
|
321
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
322
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
323
|
+
* to add features, then rerun Codama to update it.
|
|
324
|
+
*
|
|
325
|
+
* @see https://github.com/codama-idl/codama
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
type ResumeData = {
|
|
329
|
+
expectedExpiresAtTs: bigint;
|
|
330
|
+
};
|
|
331
|
+
type ResumeDataArgs = {
|
|
332
|
+
expectedExpiresAtTs: number | bigint;
|
|
333
|
+
};
|
|
334
|
+
declare function getResumeDataEncoder(): FixedSizeEncoder<ResumeDataArgs>;
|
|
335
|
+
declare function getResumeDataDecoder(): FixedSizeDecoder<ResumeData>;
|
|
336
|
+
declare function getResumeDataCodec(): FixedSizeCodec<ResumeDataArgs, ResumeData>;
|
|
337
|
+
|
|
302
338
|
/**
|
|
303
339
|
* This code was AUTOGENERATED using the Codama library.
|
|
304
340
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -364,12 +400,20 @@ type UpdatePlanData = {
|
|
|
364
400
|
endTs: bigint;
|
|
365
401
|
pullers: Array<Address>;
|
|
366
402
|
metadataUri: string;
|
|
403
|
+
expectedCreatedAt: bigint;
|
|
404
|
+
expectedEndTs: bigint;
|
|
405
|
+
expectedPullers: Array<Address>;
|
|
406
|
+
expectedMetadataUri: string;
|
|
367
407
|
};
|
|
368
408
|
type UpdatePlanDataArgs = {
|
|
369
409
|
status: number;
|
|
370
410
|
endTs: number | bigint;
|
|
371
411
|
pullers: Array<Address>;
|
|
372
412
|
metadataUri: string;
|
|
413
|
+
expectedCreatedAt: number | bigint;
|
|
414
|
+
expectedEndTs: number | bigint;
|
|
415
|
+
expectedPullers: Array<Address>;
|
|
416
|
+
expectedMetadataUri: string;
|
|
373
417
|
};
|
|
374
418
|
declare function getUpdatePlanDataEncoder(): FixedSizeEncoder<UpdatePlanDataArgs>;
|
|
375
419
|
declare function getUpdatePlanDataDecoder(): FixedSizeDecoder<UpdatePlanData>;
|
|
@@ -667,12 +711,14 @@ declare const SUBSCRIPTIONS_ERROR__ALREADY_SUBSCRIBED = 517;
|
|
|
667
711
|
declare const SUBSCRIPTIONS_ERROR__PLAN_ALREADY_EXISTS = 518;
|
|
668
712
|
declare const SUBSCRIPTIONS_ERROR__PLAN_TERMS_MISMATCH = 519;
|
|
669
713
|
declare const SUBSCRIPTIONS_ERROR__PLAN_END_TS_CANNOT_EXTEND = 520;
|
|
714
|
+
declare const SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_APPROVAL = 521;
|
|
715
|
+
declare const SUBSCRIPTIONS_ERROR__STALE_PLAN_APPROVAL = 522;
|
|
670
716
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_AUTHORITY = 600;
|
|
671
717
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_DATA = 601;
|
|
672
718
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_TAG = 602;
|
|
673
719
|
declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_DISCRIMINATOR = 603;
|
|
674
720
|
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;
|
|
721
|
+
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_PLAN_APPROVAL | typeof SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_APPROVAL | 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;
|
|
676
722
|
declare function getSubscriptionsErrorMessage(code: SubscriptionsError): string;
|
|
677
723
|
declare function isSubscriptionsError<TProgramErrorCode extends SubscriptionsError>(error: unknown, transactionMessage: {
|
|
678
724
|
instructions: Record<number, {
|
|
@@ -718,7 +764,8 @@ declare enum SubscriptionsInstruction {
|
|
|
718
764
|
ResumeSubscription = 13,
|
|
719
765
|
RevokeSubscriptionAuthority = 14,
|
|
720
766
|
RevokeAbandonedDelegation = 15,
|
|
721
|
-
RevokeAbandonedSubscription = 16
|
|
767
|
+
RevokeAbandonedSubscription = 16,
|
|
768
|
+
CancelSubscriptionNow = 17
|
|
722
769
|
}
|
|
723
770
|
declare function identifySubscriptionsInstruction(instruction: {
|
|
724
771
|
data: ReadonlyUint8Array;
|
|
@@ -757,12 +804,16 @@ type ParsedSubscriptionsInstruction<TProgram extends string = 'De1egAFMkMWZSN5rY
|
|
|
757
804
|
instructionType: SubscriptionsInstruction.RevokeAbandonedDelegation;
|
|
758
805
|
} & ParsedRevokeAbandonedDelegationInstruction<TProgram>) | ({
|
|
759
806
|
instructionType: SubscriptionsInstruction.RevokeAbandonedSubscription;
|
|
760
|
-
} & ParsedRevokeAbandonedSubscriptionInstruction<TProgram>)
|
|
807
|
+
} & ParsedRevokeAbandonedSubscriptionInstruction<TProgram>) | ({
|
|
808
|
+
instructionType: SubscriptionsInstruction.CancelSubscriptionNow;
|
|
809
|
+
} & ParsedCancelSubscriptionNowInstruction<TProgram>);
|
|
761
810
|
declare function parseSubscriptionsInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSubscriptionsInstruction<TProgram>;
|
|
762
811
|
type SubscriptionsPlugin$1 = {
|
|
763
812
|
accounts: SubscriptionsPluginAccounts;
|
|
764
813
|
instructions: SubscriptionsPluginInstructions$1;
|
|
765
814
|
pdas: SubscriptionsPluginPdas;
|
|
815
|
+
identifyInstruction: typeof identifySubscriptionsInstruction;
|
|
816
|
+
parseInstruction: typeof parseSubscriptionsInstruction;
|
|
766
817
|
};
|
|
767
818
|
type SubscriptionsPluginAccounts = {
|
|
768
819
|
fixedDelegation: ReturnType<typeof getFixedDelegationCodec> & SelfFetchFunctions<FixedDelegationArgs, FixedDelegation>;
|
|
@@ -790,6 +841,7 @@ type SubscriptionsPluginInstructions$1 = {
|
|
|
790
841
|
revokeSubscriptionAuthority: (input: RevokeSubscriptionAuthorityAsyncInput) => ReturnType<typeof getRevokeSubscriptionAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
|
|
791
842
|
revokeAbandonedDelegation: (input: RevokeAbandonedDelegationInput) => ReturnType<typeof getRevokeAbandonedDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
792
843
|
revokeAbandonedSubscription: (input: RevokeAbandonedSubscriptionInput) => ReturnType<typeof getRevokeAbandonedSubscriptionInstruction> & SelfPlanAndSendFunctions;
|
|
844
|
+
cancelSubscriptionNow: (input: CancelSubscriptionNowAsyncInput) => ReturnType<typeof getCancelSubscriptionNowInstructionAsync> & SelfPlanAndSendFunctions;
|
|
793
845
|
};
|
|
794
846
|
type SubscriptionsPluginPdas = {
|
|
795
847
|
fixedDelegation: typeof findFixedDelegationPda;
|
|
@@ -874,6 +926,91 @@ type ParsedCancelSubscriptionInstruction<TProgram extends string = typeof SUBSCR
|
|
|
874
926
|
};
|
|
875
927
|
declare function parseCancelSubscriptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCancelSubscriptionInstruction<TProgram, TAccountMetas>;
|
|
876
928
|
|
|
929
|
+
/**
|
|
930
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
931
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
932
|
+
* to add features, then rerun Codama to update it.
|
|
933
|
+
*
|
|
934
|
+
* @see https://github.com/codama-idl/codama
|
|
935
|
+
*/
|
|
936
|
+
|
|
937
|
+
declare const CANCEL_SUBSCRIPTION_NOW_DISCRIMINATOR = 17;
|
|
938
|
+
declare function getCancelSubscriptionNowDiscriminatorBytes(): ReadonlyUint8Array;
|
|
939
|
+
type CancelSubscriptionNowInstruction<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, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountSelfProgram extends string | AccountMeta<string> = 'De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
940
|
+
TAccountSubscriber extends string ? ReadonlySignerAccount<TAccountSubscriber> & AccountSignerMeta<TAccountSubscriber> : TAccountSubscriber,
|
|
941
|
+
TAccountMerchant extends string ? ReadonlySignerAccount<TAccountMerchant> & AccountSignerMeta<TAccountMerchant> : TAccountMerchant,
|
|
942
|
+
TAccountPlanPda extends string ? ReadonlyAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
943
|
+
TAccountSubscriptionPda extends string ? WritableAccount<TAccountSubscriptionPda> : TAccountSubscriptionPda,
|
|
944
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
945
|
+
TAccountSelfProgram extends string ? ReadonlyAccount<TAccountSelfProgram> : TAccountSelfProgram,
|
|
946
|
+
...TRemainingAccounts
|
|
947
|
+
]>;
|
|
948
|
+
type CancelSubscriptionNowInstructionData = {
|
|
949
|
+
discriminator: number;
|
|
950
|
+
cancelSubscriptionNowData: CancelSubscriptionNowData;
|
|
951
|
+
};
|
|
952
|
+
type CancelSubscriptionNowInstructionDataArgs = {
|
|
953
|
+
cancelSubscriptionNowData: CancelSubscriptionNowDataArgs;
|
|
954
|
+
};
|
|
955
|
+
declare function getCancelSubscriptionNowInstructionDataEncoder(): FixedSizeEncoder<CancelSubscriptionNowInstructionDataArgs>;
|
|
956
|
+
declare function getCancelSubscriptionNowInstructionDataDecoder(): FixedSizeDecoder<CancelSubscriptionNowInstructionData>;
|
|
957
|
+
declare function getCancelSubscriptionNowInstructionDataCodec(): FixedSizeCodec<CancelSubscriptionNowInstructionDataArgs, CancelSubscriptionNowInstructionData>;
|
|
958
|
+
type CancelSubscriptionNowAsyncInput<TAccountSubscriber extends string = string, TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
959
|
+
/** The subscriber cancelling the subscription */
|
|
960
|
+
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
961
|
+
/** The owner of the subscription plan approving immediate cancellation */
|
|
962
|
+
merchant: TransactionSigner<TAccountMerchant>;
|
|
963
|
+
/** The plan PDA for the subscription */
|
|
964
|
+
planPda: Address<TAccountPlanPda>;
|
|
965
|
+
/** The subscription PDA being cancelled immediately */
|
|
966
|
+
subscriptionPda?: Address<TAccountSubscriptionPda>;
|
|
967
|
+
/** The event authority PDA */
|
|
968
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
969
|
+
/** This program (for self-CPI) */
|
|
970
|
+
selfProgram?: Address<TAccountSelfProgram>;
|
|
971
|
+
cancelSubscriptionNowData: CancelSubscriptionNowInstructionDataArgs['cancelSubscriptionNowData'];
|
|
972
|
+
};
|
|
973
|
+
declare function getCancelSubscriptionNowInstructionAsync<TAccountSubscriber extends string, TAccountMerchant extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CancelSubscriptionNowAsyncInput<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
974
|
+
programAddress?: TProgramAddress;
|
|
975
|
+
}): Promise<CancelSubscriptionNowInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>>;
|
|
976
|
+
type CancelSubscriptionNowInput$1<TAccountSubscriber extends string = string, TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
|
|
977
|
+
/** The subscriber cancelling the subscription */
|
|
978
|
+
subscriber: TransactionSigner<TAccountSubscriber>;
|
|
979
|
+
/** The owner of the subscription plan approving immediate cancellation */
|
|
980
|
+
merchant: TransactionSigner<TAccountMerchant>;
|
|
981
|
+
/** The plan PDA for the subscription */
|
|
982
|
+
planPda: Address<TAccountPlanPda>;
|
|
983
|
+
/** The subscription PDA being cancelled immediately */
|
|
984
|
+
subscriptionPda: Address<TAccountSubscriptionPda>;
|
|
985
|
+
/** The event authority PDA */
|
|
986
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
987
|
+
/** This program (for self-CPI) */
|
|
988
|
+
selfProgram?: Address<TAccountSelfProgram>;
|
|
989
|
+
cancelSubscriptionNowData: CancelSubscriptionNowInstructionDataArgs['cancelSubscriptionNowData'];
|
|
990
|
+
};
|
|
991
|
+
declare function getCancelSubscriptionNowInstruction<TAccountSubscriber extends string, TAccountMerchant extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CancelSubscriptionNowInput$1<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
|
|
992
|
+
programAddress?: TProgramAddress;
|
|
993
|
+
}): CancelSubscriptionNowInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>;
|
|
994
|
+
type ParsedCancelSubscriptionNowInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
995
|
+
programAddress: Address<TProgram>;
|
|
996
|
+
accounts: {
|
|
997
|
+
/** The subscriber cancelling the subscription */
|
|
998
|
+
subscriber: TAccountMetas[0];
|
|
999
|
+
/** The owner of the subscription plan approving immediate cancellation */
|
|
1000
|
+
merchant: TAccountMetas[1];
|
|
1001
|
+
/** The plan PDA for the subscription */
|
|
1002
|
+
planPda: TAccountMetas[2];
|
|
1003
|
+
/** The subscription PDA being cancelled immediately */
|
|
1004
|
+
subscriptionPda: TAccountMetas[3];
|
|
1005
|
+
/** The event authority PDA */
|
|
1006
|
+
eventAuthority: TAccountMetas[4];
|
|
1007
|
+
/** This program (for self-CPI) */
|
|
1008
|
+
selfProgram: TAccountMetas[5];
|
|
1009
|
+
};
|
|
1010
|
+
data: CancelSubscriptionNowInstructionData;
|
|
1011
|
+
};
|
|
1012
|
+
declare function parseCancelSubscriptionNowInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCancelSubscriptionNowInstruction<TProgram, TAccountMetas>;
|
|
1013
|
+
|
|
877
1014
|
/**
|
|
878
1015
|
* This code was AUTOGENERATED using the Codama library.
|
|
879
1016
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1001,12 +1138,15 @@ declare function parseCreateFixedDelegationInstruction<TProgram extends string,
|
|
|
1001
1138
|
|
|
1002
1139
|
declare const CREATE_PLAN_DISCRIMINATOR = 7;
|
|
1003
1140
|
declare function getCreatePlanDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1004
|
-
type CreatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMerchant extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1141
|
+
type CreatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMerchant extends string | AccountMeta<string> = string, TAccountPlanPda extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountPayer extends string | AccountMeta<string> | undefined = undefined, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1005
1142
|
TAccountMerchant extends string ? WritableSignerAccount<TAccountMerchant> & AccountSignerMeta<TAccountMerchant> : TAccountMerchant,
|
|
1006
1143
|
TAccountPlanPda extends string ? WritableAccount<TAccountPlanPda> : TAccountPlanPda,
|
|
1007
1144
|
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1008
1145
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
1009
1146
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1147
|
+
...(TAccountPayer extends undefined ? [] : [
|
|
1148
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer
|
|
1149
|
+
]),
|
|
1010
1150
|
...TRemainingAccounts
|
|
1011
1151
|
]>;
|
|
1012
1152
|
type CreatePlanInstructionData = {
|
|
@@ -1019,7 +1159,7 @@ type CreatePlanInstructionDataArgs = {
|
|
|
1019
1159
|
declare function getCreatePlanInstructionDataEncoder(): FixedSizeEncoder<CreatePlanInstructionDataArgs>;
|
|
1020
1160
|
declare function getCreatePlanInstructionDataDecoder(): FixedSizeDecoder<CreatePlanInstructionData>;
|
|
1021
1161
|
declare function getCreatePlanInstructionDataCodec(): FixedSizeCodec<CreatePlanInstructionDataArgs, CreatePlanInstructionData>;
|
|
1022
|
-
type CreatePlanInput$1<TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountTokenMint extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1162
|
+
type CreatePlanInput$1<TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountTokenMint extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountPayer extends string = string> = {
|
|
1023
1163
|
/** The merchant creating the plan */
|
|
1024
1164
|
merchant: TransactionSigner<TAccountMerchant>;
|
|
1025
1165
|
/** The plan PDA being created */
|
|
@@ -1030,11 +1170,13 @@ type CreatePlanInput$1<TAccountMerchant extends string = string, TAccountPlanPda
|
|
|
1030
1170
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1031
1171
|
/** The token program */
|
|
1032
1172
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1173
|
+
/** Optional sponsor that funds the plan rent. Defaults to the merchant/signer when omitted; delete_plan refunds the owner, not the payer. */
|
|
1174
|
+
payer?: TransactionSigner<TAccountPayer>;
|
|
1033
1175
|
planData: CreatePlanInstructionDataArgs['planData'];
|
|
1034
1176
|
};
|
|
1035
|
-
declare function getCreatePlanInstruction<TAccountMerchant extends string, TAccountPlanPda extends string, TAccountTokenMint extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreatePlanInput$1<TAccountMerchant, TAccountPlanPda, TAccountTokenMint, TAccountSystemProgram, TAccountTokenProgram>, config?: {
|
|
1177
|
+
declare function getCreatePlanInstruction<TAccountMerchant extends string, TAccountPlanPda extends string, TAccountTokenMint extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreatePlanInput$1<TAccountMerchant, TAccountPlanPda, TAccountTokenMint, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>, config?: {
|
|
1036
1178
|
programAddress?: TProgramAddress;
|
|
1037
|
-
}): CreatePlanInstruction<TProgramAddress, TAccountMerchant, TAccountPlanPda, TAccountTokenMint, TAccountSystemProgram, TAccountTokenProgram>;
|
|
1179
|
+
}): CreatePlanInstruction<TProgramAddress, TAccountMerchant, TAccountPlanPda, TAccountTokenMint, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>;
|
|
1038
1180
|
type ParsedCreatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1039
1181
|
programAddress: Address<TProgram>;
|
|
1040
1182
|
accounts: {
|
|
@@ -1048,6 +1190,8 @@ type ParsedCreatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_
|
|
|
1048
1190
|
systemProgram: TAccountMetas[3];
|
|
1049
1191
|
/** The token program */
|
|
1050
1192
|
tokenProgram: TAccountMetas[4];
|
|
1193
|
+
/** Optional sponsor that funds the plan rent. Defaults to the merchant/signer when omitted; delete_plan refunds the owner, not the payer. */
|
|
1194
|
+
payer?: TAccountMetas[5] | undefined;
|
|
1051
1195
|
};
|
|
1052
1196
|
data: CreatePlanInstructionData;
|
|
1053
1197
|
};
|
|
@@ -1275,8 +1419,11 @@ type ResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTION
|
|
|
1275
1419
|
]>;
|
|
1276
1420
|
type ResumeSubscriptionInstructionData = {
|
|
1277
1421
|
discriminator: number;
|
|
1422
|
+
resumeData: ResumeData;
|
|
1423
|
+
};
|
|
1424
|
+
type ResumeSubscriptionInstructionDataArgs = {
|
|
1425
|
+
resumeData: ResumeDataArgs;
|
|
1278
1426
|
};
|
|
1279
|
-
type ResumeSubscriptionInstructionDataArgs = {};
|
|
1280
1427
|
declare function getResumeSubscriptionInstructionDataEncoder(): FixedSizeEncoder<ResumeSubscriptionInstructionDataArgs>;
|
|
1281
1428
|
declare function getResumeSubscriptionInstructionDataDecoder(): FixedSizeDecoder<ResumeSubscriptionInstructionData>;
|
|
1282
1429
|
declare function getResumeSubscriptionInstructionDataCodec(): FixedSizeCodec<ResumeSubscriptionInstructionDataArgs, ResumeSubscriptionInstructionData>;
|
|
@@ -1293,6 +1440,7 @@ type ResumeSubscriptionAsyncInput<TAccountSubscriber extends string = string, TA
|
|
|
1293
1440
|
eventAuthority?: Address<TAccountEventAuthority>;
|
|
1294
1441
|
/** This program (for self-CPI) */
|
|
1295
1442
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1443
|
+
resumeData: ResumeSubscriptionInstructionDataArgs['resumeData'];
|
|
1296
1444
|
};
|
|
1297
1445
|
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?: {
|
|
1298
1446
|
programAddress?: TProgramAddress;
|
|
@@ -1310,6 +1458,7 @@ type ResumeSubscriptionInput$1<TAccountSubscriber extends string = string, TAcco
|
|
|
1310
1458
|
eventAuthority: Address<TAccountEventAuthority>;
|
|
1311
1459
|
/** This program (for self-CPI) */
|
|
1312
1460
|
selfProgram?: Address<TAccountSelfProgram>;
|
|
1461
|
+
resumeData: ResumeSubscriptionInstructionDataArgs['resumeData'];
|
|
1313
1462
|
};
|
|
1314
1463
|
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?: {
|
|
1315
1464
|
programAddress?: TProgramAddress;
|
|
@@ -2149,9 +2298,9 @@ declare const CURRENT_PROGRAM_VERSION = 1;
|
|
|
2149
2298
|
declare const ZERO_ADDRESS: _solana_kit.Address<"11111111111111111111111111111111">;
|
|
2150
2299
|
/** Byte offset of the account discriminator in the Header struct. */
|
|
2151
2300
|
declare const DISCRIMINATOR_OFFSET = 0;
|
|
2152
|
-
/** Byte offset of the delegator
|
|
2301
|
+
/** Byte offset of the delegator address in the Header struct. */
|
|
2153
2302
|
declare const DELEGATOR_OFFSET = 3;
|
|
2154
|
-
/** Byte offset of the delegatee
|
|
2303
|
+
/** Byte offset of the delegatee address in the Header struct. */
|
|
2155
2304
|
declare const DELEGATEE_OFFSET = 35;
|
|
2156
2305
|
/** Byte size of a u64 value (used in nonce encoding). */
|
|
2157
2306
|
declare const U64_BYTE_SIZE = 8;
|
|
@@ -2169,7 +2318,7 @@ declare const EVENT_AUTHORITY_SEED = "event_authority";
|
|
|
2169
2318
|
declare const PLAN_SIZE = 491;
|
|
2170
2319
|
/** On-chain SubscriptionDelegation account size in bytes: header(107) + terms(24) + pulled(8) + periodStart(8) + expiresAt(8). */
|
|
2171
2320
|
declare const SUBSCRIPTION_SIZE = 155;
|
|
2172
|
-
/** Byte offset of the owner
|
|
2321
|
+
/** Byte offset of the owner address in a Plan account. */
|
|
2173
2322
|
declare const PLAN_OWNER_OFFSET = 1;
|
|
2174
2323
|
/** Maximum number of destination addresses in a Plan. */
|
|
2175
2324
|
declare const MAX_PLAN_DESTINATIONS = 4;
|
|
@@ -2179,6 +2328,16 @@ declare const MAX_PLAN_PULLERS = 4;
|
|
|
2179
2328
|
declare const METADATA_URI_LEN = 128;
|
|
2180
2329
|
/** On-chain delegation variant identifier (matches the `kind` tag in the `Delegation` union). */
|
|
2181
2330
|
type DelegationKindId = 'fixed' | 'recurring' | 'subscription';
|
|
2331
|
+
/**
|
|
2332
|
+
* Sentinel `expectedSubscriptionAuthorityInitId` for 1-step signup.
|
|
2333
|
+
*
|
|
2334
|
+
* When passed to subscribe or delegation creation, the program accepts the
|
|
2335
|
+
* SubscriptionAuthority only if its stored `initId` equals the current slot.
|
|
2336
|
+
* This is intended for bundling `initSubscriptionAuthority` in the same
|
|
2337
|
+
* transaction, but the check is slot-scoped, not transaction-scoped. Pass the
|
|
2338
|
+
* real `initId` when it is known.
|
|
2339
|
+
*/
|
|
2340
|
+
declare const UNKNOWN_INIT_ID = -9223372036854775808n;
|
|
2182
2341
|
|
|
2183
2342
|
/**
|
|
2184
2343
|
* Token-2022 transfer-hook account resolution, ported to `@solana/kit` from the
|
|
@@ -2306,6 +2465,7 @@ type CreatePlanInput = WithProgramAddress & {
|
|
|
2306
2465
|
metadataUri: string;
|
|
2307
2466
|
mint: Address;
|
|
2308
2467
|
owner: TransactionSigner;
|
|
2468
|
+
payer?: TransactionSigner;
|
|
2309
2469
|
periodHours: bigint | number;
|
|
2310
2470
|
planId: bigint | number;
|
|
2311
2471
|
pullers: Address[];
|
|
@@ -2313,6 +2473,14 @@ type CreatePlanInput = WithProgramAddress & {
|
|
|
2313
2473
|
};
|
|
2314
2474
|
type UpdatePlanInput = WithProgramAddress & {
|
|
2315
2475
|
endTs: bigint | number;
|
|
2476
|
+
/**
|
|
2477
|
+
* Live plan state observed at signing. If omitted, use the plugin
|
|
2478
|
+
* client's `updatePlan`, which fetches it via rpc.
|
|
2479
|
+
*/
|
|
2480
|
+
expectedCreatedAt?: bigint | number;
|
|
2481
|
+
expectedEndTs?: bigint | number;
|
|
2482
|
+
expectedMetadataUri?: string;
|
|
2483
|
+
expectedPullers?: Address[];
|
|
2316
2484
|
metadataUri: string;
|
|
2317
2485
|
owner: TransactionSigner;
|
|
2318
2486
|
planPda: Address;
|
|
@@ -2344,7 +2512,15 @@ type CancelSubscriptionInput = WithProgramAddress & {
|
|
|
2344
2512
|
subscriber: TransactionSigner;
|
|
2345
2513
|
subscriptionPda?: Address;
|
|
2346
2514
|
};
|
|
2515
|
+
type CancelSubscriptionNowInput = WithProgramAddress & {
|
|
2516
|
+
expectedCurrentPeriodStartTs: bigint;
|
|
2517
|
+
merchant: TransactionSigner;
|
|
2518
|
+
planPda: Address;
|
|
2519
|
+
subscriber: TransactionSigner;
|
|
2520
|
+
subscriptionPda?: Address;
|
|
2521
|
+
};
|
|
2347
2522
|
type ResumeSubscriptionInput = WithProgramAddress & {
|
|
2523
|
+
expectedExpiresAtTs: bigint;
|
|
2348
2524
|
planPda: Address;
|
|
2349
2525
|
subscriber: TransactionSigner;
|
|
2350
2526
|
subscriptionPda?: Address;
|
|
@@ -2370,11 +2546,13 @@ declare function getUpdatePlanOverlayInstruction(input: UpdatePlanInput): Promis
|
|
|
2370
2546
|
declare function getDeletePlanOverlayInstruction(input: DeletePlanInput): Instruction;
|
|
2371
2547
|
declare function getSubscribeOverlayInstructionAsync(input: SubscribeInput): Promise<Instruction>;
|
|
2372
2548
|
declare function getCancelSubscriptionOverlayInstructionAsync(input: CancelSubscriptionInput): Promise<Instruction>;
|
|
2549
|
+
declare function getCancelSubscriptionNowOverlayInstructionAsync(input: CancelSubscriptionNowInput): Promise<Instruction>;
|
|
2373
2550
|
declare function getResumeSubscriptionOverlayInstructionAsync(input: ResumeSubscriptionInput): Promise<Instruction>;
|
|
2374
2551
|
type SubscriptionsPluginRequirements = ClientWithIdentity & ClientWithPayer & ClientWithRpc<GetProgramAccountsApi> & SubscriptionsPluginRequirements$1;
|
|
2375
2552
|
type Self<T> = SelfPlanAndSendFunctions & T;
|
|
2376
2553
|
type SubscriptionsPluginInstructions = {
|
|
2377
2554
|
cancelSubscription: (input: MakeOptional<CancelSubscriptionInput, 'subscriber'>) => Self<Promise<Instruction>>;
|
|
2555
|
+
cancelSubscriptionNow: (input: MakeOptional<CancelSubscriptionNowInput, 'merchant' | 'subscriber'>) => Self<Promise<Instruction>>;
|
|
2378
2556
|
closeSubscriptionAuthority: (input: MakeOptional<CloseSubscriptionAuthorityInput, 'user'>) => Self<Promise<Instruction>>;
|
|
2379
2557
|
createFixedDelegation: (input: MakeOptional<CreateFixedDelegationInput, 'delegator' | 'payer'>) => Self<Promise<Instruction>>;
|
|
2380
2558
|
createPlan: (input: MakeOptional<CreatePlanInput, 'owner'>) => Self<Promise<Instruction>>;
|
|
@@ -2415,12 +2593,14 @@ type SubscriptionsPlugin = Omit<SubscriptionsPlugin$1, 'instructions'> & {
|
|
|
2415
2593
|
instructions: SubscriptionsPluginInstructions;
|
|
2416
2594
|
queries: SubscriptionsPluginQueries;
|
|
2417
2595
|
};
|
|
2418
|
-
declare function subscriptionsProgram(): <T extends SubscriptionsPluginRequirements>(client: T) =>
|
|
2419
|
-
subscriptions:
|
|
2596
|
+
declare function subscriptionsProgram(): <T extends SubscriptionsPluginRequirements>(client: T) => _solana_kit.ExtendedClient<T, {
|
|
2597
|
+
subscriptions: SubscriptionsPlugin$1;
|
|
2598
|
+
}> & {
|
|
2599
|
+
subscriptions: (Omit<T, "subscriptions"> & {
|
|
2600
|
+
subscriptions: SubscriptionsPlugin$1;
|
|
2601
|
+
})["subscriptions"] & {
|
|
2420
2602
|
instructions: SubscriptionsPluginInstructions;
|
|
2421
2603
|
queries: SubscriptionsPluginQueries;
|
|
2422
|
-
accounts: SubscriptionsPluginAccounts;
|
|
2423
|
-
pdas: SubscriptionsPluginPdas;
|
|
2424
2604
|
};
|
|
2425
2605
|
};
|
|
2426
2606
|
|
|
@@ -2429,4 +2609,4 @@ declare class ValidationError extends Error {
|
|
|
2429
2609
|
constructor(message: string);
|
|
2430
2610
|
}
|
|
2431
2611
|
|
|
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 };
|
|
2612
|
+
export { AccountDiscriminator, type AccountDiscriminatorArgs, CANCEL_SUBSCRIPTION_DISCRIMINATOR, CANCEL_SUBSCRIPTION_NOW_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 CancelSubscriptionNowAsyncInput, type CancelSubscriptionNowData, type CancelSubscriptionNowDataArgs, type CancelSubscriptionNowInput, type CancelSubscriptionNowInstruction, type CancelSubscriptionNowInstructionData, type CancelSubscriptionNowInstructionDataArgs, 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 ParsedCancelSubscriptionNowInstruction, 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 ResumeData, type ResumeDataArgs, 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_PLAN_APPROVAL, SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_APPROVAL, 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, UNKNOWN_INIT_ID, 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, getCancelSubscriptionNowDataCodec, getCancelSubscriptionNowDataDecoder, getCancelSubscriptionNowDataEncoder, getCancelSubscriptionNowDiscriminatorBytes, getCancelSubscriptionNowInstruction, getCancelSubscriptionNowInstructionAsync, getCancelSubscriptionNowInstructionDataCodec, getCancelSubscriptionNowInstructionDataDecoder, getCancelSubscriptionNowInstructionDataEncoder, getCancelSubscriptionNowOverlayInstructionAsync, 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, getResumeDataCodec, getResumeDataDecoder, getResumeDataEncoder, 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, parseCancelSubscriptionNowInstruction, parseCloseSubscriptionAuthorityInstruction, parseCreateFixedDelegationInstruction, parseCreatePlanInstruction, parseCreateRecurringDelegationInstruction, parseDeletePlanInstruction, parseInitSubscriptionAuthorityInstruction, parseResumeSubscriptionInstruction, parseRevokeAbandonedDelegationInstruction, parseRevokeAbandonedSubscriptionInstruction, parseRevokeDelegationInstruction, parseRevokeSubscriptionAuthorityInstruction, parseSubscribeInstruction, parseSubscriptionsInstruction, parseTransferFixedInstruction, parseTransferRecurringInstruction, parseTransferSubscriptionInstruction, parseUpdatePlanInstruction, resolveTransferHookAccounts, subscriptionsProgram, toEncodedAccount };
|