@solana/subscriptions 0.5.0 → 0.6.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
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, 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
- import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
2
+ import { FixedSizeCodec, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccounts, ClientWithRpc, GetMultipleAccountsApi, Address, HasAddress, FetchAccountsConfig, fetchEncodedAccount, GetAccountInfoApi, FetchAccountConfig, FixedSizeDecoder, FixedSizeEncoder, ProgramDerivedAddress, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ReadonlyUint8Array, Instruction, InstructionWithData, ClientWithTransactionPlanning, ClientWithTransactionSending, AccountMeta, InstructionWithAccounts, ReadonlySignerAccount, AccountSignerMeta, ReadonlyAccount, WritableAccount, WritableSignerAccount, AccountInfoWithPubkey, AccountInfoBase, AccountInfoWithBase64EncodedData, Rpc, GetProgramAccountsApi, AccountRole, TransactionSigner, ClientWithIdentity, ClientWithPayer } from '@solana/kit';
3
+ import { SelfFetchFunctions, SelfPlanAndSendFunctions, InstructionSignerInput, InstructionAccountInput, ResolvedInstructionAccountMeta, InstructionAccountInputAddress } from '@solana/program-client-core';
4
4
  import { fetchMint } from '@solana-program/token-2022';
5
5
 
6
6
  /**
@@ -21,15 +21,15 @@ declare function getEventAuthorityDecoder(): FixedSizeDecoder<EventAuthority>;
21
21
  declare function getEventAuthorityCodec(): FixedSizeCodec<EventAuthorityArgs, EventAuthority>;
22
22
  declare function decodeEventAuthority<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<EventAuthority, TAddress>;
23
23
  declare function decodeEventAuthority<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<EventAuthority, TAddress>;
24
- declare function fetchEventAuthority<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<EventAuthority, TAddress>>;
25
- declare function fetchMaybeEventAuthority<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<EventAuthority, TAddress>>;
26
- declare function fetchAllEventAuthority(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<EventAuthority>[]>;
27
- declare function fetchAllMaybeEventAuthority(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<EventAuthority>[]>;
28
- declare function fetchEventAuthorityFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], config?: FetchAccountConfig & {
29
- programAddress?: Address;
24
+ declare function fetchEventAuthority<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<EventAuthority, TAddress>>;
25
+ declare function fetchMaybeEventAuthority<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<EventAuthority, TAddress>>;
26
+ declare function fetchAllEventAuthority(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<EventAuthority>[]>;
27
+ declare function fetchAllMaybeEventAuthority(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<EventAuthority>[]>;
28
+ declare function fetchEventAuthorityFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, config?: FetchAccountConfig & {
29
+ programAddress?: Address | HasAddress;
30
30
  }): Promise<Account<EventAuthority>>;
31
- declare function fetchMaybeEventAuthorityFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], config?: FetchAccountConfig & {
32
- programAddress?: Address;
31
+ declare function fetchMaybeEventAuthorityFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, config?: FetchAccountConfig & {
32
+ programAddress?: Address | HasAddress;
33
33
  }): Promise<MaybeAccount<EventAuthority>>;
34
34
 
35
35
  /**
@@ -41,7 +41,7 @@ declare function fetchMaybeEventAuthorityFromSeeds(rpc: Parameters<typeof fetchE
41
41
  */
42
42
 
43
43
  declare function findEventAuthorityPda(config?: {
44
- programAddress?: Address | undefined;
44
+ programAddress?: Address | HasAddress | undefined;
45
45
  }): Promise<ProgramDerivedAddress>;
46
46
 
47
47
  /**
@@ -53,13 +53,13 @@ declare function findEventAuthorityPda(config?: {
53
53
  */
54
54
 
55
55
  type FixedDelegationSeeds = {
56
- subscriptionAuthority: Address;
57
- delegator: Address;
58
- delegatee: Address;
56
+ subscriptionAuthority: Address | HasAddress;
57
+ delegator: Address | HasAddress;
58
+ delegatee: Address | HasAddress;
59
59
  nonce: number | bigint;
60
60
  };
61
61
  declare function findFixedDelegationPda(seeds: FixedDelegationSeeds, config?: {
62
- programAddress?: Address | undefined;
62
+ programAddress?: Address | HasAddress | undefined;
63
63
  }): Promise<ProgramDerivedAddress>;
64
64
 
65
65
  /**
@@ -71,11 +71,11 @@ declare function findFixedDelegationPda(seeds: FixedDelegationSeeds, config?: {
71
71
  */
72
72
 
73
73
  type PlanSeeds = {
74
- owner: Address;
74
+ owner: Address | HasAddress;
75
75
  planId: number | bigint;
76
76
  };
77
77
  declare function findPlanPda(seeds: PlanSeeds, config?: {
78
- programAddress?: Address | undefined;
78
+ programAddress?: Address | HasAddress | undefined;
79
79
  }): Promise<ProgramDerivedAddress>;
80
80
 
81
81
  /**
@@ -87,13 +87,13 @@ declare function findPlanPda(seeds: PlanSeeds, config?: {
87
87
  */
88
88
 
89
89
  type RecurringDelegationSeeds = {
90
- subscriptionAuthority: Address;
91
- delegator: Address;
92
- delegatee: Address;
90
+ subscriptionAuthority: Address | HasAddress;
91
+ delegator: Address | HasAddress;
92
+ delegatee: Address | HasAddress;
93
93
  nonce: number | bigint;
94
94
  };
95
95
  declare function findRecurringDelegationPda(seeds: RecurringDelegationSeeds, config?: {
96
- programAddress?: Address | undefined;
96
+ programAddress?: Address | HasAddress | undefined;
97
97
  }): Promise<ProgramDerivedAddress>;
98
98
 
99
99
  /**
@@ -105,11 +105,11 @@ declare function findRecurringDelegationPda(seeds: RecurringDelegationSeeds, con
105
105
  */
106
106
 
107
107
  type SubscriptionAuthoritySeeds = {
108
- user: Address;
109
- tokenMint: Address;
108
+ user: Address | HasAddress;
109
+ tokenMint: Address | HasAddress;
110
110
  };
111
111
  declare function findSubscriptionAuthorityPda(seeds: SubscriptionAuthoritySeeds, config?: {
112
- programAddress?: Address | undefined;
112
+ programAddress?: Address | HasAddress | undefined;
113
113
  }): Promise<ProgramDerivedAddress>;
114
114
 
115
115
  /**
@@ -121,11 +121,26 @@ declare function findSubscriptionAuthorityPda(seeds: SubscriptionAuthoritySeeds,
121
121
  */
122
122
 
123
123
  type SubscriptionDelegationSeeds = {
124
- planPda: Address;
125
- subscriber: Address;
124
+ planPda: Address | HasAddress;
125
+ subscriber: Address | HasAddress;
126
126
  };
127
127
  declare function findSubscriptionDelegationPda(seeds: SubscriptionDelegationSeeds, config?: {
128
- programAddress?: Address | undefined;
128
+ programAddress?: Address | HasAddress | undefined;
129
+ }): Promise<ProgramDerivedAddress>;
130
+
131
+ /**
132
+ * This code was AUTOGENERATED using the Codama library.
133
+ * Please DO NOT EDIT THIS FILE, instead use visitors
134
+ * to add features, then rerun Codama to update it.
135
+ *
136
+ * @see https://github.com/codama-idl/codama
137
+ */
138
+
139
+ type TransferContextSeeds = {
140
+ subscriptionAuthority: Address | HasAddress;
141
+ };
142
+ declare function findTransferContextPda(seeds: TransferContextSeeds, config?: {
143
+ programAddress?: Address | HasAddress | undefined;
129
144
  }): Promise<ProgramDerivedAddress>;
130
145
 
