@lightprotocol/compressed-token 0.20.1 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/browser/index.cjs +1 -5798
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +1 -4531
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/types/index.d.ts +108 -329
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
CompressedProof,
|
|
4
|
-
ParsedTokenAccount,
|
|
5
|
-
InputTokenDataWithContext as InputTokenDataWithContext$1,
|
|
6
|
-
Rpc,
|
|
7
|
-
} from '@lightprotocol/stateless.js';
|
|
8
|
-
import {
|
|
9
|
-
PublicKey,
|
|
10
|
-
AccountMeta,
|
|
11
|
-
TransactionInstruction,
|
|
12
|
-
Connection,
|
|
13
|
-
Signer,
|
|
14
|
-
ConfirmOptions,
|
|
15
|
-
TransactionSignature,
|
|
16
|
-
Keypair,
|
|
17
|
-
} from '@solana/web3.js';
|
|
1
|
+
import { PackedMerkleContext, CompressedProof, ParsedTokenAccount, InputTokenDataWithContext as InputTokenDataWithContext$1, Rpc } from '@lightprotocol/stateless.js';
|
|
2
|
+
import { PublicKey, AccountMeta, TransactionInstruction, Connection, Signer, ConfirmOptions, TransactionSignature, Keypair } from '@solana/web3.js';
|
|
18
3
|
import BN from 'bn.js';
|
|
19
4
|
import * as buffer_layout from 'buffer-layout';
|
|
20
5
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
@@ -175,9 +160,7 @@ type PackCompressedTokenAccountsParams = {
|
|
|
175
160
|
/**
|
|
176
161
|
* Packs Compressed Token Accounts.
|
|
177
162
|
*/
|
|
178
|
-
declare function packCompressedTokenAccounts(
|
|
179
|
-
params: PackCompressedTokenAccountsParams,
|
|
180
|
-
): {
|
|
163
|
+
declare function packCompressedTokenAccounts(params: PackCompressedTokenAccountsParams): {
|
|
181
164
|
inputTokenDataWithContext: InputTokenDataWithContext$1[];
|
|
182
165
|
remainingAccountMetas: AccountMeta[];
|
|
183
166
|
packedOutputTokenData: PackedTokenTransferOutputData[];
|
|
@@ -518,9 +501,7 @@ declare const validateSameTokenOwner: (accounts: ParsedTokenAccount[]) => void;
|
|
|
518
501
|
/**
|
|
519
502
|
* Parse compressed token accounts to get the mint, current owner and delegate.
|
|
520
503
|
*/
|
|
521
|
-
declare const parseTokenData: (
|
|
522
|
-
compressedTokenAccounts: ParsedTokenAccount[],
|
|
523
|
-
) => {
|
|
504
|
+
declare const parseTokenData: (compressedTokenAccounts: ParsedTokenAccount[]) => {
|
|
524
505
|
mint: PublicKey;
|
|
525
506
|
currentOwner: PublicKey;
|
|
526
507
|
delegate: PublicKey | null;
|
|
@@ -533,11 +514,7 @@ declare const parseTokenData: (
|
|
|
533
514
|
* @returns Output token data for the transfer
|
|
534
515
|
* instruction
|
|
535
516
|
*/
|
|
536
|
-
declare function createTransferOutputState(
|
|
537
|
-
inputCompressedTokenAccounts: ParsedTokenAccount[],
|
|
538
|
-
toAddress: PublicKey,
|
|
539
|
-
amount: number | BN,
|
|
540
|
-
): TokenTransferOutputData[];
|
|
517
|
+
declare function createTransferOutputState(inputCompressedTokenAccounts: ParsedTokenAccount[], toAddress: PublicKey, amount: number | BN): TokenTransferOutputData[];
|
|
541
518
|
/**
|
|
542
519
|
* Create the output state for a compress transaction.
|
|
543
520
|
* @param inputCompressedTokenAccounts Input state
|
|
@@ -545,10 +522,7 @@ declare function createTransferOutputState(
|
|
|
545
522
|
* @returns Output token data for the compress
|
|
546
523
|
* instruction
|
|
547
524
|
*/
|
|
548
|
-
declare function createDecompressOutputState(
|
|
549
|
-
inputCompressedTokenAccounts: ParsedTokenAccount[],
|
|
550
|
-
amount: number | BN,
|
|
551
|
-
): TokenTransferOutputData[];
|
|
525
|
+
declare function createDecompressOutputState(inputCompressedTokenAccounts: ParsedTokenAccount[], amount: number | BN): TokenTransferOutputData[];
|
|
552
526
|
declare class CompressedTokenProgram {
|
|
553
527
|
/**
|
|
554
528
|
* @internal
|
|
@@ -575,16 +549,12 @@ declare class CompressedTokenProgram {
|
|
|
575
549
|
*
|
|
576
550
|
* Note that `createTokenPoolInstruction` must be executed after `initializeMintInstruction`.
|
|
577
551
|
*/
|
|
578
|
-
static createMint(
|
|
579
|
-
params: CreateMintParams,
|
|
580
|
-
): Promise<TransactionInstruction[]>;
|
|
552
|
+
static createMint(params: CreateMintParams): Promise<TransactionInstruction[]>;
|
|
581
553
|
/**
|
|
582
554
|
* Enable compression for an existing SPL mint, creating an omnibus account.
|
|
583
555
|
* For new mints, use `CompressedTokenProgram.createMint`.
|
|
584
556
|
*/
|
|
585
|
-
static createTokenPool(
|
|
586
|
-
params: RegisterMintParams,
|
|
587
|
-
): Promise<TransactionInstruction>;
|
|
557
|
+
static createTokenPool(params: RegisterMintParams): Promise<TransactionInstruction>;
|
|
588
558
|
/**
|
|
589
559
|
* Construct mintTo instruction for compressed tokens
|
|
590
560
|
*/
|
|
@@ -592,9 +562,7 @@ declare class CompressedTokenProgram {
|
|
|
592
562
|
/**
|
|
593
563
|
* Mint tokens from registered SPL mint account to a compressed account
|
|
594
564
|
*/
|
|
595
|
-
static approveAndMintTo(
|
|
596
|
-
params: ApproveAndMintToParams,
|
|
597
|
-
): Promise<TransactionInstruction[]>;
|
|
565
|
+
static approveAndMintTo(params: ApproveAndMintToParams): Promise<TransactionInstruction[]>;
|
|
598
566
|
/**
|
|
599
567
|
* Construct transfer instruction for compressed tokens
|
|
600
568
|
*/
|
|
@@ -602,9 +570,7 @@ declare class CompressedTokenProgram {
|
|
|
602
570
|
/**
|
|
603
571
|
* Create lookup table instructions for the token program's default accounts.
|
|
604
572
|
*/
|
|
605
|
-
static createTokenProgramLookupTable(
|
|
606
|
-
params: CreateTokenProgramLookupTableParams,
|
|
607
|
-
): Promise<{
|
|
573
|
+
static createTokenProgramLookupTable(params: CreateTokenProgramLookupTableParams): Promise<{
|
|
608
574
|
instructions: TransactionInstruction[];
|
|
609
575
|
address: PublicKey;
|
|
610
576
|
}>;
|
|
@@ -616,19 +582,10 @@ declare class CompressedTokenProgram {
|
|
|
616
582
|
/**
|
|
617
583
|
* Construct decompress instruction
|
|
618
584
|
*/
|
|
619
|
-
static decompress(
|
|
620
|
-
|
|
621
|
-
): Promise<TransactionInstruction>;
|
|
622
|
-
static
|
|
623
|
-
params: MergeTokenAccountsParams,
|
|
624
|
-
): Promise<TransactionInstruction[]>;
|
|
625
|
-
static compressSplTokenAccount(
|
|
626
|
-
params: CompressSplTokenAccountParams,
|
|
627
|
-
): Promise<TransactionInstruction>;
|
|
628
|
-
static get_mint_program_id(
|
|
629
|
-
mint: PublicKey,
|
|
630
|
-
connection: Connection,
|
|
631
|
-
): Promise<PublicKey | undefined>;
|
|
585
|
+
static decompress(params: DecompressParams): Promise<TransactionInstruction>;
|
|
586
|
+
static mergeTokenAccounts(params: MergeTokenAccountsParams): Promise<TransactionInstruction[]>;
|
|
587
|
+
static compressSplTokenAccount(params: CompressSplTokenAccountParams): Promise<TransactionInstruction>;
|
|
588
|
+
static get_mint_program_id(mint: PublicKey, connection: Connection): Promise<PublicKey | undefined>;
|
|
632
589
|
}
|
|
633
590
|
|
|
634
591
|
/**
|
|
@@ -646,17 +603,7 @@ declare class CompressedTokenProgram {
|
|
|
646
603
|
*
|
|
647
604
|
* @return Signature of the confirmed transaction
|
|
648
605
|
*/
|
|
649
|
-
declare function approveAndMintTo(
|
|
650
|
-
rpc: Rpc,
|
|
651
|
-
payer: Signer,
|
|
652
|
-
mint: PublicKey,
|
|
653
|
-
destination: PublicKey,
|
|
654
|
-
authority: Signer,
|
|
655
|
-
amount: number | BN,
|
|
656
|
-
merkleTree?: PublicKey,
|
|
657
|
-
confirmOptions?: ConfirmOptions,
|
|
658
|
-
tokenProgramId?: PublicKey,
|
|
659
|
-
): Promise<TransactionSignature>;
|
|
606
|
+
declare function approveAndMintTo(rpc: Rpc, payer: Signer, mint: PublicKey, destination: PublicKey, authority: Signer, amount: number | BN, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions, tokenProgramId?: PublicKey): Promise<TransactionSignature>;
|
|
660
607
|
|
|
661
608
|
/**
|
|
662
609
|
* Compress SPL tokens
|
|
@@ -676,18 +623,7 @@ declare function approveAndMintTo(
|
|
|
676
623
|
*
|
|
677
624
|
* @return Signature of the confirmed transaction
|
|
678
625
|
*/
|
|
679
|
-
declare function compress(
|
|
680
|
-
rpc: Rpc,
|
|
681
|
-
payer: Signer,
|
|
682
|
-
mint: PublicKey,
|
|
683
|
-
amount: number | BN | number[] | BN[],
|
|
684
|
-
owner: Signer,
|
|
685
|
-
sourceTokenAccount: PublicKey,
|
|
686
|
-
toAddress: PublicKey | Array<PublicKey>,
|
|
687
|
-
merkleTree?: PublicKey,
|
|
688
|
-
confirmOptions?: ConfirmOptions,
|
|
689
|
-
tokenProgramId?: PublicKey,
|
|
690
|
-
): Promise<TransactionSignature>;
|
|
626
|
+
declare function compress(rpc: Rpc, payer: Signer, mint: PublicKey, amount: number | BN | number[] | BN[], owner: Signer, sourceTokenAccount: PublicKey, toAddress: PublicKey | Array<PublicKey>, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions, tokenProgramId?: PublicKey): Promise<TransactionSignature>;
|
|
691
627
|
|
|
692
628
|
/**
|
|
693
629
|
* Decompress compressed tokens
|
|
@@ -707,17 +643,7 @@ declare function compress(
|
|
|
707
643
|
*
|
|
708
644
|
* @return Signature of the confirmed transaction
|
|
709
645
|
*/
|
|
710
|
-
declare function decompress(
|
|
711
|
-
rpc: Rpc,
|
|
712
|
-
payer: Signer,
|
|
713
|
-
mint: PublicKey,
|
|
714
|
-
amount: number | BN,
|
|
715
|
-
owner: Signer,
|
|
716
|
-
toAddress: PublicKey,
|
|
717
|
-
merkleTree?: PublicKey,
|
|
718
|
-
confirmOptions?: ConfirmOptions,
|
|
719
|
-
tokenProgramId?: PublicKey,
|
|
720
|
-
): Promise<TransactionSignature>;
|
|
646
|
+
declare function decompress(rpc: Rpc, payer: Signer, mint: PublicKey, amount: number | BN, owner: Signer, toAddress: PublicKey, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions, tokenProgramId?: PublicKey): Promise<TransactionSignature>;
|
|
721
647
|
|
|
722
648
|
/**
|
|
723
649
|
* Create and initialize a new compressed token mint
|
|
@@ -736,16 +662,7 @@ declare function decompress(
|
|
|
736
662
|
*
|
|
737
663
|
* @return Address of the new mint and the transaction signature
|
|
738
664
|
*/
|
|
739
|
-
declare function createMint(
|
|
740
|
-
rpc: Rpc,
|
|
741
|
-
payer: Signer,
|
|
742
|
-
mintAuthority: PublicKey,
|
|
743
|
-
decimals: number,
|
|
744
|
-
keypair?: Keypair,
|
|
745
|
-
confirmOptions?: ConfirmOptions,
|
|
746
|
-
tokenProgramId?: PublicKey | boolean,
|
|
747
|
-
freezeAuthority?: PublicKey,
|
|
748
|
-
): Promise<{
|
|
665
|
+
declare function createMint(rpc: Rpc, payer: Signer, mintAuthority: PublicKey, decimals: number, keypair?: Keypair, confirmOptions?: ConfirmOptions, tokenProgramId?: PublicKey | boolean, freezeAuthority?: PublicKey): Promise<{
|
|
749
666
|
mint: PublicKey;
|
|
750
667
|
transactionSignature: TransactionSignature;
|
|
751
668
|
}>;
|
|
@@ -767,17 +684,7 @@ declare function createMint(
|
|
|
767
684
|
*
|
|
768
685
|
* @return Signature of the confirmed transaction
|
|
769
686
|
*/
|
|
770
|
-
declare function mintTo(
|
|
771
|
-
rpc: Rpc,
|
|
772
|
-
payer: Signer,
|
|
773
|
-
mint: PublicKey,
|
|
774
|
-
destination: PublicKey | PublicKey[],
|
|
775
|
-
authority: Signer,
|
|
776
|
-
amount: number | BN | number[] | BN[],
|
|
777
|
-
merkleTree?: PublicKey,
|
|
778
|
-
confirmOptions?: ConfirmOptions,
|
|
779
|
-
tokenProgramId?: PublicKey,
|
|
780
|
-
): Promise<TransactionSignature>;
|
|
687
|
+
declare function mintTo(rpc: Rpc, payer: Signer, mint: PublicKey, destination: PublicKey | PublicKey[], authority: Signer, amount: number | BN | number[] | BN[], merkleTree?: PublicKey, confirmOptions?: ConfirmOptions, tokenProgramId?: PublicKey): Promise<TransactionSignature>;
|
|
781
688
|
|
|
782
689
|
/**
|
|
783
690
|
* Merge multiple compressed token accounts for a given mint into a single
|
|
@@ -792,14 +699,7 @@ declare function mintTo(
|
|
|
792
699
|
*
|
|
793
700
|
* @return Array of transaction signatures
|
|
794
701
|
*/
|
|
795
|
-
declare function mergeTokenAccounts(
|
|
796
|
-
rpc: Rpc,
|
|
797
|
-
payer: Signer,
|
|
798
|
-
mint: PublicKey,
|
|
799
|
-
owner: Signer,
|
|
800
|
-
merkleTree?: PublicKey,
|
|
801
|
-
confirmOptions?: ConfirmOptions,
|
|
802
|
-
): Promise<TransactionSignature>;
|
|
702
|
+
declare function mergeTokenAccounts(rpc: Rpc, payer: Signer, mint: PublicKey, owner: Signer, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
803
703
|
|
|
804
704
|
/**
|
|
805
705
|
* Register an existing mint with the CompressedToken program
|
|
@@ -812,13 +712,7 @@ declare function mergeTokenAccounts(
|
|
|
812
712
|
*
|
|
813
713
|
* @return transaction signature
|
|
814
714
|
*/
|
|
815
|
-
declare function createTokenPool(
|
|
816
|
-
rpc: Rpc,
|
|
817
|
-
payer: Signer,
|
|
818
|
-
mint: PublicKey,
|
|
819
|
-
confirmOptions?: ConfirmOptions,
|
|
820
|
-
tokenProgramId?: PublicKey,
|
|
821
|
-
): Promise<TransactionSignature>;
|
|
715
|
+
declare function createTokenPool(rpc: Rpc, payer: Signer, mint: PublicKey, confirmOptions?: ConfirmOptions, tokenProgramId?: PublicKey): Promise<TransactionSignature>;
|
|
822
716
|
|
|
823
717
|
/**
|
|
824
718
|
* Transfer compressed tokens from one owner to another
|
|
@@ -837,16 +731,7 @@ declare function createTokenPool(
|
|
|
837
731
|
*
|
|
838
732
|
* @return Signature of the confirmed transaction
|
|
839
733
|
*/
|
|
840
|
-
declare function transfer(
|
|
841
|
-
rpc: Rpc,
|
|
842
|
-
payer: Signer,
|
|
843
|
-
mint: PublicKey,
|
|
844
|
-
amount: number | BN,
|
|
845
|
-
owner: Signer,
|
|
846
|
-
toAddress: PublicKey,
|
|
847
|
-
merkleTree?: PublicKey,
|
|
848
|
-
confirmOptions?: ConfirmOptions,
|
|
849
|
-
): Promise<TransactionSignature>;
|
|
734
|
+
declare function transfer(rpc: Rpc, payer: Signer, mint: PublicKey, amount: number | BN, owner: Signer, toAddress: PublicKey, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
850
735
|
/**
|
|
851
736
|
* Selects the minimal number of compressed token accounts for a transfer.
|
|
852
737
|
*
|
|
@@ -854,13 +739,10 @@ declare function transfer(
|
|
|
854
739
|
* 2. Accumulates the amount until it is greater than or equal to the transfer
|
|
855
740
|
* amount
|
|
856
741
|
*/
|
|
857
|
-
declare function selectMinCompressedTokenAccountsForTransfer(
|
|
858
|
-
accounts: ParsedTokenAccount[],
|
|
859
|
-
transferAmount: BN,
|
|
860
|
-
): [
|
|
742
|
+
declare function selectMinCompressedTokenAccountsForTransfer(accounts: ParsedTokenAccount[], transferAmount: BN): [
|
|
861
743
|
selectedAccounts: ParsedTokenAccount[],
|
|
862
744
|
total: BN,
|
|
863
|
-
totalLamports: BN | null
|
|
745
|
+
totalLamports: BN | null
|
|
864
746
|
];
|
|
865
747
|
|
|
866
748
|
/**
|
|
@@ -876,13 +758,7 @@ declare function selectMinCompressedTokenAccountsForTransfer(
|
|
|
876
758
|
*
|
|
877
759
|
* @return Transaction signatures and the address of the created lookup table
|
|
878
760
|
*/
|
|
879
|
-
declare function createTokenProgramLookupTable(
|
|
880
|
-
rpc: Rpc,
|
|
881
|
-
payer: Signer,
|
|
882
|
-
authority: Signer,
|
|
883
|
-
mints?: PublicKey[],
|
|
884
|
-
additionalAccounts?: PublicKey[],
|
|
885
|
-
): Promise<{
|
|
761
|
+
declare function createTokenProgramLookupTable(rpc: Rpc, payer: Signer, authority: Signer, mints?: PublicKey[], additionalAccounts?: PublicKey[]): Promise<{
|
|
886
762
|
txIds: TransactionSignature[];
|
|
887
763
|
address: PublicKey;
|
|
888
764
|
}>;
|
|
@@ -901,41 +777,19 @@ declare function createTokenProgramLookupTable(
|
|
|
901
777
|
*
|
|
902
778
|
* @return Signature of the confirmed transaction
|
|
903
779
|
*/
|
|
904
|
-
declare function compressSplTokenAccount(
|
|
905
|
-
rpc: Rpc,
|
|
906
|
-
payer: Signer,
|
|
907
|
-
mint: PublicKey,
|
|
908
|
-
owner: Signer,
|
|
909
|
-
tokenAccount: PublicKey,
|
|
910
|
-
outputStateTree: PublicKey,
|
|
911
|
-
remainingAmount?: BN,
|
|
912
|
-
confirmOptions?: ConfirmOptions,
|
|
913
|
-
tokenProgramId?: PublicKey,
|
|
914
|
-
): Promise<TransactionSignature>;
|
|
780
|
+
declare function compressSplTokenAccount(rpc: Rpc, payer: Signer, mint: PublicKey, owner: Signer, tokenAccount: PublicKey, outputStateTree: PublicKey, remainingAmount?: BN, confirmOptions?: ConfirmOptions, tokenProgramId?: PublicKey): Promise<TransactionSignature>;
|
|
915
781
|
|
|
916
782
|
declare const DelegatedTransferLayout: buffer_layout.Layout<unknown>;
|
|
917
783
|
declare const CpiContextLayout: buffer_layout.Layout<unknown>;
|
|
918
784
|
declare const CompressedTokenInstructionDataTransferLayout: buffer_layout.Layout<unknown>;
|
|
919
785
|
declare const mintToLayout: buffer_layout.Layout<unknown>;
|
|
920
786
|
declare const compressSplTokenAccountInstructionDataLayout: buffer_layout.Layout<unknown>;
|
|
921
|
-
declare function encodeMintToInstructionData(
|
|
922
|
-
|
|
923
|
-
): Buffer$1;
|
|
924
|
-
declare function
|
|
925
|
-
|
|
926
|
-
):
|
|
927
|
-
declare function encodeCompressSplTokenAccountInstructionData(
|
|
928
|
-
data: CompressSplTokenAccountInstructionData,
|
|
929
|
-
): Buffer$1;
|
|
930
|
-
declare function decodeCompressSplTokenAccountInstructionData(
|
|
931
|
-
buffer: Buffer$1,
|
|
932
|
-
): CompressSplTokenAccountInstructionData;
|
|
933
|
-
declare function encodeTransferInstructionData(
|
|
934
|
-
data: CompressedTokenInstructionDataTransfer,
|
|
935
|
-
): Buffer$1;
|
|
936
|
-
declare function decodeTransferInstructionData(
|
|
937
|
-
buffer: Buffer$1,
|
|
938
|
-
): CompressedTokenInstructionDataTransfer;
|
|
787
|
+
declare function encodeMintToInstructionData(data: MintToInstructionData): Buffer$1;
|
|
788
|
+
declare function decodeMintToInstructionData(buffer: Buffer$1): MintToInstructionData;
|
|
789
|
+
declare function encodeCompressSplTokenAccountInstructionData(data: CompressSplTokenAccountInstructionData): Buffer$1;
|
|
790
|
+
declare function decodeCompressSplTokenAccountInstructionData(buffer: Buffer$1): CompressSplTokenAccountInstructionData;
|
|
791
|
+
declare function encodeTransferInstructionData(data: CompressedTokenInstructionDataTransfer): Buffer$1;
|
|
792
|
+
declare function decodeTransferInstructionData(buffer: Buffer$1): CompressedTokenInstructionDataTransfer;
|
|
939
793
|
interface BaseAccountsLayoutParams {
|
|
940
794
|
feePayer: PublicKey;
|
|
941
795
|
authority: PublicKey;
|
|
@@ -974,15 +828,9 @@ type freezeAccountsLayoutParams = BaseAccountsLayoutParams & {
|
|
|
974
828
|
mint: PublicKey;
|
|
975
829
|
};
|
|
976
830
|
type thawAccountsLayoutParams = freezeAccountsLayoutParams;
|
|
977
|
-
declare const createTokenPoolAccountsLayout: (
|
|
978
|
-
|
|
979
|
-
) => AccountMeta[];
|
|
980
|
-
declare const mintToAccountsLayout: (
|
|
981
|
-
accounts: mintToAccountsLayoutParams,
|
|
982
|
-
) => AccountMeta[];
|
|
983
|
-
declare const transferAccountsLayout: (
|
|
984
|
-
accounts: transferAccountsLayoutParams,
|
|
985
|
-
) => AccountMeta[];
|
|
831
|
+
declare const createTokenPoolAccountsLayout: (accounts: createTokenPoolAccountsLayoutParams) => AccountMeta[];
|
|
832
|
+
declare const mintToAccountsLayout: (accounts: mintToAccountsLayoutParams) => AccountMeta[];
|
|
833
|
+
declare const transferAccountsLayout: (accounts: transferAccountsLayoutParams) => AccountMeta[];
|
|
986
834
|
|
|
987
835
|
type LightCompressedToken = {
|
|
988
836
|
version: '1.2.0';
|
|
@@ -994,7 +842,7 @@ type LightCompressedToken = {
|
|
|
994
842
|
'This instruction creates a token pool for a given mint. Every spl mint',
|
|
995
843
|
'can have one token pool. When a token is compressed the tokens are',
|
|
996
844
|
'transferrred to the token pool, and their compressed equivalent is',
|
|
997
|
-
'minted into a Merkle tree.'
|
|
845
|
+
'minted into a Merkle tree.'
|
|
998
846
|
];
|
|
999
847
|
accounts: [
|
|
1000
848
|
{
|
|
@@ -1027,7 +875,7 @@ type LightCompressedToken = {
|
|
|
1027
875
|
name: 'cpiAuthorityPda';
|
|
1028
876
|
isMut: false;
|
|
1029
877
|
isSigner: false;
|
|
1030
|
-
}
|
|
878
|
+
}
|
|
1031
879
|
];
|
|
1032
880
|
args: [];
|
|
1033
881
|
},
|
|
@@ -1035,7 +883,7 @@ type LightCompressedToken = {
|
|
|
1035
883
|
name: 'addTokenPool';
|
|
1036
884
|
docs: [
|
|
1037
885
|
'This instruction creates an additional token pool for a given mint.',
|
|
1038
|
-
'The maximum number of token pools per mint is 5.'
|
|
886
|
+
'The maximum number of token pools per mint is 5.'
|
|
1039
887
|
];
|
|
1040
888
|
accounts: [
|
|
1041
889
|
{
|
|
@@ -1073,13 +921,13 @@ type LightCompressedToken = {
|
|
|
1073
921
|
name: 'cpiAuthorityPda';
|
|
1074
922
|
isMut: false;
|
|
1075
923
|
isSigner: false;
|
|
1076
|
-
}
|
|
924
|
+
}
|
|
1077
925
|
];
|
|
1078
926
|
args: [
|
|
1079
927
|
{
|
|
1080
928
|
name: 'tokenPoolIndex';
|
|
1081
929
|
type: 'u8';
|
|
1082
|
-
}
|
|
930
|
+
}
|
|
1083
931
|
];
|
|
1084
932
|
},
|
|
1085
933
|
{
|
|
@@ -1091,7 +939,7 @@ type LightCompressedToken = {
|
|
|
1091
939
|
'every amount and pubkey input pair. A constant amount of lamports can be',
|
|
1092
940
|
'transferred to each output account to enable. A use case to add lamports',
|
|
1093
941
|
'to a compressed token account is to prevent spam. This is the only way',
|
|
1094
|
-
'to add lamports to a compressed token account.'
|
|
942
|
+
'to add lamports to a compressed token account.'
|
|
1095
943
|
];
|
|
1096
944
|
accounts: [
|
|
1097
945
|
{
|
|
@@ -1171,7 +1019,7 @@ type LightCompressedToken = {
|
|
|
1171
1019
|
isMut: true;
|
|
1172
1020
|
isSigner: false;
|
|
1173
1021
|
isOptional: true;
|
|
1174
|
-
}
|
|
1022
|
+
}
|
|
1175
1023
|
];
|
|
1176
1024
|
args: [
|
|
1177
1025
|
{
|
|
@@ -1191,7 +1039,7 @@ type LightCompressedToken = {
|
|
|
1191
1039
|
type: {
|
|
1192
1040
|
option: 'u64';
|
|
1193
1041
|
};
|
|
1194
|
-
}
|
|
1042
|
+
}
|
|
1195
1043
|
];
|
|
1196
1044
|
},
|
|
1197
1045
|
{
|
|
@@ -1199,7 +1047,7 @@ type LightCompressedToken = {
|
|
|
1199
1047
|
docs: [
|
|
1200
1048
|
'Compresses the balance of an spl token account sub an optional remaining',
|
|
1201
1049
|
'amount. This instruction does not close the spl token account. To close',
|
|
1202
|
-
'the account bundle a close spl account instruction in your transaction.'
|
|
1050
|
+
'the account bundle a close spl account instruction in your transaction.'
|
|
1203
1051
|
];
|
|
1204
1052
|
accounts: [
|
|
1205
1053
|
{
|
|
@@ -1215,7 +1063,7 @@ type LightCompressedToken = {
|
|
|
1215
1063
|
docs: [
|
|
1216
1064
|
'Authority is verified through proof since both owner and delegate',
|
|
1217
1065
|
'are included in the token data hash, which is a public input to the',
|
|
1218
|
-
'validity proof.'
|
|
1066
|
+
'validity proof.'
|
|
1219
1067
|
];
|
|
1220
1068
|
},
|
|
1221
1069
|
{
|
|
@@ -1276,7 +1124,7 @@ type LightCompressedToken = {
|
|
|
1276
1124
|
name: 'systemProgram';
|
|
1277
1125
|
isMut: false;
|
|
1278
1126
|
isSigner: false;
|
|
1279
|
-
}
|
|
1127
|
+
}
|
|
1280
1128
|
];
|
|
1281
1129
|
args: [
|
|
1282
1130
|
{
|
|
@@ -1296,7 +1144,7 @@ type LightCompressedToken = {
|
|
|
1296
1144
|
defined: 'CompressedCpiContext';
|
|
1297
1145
|
};
|
|
1298
1146
|
};
|
|
1299
|
-
}
|
|
1147
|
+
}
|
|
1300
1148
|
];
|
|
1301
1149
|
},
|
|
1302
1150
|
{
|
|
@@ -1309,7 +1157,7 @@ type LightCompressedToken = {
|
|
|
1309
1157
|
'accounts specify less lamports than inputs the remaining lamports are',
|
|
1310
1158
|
'transferred to an output compressed account. Signer must be owner or',
|
|
1311
1159
|
'delegate. If a delegated token account is transferred the delegate is',
|
|
1312
|
-
'not preserved.'
|
|
1160
|
+
'not preserved.'
|
|
1313
1161
|
];
|
|
1314
1162
|
accounts: [
|
|
1315
1163
|
{
|
|
@@ -1325,7 +1173,7 @@ type LightCompressedToken = {
|
|
|
1325
1173
|
docs: [
|
|
1326
1174
|
'Authority is verified through proof since both owner and delegate',
|
|
1327
1175
|
'are included in the token data hash, which is a public input to the',
|
|
1328
|
-
'validity proof.'
|
|
1176
|
+
'validity proof.'
|
|
1329
1177
|
];
|
|
1330
1178
|
},
|
|
1331
1179
|
{
|
|
@@ -1386,13 +1234,13 @@ type LightCompressedToken = {
|
|
|
1386
1234
|
name: 'systemProgram';
|
|
1387
1235
|
isMut: false;
|
|
1388
1236
|
isSigner: false;
|
|
1389
|
-
}
|
|
1237
|
+
}
|
|
1390
1238
|
];
|
|
1391
1239
|
args: [
|
|
1392
1240
|
{
|
|
1393
1241
|
name: 'inputs';
|
|
1394
1242
|
type: 'bytes';
|
|
1395
|
-
}
|
|
1243
|
+
}
|
|
1396
1244
|
];
|
|
1397
1245
|
},
|
|
1398
1246
|
{
|
|
@@ -1403,7 +1251,7 @@ type LightCompressedToken = {
|
|
|
1403
1251
|
'be called by a delegate.',
|
|
1404
1252
|
'The instruction creates two output accounts:',
|
|
1405
1253
|
'1. one account with delegated amount',
|
|
1406
|
-
'2. one account with remaining(change) amount'
|
|
1254
|
+
'2. one account with remaining(change) amount'
|
|
1407
1255
|
];
|
|
1408
1256
|
accounts: [
|
|
1409
1257
|
{
|
|
@@ -1419,7 +1267,7 @@ type LightCompressedToken = {
|
|
|
1419
1267
|
docs: [
|
|
1420
1268
|
'Authority is verified through proof since both owner and delegate',
|
|
1421
1269
|
'are included in the token data hash, which is a public input to the',
|
|
1422
|
-
'validity proof.'
|
|
1270
|
+
'validity proof.'
|
|
1423
1271
|
];
|
|
1424
1272
|
},
|
|
1425
1273
|
{
|
|
@@ -1462,20 +1310,20 @@ type LightCompressedToken = {
|
|
|
1462
1310
|
name: 'systemProgram';
|
|
1463
1311
|
isMut: false;
|
|
1464
1312
|
isSigner: false;
|
|
1465
|
-
}
|
|
1313
|
+
}
|
|
1466
1314
|
];
|
|
1467
1315
|
args: [
|
|
1468
1316
|
{
|
|
1469
1317
|
name: 'inputs';
|
|
1470
1318
|
type: 'bytes';
|
|
1471
|
-
}
|
|
1319
|
+
}
|
|
1472
1320
|
];
|
|
1473
1321
|
},
|
|
1474
1322
|
{
|
|
1475
1323
|
name: 'revoke';
|
|
1476
1324
|
docs: [
|
|
1477
1325
|
'Revokes a delegation. The instruction merges all inputs into one output',
|
|
1478
|
-
'account. Cannot be called by a delegate. Delegates are not preserved.'
|
|
1326
|
+
'account. Cannot be called by a delegate. Delegates are not preserved.'
|
|
1479
1327
|
];
|
|
1480
1328
|
accounts: [
|
|
1481
1329
|
{
|
|
@@ -1491,7 +1339,7 @@ type LightCompressedToken = {
|
|
|
1491
1339
|
docs: [
|
|
1492
1340
|
'Authority is verified through proof since both owner and delegate',
|
|
1493
1341
|
'are included in the token data hash, which is a public input to the',
|
|
1494
|
-
'validity proof.'
|
|
1342
|
+
'validity proof.'
|
|
1495
1343
|
];
|
|
1496
1344
|
},
|
|
1497
1345
|
{
|
|
@@ -1534,20 +1382,20 @@ type LightCompressedToken = {
|
|
|
1534
1382
|
name: 'systemProgram';
|
|
1535
1383
|
isMut: false;
|
|
1536
1384
|
isSigner: false;
|
|
1537
|
-
}
|
|
1385
|
+
}
|
|
1538
1386
|
];
|
|
1539
1387
|
args: [
|
|
1540
1388
|
{
|
|
1541
1389
|
name: 'inputs';
|
|
1542
1390
|
type: 'bytes';
|
|
1543
|
-
}
|
|
1391
|
+
}
|
|
1544
1392
|
];
|
|
1545
1393
|
},
|
|
1546
1394
|
{
|
|
1547
1395
|
name: 'freeze';
|
|
1548
1396
|
docs: [
|
|
1549
1397
|
'Freezes compressed token accounts. Inputs must not be frozen. Creates as',
|
|
1550
|
-
'many outputs as inputs. Balances and delegates are preserved.'
|
|
1398
|
+
'many outputs as inputs. Balances and delegates are preserved.'
|
|
1551
1399
|
];
|
|
1552
1400
|
accounts: [
|
|
1553
1401
|
{
|
|
@@ -1606,20 +1454,20 @@ type LightCompressedToken = {
|
|
|
1606
1454
|
name: 'mint';
|
|
1607
1455
|
isMut: false;
|
|
1608
1456
|
isSigner: false;
|
|
1609
|
-
}
|
|
1457
|
+
}
|
|
1610
1458
|
];
|
|
1611
1459
|
args: [
|
|
1612
1460
|
{
|
|
1613
1461
|
name: 'inputs';
|
|
1614
1462
|
type: 'bytes';
|
|
1615
|
-
}
|
|
1463
|
+
}
|
|
1616
1464
|
];
|
|
1617
1465
|
},
|
|
1618
1466
|
{
|
|
1619
1467
|
name: 'thaw';
|
|
1620
1468
|
docs: [
|
|
1621
1469
|
'Thaws frozen compressed token accounts. Inputs must be frozen. Creates',
|
|
1622
|
-
'as many outputs as inputs. Balances and delegates are preserved.'
|
|
1470
|
+
'as many outputs as inputs. Balances and delegates are preserved.'
|
|
1623
1471
|
];
|
|
1624
1472
|
accounts: [
|
|
1625
1473
|
{
|
|
@@ -1678,13 +1526,13 @@ type LightCompressedToken = {
|
|
|
1678
1526
|
name: 'mint';
|
|
1679
1527
|
isMut: false;
|
|
1680
1528
|
isSigner: false;
|
|
1681
|
-
}
|
|
1529
|
+
}
|
|
1682
1530
|
];
|
|
1683
1531
|
args: [
|
|
1684
1532
|
{
|
|
1685
1533
|
name: 'inputs';
|
|
1686
1534
|
type: 'bytes';
|
|
1687
|
-
}
|
|
1535
|
+
}
|
|
1688
1536
|
];
|
|
1689
1537
|
},
|
|
1690
1538
|
{
|
|
@@ -1692,7 +1540,7 @@ type LightCompressedToken = {
|
|
|
1692
1540
|
docs: [
|
|
1693
1541
|
'Burns compressed tokens and spl tokens from the pool account. Delegates',
|
|
1694
1542
|
'can burn tokens. The output compressed token account remains delegated.',
|
|
1695
|
-
'Creates one output compressed token account.'
|
|
1543
|
+
'Creates one output compressed token account.'
|
|
1696
1544
|
];
|
|
1697
1545
|
accounts: [
|
|
1698
1546
|
{
|
|
@@ -1708,7 +1556,7 @@ type LightCompressedToken = {
|
|
|
1708
1556
|
docs: [
|
|
1709
1557
|
'Authority is verified through proof since both owner and delegate',
|
|
1710
1558
|
'are included in the token data hash, which is a public input to the',
|
|
1711
|
-
'validity proof.'
|
|
1559
|
+
'validity proof.'
|
|
1712
1560
|
];
|
|
1713
1561
|
},
|
|
1714
1562
|
{
|
|
@@ -1765,13 +1613,13 @@ type LightCompressedToken = {
|
|
|
1765
1613
|
name: 'systemProgram';
|
|
1766
1614
|
isMut: false;
|
|
1767
1615
|
isSigner: false;
|
|
1768
|
-
}
|
|
1616
|
+
}
|
|
1769
1617
|
];
|
|
1770
1618
|
args: [
|
|
1771
1619
|
{
|
|
1772
1620
|
name: 'inputs';
|
|
1773
1621
|
type: 'bytes';
|
|
1774
|
-
}
|
|
1622
|
+
}
|
|
1775
1623
|
];
|
|
1776
1624
|
},
|
|
1777
1625
|
{
|
|
@@ -1779,7 +1627,7 @@ type LightCompressedToken = {
|
|
|
1779
1627
|
docs: [
|
|
1780
1628
|
'This function is a stub to allow Anchor to include the input types in',
|
|
1781
1629
|
'the IDL. It should not be included in production builds nor be called in',
|
|
1782
|
-
'practice.'
|
|
1630
|
+
'practice.'
|
|
1783
1631
|
];
|
|
1784
1632
|
accounts: [
|
|
1785
1633
|
{
|
|
@@ -1795,7 +1643,7 @@ type LightCompressedToken = {
|
|
|
1795
1643
|
docs: [
|
|
1796
1644
|
'Authority is verified through proof since both owner and delegate',
|
|
1797
1645
|
'are included in the token data hash, which is a public input to the',
|
|
1798
|
-
'validity proof.'
|
|
1646
|
+
'validity proof.'
|
|
1799
1647
|
];
|
|
1800
1648
|
},
|
|
1801
1649
|
{
|
|
@@ -1856,7 +1704,7 @@ type LightCompressedToken = {
|
|
|
1856
1704
|
name: 'systemProgram';
|
|
1857
1705
|
isMut: false;
|
|
1858
1706
|
isSigner: false;
|
|
1859
|
-
}
|
|
1707
|
+
}
|
|
1860
1708
|
];
|
|
1861
1709
|
args: [
|
|
1862
1710
|
{
|
|
@@ -1870,9 +1718,9 @@ type LightCompressedToken = {
|
|
|
1870
1718
|
type: {
|
|
1871
1719
|
defined: 'TokenData';
|
|
1872
1720
|
};
|
|
1873
|
-
}
|
|
1721
|
+
}
|
|
1874
1722
|
];
|
|
1875
|
-
}
|
|
1723
|
+
}
|
|
1876
1724
|
];
|
|
1877
1725
|
types: [
|
|
1878
1726
|
{
|
|
@@ -1885,7 +1733,7 @@ type LightCompressedToken = {
|
|
|
1885
1733
|
},
|
|
1886
1734
|
{
|
|
1887
1735
|
name: 'Frozen';
|
|
1888
|
-
}
|
|
1736
|
+
}
|
|
1889
1737
|
];
|
|
1890
1738
|
};
|
|
1891
1739
|
},
|
|
@@ -1917,7 +1765,7 @@ type LightCompressedToken = {
|
|
|
1917
1765
|
defined: 'CompressedAccountData';
|
|
1918
1766
|
};
|
|
1919
1767
|
};
|
|
1920
|
-
}
|
|
1768
|
+
}
|
|
1921
1769
|
];
|
|
1922
1770
|
};
|
|
1923
1771
|
},
|
|
@@ -1941,7 +1789,7 @@ type LightCompressedToken = {
|
|
|
1941
1789
|
type: {
|
|
1942
1790
|
array: ['u8', 32];
|
|
1943
1791
|
};
|
|
1944
|
-
}
|
|
1792
|
+
}
|
|
1945
1793
|
];
|
|
1946
1794
|
};
|
|
1947
1795
|
},
|
|
@@ -1954,7 +1802,7 @@ type LightCompressedToken = {
|
|
|
1954
1802
|
name: 'setContext';
|
|
1955
1803
|
docs: [
|
|
1956
1804
|
'Is set by the program that is invoking the CPI to signal that is should',
|
|
1957
|
-
'set the cpi context.'
|
|
1805
|
+
'set the cpi context.'
|
|
1958
1806
|
];
|
|
1959
1807
|
type: 'bool';
|
|
1960
1808
|
},
|
|
@@ -1962,17 +1810,17 @@ type LightCompressedToken = {
|
|
|
1962
1810
|
name: 'firstSetContext';
|
|
1963
1811
|
docs: [
|
|
1964
1812
|
'Is set to wipe the cpi context since someone could have set it before',
|
|
1965
|
-
'with unrelated data.'
|
|
1813
|
+
'with unrelated data.'
|
|
1966
1814
|
];
|
|
1967
1815
|
type: 'bool';
|
|
1968
1816
|
},
|
|
1969
1817
|
{
|
|
1970
1818
|
name: 'cpiContextAccountIndex';
|
|
1971
1819
|
docs: [
|
|
1972
|
-
'Index of cpi context account in remaining accounts.'
|
|
1820
|
+
'Index of cpi context account in remaining accounts.'
|
|
1973
1821
|
];
|
|
1974
1822
|
type: 'u8';
|
|
1975
|
-
}
|
|
1823
|
+
}
|
|
1976
1824
|
];
|
|
1977
1825
|
};
|
|
1978
1826
|
},
|
|
@@ -1998,7 +1846,7 @@ type LightCompressedToken = {
|
|
|
1998
1846
|
type: {
|
|
1999
1847
|
array: ['u8', 32];
|
|
2000
1848
|
};
|
|
2001
|
-
}
|
|
1849
|
+
}
|
|
2002
1850
|
];
|
|
2003
1851
|
};
|
|
2004
1852
|
},
|
|
@@ -2024,7 +1872,7 @@ type LightCompressedToken = {
|
|
|
2024
1872
|
docs: [
|
|
2025
1873
|
'Is required if the signer is delegate,',
|
|
2026
1874
|
'-> delegate is authority account,',
|
|
2027
|
-
'owner = Some(owner) is the owner of the token account.'
|
|
1875
|
+
'owner = Some(owner) is the owner of the token account.'
|
|
2028
1876
|
];
|
|
2029
1877
|
type: {
|
|
2030
1878
|
option: {
|
|
@@ -2071,14 +1919,14 @@ type LightCompressedToken = {
|
|
|
2071
1919
|
type: {
|
|
2072
1920
|
option: 'u8';
|
|
2073
1921
|
};
|
|
2074
|
-
}
|
|
1922
|
+
}
|
|
2075
1923
|
];
|
|
2076
1924
|
};
|
|
2077
1925
|
},
|
|
2078
1926
|
{
|
|
2079
1927
|
name: 'DelegatedTransfer';
|
|
2080
1928
|
docs: [
|
|
2081
|
-
'Struct to provide the owner when the delegate is signer of the transaction.'
|
|
1929
|
+
'Struct to provide the owner when the delegate is signer of the transaction.'
|
|
2082
1930
|
];
|
|
2083
1931
|
type: {
|
|
2084
1932
|
kind: 'struct';
|
|
@@ -2093,12 +1941,12 @@ type LightCompressedToken = {
|
|
|
2093
1941
|
'Index of change compressed account in output compressed accounts. In',
|
|
2094
1942
|
"case that the delegate didn't spend the complete delegated compressed",
|
|
2095
1943
|
'account balance the change compressed account will be delegated to her',
|
|
2096
|
-
'as well.'
|
|
1944
|
+
'as well.'
|
|
2097
1945
|
];
|
|
2098
1946
|
type: {
|
|
2099
1947
|
option: 'u8';
|
|
2100
1948
|
};
|
|
2101
|
-
}
|
|
1949
|
+
}
|
|
2102
1950
|
];
|
|
2103
1951
|
};
|
|
2104
1952
|
},
|
|
@@ -2136,12 +1984,12 @@ type LightCompressedToken = {
|
|
|
2136
1984
|
{
|
|
2137
1985
|
name: 'tlv';
|
|
2138
1986
|
docs: [
|
|
2139
|
-
'Placeholder for TokenExtension tlv data (unimplemented)'
|
|
1987
|
+
'Placeholder for TokenExtension tlv data (unimplemented)'
|
|
2140
1988
|
];
|
|
2141
1989
|
type: {
|
|
2142
1990
|
option: 'bytes';
|
|
2143
1991
|
};
|
|
2144
|
-
}
|
|
1992
|
+
}
|
|
2145
1993
|
];
|
|
2146
1994
|
};
|
|
2147
1995
|
},
|
|
@@ -2197,7 +2045,7 @@ type LightCompressedToken = {
|
|
|
2197
2045
|
{
|
|
2198
2046
|
name: 'isCompress';
|
|
2199
2047
|
type: 'bool';
|
|
2200
|
-
}
|
|
2048
|
+
}
|
|
2201
2049
|
];
|
|
2202
2050
|
};
|
|
2203
2051
|
},
|
|
@@ -2261,7 +2109,7 @@ type LightCompressedToken = {
|
|
|
2261
2109
|
defined: 'CompressedCpiContext';
|
|
2262
2110
|
};
|
|
2263
2111
|
};
|
|
2264
|
-
}
|
|
2112
|
+
}
|
|
2265
2113
|
];
|
|
2266
2114
|
};
|
|
2267
2115
|
},
|
|
@@ -2277,7 +2125,7 @@ type LightCompressedToken = {
|
|
|
2277
2125
|
{
|
|
2278
2126
|
name: 'seq';
|
|
2279
2127
|
type: 'u64';
|
|
2280
|
-
}
|
|
2128
|
+
}
|
|
2281
2129
|
];
|
|
2282
2130
|
};
|
|
2283
2131
|
},
|
|
@@ -2303,7 +2151,7 @@ type LightCompressedToken = {
|
|
|
2303
2151
|
{
|
|
2304
2152
|
name: 'addressMerkleTreeRootIndex';
|
|
2305
2153
|
type: 'u16';
|
|
2306
|
-
}
|
|
2154
|
+
}
|
|
2307
2155
|
];
|
|
2308
2156
|
};
|
|
2309
2157
|
},
|
|
@@ -2321,7 +2169,7 @@ type LightCompressedToken = {
|
|
|
2321
2169
|
{
|
|
2322
2170
|
name: 'merkleTreeIndex';
|
|
2323
2171
|
type: 'u8';
|
|
2324
|
-
}
|
|
2172
|
+
}
|
|
2325
2173
|
];
|
|
2326
2174
|
};
|
|
2327
2175
|
},
|
|
@@ -2345,17 +2193,17 @@ type LightCompressedToken = {
|
|
|
2345
2193
|
{
|
|
2346
2194
|
name: 'rootIndex';
|
|
2347
2195
|
docs: [
|
|
2348
|
-
'Index of root used in inclusion validity proof.'
|
|
2196
|
+
'Index of root used in inclusion validity proof.'
|
|
2349
2197
|
];
|
|
2350
2198
|
type: 'u16';
|
|
2351
2199
|
},
|
|
2352
2200
|
{
|
|
2353
2201
|
name: 'readOnly';
|
|
2354
2202
|
docs: [
|
|
2355
|
-
'Placeholder to mark accounts read-only unimplemented set to false.'
|
|
2203
|
+
'Placeholder to mark accounts read-only unimplemented set to false.'
|
|
2356
2204
|
];
|
|
2357
2205
|
type: 'bool';
|
|
2358
|
-
}
|
|
2206
|
+
}
|
|
2359
2207
|
];
|
|
2360
2208
|
};
|
|
2361
2209
|
},
|
|
@@ -2383,7 +2231,7 @@ type LightCompressedToken = {
|
|
|
2383
2231
|
defined: 'QueueIndex';
|
|
2384
2232
|
};
|
|
2385
2233
|
};
|
|
2386
|
-
}
|
|
2234
|
+
}
|
|
2387
2235
|
];
|
|
2388
2236
|
};
|
|
2389
2237
|
},
|
|
@@ -2413,12 +2261,12 @@ type LightCompressedToken = {
|
|
|
2413
2261
|
{
|
|
2414
2262
|
name: 'tlv';
|
|
2415
2263
|
docs: [
|
|
2416
|
-
'Placeholder for TokenExtension tlv data (unimplemented)'
|
|
2264
|
+
'Placeholder for TokenExtension tlv data (unimplemented)'
|
|
2417
2265
|
];
|
|
2418
2266
|
type: {
|
|
2419
2267
|
option: 'bytes';
|
|
2420
2268
|
};
|
|
2421
|
-
}
|
|
2269
|
+
}
|
|
2422
2270
|
];
|
|
2423
2271
|
};
|
|
2424
2272
|
},
|
|
@@ -2492,7 +2340,7 @@ type LightCompressedToken = {
|
|
|
2492
2340
|
type: {
|
|
2493
2341
|
option: 'bytes';
|
|
2494
2342
|
};
|
|
2495
|
-
}
|
|
2343
|
+
}
|
|
2496
2344
|
];
|
|
2497
2345
|
};
|
|
2498
2346
|
},
|
|
@@ -2510,7 +2358,7 @@ type LightCompressedToken = {
|
|
|
2510
2358
|
name: 'index';
|
|
2511
2359
|
docs: ['Index of compressed account hash in queue.'];
|
|
2512
2360
|
type: 'u16';
|
|
2513
|
-
}
|
|
2361
|
+
}
|
|
2514
2362
|
];
|
|
2515
2363
|
};
|
|
2516
2364
|
},
|
|
@@ -2538,7 +2386,7 @@ type LightCompressedToken = {
|
|
|
2538
2386
|
name: 'delegate';
|
|
2539
2387
|
docs: [
|
|
2540
2388
|
'If `delegate` is `Some` then `delegated_amount` represents',
|
|
2541
|
-
'the amount authorized by the delegate'
|
|
2389
|
+
'the amount authorized by the delegate'
|
|
2542
2390
|
];
|
|
2543
2391
|
type: {
|
|
2544
2392
|
option: 'publicKey';
|
|
@@ -2554,15 +2402,15 @@ type LightCompressedToken = {
|
|
|
2554
2402
|
{
|
|
2555
2403
|
name: 'tlv';
|
|
2556
2404
|
docs: [
|
|
2557
|
-
'Placeholder for TokenExtension tlv data (unimplemented)'
|
|
2405
|
+
'Placeholder for TokenExtension tlv data (unimplemented)'
|
|
2558
2406
|
];
|
|
2559
2407
|
type: {
|
|
2560
2408
|
option: 'bytes';
|
|
2561
2409
|
};
|
|
2562
|
-
}
|
|
2410
|
+
}
|
|
2563
2411
|
];
|
|
2564
2412
|
};
|
|
2565
|
-
}
|
|
2413
|
+
}
|
|
2566
2414
|
];
|
|
2567
2415
|
errors: [
|
|
2568
2416
|
{
|
|
@@ -2719,78 +2567,9 @@ type LightCompressedToken = {
|
|
|
2719
2567
|
{
|
|
2720
2568
|
code: 6032;
|
|
2721
2569
|
name: 'NoMatchingBumpFound';
|
|
2722
|
-
}
|
|
2570
|
+
}
|
|
2723
2571
|
];
|
|
2724
2572
|
};
|
|
2725
2573
|
declare const IDL: LightCompressedToken;
|
|
2726
2574
|
|
|
2727
|
-
export {
|
|
2728
|
-
type ApproveAndMintToParams,
|
|
2729
|
-
COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR,
|
|
2730
|
-
CPI_AUTHORITY_SEED,
|
|
2731
|
-
CREATE_TOKEN_POOL_DISCRIMINATOR,
|
|
2732
|
-
type CompressParams,
|
|
2733
|
-
type CompressSplTokenAccountInstructionData,
|
|
2734
|
-
type CompressSplTokenAccountParams,
|
|
2735
|
-
type CompressedCpiContext,
|
|
2736
|
-
type CompressedTokenInstructionDataTransfer,
|
|
2737
|
-
CompressedTokenInstructionDataTransferLayout,
|
|
2738
|
-
CompressedTokenProgram,
|
|
2739
|
-
CpiContextLayout,
|
|
2740
|
-
type CreateMintParams,
|
|
2741
|
-
type CreateTokenProgramLookupTableParams,
|
|
2742
|
-
type DecompressParams,
|
|
2743
|
-
type DelegatedTransfer,
|
|
2744
|
-
DelegatedTransferLayout,
|
|
2745
|
-
IDL,
|
|
2746
|
-
type InputTokenDataWithContext,
|
|
2747
|
-
type LightCompressedToken,
|
|
2748
|
-
MINT_TO_DISCRIMINATOR,
|
|
2749
|
-
type MergeTokenAccountsParams,
|
|
2750
|
-
type MintToInstructionData,
|
|
2751
|
-
type MintToParams,
|
|
2752
|
-
POOL_SEED,
|
|
2753
|
-
type PackCompressedTokenAccountsParams,
|
|
2754
|
-
type PackedTokenTransferOutputData,
|
|
2755
|
-
type RegisterMintParams,
|
|
2756
|
-
SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE,
|
|
2757
|
-
TRANSFER_DISCRIMINATOR,
|
|
2758
|
-
type TokenData,
|
|
2759
|
-
type TokenTransferOutputData,
|
|
2760
|
-
type TransferParams,
|
|
2761
|
-
type approveAccountsLayoutParams,
|
|
2762
|
-
approveAndMintTo,
|
|
2763
|
-
compress,
|
|
2764
|
-
compressSplTokenAccount,
|
|
2765
|
-
compressSplTokenAccountInstructionDataLayout,
|
|
2766
|
-
createDecompressOutputState,
|
|
2767
|
-
createMint,
|
|
2768
|
-
createTokenPool,
|
|
2769
|
-
createTokenPoolAccountsLayout,
|
|
2770
|
-
type createTokenPoolAccountsLayoutParams,
|
|
2771
|
-
createTokenProgramLookupTable,
|
|
2772
|
-
createTransferOutputState,
|
|
2773
|
-
decodeCompressSplTokenAccountInstructionData,
|
|
2774
|
-
decodeMintToInstructionData,
|
|
2775
|
-
decodeTransferInstructionData,
|
|
2776
|
-
decompress,
|
|
2777
|
-
encodeCompressSplTokenAccountInstructionData,
|
|
2778
|
-
encodeMintToInstructionData,
|
|
2779
|
-
encodeTransferInstructionData,
|
|
2780
|
-
type freezeAccountsLayoutParams,
|
|
2781
|
-
mergeTokenAccounts,
|
|
2782
|
-
mintTo,
|
|
2783
|
-
mintToAccountsLayout,
|
|
2784
|
-
type mintToAccountsLayoutParams,
|
|
2785
|
-
mintToLayout,
|
|
2786
|
-
packCompressedTokenAccounts,
|
|
2787
|
-
parseTokenData,
|
|
2788
|
-
type revokeAccountsLayoutParams,
|
|
2789
|
-
selectMinCompressedTokenAccountsForTransfer,
|
|
2790
|
-
sumUpTokenAmount,
|
|
2791
|
-
type thawAccountsLayoutParams,
|
|
2792
|
-
transfer,
|
|
2793
|
-
transferAccountsLayout,
|
|
2794
|
-
type transferAccountsLayoutParams,
|
|
2795
|
-
validateSameTokenOwner,
|
|
2796
|
-
};
|
|
2575
|
+
export { type ApproveAndMintToParams, COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR, CPI_AUTHORITY_SEED, CREATE_TOKEN_POOL_DISCRIMINATOR, type CompressParams, type CompressSplTokenAccountInstructionData, type CompressSplTokenAccountParams, type CompressedCpiContext, type CompressedTokenInstructionDataTransfer, CompressedTokenInstructionDataTransferLayout, CompressedTokenProgram, CpiContextLayout, type CreateMintParams, type CreateTokenProgramLookupTableParams, type DecompressParams, type DelegatedTransfer, DelegatedTransferLayout, IDL, type InputTokenDataWithContext, type LightCompressedToken, MINT_TO_DISCRIMINATOR, type MergeTokenAccountsParams, type MintToInstructionData, type MintToParams, POOL_SEED, type PackCompressedTokenAccountsParams, type PackedTokenTransferOutputData, type RegisterMintParams, SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE, TRANSFER_DISCRIMINATOR, type TokenData, type TokenTransferOutputData, type TransferParams, type approveAccountsLayoutParams, approveAndMintTo, compress, compressSplTokenAccount, compressSplTokenAccountInstructionDataLayout, createDecompressOutputState, createMint, createTokenPool, createTokenPoolAccountsLayout, type createTokenPoolAccountsLayoutParams, createTokenProgramLookupTable, createTransferOutputState, decodeCompressSplTokenAccountInstructionData, decodeMintToInstructionData, decodeTransferInstructionData, decompress, encodeCompressSplTokenAccountInstructionData, encodeMintToInstructionData, encodeTransferInstructionData, type freezeAccountsLayoutParams, mergeTokenAccounts, mintTo, mintToAccountsLayout, type mintToAccountsLayoutParams, mintToLayout, packCompressedTokenAccounts, parseTokenData, type revokeAccountsLayoutParams, selectMinCompressedTokenAccountsForTransfer, sumUpTokenAmount, type thawAccountsLayoutParams, transfer, transferAccountsLayout, type transferAccountsLayoutParams, validateSameTokenOwner };
|