@streamflow/distributor 10.0.3 → 11.0.0-alpha.p334.45cbb4e

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.
@@ -1,14 +1,18 @@
1
- import { Keypair, PublicKey, TransactionInstruction, Connection, Commitment, ConnectionConfig } from '@solana/web3.js';
1
+ import { Keypair, PublicKey, Connection, Commitment, ConnectionConfig, TransactionInstruction } from '@solana/web3.js';
2
2
  import { SignerWalletAdapter } from '@solana/wallet-adapter-base';
3
- import { ITransactionExt, ITransactionResult, ICluster, ITransactionExtResolved, IProgramAccount, unwrapExecutionParams, signAndExecuteTransaction } from '@streamflow/common';
3
+ import { ITransactionExt, ITransactionResult, PartnerOracleTypes, PartnerOracle, ICluster, ITransactionExtResolved, IProgramAccount, unwrapExecutionParams, signAndExecuteTransaction } from '@streamflow/common';
4
4
  import BN from 'bn.js';
5
- import { IdlTypes, Program } from '@coral-xyz/anchor';
5
+ import { Program, IdlTypes, IdlAccounts, Idl } from '@coral-xyz/anchor';
6
6
  import { AlignedDistributor } from './descriptor/aligned_distributor.cjs';
7
7
  import { MerkleDistributor as MerkleDistributor$1 } from './descriptor/merkle_distributor.cjs';
8
8
  import PQueue from 'p-queue';
9
9
  import { TransferFeeConfig, Mint } from '@solana/spl-token';
10
10
 
11
11
  type MerkleDistributorAccountTypes = IdlTypes<MerkleDistributor$1>;
12
+ type MerkleDistributorAccounts = IdlAccounts<MerkleDistributor$1>;
13
+ type MerkleDistributorProgram = Program<MerkleDistributor$1>;
14
+ type FeeConfig = PartnerOracleTypes["airdropConfig"];
15
+ type Fees = PartnerOracleTypes["airdropFees"];
12
16
  /**
13
17
  * @inline
14
18
  */
@@ -17,6 +21,24 @@ type ClaimStatus = MerkleDistributorAccountTypes["claimStatus"];
17
21
  * @inline
18
22
  */
19
23
  type CompressedClaimStatus = MerkleDistributorAccountTypes["compressedClaimStatus"];