131
146
  /**
@@ -141,7 +156,8 @@ declare enum AccountDiscriminator {
141
156
  Plan = 1,
142
157
  FixedDelegation = 2,
143
158
  RecurringDelegation = 3,
144
- SubscriptionDelegation = 4
159
+ SubscriptionDelegation = 4,
160
+ TransferContext = 5
145
161
  }
146
162
  type AccountDiscriminatorArgs = AccountDiscriminator;
147
163
  declare function getAccountDiscriminatorEncoder(): FixedSizeEncoder<AccountDiscriminatorArgs>;
@@ -239,9 +255,9 @@ type HeaderArgs = {
239
255
  discriminator: number;
240
256
  version: number;
241
257
  bump: number;
242
- delegator: Address;
243
- delegatee: Address;
244
- payer: Address;
258
+ delegator: Address | HasAddress;
259
+ delegatee: Address | HasAddress;
260
+ payer: Address | HasAddress;
245
261
  initId: number | bigint;
246
262
  };
247
263
  declare function getHeaderEncoder(): FixedSizeEncoder<HeaderArgs>;
@@ -267,11 +283,11 @@ type PlanData = {
267
283
  };
268
284
  type PlanDataArgs = {
269
285
  planId: number | bigint;
270
- mint: Address;
286
+ mint: Address | HasAddress;
271
287
  terms: PlanTermsArgs;
272
288
  endTs: number | bigint;
273
- destinations: Array<Address>;
274
- pullers: Array<Address>;
289
+ destinations: Array<Address | HasAddress>;
290
+ pullers: Array<Address | HasAddress>;
275
291
  metadataUri: string;
276
292
  };
277
293
  declare function getPlanDataEncoder(): FixedSizeEncoder<PlanDataArgs>;
@@ -355,7 +371,7 @@ type SubscribeData = {
355
371
  type SubscribeDataArgs = {
356
372
  planId: number | bigint;
357
373
  planBump: number;
358
- expectedMint: Address;
374
+ expectedMint: Address | HasAddress;
359
375
  expectedAmount: number | bigint;
360
376
  expectedPeriodHours: number | bigint;
361
377
  expectedCreatedAt: number | bigint;
@@ -380,8 +396,8 @@ type TransferData = {
380
396
  };
381
397
  type TransferDataArgs = {
382
398
  amount: number | bigint;
383
- delegator: Address;
384
- mint: Address;
399
+ delegator: Address | HasAddress;
400
+ mint: Address | HasAddress;
385
401
  };
386
402
  declare function getTransferDataEncoder(): FixedSizeEncoder<TransferDataArgs>;
387
403
  declare function getTransferDataDecoder(): FixedSizeDecoder<TransferData>;
@@ -408,11 +424,11 @@ type UpdatePlanData = {
408
424
  type UpdatePlanDataArgs = {
409
425
  status: number;
410
426
  endTs: number | bigint;
411
- pullers: Array<Address>;
427
+ pullers: Array<Address | HasAddress>;
412
428
  metadataUri: string;
413
429
  expectedCreatedAt: number | bigint;
414
430
  expectedEndTs: number | bigint;
415
- expectedPullers: Array<Address>;
431
+ expectedPullers: Array<Address | HasAddress>;
416
432
  expectedMetadataUri: string;
417
433
  };
418
434
  declare function getUpdatePlanDataEncoder(): FixedSizeEncoder<UpdatePlanDataArgs>;
@@ -436,8 +452,8 @@ type FixedDelegation = {
436
452
  };
437
453
  type FixedDelegationArgs = {
438
454
  header: HeaderArgs;
439
- subscriptionAuthority: Address;
440
- mint: Address;
455
+ subscriptionAuthority: Address | HasAddress;
456
+ mint: Address | HasAddress;
441
457
  amount: number | bigint;
442
458
  expiryTs: number | bigint;
443
459
  };
@@ -449,15 +465,15 @@ declare function getFixedDelegationDecoder(): FixedSizeDecoder<FixedDelegation>;
449
465
  declare function getFixedDelegationCodec(): FixedSizeCodec<FixedDelegationArgs, FixedDelegation>;
450
466
  declare function decodeFixedDelegation<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<FixedDelegation, TAddress>;
451
467
  declare function decodeFixedDelegation<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<FixedDelegation, TAddress>;
452
- declare function fetchFixedDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<FixedDelegation, TAddress>>;
453
- declare function fetchMaybeFixedDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<FixedDelegation, TAddress>>;
454
- declare function fetchAllFixedDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<FixedDelegation>[]>;
455
- declare function fetchAllMaybeFixedDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<FixedDelegation>[]>;
456
- declare function fetchFixedDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: FixedDelegationSeeds, config?: FetchAccountConfig & {
457
- programAddress?: Address;
468
+ declare function fetchFixedDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<FixedDelegation, TAddress>>;
469
+ declare function fetchMaybeFixedDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<FixedDelegation, TAddress>>;
470
+ declare function fetchAllFixedDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<FixedDelegation>[]>;
471
+ declare function fetchAllMaybeFixedDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<FixedDelegation>[]>;
472
+ declare function fetchFixedDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: FixedDelegationSeeds, config?: FetchAccountConfig & {
473
+ programAddress?: Address | HasAddress;
458
474
  }): Promise<Account<FixedDelegation>>;
459
- declare function fetchMaybeFixedDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: FixedDelegationSeeds, config?: FetchAccountConfig & {
460
- programAddress?: Address;
475
+ declare function fetchMaybeFixedDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: FixedDelegationSeeds, config?: FetchAccountConfig & {
476
+ programAddress?: Address | HasAddress;
461
477
  }): Promise<MaybeAccount<FixedDelegation>>;
462
478
 
463
479
  /**
@@ -477,7 +493,7 @@ type Plan = {
477
493
  };
478
494
  type PlanArgs = {
479
495
  discriminator: number;
480
- owner: Address;
496
+ owner: Address | HasAddress;
481
497
  bump: number;
482
498
  status: number;
483
499
  data: PlanDataArgs;
@@ -490,15 +506,15 @@ declare function getPlanDecoder(): FixedSizeDecoder<Plan>;
490
506
  declare function getPlanCodec(): FixedSizeCodec<PlanArgs, Plan>;
491
507
  declare function decodePlan<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Plan, TAddress>;
492
508
  declare function decodePlan<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Plan, TAddress>;
493
- declare function fetchPlan<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Plan, TAddress>>;
494
- declare function fetchMaybePlan<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Plan, TAddress>>;
495
- declare function fetchAllPlan(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Plan>[]>;
496
- declare function fetchAllMaybePlan(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Plan>[]>;
497
- declare function fetchPlanFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: PlanSeeds, config?: FetchAccountConfig & {
498
- programAddress?: Address;
509
+ declare function fetchPlan<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<Plan, TAddress>>;
510
+ declare function fetchMaybePlan<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Plan, TAddress>>;
511
+ declare function fetchAllPlan(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<Plan>[]>;
512
+ declare function fetchAllMaybePlan(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<Plan>[]>;
513
+ declare function fetchPlanFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: PlanSeeds, config?: FetchAccountConfig & {
514
+ programAddress?: Address | HasAddress;
499
515
  }): Promise<Account<Plan>>;
500
- declare function fetchMaybePlanFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: PlanSeeds, config?: FetchAccountConfig & {
501
- programAddress?: Address;
516
+ declare function fetchMaybePlanFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: PlanSeeds, config?: FetchAccountConfig & {
517
+ programAddress?: Address | HasAddress;
502
518
  }): Promise<MaybeAccount<Plan>>;
503
519
 
504
520
  /**
@@ -521,8 +537,8 @@ type RecurringDelegation = {
521
537
  };
522
538
  type RecurringDelegationArgs = {
523
539
  header: HeaderArgs;
524
- subscriptionAuthority: Address;
525
- mint: Address;
540
+ subscriptionAuthority: Address | HasAddress;
541
+ mint: Address | HasAddress;
526
542
  currentPeriodStartTs: number | bigint;
527
543
  periodLengthS: number | bigint;
528
544
  expiryTs: number | bigint;
@@ -537,15 +553,15 @@ declare function getRecurringDelegationDecoder(): FixedSizeDecoder<RecurringDele
537
553
  declare function getRecurringDelegationCodec(): FixedSizeCodec<RecurringDelegationArgs, RecurringDelegation>;
538
554
  declare function decodeRecurringDelegation<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<RecurringDelegation, TAddress>;
539
555
  declare function decodeRecurringDelegation<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<RecurringDelegation, TAddress>;
540
- declare function fetchRecurringDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<RecurringDelegation, TAddress>>;
541
- declare function fetchMaybeRecurringDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<RecurringDelegation, TAddress>>;
542
- declare function fetchAllRecurringDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<RecurringDelegation>[]>;
543
- declare function fetchAllMaybeRecurringDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<RecurringDelegation>[]>;
544
- declare function fetchRecurringDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: RecurringDelegationSeeds, config?: FetchAccountConfig & {
545
- programAddress?: Address;
556
+ declare function fetchRecurringDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<RecurringDelegation, TAddress>>;
557
+ declare function fetchMaybeRecurringDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<RecurringDelegation, TAddress>>;
558
+ declare function fetchAllRecurringDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<RecurringDelegation>[]>;
559
+ declare function fetchAllMaybeRecurringDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<RecurringDelegation>[]>;
560
+ declare function fetchRecurringDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: RecurringDelegationSeeds, config?: FetchAccountConfig & {
561
+ programAddress?: Address | HasAddress;
546
562
  }): Promise<Account<RecurringDelegation>>;
547
- declare function fetchMaybeRecurringDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: RecurringDelegationSeeds, config?: FetchAccountConfig & {
548
- programAddress?: Address;
563
+ declare function fetchMaybeRecurringDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: RecurringDelegationSeeds, config?: FetchAccountConfig & {
564
+ programAddress?: Address | HasAddress;
549
565
  }): Promise<MaybeAccount<RecurringDelegation>>;
550
566
 
551
567
  /**
@@ -566,9 +582,9 @@ type SubscriptionAuthority = {
566
582
  };
567
583
  type SubscriptionAuthorityArgs = {
568
584
  discriminator: number;
569
- user: Address;
570
- tokenMint: Address;
571
- payer: Address;
585
+ user: Address | HasAddress;
586
+ tokenMint: Address | HasAddress;
587
+ payer: Address | HasAddress;
572
588
  bump: number;
573
589
  initId: number | bigint;
574
590
  };
@@ -580,15 +596,15 @@ declare function getSubscriptionAuthorityDecoder(): FixedSizeDecoder<Subscriptio
580
596
  declare function getSubscriptionAuthorityCodec(): FixedSizeCodec<SubscriptionAuthorityArgs, SubscriptionAuthority>;
581
597
  declare function decodeSubscriptionAuthority<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<SubscriptionAuthority, TAddress>;
582
598
  declare function decodeSubscriptionAuthority<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<SubscriptionAuthority, TAddress>;
583
- declare function fetchSubscriptionAuthority<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<SubscriptionAuthority, TAddress>>;
584
- declare function fetchMaybeSubscriptionAuthority<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<SubscriptionAuthority, TAddress>>;
585
- declare function fetchAllSubscriptionAuthority(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<SubscriptionAuthority>[]>;
586
- declare function fetchAllMaybeSubscriptionAuthority(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<SubscriptionAuthority>[]>;
587
- declare function fetchSubscriptionAuthorityFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: SubscriptionAuthoritySeeds, config?: FetchAccountConfig & {
588
- programAddress?: Address;
599
+ declare function fetchSubscriptionAuthority<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<SubscriptionAuthority, TAddress>>;
600
+ declare function fetchMaybeSubscriptionAuthority<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<SubscriptionAuthority, TAddress>>;
601
+ declare function fetchAllSubscriptionAuthority(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<SubscriptionAuthority>[]>;
602
+ declare function fetchAllMaybeSubscriptionAuthority(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<SubscriptionAuthority>[]>;
603
+ declare function fetchSubscriptionAuthorityFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: SubscriptionAuthoritySeeds, config?: FetchAccountConfig & {
604
+ programAddress?: Address | HasAddress;
589
605
  }): Promise<Account<SubscriptionAuthority>>;
590
- declare function fetchMaybeSubscriptionAuthorityFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: SubscriptionAuthoritySeeds, config?: FetchAccountConfig & {
591
- programAddress?: Address;
606
+ declare function fetchMaybeSubscriptionAuthorityFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: SubscriptionAuthoritySeeds, config?: FetchAccountConfig & {
607
+ programAddress?: Address | HasAddress;
592
608
  }): Promise<MaybeAccount<SubscriptionAuthority>>;
593
609
 
594
610
  /**
@@ -621,17 +637,58 @@ declare function getSubscriptionDelegationDecoder(): FixedSizeDecoder<Subscripti
621
637
  declare function getSubscriptionDelegationCodec(): FixedSizeCodec<SubscriptionDelegationArgs, SubscriptionDelegation>;
622
638
  declare function decodeSubscriptionDelegation<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<SubscriptionDelegation, TAddress>;
623
639
  declare function decodeSubscriptionDelegation<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<SubscriptionDelegation, TAddress>;
624
- declare function fetchSubscriptionDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<SubscriptionDelegation, TAddress>>;
625
- declare function fetchMaybeSubscriptionDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<SubscriptionDelegation, TAddress>>;
626
- declare function fetchAllSubscriptionDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<SubscriptionDelegation>[]>;
627
- declare function fetchAllMaybeSubscriptionDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<SubscriptionDelegation>[]>;
628
- declare function fetchSubscriptionDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: SubscriptionDelegationSeeds, config?: FetchAccountConfig & {
629
- programAddress?: Address;
640
+ declare function fetchSubscriptionDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<SubscriptionDelegation, TAddress>>;
641
+ declare function fetchMaybeSubscriptionDelegation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<SubscriptionDelegation, TAddress>>;
642
+ declare function fetchAllSubscriptionDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<SubscriptionDelegation>[]>;
643
+ declare function fetchAllMaybeSubscriptionDelegation(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<SubscriptionDelegation>[]>;
644
+ declare function fetchSubscriptionDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: SubscriptionDelegationSeeds, config?: FetchAccountConfig & {
645
+ programAddress?: Address | HasAddress;
630
646
  }): Promise<Account<SubscriptionDelegation>>;
631
- declare function fetchMaybeSubscriptionDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: SubscriptionDelegationSeeds, config?: FetchAccountConfig & {
632
- programAddress?: Address;
647
+ declare function fetchMaybeSubscriptionDelegationFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: SubscriptionDelegationSeeds, config?: FetchAccountConfig & {
648
+ programAddress?: Address | HasAddress;
633
649
  }): Promise<MaybeAccount<SubscriptionDelegation>>;
634
650
 
651
+ /**
652
+ * This code was AUTOGENERATED using the Codama library.
653
+ * Please DO NOT EDIT THIS FILE, instead use visitors
654
+ * to add features, then rerun Codama to update it.
655
+ *
656
+ * @see https://github.com/codama-idl/codama
657
+ */
658
+
659
+ type TransferContext = {
660
+ discriminator: number;
661
+ version: number;
662
+ initiator: Address;
663
+ delegation: Address;
664
+ delegationKind: number;
665
+ };
666
+ type TransferContextArgs = {
667
+ discriminator: number;
668
+ version: number;
669
+ initiator: Address | HasAddress;
670
+ delegation: Address | HasAddress;
671
+ delegationKind: number;
672
+ };
673
+ /** Gets the encoder for {@link TransferContextArgs} account data. */
674
+ declare function getTransferContextEncoder(): FixedSizeEncoder<TransferContextArgs>;
675
+ /** Gets the decoder for {@link TransferContext} account data. */
676
+ declare function getTransferContextDecoder(): FixedSizeDecoder<TransferContext>;
677
+ /** Gets the codec for {@link TransferContext} account data. */
678
+ declare function getTransferContextCodec(): FixedSizeCodec<TransferContextArgs, TransferContext>;
679
+ declare function decodeTransferContext<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<TransferContext, TAddress>;
680
+ declare function decodeTransferContext<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<TransferContext, TAddress>;
681
+ declare function fetchTransferContext<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<Account<TransferContext, TAddress>>;
682
+ declare function fetchMaybeTransferContext<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, address: Address<TAddress> | HasAddress<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<TransferContext, TAddress>>;
683
+ declare function fetchAllTransferContext(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<Account<TransferContext>[]>;
684
+ declare function fetchAllMaybeTransferContext(rpc: Parameters<typeof fetchEncodedAccounts>[0] | ClientWithRpc<GetMultipleAccountsApi>, addresses: Array<Address | HasAddress>, config?: FetchAccountsConfig): Promise<MaybeAccount<TransferContext>[]>;
685
+ declare function fetchTransferContextFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: TransferContextSeeds, config?: FetchAccountConfig & {
686
+ programAddress?: Address | HasAddress;
687
+ }): Promise<Account<TransferContext>>;
688
+ declare function fetchMaybeTransferContextFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0] | ClientWithRpc<GetAccountInfoApi>, seeds: TransferContextSeeds, config?: FetchAccountConfig & {
689
+ programAddress?: Address | HasAddress;
690
+ }): Promise<MaybeAccount<TransferContext>>;
691
+
635
692
  /**
636
693
  * This code was AUTOGENERATED using the Codama library.
637
694
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -678,6 +735,7 @@ declare const SUBSCRIPTIONS_ERROR__MIGRATION_REQUIRED = 134;
678
735
  declare const SUBSCRIPTIONS_ERROR__DELEGATION_ALREADY_EXISTS = 135;
679
736
  declare const SUBSCRIPTIONS_ERROR__STALE_SUBSCRIPTION_AUTHORITY = 136;
680
737
  declare const SUBSCRIPTIONS_ERROR__TRANSFER_HOOK_TOO_MANY_ACCOUNTS = 137;
738
+ declare const SUBSCRIPTIONS_ERROR__NO_EXCESS_LAMPORTS = 138;
681
739
  declare const SUBSCRIPTIONS_ERROR__AMOUNT_EXCEEDS_LIMIT = 300;
682
740
  declare const SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_EXPIRY_IN_PAST = 301;
683
741
  declare const SUBSCRIPTIONS_ERROR__FIXED_DELEGATION_AMOUNT_ZERO = 302;
@@ -718,18 +776,285 @@ declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_DATA = 601;
718
776
  declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_TAG = 602;
719
777
  declare const SUBSCRIPTIONS_ERROR__INVALID_EVENT_DISCRIMINATOR = 603;
720
778
  declare const SUBSCRIPTIONS_ERROR__INVALID_SELF_PROGRAM = 604;
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;
779
+ 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__NO_EXCESS_LAMPORTS | 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;
722
780
  declare function getSubscriptionsErrorMessage(code: SubscriptionsError): string;
723
781
  declare function isSubscriptionsError<TProgramErrorCode extends SubscriptionsError>(error: unknown, transactionMessage: {
724
782
  instructions: Record<number, {
725
783
  programAddress: Address;
726
784
  }>;
727
- }, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
785
+ }, code?: TProgramErrorCode, config?: {
786
+ programAddress?: Address | HasAddress;
787
+ }): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
728
788
  context: Readonly<{
729
789
  code: TProgramErrorCode;
730
790
  }>;
731
791
  }>;
732
792
 
793
+ /**
794
+ * This code was AUTOGENERATED using the Codama library.
795
+ * Please DO NOT EDIT THIS FILE, instead use visitors
796
+ * to add features, then rerun Codama to update it.
797
+ *
798
+ * @see https://github.com/codama-idl/codama
799
+ */
800
+
801
+ declare const FIXED_TRANSFER_EVENT_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
802
+ declare function getFixedTransferEventEventDiscriminatorBytes(): ReadonlyUint8Array;
803
+ declare const FIXED_TRANSFER_EVENT_EVENT_DISCRIMINATOR2: ReadonlyUint8Array;
804
+ declare function getFixedTransferEventEventDiscriminator2Bytes(): ReadonlyUint8Array;
805
+ type FixedTransferEventEvent = {
806
+ delegation: Address;
807
+ delegator: Address;
808
+ delegatee: Address;
809
+ mint: Address;
810
+ amount: bigint;
811
+ remainingAmount: bigint;
812
+ receiver: Address;
813
+ receiverTokenAccount: Address;
814
+ };
815
+ type FixedTransferEventEventArgs = {
816
+ delegation: Address | HasAddress;
817
+ delegator: Address | HasAddress;
818
+ delegatee: Address | HasAddress;
819
+ mint: Address | HasAddress;
820
+ amount: number | bigint;
821
+ remainingAmount: number | bigint;
822
+ receiver: Address | HasAddress;
823
+ receiverTokenAccount: Address | HasAddress;
824
+ };
825
+ /** Gets the encoder for {@link FixedTransferEventEventArgs} event data. */
826
+ declare function getFixedTransferEventEventEncoder(): FixedSizeEncoder<FixedTransferEventEventArgs>;
827
+ /** Gets the decoder for {@link FixedTransferEventEvent} event data. */
828
+ declare function getFixedTransferEventEventDecoder(): FixedSizeDecoder<FixedTransferEventEvent>;
829
+ /** Gets the codec for {@link FixedTransferEventEvent} event data. */
830
+ declare function getFixedTransferEventEventCodec(): FixedSizeCodec<FixedTransferEventEventArgs, FixedTransferEventEvent>;
831
+ /** Parses the provided bytes into {@link FixedTransferEventEvent} event data. */
832
+ declare function parseFixedTransferEventEvent(data: ReadonlyUint8Array | Uint8Array): FixedTransferEventEvent;
833
+
834
+ /**
835
+ * This code was AUTOGENERATED using the Codama library.
836
+ * Please DO NOT EDIT THIS FILE, instead use visitors
837
+ * to add features, then rerun Codama to update it.
838
+ *
839
+ * @see https://github.com/codama-idl/codama
840
+ */
841
+
842
+ declare const PLAN_UPDATED_EVENT_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
843
+ declare function getPlanUpdatedEventEventDiscriminatorBytes(): ReadonlyUint8Array;
844
+ declare const PLAN_UPDATED_EVENT_EVENT_DISCRIMINATOR2: ReadonlyUint8Array;
845
+ declare function getPlanUpdatedEventEventDiscriminator2Bytes(): ReadonlyUint8Array;
846
+ type PlanUpdatedEventEvent = {
847
+ plan: Address;
848
+ owner: Address;
849
+ status: number;
850
+ endTs: bigint;
851
+ pullers: Array<Address>;
852
+ };
853
+ type PlanUpdatedEventEventArgs = {
854
+ plan: Address | HasAddress;
855
+ owner: Address | HasAddress;
856
+ status: number;
857
+ endTs: number | bigint;
858
+ pullers: Array<Address | HasAddress>;
859
+ };
860
+ /** Gets the encoder for {@link PlanUpdatedEventEventArgs} event data. */
861
+ declare function getPlanUpdatedEventEventEncoder(): FixedSizeEncoder<PlanUpdatedEventEventArgs>;
862
+ /** Gets the decoder for {@link PlanUpdatedEventEvent} event data. */
863
+ declare function getPlanUpdatedEventEventDecoder(): FixedSizeDecoder<PlanUpdatedEventEvent>;
864
+ /** Gets the codec for {@link PlanUpdatedEventEvent} event data. */
865
+ declare function getPlanUpdatedEventEventCodec(): FixedSizeCodec<PlanUpdatedEventEventArgs, PlanUpdatedEventEvent>;
866
+ /** Parses the provided bytes into {@link PlanUpdatedEventEvent} event data. */
867
+ declare function parsePlanUpdatedEventEvent(data: ReadonlyUint8Array | Uint8Array): PlanUpdatedEventEvent;
868
+
869
+ /**
870
+ * This code was AUTOGENERATED using the Codama library.
871
+ * Please DO NOT EDIT THIS FILE, instead use visitors
872
+ * to add features, then rerun Codama to update it.
873
+ *
874
+ * @see https://github.com/codama-idl/codama
875
+ */
876
+
877
+ declare const RECURRING_TRANSFER_EVENT_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
878
+ declare function getRecurringTransferEventEventDiscriminatorBytes(): ReadonlyUint8Array;
879
+ declare const RECURRING_TRANSFER_EVENT_EVENT_DISCRIMINATOR2: ReadonlyUint8Array;
880
+ declare function getRecurringTransferEventEventDiscriminator2Bytes(): ReadonlyUint8Array;
881
+ type RecurringTransferEventEvent = {
882
+ delegation: Address;
883
+ delegator: Address;
884
+ delegatee: Address;
885
+ mint: Address;
886
+ amount: bigint;
887
+ periodStartTs: bigint;
888
+ periodEndTs: bigint;
889
+ amountPulledInPeriod: bigint;
890
+ receiver: Address;
891
+ receiverTokenAccount: Address;
892
+ };
893
+ type RecurringTransferEventEventArgs = {
894
+ delegation: Address | HasAddress;
895
+ delegator: Address | HasAddress;
896
+ delegatee: Address | HasAddress;
897
+ mint: Address | HasAddress;
898
+ amount: number | bigint;
899
+ periodStartTs: number | bigint;
900
+ periodEndTs: number | bigint;
901
+ amountPulledInPeriod: number | bigint;
902
+ receiver: Address | HasAddress;
903
+ receiverTokenAccount: Address | HasAddress;
904
+ };
905
+ /** Gets the encoder for {@link RecurringTransferEventEventArgs} event data. */
906
+ declare function getRecurringTransferEventEventEncoder(): FixedSizeEncoder<RecurringTransferEventEventArgs>;
907
+ /** Gets the decoder for {@link RecurringTransferEventEvent} event data. */
908
+ declare function getRecurringTransferEventEventDecoder(): FixedSizeDecoder<RecurringTransferEventEvent>;
909
+ /** Gets the codec for {@link RecurringTransferEventEvent} event data. */
910
+ declare function getRecurringTransferEventEventCodec(): FixedSizeCodec<RecurringTransferEventEventArgs, RecurringTransferEventEvent>;
911
+ /** Parses the provided bytes into {@link RecurringTransferEventEvent} event data. */
912
+ declare function parseRecurringTransferEventEvent(data: ReadonlyUint8Array | Uint8Array): RecurringTransferEventEvent;
913
+
914
+ /**
915
+ * This code was AUTOGENERATED using the Codama library.
916
+ * Please DO NOT EDIT THIS FILE, instead use visitors
917
+ * to add features, then rerun Codama to update it.
918
+ *
919
+ * @see https://github.com/codama-idl/codama
920
+ */
921
+
922
+ declare const SUBSCRIPTION_CANCELLED_EVENT_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
923
+ declare function getSubscriptionCancelledEventEventDiscriminatorBytes(): ReadonlyUint8Array;
924
+ declare const SUBSCRIPTION_CANCELLED_EVENT_EVENT_DISCRIMINATOR2: ReadonlyUint8Array;
925
+ declare function getSubscriptionCancelledEventEventDiscriminator2Bytes(): ReadonlyUint8Array;
926
+ type SubscriptionCancelledEventEvent = {
927
+ plan: Address;
928
+ subscriber: Address;
929
+ expiresAtTs: bigint;
930
+ };
931
+ type SubscriptionCancelledEventEventArgs = {
932
+ plan: Address | HasAddress;
933
+ subscriber: Address | HasAddress;
934
+ expiresAtTs: number | bigint;
935
+ };
936
+ /** Gets the encoder for {@link SubscriptionCancelledEventEventArgs} event data. */
937
+ declare function getSubscriptionCancelledEventEventEncoder(): FixedSizeEncoder<SubscriptionCancelledEventEventArgs>;
938
+ /** Gets the decoder for {@link SubscriptionCancelledEventEvent} event data. */
939
+ declare function getSubscriptionCancelledEventEventDecoder(): FixedSizeDecoder<SubscriptionCancelledEventEvent>;
940
+ /** Gets the codec for {@link SubscriptionCancelledEventEvent} event data. */
941
+ declare function getSubscriptionCancelledEventEventCodec(): FixedSizeCodec<SubscriptionCancelledEventEventArgs, SubscriptionCancelledEventEvent>;
942
+ /** Parses the provided bytes into {@link SubscriptionCancelledEventEvent} event data. */
943
+ declare function parseSubscriptionCancelledEventEvent(data: ReadonlyUint8Array | Uint8Array): SubscriptionCancelledEventEvent;
944
+
945
+ /**
946
+ * This code was AUTOGENERATED using the Codama library.
947
+ * Please DO NOT EDIT THIS FILE, instead use visitors
948
+ * to add features, then rerun Codama to update it.
949
+ *
950
+ * @see https://github.com/codama-idl/codama
951
+ */
952
+
953
+ declare const SUBSCRIPTION_CREATED_EVENT_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
954
+ declare function getSubscriptionCreatedEventEventDiscriminatorBytes(): ReadonlyUint8Array;
955
+ declare const SUBSCRIPTION_CREATED_EVENT_EVENT_DISCRIMINATOR2: ReadonlyUint8Array;
956
+ declare function getSubscriptionCreatedEventEventDiscriminator2Bytes(): ReadonlyUint8Array;
957
+ type SubscriptionCreatedEventEvent = {
958
+ plan: Address;
959
+ subscriber: Address;
960
+ mint: Address;
961
+ createdTs: bigint;
962
+ payer: Address;
963
+ };
964
+ type SubscriptionCreatedEventEventArgs = {
965
+ plan: Address | HasAddress;
966
+ subscriber: Address | HasAddress;
967
+ mint: Address | HasAddress;
968
+ createdTs: number | bigint;
969
+ payer: Address | HasAddress;
970
+ };
971
+ /** Gets the encoder for {@link SubscriptionCreatedEventEventArgs} event data. */
972
+ declare function getSubscriptionCreatedEventEventEncoder(): FixedSizeEncoder<SubscriptionCreatedEventEventArgs>;
973
+ /** Gets the decoder for {@link SubscriptionCreatedEventEvent} event data. */
974
+ declare function getSubscriptionCreatedEventEventDecoder(): FixedSizeDecoder<SubscriptionCreatedEventEvent>;
975
+ /** Gets the codec for {@link SubscriptionCreatedEventEvent} event data. */
976
+ declare function getSubscriptionCreatedEventEventCodec(): FixedSizeCodec<SubscriptionCreatedEventEventArgs, SubscriptionCreatedEventEvent>;
977
+ /** Parses the provided bytes into {@link SubscriptionCreatedEventEvent} event data. */
978
+ declare function parseSubscriptionCreatedEventEvent(data: ReadonlyUint8Array | Uint8Array): SubscriptionCreatedEventEvent;
979
+
980
+ /**
981
+ * This code was AUTOGENERATED using the Codama library.
982
+ * Please DO NOT EDIT THIS FILE, instead use visitors
983
+ * to add features, then rerun Codama to update it.
984
+ *
985
+ * @see https://github.com/codama-idl/codama
986
+ */
987
+
988
+ declare const SUBSCRIPTION_RESUMED_EVENT_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
989
+ declare function getSubscriptionResumedEventEventDiscriminatorBytes(): ReadonlyUint8Array;
990
+ declare const SUBSCRIPTION_RESUMED_EVENT_EVENT_DISCRIMINATOR2: ReadonlyUint8Array;
991
+ declare function getSubscriptionResumedEventEventDiscriminator2Bytes(): ReadonlyUint8Array;
992
+ type SubscriptionResumedEventEvent = {
993
+ plan: Address;
994
+ subscriber: Address;
995
+ resumedTs: bigint;
996
+ };
997
+ type SubscriptionResumedEventEventArgs = {
998
+ plan: Address | HasAddress;
999
+ subscriber: Address | HasAddress;
1000
+ resumedTs: number | bigint;
1001
+ };
1002
+ /** Gets the encoder for {@link SubscriptionResumedEventEventArgs} event data. */
1003
+ declare function getSubscriptionResumedEventEventEncoder(): FixedSizeEncoder<SubscriptionResumedEventEventArgs>;
1004
+ /** Gets the decoder for {@link SubscriptionResumedEventEvent} event data. */
1005
+ declare function getSubscriptionResumedEventEventDecoder(): FixedSizeDecoder<SubscriptionResumedEventEvent>;
1006
+ /** Gets the codec for {@link SubscriptionResumedEventEvent} event data. */
1007
+ declare function getSubscriptionResumedEventEventCodec(): FixedSizeCodec<SubscriptionResumedEventEventArgs, SubscriptionResumedEventEvent>;
1008
+ /** Parses the provided bytes into {@link SubscriptionResumedEventEvent} event data. */
1009
+ declare function parseSubscriptionResumedEventEvent(data: ReadonlyUint8Array | Uint8Array): SubscriptionResumedEventEvent;
1010
+
1011
+ /**
1012
+ * This code was AUTOGENERATED using the Codama library.
1013
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1014
+ * to add features, then rerun Codama to update it.
1015
+ *
1016
+ * @see https://github.com/codama-idl/codama
1017
+ */
1018
+
1019
+ declare const SUBSCRIPTION_TRANSFER_EVENT_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
1020
+ declare function getSubscriptionTransferEventEventDiscriminatorBytes(): ReadonlyUint8Array;
1021
+ declare const SUBSCRIPTION_TRANSFER_EVENT_EVENT_DISCRIMINATOR2: ReadonlyUint8Array;
1022
+ declare function getSubscriptionTransferEventEventDiscriminator2Bytes(): ReadonlyUint8Array;
1023
+ type SubscriptionTransferEventEvent = {
1024
+ subscription: Address;
1025
+ plan: Address;
1026
+ delegator: Address;
1027
+ mint: Address;
1028
+ amount: bigint;
1029
+ periodStartTs: bigint;
1030
+ periodEndTs: bigint;
1031
+ amountPulledInPeriod: bigint;
1032
+ receiver: Address;
1033
+ receiverTokenAccount: Address;
1034
+ puller: Address;
1035
+ };
1036
+ type SubscriptionTransferEventEventArgs = {
1037
+ subscription: Address | HasAddress;
1038
+ plan: Address | HasAddress;
1039
+ delegator: Address | HasAddress;
1040
+ mint: Address | HasAddress;
1041
+ amount: number | bigint;
1042
+ periodStartTs: number | bigint;
1043
+ periodEndTs: number | bigint;
1044
+ amountPulledInPeriod: number | bigint;
1045
+ receiver: Address | HasAddress;
1046
+ receiverTokenAccount: Address | HasAddress;
1047
+ puller: Address | HasAddress;
1048
+ };
1049
+ /** Gets the encoder for {@link SubscriptionTransferEventEventArgs} event data. */
1050
+ declare function getSubscriptionTransferEventEventEncoder(): FixedSizeEncoder<SubscriptionTransferEventEventArgs>;
1051
+ /** Gets the decoder for {@link SubscriptionTransferEventEvent} event data. */
1052
+ declare function getSubscriptionTransferEventEventDecoder(): FixedSizeDecoder<SubscriptionTransferEventEvent>;
1053
+ /** Gets the codec for {@link SubscriptionTransferEventEvent} event data. */
1054
+ declare function getSubscriptionTransferEventEventCodec(): FixedSizeCodec<SubscriptionTransferEventEventArgs, SubscriptionTransferEventEvent>;
1055
+ /** Parses the provided bytes into {@link SubscriptionTransferEventEvent} event data. */
1056
+ declare function parseSubscriptionTransferEventEvent(data: ReadonlyUint8Array | Uint8Array): SubscriptionTransferEventEvent;
1057
+
733
1058
  /**
734
1059
  * This code was AUTOGENERATED using the Codama library.
735
1060
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -745,8 +1070,21 @@ declare enum SubscriptionsAccount {
745
1070
  RecurringDelegation = 2,
746
1071
  SubscriptionAuthority = 3,
747
1072
  SubscriptionDelegation = 4,
748
- EventAuthority = 5
1073
+ TransferContext = 5,
1074
+ EventAuthority = 6
1075
+ }
1076
+ declare enum SubscriptionsEvent {
1077
+ FixedTransferEvent = 0,
1078
+ PlanUpdatedEvent = 1,
1079
+ RecurringTransferEvent = 2,
1080
+ SubscriptionCancelledEvent = 3,
1081
+ SubscriptionCreatedEvent = 4,
1082
+ SubscriptionResumedEvent = 5,
1083
+ SubscriptionTransferEvent = 6
749
1084
  }
1085
+ declare function identifySubscriptionsEvent(event: {
1086
+ data: ReadonlyUint8Array;
1087
+ } | ReadonlyUint8Array): SubscriptionsEvent;
750
1088
  declare enum SubscriptionsInstruction {
751
1089
  InitSubscriptionAuthority = 0,
752
1090
  CreateFixedDelegation = 1,
@@ -765,7 +1103,8 @@ declare enum SubscriptionsInstruction {
765
1103
  RevokeSubscriptionAuthority = 14,
766
1104
  RevokeAbandonedDelegation = 15,
767
1105
  RevokeAbandonedSubscription = 16,
768
- CancelSubscriptionNow = 17
1106
+ CancelSubscriptionNow = 17,
1107
+ ReclaimExcessRent = 18
769
1108
  }
770
1109
  declare function identifySubscriptionsInstruction(instruction: {
771
1110
  data: ReadonlyUint8Array;
@@ -806,7 +1145,9 @@ type ParsedSubscriptionsInstruction<TProgram extends string = 'De1egAFMkMWZSN5rY
806
1145
  instructionType: SubscriptionsInstruction.RevokeAbandonedSubscription;
807
1146
  } & ParsedRevokeAbandonedSubscriptionInstruction<TProgram>) | ({
808
1147
  instructionType: SubscriptionsInstruction.CancelSubscriptionNow;
809
- } & ParsedCancelSubscriptionNowInstruction<TProgram>);
1148
+ } & ParsedCancelSubscriptionNowInstruction<TProgram>) | ({
1149
+ instructionType: SubscriptionsInstruction.ReclaimExcessRent;
1150
+ } & ParsedReclaimExcessRentInstruction<TProgram>);
810
1151
  declare function parseSubscriptionsInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSubscriptionsInstruction<TProgram>;
811
1152
  type SubscriptionsPlugin$1 = {
812
1153
  accounts: SubscriptionsPluginAccounts;
@@ -821,27 +1162,67 @@ type SubscriptionsPluginAccounts = {
821
1162
  recurringDelegation: ReturnType<typeof getRecurringDelegationCodec> & SelfFetchFunctions<RecurringDelegationArgs, RecurringDelegation>;
822
1163
  subscriptionAuthority: ReturnType<typeof getSubscriptionAuthorityCodec> & SelfFetchFunctions<SubscriptionAuthorityArgs, SubscriptionAuthority>;
823
1164
  subscriptionDelegation: ReturnType<typeof getSubscriptionDelegationCodec> & SelfFetchFunctions<SubscriptionDelegationArgs, SubscriptionDelegation>;
1165
+ transferContext: ReturnType<typeof getTransferContextCodec> & SelfFetchFunctions<TransferContextArgs, TransferContext>;
824
1166
  eventAuthority: ReturnType<typeof getEventAuthorityCodec> & SelfFetchFunctions<EventAuthorityArgs, EventAuthority>;
825
1167
  };
826
1168
  type SubscriptionsPluginInstructions$1 = {
827
- initSubscriptionAuthority: (input: InitSubscriptionAuthorityAsyncInput) => ReturnType<typeof getInitSubscriptionAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
828
- createFixedDelegation: (input: CreateFixedDelegationInput$1) => ReturnType<typeof getCreateFixedDelegationInstruction> & SelfPlanAndSendFunctions;
829
- createRecurringDelegation: (input: CreateRecurringDelegationInput$1) => ReturnType<typeof getCreateRecurringDelegationInstruction> & SelfPlanAndSendFunctions;
830
- revokeDelegation: (input: RevokeDelegationInput$1) => ReturnType<typeof getRevokeDelegationInstruction> & SelfPlanAndSendFunctions;
831
- transferFixed: (input: TransferFixedAsyncInput) => ReturnType<typeof getTransferFixedInstructionAsync> & SelfPlanAndSendFunctions;
832
- transferRecurring: (input: TransferRecurringAsyncInput) => ReturnType<typeof getTransferRecurringInstructionAsync> & SelfPlanAndSendFunctions;
833
- closeSubscriptionAuthority: (input: CloseSubscriptionAuthorityInput$1) => ReturnType<typeof getCloseSubscriptionAuthorityInstruction> & SelfPlanAndSendFunctions;
834
- createPlan: (input: CreatePlanInput$1) => ReturnType<typeof getCreatePlanInstruction> & SelfPlanAndSendFunctions;
835
- updatePlan: (input: UpdatePlanAsyncInput) => ReturnType<typeof getUpdatePlanInstructionAsync> & SelfPlanAndSendFunctions;
836
- deletePlan: (input: DeletePlanInput$1) => ReturnType<typeof getDeletePlanInstruction> & SelfPlanAndSendFunctions;
837
- transferSubscription: (input: TransferSubscriptionAsyncInput) => ReturnType<typeof getTransferSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
838
- subscribe: (input: SubscribeAsyncInput) => ReturnType<typeof getSubscribeInstructionAsync> & SelfPlanAndSendFunctions;
839
- cancelSubscription: (input: CancelSubscriptionAsyncInput) => ReturnType<typeof getCancelSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
840
- resumeSubscription: (input: ResumeSubscriptionAsyncInput) => ReturnType<typeof getResumeSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
841
- revokeSubscriptionAuthority: (input: RevokeSubscriptionAuthorityAsyncInput) => ReturnType<typeof getRevokeSubscriptionAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
842
- revokeAbandonedDelegation: (input: RevokeAbandonedDelegationInput) => ReturnType<typeof getRevokeAbandonedDelegationInstruction> & SelfPlanAndSendFunctions;
843
- revokeAbandonedSubscription: (input: RevokeAbandonedSubscriptionInput) => ReturnType<typeof getRevokeAbandonedSubscriptionInstruction> & SelfPlanAndSendFunctions;
844
- cancelSubscriptionNow: (input: CancelSubscriptionNowAsyncInput) => ReturnType<typeof getCancelSubscriptionNowInstructionAsync> & SelfPlanAndSendFunctions;
1169
+ initSubscriptionAuthority: (input: InitSubscriptionAuthorityAsyncInput, config?: {
1170
+ programAddress?: Address | HasAddress;
1171
+ }) => ReturnType<typeof getInitSubscriptionAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
1172
+ createFixedDelegation: (input: CreateFixedDelegationInput$1, config?: {
1173
+ programAddress?: Address | HasAddress;
1174
+ }) => ReturnType<typeof getCreateFixedDelegationInstruction> & SelfPlanAndSendFunctions;
1175
+ createRecurringDelegation: (input: CreateRecurringDelegationInput$1, config?: {
1176
+ programAddress?: Address | HasAddress;
1177
+ }) => ReturnType<typeof getCreateRecurringDelegationInstruction> & SelfPlanAndSendFunctions;
1178
+ revokeDelegation: (input: RevokeDelegationInput$1, config?: {
1179
+ programAddress?: Address | HasAddress;
1180
+ }) => ReturnType<typeof getRevokeDelegationInstruction> & SelfPlanAndSendFunctions;
1181
+ transferFixed: (input: TransferFixedAsyncInput, config?: {
1182
+ programAddress?: Address | HasAddress;
1183
+ }) => ReturnType<typeof getTransferFixedInstructionAsync> & SelfPlanAndSendFunctions;
1184
+ transferRecurring: (input: TransferRecurringAsyncInput, config?: {
1185
+ programAddress?: Address | HasAddress;
1186
+ }) => ReturnType<typeof getTransferRecurringInstructionAsync> & SelfPlanAndSendFunctions;
1187
+ closeSubscriptionAuthority: (input: CloseSubscriptionAuthorityInput$1, config?: {
1188
+ programAddress?: Address | HasAddress;
1189
+ }) => ReturnType<typeof getCloseSubscriptionAuthorityInstruction> & SelfPlanAndSendFunctions;
1190
+ createPlan: (input: CreatePlanInput$1, config?: {
1191
+ programAddress?: Address | HasAddress;
1192
+ }) => ReturnType<typeof getCreatePlanInstruction> & SelfPlanAndSendFunctions;
1193
+ updatePlan: (input: UpdatePlanAsyncInput, config?: {
1194
+ programAddress?: Address | HasAddress;
1195
+ }) => ReturnType<typeof getUpdatePlanInstructionAsync> & SelfPlanAndSendFunctions;
1196
+ deletePlan: (input: DeletePlanInput$1, config?: {
1197
+ programAddress?: Address | HasAddress;
1198
+ }) => ReturnType<typeof getDeletePlanInstruction> & SelfPlanAndSendFunctions;
1199
+ transferSubscription: (input: TransferSubscriptionAsyncInput, config?: {
1200
+ programAddress?: Address | HasAddress;
1201
+ }) => ReturnType<typeof getTransferSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
1202
+ subscribe: (input: SubscribeAsyncInput, config?: {
1203
+ programAddress?: Address | HasAddress;
1204
+ }) => ReturnType<typeof getSubscribeInstructionAsync> & SelfPlanAndSendFunctions;
1205
+ cancelSubscription: (input: CancelSubscriptionAsyncInput, config?: {
1206
+ programAddress?: Address | HasAddress;
1207
+ }) => ReturnType<typeof getCancelSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
1208
+ resumeSubscription: (input: ResumeSubscriptionAsyncInput, config?: {
1209
+ programAddress?: Address | HasAddress;
1210
+ }) => ReturnType<typeof getResumeSubscriptionInstructionAsync> & SelfPlanAndSendFunctions;
1211
+ revokeSubscriptionAuthority: (input: RevokeSubscriptionAuthorityAsyncInput, config?: {
1212
+ programAddress?: Address | HasAddress;
1213
+ }) => ReturnType<typeof getRevokeSubscriptionAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
1214
+ revokeAbandonedDelegation: (input: RevokeAbandonedDelegationInput, config?: {
1215
+ programAddress?: Address | HasAddress;
1216
+ }) => ReturnType<typeof getRevokeAbandonedDelegationInstruction> & SelfPlanAndSendFunctions;
1217
+ revokeAbandonedSubscription: (input: RevokeAbandonedSubscriptionInput, config?: {
1218
+ programAddress?: Address | HasAddress;
1219
+ }) => ReturnType<typeof getRevokeAbandonedSubscriptionInstruction> & SelfPlanAndSendFunctions;
1220
+ cancelSubscriptionNow: (input: CancelSubscriptionNowAsyncInput, config?: {
1221
+ programAddress?: Address | HasAddress;
1222
+ }) => ReturnType<typeof getCancelSubscriptionNowInstructionAsync> & SelfPlanAndSendFunctions;
1223
+ reclaimExcessRent: (input: ReclaimExcessRentInput, config?: {
1224
+ programAddress?: Address | HasAddress;
1225
+ }) => ReturnType<typeof getReclaimExcessRentInstruction> & SelfPlanAndSendFunctions;
845
1226
  };
846
1227
  type SubscriptionsPluginPdas = {
847
1228
  fixedDelegation: typeof findFixedDelegationPda;
@@ -849,6 +1230,7 @@ type SubscriptionsPluginPdas = {
849
1230
  recurringDelegation: typeof findRecurringDelegationPda;
850
1231
  subscriptionAuthority: typeof findSubscriptionAuthorityPda;
851
1232
  subscriptionDelegation: typeof findSubscriptionDelegationPda;
1233
+ transferContext: typeof findTransferContextPda;
852
1234
  eventAuthority: typeof findEventAuthorityPda;
853
1235
  };
854
1236
  type SubscriptionsPluginRequirements$1 = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithTransactionPlanning & ClientWithTransactionSending;
@@ -878,36 +1260,40 @@ type CancelSubscriptionInstructionDataArgs = {};
878
1260
  declare function getCancelSubscriptionInstructionDataEncoder(): FixedSizeEncoder<CancelSubscriptionInstructionDataArgs>;
879
1261
  declare function getCancelSubscriptionInstructionDataDecoder(): FixedSizeDecoder<CancelSubscriptionInstructionData>;
880
1262
  declare function getCancelSubscriptionInstructionDataCodec(): FixedSizeCodec<CancelSubscriptionInstructionDataArgs, CancelSubscriptionInstructionData>;
881
- type CancelSubscriptionAsyncInput<TAccountSubscriber extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
1263
+ type CancelSubscriptionAsyncInput<TAccountSubscriber extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
882
1264
  /** The subscriber cancelling the subscription */
