@lightprotocol/compressed-token 0.23.0-beta.4 → 0.23.0-beta.6
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 -218
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/types-C7ZeGpIm.cjs +2 -0
- package/dist/cjs/browser/types-C7ZeGpIm.cjs.map +1 -0
- package/dist/cjs/browser/unified/index.cjs +1 -379
- package/dist/cjs/browser/unified/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +1 -219
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/types-BGRaX3tR.cjs +2 -0
- package/dist/cjs/node/types-BGRaX3tR.cjs.map +1 -0
- package/dist/cjs/node/unified/index.cjs +1 -380
- package/dist/cjs/node/unified/index.cjs.map +1 -1
- package/dist/es/browser/index.js +1 -166
- package/dist/es/browser/index.js.map +1 -1
- package/dist/es/browser/types-BvBzUhrt.js +2 -0
- package/dist/es/browser/types-BvBzUhrt.js.map +1 -0
- package/dist/es/browser/unified/index.js +1 -284
- package/dist/es/browser/unified/index.js.map +1 -1
- package/dist/types/index.d.ts +611 -1343
- package/dist/types/unified/index.d.ts +779 -1636
- package/package.json +4 -3
- package/dist/cjs/browser/types-qZMOMIxa.cjs +0 -11351
- package/dist/cjs/browser/types-qZMOMIxa.cjs.map +0 -1
- package/dist/cjs/node/types-BsKbElnz.cjs +0 -10113
- package/dist/cjs/node/types-BsKbElnz.cjs.map +0 -1
- package/dist/es/browser/types-pblNXos5.js +0 -10454
- package/dist/es/browser/types-pblNXos5.js.map +0 -1
|
@@ -1,219 +1,2 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var e = require('./types-qZMOMIxa.cjs');
|
|
3
|
-
(require('@solana/web3.js'), require('@lightprotocol/stateless.js'));
|
|
4
|
-
var t = require('@solana/spl-token');
|
|
5
|
-
(require('@coral-xyz/borsh'),
|
|
6
|
-
(exports.ADD_TOKEN_POOL_DISCRIMINATOR = e.ADD_TOKEN_POOL_DISCRIMINATOR),
|
|
7
|
-
(exports.APPROVE_DISCRIMINATOR = e.APPROVE_DISCRIMINATOR),
|
|
8
|
-
Object.defineProperty(exports, 'Action', {
|
|
9
|
-
enumerable: 1,
|
|
10
|
-
get: function () {
|
|
11
|
-
return e.Action;
|
|
12
|
-
},
|
|
13
|
-
}),
|
|
14
|
-
(exports.BATCH_COMPRESS_DISCRIMINATOR = e.BATCH_COMPRESS_DISCRIMINATOR),
|
|
15
|
-
(exports.COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR =
|
|
16
|
-
e.COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR),
|
|
17
|
-
(exports.CPI_AUTHORITY_SEED = e.CPI_AUTHORITY_SEED),
|
|
18
|
-
(exports.CREATE_TOKEN_POOL_DISCRIMINATOR =
|
|
19
|
-
e.CREATE_TOKEN_POOL_DISCRIMINATOR),
|
|
20
|
-
(exports.CompressedTokenInstructionDataApproveLayout =
|
|
21
|
-
e.CompressedTokenInstructionDataApproveLayout),
|
|
22
|
-
(exports.CompressedTokenInstructionDataRevokeLayout =
|
|
23
|
-
e.CompressedTokenInstructionDataRevokeLayout),
|
|
24
|
-
(exports.CompressedTokenInstructionDataTransferLayout =
|
|
25
|
-
e.CompressedTokenInstructionDataTransferLayout),
|
|
26
|
-
(exports.CompressedTokenProgram = e.CompressedTokenProgram),
|
|
27
|
-
(exports.CpiContextLayout = e.CpiContextLayout),
|
|
28
|
-
(exports.DECOMPRESS_ACCOUNTS_IDEMPOTENT_DISCRIMINATOR =
|
|
29
|
-
e.DECOMPRESS_ACCOUNTS_IDEMPOTENT_DISCRIMINATOR),
|
|
30
|
-
(exports.DelegatedTransferLayout = e.DelegatedTransferLayout),
|
|
31
|
-
(exports.ERROR_MIXED_TREE_TYPES = e.ERROR_MIXED_TREE_TYPES),
|
|
32
|
-
(exports.ERROR_NO_ACCOUNTS_FOUND = e.ERROR_NO_ACCOUNTS_FOUND),
|
|
33
|
-
Object.defineProperty(exports, 'ExtensionType', {
|
|
34
|
-
enumerable: 1,
|
|
35
|
-
get: function () {
|
|
36
|
-
return e.ExtensionType;
|
|
37
|
-
},
|
|
38
|
-
}),
|
|
39
|
-
(exports.IDL = e.IDL),
|
|
40
|
-
(exports.MINT_TO_DISCRIMINATOR = e.MINT_TO_DISCRIMINATOR),
|
|
41
|
-
(exports.POOL_SEED = e.POOL_SEED),
|
|
42
|
-
(exports.REVOKE_DISCRIMINATOR = e.REVOKE_DISCRIMINATOR),
|
|
43
|
-
(exports.SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE =
|
|
44
|
-
e.SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE),
|
|
45
|
-
(exports.TRANSFER_DISCRIMINATOR = e.TRANSFER_DISCRIMINATOR),
|
|
46
|
-
Object.defineProperty(exports, 'TokenDataVersion', {
|
|
47
|
-
enumerable: 1,
|
|
48
|
-
get: function () {
|
|
49
|
-
return e.TokenDataVersion;
|
|
50
|
-
},
|
|
51
|
-
}),
|
|
52
|
-
(exports.addSplInterfaces = e.addSplInterfaces),
|
|
53
|
-
(exports.addTokenPoolAccountsLayout = e.addTokenPoolAccountsLayout),
|
|
54
|
-
(exports.addTokenPools = e.addTokenPools),
|
|
55
|
-
(exports.approve = e.approve),
|
|
56
|
-
(exports.approveAccountsLayout = e.approveAccountsLayout),
|
|
57
|
-
(exports.approveAndMintTo = e.approveAndMintTo),
|
|
58
|
-
(exports.batchCompressLayout = e.batchCompressLayout),
|
|
59
|
-
(exports.calculateCompressibleLoadComputeUnits =
|
|
60
|
-
e.calculateCompressibleLoadComputeUnits),
|
|
61
|
-
(exports.checkMint = e.checkMint),
|
|
62
|
-
(exports.checkSplInterfaceInfo = e.checkSplInterfaceInfo),
|
|
63
|
-
(exports.checkTokenPoolInfo = e.checkTokenPoolInfo),
|
|
64
|
-
(exports.compress = e.compress),
|
|
65
|
-
(exports.compressSplTokenAccount = e.compressSplTokenAccount),
|
|
66
|
-
(exports.compressSplTokenAccountInstructionDataLayout =
|
|
67
|
-
e.compressSplTokenAccountInstructionDataLayout),
|
|
68
|
-
(exports.convertTokenDataToAccount = e.convertTokenDataToAccount),
|
|
69
|
-
(exports.createAssociatedCTokenAccountIdempotentInstruction =
|
|
70
|
-
e.createAssociatedCTokenAccountIdempotentInstruction),
|
|
71
|
-
(exports.createAssociatedCTokenAccountInstruction =
|
|
72
|
-
e.createAssociatedCTokenAccountInstruction),
|
|
73
|
-
(exports.createAssociatedTokenAccountInterfaceIdempotentInstruction =
|
|
74
|
-
e.createAssociatedTokenAccountInterfaceIdempotentInstruction),
|
|
75
|
-
(exports.createAssociatedTokenAccountInterfaceInstruction =
|
|
76
|
-
e.createAssociatedTokenAccountInterfaceInstruction),
|
|
77
|
-
(exports.createAtaInterface = e.createAtaInterface),
|
|
78
|
-
(exports.createAtaInterfaceIdempotent = e.createAtaInterfaceIdempotent),
|
|
79
|
-
(exports.createAtaInterfaceIdempotentInstruction =
|
|
80
|
-
e.createAtaInterfaceIdempotentInstruction),
|
|
81
|
-
(exports.createCTokenTransferInstruction =
|
|
82
|
-
e.createCTokenTransferInstruction),
|
|
83
|
-
(exports.createDecompressInterfaceInstruction =
|
|
84
|
-
e.createDecompressInterfaceInstruction),
|
|
85
|
-
(exports.createDecompressOutputState = e.createDecompressOutputState),
|
|
86
|
-
(exports.createLoadAccountsParams = e.createLoadAccountsParams),
|
|
87
|
-
(exports.createLoadAtaInstructionsFromInterface =
|
|
88
|
-
e.createLoadAtaInstructionsFromInterface),
|
|
89
|
-
(exports.createMint = e.createMint),
|
|
90
|
-
(exports.createMintInstruction = e.createMintInstruction),
|
|
91
|
-
(exports.createMintInterface = e.createMintInterface),
|
|
92
|
-
(exports.createMintToCompressedInstruction =
|
|
93
|
-
e.createMintToCompressedInstruction),
|
|
94
|
-
(exports.createMintToInstruction = e.createMintToInstruction),
|
|
95
|
-
(exports.createMintToInterfaceInstruction =
|
|
96
|
-
e.createMintToInterfaceInstruction),
|
|
97
|
-
(exports.createRemoveMetadataKeyInstruction =
|
|
98
|
-
e.createRemoveMetadataKeyInstruction),
|
|
99
|
-
(exports.createSplInterface = e.createSplInterface),
|
|
100
|
-
(exports.createTokenMetadata = e.createTokenMetadata),
|
|
101
|
-
(exports.createTokenPool = e.createTokenPool),
|
|
102
|
-
(exports.createTokenPoolAccountsLayout = e.createTokenPoolAccountsLayout),
|
|
103
|
-
(exports.createTokenProgramLookupTable = e.createTokenProgramLookupTable),
|
|
104
|
-
(exports.createTransferInterfaceInstruction =
|
|
105
|
-
e.createTransferInterfaceInstruction),
|
|
106
|
-
(exports.createTransferOutputState = e.createTransferOutputState),
|
|
107
|
-
(exports.createUpdateFreezeAuthorityInstruction =
|
|
108
|
-
e.createUpdateFreezeAuthorityInstruction),
|
|
109
|
-
(exports.createUpdateMetadataAuthorityInstruction =
|
|
110
|
-
e.createUpdateMetadataAuthorityInstruction),
|
|
111
|
-
(exports.createUpdateMetadataFieldInstruction =
|
|
112
|
-
e.createUpdateMetadataFieldInstruction),
|
|
113
|
-
(exports.createUpdateMintAuthorityInstruction =
|
|
114
|
-
e.createUpdateMintAuthorityInstruction),
|
|
115
|
-
(exports.createWrapInstruction = e.createWrapInstruction),
|
|
116
|
-
(exports.decodeApproveInstructionData = e.decodeApproveInstructionData),
|
|
117
|
-
(exports.decodeBatchCompressInstructionData =
|
|
118
|
-
e.decodeBatchCompressInstructionData),
|
|
119
|
-
(exports.decodeCompressSplTokenAccountInstructionData =
|
|
120
|
-
e.decodeCompressSplTokenAccountInstructionData),
|
|
121
|
-
(exports.decodeMintToInstructionData = e.decodeMintToInstructionData),
|
|
122
|
-
(exports.decodeRevokeInstructionData = e.decodeRevokeInstructionData),
|
|
123
|
-
(exports.decodeTokenMetadata = e.decodeTokenMetadata),
|
|
124
|
-
(exports.decodeTransferInstructionData = e.decodeTransferInstructionData),
|
|
125
|
-
(exports.decompress = e.decompress),
|
|
126
|
-
(exports.decompressDelegated = e.decompressDelegated),
|
|
127
|
-
(exports.decompressInterface = e.decompressInterface),
|
|
128
|
-
(exports.deriveSplInterfaceInfo = e.deriveSplInterfaceInfo),
|
|
129
|
-
(exports.deriveTokenPoolInfo = e.deriveTokenPoolInfo),
|
|
130
|
-
(exports.deserializeMint = e.deserializeMint),
|
|
131
|
-
(exports.encodeApproveInstructionData = e.encodeApproveInstructionData),
|
|
132
|
-
(exports.encodeBatchCompressInstructionData =
|
|
133
|
-
e.encodeBatchCompressInstructionData),
|
|
134
|
-
(exports.encodeCompressSplTokenAccountInstructionData =
|
|
135
|
-
e.encodeCompressSplTokenAccountInstructionData),
|
|
136
|
-
(exports.encodeMintToInstructionData = e.encodeMintToInstructionData),
|
|
137
|
-
(exports.encodeRevokeInstructionData = e.encodeRevokeInstructionData),
|
|
138
|
-
(exports.encodeTokenMetadata = e.encodeTokenMetadata),
|
|
139
|
-
(exports.encodeTransferInstructionData = e.encodeTransferInstructionData),
|
|
140
|
-
(exports.extractTokenMetadata = e.extractTokenMetadata),
|
|
141
|
-
(exports.freezeAccountsLayout = e.freezeAccountsLayout),
|
|
142
|
-
(exports.getAccountInterface = e.getAccountInterface),
|
|
143
|
-
(exports.getAssociatedTokenAddressInterface =
|
|
144
|
-
e.getAssociatedTokenAddressInterface),
|
|
145
|
-
(exports.getMintInterface = e.getMintInterface),
|
|
146
|
-
(exports.getOrCreateAtaInterface = e.getOrCreateAtaInterface),
|
|
147
|
-
(exports.getSplInterfaceInfos = e.getSplInterfaceInfos),
|
|
148
|
-
(exports.getTokenPoolInfos = e.getTokenPoolInfos),
|
|
149
|
-
(exports.groupAccountsByTreeType = e.groupAccountsByTreeType),
|
|
150
|
-
(exports.isSingleSplInterfaceInfo = e.isSingleSplInterfaceInfo),
|
|
151
|
-
(exports.isSingleTokenPoolInfo = e.isSingleTokenPoolInfo),
|
|
152
|
-
(exports.mergeTokenAccounts = e.mergeTokenAccounts),
|
|
153
|
-
(exports.mintTo = e.mintTo$1),
|
|
154
|
-
(exports.mintToAccountsLayout = e.mintToAccountsLayout),
|
|
155
|
-
(exports.mintToCToken = e.mintTo),
|
|
156
|
-
(exports.mintToCompressed = e.mintToCompressed),
|
|
157
|
-
(exports.mintToInterface = e.mintToInterface),
|
|
158
|
-
(exports.mintToLayout = e.mintToLayout),
|
|
159
|
-
(exports.packCompressedTokenAccounts = e.packCompressedTokenAccounts),
|
|
160
|
-
(exports.parseCTokenCold = e.parseCTokenCold),
|
|
161
|
-
(exports.parseCTokenHot = e.parseCTokenHot),
|
|
162
|
-
(exports.parseMaybeDelegatedTransfer = e.parseMaybeDelegatedTransfer),
|
|
163
|
-
(exports.parseTokenData = e.parseTokenData),
|
|
164
|
-
(exports.removeMetadataKey = e.removeMetadataKey),
|
|
165
|
-
(exports.revoke = e.revoke),
|
|
166
|
-
(exports.revokeAccountsLayout = e.revokeAccountsLayout),
|
|
167
|
-
(exports.selectAccountsByPreferredTreeType =
|
|
168
|
-
e.selectAccountsByPreferredTreeType),
|
|
169
|
-
(exports.selectMinCompressedTokenAccountsForDecompression =
|
|
170
|
-
e.selectMinCompressedTokenAccountsForDecompression),
|
|
171
|
-
(exports.selectMinCompressedTokenAccountsForTransfer =
|
|
172
|
-
e.selectMinCompressedTokenAccountsForTransfer),
|
|
173
|
-
(exports.selectMinCompressedTokenAccountsForTransferOrPartial =
|
|
174
|
-
e.selectMinCompressedTokenAccountsForTransferOrPartial),
|
|
175
|
-
(exports.selectSmartCompressedTokenAccountsForTransfer =
|
|
176
|
-
e.selectSmartCompressedTokenAccountsForTransfer),
|
|
177
|
-
(exports.selectSmartCompressedTokenAccountsForTransferOrPartial =
|
|
178
|
-
e.selectSmartCompressedTokenAccountsForTransferOrPartial),
|
|
179
|
-
(exports.selectSplInterfaceInfo = e.selectSplInterfaceInfo),
|
|
180
|
-
(exports.selectSplInterfaceInfosForDecompression =
|
|
181
|
-
e.selectSplInterfaceInfosForDecompression),
|
|
182
|
-
(exports.selectTokenAccountsForApprove = e.selectTokenAccountsForApprove),
|
|
183
|
-
(exports.selectTokenPoolInfo = e.selectTokenPoolInfo),
|
|
184
|
-
(exports.selectTokenPoolInfosForDecompression =
|
|
185
|
-
e.selectTokenPoolInfosForDecompression),
|
|
186
|
-
(exports.serializeMint = e.serializeMint),
|
|
187
|
-
(exports.sumUpTokenAmount = e.sumUpTokenAmount),
|
|
188
|
-
(exports.thawAccountsLayout = e.thawAccountsLayout),
|
|
189
|
-
(exports.toAccountInfo = e.toAccountInfo),
|
|
190
|
-
(exports.toOffChainMetadataJson = e.toOffChainMetadataJson),
|
|
191
|
-
(exports.toTokenPoolInfo = e.toTokenPoolInfo),
|
|
192
|
-
(exports.transfer = e.transfer),
|
|
193
|
-
(exports.transferAccountsLayout = e.transferAccountsLayout),
|
|
194
|
-
(exports.transferDelegated = e.transferDelegated),
|
|
195
|
-
(exports.transferInterface = e.transferInterface),
|
|
196
|
-
(exports.unpackMintData = e.unpackMintData),
|
|
197
|
-
(exports.unpackMintInterface = e.unpackMintInterface),
|
|
198
|
-
(exports.updateFreezeAuthority = e.updateFreezeAuthority),
|
|
199
|
-
(exports.updateMetadataAuthority = e.updateMetadataAuthority),
|
|
200
|
-
(exports.updateMetadataField = e.updateMetadataField),
|
|
201
|
-
(exports.updateMintAuthority = e.updateMintAuthority),
|
|
202
|
-
(exports.validateSameTokenOwner = e.validateSameTokenOwner),
|
|
203
|
-
(exports.wrap = e.wrap),
|
|
204
|
-
Object.defineProperty(exports, 'AccountState', {
|
|
205
|
-
enumerable: 1,
|
|
206
|
-
get: function () {
|
|
207
|
-
return t.AccountState;
|
|
208
|
-
},
|
|
209
|
-
}),
|
|
210
|
-
(exports.createLoadAtaInstructions = async function (t, o, r, n, s, a) {
|
|
211
|
-
return e.createLoadAtaInstructions(t, o, r, n, s, a, 0);
|
|
212
|
-
}),
|
|
213
|
-
(exports.getAtaInterface = async function (t, o, r, n, s, a) {
|
|
214
|
-
return e.getAtaInterface(t, o, r, n, s, a);
|
|
215
|
-
}),
|
|
216
|
-
(exports.loadAta = async function (t, o, r, n, s, a, c) {
|
|
217
|
-
return e.loadAta(t, o, r, n, s, a, c, 0);
|
|
218
|
-
}));
|
|
1
|
+
"use strict";var e=require("./types-C7ZeGpIm.cjs");require("@solana/web3.js"),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:1,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_CTOKEN_ACCOUNT_SIZE=e.COMPRESSIBLE_CTOKEN_ACCOUNT_SIZE,exports.COMPRESSIBLE_CTOKEN_RENT_PER_EPOCH=e.COMPRESSIBLE_CTOKEN_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.DECOMPRESS_ACCOUNTS_IDEMPOTENT_DISCRIMINATOR=e.DECOMPRESS_ACCOUNTS_IDEMPOTENT_DISCRIMINATOR,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:1,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_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:1,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.batchCompressLayout=e.batchCompressLayout,exports.calculateCompressibleLoadComputeUnits=e.calculateCompressibleLoadComputeUnits,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.createAssociatedCTokenAccountIdempotentInstruction=e.createAssociatedCTokenAccountIdempotentInstruction,exports.createAssociatedCTokenAccountInstruction=e.createAssociatedCTokenAccountInstruction,exports.createAssociatedTokenAccountInterfaceIdempotentInstruction=e.createAssociatedTokenAccountInterfaceIdempotentInstruction,exports.createAssociatedTokenAccountInterfaceInstruction=e.createAssociatedTokenAccountInterfaceInstruction,exports.createAtaInterface=e.createAtaInterface,exports.createAtaInterfaceIdempotent=e.createAtaInterfaceIdempotent,exports.createAtaInterfaceIdempotentInstruction=e.createAtaInterfaceIdempotentInstruction,exports.createDecompressInterfaceInstruction=e.createDecompressInterfaceInstruction,exports.createDecompressOutputState=e.createDecompressOutputState,exports.createLightTokenTransferInstruction=e.createLightTokenTransferInstruction,exports.createLoadAccountsParams=e.createLoadAccountsParams,exports.createLoadAtaInstructionsFromInterface=e.createLoadAtaInstructionsFromInterface,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.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.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.decompressInterface=e.decompressInterface,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.mintToCToken=e.mintTo,exports.mintToCompressed=e.mintToCompressed,exports.mintToInterface=e.mintToInterface,exports.mintToLayout=e.mintToLayout,exports.packCompressedTokenAccounts=e.packCompressedTokenAccounts,exports.parseCTokenCold=e.parseCTokenCold,exports.parseCTokenHot=e.parseCTokenHot,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.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.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:1,get:function(){return t.AccountState}}),exports.createLoadAtaInstructions=async function(t,o,r,n,s,a){return e.createLoadAtaInstructions(t,o,r,n,s,a,0)},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){return e.loadAta(t,o,r,n,s,a,c,0)};
|
|
219
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
|
|
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":"u9UA+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"}
|