24
+ /**
25
+ * @inline
26
+ */
27
+ type MerkleDistributor = MerkleDistributorAccountTypes["merkleDistributor"];
28
+ type IdlInstruction<IDL extends Idl, Name extends IDL["instructions"][number]["name"]> = Extract<IDL["instructions"][number], {
29
+ name: Name;
30
+ }>;
31
+ type AccountsOfMethod<M extends keyof Program<MerkleDistributor$1>["methods"]> = Parameters<ReturnType<Program<MerkleDistributor$1>["methods"][M]>["accounts"]>[0];
32
+ type ArgsOfMethod<M extends keyof Program<MerkleDistributor$1>["methods"]> = Parameters<Program<MerkleDistributor$1>["methods"][M]>;
33
+ type NewDistributorAccounts = AccountsOfMethod<"newDistributor">;
34
+ type NewDistributorArgs = ArgsOfMethod<"newDistributor">;
35
+ type NewClaimAccounts = AccountsOfMethod<"newClaim">;
36
+ type NewClaimArgs = IdlInstruction<MerkleDistributor$1, "newClaim">["args"];
37
+ type ClaimLockedV2Accounts = AccountsOfMethod<"claimLockedV2">;
38
+ type ClaimLockedAccounts = AccountsOfMethod<"claimLocked">;
39
+ type ClawbackAccounts = AccountsOfMethod<"clawback">;
40
+ type CloseClaimAccounts = AccountsOfMethod<"closeClaim">;
41
+ type CloseClaimArgs = IdlInstruction<MerkleDistributor$1, "closeClaim">["args"];
20
42
  /**
21
43
  * @type
22
44
  * @inheritdoc
@@ -277,349 +299,6 @@ declare enum ContractErrorCode {
277
299
  ClaimsAreNotClosable = "ClaimsAreNotClosable"
278
300
  }
279
301
 
280
- interface NewDistributorArgs {
281
- version: BN;
282
- root: Array<number>;
283
- maxTotalClaim: BN;
284
- maxNumNodes: BN;
285
- unlockPeriod: BN;
286
- startVestingTs: BN;
287
- endVestingTs: BN;
288
- clawbackStartTs: BN;
289
- claimsClosableByAdmin: boolean;
290
- claimsClosableByClaimant?: boolean | null;
291
- claimsLimit?: number | null;
292
- }
293
- interface NewDistributorAccounts {
294
- /** [MerkleDistributor]. */
295
- distributor: PublicKey;
296
- /** Clawback receiver token account */
297
- clawbackReceiver: PublicKey;
298
- /** The mint to distribute. */
299
- mint: PublicKey;
300
- /** Token vault */
301
- tokenVault: PublicKey;
302
- /**
303
- * Admin wallet, responsible for creating the distributor and paying for the transaction.
304
- * Also has the authority to set the clawback receiver and change itself.
305
- */
306
- admin: PublicKey;
307
- /** The [System] program. */
308
- systemProgram: PublicKey;
309
- /** The [Associated Token] program. */
310
- associatedTokenProgram: PublicKey;
311
- /** The [Token] program. */
312
- tokenProgram: PublicKey;
313
- }
314
- /**
315
- * READ THE FOLLOWING:
316
- *
317
- * This instruction is susceptible to frontrunning that could result in loss of funds if not handled properly.
318
- *
319
- * An attack could look like:
320
- * - A legitimate user opens a new distributor.
321
- * - Someone observes the call to this instruction.
322
- * - They replace the clawback_receiver, admin, or time parameters with their own.
323
- *
324
- * One situation that could happen here is the attacker replaces the admin and clawback_receiver with their own
325
- * and sets the clawback_start_ts with the minimal time allowed. After clawback_start_ts has elapsed,
326
- * the attacker can steal all funds from the distributor to their own clawback_receiver account.
327
- *
328
- * HOW TO AVOID:
329
- * - When you call into this instruction, ensure your transaction succeeds.
330
- * - To be extra safe, after your transaction succeeds, read back the state of the created MerkleDistributor account and
331
- * assert the parameters are what you expect, most importantly the clawback_receiver and admin.
332
- * - If your transaction fails, double check the value on-chain matches what you expect.
333
- */
334
- declare function newDistributor(args: NewDistributorArgs, accounts: NewDistributorAccounts, programId?: PublicKey): TransactionInstruction;
335
-
336
- interface NewClaimArgs {
337
- amountUnlocked: BN;
338
- amountLocked: BN;
339
- proof: Array<Array<number>>;
340
- }
341
- interface NewClaimAccounts {
342
- /** The [MerkleDistributor]. */
343
- distributor: PublicKey;
344
- /** Claim status PDA */
345
- claimStatus: PublicKey;
346
- /** Distributor ATA containing the tokens to distribute. */
347
- from: PublicKey;
348
- /** Account to send the claimed tokens to. */
349
- to: PublicKey;
350
- /** Who is claiming the tokens. */
351
- claimant: PublicKey;
352
- /** The mint to claim. */
353
- mint: PublicKey;
354
- /** SPL [Token] program. */
355
- tokenProgram: PublicKey;
356
- /** The [System] program. */
357
- systemProgram: PublicKey;
358
- eventAuthority: PublicKey;
359
- program: PublicKey;
360
- }
361
- declare function newClaim(args: NewClaimArgs, accounts: NewClaimAccounts, programId?: PublicKey): TransactionInstruction;
362
-
363
- interface ClaimLockedAccounts {
364
- /** The [MerkleDistributor]. */
365
- distributor: PublicKey;
366
- /** Claim Status PDA */
367
- claimStatus: PublicKey;
368
- /** Distributor ATA containing the tokens to distribute. */
369
- from: PublicKey;
370
- /**
371
- * Account to send the claimed tokens to.
372
- * Claimant must sign the transaction and can only claim on behalf of themself
373
- */
374
- to: PublicKey;
375
- /** Who is claiming the tokens. */
376
- claimant: PublicKey;
377
- /** The mint to claim. */
378
- mint: PublicKey;
379
- /** SPL [Token] program. */
380
- tokenProgram: PublicKey;
381
- eventAuthority: PublicKey;
382
- program: PublicKey;
383
- }
384
- declare function claimLocked(accounts: ClaimLockedAccounts, programId?: PublicKey): TransactionInstruction;
385
-
386
- interface ClawbackAccounts {
387
- /** The [MerkleDistributor]. */
388
- distributor: PublicKey;
389
- /** Distributor ATA containing the tokens to distribute. */
390
- from: PublicKey;
391
- /** The Clawback token account. */
392
- to: PublicKey;
393
- /** Only Admin can trigger the clawback of funds */
394
- admin: PublicKey;
395
- mint: PublicKey;
396
- /** The [System] program. */
397
- systemProgram: PublicKey;
398
- /** SPL [Token] program. */
399
- tokenProgram: PublicKey;
400
- }
401
- declare function clawback(accounts: ClawbackAccounts, programId?: PublicKey): TransactionInstruction;
402
-
403
- interface CloseClaimArgs {
404
- amountUnlocked?: BN;
405
- amountLocked?: BN;
406
- proof?: Array<Array<number>>;
407
- }
408
- interface CloseClaimAccounts {
409
- /** The [MerkleDistributor]. */
410
- distributor: PublicKey;
411
- /** Admin signer */
412
- adminOrClaimant: PublicKey;
413
- /** Optional payer for the account creation in case it doesn't exist */
414
- payer: PublicKey;
415
- claimant: PublicKey;
416
- /** Claim Status PDA */
417
- claimStatus: PublicKey;
418
- /** The [System] program. */
419
- systemProgram: PublicKey;
420
- eventAuthority: PublicKey;
421
- program: PublicKey;
422
- }
423
- declare function closeClaim(args: CloseClaimArgs, accounts: CloseClaimAccounts, programId?: PublicKey): TransactionInstruction;
424
-
425
- interface SetClawbackReceiverAccounts {
426
- /** The [MerkleDistributor]. */
427
- distributor: PublicKey;
428
- /** New clawback account */
429
- newClawbackAccount: PublicKey;
430
- /** Admin signer */
431
- admin: PublicKey;
432
- }
433
- declare function setClawbackReceiver(accounts: SetClawbackReceiverAccounts, programId?: PublicKey): TransactionInstruction;
434
-
435
- interface SetAdminAccounts {
436
- /** The [MerkleDistributor]. */
437
- distributor: PublicKey;
438
- /** Admin signer */
439
- admin: PublicKey;
440
- /** New admin account */
441
- newAdmin: PublicKey;
442
- }
443
- declare function setAdmin(accounts: SetAdminAccounts, programId?: PublicKey): TransactionInstruction;
444
-
445
- interface MerkleDistributorFields {
446
- /** Bump seed. */
447
- bump: number;
448
- /** Version of the airdrop */
449
- version: BN;
450
- /** The 256-bit merkle root. */
451
- root: Array<number>;
452
- /** [Mint] of the token to be distributed. */
453
- mint: PublicKey;
454
- /** Token Address of the vault */
455
- tokenVault: PublicKey;
456
- /** Maximum number of tokens that can ever be claimed from this [MerkleDistributor]. */
457
- maxTotalClaim: BN;
458
- /** Maximum number of nodes in [MerkleDistributor]. */
459
- maxNumNodes: BN;
460
- /** Time step (period) in seconds per which the unlock occurs */
461
- unlockPeriod: BN;
462
- /** Total amount of tokens that have been claimed. */
463
- totalAmountClaimed: BN;
464
- /** Number of nodes that have been claimed. */
465
- numNodesClaimed: BN;
466
- /** Lockup time start (Unix Timestamp) */
467
- startTs: BN;
468
- /** Lockup time end (Unix Timestamp) */
469
- endTs: BN;
470
- /** Clawback start (Unix Timestamp) */
471
- clawbackStartTs: BN;
472
- /** Clawback receiver */
473
- clawbackReceiver: PublicKey;
474
- /** Admin wallet */
475
- admin: PublicKey;
476
- /** Whether or not the distributor has been clawed back */
477
- clawedBack: boolean;
478
- /** Whether claims are closable by the admin or not */
479
- claimsClosableByAdmin: boolean;
480
- /** Whether admin can update vesting duration */
481
- canUpdateDuration: boolean;
482
- /** Total amount of funds unlocked (cliff/instant) */
483
- totalAmountUnlocked: BN;
484
- /** Total amount of funds locked (vested) */
485
- totalAmountLocked: BN;
486
- /** Timestamp when update was last called */
487
- lastDurationUpdateTs: BN;
488
- /** Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update */
489
- totalClaimablePreUpdate: BN;
490
- /** Timestamp when funds were clawed back */
491
- clawedBackTs: BN;
492
- /** Whether claims are closable by the claimant or not */
493
- claimsClosableByClaimant: boolean;
494
- /** Limit number of claims */
495
- claimsLimit: number;
496
- /** Buffer for additional fields */
497
- buffer2: Array<number>;
498
- /** Buffer for additional fields */
499
- buffer3: Array<number>;
500
- }
501
- interface MerkleDistributorJSON {
502
- /** Bump seed. */
503
- bump: number;
504
- /** Version of the airdrop */
505
- version: string;
506
- /** The 256-bit merkle root. */
507
- root: Array<number>;
508
- /** [Mint] of the token to be distributed. */
509
- mint: string;
510
- /** Token Address of the vault */
511
- tokenVault: string;
512
- /** Maximum number of tokens that can ever be claimed from this [MerkleDistributor]. */
513
- maxTotalClaim: string;
514
- /** Maximum number of nodes in [MerkleDistributor]. */
515
- maxNumNodes: string;
516
- /** Time step (period) in seconds per which the unlock occurs */
517
- unlockPeriod: string;
518
- /** Total amount of tokens that have been claimed. */
519
- totalAmountClaimed: string;
520
- /** Number of nodes that have been claimed. */
521
- numNodesClaimed: string;
522
- /** Lockup time start (Unix Timestamp) */
523
- startTs: string;
524
- /** Lockup time end (Unix Timestamp) */
525
- endTs: string;
526
- /** Clawback start (Unix Timestamp) */
527
- clawbackStartTs: string;
528
- /** Clawback receiver */
529
- clawbackReceiver: string;
530
- /** Admin wallet */
531
- admin: string;
532
- /** Whether or not the distributor has been clawed back */
533
- clawedBack: boolean;
534
- /** Whether claims are closable by the admin or not */
535
- claimsClosableByAdmin: boolean;
536
- /** Whether admin can update vesting duration */
537
- canUpdateDuration: boolean;
538
- /** Total amount of funds unlocked (cliff/instant) */
539
- totalAmountUnlocked: string;
540
- /** Total amount of funds locked (vested) */
541
- totalAmountLocked: string;
542
- /** Timestamp when update was last called */
543
- lastDurationUpdateTs: string;
544
- /** Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update */
545
- totalClaimablePreUpdate: string;
546
- /** Timestamp when funds were clawed back */
547
- clawedBackTs: string;
548
- /** Whether claims are closable by the claimant or not */
549
- claimsClosableByClaimant: boolean;
550
- /** Limit number of claims */
551
- claimsLimit: number;
552
- /** Buffer for additional fields */
553
- buffer2: Array<number>;
554
- /** Buffer for additional fields */
555
- buffer3: Array<number>;
556
- }
557
- /** State for the account which distributes tokens. */
558
- declare class MerkleDistributor {
559
- /** Bump seed. */
560
- readonly bump: number;
561
- /** Version of the airdrop */
562
- readonly version: BN;
563
- /** The 256-bit merkle root. */
564
- readonly root: Array<number>;
565
- /** [Mint] of the token to be distributed. */
566
- readonly mint: PublicKey;
567
- /** Token Address of the vault */
568
- readonly tokenVault: PublicKey;
569
- /** Maximum number of tokens that can ever be claimed from this [MerkleDistributor]. */
570
- readonly maxTotalClaim: BN;
571
- /** Maximum number of nodes in [MerkleDistributor]. */
572
- readonly maxNumNodes: BN;
573
- /** Time step (period) in seconds per which the unlock occurs */
574
- readonly unlockPeriod: BN;
575
- /** Total amount of tokens that have been claimed. */
576
- readonly totalAmountClaimed: BN;
577
- /** Number of nodes that have been claimed. */
578
- readonly numNodesClaimed: BN;
579
- /** Lockup time start (Unix Timestamp) */
580
- readonly startTs: BN;
581
- /** Lockup time end (Unix Timestamp) */
582
- readonly endTs: BN;
583
- /** Clawback start (Unix Timestamp) */
584
- readonly clawbackStartTs: BN;
585
- /** Clawback receiver */
586
- readonly clawbackReceiver: PublicKey;
587
- /** Admin wallet */
588
- readonly admin: PublicKey;
589
- /** Whether or not the distributor has been clawed back */
590
- readonly clawedBack: boolean;
591
- /** Whether claims are closable by the admin or not */
592
- readonly claimsClosableByAdmin: boolean;
593
- /** Whether admin can update vesting duration */
594
- readonly canUpdateDuration: boolean;
595
- /** Total amount of funds unlocked (cliff/instant) */
596
- readonly totalAmountUnlocked: BN;
597
- /** Total amount of funds locked (vested) */
598
- readonly totalAmountLocked: BN;
599
- /** Timestamp when update was last called */
600
- readonly lastDurationUpdateTs: BN;
601
- /** Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update */
602
- readonly totalClaimablePreUpdate: BN;
603
- /** Timestamp when funds were clawed back */
604
- readonly clawedBackTs: BN;
605
- /** Whether claims are closable by the claimant or not */
606
- readonly claimsClosableByClaimant: boolean;
607
- /** Limit number of claims */
608
- readonly claimsLimit: number;
609
- /** Buffer for additional fields */
610
- readonly buffer2: Array<number>;
611
- /** Buffer for additional fields */
612
- readonly buffer3: Array<number>;
613
- static readonly discriminator: Buffer;
614
- static readonly layout: any;
615
- constructor(fields: MerkleDistributorFields);
616
- static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<MerkleDistributor | null>;
617
- static fetchMultiple(c: Connection, addresses: PublicKey[], programId?: PublicKey): Promise<Array<MerkleDistributor | null>>;
618
- static decode(data: Buffer): MerkleDistributor;
619
- toJSON(): MerkleDistributorJSON;
620
- static fromJSON(obj: MerkleDistributorJSON): MerkleDistributor;
621
- }
622
-
623
302
  interface IInitOptions {
624
303
  clusterUrl: string;
625
304
  cluster?: ICluster;
@@ -633,6 +312,9 @@ interface IInitOptions {
633
312
  declare abstract class BaseDistributorClient {
634
313
  protected connection: Connection;
635
314
  protected programId: PublicKey;
315
+ protected partnerOracleProgramId: PublicKey;
316
+ protected partnerOracle: Program<PartnerOracle>;
317
+ protected feeConfigPublicKey: PublicKey;
636
318
  protected commitment: Commitment | ConnectionConfig;
637
319
  protected sendThrottler: PQueue;
638
320
  merkleDistributorProgram: Program<MerkleDistributor$1>;
@@ -676,8 +358,22 @@ declare abstract class BaseDistributorClient {
676
358
  getClaims(data: IGetClaimData[]): Promise<(AnyClaimStatus | null)[]>;
677
359
  getDistributors(data: IGetDistributors): Promise<(MerkleDistributor | null)[]>;
678
360
  searchDistributors(data: ISearchDistributors): Promise<IProgramAccount<MerkleDistributor>[]>;
361
+ /**
362
+ * Fetch Fee Config for the Airdrop protocol from Partner Oracle.
363
+ */
364
+ getFeeConfig(): Promise<FeeConfig>;
365
+ /**
366
+ * Get all defaults fees applied by the protocol.
367
+ */
368
+ getDefaultFees(): Promise<Fees>;
369
+ /**
370
+ * Get fees for a given wallet.
371
+ *
372
+ * @param pubkey partner to search fees for
373
+ */
374
+ getFees(pubkey: PublicKey): Promise<Fees | null>;
679
375
  protected prepareClaimFeeInstruction(payer: PublicKey, fee?: bigint): TransactionInstruction;
680
- protected getNewDistributorArgs(data: ICreateDistributorData): NewDistributorArgs;
376
+ protected validateDistributorArgs(data: ICreateDistributorData): void;
681
377
  protected unwrapExecutionParams<T extends IInteractExt>(extParams: T): ReturnType<typeof unwrapExecutionParams<T>>;
682
378
  private decodeClaimStatus;
683
379
  }
@@ -689,7 +385,7 @@ declare class SolanaDistributorClient extends BaseDistributorClient {
689
385
 
690
386
  declare class SolanaAlignedDistributorClient extends BaseDistributorClient {
691
387
  alignedProxyProgram: Program<AlignedDistributor>;
692
- constructor({ clusterUrl, cluster, commitment, programId, sendRate, sendThrottler, apiUrl, apiKey }: IInitOptions);
388
+ constructor({ clusterUrl, cluster, commitment, programId, sendRate, sendThrottler, apiUrl, apiKey, }: IInitOptions);
693
389
  getAlignedDistributorProgramId(): PublicKey;
694
390
  getAlignedDistributorAddress(distributorAddress: string): PublicKey;
695
391
  getAlignedDistributorData(distributorAddress: string): Promise<AlignedDistributorData>;
@@ -698,637 +394,6 @@ declare class SolanaAlignedDistributorClient extends BaseDistributorClient {
698
394
  protected getNewAlignedDistributorArgs(data: ICreateAlignedDistributorData): NewAlignedDistributorArgs;
699
395
  }
700
396
 
701
- type AnchorError = InstructionMissing | InstructionFallbackNotFound | InstructionDidNotDeserialize | InstructionDidNotSerialize | IdlInstructionStub | IdlInstructionInvalidProgram | ConstraintMut | ConstraintHasOne | ConstraintSigner | ConstraintRaw | ConstraintOwner | ConstraintRentExempt | ConstraintSeeds | ConstraintExecutable | ConstraintState | ConstraintAssociated | ConstraintAssociatedInit | ConstraintClose | ConstraintAddress | ConstraintZero | ConstraintTokenMint | ConstraintTokenOwner | ConstraintMintMintAuthority | ConstraintMintFreezeAuthority | ConstraintMintDecimals | ConstraintSpace | ConstraintAccountIsNone | RequireViolated | RequireEqViolated | RequireKeysEqViolated | RequireNeqViolated | RequireKeysNeqViolated | RequireGtViolated | RequireGteViolated | AccountDiscriminatorAlreadySet | AccountDiscriminatorNotFound | AccountDiscriminatorMismatch | AccountDidNotDeserialize | AccountDidNotSerialize | AccountNotEnoughKeys | AccountNotMutable | AccountOwnedByWrongProgram | InvalidProgramId | InvalidProgramExecutable | AccountNotSigner | AccountNotSystemOwned | AccountNotInitialized | AccountNotProgramData | AccountNotAssociatedTokenAccount | AccountSysvarMismatch | AccountReallocExceedsLimit | AccountDuplicateReallocs | DeclaredProgramIdMismatch | Deprecated;
702
- declare class InstructionMissing extends Error {
703
- readonly logs?: string[] | undefined;
704
- static readonly code = 100;
705
- readonly code = 100;
706
- readonly name = "InstructionMissing";
707
- readonly msg = "8 byte instruction identifier not provided";
708
- constructor(logs?: string[] | undefined);
709
- }
710
- declare class InstructionFallbackNotFound extends Error {
711
- readonly logs?: string[] | undefined;
712
- static readonly code = 101;
713
- readonly code = 101;
714
- readonly name = "InstructionFallbackNotFound";
715
- readonly msg = "Fallback functions are not supported";
716
- constructor(logs?: string[] | undefined);
717
- }
718
- declare class InstructionDidNotDeserialize extends Error {
719
- readonly logs?: string[] | undefined;
720
- static readonly code = 102;
721
- readonly code = 102;
722
- readonly name = "InstructionDidNotDeserialize";
723
- readonly msg = "The program could not deserialize the given instruction";
724
- constructor(logs?: string[] | undefined);
725
- }
726
- declare class InstructionDidNotSerialize extends Error {
727
- readonly logs?: string[] | undefined;
728
- static readonly code = 103;
729
- readonly code = 103;
730
- readonly name = "InstructionDidNotSerialize";
731
- readonly msg = "The program could not serialize the given instruction";
732
- constructor(logs?: string[] | undefined);
733
- }
734
- declare class IdlInstructionStub extends Error {
735
- readonly logs?: string[] | undefined;
736
- static readonly code = 1000;
737
- readonly code = 1000;
738
- readonly name = "IdlInstructionStub";
739
- readonly msg = "The program was compiled without idl instructions";
740
- constructor(logs?: string[] | undefined);
741
- }
742
- declare class IdlInstructionInvalidProgram extends Error {
743
- readonly logs?: string[] | undefined;
744
- static readonly code = 1001;
745
- readonly code = 1001;
746
- readonly name = "IdlInstructionInvalidProgram";
747
- readonly msg = "The transaction was given an invalid program for the IDL instruction";
748
- constructor(logs?: string[] | undefined);
749
- }
750
- declare class ConstraintMut extends Error {
751
- readonly logs?: string[] | undefined;
752
- static readonly code = 2000;
753
- readonly code = 2000;
754
- readonly name = "ConstraintMut";
755
- readonly msg = "A mut constraint was violated";
756
- constructor(logs?: string[] | undefined);
757
- }
758
- declare class ConstraintHasOne extends Error {
759
- readonly logs?: string[] | undefined;
760
- static readonly code = 2001;
761
- readonly code = 2001;
762
- readonly name = "ConstraintHasOne";
763
- readonly msg = "A has one constraint was violated";
764
- constructor(logs?: string[] | undefined);
765
- }
766
- declare class ConstraintSigner extends Error {
767
- readonly logs?: string[] | undefined;
768
- static readonly code = 2002;
769
- readonly code = 2002;
770
- readonly name = "ConstraintSigner";
771
- readonly msg = "A signer constraint was violated";
772
- constructor(logs?: string[] | undefined);
773
- }
774
- declare class ConstraintRaw extends Error {
775
- readonly logs?: string[] | undefined;
776
- static readonly code = 2003;
777
- readonly code = 2003;
778
- readonly name = "ConstraintRaw";
779
- readonly msg = "A raw constraint was violated";
780
- constructor(logs?: string[] | undefined);
781
- }
782
- declare class ConstraintOwner extends Error {
783
- readonly logs?: string[] | undefined;
784
- static readonly code = 2004;
785
- readonly code = 2004;
786
- readonly name = "ConstraintOwner";
787
- readonly msg = "An owner constraint was violated";
788
- constructor(logs?: string[] | undefined);
789
- }
790
- declare class ConstraintRentExempt extends Error {
791
- readonly logs?: string[] | undefined;
792
- static readonly code = 2005;
793
- readonly code = 2005;
794
- readonly name = "ConstraintRentExempt";
795
- readonly msg = "A rent exemption constraint was violated";
796
- constructor(logs?: string[] | undefined);
797
- }
798
- declare class ConstraintSeeds extends Error {
799
- readonly logs?: string[] | undefined;
800
- static readonly code = 2006;
801
- readonly code = 2006;
802
- readonly name = "ConstraintSeeds";
803
- readonly msg = "A seeds constraint was violated";
804
- constructor(logs?: string[] | undefined);
805
- }
806
- declare class ConstraintExecutable extends Error {
807
- readonly logs?: string[] | undefined;
808
- static readonly code = 2007;
809
- readonly code = 2007;
810
- readonly name = "ConstraintExecutable";
811
- readonly msg = "An executable constraint was violated";
812
- constructor(logs?: string[] | undefined);
813
- }
814
- declare class ConstraintState extends Error {
815
- readonly logs?: string[] | undefined;
816
- static readonly code = 2008;
817
- readonly code = 2008;
818
- readonly name = "ConstraintState";
819
- readonly msg = "Deprecated Error, feel free to replace with something else";
820
- constructor(logs?: string[] | undefined);
821
- }
822
- declare class ConstraintAssociated extends Error {
823
- readonly logs?: string[] | undefined;
824
- static readonly code = 2009;
825
- readonly code = 2009;
826
- readonly name = "ConstraintAssociated";
827
- readonly msg = "An associated constraint was violated";
828
- constructor(logs?: string[] | undefined);
829
- }
830
- declare class ConstraintAssociatedInit extends Error {
831
- readonly logs?: string[] | undefined;
832
- static readonly code = 2010;
833
- readonly code = 2010;
834
- readonly name = "ConstraintAssociatedInit";
835
- readonly msg = "An associated init constraint was violated";
836
- constructor(logs?: string[] | undefined);
837
- }
838
- declare class ConstraintClose extends Error {
839
- readonly logs?: string[] | undefined;
840
- static readonly code = 2011;
841
- readonly code = 2011;
842
- readonly name = "ConstraintClose";
843
- readonly msg = "A close constraint was violated";
844
- constructor(logs?: string[] | undefined);
845
- }
846
- declare class ConstraintAddress extends Error {
847
- readonly logs?: string[] | undefined;
848
- static readonly code = 2012;
849
- readonly code = 2012;
850
- readonly name = "ConstraintAddress";
851
- readonly msg = "An address constraint was violated";
852
- constructor(logs?: string[] | undefined);
853
- }
854
- declare class ConstraintZero extends Error {
855
- readonly logs?: string[] | undefined;
856
- static readonly code = 2013;
857
- readonly code = 2013;
858
- readonly name = "ConstraintZero";
859
- readonly msg = "Expected zero account discriminant";
860
- constructor(logs?: string[] | undefined);
861
- }
862
- declare class ConstraintTokenMint extends Error {
863
- readonly logs?: string[] | undefined;
864
- static readonly code = 2014;
865
- readonly code = 2014;
866
- readonly name = "ConstraintTokenMint";
867
- readonly msg = "A token mint constraint was violated";
868
- constructor(logs?: string[] | undefined);
869
- }
870
- declare class ConstraintTokenOwner extends Error {
871
- readonly logs?: string[] | undefined;
872
- static readonly code = 2015;
873
- readonly code = 2015;
874
- readonly name = "ConstraintTokenOwner";
875
- readonly msg = "A token owner constraint was violated";
876
- constructor(logs?: string[] | undefined);
877
- }
878
- declare class ConstraintMintMintAuthority extends Error {
879
- readonly logs?: string[] | undefined;
880
- static readonly code = 2016;
881
- readonly code = 2016;
882
- readonly name = "ConstraintMintMintAuthority";
883
- readonly msg = "A mint mint authority constraint was violated";
884
- constructor(logs?: string[] | undefined);
885
- }
886
- declare class ConstraintMintFreezeAuthority extends Error {
887
- readonly logs?: string[] | undefined;
888
- static readonly code = 2017;
889
- readonly code = 2017;
890
- readonly name = "ConstraintMintFreezeAuthority";
891
- readonly msg = "A mint freeze authority constraint was violated";
892
- constructor(logs?: string[] | undefined);
893
- }
894
- declare class ConstraintMintDecimals extends Error {
895
- readonly logs?: string[] | undefined;
896
- static readonly code = 2018;
897
- readonly code = 2018;
898
- readonly name = "ConstraintMintDecimals";
899
- readonly msg = "A mint decimals constraint was violated";
900
- constructor(logs?: string[] | undefined);
901
- }
902
- declare class ConstraintSpace extends Error {
903
- readonly logs?: string[] | undefined;
904
- static readonly code = 2019;
905
- readonly code = 2019;
906
- readonly name = "ConstraintSpace";
907
- readonly msg = "A space constraint was violated";
908
- constructor(logs?: string[] | undefined);
909
- }
910
- declare class ConstraintAccountIsNone extends Error {
911
- readonly logs?: string[] | undefined;
912
- static readonly code = 2020;
913
- readonly code = 2020;
914
- readonly name = "ConstraintAccountIsNone";
915
- readonly msg = "A required account for the constraint is None";
916
- constructor(logs?: string[] | undefined);
917
- }
918
- declare class RequireViolated extends Error {
919
- readonly logs?: string[] | undefined;
920
- static readonly code = 2500;
921
- readonly code = 2500;
922
- readonly name = "RequireViolated";
923
- readonly msg = "A require expression was violated";
924
- constructor(logs?: string[] | undefined);
925
- }
926
- declare class RequireEqViolated extends Error {
927
- readonly logs?: string[] | undefined;
928
- static readonly code = 2501;
929
- readonly code = 2501;
930
- readonly name = "RequireEqViolated";
931
- readonly msg = "A require_eq expression was violated";
932
- constructor(logs?: string[] | undefined);
933
- }
934
- declare class RequireKeysEqViolated extends Error {
935
- readonly logs?: string[] | undefined;
936
- static readonly code = 2502;
937
- readonly code = 2502;
938
- readonly name = "RequireKeysEqViolated";
939
- readonly msg = "A require_keys_eq expression was violated";
940
- constructor(logs?: string[] | undefined);
941
- }
942
- declare class RequireNeqViolated extends Error {
943
- readonly logs?: string[] | undefined;
944
- static readonly code = 2503;
945
- readonly code = 2503;
946
- readonly name = "RequireNeqViolated";
947
- readonly msg = "A require_neq expression was violated";
948
- constructor(logs?: string[] | undefined);
949
- }
950
- declare class RequireKeysNeqViolated extends Error {
951
- readonly logs?: string[] | undefined;
952
- static readonly code = 2504;
953
- readonly code = 2504;
954
- readonly name = "RequireKeysNeqViolated";
955
- readonly msg = "A require_keys_neq expression was violated";
956
- constructor(logs?: string[] | undefined);
957
- }
958
- declare class RequireGtViolated extends Error {
959
- readonly logs?: string[] | undefined;
960
- static readonly code = 2505;
961
- readonly code = 2505;
962
- readonly name = "RequireGtViolated";
963
- readonly msg = "A require_gt expression was violated";
964
- constructor(logs?: string[] | undefined);
965
- }
966
- declare class RequireGteViolated extends Error {
967
- readonly logs?: string[] | undefined;
968
- static readonly code = 2506;
969
- readonly code = 2506;
970
- readonly name = "RequireGteViolated";
971
- readonly msg = "A require_gte expression was violated";
972
- constructor(logs?: string[] | undefined);
973
- }
974
- declare class AccountDiscriminatorAlreadySet extends Error {
975
- readonly logs?: string[] | undefined;
976
- static readonly code = 3000;
977
- readonly code = 3000;
978
- readonly name = "AccountDiscriminatorAlreadySet";
979
- readonly msg = "The account discriminator was already set on this account";
980
- constructor(logs?: string[] | undefined);
981
- }
982
- declare class AccountDiscriminatorNotFound extends Error {
983
- readonly logs?: string[] | undefined;
984
- static readonly code = 3001;
985
- readonly code = 3001;
986
- readonly name = "AccountDiscriminatorNotFound";
987
- readonly msg = "No 8 byte discriminator was found on the account";
988
- constructor(logs?: string[] | undefined);
989
- }
990
- declare class AccountDiscriminatorMismatch extends Error {
991
- readonly logs?: string[] | undefined;
992
- static readonly code = 3002;
993
- readonly code = 3002;
994
- readonly name = "AccountDiscriminatorMismatch";
995
- readonly msg = "8 byte discriminator did not match what was expected";
996
- constructor(logs?: string[] | undefined);
997
- }
998
- declare class AccountDidNotDeserialize extends Error {
999
- readonly logs?: string[] | undefined;
1000
- static readonly code = 3003;
1001
- readonly code = 3003;
1002
- readonly name = "AccountDidNotDeserialize";
1003
- readonly msg = "Failed to deserialize the account";
1004
- constructor(logs?: string[] | undefined);
1005
- }
1006
- declare class AccountDidNotSerialize extends Error {
1007
- readonly logs?: string[] | undefined;
1008
- static readonly code = 3004;
1009
- readonly code = 3004;
1010
- readonly name = "AccountDidNotSerialize";
1011
- readonly msg = "Failed to serialize the account";
1012
- constructor(logs?: string[] | undefined);
1013
- }
1014
- declare class AccountNotEnoughKeys extends Error {
1015
- readonly logs?: string[] | undefined;
1016
- static readonly code = 3005;
1017
- readonly code = 3005;
1018
- readonly name = "AccountNotEnoughKeys";
1019
- readonly msg = "Not enough account keys given to the instruction";
1020
- constructor(logs?: string[] | undefined);
1021
- }
1022
- declare class AccountNotMutable extends Error {
1023
- readonly logs?: string[] | undefined;
1024
- static readonly code = 3006;
1025
- readonly code = 3006;
1026
- readonly name = "AccountNotMutable";
1027
- readonly msg = "The given account is not mutable";
1028
- constructor(logs?: string[] | undefined);
1029
- }
1030
- declare class AccountOwnedByWrongProgram extends Error {
1031
- readonly logs?: string[] | undefined;
1032
- static readonly code = 3007;
1033
- readonly code = 3007;
1034
- readonly name = "AccountOwnedByWrongProgram";
1035
- readonly msg = "The given account is owned by a different program than expected";
1036
- constructor(logs?: string[] | undefined);
1037
- }
1038
- declare class InvalidProgramId extends Error {
1039
- readonly logs?: string[] | undefined;
1040
- static readonly code = 3008;
1041
- readonly code = 3008;
1042
- readonly name = "InvalidProgramId";
1043
- readonly msg = "Program ID was not as expected";
1044
- constructor(logs?: string[] | undefined);
1045
- }
1046
- declare class InvalidProgramExecutable extends Error {
1047
- readonly logs?: string[] | undefined;
1048
- static readonly code = 3009;
1049
- readonly code = 3009;
1050
- readonly name = "InvalidProgramExecutable";
1051
- readonly msg = "Program account is not executable";
1052
- constructor(logs?: string[] | undefined);
1053
- }
1054
- declare class AccountNotSigner extends Error {
1055
- readonly logs?: string[] | undefined;
1056
- static readonly code = 3010;
1057
- readonly code = 3010;
1058
- readonly name = "AccountNotSigner";
1059
- readonly msg = "The given account did not sign";
1060
- constructor(logs?: string[] | undefined);
1061
- }
1062
- declare class AccountNotSystemOwned extends Error {
1063
- readonly logs?: string[] | undefined;
1064
- static readonly code = 3011;
1065
- readonly code = 3011;
1066
- readonly name = "AccountNotSystemOwned";
1067
- readonly msg = "The given account is not owned by the system program";
1068
- constructor(logs?: string[] | undefined);
1069
- }
1070
- declare class AccountNotInitialized extends Error {
1071
- readonly logs?: string[] | undefined;
1072
- static readonly code = 3012;
1073
- readonly code = 3012;
1074
- readonly name = "AccountNotInitialized";
1075
- readonly msg = "The program expected this account to be already initialized";
1076
- constructor(logs?: string[] | undefined);
1077
- }
1078
- declare class AccountNotProgramData extends Error {
1079
- readonly logs?: string[] | undefined;
1080
- static readonly code = 3013;
1081
- readonly code = 3013;
1082
- readonly name = "AccountNotProgramData";
1083
- readonly msg = "The given account is not a program data account";
1084
- constructor(logs?: string[] | undefined);
1085
- }
1086
- declare class AccountNotAssociatedTokenAccount extends Error {
1087
- readonly logs?: string[] | undefined;
1088
- static readonly code = 3014;
1089
- readonly code = 3014;
1090
- readonly name = "AccountNotAssociatedTokenAccount";
1091
- readonly msg = "The given account is not the associated token account";
1092
- constructor(logs?: string[] | undefined);
1093
- }
1094
- declare class AccountSysvarMismatch extends Error {
1095
- readonly logs?: string[] | undefined;
1096
- static readonly code = 3015;
1097
- readonly code = 3015;
1098
- readonly name = "AccountSysvarMismatch";
1099
- readonly msg = "The given public key does not match the required sysvar";
1100
- constructor(logs?: string[] | undefined);
1101
- }
1102
- declare class AccountReallocExceedsLimit extends Error {
1103
- readonly logs?: string[] | undefined;
1104
- static readonly code = 3016;
1105
- readonly code = 3016;
1106
- readonly name = "AccountReallocExceedsLimit";
1107
- readonly msg = "The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit";
1108
- constructor(logs?: string[] | undefined);
1109
- }
1110
- declare class AccountDuplicateReallocs extends Error {
1111
- readonly logs?: string[] | undefined;
1112
- static readonly code = 3017;
1113
- readonly code = 3017;
1114
- readonly name = "AccountDuplicateReallocs";
1115
- readonly msg = "The account was duplicated for more than one reallocation";
1116
- constructor(logs?: string[] | undefined);
1117
- }
1118
- declare class DeclaredProgramIdMismatch extends Error {
1119
- readonly logs?: string[] | undefined;
1120
- static readonly code = 4100;
1121
- readonly code = 4100;
1122
- readonly name = "DeclaredProgramIdMismatch";
1123
- readonly msg = "The declared program id does not match the actual program id";
1124
- constructor(logs?: string[] | undefined);
1125
- }
1126
- declare class Deprecated extends Error {
1127
- readonly logs?: string[] | undefined;
1128
- static readonly code = 5000;
1129
- readonly code = 5000;
1130
- readonly name = "Deprecated";
1131
- readonly msg = "The API being used is deprecated and should no longer be used";
1132
- constructor(logs?: string[] | undefined);
1133
- }
1134
-
1135
- type CustomError = InsufficientUnlockedTokens | InvalidProof | ExceededMaxClaim | MaxNodesExceeded | Unauthorized | OwnerMismatch | ClawbackBeforeStart | ClawbackAlreadyClaimed | SameClawbackReceiver | ClawbackReceiverIsTokenVault | SameAdmin | ClaimExpired | ArithmeticError | StartTimestampAfterEnd | TimestampsNotInFuture | InvalidMint | ClaimIsClosed | ClaimsAreNotClosable | InvalidUnlockPeriod | DurationUpdateNotAllowed | NoVestingAmount | VestingAlreadyFinished | InvalidAmounts | ClaimsLimitReached;
1136
- declare class InsufficientUnlockedTokens extends Error {
1137
- readonly logs?: string[] | undefined;
1138
- static readonly code = 6000;
1139
- readonly code = 6000;
1140
- readonly name = "InsufficientUnlockedTokens";
1141
- readonly msg = "Insufficient unlocked tokens";
1142
- constructor(logs?: string[] | undefined);
1143
- }
1144
- declare class InvalidProof extends Error {
1145
- readonly logs?: string[] | undefined;
1146
- static readonly code = 6001;
1147
- readonly code = 6001;
1148
- readonly name = "InvalidProof";
1149
- readonly msg = "Invalid Merkle proof";
1150
- constructor(logs?: string[] | undefined);
1151
- }
1152
- declare class ExceededMaxClaim extends Error {
1153
- readonly logs?: string[] | undefined;
1154
- static readonly code = 6002;
1155
- readonly code = 6002;
1156
- readonly name = "ExceededMaxClaim";
1157
- readonly msg = "Exceeded maximum claim amount";
1158
- constructor(logs?: string[] | undefined);
1159
- }
1160
- declare class MaxNodesExceeded extends Error {
1161
- readonly logs?: string[] | undefined;
1162
- static readonly code = 6003;
1163
- readonly code = 6003;
1164
- readonly name = "MaxNodesExceeded";
1165
- readonly msg = "Exceeded maximum node count";
1166
- constructor(logs?: string[] | undefined);
1167
- }
1168
- declare class Unauthorized extends Error {
1169
- readonly logs?: string[] | undefined;
1170
- static readonly code = 6004;
1171
- readonly code = 6004;
1172
- readonly name = "Unauthorized";
1173
- readonly msg = "Account is not authorized to execute this instruction";
1174
- constructor(logs?: string[] | undefined);
1175
- }
1176
- declare class OwnerMismatch extends Error {
1177
- readonly logs?: string[] | undefined;
1178
- static readonly code = 6005;
1179
- readonly code = 6005;
1180
- readonly name = "OwnerMismatch";
1181
- readonly msg = "Token account owner did not match intended owner";
1182
- constructor(logs?: string[] | undefined);
1183
- }
1184
- declare class ClawbackBeforeStart extends Error {
1185
- readonly logs?: string[] | undefined;
1186
- static readonly code = 6006;
1187
- readonly code = 6006;
1188
- readonly name = "ClawbackBeforeStart";
1189
- readonly msg = "Attempted clawback before start";
1190
- constructor(logs?: string[] | undefined);
1191
- }
1192
- declare class ClawbackAlreadyClaimed extends Error {
1193
- readonly logs?: string[] | undefined;
1194
- static readonly code = 6007;
1195
- readonly code = 6007;
1196
- readonly name = "ClawbackAlreadyClaimed";
1197
- readonly msg = "Clawback already claimed";
1198
- constructor(logs?: string[] | undefined);
1199
- }
1200
- declare class SameClawbackReceiver extends Error {
1201
- readonly logs?: string[] | undefined;
1202
- static readonly code = 6008;
1203
- readonly code = 6008;
1204
- readonly name = "SameClawbackReceiver";
1205
- readonly msg = "New and old Clawback receivers are identical";
1206
- constructor(logs?: string[] | undefined);
1207
- }
1208
- declare class ClawbackReceiverIsTokenVault extends Error {
1209
- readonly logs?: string[] | undefined;
1210
- static readonly code = 6009;
1211
- readonly code = 6009;
1212
- readonly name = "ClawbackReceiverIsTokenVault";
1213
- readonly msg = "Clawback receiver can not be the Token Vault";
1214
- constructor(logs?: string[] | undefined);
1215
- }
1216
- declare class SameAdmin extends Error {
1217
- readonly logs?: string[] | undefined;
1218
- static readonly code = 6010;
1219
- readonly code = 6010;
1220
- readonly name = "SameAdmin";
1221
- readonly msg = "New and old admin are identical";
1222
- constructor(logs?: string[] | undefined);
1223
- }
1224
- declare class ClaimExpired extends Error {
1225
- readonly logs?: string[] | undefined;
1226
- static readonly code = 6011;
1227
- readonly code = 6011;
1228
- readonly name = "ClaimExpired";
1229
- readonly msg = "Claim window expired";
1230
- constructor(logs?: string[] | undefined);
1231
- }
1232
- declare class ArithmeticError extends Error {
1233
- readonly logs?: string[] | undefined;
1234
- static readonly code = 6012;
1235
- readonly code = 6012;
1236
- readonly name = "ArithmeticError";
1237
- readonly msg = "Arithmetic Error (overflow/underflow)";
1238
- constructor(logs?: string[] | undefined);
1239
- }
1240
- declare class StartTimestampAfterEnd extends Error {
1241
- readonly logs?: string[] | undefined;
1242
- static readonly code = 6013;
1243
- readonly code = 6013;
1244
- readonly name = "StartTimestampAfterEnd";
1245
- readonly msg = "Start Timestamp cannot be after end Timestamp";
1246
- constructor(logs?: string[] | undefined);
1247
- }
1248
- declare class TimestampsNotInFuture extends Error {
1249
- readonly logs?: string[] | undefined;
1250
- static readonly code = 6014;
1251
- readonly code = 6014;
1252
- readonly name = "TimestampsNotInFuture";
1253
- readonly msg = "Timestamps cannot be in the past";
1254
- constructor(logs?: string[] | undefined);
1255
- }
1256
- declare class InvalidMint extends Error {
1257
- readonly logs?: string[] | undefined;
1258
- static readonly code = 6015;
1259
- readonly code = 6015;
1260
- readonly name = "InvalidMint";
1261
- readonly msg = "Invalid Mint";
1262
- constructor(logs?: string[] | undefined);
1263
- }
1264
- declare class ClaimIsClosed extends Error {
1265
- readonly logs?: string[] | undefined;
1266
- static readonly code = 6016;
1267
- readonly code = 6016;
1268
- readonly name = "ClaimIsClosed";
1269
- readonly msg = "Claim is closed";
1270
- constructor(logs?: string[] | undefined);
1271
- }
1272
- declare class ClaimsAreNotClosable extends Error {
1273
- readonly logs?: string[] | undefined;
1274
- static readonly code = 6017;
1275
- readonly code = 6017;
1276
- readonly name = "ClaimsAreNotClosable";
1277
- readonly msg = "Claims are not closable";
1278
- constructor(logs?: string[] | undefined);
1279
- }
1280
- declare class InvalidUnlockPeriod extends Error {
1281
- readonly logs?: string[] | undefined;
1282
- static readonly code = 6018;
1283
- readonly code = 6018;
1284
- readonly name = "InvalidUnlockPeriod";
1285
- readonly msg = "Invalid unlock period";
1286
- constructor(logs?: string[] | undefined);
1287
- }
1288
- declare class DurationUpdateNotAllowed extends Error {
1289
- readonly logs?: string[] | undefined;
1290
- static readonly code = 6019;
1291
- readonly code = 6019;
1292
- readonly name = "DurationUpdateNotAllowed";
1293
- readonly msg = "Duration update is not allowed";
1294
- constructor(logs?: string[] | undefined);
1295
- }
1296
- declare class NoVestingAmount extends Error {
1297
- readonly logs?: string[] | undefined;
1298
- static readonly code = 6020;
1299
- readonly code = 6020;
1300
- readonly name = "NoVestingAmount";
1301
- readonly msg = "Vesting amounts are not set";
1302
- constructor(logs?: string[] | undefined);
1303
- }
1304
- declare class VestingAlreadyFinished extends Error {
1305
- readonly logs?: string[] | undefined;
1306
- static readonly code = 6021;
1307
- readonly code = 6021;
1308
- readonly name = "VestingAlreadyFinished";
1309
- readonly msg = "Vesting already finished";
1310
- constructor(logs?: string[] | undefined);
1311
- }
1312
- declare class InvalidAmounts extends Error {
1313
- readonly logs?: string[] | undefined;
1314
- static readonly code = 6022;
1315
- readonly code = 6022;
1316
- readonly name = "InvalidAmounts";
1317
- readonly msg = "Provided amounts are invalid";
1318
- constructor(logs?: string[] | undefined);
1319
- }
1320
- declare class ClaimsLimitReached extends Error {
1321
- readonly logs?: string[] | undefined;
1322
- static readonly code = 6023;
1323
- readonly code = 6023;
1324
- readonly name = "ClaimsLimitReached";
1325
- readonly msg = "Claims limit has been reached";
1326
- constructor(logs?: string[] | undefined);
1327
- }
1328
-
1329
- declare function fromCode(code: number, logs?: string[]): CustomError | AnchorError | null;
1330
- declare function fromTxError(err: unknown, programId?: PublicKey): CustomError | AnchorError | null;
1331
-
1332
397
  declare const getAlignedDistributorPda: (programId: PublicKey, distributor: PublicKey) => PublicKey;
1333
398
  declare const getTestOraclePda: (programId: PublicKey, mint: PublicKey, creator: PublicKey) => PublicKey;
1334
399
  declare function getDistributorPda(programId: PublicKey, mint: PublicKey, version: number): PublicKey;
@@ -1341,6 +406,8 @@ declare function calculateAmountWithTransferFees(connection: Connection, transfe
1341
406
  feeCharged: bigint;
1342
407
  }>;
1343
408
 
409
+ declare const MERKLE_DISTRIBUTOR_ERRORS: Map<number, string>;
410
+ declare const ALIGNED_DISTRIBUTOR_ERRORS: Map<number, string>;
1344
411
  declare const ANCHOR_DISCRIMINATOR_OFFSET = 8;
1345
412
  declare const DISTRIBUTOR_MINT_OFFSET: number;
1346
413
  declare const DISTRIBUTOR_ADMIN_OFFSET: number;
@@ -1352,6 +419,7 @@ declare const ALIGNED_PRECISION_FACTOR_POW = 9;
1352
419
  declare const AIRDROP_CLAIM_FEE: bigint;
1353
420
  declare const STREAMFLOW_TREASURY_PUBLIC_KEY: PublicKey;
1354
421
  declare const ONE_IN_BASIS_POINTS: bigint;
422
+ declare const SOL_FEE_PROGRAM_VERSION = 1;
1355
423
  declare const ALIGNED_DISTRIBUTOR_PROGRAM_ID: {
1356
424
  devnet: string;
1357
425
  mainnet: string;
@@ -1364,8 +432,21 @@ declare const DISTRIBUTOR_PROGRAM_ID: {
1364
432
  testnet: string;
1365
433
  local: string;
1366
434
  };
435
+ declare const PARTNER_ORACLE_PROGRAM_ID: {
436
+ devnet: string;
437
+ mainnet: string;
438
+ testnet: string;
439
+ local: string;
440
+ };
441
+ declare const FEE_CONFIG_PUBLIC_KEY: {
442
+ devnet: string;
443
+ mainnet: string;
444
+ testnet: string;
445
+ local: string;
446
+ };
1367
447
 
1368
448
  declare const constants_AIRDROP_CLAIM_FEE: typeof AIRDROP_CLAIM_FEE;
449
+ declare const constants_ALIGNED_DISTRIBUTOR_ERRORS: typeof ALIGNED_DISTRIBUTOR_ERRORS;
1369
450
  declare const constants_ALIGNED_DISTRIBUTOR_PREFIX: typeof ALIGNED_DISTRIBUTOR_PREFIX;
1370
451
  declare const constants_ALIGNED_DISTRIBUTOR_PROGRAM_ID: typeof ALIGNED_DISTRIBUTOR_PROGRAM_ID;
1371
452
  declare const constants_ALIGNED_PRECISION_FACTOR_POW: typeof ALIGNED_PRECISION_FACTOR_POW;
@@ -1375,11 +456,15 @@ declare const constants_DISTRIBUTOR_ADMIN_OFFSET: typeof DISTRIBUTOR_ADMIN_OFFSE
1375
456
  declare const constants_DISTRIBUTOR_MINT_OFFSET: typeof DISTRIBUTOR_MINT_OFFSET;
1376
457
  declare const constants_DISTRIBUTOR_PREFIX: typeof DISTRIBUTOR_PREFIX;
1377
458
  declare const constants_DISTRIBUTOR_PROGRAM_ID: typeof DISTRIBUTOR_PROGRAM_ID;
459
+ declare const constants_FEE_CONFIG_PUBLIC_KEY: typeof FEE_CONFIG_PUBLIC_KEY;
460
+ declare const constants_MERKLE_DISTRIBUTOR_ERRORS: typeof MERKLE_DISTRIBUTOR_ERRORS;
1378
461
  declare const constants_ONE_IN_BASIS_POINTS: typeof ONE_IN_BASIS_POINTS;
462
+ declare const constants_PARTNER_ORACLE_PROGRAM_ID: typeof PARTNER_ORACLE_PROGRAM_ID;
463
+ declare const constants_SOL_FEE_PROGRAM_VERSION: typeof SOL_FEE_PROGRAM_VERSION;
1379
464
  declare const constants_STREAMFLOW_TREASURY_PUBLIC_KEY: typeof STREAMFLOW_TREASURY_PUBLIC_KEY;
1380
465
  declare const constants_TEST_ORACLE_PREFIX: typeof TEST_ORACLE_PREFIX;
1381
466
  declare namespace constants {
1382
- export { constants_AIRDROP_CLAIM_FEE as AIRDROP_CLAIM_FEE, constants_ALIGNED_DISTRIBUTOR_PREFIX as ALIGNED_DISTRIBUTOR_PREFIX, constants_ALIGNED_DISTRIBUTOR_PROGRAM_ID as ALIGNED_DISTRIBUTOR_PROGRAM_ID, constants_ALIGNED_PRECISION_FACTOR_POW as ALIGNED_PRECISION_FACTOR_POW, constants_ANCHOR_DISCRIMINATOR_OFFSET as ANCHOR_DISCRIMINATOR_OFFSET, constants_CLAIM_STATUS_PREFIX as CLAIM_STATUS_PREFIX, constants_DISTRIBUTOR_ADMIN_OFFSET as DISTRIBUTOR_ADMIN_OFFSET, constants_DISTRIBUTOR_MINT_OFFSET as DISTRIBUTOR_MINT_OFFSET, constants_DISTRIBUTOR_PREFIX as DISTRIBUTOR_PREFIX, constants_DISTRIBUTOR_PROGRAM_ID as DISTRIBUTOR_PROGRAM_ID, constants_ONE_IN_BASIS_POINTS as ONE_IN_BASIS_POINTS, constants_STREAMFLOW_TREASURY_PUBLIC_KEY as STREAMFLOW_TREASURY_PUBLIC_KEY, constants_TEST_ORACLE_PREFIX as TEST_ORACLE_PREFIX };
467
+ export { constants_AIRDROP_CLAIM_FEE as AIRDROP_CLAIM_FEE, constants_ALIGNED_DISTRIBUTOR_ERRORS as ALIGNED_DISTRIBUTOR_ERRORS, constants_ALIGNED_DISTRIBUTOR_PREFIX as ALIGNED_DISTRIBUTOR_PREFIX, constants_ALIGNED_DISTRIBUTOR_PROGRAM_ID as ALIGNED_DISTRIBUTOR_PROGRAM_ID, constants_ALIGNED_PRECISION_FACTOR_POW as ALIGNED_PRECISION_FACTOR_POW, constants_ANCHOR_DISCRIMINATOR_OFFSET as ANCHOR_DISCRIMINATOR_OFFSET, constants_CLAIM_STATUS_PREFIX as CLAIM_STATUS_PREFIX, constants_DISTRIBUTOR_ADMIN_OFFSET as DISTRIBUTOR_ADMIN_OFFSET, constants_DISTRIBUTOR_MINT_OFFSET as DISTRIBUTOR_MINT_OFFSET, constants_DISTRIBUTOR_PREFIX as DISTRIBUTOR_PREFIX, constants_DISTRIBUTOR_PROGRAM_ID as DISTRIBUTOR_PROGRAM_ID, constants_FEE_CONFIG_PUBLIC_KEY as FEE_CONFIG_PUBLIC_KEY, constants_MERKLE_DISTRIBUTOR_ERRORS as MERKLE_DISTRIBUTOR_ERRORS, constants_ONE_IN_BASIS_POINTS as ONE_IN_BASIS_POINTS, constants_PARTNER_ORACLE_PROGRAM_ID as PARTNER_ORACLE_PROGRAM_ID, constants_SOL_FEE_PROGRAM_VERSION as SOL_FEE_PROGRAM_VERSION, constants_STREAMFLOW_TREASURY_PUBLIC_KEY as STREAMFLOW_TREASURY_PUBLIC_KEY, constants_TEST_ORACLE_PREFIX as TEST_ORACLE_PREFIX };
1383
468
  }
1384
469
 
1385
470
  type AirdropFeeResponse = {
@@ -1468,14 +553,18 @@ type index_AnchorErrorCode = AnchorErrorCode;
1468
553
  declare const index_AnchorErrorCode: typeof AnchorErrorCode;
1469
554
  type index_AnyClaimStatus = AnyClaimStatus;
1470
555
  type index_ClaimLockedAccounts = ClaimLockedAccounts;
556
+ type index_ClaimLockedV2Accounts = ClaimLockedV2Accounts;
1471
557
  type index_ClaimStatus = ClaimStatus;
1472
558
  type index_ClawbackAccounts = ClawbackAccounts;
1473
559
  type index_CloseClaimAccounts = CloseClaimAccounts;
560
+ type index_CloseClaimArgs = CloseClaimArgs;
1474
561
  type index_CompressedClaimStatus = CompressedClaimStatus;
1475
562
  type index_ContractErrorCode = ContractErrorCode;
1476
563
  declare const index_ContractErrorCode: typeof ContractErrorCode;
1477
564
  declare const index_FEE_ALLOCATION_FACTOR_FALLBACK_DENOMINATOR: typeof FEE_ALLOCATION_FACTOR_FALLBACK_DENOMINATOR;
1478
565
  declare const index_FEE_ALLOCATION_FACTOR_FALLBACK_NUMERATOR: typeof FEE_ALLOCATION_FACTOR_FALLBACK_NUMERATOR;
566
+ type index_FeeConfig = FeeConfig;
567
+ type index_Fees = Fees;
1479
568
  type index_IClaimData = IClaimData;
1480
569
  type index_IClawbackData = IClawbackData;
1481
570
  type index_ICloseClaimData = ICloseClaimData;
@@ -1492,10 +581,9 @@ type index_ISetDataAdmin = ISetDataAdmin;
1492
581
  declare const index_MAXIMUM_FEE_FALLBACK: typeof MAXIMUM_FEE_FALLBACK;
1493
582
  declare const index_MINIMUM_FEE_FALLBACK: typeof MINIMUM_FEE_FALLBACK;
1494
583
  type index_MerkleDistributor = MerkleDistributor;
1495
- declare const index_MerkleDistributor: typeof MerkleDistributor;
1496
584
  type index_MerkleDistributorAccountTypes = MerkleDistributorAccountTypes;
1497
- type index_MerkleDistributorFields = MerkleDistributorFields;
1498
- type index_MerkleDistributorJSON = MerkleDistributorJSON;
585
+ type index_MerkleDistributorAccounts = MerkleDistributorAccounts;
586
+ type index_MerkleDistributorProgram = MerkleDistributorProgram;
1499
587
  type index_NewAlignedDistributorArgs = NewAlignedDistributorArgs;
1500
588
  type index_NewClaimAccounts = NewClaimAccounts;
1501
589
  type index_NewClaimArgs = NewClaimArgs;
@@ -1503,8 +591,6 @@ type index_NewDistributorAccounts = NewDistributorAccounts;
1503
591
  type index_NewDistributorArgs = NewDistributorArgs;
1504
592
  type index_OracleType = OracleType;
1505
593
  type index_OracleTypeName = OracleTypeName;
1506
- type index_SetAdminAccounts = SetAdminAccounts;
1507
- type index_SetClawbackReceiverAccounts = SetClawbackReceiverAccounts;
1508
594
  type index_SolanaAlignedDistributorClient = SolanaAlignedDistributorClient;
1509
595
  declare const index_SolanaAlignedDistributorClient: typeof SolanaAlignedDistributorClient;
1510
596
  type index_SolanaDistributorClient = SolanaDistributorClient;
@@ -1514,28 +600,19 @@ declare const index_calculateAirdropFeeLamports: typeof calculateAirdropFeeLampo
1514
600
  declare const index_calculateAmountWithTransferFees: typeof calculateAmountWithTransferFees;
1515
601
  declare const index_calculateClaimableLamportsFromPrices: typeof calculateClaimableLamportsFromPrices;
1516
602
  declare const index_calculateDynamicFeeFromSolParams: typeof calculateDynamicFeeFromSolParams;
1517
- declare const index_claimLocked: typeof claimLocked;
1518
- declare const index_clawback: typeof clawback;
1519
- declare const index_closeClaim: typeof closeClaim;
1520
603
  declare const index_constants: typeof constants;
1521
604
  declare const index_fetchAirdropFee: typeof fetchAirdropFee;
1522
- declare const index_fromCode: typeof fromCode;
1523
- declare const index_fromTxError: typeof fromTxError;
1524
605
  declare const index_getAlignedDistributorPda: typeof getAlignedDistributorPda;
1525
606
  declare const index_getClaimantStatusPda: typeof getClaimantStatusPda;
1526
607
  declare const index_getDistributorPda: typeof getDistributorPda;
1527
608
  declare const index_getEventAuthorityPda: typeof getEventAuthorityPda;
1528
609
  declare const index_getTestOraclePda: typeof getTestOraclePda;
1529
610
  declare const index_isCompressedClaimStatus: typeof isCompressedClaimStatus;
1530
- declare const index_newClaim: typeof newClaim;
1531
- declare const index_newDistributor: typeof newDistributor;
1532
611
  declare const index_resolveAirdropFeeLamportsUsingApi: typeof resolveAirdropFeeLamportsUsingApi;
1533
- declare const index_setAdmin: typeof setAdmin;
1534
- declare const index_setClawbackReceiver: typeof setClawbackReceiver;
1535
612
  declare const index_toLamportsSOL: typeof toLamportsSOL;
1536
613
  declare const index_wrappedSignAndExecuteTransaction: typeof wrappedSignAndExecuteTransaction;
1537
614
  declare namespace index {
1538
- export { type index_AirdropFeeClient as AirdropFeeClient, type index_AirdropFeeDynamic as AirdropFeeDynamic, type index_AirdropFeeQueryOptionsOverrides as AirdropFeeQueryOptionsOverrides, type index_AirdropFeeResponse as AirdropFeeResponse, type index_AirdropFeeServiceResponse as AirdropFeeServiceResponse, type index_AlignedDistributorData as AlignedDistributorData, index_AnchorErrorCode as AnchorErrorCode, type index_AnyClaimStatus as AnyClaimStatus, type index_ClaimLockedAccounts as ClaimLockedAccounts, type index_ClaimStatus as ClaimStatus, type index_ClawbackAccounts as ClawbackAccounts, type index_CloseClaimAccounts as CloseClaimAccounts, type index_CompressedClaimStatus as CompressedClaimStatus, index_ContractErrorCode as ContractErrorCode, index_FEE_ALLOCATION_FACTOR_FALLBACK_DENOMINATOR as FEE_ALLOCATION_FACTOR_FALLBACK_DENOMINATOR, index_FEE_ALLOCATION_FACTOR_FALLBACK_NUMERATOR as FEE_ALLOCATION_FACTOR_FALLBACK_NUMERATOR, type index_IClaimData as IClaimData, type index_IClawbackData as IClawbackData, type index_ICloseClaimData as ICloseClaimData, type index_ICreateAlignedDistributorData as ICreateAlignedDistributorData, type index_ICreateDistributorData as ICreateDistributorData, type index_ICreateDistributorResult as ICreateDistributorResult, type index_ICreateExt as ICreateExt, type index_IGetClaimData as IGetClaimData, type index_IGetDistributors as IGetDistributors, type index_IInteractExt as IInteractExt, type index_ISearchDistributors as ISearchDistributors, type index_ISetClawbackReceiverData as ISetClawbackReceiverData, type index_ISetDataAdmin as ISetDataAdmin, index_MAXIMUM_FEE_FALLBACK as MAXIMUM_FEE_FALLBACK, index_MINIMUM_FEE_FALLBACK as MINIMUM_FEE_FALLBACK, index_MerkleDistributor as MerkleDistributor, type index_MerkleDistributorAccountTypes as MerkleDistributorAccountTypes, type index_MerkleDistributorFields as MerkleDistributorFields, type index_MerkleDistributorJSON as MerkleDistributorJSON, type index_NewAlignedDistributorArgs as NewAlignedDistributorArgs, type index_NewClaimAccounts as NewClaimAccounts, type index_NewClaimArgs as NewClaimArgs, type index_NewDistributorAccounts as NewDistributorAccounts, type index_NewDistributorArgs as NewDistributorArgs, type index_OracleType as OracleType, type index_OracleTypeName as OracleTypeName, type index_SetAdminAccounts as SetAdminAccounts, type index_SetClawbackReceiverAccounts as SetClawbackReceiverAccounts, index_SolanaAlignedDistributorClient as SolanaAlignedDistributorClient, index_SolanaDistributorClient as SolanaDistributorClient, index_applyFeeLogic as applyFeeLogic, index_calculateAirdropFeeLamports as calculateAirdropFeeLamports, index_calculateAmountWithTransferFees as calculateAmountWithTransferFees, index_calculateClaimableLamportsFromPrices as calculateClaimableLamportsFromPrices, index_calculateDynamicFeeFromSolParams as calculateDynamicFeeFromSolParams, index_claimLocked as claimLocked, index_clawback as clawback, index_closeClaim as closeClaim, index_constants as constants, index_fetchAirdropFee as fetchAirdropFee, index_fromCode as fromCode, index_fromTxError as fromTxError, index_getAlignedDistributorPda as getAlignedDistributorPda, index_getClaimantStatusPda as getClaimantStatusPda, index_getDistributorPda as getDistributorPda, index_getEventAuthorityPda as getEventAuthorityPda, index_getTestOraclePda as getTestOraclePda, index_isCompressedClaimStatus as isCompressedClaimStatus, index_newClaim as newClaim, index_newDistributor as newDistributor, index_resolveAirdropFeeLamportsUsingApi as resolveAirdropFeeLamportsUsingApi, index_setAdmin as setAdmin, index_setClawbackReceiver as setClawbackReceiver, index_toLamportsSOL as toLamportsSOL, index_wrappedSignAndExecuteTransaction as wrappedSignAndExecuteTransaction };
615
+ export { type index_AirdropFeeClient as AirdropFeeClient, type index_AirdropFeeDynamic as AirdropFeeDynamic, type index_AirdropFeeQueryOptionsOverrides as AirdropFeeQueryOptionsOverrides, type index_AirdropFeeResponse as AirdropFeeResponse, type index_AirdropFeeServiceResponse as AirdropFeeServiceResponse, type index_AlignedDistributorData as AlignedDistributorData, index_AnchorErrorCode as AnchorErrorCode, type index_AnyClaimStatus as AnyClaimStatus, type index_ClaimLockedAccounts as ClaimLockedAccounts, type index_ClaimLockedV2Accounts as ClaimLockedV2Accounts, type index_ClaimStatus as ClaimStatus, type index_ClawbackAccounts as ClawbackAccounts, type index_CloseClaimAccounts as CloseClaimAccounts, type index_CloseClaimArgs as CloseClaimArgs, type index_CompressedClaimStatus as CompressedClaimStatus, index_ContractErrorCode as ContractErrorCode, index_FEE_ALLOCATION_FACTOR_FALLBACK_DENOMINATOR as FEE_ALLOCATION_FACTOR_FALLBACK_DENOMINATOR, index_FEE_ALLOCATION_FACTOR_FALLBACK_NUMERATOR as FEE_ALLOCATION_FACTOR_FALLBACK_NUMERATOR, type index_FeeConfig as FeeConfig, type index_Fees as Fees, type index_IClaimData as IClaimData, type index_IClawbackData as IClawbackData, type index_ICloseClaimData as ICloseClaimData, type index_ICreateAlignedDistributorData as ICreateAlignedDistributorData, type index_ICreateDistributorData as ICreateDistributorData, type index_ICreateDistributorResult as ICreateDistributorResult, type index_ICreateExt as ICreateExt, type index_IGetClaimData as IGetClaimData, type index_IGetDistributors as IGetDistributors, type index_IInteractExt as IInteractExt, type index_ISearchDistributors as ISearchDistributors, type index_ISetClawbackReceiverData as ISetClawbackReceiverData, type index_ISetDataAdmin as ISetDataAdmin, index_MAXIMUM_FEE_FALLBACK as MAXIMUM_FEE_FALLBACK, index_MINIMUM_FEE_FALLBACK as MINIMUM_FEE_FALLBACK, type index_MerkleDistributor as MerkleDistributor, type index_MerkleDistributorAccountTypes as MerkleDistributorAccountTypes, type index_MerkleDistributorAccounts as MerkleDistributorAccounts, type index_MerkleDistributorProgram as MerkleDistributorProgram, type index_NewAlignedDistributorArgs as NewAlignedDistributorArgs, type index_NewClaimAccounts as NewClaimAccounts, type index_NewClaimArgs as NewClaimArgs, type index_NewDistributorAccounts as NewDistributorAccounts, type index_NewDistributorArgs as NewDistributorArgs, type index_OracleType as OracleType, type index_OracleTypeName as OracleTypeName, index_SolanaAlignedDistributorClient as SolanaAlignedDistributorClient, index_SolanaDistributorClient as SolanaDistributorClient, index_applyFeeLogic as applyFeeLogic, index_calculateAirdropFeeLamports as calculateAirdropFeeLamports, index_calculateAmountWithTransferFees as calculateAmountWithTransferFees, index_calculateClaimableLamportsFromPrices as calculateClaimableLamportsFromPrices, index_calculateDynamicFeeFromSolParams as calculateDynamicFeeFromSolParams, index_constants as constants, index_fetchAirdropFee as fetchAirdropFee, index_getAlignedDistributorPda as getAlignedDistributorPda, index_getClaimantStatusPda as getClaimantStatusPda, index_getDistributorPda as getDistributorPda, index_getEventAuthorityPda as getEventAuthorityPda, index_getTestOraclePda as getTestOraclePda, index_isCompressedClaimStatus as isCompressedClaimStatus, index_resolveAirdropFeeLamportsUsingApi as resolveAirdropFeeLamportsUsingApi, index_toLamportsSOL as toLamportsSOL, index_wrappedSignAndExecuteTransaction as wrappedSignAndExecuteTransaction };
1539
616
  }
1540
617
 
1541
- export { type AirdropFeeClient, type AirdropFeeDynamic, type AirdropFeeQueryOptionsOverrides, type AirdropFeeResponse, type AirdropFeeServiceResponse, type AlignedDistributorData, AnchorErrorCode, type AnyClaimStatus, type ClaimLockedAccounts, type ClaimStatus, type ClawbackAccounts, type CloseClaimAccounts, type CompressedClaimStatus, ContractErrorCode, FEE_ALLOCATION_FACTOR_FALLBACK_DENOMINATOR, FEE_ALLOCATION_FACTOR_FALLBACK_NUMERATOR, type IClaimData, type IClawbackData, type ICloseClaimData, type ICreateAlignedDistributorData, type ICreateDistributorData, type ICreateDistributorResult, type ICreateExt, type IGetClaimData, type IGetDistributors, type IInteractExt, type ISearchDistributors, type ISetClawbackReceiverData, type ISetDataAdmin, MAXIMUM_FEE_FALLBACK, MINIMUM_FEE_FALLBACK, MerkleDistributor, type MerkleDistributorAccountTypes, type MerkleDistributorFields, type MerkleDistributorJSON, type NewAlignedDistributorArgs, type NewClaimAccounts, type NewClaimArgs, type NewDistributorAccounts, type NewDistributorArgs, type OracleType, type OracleTypeName, type SetAdminAccounts, type SetClawbackReceiverAccounts, SolanaAlignedDistributorClient, SolanaDistributorClient, applyFeeLogic, calculateAirdropFeeLamports, calculateAmountWithTransferFees, calculateClaimableLamportsFromPrices, calculateDynamicFeeFromSolParams, claimLocked, clawback, closeClaim, constants, fetchAirdropFee, fromCode, fromTxError, getAlignedDistributorPda, getClaimantStatusPda, getDistributorPda, getEventAuthorityPda, getTestOraclePda, index as i, isCompressedClaimStatus, newClaim, newDistributor, resolveAirdropFeeLamportsUsingApi, setAdmin, setClawbackReceiver, toLamportsSOL, wrappedSignAndExecuteTransaction };
618
+ export { type AirdropFeeClient, type AirdropFeeDynamic, type AirdropFeeQueryOptionsOverrides, type AirdropFeeResponse, type AirdropFeeServiceResponse, type AlignedDistributorData, AnchorErrorCode, type AnyClaimStatus, type ClaimLockedAccounts, type ClaimLockedV2Accounts, type ClaimStatus, type ClawbackAccounts, type CloseClaimAccounts, type CloseClaimArgs, type CompressedClaimStatus, ContractErrorCode, FEE_ALLOCATION_FACTOR_FALLBACK_DENOMINATOR, FEE_ALLOCATION_FACTOR_FALLBACK_NUMERATOR, type FeeConfig, type Fees, type IClaimData, type IClawbackData, type ICloseClaimData, type ICreateAlignedDistributorData, type ICreateDistributorData, type ICreateDistributorResult, type ICreateExt, type IGetClaimData, type IGetDistributors, type IInteractExt, type ISearchDistributors, type ISetClawbackReceiverData, type ISetDataAdmin, MAXIMUM_FEE_FALLBACK, MINIMUM_FEE_FALLBACK, type MerkleDistributor, type MerkleDistributorAccountTypes, type MerkleDistributorAccounts, type MerkleDistributorProgram, type NewAlignedDistributorArgs, type NewClaimAccounts, type NewClaimArgs, type NewDistributorAccounts, type NewDistributorArgs, type OracleType, type OracleTypeName, SolanaAlignedDistributorClient, SolanaDistributorClient, applyFeeLogic, calculateAirdropFeeLamports, calculateAmountWithTransferFees, calculateClaimableLamportsFromPrices, calculateDynamicFeeFromSolParams, constants, fetchAirdropFee, getAlignedDistributorPda, getClaimantStatusPda, getDistributorPda, getEventAuthorityPda, getTestOraclePda, index as i, isCompressedClaimStatus, resolveAirdropFeeLamportsUsingApi, toLamportsSOL, wrappedSignAndExecuteTransaction };