883
- subscriber: TransactionSigner<TAccountSubscriber>;
1265
+ subscriber: TAccountSubscriber;
884
1266
  /** The plan PDA for the subscription */
885
- planPda: Address<TAccountPlanPda>;
1267
+ planPda: TAccountPlanPda;
886
1268
  /** The subscription PDA being cancelled */
887
- subscriptionPda?: Address<TAccountSubscriptionPda>;
1269
+ subscriptionPda?: TAccountSubscriptionPda;
888
1270
  /** The event authority PDA */
889
- eventAuthority?: Address<TAccountEventAuthority>;
1271
+ eventAuthority?: TAccountEventAuthority;
890
1272
  /** This program (for self-CPI) */
891
- selfProgram?: Address<TAccountSelfProgram>;
1273
+ selfProgram?: TAccountSelfProgram;
892
1274
  };
893
- declare function getCancelSubscriptionInstructionAsync<TAccountSubscriber extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CancelSubscriptionAsyncInput<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
894
- programAddress?: TProgramAddress;
895
- }): Promise<CancelSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>>;
896
- type CancelSubscriptionInput$1<TAccountSubscriber extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
1275
+ declare function getCancelSubscriptionInstructionAsync<TAccountSubscriber extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CancelSubscriptionAsyncInput<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1276
+ programAddress?: TProgramAddress | {
1277
+ readonly address: TProgramAddress;
1278
+ };
1279
+ }): Promise<CancelSubscriptionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriber, InstructionAccountInputAddress<TAccountSubscriber>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>>;
1280
+ type CancelSubscriptionInput$1<TAccountSubscriber extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
897
1281
  /** The subscriber cancelling the subscription */
