@solana/subscriptions 0.3.0 → 0.4.0-rc.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 +2 -2
- package/dist/index.cjs +602 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +165 -6
- package/dist/index.d.ts +165 -6
- package/dist/index.js +585 -167
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
package/dist/index.d.cts
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,8 @@ 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;
|
|
637
|
+
declare const SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_VALIDATION_ACCOUNT_MISSING = 138;
|
|
635
638
|
declare const SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_LIMIT = 300;
|
|
636
639
|
declare const SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_EXPIRY_IN_PAST = 301;
|
|
637
640
|
declare const SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_AMOUNT_ZERO = 302;
|
|
@@ -643,6 +646,7 @@ declare const SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_IN_PAST = 404
|
|
|
643
646
|
declare const SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_GREATER_THAN_EXPIRY = 405;
|
|
644
647
|
declare const SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_AMOUNT_ZERO = 406;
|
|
645
648
|
declare const SUBSCRIPTIONS_ERROR__DELEGATION_NOT_STARTED = 407;
|
|
649
|
+
declare const SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_ON_LANDING_REQUIRES_EXPIRY = 408;
|
|
646
650
|
declare const SUBSCRIPTIONS_ERROR__PLAN_SUNSET = 500;
|
|
647
651
|
declare const SUBSCRIPTIONS_ERROR__PLAN_EXPIRED = 501;
|
|
648
652
|
declare const SUBSCRIPTIONS_ERROR__INVALID_PLAN_PDA = 502;
|
|
@@ -667,7 +671,7 @@ 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
|
-
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_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_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_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__UNAUTHORIZED | typeof SUBSCRIPTIONS_ERROR__UNAUTHORIZED_DESTINATION;
|
|
674
|
+
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_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_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__TRANSFER_HOOK_VALIDATION_ACCOUNT_MISSING | typeof SUBSCRIPTIONS_ERROR__UNAUTHORIZED | typeof SUBSCRIPTIONS_ERROR__UNAUTHORIZED_DESTINATION;
|
|
671
675
|
declare function getSubscriptionsErrorMessage(code: SubscriptionsError): string;
|
|
672
676
|
declare function isSubscriptionsError<TProgramErrorCode extends SubscriptionsError>(error: unknown, transactionMessage: {
|
|
673
677
|
instructions: Record<number, {
|
|
@@ -710,7 +714,9 @@ declare enum SubscriptionsInstruction {
|
|
|
710
714
|
TransferSubscription = 10,
|
|
711
715
|
Subscribe = 11,
|
|
712
716
|
CancelSubscription = 12,
|
|
713
|
-
ResumeSubscription = 13
|
|
717
|
+
ResumeSubscription = 13,
|
|
718
|
+
RevokeSubscriptionAuthority = 14,
|
|
719
|
+
RevokeAbandonedDelegation = 15
|
|
714
720
|
}
|
|
715
721
|
declare function identifySubscriptionsInstruction(instruction: {
|
|
716
722
|
data: ReadonlyUint8Array;
|
|
@@ -743,7 +749,11 @@ type ParsedSubscriptionsInstruction<TProgram extends string = 'De1egAFMkMWZSN5rY
|
|
|
743
749
|
instructionType: SubscriptionsInstruction.CancelSubscription;
|
|
744
750
|
} & ParsedCancelSubscriptionInstruction<TProgram>) | ({
|
|
745
751
|
instructionType: SubscriptionsInstruction.ResumeSubscription;
|
|
746
|
-
} & ParsedResumeSubscriptionInstruction<TProgram>)
|
|
752
|
+
} & ParsedResumeSubscriptionInstruction<TProgram>) | ({
|
|
753
|
+
instructionType: SubscriptionsInstruction.RevokeSubscriptionAuthority;
|
|
754
|
+
} & ParsedRevokeSubscriptionAuthorityInstruction<TProgram>) | ({
|
|
755
|
+
instructionType: SubscriptionsInstruction.RevokeAbandonedDelegation;
|
|
756
|
+
} & ParsedRevokeAbandonedDelegationInstruction<TProgram>);
|
|
747
757
|
declare function parseSubscriptionsInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSubscriptionsInstruction<TProgram>;
|
|
748
758
|
type SubscriptionsPlugin$1 = {
|
|
749
759
|
accounts: SubscriptionsPluginAccounts;
|
|
@@ -773,6 +783,8 @@ type SubscriptionsPluginInstructions$1 = {
|
|
|
773
783
|
subscribe: (input: SubscribeAsyncInput) => ReturnType<typeof getSubscribeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
774
784
|
cancelSubscription: (input: CancelSubscriptionAsyncInput) => ReturnType<typeof getCancelSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
|
|
775
785
|
resumeSubscription: (input: ResumeSubscriptionAsyncInput) => ReturnType<typeof getResumeSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
|
|
786
|
+
revokeSubscriptionAuthority: (input: RevokeSubscriptionAuthorityInput$1) => ReturnType<typeof getRevokeSubscriptionAuthorityInstruction> & SelfPlanAndSendFunctions;
|
|
787
|
+
revokeAbandonedDelegation: (input: RevokeAbandonedDelegationInput) => ReturnType<typeof getRevokeAbandonedDelegationInstruction> & SelfPlanAndSendFunctions;
|
|
776
788
|
};
|
|
777
789
|
type SubscriptionsPluginPdas = {
|
|
778
790
|
fixedDelegation: typeof findFixedDelegationPda;
|
|
@@ -1282,6 +1294,54 @@ type ParsedResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCR
|
|
|
1282
1294
|
};
|
|
1283
1295
|
declare function parseResumeSubscriptionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResumeSubscriptionInstruction<TProgram, TAccountMetas>;
|
|
1284
1296
|
|
|
1297
|
+
/**
|
|
1298
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1299
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1300
|
+
* to add features, then rerun Codama to update it.
|
|
1301
|
+
*
|
|
1302
|
+
* @see https://github.com/codama-idl/codama
|
|
1303
|
+
*/
|
|
1304
|
+
|
|
1305
|
+
declare const REVOKE_ABANDONED_DELEGATION_DISCRIMINATOR = 15;
|
|
1306
|
+
declare function getRevokeAbandonedDelegationDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1307
|
+
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<[
|
|
1308
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
1309
|
+
TAccountDelegationAccount extends string ? WritableAccount<TAccountDelegationAccount> : TAccountDelegationAccount,
|
|
1310
|
+
TAccountSubscriptionAuthority extends string ? ReadonlyAccount<TAccountSubscriptionAuthority> : TAccountSubscriptionAuthority,
|
|
1311
|
+
...TRemainingAccounts
|
|
1312
|
+
]>;
|
|
1313
|
+
type RevokeAbandonedDelegationInstructionData = {
|
|
1314
|
+
discriminator: number;
|
|
1315
|
+
};
|
|
1316
|
+
type RevokeAbandonedDelegationInstructionDataArgs = {};
|
|
1317
|
+
declare function getRevokeAbandonedDelegationInstructionDataEncoder(): FixedSizeEncoder<RevokeAbandonedDelegationInstructionDataArgs>;
|
|
1318
|
+
declare function getRevokeAbandonedDelegationInstructionDataDecoder(): FixedSizeDecoder<RevokeAbandonedDelegationInstructionData>;
|
|
1319
|
+
declare function getRevokeAbandonedDelegationInstructionDataCodec(): FixedSizeCodec<RevokeAbandonedDelegationInstructionDataArgs, RevokeAbandonedDelegationInstructionData>;
|
|
1320
|
+
type RevokeAbandonedDelegationInput<TAccountPayer extends string = string, TAccountDelegationAccount extends string = string, TAccountSubscriptionAuthority extends string = string> = {
|
|
1321
|
+
/** The recorded payer reclaiming rent */
|
|
1322
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
1323
|
+
/** The fixed or recurring delegation PDA to close */
|
|
1324
|
+
delegationAccount: Address<TAccountDelegationAccount>;
|
|
1325
|
+
/** The delegation's recorded SubscriptionAuthority PDA (may be closed) */
|
|
1326
|
+
subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
|
|
1327
|
+
};
|
|
1328
|
+
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?: {
|
|
1329
|
+
programAddress?: TProgramAddress;
|
|
1330
|
+
}): RevokeAbandonedDelegationInstruction<TProgramAddress, TAccountPayer, TAccountDelegationAccount, TAccountSubscriptionAuthority>;
|
|
1331
|
+
type ParsedRevokeAbandonedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1332
|
+
programAddress: Address<TProgram>;
|
|
1333
|
+
accounts: {
|
|
1334
|
+
/** The recorded payer reclaiming rent */
|
|
1335
|
+
payer: TAccountMetas[0];
|
|
1336
|
+
/** The fixed or recurring delegation PDA to close */
|
|
1337
|
+
delegationAccount: TAccountMetas[1];
|
|
1338
|
+
/** The delegation's recorded SubscriptionAuthority PDA (may be closed) */
|
|
1339
|
+
subscriptionAuthority: TAccountMetas[2];
|
|
1340
|
+
};
|
|
1341
|
+
data: RevokeAbandonedDelegationInstructionData;
|
|
1342
|
+
};
|
|
1343
|
+
declare function parseRevokeAbandonedDelegationInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeAbandonedDelegationInstruction<TProgram, TAccountMetas>;
|
|
1344
|
+
|
|
1285
1345
|
/**
|
|
1286
1346
|
* This code was AUTOGENERATED using the Codama library.
|
|
1287
1347
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1325,6 +1385,59 @@ type ParsedRevokeDelegationInstruction<TProgram extends string = typeof SUBSCRIP
|
|
|
1325
1385
|
};
|
|
1326
1386
|
declare function parseRevokeDelegationInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeDelegationInstruction<TProgram, TAccountMetas>;
|
|
1327
1387
|
|
|
1388
|
+
/**
|
|
1389
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
1390
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
1391
|
+
* to add features, then rerun Codama to update it.
|
|
1392
|
+
*
|
|
1393
|
+
* @see https://github.com/codama-idl/codama
|
|
1394
|
+
*/
|
|
1395
|
+
|
|
1396
|
+
declare const REVOKE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR = 14;
|
|
1397
|
+
declare function getRevokeSubscriptionAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1398
|
+
type RevokeSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountUserAta extends string | AccountMeta<string> = string, TAccountTokenMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
1399
|
+
TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
1400
|
+
TAccountUserAta extends string ? WritableAccount<TAccountUserAta> : TAccountUserAta,
|
|
1401
|
+
TAccountTokenMint extends string ? ReadonlyAccount<TAccountTokenMint> : TAccountTokenMint,
|
|
1402
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
1403
|
+
...TRemainingAccounts
|
|
1404
|
+
]>;
|
|
1405
|
+
type RevokeSubscriptionAuthorityInstructionData = {
|
|
1406
|
+
discriminator: number;
|
|
1407
|
+
};
|
|
1408
|
+
type RevokeSubscriptionAuthorityInstructionDataArgs = {};
|
|
1409
|
+
declare function getRevokeSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<RevokeSubscriptionAuthorityInstructionDataArgs>;
|
|
1410
|
+
declare function getRevokeSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<RevokeSubscriptionAuthorityInstructionData>;
|
|
1411
|
+
declare function getRevokeSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<RevokeSubscriptionAuthorityInstructionDataArgs, RevokeSubscriptionAuthorityInstructionData>;
|
|
1412
|
+
type RevokeSubscriptionAuthorityInput$1<TAccountUser extends string = string, TAccountUserAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1413
|
+
/** The ATA owner revoking the program's delegate */
|
|
1414
|
+
user: TransactionSigner<TAccountUser>;
|
|
1415
|
+
/** The user's ATA whose delegate is being revoked */
|
|
1416
|
+
userAta: Address<TAccountUserAta>;
|
|
1417
|
+
/** The token mint of the user's ATA */
|
|
1418
|
+
tokenMint: Address<TAccountTokenMint>;
|
|
1419
|
+
/** Token program */
|
|
1420
|
+
tokenProgram: Address<TAccountTokenProgram>;
|
|
1421
|
+
};
|
|
1422
|
+
declare function getRevokeSubscriptionAuthorityInstruction<TAccountUser extends string, TAccountUserAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeSubscriptionAuthorityInput$1<TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram>, config?: {
|
|
1423
|
+
programAddress?: TProgramAddress;
|
|
1424
|
+
}): RevokeSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram>;
|
|
1425
|
+
type ParsedRevokeSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1426
|
+
programAddress: Address<TProgram>;
|
|
1427
|
+
accounts: {
|
|
1428
|
+
/** The ATA owner revoking the program's delegate */
|
|
1429
|
+
user: TAccountMetas[0];
|
|
1430
|
+
/** The user's ATA whose delegate is being revoked */
|
|
1431
|
+
userAta: TAccountMetas[1];
|
|
1432
|
+
/** The token mint of the user's ATA */
|
|
1433
|
+
tokenMint: TAccountMetas[2];
|
|
1434
|
+
/** Token program */
|
|
1435
|
+
tokenProgram: TAccountMetas[3];
|
|
1436
|
+
};
|
|
1437
|
+
data: RevokeSubscriptionAuthorityInstructionData;
|
|
1438
|
+
};
|
|
1439
|
+
declare function parseRevokeSubscriptionAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeSubscriptionAuthorityInstruction<TProgram, TAccountMetas>;
|
|
1440
|
+
|
|
1328
1441
|
/**
|
|
1329
1442
|
* This code was AUTOGENERATED using the Codama library.
|
|
1330
1443
|
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
@@ -1840,6 +1953,35 @@ declare const METADATA_URI_LEN = 128;
|
|
|
1840
1953
|
/** On-chain delegation variant identifier (matches the `kind` tag in the `Delegation` union). */
|
|
1841
1954
|
type DelegationKindId = 'fixed' | 'recurring' | 'subscription';
|
|
1842
1955
|
|
|
1956
|
+
/**
|
|
1957
|
+
* Token-2022 transfer-hook account resolution, ported to `@solana/kit` from the
|
|
1958
|
+
* web3.js `@solana/spl-token` resolver (the kit client ships no equivalent).
|
|
1959
|
+
* Computes the trailing accounts a hooked `TransferChecked` must forward.
|
|
1960
|
+
*/
|
|
1961
|
+
|
|
1962
|
+
type TransferHookAccount = {
|
|
1963
|
+
address: Address;
|
|
1964
|
+
role: AccountRole;
|
|
1965
|
+
};
|
|
1966
|
+
/** Identity of the four base `Execute` accounts and the transfer amount, needed
|
|
1967
|
+
* to resolve seed- and instruction-data-derived extra accounts. */
|
|
1968
|
+
type ResolveTransferHookArgs = {
|
|
1969
|
+
amount: bigint | number;
|
|
1970
|
+
authority: Address;
|
|
1971
|
+
destination: Address;
|
|
1972
|
+
mint: Address;
|
|
1973
|
+
source: Address;
|
|
1974
|
+
tokenProgram: Address;
|
|
1975
|
+
transferHookAccounts?: TransferHookAccount[];
|
|
1976
|
+
};
|
|
1977
|
+
type ResolveRpc = Parameters<typeof fetchMint>[0];
|
|
1978
|
+
/**
|
|
1979
|
+
* Trailing hook accounts for a `TransferChecked` — `[hook program, validation PDA,
|
|
1980
|
+
* ...resolved extras]`. Returns `[]` for non-2022, no-hook, or inert mints, and
|
|
1981
|
+
* the explicit `transferHookAccounts` verbatim when provided.
|
|
1982
|
+
*/
|
|
1983
|
+
declare function resolveTransferHookAccounts(rpc: ResolveRpc, args: ResolveTransferHookArgs): Promise<TransferHookAccount[]>;
|
|
1984
|
+
|
|
1843
1985
|
type WithProgramAddress = {
|
|
1844
1986
|
programAddress?: Address;
|
|
1845
1987
|
};
|
|
@@ -1860,6 +2002,11 @@ type CloseSubscriptionAuthorityInput = WithProgramAddress & {
|
|
|
1860
2002
|
tokenMint: Address;
|
|
1861
2003
|
user: TransactionSigner;
|
|
1862
2004
|
};
|
|
2005
|
+
type RevokeSubscriptionAuthorityInput = WithProgramAddress & {
|
|
2006
|
+
tokenMint: Address;
|
|
2007
|
+
tokenProgram: Address;
|
|
2008
|
+
user: TransactionSigner;
|
|
2009
|
+
};
|
|
1863
2010
|
type CreateFixedDelegationInput = WithProgramAddress & {
|
|
1864
2011
|
amount: bigint | number;
|
|
1865
2012
|
delegatee: Address;
|
|
@@ -1879,6 +2026,8 @@ type CreateRecurringDelegationInput = WithProgramAddress & {
|
|
|
1879
2026
|
nonce: bigint | number;
|
|
1880
2027
|
payer?: TransactionSigner;
|
|
1881
2028
|
periodLengthS: bigint | number;
|
|
2029
|
+
/** Unix timestamp when the first period begins. Pass 0 to start when the
|
|
2030
|
+
* transaction lands on chain (requires a non-zero `expiryTs`). */
|
|
1882
2031
|
startTs: bigint | number;
|
|
1883
2032
|
tokenMint: Address;
|
|
1884
2033
|
};
|
|
@@ -1902,6 +2051,10 @@ type TransferDelegationInput = WithProgramAddress & {
|
|
|
1902
2051
|
receiverAta: Address;
|
|
1903
2052
|
tokenMint: Address;
|
|
1904
2053
|
tokenProgram: Address;
|
|
2054
|
+
/** Token-2022 transfer-hook accounts. Leave unset: the plugin client resolves
|
|
2055
|
+
* them from the mint's hook. Set to override resolution, or when calling the
|
|
2056
|
+
* overlay instruction directly (which does not auto-resolve). */
|
|
2057
|
+
transferHookAccounts?: TransferHookAccount[];
|
|
1905
2058
|
};
|
|
1906
2059
|
type TransferSubscriptionInput = WithProgramAddress & {
|
|
1907
2060
|
amount: bigint | number;
|
|
@@ -1912,6 +2065,10 @@ type TransferSubscriptionInput = WithProgramAddress & {
|
|
|
1912
2065
|
subscriptionPda: Address;
|
|
1913
2066
|
tokenMint: Address;
|
|
1914
2067
|
tokenProgram: Address;
|
|
2068
|
+
/** Token-2022 transfer-hook accounts. Leave unset: the plugin client resolves
|
|
2069
|
+
* them from the mint's hook. Set to override resolution, or when calling the
|
|
2070
|
+
* overlay instruction directly (which does not auto-resolve). */
|
|
2071
|
+
transferHookAccounts?: TransferHookAccount[];
|
|
1915
2072
|
};
|
|
1916
2073
|
type CreatePlanInput = WithProgramAddress & {
|
|
1917
2074
|
amount: bigint | number;
|
|
@@ -1930,7 +2087,7 @@ type UpdatePlanInput = WithProgramAddress & {
|
|
|
1930
2087
|
metadataUri: string;
|
|
1931
2088
|
owner: TransactionSigner;
|
|
1932
2089
|
planPda: Address;
|
|
1933
|
-
pullers
|
|
2090
|
+
pullers: Address[];
|
|
1934
2091
|
status: PlanStatus;
|
|
1935
2092
|
};
|
|
1936
2093
|
type DeletePlanInput = WithProgramAddress & {
|
|
@@ -1965,6 +2122,7 @@ type ResumeSubscriptionInput = WithProgramAddress & {
|
|
|
1965
2122
|
};
|
|
1966
2123
|
declare function getInitSubscriptionAuthorityOverlayInstructionAsync(input: InitSubscriptionAuthorityInput): Promise<Instruction>;
|
|
1967
2124
|
declare function getCloseSubscriptionAuthorityOverlayInstructionAsync(input: CloseSubscriptionAuthorityInput): Promise<Instruction>;
|
|
2125
|
+
declare function getRevokeSubscriptionAuthorityOverlayInstructionAsync(input: RevokeSubscriptionAuthorityInput): Promise<Instruction>;
|
|
1968
2126
|
declare function getCreateFixedDelegationOverlayInstructionAsync(input: CreateFixedDelegationInput): Promise<Instruction>;
|
|
1969
2127
|
declare function getCreateRecurringDelegationOverlayInstructionAsync(input: CreateRecurringDelegationInput): Promise<Instruction>;
|
|
1970
2128
|
/** Revoke a fixed/recurring delegation. For subscription PDAs use {@link getRevokeSubscriptionOverlayInstruction}. */
|
|
@@ -1996,6 +2154,7 @@ type SubscriptionsPluginInstructions = {
|
|
|
1996
2154
|
resumeSubscription: (input: MakeOptional<ResumeSubscriptionInput, 'subscriber'>) => Self<Promise<Instruction>>;
|
|
1997
2155
|
revokeDelegation: (input: MakeOptional<RevokeDelegationInput, 'authority'>) => Self<Instruction>;
|
|
1998
2156
|
revokeSubscription: (input: MakeOptional<RevokeSubscriptionInput, 'authority'>) => Self<Instruction>;
|
|
2157
|
+
revokeSubscriptionAuthority: (input: MakeOptional<RevokeSubscriptionAuthorityInput, 'user'>) => Self<Promise<Instruction>>;
|
|
1999
2158
|
subscribe: (input: MakeOptional<SubscribeInput, 'payer' | 'subscriber'>) => Self<Promise<Instruction>>;
|
|
2000
2159
|
transferFixed: (input: MakeOptional<TransferDelegationInput, 'delegatee'>) => Self<Promise<Instruction>>;
|
|
2001
2160
|
transferRecurring: (input: MakeOptional<TransferDelegationInput, 'delegatee'>) => Self<Promise<Instruction>>;
|
|
@@ -2040,4 +2199,4 @@ declare class ValidationError extends Error {
|
|
|
2040
2199
|
constructor(message: string);
|
|
2041
2200
|
}
|
|
2042
2201
|
|
|
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 };
|
|
2202
|
+
export { AccountDiscriminator, type AccountDiscriminatorArgs, CANCEL_SUBSCRIPTION_DISCRIMINATOR, CLOSE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, CREATE_FIXED_DELEGATION_DISCRIMINATOR, CREATE_PLAN_DISCRIMINATOR, CREATE_RECURRING_DELEGATION_DISCRIMINATOR, CURRENT_PROGRAM_VERSION, type CancelSubscriptionAsyncInput, type CancelSubscriptionInput, type CancelSubscriptionInstruction, type CancelSubscriptionInstructionData, type CancelSubscriptionInstructionDataArgs, type CloseSubscriptionAuthorityInput, type CloseSubscriptionAuthorityInstruction, type CloseSubscriptionAuthorityInstructionData, type CloseSubscriptionAuthorityInstructionDataArgs, type CreateFixedDelegationData, type CreateFixedDelegationDataArgs, type CreateFixedDelegationInput, type CreateFixedDelegationInstruction, type CreateFixedDelegationInstructionData, type CreateFixedDelegationInstructionDataArgs, type CreatePlanInput, type CreatePlanInstruction, type CreatePlanInstructionData, type CreatePlanInstructionDataArgs, type CreateRecurringDelegationData, type CreateRecurringDelegationDataArgs, type CreateRecurringDelegationInput, type CreateRecurringDelegationInstruction, type CreateRecurringDelegationInstructionData, type CreateRecurringDelegationInstructionDataArgs, DELEGATEE_OFFSET, DELEGATION_SEED, DELEGATOR_OFFSET, DELETE_PLAN_DISCRIMINATOR, DISCRIMINATOR_OFFSET, type Delegation, type DelegationKindId, type DeletePlanInput, type DeletePlanInstruction, type DeletePlanInstructionData, type DeletePlanInstructionDataArgs, EVENT_AUTHORITY_SEED, type EventAuthority, type EventAuthorityArgs, type FixedDelegation, type FixedDelegationArgs, type FixedDelegationSeeds, type Header, type HeaderArgs, INIT_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, type InitSubscriptionAuthorityAsyncInput, type InitSubscriptionAuthorityInput, type InitSubscriptionAuthorityInstruction, type InitSubscriptionAuthorityInstructionData, type InitSubscriptionAuthorityInstructionDataArgs, MAX_PLAN_DESTINATIONS, MAX_PLAN_PULLERS, METADATA_URI_LEN, PLAN_OWNER_OFFSET, PLAN_SEED, PLAN_SIZE, PROGRAM_ID, type ParsedCancelSubscriptionInstruction, type ParsedCloseSubscriptionAuthorityInstruction, type ParsedCreateFixedDelegationInstruction, type ParsedCreatePlanInstruction, type ParsedCreateRecurringDelegationInstruction, type ParsedDeletePlanInstruction, type ParsedInitSubscriptionAuthorityInstruction, type ParsedResumeSubscriptionInstruction, type ParsedRevokeAbandonedDelegationInstruction, type ParsedRevokeDelegationInstruction, type ParsedRevokeSubscriptionAuthorityInstruction, type ParsedSubscribeInstruction, type ParsedSubscriptionsInstruction, type ParsedTransferFixedInstruction, type ParsedTransferRecurringInstruction, type ParsedTransferSubscriptionInstruction, type ParsedUpdatePlanInstruction, type Plan, type PlanArgs, type PlanData, type PlanDataArgs, type PlanSeeds, PlanStatus, type PlanStatusArgs, type PlanTerms, type PlanTermsArgs, type PlanWithAddress, RESUME_SUBSCRIPTION_DISCRIMINATOR, REVOKE_ABANDONED_DELEGATION_DISCRIMINATOR, REVOKE_DELEGATION_DISCRIMINATOR, REVOKE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, type RawProgramAccount, type RecurringDelegation, type RecurringDelegationArgs, type RecurringDelegationSeeds, type ResolveTransferHookArgs, type ResumeSubscriptionAsyncInput, type ResumeSubscriptionInput, type ResumeSubscriptionInstruction, type ResumeSubscriptionInstructionData, type ResumeSubscriptionInstructionDataArgs, type RevokeAbandonedDelegationInput, type RevokeAbandonedDelegationInstruction, type RevokeAbandonedDelegationInstructionData, type RevokeAbandonedDelegationInstructionDataArgs, type RevokeDelegationInput, type RevokeDelegationInstruction, type RevokeDelegationInstructionData, type RevokeDelegationInstructionDataArgs, type RevokeSubscriptionAuthorityInput, type RevokeSubscriptionAuthorityInstruction, type RevokeSubscriptionAuthorityInstructionData, type RevokeSubscriptionAuthorityInstructionDataArgs, type RevokeSubscriptionInput, SUBSCRIBE_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__ACCOUNT_NOT_WRITABLE, SUBSCRIPTIONS_ERROR__ALREADY_SUBSCRIBED, SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_LIMIT, SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_PERIOD_LIMIT, SUBSCRIPTIONS_ERROR__ARITHMETIC_OVERFLOW, SUBSCRIPTIONS_ERROR__ARITHMETIC_UNDERFLOW, SUBSCRIPTIONS_ERROR__ATA_OWNER_MISMATCH, SUBSCRIPTIONS_ERROR__DELEGATION_ALREADY_EXISTS, SUBSCRIPTIONS_ERROR__DELEGATION_EXPIRED, SUBSCRIPTIONS_ERROR__DELEGATION_NOT_STARTED, SUBSCRIPTIONS_ERROR__DELEGATION_VERSION_MISMATCH, SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_AMOUNT_ZERO, SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_EXPIRY_IN_PAST, SUBSCRIPTIONS_ERROR__INVALID_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_ACCOUNT_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__INVALID_ADDRESS, SUBSCRIPTIONS_ERROR__INVALID_AMOUNT, SUBSCRIPTIONS_ERROR__INVALID_ASSOCIATED_TOKEN_ACCOUNT_DERIVED_ADDRESS, SUBSCRIPTIONS_ERROR__INVALID_DELEGATE_PDA, SUBSCRIPTIONS_ERROR__INVALID_END_TS, SUBSCRIPTIONS_ERROR__INVALID_ESCROW_PDA, SUBSCRIPTIONS_ERROR__INVALID_EVENT_AUTHORITY, SUBSCRIPTIONS_ERROR__INVALID_EVENT_DATA, SUBSCRIPTIONS_ERROR__INVALID_EVENT_DISCRIMINATOR, SUBSCRIPTIONS_ERROR__INVALID_EVENT_TAG, SUBSCRIPTIONS_ERROR__INVALID_HEADER_DATA, SUBSCRIPTIONS_ERROR__INVALID_INSTRUCTION, SUBSCRIPTIONS_ERROR__INVALID_INSTRUCTION_DATA, SUBSCRIPTIONS_ERROR__INVALID_NUM_DESTINATIONS, SUBSCRIPTIONS_ERROR__INVALID_PAYER_DATA, SUBSCRIPTIONS_ERROR__INVALID_PERIOD_LENGTH, SUBSCRIPTIONS_ERROR__INVALID_PLAN_PDA, SUBSCRIPTIONS_ERROR__INVALID_PLAN_STATUS, SUBSCRIPTIONS_ERROR__INVALID_SUBSCRIPTION_AUTHORITY_PDA, SUBSCRIPTIONS_ERROR__INVALID_SUBSCRIPTION_PDA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN2022_MINT_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN2022_TOKEN_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_PROGRAM, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_SPL_MINT_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__INVALID_TOKEN_SPL_TOKEN_ACCOUNT_DATA, SUBSCRIPTIONS_ERROR__MIGRATION_REQUIRED, SUBSCRIPTIONS_ERROR__MINT_HAS_CONFIDENTIAL_TRANSFER, SUBSCRIPTIONS_ERROR__MINT_HAS_MINT_CLOSE_AUTHORITY, SUBSCRIPTIONS_ERROR__MINT_HAS_NON_TRANSFERABLE, SUBSCRIPTIONS_ERROR__MINT_HAS_PAUSABLE, SUBSCRIPTIONS_ERROR__MINT_HAS_PERMANENT_DELEGATE, SUBSCRIPTIONS_ERROR__MINT_HAS_TRANSFER_FEE, SUBSCRIPTIONS_ERROR__MINT_HAS_TRANSFER_HOOK, SUBSCRIPTIONS_ERROR__MINT_MISMATCH, SUBSCRIPTIONS_ERROR__NOT_ENOUGH_ACCOUNT_KEYS, SUBSCRIPTIONS_ERROR__NOT_PLAN_OWNER, SUBSCRIPTIONS_ERROR__NOT_SIGNER, SUBSCRIPTIONS_ERROR__NOT_SYSTEM_PROGRAM, SUBSCRIPTIONS_ERROR__PERIOD_NOT_ELAPSED, SUBSCRIPTIONS_ERROR__PLAN_ALREADY_EXISTS, SUBSCRIPTIONS_ERROR__PLAN_CLOSED, SUBSCRIPTIONS_ERROR__PLAN_EXPIRED, SUBSCRIPTIONS_ERROR__PLAN_IMMUTABLE_AFTER_SUNSET, SUBSCRIPTIONS_ERROR__PLAN_NOT_EXPIRED, SUBSCRIPTIONS_ERROR__PLAN_SUNSET, SUBSCRIPTIONS_ERROR__PLAN_TERMS_MISMATCH, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_AMOUNT_ZERO, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_ON_LANDING_REQUIRES_EXPIRY, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_GREATER_THAN_EXPIRY, SUBSCRIPTIONS_ERROR__RECURRING_DELEGATION_START_TIME_IN_PAST, SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_AUTHORITY, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_ALREADY_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_NOT_CANCELLED, SUBSCRIPTIONS_ERROR__SUBSCRIPTION_PLAN_MISMATCH, SUBSCRIPTIONS_ERROR__SUNSET_REQUIRES_END_TS, SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_TOO_MANY_ACCOUNTS, SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_VALIDATION_ACCOUNT_MISSING, SUBSCRIPTIONS_ERROR__UNAUTHORIZED, SUBSCRIPTIONS_ERROR__UNAUTHORIZED_DESTINATION, SUBSCRIPTIONS_PROGRAM_ADDRESS, SUBSCRIPTION_AUTHORITY_SEED, SUBSCRIPTION_SEED, SUBSCRIPTION_SIZE, type SubscribeAsyncInput, type SubscribeData, type SubscribeDataArgs, type SubscribeInput, type SubscribeInstruction, type SubscribeInstructionData, type SubscribeInstructionDataArgs, type SubscriptionAuthority, type SubscriptionAuthorityArgs, type SubscriptionAuthoritySeeds, type SubscriptionDelegation, type SubscriptionDelegationArgs, type SubscriptionDelegationSeeds, SubscriptionsAccount, type SubscriptionsError, SubscriptionsInstruction, type SubscriptionsPlugin, type SubscriptionsPluginAccounts, type SubscriptionsPluginInstructions, type SubscriptionsPluginPdas, type SubscriptionsPluginQueries, type SubscriptionsPluginRequirements, TRANSFER_FIXED_DISCRIMINATOR, TRANSFER_RECURRING_DISCRIMINATOR, TRANSFER_SUBSCRIPTION_DISCRIMINATOR, type TransferData, type TransferDataArgs, type TransferDelegationInput, type TransferFixedInput, type TransferFixedInstruction, type TransferFixedInstructionData, type TransferFixedInstructionDataArgs, type TransferHookAccount, type TransferRecurringInput, type TransferRecurringInstruction, type TransferRecurringInstructionData, type TransferRecurringInstructionDataArgs, type TransferSubscriptionInput, type TransferSubscriptionInstruction, type TransferSubscriptionInstructionData, type TransferSubscriptionInstructionDataArgs, U64_BYTE_SIZE, UPDATE_PLAN_DISCRIMINATOR, type UpdatePlanData, type UpdatePlanDataArgs, type UpdatePlanInput, type UpdatePlanInstruction, type UpdatePlanInstructionData, type UpdatePlanInstructionDataArgs, ValidationError, ZERO_ADDRESS, decodeDelegationAccount, decodeEventAuthority, decodeFixedDelegation, decodePlan, decodeRecurringDelegation, decodeSubscriptionAuthority, decodeSubscriptionDelegation, fetchAllEventAuthority, fetchAllFixedDelegation, fetchAllMaybeEventAuthority, fetchAllMaybeFixedDelegation, fetchAllMaybePlan, fetchAllMaybeRecurringDelegation, fetchAllMaybeSubscriptionAuthority, fetchAllMaybeSubscriptionDelegation, fetchAllPlan, fetchAllRecurringDelegation, fetchAllSubscriptionAuthority, fetchAllSubscriptionDelegation, fetchDelegationsByDelegatee, fetchDelegationsByDelegator, fetchEventAuthority, fetchEventAuthorityFromSeeds, fetchFixedDelegation, fetchFixedDelegationFromSeeds, fetchMaybeEventAuthority, fetchMaybeEventAuthorityFromSeeds, fetchMaybeFixedDelegation, fetchMaybeFixedDelegationFromSeeds, fetchMaybePlan, fetchMaybePlanFromSeeds, fetchMaybeRecurringDelegation, fetchMaybeRecurringDelegationFromSeeds, fetchMaybeSubscriptionAuthority, fetchMaybeSubscriptionAuthorityFromSeeds, fetchMaybeSubscriptionDelegation, fetchMaybeSubscriptionDelegationFromSeeds, fetchPlan, fetchPlanFromSeeds, fetchPlansForOwner, fetchRecurringDelegation, fetchRecurringDelegationFromSeeds, fetchSubscriptionAuthority, fetchSubscriptionAuthorityFromSeeds, fetchSubscriptionDelegation, fetchSubscriptionDelegationFromSeeds, fetchSubscriptionsForUser, findEventAuthorityPda, findFixedDelegationPda, findPlanPda, findRecurringDelegationPda, findSubscriptionAuthorityPda, findSubscriptionDelegationPda, getAccountDiscriminatorCodec, getAccountDiscriminatorDecoder, getAccountDiscriminatorEncoder, getCancelSubscriptionDiscriminatorBytes, getCancelSubscriptionInstruction, getCancelSubscriptionInstructionAsync, getCancelSubscriptionInstructionDataCodec, getCancelSubscriptionInstructionDataDecoder, getCancelSubscriptionInstructionDataEncoder, getCancelSubscriptionOverlayInstructionAsync, getCloseSubscriptionAuthorityDiscriminatorBytes, getCloseSubscriptionAuthorityInstruction, getCloseSubscriptionAuthorityInstructionDataCodec, getCloseSubscriptionAuthorityInstructionDataDecoder, getCloseSubscriptionAuthorityInstructionDataEncoder, getCloseSubscriptionAuthorityOverlayInstructionAsync, getCreateFixedDelegationDataCodec, getCreateFixedDelegationDataDecoder, getCreateFixedDelegationDataEncoder, getCreateFixedDelegationDiscriminatorBytes, getCreateFixedDelegationInstruction, getCreateFixedDelegationInstructionDataCodec, getCreateFixedDelegationInstructionDataDecoder, getCreateFixedDelegationInstructionDataEncoder, getCreateFixedDelegationOverlayInstructionAsync, getCreatePlanDiscriminatorBytes, getCreatePlanInstruction, getCreatePlanInstructionDataCodec, getCreatePlanInstructionDataDecoder, getCreatePlanInstructionDataEncoder, getCreatePlanOverlayInstructionAsync, getCreateRecurringDelegationDataCodec, getCreateRecurringDelegationDataDecoder, getCreateRecurringDelegationDataEncoder, getCreateRecurringDelegationDiscriminatorBytes, getCreateRecurringDelegationInstruction, getCreateRecurringDelegationInstructionDataCodec, getCreateRecurringDelegationInstructionDataDecoder, getCreateRecurringDelegationInstructionDataEncoder, getCreateRecurringDelegationOverlayInstructionAsync, getDeletePlanDiscriminatorBytes, getDeletePlanInstruction, getDeletePlanInstructionDataCodec, getDeletePlanInstructionDataDecoder, getDeletePlanInstructionDataEncoder, getDeletePlanOverlayInstruction, getEventAuthorityCodec, getEventAuthorityDecoder, getEventAuthorityEncoder, getFixedDelegationCodec, getFixedDelegationDecoder, getFixedDelegationEncoder, getHeaderCodec, getHeaderDecoder, getHeaderEncoder, getInitSubscriptionAuthorityDiscriminatorBytes, getInitSubscriptionAuthorityInstruction, getInitSubscriptionAuthorityInstructionAsync, getInitSubscriptionAuthorityInstructionDataCodec, getInitSubscriptionAuthorityInstructionDataDecoder, getInitSubscriptionAuthorityInstructionDataEncoder, getInitSubscriptionAuthorityOverlayInstructionAsync, getPlanCodec, getPlanDataCodec, getPlanDataDecoder, getPlanDataEncoder, getPlanDecoder, getPlanEncoder, getPlanStatusCodec, getPlanStatusDecoder, getPlanStatusEncoder, getPlanTermsCodec, getPlanTermsDecoder, getPlanTermsEncoder, getRecurringDelegationCodec, getRecurringDelegationDecoder, getRecurringDelegationEncoder, getResumeSubscriptionDiscriminatorBytes, getResumeSubscriptionInstruction, getResumeSubscriptionInstructionAsync, getResumeSubscriptionInstructionDataCodec, getResumeSubscriptionInstructionDataDecoder, getResumeSubscriptionInstructionDataEncoder, getResumeSubscriptionOverlayInstructionAsync, getRevokeAbandonedDelegationDiscriminatorBytes, getRevokeAbandonedDelegationInstruction, getRevokeAbandonedDelegationInstructionDataCodec, getRevokeAbandonedDelegationInstructionDataDecoder, getRevokeAbandonedDelegationInstructionDataEncoder, getRevokeDelegationDiscriminatorBytes, getRevokeDelegationInstruction, getRevokeDelegationInstructionDataCodec, getRevokeDelegationInstructionDataDecoder, getRevokeDelegationInstructionDataEncoder, getRevokeDelegationOverlayInstruction, getRevokeSubscriptionAuthorityDiscriminatorBytes, getRevokeSubscriptionAuthorityInstruction, getRevokeSubscriptionAuthorityInstructionDataCodec, getRevokeSubscriptionAuthorityInstructionDataDecoder, getRevokeSubscriptionAuthorityInstructionDataEncoder, getRevokeSubscriptionAuthorityOverlayInstructionAsync, getRevokeSubscriptionOverlayInstruction, getSubscribeDataCodec, getSubscribeDataDecoder, getSubscribeDataEncoder, getSubscribeDiscriminatorBytes, getSubscribeInstruction, getSubscribeInstructionAsync, getSubscribeInstructionDataCodec, getSubscribeInstructionDataDecoder, getSubscribeInstructionDataEncoder, getSubscribeOverlayInstructionAsync, getSubscriptionAuthorityCodec, getSubscriptionAuthorityDecoder, getSubscriptionAuthorityEncoder, getSubscriptionDelegationCodec, getSubscriptionDelegationDecoder, getSubscriptionDelegationEncoder, getSubscriptionsErrorMessage, getTransferDataCodec, getTransferDataDecoder, getTransferDataEncoder, getTransferFixedDiscriminatorBytes, getTransferFixedInstruction, getTransferFixedInstructionDataCodec, getTransferFixedInstructionDataDecoder, getTransferFixedInstructionDataEncoder, getTransferFixedOverlayInstructionAsync, getTransferRecurringDiscriminatorBytes, getTransferRecurringInstruction, getTransferRecurringInstructionDataCodec, getTransferRecurringInstructionDataDecoder, getTransferRecurringInstructionDataEncoder, getTransferRecurringOverlayInstructionAsync, getTransferSubscriptionDiscriminatorBytes, getTransferSubscriptionInstruction, getTransferSubscriptionInstructionDataCodec, getTransferSubscriptionInstructionDataDecoder, getTransferSubscriptionInstructionDataEncoder, getTransferSubscriptionOverlayInstructionAsync, getUpdatePlanDataCodec, getUpdatePlanDataDecoder, getUpdatePlanDataEncoder, getUpdatePlanDiscriminatorBytes, getUpdatePlanInstruction, getUpdatePlanInstructionDataCodec, getUpdatePlanInstructionDataDecoder, getUpdatePlanInstructionDataEncoder, getUpdatePlanOverlayInstruction, identifySubscriptionsInstruction, isSubscriptionsError, parseCancelSubscriptionInstruction, parseCloseSubscriptionAuthorityInstruction, parseCreateFixedDelegationInstruction, parseCreatePlanInstruction, parseCreateRecurringDelegationInstruction, parseDeletePlanInstruction, parseInitSubscriptionAuthorityInstruction, parseResumeSubscriptionInstruction, parseRevokeAbandonedDelegationInstruction, parseRevokeDelegationInstruction, parseRevokeSubscriptionAuthorityInstruction, parseSubscribeInstruction, parseSubscriptionsInstruction, parseTransferFixedInstruction, parseTransferRecurringInstruction, parseTransferSubscriptionInstruction, parseUpdatePlanInstruction, resolveTransferHookAccounts, subscriptionsProgram, toEncodedAccount };
|