@lightprotocol/compressed-token 0.23.0-beta.9 → 0.23.0

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,249 +1,2 @@
1
- 'use strict';
2
- var e = require('./types-EuCij2TU.cjs');
3
- (require('@solana/web3.js'),
4
- require('buffer'),
5
- require('@lightprotocol/stateless.js'));
6
- var t = require('@solana/spl-token');
7
- (require('@coral-xyz/borsh'),
8
- (exports.ADD_TOKEN_POOL_DISCRIMINATOR = e.ADD_TOKEN_POOL_DISCRIMINATOR),
9
- (exports.APPROVE_DISCRIMINATOR = e.APPROVE_DISCRIMINATOR),
10
- Object.defineProperty(exports, 'Action', {
11
- enumerable: 1,
12
- get: function () {
13
- return e.Action;
14
- },
15
- }),
16
- (exports.BASE_RENT_PER_EPOCH = e.BASE_RENT_PER_EPOCH),
17
- (exports.BATCH_COMPRESS_DISCRIMINATOR = e.BATCH_COMPRESS_DISCRIMINATOR),
18
- (exports.COMPRESSIBLE_CTOKEN_ACCOUNT_SIZE =
19
- e.COMPRESSIBLE_CTOKEN_ACCOUNT_SIZE),
20
- (exports.COMPRESSIBLE_CTOKEN_RENT_PER_EPOCH =
21
- e.COMPRESSIBLE_CTOKEN_RENT_PER_EPOCH),
22
- (exports.COMPRESSION_COST = e.COMPRESSION_COST),
23
- (exports.COMPRESSION_INCENTIVE = e.COMPRESSION_INCENTIVE),
24
- (exports.COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR =
25
- e.COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR),
26
- (exports.CPI_AUTHORITY_SEED = e.CPI_AUTHORITY_SEED),
27
- (exports.CREATE_TOKEN_POOL_DISCRIMINATOR =
28
- e.CREATE_TOKEN_POOL_DISCRIMINATOR),
29
- (exports.CompressedTokenInstructionDataApproveLayout =
30
- e.CompressedTokenInstructionDataApproveLayout),
31
- (exports.CompressedTokenInstructionDataRevokeLayout =
32
- e.CompressedTokenInstructionDataRevokeLayout),
33
- (exports.CompressedTokenInstructionDataTransferLayout =
34
- e.CompressedTokenInstructionDataTransferLayout),
35
- (exports.CompressedTokenProgram = e.CompressedTokenProgram),
36
- (exports.CpiContextLayout = e.CpiContextLayout),
37
- (exports.DECOMPRESS_ACCOUNTS_IDEMPOTENT_DISCRIMINATOR =
38
- e.DECOMPRESS_ACCOUNTS_IDEMPOTENT_DISCRIMINATOR),
39
- (exports.DEFAULT_COMPRESSIBLE_CONFIG = e.DEFAULT_COMPRESSIBLE_CONFIG),
40
- (exports.DEFAULT_PREPAY_EPOCHS = e.DEFAULT_PREPAY_EPOCHS),
41
- (exports.DEFAULT_WRITE_TOP_UP = e.DEFAULT_WRITE_TOP_UP),
42
- (exports.DelegatedTransferLayout = e.DelegatedTransferLayout),
43
- (exports.ERROR_MIXED_TREE_TYPES = e.ERROR_MIXED_TREE_TYPES),
44
- (exports.ERROR_NO_ACCOUNTS_FOUND = e.ERROR_NO_ACCOUNTS_FOUND),
45
- Object.defineProperty(exports, 'ExtensionType', {
46
- enumerable: 1,
47
- get: function () {
48
- return e.ExtensionType;
49
- },
50
- }),
51
- (exports.IDL = e.IDL),
52
- (exports.LIGHT_TOKEN_CONFIG = e.LIGHT_TOKEN_CONFIG),
53
- (exports.LIGHT_TOKEN_RENT_SPONSOR = e.LIGHT_TOKEN_RENT_SPONSOR),
54
- (exports.LightTokenProgram = e.CompressedTokenProgram),
55
- (exports.MAX_COMBINED_BATCH_BYTES = e.MAX_COMBINED_BATCH_BYTES),
56
- (exports.MAX_LOAD_ONLY_BATCH_BYTES = e.MAX_LOAD_ONLY_BATCH_BYTES),
57
- (exports.MAX_TOP_UP = e.MAX_TOP_UP),
58
- (exports.MAX_TRANSACTION_SIZE = e.MAX_TRANSACTION_SIZE),
59
- (exports.MINT_TO_DISCRIMINATOR = e.MINT_TO_DISCRIMINATOR),
60
- (exports.POOL_SEED = e.POOL_SEED),
61
- (exports.RENT_PER_BYTE_PER_EPOCH = e.RENT_PER_BYTE_PER_EPOCH),
62
- (exports.REVOKE_DISCRIMINATOR = e.REVOKE_DISCRIMINATOR),
63
- (exports.SLOTS_PER_RENT_EPOCH = e.SLOTS_PER_RENT_EPOCH),
64
- (exports.SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE =
65
- e.SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE),
66
- (exports.TOTAL_COMPRESSION_COST = e.TOTAL_COMPRESSION_COST),
67
- (exports.TRANSFER_DISCRIMINATOR = e.TRANSFER_DISCRIMINATOR),
68
- Object.defineProperty(exports, 'TokenDataVersion', {
69
- enumerable: 1,
70
- get: function () {
71
- return e.TokenDataVersion;
72
- },
73
- }),
74
- (exports.addSplInterfaces = e.addSplInterfaces),
75
- (exports.addTokenPoolAccountsLayout = e.addTokenPoolAccountsLayout),
76
- (exports.addTokenPools = e.addTokenPools),
77
- (exports.approve = e.approve),
78
- (exports.approveAccountsLayout = e.approveAccountsLayout),
79
- (exports.approveAndMintTo = e.approveAndMintTo),
80
- (exports.batchCompressLayout = e.batchCompressLayout),
81
- (exports.calculateCompressibleLoadComputeUnits =
82
- e.calculateCompressibleLoadComputeUnits),
83
- (exports.calculateFeePayerCostAtCreation =
84
- e.calculateFeePayerCostAtCreation),
85
- (exports.checkMint = e.checkMint),
86
- (exports.checkSplInterfaceInfo = e.checkSplInterfaceInfo),
87
- (exports.checkTokenPoolInfo = e.checkTokenPoolInfo),
88
- (exports.compress = e.compress),
89
- (exports.compressSplTokenAccount = e.compressSplTokenAccount),
90
- (exports.compressSplTokenAccountInstructionDataLayout =
91
- e.compressSplTokenAccountInstructionDataLayout),
92
- (exports.convertTokenDataToAccount = e.convertTokenDataToAccount),
93
- (exports.createAssociatedCTokenAccountIdempotentInstruction =
94
- e.createAssociatedCTokenAccountIdempotentInstruction),
95
- (exports.createAssociatedCTokenAccountInstruction =
96
- e.createAssociatedCTokenAccountInstruction),
97
- (exports.createAssociatedTokenAccountInterfaceIdempotentInstruction =
98
- e.createAssociatedTokenAccountInterfaceIdempotentInstruction),
99
- (exports.createAssociatedTokenAccountInterfaceInstruction =
100
- e.createAssociatedTokenAccountInterfaceInstruction),
101
- (exports.createAtaInterface = e.createAtaInterface),
102
- (exports.createAtaInterfaceIdempotent = e.createAtaInterfaceIdempotent),
103
- (exports.createAtaInterfaceIdempotentInstruction =
104
- e.createAtaInterfaceIdempotentInstruction),
105
- (exports.createDecompressInterfaceInstruction =
106
- e.createDecompressInterfaceInstruction),
107
- (exports.createDecompressOutputState = e.createDecompressOutputState),
108
- (exports.createLightTokenTransferInstruction =
109
- e.createLightTokenTransferInstruction),
110
- (exports.createLoadAccountsParams = e.createLoadAccountsParams),
111
- (exports.createLoadAtaInstructionsFromInterface =
112
- e.createLoadAtaInstructionsFromInterface),
113
- (exports.createMint = e.createMint),
114
- (exports.createMintInstruction = e.createMintInstruction),
115
- (exports.createMintInterface = e.createMintInterface),
116
- (exports.createMintToCompressedInstruction =
117
- e.createMintToCompressedInstruction),
118
- (exports.createMintToInstruction = e.createMintToInstruction),
119
- (exports.createMintToInterfaceInstruction =
120
- e.createMintToInterfaceInstruction),
121
- (exports.createRemoveMetadataKeyInstruction =
122
- e.createRemoveMetadataKeyInstruction),
123
- (exports.createSplInterface = e.createSplInterface),
124
- (exports.createTokenMetadata = e.createTokenMetadata),
125
- (exports.createTokenPool = e.createTokenPool),
126
- (exports.createTokenPoolAccountsLayout = e.createTokenPoolAccountsLayout),
127
- (exports.createTokenProgramLookupTable = e.createTokenProgramLookupTable),
128
- (exports.createTransferInterfaceInstructions =
129
- e.createTransferInterfaceInstructions),
130
- (exports.createTransferOutputState = e.createTransferOutputState),
131
- (exports.createUnwrapInstruction = e.createUnwrapInstruction),
132
- (exports.createUnwrapInstructions = e.createUnwrapInstructions),
133
- (exports.createUpdateFreezeAuthorityInstruction =
134
- e.createUpdateFreezeAuthorityInstruction),
135
- (exports.createUpdateMetadataAuthorityInstruction =
136
- e.createUpdateMetadataAuthorityInstruction),
137
- (exports.createUpdateMetadataFieldInstruction =
138
- e.createUpdateMetadataFieldInstruction),
139
- (exports.createUpdateMintAuthorityInstruction =
140
- e.createUpdateMintAuthorityInstruction),
141
- (exports.createWrapInstruction = e.createWrapInstruction),
142
- (exports.decodeApproveInstructionData = e.decodeApproveInstructionData),
143
- (exports.decodeBatchCompressInstructionData =
144
- e.decodeBatchCompressInstructionData),
145
- (exports.decodeCompressSplTokenAccountInstructionData =
146
- e.decodeCompressSplTokenAccountInstructionData),
147
- (exports.decodeMintToInstructionData = e.decodeMintToInstructionData),
148
- (exports.decodeRevokeInstructionData = e.decodeRevokeInstructionData),
149
- (exports.decodeTokenMetadata = e.decodeTokenMetadata),
150
- (exports.decodeTransferInstructionData = e.decodeTransferInstructionData),
151
- (exports.decompress = e.decompress),
152
- (exports.decompressDelegated = e.decompressDelegated),
153
- (exports.decompressInterface = e.decompressInterface),
154
- (exports.deriveSplInterfaceInfo = e.deriveSplInterfaceInfo),
155
- (exports.deriveTokenPoolInfo = e.deriveTokenPoolInfo),
156
- (exports.deserializeMint = e.deserializeMint),
157
- (exports.encodeApproveInstructionData = e.encodeApproveInstructionData),
158
- (exports.encodeBatchCompressInstructionData =
159
- e.encodeBatchCompressInstructionData),
160
- (exports.encodeCompressSplTokenAccountInstructionData =
161
- e.encodeCompressSplTokenAccountInstructionData),
162
- (exports.encodeMintToInstructionData = e.encodeMintToInstructionData),
163
- (exports.encodeRevokeInstructionData = e.encodeRevokeInstructionData),
164
- (exports.encodeTokenMetadata = e.encodeTokenMetadata),
165
- (exports.encodeTransferInstructionData = e.encodeTransferInstructionData),
166
- (exports.estimateTransactionSize = e.estimateTransactionSize),
167
- (exports.extractTokenMetadata = e.extractTokenMetadata),
168
- (exports.freezeAccountsLayout = e.freezeAccountsLayout),
169
- (exports.getAccountInterface = e.getAccountInterface),
170
- (exports.getAssociatedTokenAddressInterface =
171
- e.getAssociatedTokenAddressInterface),
172
- (exports.getMintInterface = e.getMintInterface),
173
- (exports.getOrCreateAtaInterface = e.getOrCreateAtaInterface),
174
- (exports.getSplInterfaceInfos = e.getSplInterfaceInfos),
175
- (exports.getTokenPoolInfos = e.getTokenPoolInfos),
176
- (exports.groupAccountsByTreeType = e.groupAccountsByTreeType),
177
- (exports.isSingleSplInterfaceInfo = e.isSingleSplInterfaceInfo),
178
- (exports.isSingleTokenPoolInfo = e.isSingleTokenPoolInfo),
179
- (exports.mergeTokenAccounts = e.mergeTokenAccounts),
180
- (exports.mintTo = e.mintTo$1),
181
- (exports.mintToAccountsLayout = e.mintToAccountsLayout),
182
- (exports.mintToCToken = e.mintTo),
183
- (exports.mintToCompressed = e.mintToCompressed),
184
- (exports.mintToInterface = e.mintToInterface),
185
- (exports.mintToLayout = e.mintToLayout),
186
- (exports.packCompressedTokenAccounts = e.packCompressedTokenAccounts),
187
- (exports.parseCTokenCold = e.parseCTokenCold),
188
- (exports.parseCTokenHot = e.parseCTokenHot),
189
- (exports.parseMaybeDelegatedTransfer = e.parseMaybeDelegatedTransfer),
190
- (exports.parseTokenData = e.parseTokenData),
191
- (exports.removeMetadataKey = e.removeMetadataKey),
192
- (exports.rentPerEpoch = e.rentPerEpoch),
193
- (exports.revoke = e.revoke),
194
- (exports.revokeAccountsLayout = e.revokeAccountsLayout),
195
- (exports.selectAccountsByPreferredTreeType =
196
- e.selectAccountsByPreferredTreeType),
197
- (exports.selectInputsForAmount = e.selectInputsForAmount),
198
- (exports.selectMinCompressedTokenAccountsForDecompression =
199
- e.selectMinCompressedTokenAccountsForDecompression),
200
- (exports.selectMinCompressedTokenAccountsForTransfer =
201
- e.selectMinCompressedTokenAccountsForTransfer),
202
- (exports.selectMinCompressedTokenAccountsForTransferOrPartial =
203
- e.selectMinCompressedTokenAccountsForTransferOrPartial),
204
- (exports.selectSmartCompressedTokenAccountsForTransfer =
205
- e.selectSmartCompressedTokenAccountsForTransfer),
206
- (exports.selectSmartCompressedTokenAccountsForTransferOrPartial =
207
- e.selectSmartCompressedTokenAccountsForTransferOrPartial),
208
- (exports.selectSplInterfaceInfo = e.selectSplInterfaceInfo),
209
- (exports.selectSplInterfaceInfosForDecompression =
210
- e.selectSplInterfaceInfosForDecompression),
211
- (exports.selectTokenAccountsForApprove = e.selectTokenAccountsForApprove),
212
- (exports.selectTokenPoolInfo = e.selectTokenPoolInfo),
213
- (exports.selectTokenPoolInfosForDecompression =
214
- e.selectTokenPoolInfosForDecompression),
215
- (exports.serializeMint = e.serializeMint),
216
- (exports.sliceLast = e.sliceLast),
217
- (exports.sumUpTokenAmount = e.sumUpTokenAmount),
218
- (exports.thawAccountsLayout = e.thawAccountsLayout),
219
- (exports.toAccountInfo = e.toAccountInfo),
220
- (exports.toOffChainMetadataJson = e.toOffChainMetadataJson),
221
- (exports.toTokenPoolInfo = e.toTokenPoolInfo),
222
- (exports.transfer = e.transfer),
223
- (exports.transferAccountsLayout = e.transferAccountsLayout),
224
- (exports.transferDelegated = e.transferDelegated),
225
- (exports.transferInterface = e.transferInterface),
226
- (exports.unpackMintData = e.unpackMintData),
227
- (exports.unpackMintInterface = e.unpackMintInterface),
228
- (exports.updateFreezeAuthority = e.updateFreezeAuthority),
229
- (exports.updateMetadataAuthority = e.updateMetadataAuthority),
230
- (exports.updateMetadataField = e.updateMetadataField),
231
- (exports.updateMintAuthority = e.updateMintAuthority),
232
- (exports.validateSameTokenOwner = e.validateSameTokenOwner),
233
- (exports.wrap = e.wrap),
234
- Object.defineProperty(exports, 'AccountState', {
235
- enumerable: 1,
236
- get: function () {
237
- return t.AccountState;
238
- },
239
- }),
240
- (exports.createLoadAtaInstructions = async function (t, o, r, n, s, a) {
241
- return e.createLoadAtaInstructions(t, o, r, n, s, a, 0);
242
- }),
243
- (exports.getAtaInterface = async function (t, o, r, n, s, a) {
244
- return e.getAtaInterface(t, o, r, n, s, a);
245
- }),
246
- (exports.loadAta = async function (t, o, r, n, s, a, c) {
247
- return e.loadAta(t, o, r, n, s, a, c, 0);
248
- }));
1
+ "use strict";var e=require("./types-eEaQmC1R.cjs");require("@solana/web3.js"),require("buffer"),require("@lightprotocol/stateless.js");var t=require("@solana/spl-token");require("@coral-xyz/borsh"),exports.ADD_TOKEN_POOL_DISCRIMINATOR=e.ADD_TOKEN_POOL_DISCRIMINATOR,exports.APPROVE_DISCRIMINATOR=e.APPROVE_DISCRIMINATOR,Object.defineProperty(exports,"Action",{enumerable:!0,get:function(){return e.Action}}),exports.BASE_RENT_PER_EPOCH=e.BASE_RENT_PER_EPOCH,exports.BATCH_COMPRESS_DISCRIMINATOR=e.BATCH_COMPRESS_DISCRIMINATOR,exports.COMPRESSIBLE_LIGHT_TOKEN_ACCOUNT_SIZE=e.COMPRESSIBLE_LIGHT_TOKEN_ACCOUNT_SIZE,exports.COMPRESSIBLE_LIGHT_TOKEN_RENT_PER_EPOCH=e.COMPRESSIBLE_LIGHT_TOKEN_RENT_PER_EPOCH,exports.COMPRESSION_COST=e.COMPRESSION_COST,exports.COMPRESSION_INCENTIVE=e.COMPRESSION_INCENTIVE,exports.COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR=e.COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR,exports.CPI_AUTHORITY_SEED=e.CPI_AUTHORITY_SEED,exports.CREATE_TOKEN_POOL_DISCRIMINATOR=e.CREATE_TOKEN_POOL_DISCRIMINATOR,exports.CompressedTokenInstructionDataApproveLayout=e.CompressedTokenInstructionDataApproveLayout,exports.CompressedTokenInstructionDataRevokeLayout=e.CompressedTokenInstructionDataRevokeLayout,exports.CompressedTokenInstructionDataTransferLayout=e.CompressedTokenInstructionDataTransferLayout,exports.CompressedTokenProgram=e.CompressedTokenProgram,exports.CpiContextLayout=e.CpiContextLayout,exports.DEFAULT_COMPRESSIBLE_CONFIG=e.DEFAULT_COMPRESSIBLE_CONFIG,exports.DEFAULT_PREPAY_EPOCHS=e.DEFAULT_PREPAY_EPOCHS,exports.DEFAULT_WRITE_TOP_UP=e.DEFAULT_WRITE_TOP_UP,exports.DelegatedTransferLayout=e.DelegatedTransferLayout,exports.ERROR_MIXED_TREE_TYPES=e.ERROR_MIXED_TREE_TYPES,exports.ERROR_NO_ACCOUNTS_FOUND=e.ERROR_NO_ACCOUNTS_FOUND,Object.defineProperty(exports,"ExtensionType",{enumerable:!0,get:function(){return e.ExtensionType}}),exports.IDL=e.IDL,exports.LIGHT_TOKEN_CONFIG=e.LIGHT_TOKEN_CONFIG,exports.LIGHT_TOKEN_RENT_SPONSOR=e.LIGHT_TOKEN_RENT_SPONSOR,exports.LightTokenProgram=e.CompressedTokenProgram,exports.MAX_COMBINED_BATCH_BYTES=e.MAX_COMBINED_BATCH_BYTES,exports.MAX_LOAD_ONLY_BATCH_BYTES=e.MAX_LOAD_ONLY_BATCH_BYTES,exports.MAX_TOP_UP=e.MAX_TOP_UP,exports.MAX_TRANSACTION_SIZE=e.MAX_TRANSACTION_SIZE,exports.MINT_TO_DISCRIMINATOR=e.MINT_TO_DISCRIMINATOR,exports.POOL_SEED=e.POOL_SEED,exports.RENT_PER_BYTE_PER_EPOCH=e.RENT_PER_BYTE_PER_EPOCH,exports.REVOKE_DISCRIMINATOR=e.REVOKE_DISCRIMINATOR,exports.SLOTS_PER_RENT_EPOCH=e.SLOTS_PER_RENT_EPOCH,exports.SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE=e.SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE,exports.TOTAL_COMPRESSION_COST=e.TOTAL_COMPRESSION_COST,exports.TRANSFER_DISCRIMINATOR=e.TRANSFER_DISCRIMINATOR,Object.defineProperty(exports,"TokenDataVersion",{enumerable:!0,get:function(){return e.TokenDataVersion}}),exports.addSplInterfaces=e.addSplInterfaces,exports.addTokenPoolAccountsLayout=e.addTokenPoolAccountsLayout,exports.addTokenPools=e.addTokenPools,exports.approve=e.approve,exports.approveAccountsLayout=e.approveAccountsLayout,exports.approveAndMintTo=e.approveAndMintTo,exports.approveInterface=e.approveInterface,exports.batchCompressLayout=e.batchCompressLayout,exports.calculateFeePayerCostAtCreation=e.calculateFeePayerCostAtCreation,exports.checkMint=e.checkMint,exports.checkSplInterfaceInfo=e.checkSplInterfaceInfo,exports.checkTokenPoolInfo=e.checkTokenPoolInfo,exports.compress=e.compress,exports.compressSplTokenAccount=e.compressSplTokenAccount,exports.compressSplTokenAccountInstructionDataLayout=e.compressSplTokenAccountInstructionDataLayout,exports.convertTokenDataToAccount=e.convertTokenDataToAccount,exports.createApproveInterfaceInstructions=e.createApproveInterfaceInstructions,exports.createAssociatedLightTokenAccountIdempotentInstruction=e.createAssociatedLightTokenAccountIdempotentInstruction,exports.createAssociatedLightTokenAccountInstruction=e.createAssociatedLightTokenAccountInstruction,exports.createAssociatedTokenAccountInterfaceIdempotentInstruction=e.createAssociatedTokenAccountInterfaceIdempotentInstruction,exports.createAssociatedTokenAccountInterfaceInstruction=e.createAssociatedTokenAccountInterfaceInstruction,exports.createAtaInterface=e.createAtaInterface,exports.createAtaInterfaceIdempotent=e.createAtaInterfaceIdempotent,exports.createAtaInterfaceIdempotentInstruction=e.createAtaInterfaceIdempotentInstruction,exports.createDecompressOutputState=e.createDecompressOutputState,exports.createLightTokenApproveInstruction=e.createLightTokenApproveInstruction,exports.createLightTokenFreezeAccountInstruction=e.createLightTokenFreezeAccountInstruction,exports.createLightTokenRevokeInstruction=e.createLightTokenRevokeInstruction,exports.createLightTokenThawAccountInstruction=e.createLightTokenThawAccountInstruction,exports.createLightTokenTransferCheckedInstruction=e.createLightTokenTransferCheckedInstruction,exports.createLightTokenTransferInstruction=e.createLightTokenTransferInstruction,exports.createMint=e.createMint,exports.createMintInstruction=e.createMintInstruction,exports.createMintInterface=e.createMintInterface,exports.createMintToCompressedInstruction=e.createMintToCompressedInstruction,exports.createMintToInstruction=e.createMintToInstruction,exports.createMintToInterfaceInstruction=e.createMintToInterfaceInstruction,exports.createRemoveMetadataKeyInstruction=e.createRemoveMetadataKeyInstruction,exports.createRevokeInterfaceInstructions=e.createRevokeInterfaceInstructions,exports.createSplInterface=e.createSplInterface,exports.createTokenMetadata=e.createTokenMetadata,exports.createTokenPool=e.createTokenPool,exports.createTokenPoolAccountsLayout=e.createTokenPoolAccountsLayout,exports.createTokenProgramLookupTable=e.createTokenProgramLookupTable,exports.createTransferInterfaceInstructions=e.createTransferInterfaceInstructions,exports.createTransferOutputState=e.createTransferOutputState,exports.createTransferToAccountInterfaceInstructions=e.createTransferToAccountInterfaceInstructions,exports.createUnwrapInstruction=e.createUnwrapInstruction,exports.createUnwrapInstructions=e.createUnwrapInstructions,exports.createUpdateFreezeAuthorityInstruction=e.createUpdateFreezeAuthorityInstruction,exports.createUpdateMetadataAuthorityInstruction=e.createUpdateMetadataAuthorityInstruction,exports.createUpdateMetadataFieldInstruction=e.createUpdateMetadataFieldInstruction,exports.createUpdateMintAuthorityInstruction=e.createUpdateMintAuthorityInstruction,exports.createWrapInstruction=e.createWrapInstruction,exports.decodeApproveInstructionData=e.decodeApproveInstructionData,exports.decodeBatchCompressInstructionData=e.decodeBatchCompressInstructionData,exports.decodeCompressSplTokenAccountInstructionData=e.decodeCompressSplTokenAccountInstructionData,exports.decodeMintToInstructionData=e.decodeMintToInstructionData,exports.decodeRevokeInstructionData=e.decodeRevokeInstructionData,exports.decodeTokenMetadata=e.decodeTokenMetadata,exports.decodeTransferInstructionData=e.decodeTransferInstructionData,exports.decompress=e.decompress,exports.decompressDelegated=e.decompressDelegated,exports.deriveSplInterfaceInfo=e.deriveSplInterfaceInfo,exports.deriveTokenPoolInfo=e.deriveTokenPoolInfo,exports.deserializeMint=e.deserializeMint,exports.encodeApproveInstructionData=e.encodeApproveInstructionData,exports.encodeBatchCompressInstructionData=e.encodeBatchCompressInstructionData,exports.encodeCompressSplTokenAccountInstructionData=e.encodeCompressSplTokenAccountInstructionData,exports.encodeMintToInstructionData=e.encodeMintToInstructionData,exports.encodeRevokeInstructionData=e.encodeRevokeInstructionData,exports.encodeTokenMetadata=e.encodeTokenMetadata,exports.encodeTransferInstructionData=e.encodeTransferInstructionData,exports.estimateTransactionSize=e.estimateTransactionSize,exports.extractTokenMetadata=e.extractTokenMetadata,exports.freezeAccountsLayout=e.freezeAccountsLayout,exports.getAccountInterface=e.getAccountInterface,exports.getAssociatedTokenAddressInterface=e.getAssociatedTokenAddressInterface,exports.getMintInterface=e.getMintInterface,exports.getOrCreateAtaInterface=e.getOrCreateAtaInterface,exports.getSplInterfaceInfos=e.getSplInterfaceInfos,exports.getTokenPoolInfos=e.getTokenPoolInfos,exports.groupAccountsByTreeType=e.groupAccountsByTreeType,exports.isSingleSplInterfaceInfo=e.isSingleSplInterfaceInfo,exports.isSingleTokenPoolInfo=e.isSingleTokenPoolInfo,exports.mergeTokenAccounts=e.mergeTokenAccounts,exports.mintTo=e.mintTo$1,exports.mintToAccountsLayout=e.mintToAccountsLayout,exports.mintToCompressed=e.mintToCompressed,exports.mintToInterface=e.mintToInterface,exports.mintToLayout=e.mintToLayout,exports.mintToLightToken=e.mintTo,exports.packCompressedTokenAccounts=e.packCompressedTokenAccounts,exports.parseLightTokenCold=e.parseLightTokenCold,exports.parseLightTokenHot=e.parseLightTokenHot,exports.parseMaybeDelegatedTransfer=e.parseMaybeDelegatedTransfer,exports.parseTokenData=e.parseTokenData,exports.removeMetadataKey=e.removeMetadataKey,exports.rentPerEpoch=e.rentPerEpoch,exports.revoke=e.revoke,exports.revokeAccountsLayout=e.revokeAccountsLayout,exports.revokeInterface=e.revokeInterface,exports.selectAccountsByPreferredTreeType=e.selectAccountsByPreferredTreeType,exports.selectInputsForAmount=e.selectInputsForAmount,exports.selectMinCompressedTokenAccountsForDecompression=e.selectMinCompressedTokenAccountsForDecompression,exports.selectMinCompressedTokenAccountsForTransfer=e.selectMinCompressedTokenAccountsForTransfer,exports.selectMinCompressedTokenAccountsForTransferOrPartial=e.selectMinCompressedTokenAccountsForTransferOrPartial,exports.selectSmartCompressedTokenAccountsForTransfer=e.selectSmartCompressedTokenAccountsForTransfer,exports.selectSmartCompressedTokenAccountsForTransferOrPartial=e.selectSmartCompressedTokenAccountsForTransferOrPartial,exports.selectSplInterfaceInfo=e.selectSplInterfaceInfo,exports.selectSplInterfaceInfosForDecompression=e.selectSplInterfaceInfosForDecompression,exports.selectTokenAccountsForApprove=e.selectTokenAccountsForApprove,exports.selectTokenPoolInfo=e.selectTokenPoolInfo,exports.selectTokenPoolInfosForDecompression=e.selectTokenPoolInfosForDecompression,exports.serializeMint=e.serializeMint,exports.sliceLast=e.sliceLast,exports.sumUpTokenAmount=e.sumUpTokenAmount,exports.thawAccountsLayout=e.thawAccountsLayout,exports.toAccountInfo=e.toAccountInfo,exports.toOffChainMetadataJson=e.toOffChainMetadataJson,exports.toTokenPoolInfo=e.toTokenPoolInfo,exports.transfer=e.transfer,exports.transferAccountsLayout=e.transferAccountsLayout,exports.transferDelegated=e.transferDelegated,exports.transferInterface=e.transferInterface,exports.transferToAccountInterface=e.transferToAccountInterface,exports.unpackMintData=e.unpackMintData,exports.unpackMintInterface=e.unpackMintInterface,exports.updateFreezeAuthority=e.updateFreezeAuthority,exports.updateMetadataAuthority=e.updateMetadataAuthority,exports.updateMetadataField=e.updateMetadataField,exports.updateMintAuthority=e.updateMintAuthority,exports.validateSameTokenOwner=e.validateSameTokenOwner,exports.wrap=e.wrap,Object.defineProperty(exports,"AccountState",{enumerable:!0,get:function(){return t.AccountState}}),exports.createLoadAtaInstructions=async function(t,o,r,n,s,a){const c=await e.getMintInterface(t,n);return e.createLoadAtaInstructions(t,o,r,n,c.mint.decimals,s,a)},exports.getAtaInterface=async function(t,o,r,n,s,a){return e.getAtaInterface(t,o,r,n,s,a)},exports.loadAta=async function(t,o,r,n,s,a,c,p){return e.loadAta(t,o,r,n,s,a,c,p)};
249
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../src/index.ts"],"sourcesContent":["import type {\n Commitment,\n PublicKey,\n Signer,\n ConfirmOptions,\n TransactionInstruction,\n TransactionSignature,\n} from '@solana/web3.js';\nimport type { Rpc } from '@lightprotocol/stateless.js';\nimport type {\n AccountInterface as MintAccountInterface,\n InterfaceOptions,\n} from './v3';\nimport { getAtaInterface as _mintGetAtaInterface } from './v3';\n\nexport * from './actions';\nexport * from './utils';\nexport * from './constants';\nexport * from './idl';\nexport * from './layout';\nexport * from './program';\nexport { CompressedTokenProgram as LightTokenProgram } from './program';\nexport * from './types';\nimport {\n createLoadAccountsParams,\n createLoadAtaInstructionsFromInterface,\n createLoadAtaInstructions as _createLoadAtaInstructions,\n loadAta as _loadAta,\n calculateCompressibleLoadComputeUnits,\n selectInputsForAmount,\n CompressibleAccountInput,\n ParsedAccountInfoInterface,\n CompressibleLoadParams,\n PackedCompressedAccount,\n LoadResult,\n} from './v3/actions/load-ata';\n\nexport {\n createLoadAccountsParams,\n createLoadAtaInstructionsFromInterface,\n calculateCompressibleLoadComputeUnits,\n selectInputsForAmount,\n CompressibleAccountInput,\n ParsedAccountInfoInterface,\n CompressibleLoadParams,\n PackedCompressedAccount,\n LoadResult,\n};\n\nexport {\n estimateTransactionSize,\n MAX_TRANSACTION_SIZE,\n MAX_COMBINED_BATCH_BYTES,\n MAX_LOAD_ONLY_BATCH_BYTES,\n} from './v3/utils/estimate-tx-size';\n\n// Export mint module with explicit naming to avoid conflicts\nexport {\n // Instructions\n createMintInstruction,\n createTokenMetadata,\n createAssociatedCTokenAccountInstruction,\n createAssociatedCTokenAccountIdempotentInstruction,\n createAssociatedTokenAccountInterfaceInstruction,\n createAssociatedTokenAccountInterfaceIdempotentInstruction,\n createAtaInterfaceIdempotentInstruction,\n createMintToInstruction,\n createMintToCompressedInstruction,\n createMintToInterfaceInstruction,\n createUpdateMintAuthorityInstruction,\n createUpdateFreezeAuthorityInstruction,\n createUpdateMetadataFieldInstruction,\n createUpdateMetadataAuthorityInstruction,\n createRemoveMetadataKeyInstruction,\n createWrapInstruction,\n createUnwrapInstruction,\n createUnwrapInstructions,\n createDecompressInterfaceInstruction,\n createLightTokenTransferInstruction,\n // Types\n TokenMetadataInstructionData,\n CompressibleConfig,\n CTokenConfig,\n CreateAssociatedCTokenAccountParams,\n // Constants for rent sponsor\n DEFAULT_COMPRESSIBLE_CONFIG,\n // Actions\n createMintInterface,\n createAtaInterface,\n createAtaInterfaceIdempotent,\n getAssociatedTokenAddressInterface,\n getOrCreateAtaInterface,\n transferInterface,\n createTransferInterfaceInstructions,\n sliceLast,\n decompressInterface,\n wrap,\n mintTo as mintToCToken,\n mintToCompressed,\n mintToInterface,\n updateMintAuthority,\n updateFreezeAuthority,\n updateMetadataField,\n updateMetadataAuthority,\n removeMetadataKey,\n // Action types\n InterfaceOptions,\n // Helpers\n getMintInterface,\n unpackMintInterface,\n unpackMintData,\n MintInterface,\n getAccountInterface,\n Account,\n AccountState,\n ParsedTokenAccount as ParsedTokenAccountInterface,\n parseCTokenHot,\n parseCTokenCold,\n toAccountInfo,\n convertTokenDataToAccount,\n // Types\n AccountInterface,\n TokenAccountSource,\n // Serde\n BaseMint,\n MintContext,\n MintExtension,\n TokenMetadata,\n CompressedMint,\n deserializeMint,\n serializeMint,\n decodeTokenMetadata,\n encodeTokenMetadata,\n extractTokenMetadata,\n ExtensionType,\n // Metadata formatting (for use with any uploader)\n toOffChainMetadataJson,\n OffChainTokenMetadata,\n OffChainTokenMetadataJson,\n} from './v3';\n\n/**\n * Retrieve associated token account for a given owner and mint.\n *\n * @param rpc RPC connection\n * @param ata Associated token address\n * @param owner Owner public key\n * @param mint Mint public key\n * @param commitment Optional commitment level\n * @param programId Optional program ID\n * @returns AccountInterface with ATA metadata\n */\nexport async function getAtaInterface(\n rpc: Rpc,\n ata: PublicKey,\n owner: PublicKey,\n mint: PublicKey,\n commitment?: Commitment,\n programId?: PublicKey,\n): Promise<MintAccountInterface> {\n return _mintGetAtaInterface(rpc, ata, owner, mint, commitment, programId);\n}\n\n/**\n * Create instruction batches for loading token balances into an ATA.\n * Returns batches of instructions, each batch is one transaction.\n *\n * @param rpc RPC connection\n * @param ata Associated token address\n * @param owner Owner public key\n * @param mint Mint public key\n * @param payer Fee payer (defaults to owner)\n * @param options Optional load options\n * @returns Instruction batches - each inner array is one transaction\n */\nexport async function createLoadAtaInstructions(\n rpc: Rpc,\n ata: PublicKey,\n owner: PublicKey,\n mint: PublicKey,\n payer?: PublicKey,\n options?: InterfaceOptions,\n): Promise<TransactionInstruction[][]> {\n return _createLoadAtaInstructions(\n rpc,\n ata,\n owner,\n mint,\n payer,\n options,\n false,\n );\n}\n\n/**\n * Load token balances into a c-token ATA.\n *\n * @param rpc RPC connection\n * @param ata Associated token address\n * @param owner Owner of the tokens (signer)\n * @param mint Mint public key\n * @param payer Fee payer (signer, defaults to owner)\n * @param confirmOptions Optional confirm options\n * @param interfaceOptions Optional interface options\n * @returns Transaction signature, or null if nothing to load\n */\nexport async function loadAta(\n rpc: Rpc,\n ata: PublicKey,\n owner: Signer,\n mint: PublicKey,\n payer?: Signer,\n confirmOptions?: ConfirmOptions,\n interfaceOptions?: InterfaceOptions,\n): Promise<TransactionSignature | null> {\n return _loadAta(\n rpc,\n ata,\n owner,\n mint,\n payer,\n confirmOptions,\n interfaceOptions,\n false,\n );\n}\n"],"names":["async","rpc","ata","owner","mint","payer","options","_createLoadAtaInstructions","createLoadAtaInstructions","commitment","programId","_mintGetAtaInterface","confirmOptions","interfaceOptions","_loadAta","loadAta"],"mappings":"ygVA+KOA,eACHC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,OAAOC,EAA0BC,0BAC7BP,EACAC,EACAC,EACAC,EACAC,EACAC,EACA,EAER,0BAxCON,eACHC,EACAC,EACAC,EACAC,EACAK,EACAC,GAEA,OAAOC,EAAAA,gBAAqBV,EAAKC,EAAKC,EAAOC,EAAMK,EAAYC,EACnE,kBA6COV,eACHC,EACAC,EACAC,EACAC,EACAC,EACAO,EACAC,GAEA,OAAOC,EAAQC,QACXd,EACAC,EACAC,EACAC,EACAC,EACAO,EACAC,EACA,EAER"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../src/index.ts"],"sourcesContent":["import type {\n Commitment,\n PublicKey,\n Signer,\n ConfirmOptions,\n TransactionInstruction,\n TransactionSignature,\n} from '@solana/web3.js';\nimport type { Rpc } from '@lightprotocol/stateless.js';\nimport type {\n AccountInterface as MintAccountInterface,\n InterfaceOptions,\n} from './v3';\nimport { getAtaInterface as _mintGetAtaInterface } from './v3';\n\nexport * from './actions';\nexport * from './utils';\nexport * from './constants';\nexport * from './idl';\nexport * from './layout';\nexport * from './program';\nexport { CompressedTokenProgram as LightTokenProgram } from './program';\nexport * from './types';\nimport {\n createLoadAtaInstructions as _createLoadAtaInstructions,\n loadAta as _loadAta,\n selectInputsForAmount,\n} from './v3/actions/load-ata';\nimport { getMintInterface } from './v3/get-mint-interface';\n\nexport { selectInputsForAmount };\n\nexport {\n estimateTransactionSize,\n MAX_TRANSACTION_SIZE,\n MAX_COMBINED_BATCH_BYTES,\n MAX_LOAD_ONLY_BATCH_BYTES,\n} from './v3/utils/estimate-tx-size';\n\n// Export mint module with explicit naming to avoid conflicts\nexport {\n // Instructions\n createMintInstruction,\n createTokenMetadata,\n createAssociatedLightTokenAccountInstruction,\n createAssociatedLightTokenAccountIdempotentInstruction,\n createAssociatedTokenAccountInterfaceInstruction,\n createAssociatedTokenAccountInterfaceIdempotentInstruction,\n createAtaInterfaceIdempotentInstruction,\n createMintToInstruction,\n createMintToCompressedInstruction,\n createMintToInterfaceInstruction,\n createUpdateMintAuthorityInstruction,\n createUpdateFreezeAuthorityInstruction,\n createUpdateMetadataFieldInstruction,\n createUpdateMetadataAuthorityInstruction,\n createRemoveMetadataKeyInstruction,\n createWrapInstruction,\n createUnwrapInstruction,\n createUnwrapInstructions,\n createLightTokenFreezeAccountInstruction,\n createLightTokenThawAccountInstruction,\n createLightTokenTransferInstruction,\n createLightTokenTransferCheckedInstruction,\n createLightTokenApproveInstruction,\n createLightTokenRevokeInstruction,\n // Types\n TokenMetadataInstructionData,\n CompressibleConfig,\n LightTokenConfig,\n CreateAssociatedLightTokenAccountParams,\n // Constants for rent sponsor\n DEFAULT_COMPRESSIBLE_CONFIG,\n // Actions\n createMintInterface,\n createAtaInterface,\n createAtaInterfaceIdempotent,\n getAssociatedTokenAddressInterface,\n getOrCreateAtaInterface,\n transferInterface,\n transferToAccountInterface,\n createTransferInterfaceInstructions,\n createTransferToAccountInterfaceInstructions,\n sliceLast,\n approveInterface,\n createApproveInterfaceInstructions,\n revokeInterface,\n createRevokeInterfaceInstructions,\n wrap,\n mintTo as mintToLightToken,\n mintToCompressed,\n mintToInterface,\n updateMintAuthority,\n updateFreezeAuthority,\n updateMetadataField,\n updateMetadataAuthority,\n removeMetadataKey,\n // Action types\n InterfaceOptions,\n // Helpers\n getMintInterface,\n unpackMintInterface,\n unpackMintData,\n MintInterface,\n getAccountInterface,\n Account,\n AccountState,\n ParsedTokenAccount as ParsedTokenAccountInterface,\n parseLightTokenHot,\n parseLightTokenCold,\n toAccountInfo,\n convertTokenDataToAccount,\n // Types\n AccountInterface,\n TokenAccountSource,\n // Serde\n BaseMint,\n MintContext,\n MintExtension,\n TokenMetadata,\n CompressedMint,\n deserializeMint,\n serializeMint,\n decodeTokenMetadata,\n encodeTokenMetadata,\n extractTokenMetadata,\n ExtensionType,\n // Metadata formatting (for use with any uploader)\n toOffChainMetadataJson,\n OffChainTokenMetadata,\n OffChainTokenMetadataJson,\n} from './v3';\n\n/**\n * Retrieve associated token account for a given owner and mint.\n *\n * @param rpc RPC connection\n * @param ata Associated token address\n * @param owner Owner public key\n * @param mint Mint public key\n * @param commitment Optional commitment level\n * @param programId Optional program ID\n * @returns AccountInterface with ATA metadata\n */\nexport async function getAtaInterface(\n rpc: Rpc,\n ata: PublicKey,\n owner: PublicKey,\n mint: PublicKey,\n commitment?: Commitment,\n programId?: PublicKey,\n): Promise<MintAccountInterface> {\n return _mintGetAtaInterface(rpc, ata, owner, mint, commitment, programId);\n}\n\n/**\n * Create instruction batches for loading token balances into an ATA.\n * Returns batches of instructions, each batch is one transaction.\n *\n * @param rpc RPC connection\n * @param ata Associated token address\n * @param owner Owner public key\n * @param mint Mint public key\n * @param payer Fee payer (defaults to owner)\n * @param options Optional load options\n * @returns Instruction batches - each inner array is one transaction\n */\nexport async function createLoadAtaInstructions(\n rpc: Rpc,\n ata: PublicKey,\n owner: PublicKey,\n mint: PublicKey,\n payer?: PublicKey,\n options?: InterfaceOptions,\n): Promise<TransactionInstruction[][]> {\n const mintInterface = await getMintInterface(rpc, mint);\n return _createLoadAtaInstructions(\n rpc,\n ata,\n owner,\n mint,\n mintInterface.mint.decimals,\n payer,\n options,\n );\n}\n\n/**\n * Load token balances into a light-token ATA.\n *\n * @param rpc RPC connection\n * @param ata Associated token address\n * @param owner Owner of the tokens (signer)\n * @param mint Mint public key\n * @param payer Fee payer (signer, defaults to owner)\n * @param confirmOptions Optional confirm options\n * @param interfaceOptions Optional interface options\n * @returns Transaction signature, or null if nothing to load\n */\nexport async function loadAta(\n rpc: Rpc,\n ata: PublicKey,\n owner: Signer,\n mint: PublicKey,\n payer?: Signer,\n confirmOptions?: ConfirmOptions,\n interfaceOptions?: InterfaceOptions,\n decimals?: number,\n): Promise<TransactionSignature | null> {\n return _loadAta(\n rpc,\n ata,\n owner,\n mint,\n payer,\n confirmOptions,\n interfaceOptions,\n decimals,\n );\n}\n"],"names":["async","rpc","ata","owner","mint","payer","options","mintInterface","getMintInterface","_createLoadAtaInstructions","decimals","commitment","programId","_mintGetAtaInterface","confirmOptions","interfaceOptions","_loadAta","loadAta"],"mappings":"27VAuKOA,eACHC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,QAAsBC,EAAAA,iBAAiBP,EAAKG,GAClD,OAAOK,4BACHR,EACAC,EACAC,EACAC,EACAG,EAAcH,KAAKM,SACnBL,EACAC,EAER,0BAzCON,eACHC,EACAC,EACAC,EACAC,EACAO,EACAC,GAEA,OAAOC,EAAAA,gBAAqBZ,EAAKC,EAAKC,EAAOC,EAAMO,EAAYC,EACnE,kBA8COZ,eACHC,EACAC,EACAC,EACAC,EACAC,EACAS,EACAC,EACAL,GAEA,OAAOM,EAAQC,QACXhB,EACAC,EACAC,EACAC,EACAC,EACAS,EACAC,EACAL,EAER"}