898
- subscriber: TransactionSigner<TAccountSubscriber>;
1282
+ subscriber: TAccountSubscriber;
899
1283
  /** The plan PDA for the subscription */
900
- planPda: Address<TAccountPlanPda>;
1284
+ planPda: TAccountPlanPda;
901
1285
  /** The subscription PDA being cancelled */
902
- subscriptionPda: Address<TAccountSubscriptionPda>;
1286
+ subscriptionPda: TAccountSubscriptionPda;
903
1287
  /** The event authority PDA */
904
- eventAuthority: Address<TAccountEventAuthority>;
1288
+ eventAuthority: TAccountEventAuthority;
905
1289
  /** This program (for self-CPI) */
906
- selfProgram?: Address<TAccountSelfProgram>;
1290
+ selfProgram?: TAccountSelfProgram;
907
1291
  };
908
- declare function getCancelSubscriptionInstruction<TAccountSubscriber extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CancelSubscriptionInput$1<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
909
- programAddress?: TProgramAddress;
910
- }): CancelSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>;
1292
+ declare function getCancelSubscriptionInstruction<TAccountSubscriber extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CancelSubscriptionInput$1<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1293
+ programAddress?: TProgramAddress | {
1294
+ readonly address: TProgramAddress;
1295
+ };
1296
+ }): CancelSubscriptionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriber, InstructionAccountInputAddress<TAccountSubscriber>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>;
911
1297
  type ParsedCancelSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
912
1298
  programAddress: Address<TProgram>;
913
1299
  accounts: {
@@ -955,42 +1341,46 @@ type CancelSubscriptionNowInstructionDataArgs = {
955
1341
  declare function getCancelSubscriptionNowInstructionDataEncoder(): FixedSizeEncoder<CancelSubscriptionNowInstructionDataArgs>;
956
1342
  declare function getCancelSubscriptionNowInstructionDataDecoder(): FixedSizeDecoder<CancelSubscriptionNowInstructionData>;
957
1343
  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> = {
1344
+ type CancelSubscriptionNowAsyncInput<TAccountSubscriber extends InstructionSignerInput = InstructionSignerInput, TAccountMerchant extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
959
1345
  /** The subscriber cancelling the subscription */
960
- subscriber: TransactionSigner<TAccountSubscriber>;
1346
+ subscriber: TAccountSubscriber;
961
1347
  /** The owner of the subscription plan approving immediate cancellation */
962
- merchant: TransactionSigner<TAccountMerchant>;
1348
+ merchant: TAccountMerchant;
963
1349
  /** The plan PDA for the subscription */
964
- planPda: Address<TAccountPlanPda>;
1350
+ planPda: TAccountPlanPda;
965
1351
  /** The subscription PDA being cancelled immediately */
966
- subscriptionPda?: Address<TAccountSubscriptionPda>;
1352
+ subscriptionPda?: TAccountSubscriptionPda;
967
1353
  /** The event authority PDA */
968
- eventAuthority?: Address<TAccountEventAuthority>;
1354
+ eventAuthority?: TAccountEventAuthority;
969
1355
  /** This program (for self-CPI) */
970
- selfProgram?: Address<TAccountSelfProgram>;
1356
+ selfProgram?: TAccountSelfProgram;
971
1357
  cancelSubscriptionNowData: CancelSubscriptionNowInstructionDataArgs['cancelSubscriptionNowData'];
972
1358
  };
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> = {
1359
+ declare function getCancelSubscriptionNowInstructionAsync<TAccountSubscriber extends InstructionSignerInput, TAccountMerchant extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CancelSubscriptionNowAsyncInput<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1360
+ programAddress?: TProgramAddress | {
1361
+ readonly address: TProgramAddress;
1362
+ };
1363
+ }): Promise<CancelSubscriptionNowInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriber, InstructionAccountInputAddress<TAccountSubscriber>>, ResolvedInstructionAccountMeta<TAccountMerchant, InstructionAccountInputAddress<TAccountMerchant>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>>;
1364
+ type CancelSubscriptionNowInput$1<TAccountSubscriber extends InstructionSignerInput = InstructionSignerInput, TAccountMerchant extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
977
1365
  /** The subscriber cancelling the subscription */
978
- subscriber: TransactionSigner<TAccountSubscriber>;
1366
+ subscriber: TAccountSubscriber;
979
1367
  /** The owner of the subscription plan approving immediate cancellation */
980
- merchant: TransactionSigner<TAccountMerchant>;
1368
+ merchant: TAccountMerchant;
981
1369
  /** The plan PDA for the subscription */
982
- planPda: Address<TAccountPlanPda>;
1370
+ planPda: TAccountPlanPda;
983
1371
  /** The subscription PDA being cancelled immediately */
984
- subscriptionPda: Address<TAccountSubscriptionPda>;
1372
+ subscriptionPda: TAccountSubscriptionPda;
985
1373
  /** The event authority PDA */
986
- eventAuthority: Address<TAccountEventAuthority>;
1374
+ eventAuthority: TAccountEventAuthority;
987
1375
  /** This program (for self-CPI) */
988
- selfProgram?: Address<TAccountSelfProgram>;
1376
+ selfProgram?: TAccountSelfProgram;
989
1377
  cancelSubscriptionNowData: CancelSubscriptionNowInstructionDataArgs['cancelSubscriptionNowData'];
990
1378
  };
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>;
1379
+ declare function getCancelSubscriptionNowInstruction<TAccountSubscriber extends InstructionSignerInput, TAccountMerchant extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CancelSubscriptionNowInput$1<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1380
+ programAddress?: TProgramAddress | {
1381
+ readonly address: TProgramAddress;
1382
+ };
1383
+ }): CancelSubscriptionNowInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriber, InstructionAccountInputAddress<TAccountSubscriber>>, ResolvedInstructionAccountMeta<TAccountMerchant, InstructionAccountInputAddress<TAccountMerchant>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>;
994
1384
  type ParsedCancelSubscriptionNowInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
995
1385
  programAddress: Address<TProgram>;
996
1386
  accounts: {
@@ -1034,17 +1424,19 @@ type CloseSubscriptionAuthorityInstructionDataArgs = {};
1034
1424
  declare function getCloseSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<CloseSubscriptionAuthorityInstructionDataArgs>;
1035
1425
  declare function getCloseSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<CloseSubscriptionAuthorityInstructionData>;
1036
1426
  declare function getCloseSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<CloseSubscriptionAuthorityInstructionDataArgs, CloseSubscriptionAuthorityInstructionData>;
1037
- type CloseSubscriptionAuthorityInput$1<TAccountUser extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountReceiver extends string = string> = {
1427
+ type CloseSubscriptionAuthorityInput$1<TAccountUser extends InstructionSignerInput = InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput> = {
1038
1428
  /** The user who owns the SubscriptionAuthority PDA (receives rent) */
1039
- user: TransactionSigner<TAccountUser>;
1429
+ user: TAccountUser;
1040
1430
  /** The SubscriptionAuthority PDA to close */
1041
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
1431
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1042
1432
  /** Optional rent recipient, required when the recorded payer differs from the user. Must match the stored payer. */
1043
- receiver?: Address<TAccountReceiver>;
1433
+ receiver?: TAccountReceiver;
1044
1434
  };
1045
- declare function getCloseSubscriptionAuthorityInstruction<TAccountUser extends string, TAccountSubscriptionAuthority extends string, TAccountReceiver extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CloseSubscriptionAuthorityInput$1<TAccountUser, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
1046
- programAddress?: TProgramAddress;
1047
- }): CloseSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountSubscriptionAuthority, TAccountReceiver>;
1435
+ declare function getCloseSubscriptionAuthorityInstruction<TAccountUser extends InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CloseSubscriptionAuthorityInput$1<TAccountUser, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
1436
+ programAddress?: TProgramAddress | {
1437
+ readonly address: TProgramAddress;
1438
+ };
1439
+ }): CloseSubscriptionAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountUser, InstructionAccountInputAddress<TAccountUser>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>>;
1048
1440
  type ParsedCloseSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1049
1441
  programAddress: Address<TProgram>;
1050
1442
  accounts: {
@@ -1090,24 +1482,26 @@ type CreateFixedDelegationInstructionDataArgs = {
1090
1482
  declare function getCreateFixedDelegationInstructionDataEncoder(): FixedSizeEncoder<CreateFixedDelegationInstructionDataArgs>;
1091
1483
  declare function getCreateFixedDelegationInstructionDataDecoder(): FixedSizeDecoder<CreateFixedDelegationInstructionData>;
1092
1484
  declare function getCreateFixedDelegationInstructionDataCodec(): FixedSizeCodec<CreateFixedDelegationInstructionDataArgs, CreateFixedDelegationInstructionData>;
1093
- type CreateFixedDelegationInput$1<TAccountDelegator extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegationAccount extends string = string, TAccountDelegatee extends string = string, TAccountSystemProgram extends string = string, TAccountPayer extends string = string> = {
1485
+ type CreateFixedDelegationInput$1<TAccountDelegator extends InstructionSignerInput = InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountDelegationAccount extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatee extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountPayer extends InstructionSignerInput = InstructionSignerInput> = {
1094
1486
  /** The user creating the delegation */
1095
- delegator: TransactionSigner<TAccountDelegator>;
1487
+ delegator: TAccountDelegator;
1096
1488
  /** The subscription_authority PDA for this token */
1097
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
1489
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1098
1490
  /** The fixed delegation PDA being created */
1099
- delegationAccount: Address<TAccountDelegationAccount>;
1491
+ delegationAccount: TAccountDelegationAccount;
1100
1492
  /** The user receiving delegation rights */
1101
- delegatee: Address<TAccountDelegatee>;
1493
+ delegatee: TAccountDelegatee;
1102
1494
  /** The system program */
1103
- systemProgram?: Address<TAccountSystemProgram>;
1495
+ systemProgram?: TAccountSystemProgram;
1104
1496
  /** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
1105
- payer?: TransactionSigner<TAccountPayer>;
1497
+ payer?: TAccountPayer;
1106
1498
  fixedDelegation: CreateFixedDelegationInstructionDataArgs['fixedDelegation'];
1107
1499
  };
1108
- declare function getCreateFixedDelegationInstruction<TAccountDelegator extends string, TAccountSubscriptionAuthority extends string, TAccountDelegationAccount extends string, TAccountDelegatee extends string, TAccountSystemProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreateFixedDelegationInput$1<TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>, config?: {
1109
- programAddress?: TProgramAddress;
1110
- }): CreateFixedDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>;
1500
+ declare function getCreateFixedDelegationInstruction<TAccountDelegator extends InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountDelegationAccount extends InstructionAccountInput, TAccountDelegatee extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountPayer extends InstructionSignerInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreateFixedDelegationInput$1<TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>, config?: {
1501
+ programAddress?: TProgramAddress | {
1502
+ readonly address: TProgramAddress;
1503
+ };
1504
+ }): CreateFixedDelegationInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDelegator, InstructionAccountInputAddress<TAccountDelegator>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegationAccount, InstructionAccountInputAddress<TAccountDelegationAccount>>, ResolvedInstructionAccountMeta<TAccountDelegatee, InstructionAccountInputAddress<TAccountDelegatee>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>>;
1111
1505
  type ParsedCreateFixedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1112
1506
  programAddress: Address<TProgram>;
1113
1507
  accounts: {
@@ -1159,24 +1553,26 @@ type CreatePlanInstructionDataArgs = {
1159
1553
  declare function getCreatePlanInstructionDataEncoder(): FixedSizeEncoder<CreatePlanInstructionDataArgs>;
1160
1554
  declare function getCreatePlanInstructionDataDecoder(): FixedSizeDecoder<CreatePlanInstructionData>;
1161
1555
  declare function getCreatePlanInstructionDataCodec(): FixedSizeCodec<CreatePlanInstructionDataArgs, CreatePlanInstructionData>;
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> = {
1556
+ type CreatePlanInput$1<TAccountMerchant extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountPayer extends InstructionSignerInput = InstructionSignerInput> = {
1163
1557
  /** The merchant creating the plan */
1164
- merchant: TransactionSigner<TAccountMerchant>;
1558
+ merchant: TAccountMerchant;
1165
1559
  /** The plan PDA being created */
1166
- planPda: Address<TAccountPlanPda>;
1560
+ planPda: TAccountPlanPda;
1167
1561
  /** The token mint */
1168
- tokenMint: Address<TAccountTokenMint>;
1562
+ tokenMint: TAccountTokenMint;
1169
1563
  /** The system program */
1170
- systemProgram?: Address<TAccountSystemProgram>;
1564
+ systemProgram?: TAccountSystemProgram;
1171
1565
  /** The token program */
1172
- tokenProgram?: Address<TAccountTokenProgram>;
1566
+ tokenProgram?: TAccountTokenProgram;
1173
1567
  /** 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>;
1568
+ payer?: TAccountPayer;
1175
1569
  planData: CreatePlanInstructionDataArgs['planData'];
1176
1570
  };
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?: {
1178
- programAddress?: TProgramAddress;
1179
- }): CreatePlanInstruction<TProgramAddress, TAccountMerchant, TAccountPlanPda, TAccountTokenMint, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>;
1571
+ declare function getCreatePlanInstruction<TAccountMerchant extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountPayer extends InstructionSignerInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreatePlanInput$1<TAccountMerchant, TAccountPlanPda, TAccountTokenMint, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>, config?: {
1572
+ programAddress?: TProgramAddress | {
1573
+ readonly address: TProgramAddress;
1574
+ };
1575
+ }): CreatePlanInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountMerchant, InstructionAccountInputAddress<TAccountMerchant>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>>;
1180
1576
  type ParsedCreatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1181
1577
  programAddress: Address<TProgram>;
1182
1578
  accounts: {
@@ -1228,24 +1624,26 @@ type CreateRecurringDelegationInstructionDataArgs = {
1228
1624
  declare function getCreateRecurringDelegationInstructionDataEncoder(): FixedSizeEncoder<CreateRecurringDelegationInstructionDataArgs>;
1229
1625
  declare function getCreateRecurringDelegationInstructionDataDecoder(): FixedSizeDecoder<CreateRecurringDelegationInstructionData>;
1230
1626
  declare function getCreateRecurringDelegationInstructionDataCodec(): FixedSizeCodec<CreateRecurringDelegationInstructionDataArgs, CreateRecurringDelegationInstructionData>;
1231
- type CreateRecurringDelegationInput$1<TAccountDelegator extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegationAccount extends string = string, TAccountDelegatee extends string = string, TAccountSystemProgram extends string = string, TAccountPayer extends string = string> = {
1627
+ type CreateRecurringDelegationInput$1<TAccountDelegator extends InstructionSignerInput = InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountDelegationAccount extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatee extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountPayer extends InstructionSignerInput = InstructionSignerInput> = {
1232
1628
  /** The user creating the delegation */
1233
- delegator: TransactionSigner<TAccountDelegator>;
1629
+ delegator: TAccountDelegator;
1234
1630
  /** The subscription_authority PDA for this token */
1235
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
1631
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1236
1632
  /** The recurring delegation PDA being created */
1237
- delegationAccount: Address<TAccountDelegationAccount>;
1633
+ delegationAccount: TAccountDelegationAccount;
1238
1634
  /** The user receiving delegation rights */
1239
- delegatee: Address<TAccountDelegatee>;
1635
+ delegatee: TAccountDelegatee;
1240
1636
  /** The system program */
1241
- systemProgram?: Address<TAccountSystemProgram>;
1637
+ systemProgram?: TAccountSystemProgram;
1242
1638
  /** Optional sponsor that funds the account rent. Defaults to the delegator/signer when omitted. */
1243
- payer?: TransactionSigner<TAccountPayer>;
1639
+ payer?: TAccountPayer;
1244
1640
  recurringDelegation: CreateRecurringDelegationInstructionDataArgs['recurringDelegation'];
1245
1641
  };
1246
- declare function getCreateRecurringDelegationInstruction<TAccountDelegator extends string, TAccountSubscriptionAuthority extends string, TAccountDelegationAccount extends string, TAccountDelegatee extends string, TAccountSystemProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreateRecurringDelegationInput$1<TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>, config?: {
1247
- programAddress?: TProgramAddress;
1248
- }): CreateRecurringDelegationInstruction<TProgramAddress, TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>;
1642
+ declare function getCreateRecurringDelegationInstruction<TAccountDelegator extends InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountDelegationAccount extends InstructionAccountInput, TAccountDelegatee extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountPayer extends InstructionSignerInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: CreateRecurringDelegationInput$1<TAccountDelegator, TAccountSubscriptionAuthority, TAccountDelegationAccount, TAccountDelegatee, TAccountSystemProgram, TAccountPayer>, config?: {
1643
+ programAddress?: TProgramAddress | {
1644
+ readonly address: TProgramAddress;
1645
+ };
1646
+ }): CreateRecurringDelegationInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDelegator, InstructionAccountInputAddress<TAccountDelegator>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegationAccount, InstructionAccountInputAddress<TAccountDelegationAccount>>, ResolvedInstructionAccountMeta<TAccountDelegatee, InstructionAccountInputAddress<TAccountDelegatee>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>>;
1249
1647
  type ParsedCreateRecurringDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1250
1648
  programAddress: Address<TProgram>;
1251
1649
  accounts: {
@@ -1288,15 +1686,17 @@ type DeletePlanInstructionDataArgs = {};
1288
1686
  declare function getDeletePlanInstructionDataEncoder(): FixedSizeEncoder<DeletePlanInstructionDataArgs>;
1289
1687
  declare function getDeletePlanInstructionDataDecoder(): FixedSizeDecoder<DeletePlanInstructionData>;
1290
1688
  declare function getDeletePlanInstructionDataCodec(): FixedSizeCodec<DeletePlanInstructionDataArgs, DeletePlanInstructionData>;
1291
- type DeletePlanInput$1<TAccountOwner extends string = string, TAccountPlanPda extends string = string> = {
1689
+ type DeletePlanInput$1<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput> = {
1292
1690
  /** The plan owner deleting the plan (receives rent) */
1293
- owner: TransactionSigner<TAccountOwner>;
1691
+ owner: TAccountOwner;
1294
1692
  /** The plan PDA being deleted */
1295
- planPda: Address<TAccountPlanPda>;
1693
+ planPda: TAccountPlanPda;
1296
1694
  };
1297
- declare function getDeletePlanInstruction<TAccountOwner extends string, TAccountPlanPda extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: DeletePlanInput$1<TAccountOwner, TAccountPlanPda>, config?: {
1298
- programAddress?: TProgramAddress;
1299
- }): DeletePlanInstruction<TProgramAddress, TAccountOwner, TAccountPlanPda>;
1695
+ declare function getDeletePlanInstruction<TAccountOwner extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: DeletePlanInput$1<TAccountOwner, TAccountPlanPda>, config?: {
1696
+ programAddress?: TProgramAddress | {
1697
+ readonly address: TProgramAddress;
1698
+ };
1699
+ }): DeletePlanInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>>;
1300
1700
  type ParsedDeletePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1301
1701
  programAddress: Address<TProgram>;
1302
1702
  accounts: {
@@ -1338,44 +1738,48 @@ type InitSubscriptionAuthorityInstructionDataArgs = {};
1338
1738
  declare function getInitSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<InitSubscriptionAuthorityInstructionDataArgs>;
1339
1739
  declare function getInitSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<InitSubscriptionAuthorityInstructionData>;
1340
1740
  declare function getInitSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<InitSubscriptionAuthorityInstructionDataArgs, InitSubscriptionAuthorityInstructionData>;
1341
- type InitSubscriptionAuthorityAsyncInput<TAccountOwner extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountTokenMint extends string = string, TAccountUserAta extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountPayer extends string = string> = {
1741
+ type InitSubscriptionAuthorityAsyncInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountUserAta extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountPayer extends InstructionSignerInput = InstructionSignerInput> = {
1342
1742
  /** The owner of the subscription-authority program */
1343
- owner: TransactionSigner<TAccountOwner>;
1743
+ owner: TAccountOwner;
1344
1744
  /** The subscription_authority PDA that will be the delegate instance for this token */
1345
- subscriptionAuthority?: Address<TAccountSubscriptionAuthority>;
1745
+ subscriptionAuthority?: TAccountSubscriptionAuthority;
1346
1746
  /** The token mint that we are creating a subscription-authority account for */
1347
- tokenMint: Address<TAccountTokenMint>;
1747
+ tokenMint: TAccountTokenMint;
1348
1748
  /** The ata that we are setting up delegation for */
1349
- userAta: Address<TAccountUserAta>;
1749
+ userAta: TAccountUserAta;
1350
1750
  /** The system program */
1351
- systemProgram?: Address<TAccountSystemProgram>;
1751
+ systemProgram?: TAccountSystemProgram;
1352
1752
  /** Token program */
1353
- tokenProgram: Address<TAccountTokenProgram>;
1753
+ tokenProgram: TAccountTokenProgram;
1354
1754
  /** Optional sponsor that funds the account rent. Defaults to the owner/signer when omitted. */
1355
- payer?: TransactionSigner<TAccountPayer>;
1755
+ payer?: TAccountPayer;
1356
1756
  };
1357
- declare function getInitSubscriptionAuthorityInstructionAsync<TAccountOwner extends string, TAccountSubscriptionAuthority extends string, TAccountTokenMint extends string, TAccountUserAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: InitSubscriptionAuthorityAsyncInput<TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>, config?: {
1358
- programAddress?: TProgramAddress;
1359
- }): Promise<InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>>;
1360
- type InitSubscriptionAuthorityInput$1<TAccountOwner extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountTokenMint extends string = string, TAccountUserAta extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountPayer extends string = string> = {
1757
+ declare function getInitSubscriptionAuthorityInstructionAsync<TAccountOwner extends InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountUserAta extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountPayer extends InstructionSignerInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: InitSubscriptionAuthorityAsyncInput<TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>, config?: {
1758
+ programAddress?: TProgramAddress | {
1759
+ readonly address: TProgramAddress;
1760
+ };
1761
+ }): Promise<InitSubscriptionAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountUserAta, InstructionAccountInputAddress<TAccountUserAta>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>>>;
1762
+ type InitSubscriptionAuthorityInput$1<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountUserAta extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountPayer extends InstructionSignerInput = InstructionSignerInput> = {
1361
1763
  /** The owner of the subscription-authority program */
1362
- owner: TransactionSigner<TAccountOwner>;
1764
+ owner: TAccountOwner;
1363
1765
  /** The subscription_authority PDA that will be the delegate instance for this token */
1364
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
1766
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1365
1767
  /** The token mint that we are creating a subscription-authority account for */
1366
- tokenMint: Address<TAccountTokenMint>;
1768
+ tokenMint: TAccountTokenMint;
1367
1769
  /** The ata that we are setting up delegation for */
1368
- userAta: Address<TAccountUserAta>;
1770
+ userAta: TAccountUserAta;
1369
1771
  /** The system program */
1370
- systemProgram?: Address<TAccountSystemProgram>;
1772
+ systemProgram?: TAccountSystemProgram;
1371
1773
  /** Token program */
1372
- tokenProgram: Address<TAccountTokenProgram>;
1774
+ tokenProgram: TAccountTokenProgram;
1373
1775
  /** Optional sponsor that funds the account rent. Defaults to the owner/signer when omitted. */
1374
- payer?: TransactionSigner<TAccountPayer>;
1776
+ payer?: TAccountPayer;
1375
1777
  };
1376
- declare function getInitSubscriptionAuthorityInstruction<TAccountOwner extends string, TAccountSubscriptionAuthority extends string, TAccountTokenMint extends string, TAccountUserAta extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: InitSubscriptionAuthorityInput$1<TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>, config?: {
1377
- programAddress?: TProgramAddress;
1378
- }): InitSubscriptionAuthorityInstruction<TProgramAddress, TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>;
1778
+ declare function getInitSubscriptionAuthorityInstruction<TAccountOwner extends InstructionSignerInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountUserAta extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountPayer extends InstructionSignerInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: InitSubscriptionAuthorityInput$1<TAccountOwner, TAccountSubscriptionAuthority, TAccountTokenMint, TAccountUserAta, TAccountSystemProgram, TAccountTokenProgram, TAccountPayer>, config?: {
1779
+ programAddress?: TProgramAddress | {
1780
+ readonly address: TProgramAddress;
1781
+ };
1782
+ }): InitSubscriptionAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountUserAta, InstructionAccountInputAddress<TAccountUserAta>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>>;
1379
1783
  type ParsedInitSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1380
1784
  programAddress: Address<TProgram>;
1381
1785
  accounts: {
@@ -1398,6 +1802,51 @@ type ParsedInitSubscriptionAuthorityInstruction<TProgram extends string = typeof
1398
1802
  };
1399
1803
  declare function parseInitSubscriptionAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitSubscriptionAuthorityInstruction<TProgram, TAccountMetas>;
1400
1804
 
1805
+ /**
1806
+ * This code was AUTOGENERATED using the Codama library.
1807
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1808
+ * to add features, then rerun Codama to update it.
1809
+ *
1810
+ * @see https://github.com/codama-idl/codama
1811
+ */
1812
+
1813
+ declare const RECLAIM_EXCESS_RENT_DISCRIMINATOR = 18;
1814
+ declare function getReclaimExcessRentDiscriminatorBytes(): ReadonlyUint8Array;
1815
+ type ReclaimExcessRentInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountTargetAccount extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1816
+ TAccountTargetAccount extends string ? WritableAccount<TAccountTargetAccount> : TAccountTargetAccount,
1817
+ TAccountReceiver extends string ? WritableAccount<TAccountReceiver> : TAccountReceiver,
1818
+ ...TRemainingAccounts
1819
+ ]>;
1820
+ type ReclaimExcessRentInstructionData = {
1821
+ discriminator: number;
1822
+ };
1823
+ type ReclaimExcessRentInstructionDataArgs = {};
1824
+ declare function getReclaimExcessRentInstructionDataEncoder(): FixedSizeEncoder<ReclaimExcessRentInstructionDataArgs>;
1825
+ declare function getReclaimExcessRentInstructionDataDecoder(): FixedSizeDecoder<ReclaimExcessRentInstructionData>;
1826
+ declare function getReclaimExcessRentInstructionDataCodec(): FixedSizeCodec<ReclaimExcessRentInstructionDataArgs, ReclaimExcessRentInstructionData>;
1827
+ type ReclaimExcessRentInput<TAccountTargetAccount extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput> = {
1828
+ /** The program-owned PDA holding lamports above the rent-exempt minimum */
1829
+ targetAccount: TAccountTargetAccount;
1830
+ /** The account receiving the excess lamports. Must match the payer recorded on the target account, or its owner for a plan. */
1831
+ receiver: TAccountReceiver;
1832
+ };
1833
+ declare function getReclaimExcessRentInstruction<TAccountTargetAccount extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: ReclaimExcessRentInput<TAccountTargetAccount, TAccountReceiver>, config?: {
1834
+ programAddress?: TProgramAddress | {
1835
+ readonly address: TProgramAddress;
1836
+ };
1837
+ }): ReclaimExcessRentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountTargetAccount, InstructionAccountInputAddress<TAccountTargetAccount>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>>;
1838
+ type ParsedReclaimExcessRentInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1839
+ programAddress: Address<TProgram>;
1840
+ accounts: {
1841
+ /** The program-owned PDA holding lamports above the rent-exempt minimum */
1842
+ targetAccount: TAccountMetas[0];
1843
+ /** The account receiving the excess lamports. Must match the payer recorded on the target account, or its owner for a plan. */
1844
+ receiver: TAccountMetas[1];
1845
+ };
1846
+ data: ReclaimExcessRentInstructionData;
1847
+ };
1848
+ declare function parseReclaimExcessRentInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedReclaimExcessRentInstruction<TProgram, TAccountMetas>;
1849
+
1401
1850
  /**
1402
1851
  * This code was AUTOGENERATED using the Codama library.
1403
1852
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1427,42 +1876,46 @@ type ResumeSubscriptionInstructionDataArgs = {
1427
1876
  declare function getResumeSubscriptionInstructionDataEncoder(): FixedSizeEncoder<ResumeSubscriptionInstructionDataArgs>;
1428
1877
  declare function getResumeSubscriptionInstructionDataDecoder(): FixedSizeDecoder<ResumeSubscriptionInstructionData>;
1429
1878
  declare function getResumeSubscriptionInstructionDataCodec(): FixedSizeCodec<ResumeSubscriptionInstructionDataArgs, ResumeSubscriptionInstructionData>;
1430
- type ResumeSubscriptionAsyncInput<TAccountSubscriber extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
1879
+ type ResumeSubscriptionAsyncInput<TAccountSubscriber extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
1431
1880
  /** The subscriber resuming the subscription */
1432
- subscriber: TransactionSigner<TAccountSubscriber>;
1881
+ subscriber: TAccountSubscriber;
1433
1882
  /** The plan PDA for the subscription */
1434
- planPda: Address<TAccountPlanPda>;
1883
+ planPda: TAccountPlanPda;
1435
1884
  /** The subscription PDA being resumed */
1436
- subscriptionPda?: Address<TAccountSubscriptionPda>;
1885
+ subscriptionPda?: TAccountSubscriptionPda;
1437
1886
  /** The subscriber's SubscriptionAuthority PDA for the plan's mint */
1438
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
1887
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1439
1888
  /** The event authority PDA */
1440
- eventAuthority?: Address<TAccountEventAuthority>;
1889
+ eventAuthority?: TAccountEventAuthority;
1441
1890
  /** This program (for self-CPI) */
1442
- selfProgram?: Address<TAccountSelfProgram>;
1891
+ selfProgram?: TAccountSelfProgram;
1443
1892
  resumeData: ResumeSubscriptionInstructionDataArgs['resumeData'];
1444
1893
  };
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?: {
1446
- programAddress?: TProgramAddress;
1447
- }): Promise<ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>>;
1448
- type ResumeSubscriptionInput$1<TAccountSubscriber extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
1894
+ declare function getResumeSubscriptionInstructionAsync<TAccountSubscriber extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: ResumeSubscriptionAsyncInput<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1895
+ programAddress?: TProgramAddress | {
1896
+ readonly address: TProgramAddress;
1897
+ };
1898
+ }): Promise<ResumeSubscriptionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriber, InstructionAccountInputAddress<TAccountSubscriber>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>>;
1899
+ type ResumeSubscriptionInput$1<TAccountSubscriber extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
1449
1900
  /** The subscriber resuming the subscription */
1450
- subscriber: TransactionSigner<TAccountSubscriber>;
1901
+ subscriber: TAccountSubscriber;
1451
1902
  /** The plan PDA for the subscription */
1452
- planPda: Address<TAccountPlanPda>;
1903
+ planPda: TAccountPlanPda;
1453
1904
  /** The subscription PDA being resumed */
1454
- subscriptionPda: Address<TAccountSubscriptionPda>;
1905
+ subscriptionPda: TAccountSubscriptionPda;
1455
1906
  /** The subscriber's SubscriptionAuthority PDA for the plan's mint */
1456
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
1907
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1457
1908
  /** The event authority PDA */
1458
- eventAuthority: Address<TAccountEventAuthority>;
1909
+ eventAuthority: TAccountEventAuthority;
1459
1910
  /** This program (for self-CPI) */
1460
- selfProgram?: Address<TAccountSelfProgram>;
1911
+ selfProgram?: TAccountSelfProgram;
1461
1912
  resumeData: ResumeSubscriptionInstructionDataArgs['resumeData'];
1462
1913
  };
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?: {
1464
- programAddress?: TProgramAddress;
1465
- }): ResumeSubscriptionInstruction<TProgramAddress, TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>;
1914
+ declare function getResumeSubscriptionInstruction<TAccountSubscriber extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: ResumeSubscriptionInput$1<TAccountSubscriber, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthority, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1915
+ programAddress?: TProgramAddress | {
1916
+ readonly address: TProgramAddress;
1917
+ };
1918
+ }): ResumeSubscriptionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriber, InstructionAccountInputAddress<TAccountSubscriber>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>;
1466
1919
  type ParsedResumeSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1467
1920
  programAddress: Address<TProgram>;
1468
1921
  accounts: {
@@ -1506,17 +1959,19 @@ type RevokeAbandonedDelegationInstructionDataArgs = {};
1506
1959
  declare function getRevokeAbandonedDelegationInstructionDataEncoder(): FixedSizeEncoder<RevokeAbandonedDelegationInstructionDataArgs>;
1507
1960
  declare function getRevokeAbandonedDelegationInstructionDataDecoder(): FixedSizeDecoder<RevokeAbandonedDelegationInstructionData>;
1508
1961
  declare function getRevokeAbandonedDelegationInstructionDataCodec(): FixedSizeCodec<RevokeAbandonedDelegationInstructionDataArgs, RevokeAbandonedDelegationInstructionData>;
1509
- type RevokeAbandonedDelegationInput<TAccountPayer extends string = string, TAccountDelegationAccount extends string = string, TAccountSubscriptionAuthority extends string = string> = {
1962
+ type RevokeAbandonedDelegationInput<TAccountPayer extends InstructionSignerInput = InstructionSignerInput, TAccountDelegationAccount extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput> = {
1510
1963
  /** The recorded payer reclaiming rent */
1511
- payer: TransactionSigner<TAccountPayer>;
1964
+ payer: TAccountPayer;
1512
1965
  /** The fixed or recurring delegation PDA to close */
1513
- delegationAccount: Address<TAccountDelegationAccount>;
1966
+ delegationAccount: TAccountDelegationAccount;
1514
1967
  /** The delegation's recorded SubscriptionAuthority PDA (may be closed) */
1515
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
1968
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1516
1969
  };
1517
- 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?: {
1518
- programAddress?: TProgramAddress;
1519
- }): RevokeAbandonedDelegationInstruction<TProgramAddress, TAccountPayer, TAccountDelegationAccount, TAccountSubscriptionAuthority>;
1970
+ declare function getRevokeAbandonedDelegationInstruction<TAccountPayer extends InstructionSignerInput, TAccountDelegationAccount extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeAbandonedDelegationInput<TAccountPayer, TAccountDelegationAccount, TAccountSubscriptionAuthority>, config?: {
1971
+ programAddress?: TProgramAddress | {
1972
+ readonly address: TProgramAddress;
1973
+ };
1974
+ }): RevokeAbandonedDelegationInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>, ResolvedInstructionAccountMeta<TAccountDelegationAccount, InstructionAccountInputAddress<TAccountDelegationAccount>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>>;
1520
1975
  type ParsedRevokeAbandonedDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1521
1976
  programAddress: Address<TProgram>;
1522
1977
  accounts: {
@@ -1555,19 +2010,21 @@ type RevokeAbandonedSubscriptionInstructionDataArgs = {};
1555
2010
  declare function getRevokeAbandonedSubscriptionInstructionDataEncoder(): FixedSizeEncoder<RevokeAbandonedSubscriptionInstructionDataArgs>;
1556
2011
  declare function getRevokeAbandonedSubscriptionInstructionDataDecoder(): FixedSizeDecoder<RevokeAbandonedSubscriptionInstructionData>;
1557
2012
  declare function getRevokeAbandonedSubscriptionInstructionDataCodec(): FixedSizeCodec<RevokeAbandonedSubscriptionInstructionDataArgs, RevokeAbandonedSubscriptionInstructionData>;
1558
- type RevokeAbandonedSubscriptionInput<TAccountPayer extends string = string, TAccountSubscriptionAccount extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountPlanPda extends string = string> = {
2013
+ type RevokeAbandonedSubscriptionInput<TAccountPayer extends InstructionSignerInput = InstructionSignerInput, TAccountSubscriptionAccount extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput> = {
1559
2014
  /** The recorded payer reclaiming rent */
1560
- payer: TransactionSigner<TAccountPayer>;
2015
+ payer: TAccountPayer;
1561
2016
  /** The abandoned subscription PDA to close */
1562
- subscriptionAccount: Address<TAccountSubscriptionAccount>;
2017
+ subscriptionAccount: TAccountSubscriptionAccount;
1563
2018
  /** The subscriber's recorded SubscriptionAuthority PDA for the plan's mint (may be closed) */
1564
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
2019
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1565
2020
  /** The plan the subscription belongs to; provides the mint */
1566
- planPda: Address<TAccountPlanPda>;
2021
+ planPda: TAccountPlanPda;
1567
2022
  };
1568
- declare function getRevokeAbandonedSubscriptionInstruction<TAccountPayer extends string, TAccountSubscriptionAccount extends string, TAccountSubscriptionAuthority extends string, TAccountPlanPda extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeAbandonedSubscriptionInput<TAccountPayer, TAccountSubscriptionAccount, TAccountSubscriptionAuthority, TAccountPlanPda>, config?: {
1569
- programAddress?: TProgramAddress;
1570
- }): RevokeAbandonedSubscriptionInstruction<TProgramAddress, TAccountPayer, TAccountSubscriptionAccount, TAccountSubscriptionAuthority, TAccountPlanPda>;
2023
+ declare function getRevokeAbandonedSubscriptionInstruction<TAccountPayer extends InstructionSignerInput, TAccountSubscriptionAccount extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeAbandonedSubscriptionInput<TAccountPayer, TAccountSubscriptionAccount, TAccountSubscriptionAuthority, TAccountPlanPda>, config?: {
2024
+ programAddress?: TProgramAddress | {
2025
+ readonly address: TProgramAddress;
2026
+ };
2027
+ }): RevokeAbandonedSubscriptionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAccount, InstructionAccountInputAddress<TAccountSubscriptionAccount>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>>;
1571
2028
  type ParsedRevokeAbandonedSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1572
2029
  programAddress: Address<TProgram>;
1573
2030
  accounts: {
@@ -1606,15 +2063,17 @@ type RevokeDelegationInstructionDataArgs = {};
1606
2063
  declare function getRevokeDelegationInstructionDataEncoder(): FixedSizeEncoder<RevokeDelegationInstructionDataArgs>;
1607
2064
  declare function getRevokeDelegationInstructionDataDecoder(): FixedSizeDecoder<RevokeDelegationInstructionData>;
1608
2065
  declare function getRevokeDelegationInstructionDataCodec(): FixedSizeCodec<RevokeDelegationInstructionDataArgs, RevokeDelegationInstructionData>;
1609
- type RevokeDelegationInput$1<TAccountAuthority extends string = string, TAccountDelegationAccount extends string = string> = {
2066
+ type RevokeDelegationInput$1<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountDelegationAccount extends InstructionAccountInput = InstructionAccountInput> = {
1610
2067
  /** The delegator revoking the delegation (receives rent) */
1611
- authority: TransactionSigner<TAccountAuthority>;
2068
+ authority: TAccountAuthority;
1612
2069
  /** The delegation PDA to close */
1613
- delegationAccount: Address<TAccountDelegationAccount>;
2070
+ delegationAccount: TAccountDelegationAccount;
1614
2071
  };
1615
- declare function getRevokeDelegationInstruction<TAccountAuthority extends string, TAccountDelegationAccount extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeDelegationInput$1<TAccountAuthority, TAccountDelegationAccount>, config?: {
1616
- programAddress?: TProgramAddress;
1617
- }): RevokeDelegationInstruction<TProgramAddress, TAccountAuthority, TAccountDelegationAccount>;
2072
+ declare function getRevokeDelegationInstruction<TAccountAuthority extends InstructionSignerInput, TAccountDelegationAccount extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeDelegationInput$1<TAccountAuthority, TAccountDelegationAccount>, config?: {
2073
+ programAddress?: TProgramAddress | {
2074
+ readonly address: TProgramAddress;
2075
+ };
2076
+ }): RevokeDelegationInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegationAccount, InstructionAccountInputAddress<TAccountDelegationAccount>>>;
1618
2077
  type ParsedRevokeDelegationInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1619
2078
  programAddress: Address<TProgram>;
1620
2079
  accounts: {
@@ -1653,40 +2112,44 @@ type RevokeSubscriptionAuthorityInstructionDataArgs = {};
1653
2112
  declare function getRevokeSubscriptionAuthorityInstructionDataEncoder(): FixedSizeEncoder<RevokeSubscriptionAuthorityInstructionDataArgs>;
1654
2113
  declare function getRevokeSubscriptionAuthorityInstructionDataDecoder(): FixedSizeDecoder<RevokeSubscriptionAuthorityInstructionData>;
1655
2114
  declare function getRevokeSubscriptionAuthorityInstructionDataCodec(): FixedSizeCodec<RevokeSubscriptionAuthorityInstructionDataArgs, RevokeSubscriptionAuthorityInstructionData>;
1656
- type RevokeSubscriptionAuthorityAsyncInput<TAccountUser extends string = string, TAccountUserAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountReceiver extends string = string> = {
2115
+ type RevokeSubscriptionAuthorityAsyncInput<TAccountUser extends InstructionSignerInput = InstructionSignerInput, TAccountUserAta extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput> = {
1657
2116
  /** The ATA owner: revokes the program's delegate and, when still open, closes the SubscriptionAuthority PDA (receives rent when self-funded) */
1658
- user: TransactionSigner<TAccountUser>;
2117
+ user: TAccountUser;
1659
2118
  /** The user's ATA whose delegate is being revoked */
1660
- userAta: Address<TAccountUserAta>;
2119
+ userAta: TAccountUserAta;
1661
2120
  /** The token mint of the user's ATA */
1662
- tokenMint: Address<TAccountTokenMint>;
2121
+ tokenMint: TAccountTokenMint;
1663
2122
  /** Token program */
1664
- tokenProgram: Address<TAccountTokenProgram>;
2123
+ tokenProgram: TAccountTokenProgram;
1665
2124
  /** The SubscriptionAuthority PDA. Closed when still open; ignored when already closed. */
1666
- subscriptionAuthority?: Address<TAccountSubscriptionAuthority>;
2125
+ subscriptionAuthority?: TAccountSubscriptionAuthority;
1667
2126
  /** Optional rent recipient, required when the SubscriptionAuthority is still open and its recorded payer differs from the user. Must match the stored payer. */
1668
- receiver?: Address<TAccountReceiver>;
2127
+ receiver?: TAccountReceiver;
1669
2128
  };
1670
- declare function getRevokeSubscriptionAuthorityInstructionAsync<TAccountUser extends string, TAccountUserAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountSubscriptionAuthority extends string, TAccountReceiver extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeSubscriptionAuthorityAsyncInput<TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
1671
- programAddress?: TProgramAddress;
1672
- }): Promise<RevokeSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>>;
1673
- type RevokeSubscriptionAuthorityInput$1<TAccountUser extends string = string, TAccountUserAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountReceiver extends string = string> = {
2129
+ declare function getRevokeSubscriptionAuthorityInstructionAsync<TAccountUser extends InstructionSignerInput, TAccountUserAta extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeSubscriptionAuthorityAsyncInput<TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
2130
+ programAddress?: TProgramAddress | {
2131
+ readonly address: TProgramAddress;
2132
+ };
2133
+ }): Promise<RevokeSubscriptionAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountUser, InstructionAccountInputAddress<TAccountUser>>, ResolvedInstructionAccountMeta<TAccountUserAta, InstructionAccountInputAddress<TAccountUserAta>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>>>;
2134
+ type RevokeSubscriptionAuthorityInput$1<TAccountUser extends InstructionSignerInput = InstructionSignerInput, TAccountUserAta extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput> = {
1674
2135
  /** The ATA owner: revokes the program's delegate and, when still open, closes the SubscriptionAuthority PDA (receives rent when self-funded) */
1675
- user: TransactionSigner<TAccountUser>;
2136
+ user: TAccountUser;
1676
2137
  /** The user's ATA whose delegate is being revoked */
1677
- userAta: Address<TAccountUserAta>;
2138
+ userAta: TAccountUserAta;
1678
2139
  /** The token mint of the user's ATA */
1679
- tokenMint: Address<TAccountTokenMint>;
2140
+ tokenMint: TAccountTokenMint;
1680
2141
  /** Token program */
1681
- tokenProgram: Address<TAccountTokenProgram>;
2142
+ tokenProgram: TAccountTokenProgram;
1682
2143
  /** The SubscriptionAuthority PDA. Closed when still open; ignored when already closed. */
1683
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
2144
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1684
2145
  /** Optional rent recipient, required when the SubscriptionAuthority is still open and its recorded payer differs from the user. Must match the stored payer. */
1685
- receiver?: Address<TAccountReceiver>;
2146
+ receiver?: TAccountReceiver;
1686
2147
  };
1687
- declare function getRevokeSubscriptionAuthorityInstruction<TAccountUser extends string, TAccountUserAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountSubscriptionAuthority extends string, TAccountReceiver extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeSubscriptionAuthorityInput$1<TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
1688
- programAddress?: TProgramAddress;
1689
- }): RevokeSubscriptionAuthorityInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>;
2148
+ declare function getRevokeSubscriptionAuthorityInstruction<TAccountUser extends InstructionSignerInput, TAccountUserAta extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: RevokeSubscriptionAuthorityInput$1<TAccountUser, TAccountUserAta, TAccountTokenMint, TAccountTokenProgram, TAccountSubscriptionAuthority, TAccountReceiver>, config?: {
2149
+ programAddress?: TProgramAddress | {
2150
+ readonly address: TProgramAddress;
2151
+ };
2152
+ }): RevokeSubscriptionAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountUser, InstructionAccountInputAddress<TAccountUser>>, ResolvedInstructionAccountMeta<TAccountUserAta, InstructionAccountInputAddress<TAccountUserAta>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>>;
1690
2153
  type ParsedRevokeSubscriptionAuthorityInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1691
2154
  programAddress: Address<TProgram>;
1692
2155
  accounts: {
@@ -1741,54 +2204,58 @@ type SubscribeInstructionDataArgs = {
1741
2204
  declare function getSubscribeInstructionDataEncoder(): FixedSizeEncoder<SubscribeInstructionDataArgs>;
1742
2205
  declare function getSubscribeInstructionDataDecoder(): FixedSizeDecoder<SubscribeInstructionData>;
1743
2206
  declare function getSubscribeInstructionDataCodec(): FixedSizeCodec<SubscribeInstructionDataArgs, SubscribeInstructionData>;
1744
- type SubscribeAsyncInput<TAccountSubscriber extends string = string, TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthorityPda extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string, TAccountPayer extends string = string> = {
2207
+ type SubscribeAsyncInput<TAccountSubscriber extends InstructionSignerInput = InstructionSignerInput, TAccountMerchant extends InstructionAccountInput = InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthorityPda extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput, TAccountPayer extends InstructionSignerInput = InstructionSignerInput> = {
1745
2208
  /** The subscriber creating the subscription (pays rent) */
1746
- subscriber: TransactionSigner<TAccountSubscriber>;
2209
+ subscriber: TAccountSubscriber;
1747
2210
  /** The merchant who owns the plan */
1748
- merchant: Address<TAccountMerchant>;
2211
+ merchant: TAccountMerchant;
1749
2212
  /** The plan PDA to subscribe to */
1750
- planPda: Address<TAccountPlanPda>;
2213
+ planPda: TAccountPlanPda;
1751
2214
  /** The subscription PDA being created */
1752
- subscriptionPda?: Address<TAccountSubscriptionPda>;
2215
+ subscriptionPda?: TAccountSubscriptionPda;
1753
2216
  /** The subscriber's SubscriptionAuthority PDA for the plan's mint */
1754
- subscriptionAuthorityPda: Address<TAccountSubscriptionAuthorityPda>;
2217
+ subscriptionAuthorityPda: TAccountSubscriptionAuthorityPda;
1755
2218
  /** The system program */
1756
- systemProgram?: Address<TAccountSystemProgram>;
2219
+ systemProgram?: TAccountSystemProgram;
1757
2220
  /** The event authority PDA */
1758
- eventAuthority?: Address<TAccountEventAuthority>;
2221
+ eventAuthority?: TAccountEventAuthority;
1759
2222
  /** This program (for self-CPI) */
1760
- selfProgram?: Address<TAccountSelfProgram>;
2223
+ selfProgram?: TAccountSelfProgram;
1761
2224
  /** Optional sponsor that funds the account rent. Defaults to the subscriber/signer when omitted. */
1762
- payer?: TransactionSigner<TAccountPayer>;
2225
+ payer?: TAccountPayer;
1763
2226
  subscribeData: SubscribeInstructionDataArgs['subscribeData'];
1764
2227
  };
1765
- declare function getSubscribeInstructionAsync<TAccountSubscriber extends string, TAccountMerchant extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountSubscriptionAuthorityPda extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: SubscribeAsyncInput<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>, config?: {
1766
- programAddress?: TProgramAddress;
1767
- }): Promise<SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>>;
1768
- type SubscribeInput$1<TAccountSubscriber extends string = string, TAccountMerchant extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionPda extends string = string, TAccountSubscriptionAuthorityPda extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string, TAccountPayer extends string = string> = {
2228
+ declare function getSubscribeInstructionAsync<TAccountSubscriber extends InstructionSignerInput, TAccountMerchant extends InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput, TAccountSubscriptionAuthorityPda extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TAccountPayer extends InstructionSignerInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: SubscribeAsyncInput<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>, config?: {
2229
+ programAddress?: TProgramAddress | {
2230
+ readonly address: TProgramAddress;
2231
+ };
2232
+ }): Promise<SubscribeInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriber, InstructionAccountInputAddress<TAccountSubscriber>>, ResolvedInstructionAccountMeta<TAccountMerchant, InstructionAccountInputAddress<TAccountMerchant>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthorityPda, InstructionAccountInputAddress<TAccountSubscriptionAuthorityPda>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>>>;
2233
+ type SubscribeInput$1<TAccountSubscriber extends InstructionSignerInput = InstructionSignerInput, TAccountMerchant extends InstructionAccountInput = InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthorityPda extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput, TAccountPayer extends InstructionSignerInput = InstructionSignerInput> = {
1769
2234
  /** The subscriber creating the subscription (pays rent) */
1770
- subscriber: TransactionSigner<TAccountSubscriber>;
2235
+ subscriber: TAccountSubscriber;
1771
2236
  /** The merchant who owns the plan */
1772
- merchant: Address<TAccountMerchant>;
2237
+ merchant: TAccountMerchant;
1773
2238
  /** The plan PDA to subscribe to */
1774
- planPda: Address<TAccountPlanPda>;
2239
+ planPda: TAccountPlanPda;
1775
2240
  /** The subscription PDA being created */
1776
- subscriptionPda: Address<TAccountSubscriptionPda>;
2241
+ subscriptionPda: TAccountSubscriptionPda;
1777
2242
  /** The subscriber's SubscriptionAuthority PDA for the plan's mint */
1778
- subscriptionAuthorityPda: Address<TAccountSubscriptionAuthorityPda>;
2243
+ subscriptionAuthorityPda: TAccountSubscriptionAuthorityPda;
1779
2244
  /** The system program */
1780
- systemProgram?: Address<TAccountSystemProgram>;
2245
+ systemProgram?: TAccountSystemProgram;
1781
2246
  /** The event authority PDA */
1782
- eventAuthority: Address<TAccountEventAuthority>;
2247
+ eventAuthority: TAccountEventAuthority;
1783
2248
  /** This program (for self-CPI) */
1784
- selfProgram?: Address<TAccountSelfProgram>;
2249
+ selfProgram?: TAccountSelfProgram;
1785
2250
  /** Optional sponsor that funds the account rent. Defaults to the subscriber/signer when omitted. */
1786
- payer?: TransactionSigner<TAccountPayer>;
2251
+ payer?: TAccountPayer;
1787
2252
  subscribeData: SubscribeInstructionDataArgs['subscribeData'];
1788
2253
  };
1789
- declare function getSubscribeInstruction<TAccountSubscriber extends string, TAccountMerchant extends string, TAccountPlanPda extends string, TAccountSubscriptionPda extends string, TAccountSubscriptionAuthorityPda extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: SubscribeInput$1<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>, config?: {
1790
- programAddress?: TProgramAddress;
1791
- }): SubscribeInstruction<TProgramAddress, TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>;
2254
+ declare function getSubscribeInstruction<TAccountSubscriber extends InstructionSignerInput, TAccountMerchant extends InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionPda extends InstructionAccountInput, TAccountSubscriptionAuthorityPda extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TAccountPayer extends InstructionSignerInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: SubscribeInput$1<TAccountSubscriber, TAccountMerchant, TAccountPlanPda, TAccountSubscriptionPda, TAccountSubscriptionAuthorityPda, TAccountSystemProgram, TAccountEventAuthority, TAccountSelfProgram, TAccountPayer>, config?: {
2255
+ programAddress?: TProgramAddress | {
2256
+ readonly address: TProgramAddress;
2257
+ };
2258
+ }): SubscribeInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriber, InstructionAccountInputAddress<TAccountSubscriber>>, ResolvedInstructionAccountMeta<TAccountMerchant, InstructionAccountInputAddress<TAccountMerchant>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthorityPda, InstructionAccountInputAddress<TAccountSubscriptionAuthorityPda>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>>;
1792
2259
  type ParsedSubscribeInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1793
2260
  programAddress: Address<TProgram>;
1794
2261
  accounts: {
@@ -1847,54 +2314,58 @@ type TransferFixedInstructionDataArgs = {
1847
2314
  declare function getTransferFixedInstructionDataEncoder(): FixedSizeEncoder<TransferFixedInstructionDataArgs>;
1848
2315
  declare function getTransferFixedInstructionDataDecoder(): FixedSizeDecoder<TransferFixedInstructionData>;
1849
2316
  declare function getTransferFixedInstructionDataCodec(): FixedSizeCodec<TransferFixedInstructionDataArgs, TransferFixedInstructionData>;
1850
- type TransferFixedAsyncInput<TAccountDelegationPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountDelegatee extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
2317
+ type TransferFixedAsyncInput<TAccountDelegationPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatee extends InstructionSignerInput = InstructionSignerInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
1851
2318
  /** The fixed delegation PDA to transfer from */
1852
- delegationPda: Address<TAccountDelegationPda>;
2319
+ delegationPda: TAccountDelegationPda;
1853
2320
  /** The subscription-authority PDA */
1854
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
2321
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1855
2322
  /** The delegator's ATA to transfer from */
1856
- delegatorAta: Address<TAccountDelegatorAta>;
2323
+ delegatorAta: TAccountDelegatorAta;
1857
2324
  /** The receiver's ATA to transfer to */
1858
- receiverAta: Address<TAccountReceiverAta>;
2325
+ receiverAta: TAccountReceiverAta;
1859
2326
  /** The token mint */
1860
- tokenMint: Address<TAccountTokenMint>;
2327
+ tokenMint: TAccountTokenMint;
1861
2328
  /** Token program */
1862
- tokenProgram: Address<TAccountTokenProgram>;
2329
+ tokenProgram: TAccountTokenProgram;
1863
2330
  /** The delegatee signing the transfer */
1864
- delegatee: TransactionSigner<TAccountDelegatee>;
2331
+ delegatee: TAccountDelegatee;
1865
2332
  /** The event authority PDA */
1866
- eventAuthority?: Address<TAccountEventAuthority>;
2333
+ eventAuthority?: TAccountEventAuthority;
1867
2334
  /** This program (for self-CPI) */
1868
- selfProgram?: Address<TAccountSelfProgram>;
2335
+ selfProgram?: TAccountSelfProgram;
1869
2336
  transferData: TransferFixedInstructionDataArgs['transferData'];
1870
2337
  };
1871
- declare function getTransferFixedInstructionAsync<TAccountDelegationPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountDelegatee extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferFixedAsyncInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1872
- programAddress?: TProgramAddress;
1873
- }): Promise<TransferFixedInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>>;
1874
- type TransferFixedInput<TAccountDelegationPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountDelegatee extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
2338
+ declare function getTransferFixedInstructionAsync<TAccountDelegationPda extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountDelegatee extends InstructionSignerInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferFixedAsyncInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2339
+ programAddress?: TProgramAddress | {
2340
+ readonly address: TProgramAddress;
2341
+ };
2342
+ }): Promise<TransferFixedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDelegationPda, InstructionAccountInputAddress<TAccountDelegationPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegatorAta, InstructionAccountInputAddress<TAccountDelegatorAta>>, ResolvedInstructionAccountMeta<TAccountReceiverAta, InstructionAccountInputAddress<TAccountReceiverAta>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountDelegatee, InstructionAccountInputAddress<TAccountDelegatee>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>>;
2343
+ type TransferFixedInput<TAccountDelegationPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatee extends InstructionSignerInput = InstructionSignerInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
1875
2344
  /** The fixed delegation PDA to transfer from */
1876
- delegationPda: Address<TAccountDelegationPda>;
2345
+ delegationPda: TAccountDelegationPda;
1877
2346
  /** The subscription-authority PDA */
1878
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
2347
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1879
2348
  /** The delegator's ATA to transfer from */
1880
- delegatorAta: Address<TAccountDelegatorAta>;
2349
+ delegatorAta: TAccountDelegatorAta;
1881
2350
  /** The receiver's ATA to transfer to */
1882
- receiverAta: Address<TAccountReceiverAta>;
2351
+ receiverAta: TAccountReceiverAta;
1883
2352
  /** The token mint */
1884
- tokenMint: Address<TAccountTokenMint>;
2353
+ tokenMint: TAccountTokenMint;
1885
2354
  /** Token program */
1886
- tokenProgram: Address<TAccountTokenProgram>;
2355
+ tokenProgram: TAccountTokenProgram;
1887
2356
  /** The delegatee signing the transfer */
1888
- delegatee: TransactionSigner<TAccountDelegatee>;
2357
+ delegatee: TAccountDelegatee;
1889
2358
  /** The event authority PDA */
1890
- eventAuthority: Address<TAccountEventAuthority>;
2359
+ eventAuthority: TAccountEventAuthority;
1891
2360
  /** This program (for self-CPI) */
1892
- selfProgram?: Address<TAccountSelfProgram>;
2361
+ selfProgram?: TAccountSelfProgram;
1893
2362
  transferData: TransferFixedInstructionDataArgs['transferData'];
1894
2363
  };
1895
- declare function getTransferFixedInstruction<TAccountDelegationPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountDelegatee extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferFixedInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1896
- programAddress?: TProgramAddress;
1897
- }): TransferFixedInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>;
2364
+ declare function getTransferFixedInstruction<TAccountDelegationPda extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountDelegatee extends InstructionSignerInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferFixedInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2365
+ programAddress?: TProgramAddress | {
2366
+ readonly address: TProgramAddress;
2367
+ };
2368
+ }): TransferFixedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDelegationPda, InstructionAccountInputAddress<TAccountDelegationPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegatorAta, InstructionAccountInputAddress<TAccountDelegatorAta>>, ResolvedInstructionAccountMeta<TAccountReceiverAta, InstructionAccountInputAddress<TAccountReceiverAta>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountDelegatee, InstructionAccountInputAddress<TAccountDelegatee>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>;
1898
2369
  type ParsedTransferFixedInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1899
2370
  programAddress: Address<TProgram>;
1900
2371
  accounts: {
@@ -1953,54 +2424,58 @@ type TransferRecurringInstructionDataArgs = {
1953
2424
  declare function getTransferRecurringInstructionDataEncoder(): FixedSizeEncoder<TransferRecurringInstructionDataArgs>;
1954
2425
  declare function getTransferRecurringInstructionDataDecoder(): FixedSizeDecoder<TransferRecurringInstructionData>;
1955
2426
  declare function getTransferRecurringInstructionDataCodec(): FixedSizeCodec<TransferRecurringInstructionDataArgs, TransferRecurringInstructionData>;
1956
- type TransferRecurringAsyncInput<TAccountDelegationPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountDelegatee extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
2427
+ type TransferRecurringAsyncInput<TAccountDelegationPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatee extends InstructionSignerInput = InstructionSignerInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
1957
2428
  /** The recurring delegation PDA to transfer from */
1958
- delegationPda: Address<TAccountDelegationPda>;
2429
+ delegationPda: TAccountDelegationPda;
1959
2430
  /** The subscription-authority PDA */
1960
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
2431
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1961
2432
  /** The delegator's ATA to transfer from */
1962
- delegatorAta: Address<TAccountDelegatorAta>;
2433
+ delegatorAta: TAccountDelegatorAta;
1963
2434
  /** The receiver's ATA to transfer to */
1964
- receiverAta: Address<TAccountReceiverAta>;
2435
+ receiverAta: TAccountReceiverAta;
1965
2436
  /** The token mint */
1966
- tokenMint: Address<TAccountTokenMint>;
2437
+ tokenMint: TAccountTokenMint;
1967
2438
  /** Token program */
1968
- tokenProgram: Address<TAccountTokenProgram>;
2439
+ tokenProgram: TAccountTokenProgram;
1969
2440
  /** The delegatee signing the transfer */
1970
- delegatee: TransactionSigner<TAccountDelegatee>;
2441
+ delegatee: TAccountDelegatee;
1971
2442
  /** The event authority PDA */
1972
- eventAuthority?: Address<TAccountEventAuthority>;
2443
+ eventAuthority?: TAccountEventAuthority;
1973
2444
  /** This program (for self-CPI) */
1974
- selfProgram?: Address<TAccountSelfProgram>;
2445
+ selfProgram?: TAccountSelfProgram;
1975
2446
  transferData: TransferRecurringInstructionDataArgs['transferData'];
1976
2447
  };
1977
- declare function getTransferRecurringInstructionAsync<TAccountDelegationPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountDelegatee extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferRecurringAsyncInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
1978
- programAddress?: TProgramAddress;
1979
- }): Promise<TransferRecurringInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>>;
1980
- type TransferRecurringInput<TAccountDelegationPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountDelegatee extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
2448
+ declare function getTransferRecurringInstructionAsync<TAccountDelegationPda extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountDelegatee extends InstructionSignerInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferRecurringAsyncInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2449
+ programAddress?: TProgramAddress | {
2450
+ readonly address: TProgramAddress;
2451
+ };
2452
+ }): Promise<TransferRecurringInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDelegationPda, InstructionAccountInputAddress<TAccountDelegationPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegatorAta, InstructionAccountInputAddress<TAccountDelegatorAta>>, ResolvedInstructionAccountMeta<TAccountReceiverAta, InstructionAccountInputAddress<TAccountReceiverAta>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountDelegatee, InstructionAccountInputAddress<TAccountDelegatee>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>>;
2453
+ type TransferRecurringInput<TAccountDelegationPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput = InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatee extends InstructionSignerInput = InstructionSignerInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
1981
2454
  /** The recurring delegation PDA to transfer from */
1982
- delegationPda: Address<TAccountDelegationPda>;
2455
+ delegationPda: TAccountDelegationPda;
1983
2456
  /** The subscription-authority PDA */
1984
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
2457
+ subscriptionAuthority: TAccountSubscriptionAuthority;
1985
2458
  /** The delegator's ATA to transfer from */
1986
- delegatorAta: Address<TAccountDelegatorAta>;
2459
+ delegatorAta: TAccountDelegatorAta;
1987
2460
  /** The receiver's ATA to transfer to */
1988
- receiverAta: Address<TAccountReceiverAta>;
2461
+ receiverAta: TAccountReceiverAta;
1989
2462
  /** The token mint */
1990
- tokenMint: Address<TAccountTokenMint>;
2463
+ tokenMint: TAccountTokenMint;
1991
2464
  /** Token program */
1992
- tokenProgram: Address<TAccountTokenProgram>;
2465
+ tokenProgram: TAccountTokenProgram;
1993
2466
  /** The delegatee signing the transfer */
1994
- delegatee: TransactionSigner<TAccountDelegatee>;
2467
+ delegatee: TAccountDelegatee;
1995
2468
  /** The event authority PDA */
1996
- eventAuthority: Address<TAccountEventAuthority>;
2469
+ eventAuthority: TAccountEventAuthority;
1997
2470
  /** This program (for self-CPI) */
1998
- selfProgram?: Address<TAccountSelfProgram>;
2471
+ selfProgram?: TAccountSelfProgram;
1999
2472
  transferData: TransferRecurringInstructionDataArgs['transferData'];
2000
2473
  };
2001
- declare function getTransferRecurringInstruction<TAccountDelegationPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountDelegatee extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferRecurringInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2002
- programAddress?: TProgramAddress;
2003
- }): TransferRecurringInstruction<TProgramAddress, TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>;
2474
+ declare function getTransferRecurringInstruction<TAccountDelegationPda extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput, TAccountTokenMint extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountDelegatee extends InstructionSignerInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferRecurringInput<TAccountDelegationPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountTokenMint, TAccountTokenProgram, TAccountDelegatee, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2475
+ programAddress?: TProgramAddress | {
2476
+ readonly address: TProgramAddress;
2477
+ };
2478
+ }): TransferRecurringInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDelegationPda, InstructionAccountInputAddress<TAccountDelegationPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegatorAta, InstructionAccountInputAddress<TAccountDelegatorAta>>, ResolvedInstructionAccountMeta<TAccountReceiverAta, InstructionAccountInputAddress<TAccountReceiverAta>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountDelegatee, InstructionAccountInputAddress<TAccountDelegatee>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>;
2004
2479
  type ParsedTransferRecurringInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2005
2480
  programAddress: Address<TProgram>;
2006
2481
  accounts: {
@@ -2060,58 +2535,62 @@ type TransferSubscriptionInstructionDataArgs = {
2060
2535
  declare function getTransferSubscriptionInstructionDataEncoder(): FixedSizeEncoder<TransferSubscriptionInstructionDataArgs>;
2061
2536
  declare function getTransferSubscriptionInstructionDataDecoder(): FixedSizeDecoder<TransferSubscriptionInstructionData>;
2062
2537
  declare function getTransferSubscriptionInstructionDataCodec(): FixedSizeCodec<TransferSubscriptionInstructionDataArgs, TransferSubscriptionInstructionData>;
2063
- type TransferSubscriptionAsyncInput<TAccountSubscriptionPda extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountCaller extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
2538
+ type TransferSubscriptionAsyncInput<TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput = InstructionAccountInput, TAccountCaller extends InstructionSignerInput = InstructionSignerInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
2064
2539
  /** The subscription delegation PDA */
2065
- subscriptionPda: Address<TAccountSubscriptionPda>;
2540
+ subscriptionPda: TAccountSubscriptionPda;
2066
2541
  /** The plan PDA */
2067
- planPda: Address<TAccountPlanPda>;
2542
+ planPda: TAccountPlanPda;
2068
2543
  /** The subscription-authority PDA */
2069
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
2544
+ subscriptionAuthority: TAccountSubscriptionAuthority;
2070
2545
  /** The delegator's ATA to transfer from */
2071
- delegatorAta: Address<TAccountDelegatorAta>;
2546
+ delegatorAta: TAccountDelegatorAta;
2072
2547
  /** The receiver's ATA to transfer to */
2073
- receiverAta: Address<TAccountReceiverAta>;
2548
+ receiverAta: TAccountReceiverAta;
2074
2549
  /** The authorized puller (plan owner or whitelisted) */
2075
- caller: TransactionSigner<TAccountCaller>;
2550
+ caller: TAccountCaller;
2076
2551
  /** The token mint */
2077
- tokenMint: Address<TAccountTokenMint>;
2552
+ tokenMint: TAccountTokenMint;
2078
2553
  /** Token program */
2079
- tokenProgram: Address<TAccountTokenProgram>;
2554
+ tokenProgram: TAccountTokenProgram;
2080
2555
  /** The event authority PDA */
2081
- eventAuthority?: Address<TAccountEventAuthority>;
2556
+ eventAuthority?: TAccountEventAuthority;
2082
2557
  /** This program (for self-CPI) */
2083
- selfProgram?: Address<TAccountSelfProgram>;
2558
+ selfProgram?: TAccountSelfProgram;
2084
2559
  transferData: TransferSubscriptionInstructionDataArgs['transferData'];
2085
2560
  };
2086
- declare function getTransferSubscriptionInstructionAsync<TAccountSubscriptionPda extends string, TAccountPlanPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountCaller extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferSubscriptionAsyncInput<TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2087
- programAddress?: TProgramAddress;
2088
- }): Promise<TransferSubscriptionInstruction<TProgramAddress, TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>>;
2089
- type TransferSubscriptionInput$1<TAccountSubscriptionPda extends string = string, TAccountPlanPda extends string = string, TAccountSubscriptionAuthority extends string = string, TAccountDelegatorAta extends string = string, TAccountReceiverAta extends string = string, TAccountCaller extends string = string, TAccountTokenMint extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
2561
+ declare function getTransferSubscriptionInstructionAsync<TAccountSubscriptionPda extends InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput, TAccountCaller extends InstructionSignerInput, TAccountTokenMint extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferSubscriptionAsyncInput<TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2562
+ programAddress?: TProgramAddress | {
2563
+ readonly address: TProgramAddress;
2564
+ };
2565
+ }): Promise<TransferSubscriptionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegatorAta, InstructionAccountInputAddress<TAccountDelegatorAta>>, ResolvedInstructionAccountMeta<TAccountReceiverAta, InstructionAccountInputAddress<TAccountReceiverAta>>, ResolvedInstructionAccountMeta<TAccountCaller, InstructionAccountInputAddress<TAccountCaller>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>>;
2566
+ type TransferSubscriptionInput$1<TAccountSubscriptionPda extends InstructionAccountInput = InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput = InstructionAccountInput, TAccountCaller extends InstructionSignerInput = InstructionSignerInput, TAccountTokenMint extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
2090
2567
  /** The subscription delegation PDA */
2091
- subscriptionPda: Address<TAccountSubscriptionPda>;
2568
+ subscriptionPda: TAccountSubscriptionPda;
2092
2569
  /** The plan PDA */
2093
- planPda: Address<TAccountPlanPda>;
2570
+ planPda: TAccountPlanPda;
2094
2571
  /** The subscription-authority PDA */
2095
- subscriptionAuthority: Address<TAccountSubscriptionAuthority>;
2572
+ subscriptionAuthority: TAccountSubscriptionAuthority;
2096
2573
  /** The delegator's ATA to transfer from */
2097
- delegatorAta: Address<TAccountDelegatorAta>;
2574
+ delegatorAta: TAccountDelegatorAta;
2098
2575
  /** The receiver's ATA to transfer to */
2099
- receiverAta: Address<TAccountReceiverAta>;
2576
+ receiverAta: TAccountReceiverAta;
2100
2577
  /** The authorized puller (plan owner or whitelisted) */
2101
- caller: TransactionSigner<TAccountCaller>;
2578
+ caller: TAccountCaller;
2102
2579
  /** The token mint */
2103
- tokenMint: Address<TAccountTokenMint>;
2580
+ tokenMint: TAccountTokenMint;
2104
2581
  /** Token program */
2105
- tokenProgram: Address<TAccountTokenProgram>;
2582
+ tokenProgram: TAccountTokenProgram;
2106
2583
  /** The event authority PDA */
2107
- eventAuthority: Address<TAccountEventAuthority>;
2584
+ eventAuthority: TAccountEventAuthority;
2108
2585
  /** This program (for self-CPI) */
2109
- selfProgram?: Address<TAccountSelfProgram>;
2586
+ selfProgram?: TAccountSelfProgram;
2110
2587
  transferData: TransferSubscriptionInstructionDataArgs['transferData'];
2111
2588
  };
2112
- declare function getTransferSubscriptionInstruction<TAccountSubscriptionPda extends string, TAccountPlanPda extends string, TAccountSubscriptionAuthority extends string, TAccountDelegatorAta extends string, TAccountReceiverAta extends string, TAccountCaller extends string, TAccountTokenMint extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferSubscriptionInput$1<TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2113
- programAddress?: TProgramAddress;
2114
- }): TransferSubscriptionInstruction<TProgramAddress, TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>;
2589
+ declare function getTransferSubscriptionInstruction<TAccountSubscriptionPda extends InstructionAccountInput, TAccountPlanPda extends InstructionAccountInput, TAccountSubscriptionAuthority extends InstructionAccountInput, TAccountDelegatorAta extends InstructionAccountInput, TAccountReceiverAta extends InstructionAccountInput, TAccountCaller extends InstructionSignerInput, TAccountTokenMint extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: TransferSubscriptionInput$1<TAccountSubscriptionPda, TAccountPlanPda, TAccountSubscriptionAuthority, TAccountDelegatorAta, TAccountReceiverAta, TAccountCaller, TAccountTokenMint, TAccountTokenProgram, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2590
+ programAddress?: TProgramAddress | {
2591
+ readonly address: TProgramAddress;
2592
+ };
2593
+ }): TransferSubscriptionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSubscriptionPda, InstructionAccountInputAddress<TAccountSubscriptionPda>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountSubscriptionAuthority, InstructionAccountInputAddress<TAccountSubscriptionAuthority>>, ResolvedInstructionAccountMeta<TAccountDelegatorAta, InstructionAccountInputAddress<TAccountDelegatorAta>>, ResolvedInstructionAccountMeta<TAccountReceiverAta, InstructionAccountInputAddress<TAccountReceiverAta>>, ResolvedInstructionAccountMeta<TAccountCaller, InstructionAccountInputAddress<TAccountCaller>>, ResolvedInstructionAccountMeta<TAccountTokenMint, InstructionAccountInputAddress<TAccountTokenMint>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>;
2115
2594
  type ParsedTransferSubscriptionInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2116
2595
  programAddress: Address<TProgram>;
2117
2596
  accounts: {
@@ -2167,34 +2646,38 @@ type UpdatePlanInstructionDataArgs = {
2167
2646
  declare function getUpdatePlanInstructionDataEncoder(): FixedSizeEncoder<UpdatePlanInstructionDataArgs>;
2168
2647
  declare function getUpdatePlanInstructionDataDecoder(): FixedSizeDecoder<UpdatePlanInstructionData>;
2169
2648
  declare function getUpdatePlanInstructionDataCodec(): FixedSizeCodec<UpdatePlanInstructionDataArgs, UpdatePlanInstructionData>;
2170
- type UpdatePlanAsyncInput<TAccountOwner extends string = string, TAccountPlanPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
2649
+ type UpdatePlanAsyncInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
2171
2650
  /** The plan owner updating the plan */
2172
- owner: TransactionSigner<TAccountOwner>;
2651
+ owner: TAccountOwner;
2173
2652
  /** The plan PDA being updated */
2174
- planPda: Address<TAccountPlanPda>;
2653
+ planPda: TAccountPlanPda;
2175
2654
  /** The event authority PDA */
2176
- eventAuthority?: Address<TAccountEventAuthority>;
2655
+ eventAuthority?: TAccountEventAuthority;
2177
2656
  /** This program (for self-CPI) */
2178
- selfProgram?: Address<TAccountSelfProgram>;
2657
+ selfProgram?: TAccountSelfProgram;
2179
2658
  updatePlanData: UpdatePlanInstructionDataArgs['updatePlanData'];
2180
2659
  };
2181
- declare function getUpdatePlanInstructionAsync<TAccountOwner extends string, TAccountPlanPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: UpdatePlanAsyncInput<TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2182
- programAddress?: TProgramAddress;
2183
- }): Promise<UpdatePlanInstruction<TProgramAddress, TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>>;
2184
- type UpdatePlanInput$1<TAccountOwner extends string = string, TAccountPlanPda extends string = string, TAccountEventAuthority extends string = string, TAccountSelfProgram extends string = string> = {
2660
+ declare function getUpdatePlanInstructionAsync<TAccountOwner extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: UpdatePlanAsyncInput<TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2661
+ programAddress?: TProgramAddress | {
2662
+ readonly address: TProgramAddress;
2663
+ };
2664
+ }): Promise<UpdatePlanInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>>;
2665
+ type UpdatePlanInput$1<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput = InstructionAccountInput> = {
2185
2666
  /** The plan owner updating the plan */
2186
- owner: TransactionSigner<TAccountOwner>;
2667
+ owner: TAccountOwner;
2187
2668
  /** The plan PDA being updated */
2188
- planPda: Address<TAccountPlanPda>;
2669
+ planPda: TAccountPlanPda;
2189
2670
  /** The event authority PDA */
2190
- eventAuthority: Address<TAccountEventAuthority>;
2671
+ eventAuthority: TAccountEventAuthority;
2191
2672
  /** This program (for self-CPI) */
2192
- selfProgram?: Address<TAccountSelfProgram>;
2673
+ selfProgram?: TAccountSelfProgram;
2193
2674
  updatePlanData: UpdatePlanInstructionDataArgs['updatePlanData'];
2194
2675
  };
2195
- declare function getUpdatePlanInstruction<TAccountOwner extends string, TAccountPlanPda extends string, TAccountEventAuthority extends string, TAccountSelfProgram extends string, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: UpdatePlanInput$1<TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2196
- programAddress?: TProgramAddress;
2197
- }): UpdatePlanInstruction<TProgramAddress, TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>;
2676
+ declare function getUpdatePlanInstruction<TAccountOwner extends InstructionSignerInput, TAccountPlanPda extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountSelfProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS>(input: UpdatePlanInput$1<TAccountOwner, TAccountPlanPda, TAccountEventAuthority, TAccountSelfProgram>, config?: {
2677
+ programAddress?: TProgramAddress | {
2678
+ readonly address: TProgramAddress;
2679
+ };
2680
+ }): UpdatePlanInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountPlanPda, InstructionAccountInputAddress<TAccountPlanPda>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountSelfProgram, InstructionAccountInputAddress<TAccountSelfProgram>>>;
2198
2681
  type ParsedUpdatePlanInstruction<TProgram extends string = typeof SUBSCRIPTIONS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2199
2682
  programAddress: Address<TProgram>;
2200
2683
  accounts: {
@@ -2349,6 +2832,13 @@ type TransferHookAccount = {
2349
2832
  address: Address;
2350
2833
  role: AccountRole;
2351
2834
  };
2835
+ /** The `TransferContext` the program writes mid-instruction: its bytes stand in
2836
+ * for a fetch during seed resolution, and its `initiator` funds it. */
2837
+ type PendingTransferContext = {
2838
+ address: Address;
2839
+ data: ReadonlyUint8Array;
2840
+ initiator: Address;
2841
+ };
2352
2842
  /** Identity of the four base `Execute` accounts and the transfer amount, needed
2353
2843
  * to resolve seed- and instruction-data-derived extra accounts. */
2354
2844
  type ResolveTransferHookArgs = {
@@ -2358,6 +2848,7 @@ type ResolveTransferHookArgs = {
2358
2848
  mint: Address;
2359
2849
  source: Address;
2360
2850
  tokenProgram: Address;
2851
+ transferContext?: PendingTransferContext;
2361
2852
  transferHookAccounts?: TransferHookAccount[];
2362
2853
  };
2363
2854
  type ResolveRpc = Parameters<typeof fetchMint>[0];
@@ -2604,9 +3095,31 @@ declare function subscriptionsProgram(): <T extends SubscriptionsPluginRequireme
2604
3095
  };
2605
3096
  };
2606
3097
 
3098
+ /**
3099
+ * Client-side construction of the ephemeral `TransferContext` a transfer hook
3100
+ * resolves during a pull. The program creates and closes it inside the transfer
3101
+ * instruction, so no RPC can ever read it: hook seeds over its contents resolve
3102
+ * against the bytes the program is about to write.
3103
+ */
3104
+
3105
+ type PendingTransferContextInput = {
3106
+ delegation: Address;
3107
+ delegationKind: AccountDiscriminator;
3108
+ initiator: Address;
3109
+ programAddress?: Address;
3110
+ subscriptionAuthority: Address;
3111
+ };
3112
+ /** The context address and the bytes it will hold while the hook runs. */
3113
+ declare function buildPendingTransferContext(input: PendingTransferContextInput): Promise<{
3114
+ address: Address;
3115
+ data: ReadonlyUint8Array;
3116
+ initiator: Address;
3117
+ }>;
3118
+
2607
3119
  /** Client-side validation failure (e.g. max destinations exceeded). */
2608
3120
  declare class ValidationError extends Error {
2609
3121
  constructor(message: string);
2610
3122
  }
2611
3123
 
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 };
3124
+ export { AccountDiscriminator, 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, DELEGATEE_OFFSET, DELEGATION_SEED, DELEGATOR_OFFSET, DELETE_PLAN_DISCRIMINATOR, DISCRIMINATOR_OFFSET, EVENT_AUTHORITY_SEED, FIXED_TRANSFER_EVENT_EVENT_DISCRIMINATOR, FIXED_TRANSFER_EVENT_EVENT_DISCRIMINATOR2, INIT_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, MAX_PLAN_DESTINATIONS, MAX_PLAN_PULLERS, METADATA_URI_LEN, PLAN_OWNER_OFFSET, PLAN_SEED, PLAN_SIZE, PLAN_UPDATED_EVENT_EVENT_DISCRIMINATOR, PLAN_UPDATED_EVENT_EVENT_DISCRIMINATOR2, PROGRAM_ID, PlanStatus, RECLAIM_EXCESS_RENT_DISCRIMINATOR, RECURRING_TRANSFER_EVENT_EVENT_DISCRIMINATOR, RECURRING_TRANSFER_EVENT_EVENT_DISCRIMINATOR2, RESUME_SUBSCRIPTION_DISCRIMINATOR, REVOKE_ABANDONED_DELEGATION_DISCRIMINATOR, REVOKE_ABANDONED_SUBSCRIPTION_DISCRIMINATOR, REVOKE_DELEGATION_DISCRIMINATOR, REVOKE_SUBSCRIPTION_AUTHORITY_DISCRIMINATOR, 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__NO_EXCESS_LAMPORTS, 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_CANCELLED_EVENT_EVENT_DISCRIMINATOR, SUBSCRIPTION_CANCELLED_EVENT_EVENT_DISCRIMINATOR2, SUBSCRIPTION_CREATED_EVENT_EVENT_DISCRIMINATOR, SUBSCRIPTION_CREATED_EVENT_EVENT_DISCRIMINATOR2, SUBSCRIPTION_RESUMED_EVENT_EVENT_DISCRIMINATOR, SUBSCRIPTION_RESUMED_EVENT_EVENT_DISCRIMINATOR2, SUBSCRIPTION_SEED, SUBSCRIPTION_SIZE, SUBSCRIPTION_TRANSFER_EVENT_EVENT_DISCRIMINATOR, SUBSCRIPTION_TRANSFER_EVENT_EVENT_DISCRIMINATOR2, SubscriptionsAccount, SubscriptionsEvent, SubscriptionsInstruction, TRANSFER_FIXED_DISCRIMINATOR, TRANSFER_RECURRING_DISCRIMINATOR, TRANSFER_SUBSCRIPTION_DISCRIMINATOR, U64_BYTE_SIZE, UNKNOWN_INIT_ID, UPDATE_PLAN_DISCRIMINATOR, ValidationError, ZERO_ADDRESS, buildPendingTransferContext, decodeDelegationAccount, decodeEventAuthority, decodeFixedDelegation, decodePlan, decodeRecurringDelegation, decodeSubscriptionAuthority, decodeSubscriptionDelegation, decodeTransferContext, fetchAllEventAuthority, fetchAllFixedDelegation, fetchAllMaybeEventAuthority, fetchAllMaybeFixedDelegation, fetchAllMaybePlan, fetchAllMaybeRecurringDelegation, fetchAllMaybeSubscriptionAuthority, fetchAllMaybeSubscriptionDelegation, fetchAllMaybeTransferContext, fetchAllPlan, fetchAllRecurringDelegation, fetchAllSubscriptionAuthority, fetchAllSubscriptionDelegation, fetchAllTransferContext, fetchDelegationsByDelegatee, fetchDelegationsByDelegator, fetchEventAuthority, fetchEventAuthorityFromSeeds, fetchFixedDelegation, fetchFixedDelegationFromSeeds, fetchMaybeEventAuthority, fetchMaybeEventAuthorityFromSeeds, fetchMaybeFixedDelegation, fetchMaybeFixedDelegationFromSeeds, fetchMaybePlan, fetchMaybePlanFromSeeds, fetchMaybeRecurringDelegation, fetchMaybeRecurringDelegationFromSeeds, fetchMaybeSubscriptionAuthority, fetchMaybeSubscriptionAuthorityFromSeeds, fetchMaybeSubscriptionDelegation, fetchMaybeSubscriptionDelegationFromSeeds, fetchMaybeTransferContext, fetchMaybeTransferContextFromSeeds, fetchPlan, fetchPlanFromSeeds, fetchPlansForOwner, fetchRecurringDelegation, fetchRecurringDelegationFromSeeds, fetchSubscriptionAuthority, fetchSubscriptionAuthorityFromSeeds, fetchSubscriptionDelegation, fetchSubscriptionDelegationFromSeeds, fetchSubscriptionsForUser, fetchTransferContext, fetchTransferContextFromSeeds, findEventAuthorityPda, findFixedDelegationPda, findPlanPda, findRecurringDelegationPda, findSubscriptionAuthorityPda, findSubscriptionDelegationPda, findTransferContextPda, 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, getFixedTransferEventEventCodec, getFixedTransferEventEventDecoder, getFixedTransferEventEventDiscriminator2Bytes, getFixedTransferEventEventDiscriminatorBytes, getFixedTransferEventEventEncoder, getHeaderCodec, getHeaderDecoder, getHeaderEncoder, getInitSubscriptionAuthorityDiscriminatorBytes, getInitSubscriptionAuthorityInstruction, getInitSubscriptionAuthorityInstructionAsync, getInitSubscriptionAuthorityInstructionDataCodec, getInitSubscriptionAuthorityInstructionDataDecoder, getInitSubscriptionAuthorityInstructionDataEncoder, getInitSubscriptionAuthorityOverlayInstructionAsync, getPlanCodec, getPlanDataCodec, getPlanDataDecoder, getPlanDataEncoder, getPlanDecoder, getPlanEncoder, getPlanStatusCodec, getPlanStatusDecoder, getPlanStatusEncoder, getPlanTermsCodec, getPlanTermsDecoder, getPlanTermsEncoder, getPlanUpdatedEventEventCodec, getPlanUpdatedEventEventDecoder, getPlanUpdatedEventEventDiscriminator2Bytes, getPlanUpdatedEventEventDiscriminatorBytes, getPlanUpdatedEventEventEncoder, getReclaimExcessRentDiscriminatorBytes, getReclaimExcessRentInstruction, getReclaimExcessRentInstructionDataCodec, getReclaimExcessRentInstructionDataDecoder, getReclaimExcessRentInstructionDataEncoder, getRecurringDelegationCodec, getRecurringDelegationDecoder, getRecurringDelegationEncoder, getRecurringTransferEventEventCodec, getRecurringTransferEventEventDecoder, getRecurringTransferEventEventDiscriminator2Bytes, getRecurringTransferEventEventDiscriminatorBytes, getRecurringTransferEventEventEncoder, 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, getSubscriptionCancelledEventEventCodec, getSubscriptionCancelledEventEventDecoder, getSubscriptionCancelledEventEventDiscriminator2Bytes, getSubscriptionCancelledEventEventDiscriminatorBytes, getSubscriptionCancelledEventEventEncoder, getSubscriptionCreatedEventEventCodec, getSubscriptionCreatedEventEventDecoder, getSubscriptionCreatedEventEventDiscriminator2Bytes, getSubscriptionCreatedEventEventDiscriminatorBytes, getSubscriptionCreatedEventEventEncoder, getSubscriptionDelegationCodec, getSubscriptionDelegationDecoder, getSubscriptionDelegationEncoder, getSubscriptionResumedEventEventCodec, getSubscriptionResumedEventEventDecoder, getSubscriptionResumedEventEventDiscriminator2Bytes, getSubscriptionResumedEventEventDiscriminatorBytes, getSubscriptionResumedEventEventEncoder, getSubscriptionTransferEventEventCodec, getSubscriptionTransferEventEventDecoder, getSubscriptionTransferEventEventDiscriminator2Bytes, getSubscriptionTransferEventEventDiscriminatorBytes, getSubscriptionTransferEventEventEncoder, getSubscriptionsErrorMessage, getTransferContextCodec, getTransferContextDecoder, getTransferContextEncoder, 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, identifySubscriptionsEvent, identifySubscriptionsInstruction, isSubscriptionsError, parseCancelSubscriptionInstruction, parseCancelSubscriptionNowInstruction, parseCloseSubscriptionAuthorityInstruction, parseCreateFixedDelegationInstruction, parseCreatePlanInstruction, parseCreateRecurringDelegationInstruction, parseDeletePlanInstruction, parseFixedTransferEventEvent, parseInitSubscriptionAuthorityInstruction, parsePlanUpdatedEventEvent, parseReclaimExcessRentInstruction, parseRecurringTransferEventEvent, parseResumeSubscriptionInstruction, parseRevokeAbandonedDelegationInstruction, parseRevokeAbandonedSubscriptionInstruction, parseRevokeDelegationInstruction, parseRevokeSubscriptionAuthorityInstruction, parseSubscribeInstruction, parseSubscriptionCancelledEventEvent, parseSubscriptionCreatedEventEvent, parseSubscriptionResumedEventEvent, parseSubscriptionTransferEventEvent, parseSubscriptionsInstruction, parseTransferFixedInstruction, parseTransferRecurringInstruction, parseTransferSubscriptionInstruction, parseUpdatePlanInstruction, resolveTransferHookAccounts, subscriptionsProgram, toEncodedAccount };
3125
+ export type { AccountDiscriminatorArgs, CancelSubscriptionAsyncInput, CancelSubscriptionInput, CancelSubscriptionInstruction, CancelSubscriptionInstructionData, CancelSubscriptionInstructionDataArgs, CancelSubscriptionNowAsyncInput, CancelSubscriptionNowData, CancelSubscriptionNowDataArgs, CancelSubscriptionNowInput, CancelSubscriptionNowInstruction, CancelSubscriptionNowInstructionData, CancelSubscriptionNowInstructionDataArgs, CloseSubscriptionAuthorityInput, CloseSubscriptionAuthorityInstruction, CloseSubscriptionAuthorityInstructionData, CloseSubscriptionAuthorityInstructionDataArgs, CreateFixedDelegationData, CreateFixedDelegationDataArgs, CreateFixedDelegationInput, CreateFixedDelegationInstruction, CreateFixedDelegationInstructionData, CreateFixedDelegationInstructionDataArgs, CreatePlanInput, CreatePlanInstruction, CreatePlanInstructionData, CreatePlanInstructionDataArgs, CreateRecurringDelegationData, CreateRecurringDelegationDataArgs, CreateRecurringDelegationInput, CreateRecurringDelegationInstruction, CreateRecurringDelegationInstructionData, CreateRecurringDelegationInstructionDataArgs, Delegation, DelegationKindId, DeletePlanInput, DeletePlanInstruction, DeletePlanInstructionData, DeletePlanInstructionDataArgs, EventAuthority, EventAuthorityArgs, FixedDelegation, FixedDelegationArgs, FixedDelegationSeeds, FixedTransferEventEvent, FixedTransferEventEventArgs, Header, HeaderArgs, InitSubscriptionAuthorityAsyncInput, InitSubscriptionAuthorityInput, InitSubscriptionAuthorityInstruction, InitSubscriptionAuthorityInstructionData, InitSubscriptionAuthorityInstructionDataArgs, ParsedCancelSubscriptionInstruction, ParsedCancelSubscriptionNowInstruction, ParsedCloseSubscriptionAuthorityInstruction, ParsedCreateFixedDelegationInstruction, ParsedCreatePlanInstruction, ParsedCreateRecurringDelegationInstruction, ParsedDeletePlanInstruction, ParsedInitSubscriptionAuthorityInstruction, ParsedReclaimExcessRentInstruction, ParsedResumeSubscriptionInstruction, ParsedRevokeAbandonedDelegationInstruction, ParsedRevokeAbandonedSubscriptionInstruction, ParsedRevokeDelegationInstruction, ParsedRevokeSubscriptionAuthorityInstruction, ParsedSubscribeInstruction, ParsedSubscriptionsInstruction, ParsedTransferFixedInstruction, ParsedTransferRecurringInstruction, ParsedTransferSubscriptionInstruction, ParsedUpdatePlanInstruction, PendingTransferContext, PendingTransferContextInput, Plan, PlanArgs, PlanData, PlanDataArgs, PlanSeeds, PlanStatusArgs, PlanTerms, PlanTermsArgs, PlanUpdatedEventEvent, PlanUpdatedEventEventArgs, PlanWithAddress, RawProgramAccount, ReclaimExcessRentInput, ReclaimExcessRentInstruction, ReclaimExcessRentInstructionData, ReclaimExcessRentInstructionDataArgs, RecurringDelegation, RecurringDelegationArgs, RecurringDelegationSeeds, RecurringTransferEventEvent, RecurringTransferEventEventArgs, ResolveTransferHookArgs, ResumeData, ResumeDataArgs, ResumeSubscriptionAsyncInput, ResumeSubscriptionInput, ResumeSubscriptionInstruction, ResumeSubscriptionInstructionData, ResumeSubscriptionInstructionDataArgs, RevokeAbandonedDelegationInput, RevokeAbandonedDelegationInstruction, RevokeAbandonedDelegationInstructionData, RevokeAbandonedDelegationInstructionDataArgs, RevokeAbandonedSubscriptionInput, RevokeAbandonedSubscriptionInstruction, RevokeAbandonedSubscriptionInstructionData, RevokeAbandonedSubscriptionInstructionDataArgs, RevokeDelegationInput, RevokeDelegationInstruction, RevokeDelegationInstructionData, RevokeDelegationInstructionDataArgs, RevokeSubscriptionAuthorityAsyncInput, RevokeSubscriptionAuthorityInput, RevokeSubscriptionAuthorityInstruction, RevokeSubscriptionAuthorityInstructionData, RevokeSubscriptionAuthorityInstructionDataArgs, RevokeSubscriptionInput, SubscribeAsyncInput, SubscribeData, SubscribeDataArgs, SubscribeInput, SubscribeInstruction, SubscribeInstructionData, SubscribeInstructionDataArgs, SubscriptionAuthority, SubscriptionAuthorityArgs, SubscriptionAuthoritySeeds, SubscriptionCancelledEventEvent, SubscriptionCancelledEventEventArgs, SubscriptionCreatedEventEvent, SubscriptionCreatedEventEventArgs, SubscriptionDelegation, SubscriptionDelegationArgs, SubscriptionDelegationSeeds, SubscriptionResumedEventEvent, SubscriptionResumedEventEventArgs, SubscriptionTransferEventEvent, SubscriptionTransferEventEventArgs, SubscriptionsError, SubscriptionsPlugin, SubscriptionsPluginAccounts, SubscriptionsPluginInstructions, SubscriptionsPluginPdas, SubscriptionsPluginQueries, SubscriptionsPluginRequirements, TransferContext, TransferContextArgs, TransferContextSeeds, TransferData, TransferDataArgs, TransferDelegationInput, TransferFixedAsyncInput, TransferFixedInput, TransferFixedInstruction, TransferFixedInstructionData, TransferFixedInstructionDataArgs, TransferHookAccount, TransferRecurringAsyncInput, TransferRecurringInput, TransferRecurringInstruction, TransferRecurringInstructionData, TransferRecurringInstructionDataArgs, TransferSubscriptionAsyncInput, TransferSubscriptionInput, TransferSubscriptionInstruction, TransferSubscriptionInstructionData, TransferSubscriptionInstructionDataArgs, UpdatePlanAsyncInput, UpdatePlanData, UpdatePlanDataArgs, UpdatePlanInput, UpdatePlanInstruction, UpdatePlanInstructionData, UpdatePlanInstructionDataArgs };