@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.
- package/dist/cjs/browser/index.cjs +1 -246
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/types-DhKIduOJ.cjs +2 -0
- package/dist/cjs/browser/types-DhKIduOJ.cjs.map +1 -0
- package/dist/cjs/browser/unified/index.cjs +1 -337
- package/dist/cjs/browser/unified/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +1 -248
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/types-eEaQmC1R.cjs +2 -0
- package/dist/cjs/node/types-eEaQmC1R.cjs.map +1 -0
- package/dist/cjs/node/unified/index.cjs +1 -338
- package/dist/cjs/node/unified/index.cjs.map +1 -1
- package/dist/es/browser/index.js +1 -191
- package/dist/es/browser/index.js.map +1 -1
- package/dist/es/browser/types-BRyuPsY_.js +2 -0
- package/dist/es/browser/types-BRyuPsY_.js.map +1 -0
- package/dist/es/browser/unified/index.js +1 -242
- package/dist/es/browser/unified/index.js.map +1 -1
- package/dist/types/index.d.ts +698 -1907
- package/dist/types/unified/index.d.ts +596 -1718
- package/package.json +27 -22
- package/dist/cjs/browser/types-pEpHwEnq.cjs +0 -11988
- package/dist/cjs/browser/types-pEpHwEnq.cjs.map +0 -1
- package/dist/cjs/node/types-EuCij2TU.cjs +0 -10752
- package/dist/cjs/node/types-EuCij2TU.cjs.map +0 -1
- package/dist/es/browser/types-BSM3Bq3L.js +0 -10887
- package/dist/es/browser/types-BSM3Bq3L.js.map +0 -1
package/dist/es/browser/index.js
CHANGED
|
@@ -1,192 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export {
|
|
3
|
-
b2 as ADD_TOKEN_POOL_DISCRIMINATOR,
|
|
4
|
-
b0 as APPROVE_DISCRIMINATOR,
|
|
5
|
-
ax as Action,
|
|
6
|
-
b5 as BASE_RENT_PER_EPOCH,
|
|
7
|
-
aZ as BATCH_COMPRESS_DISCRIMINATOR,
|
|
8
|
-
bb as COMPRESSIBLE_CTOKEN_ACCOUNT_SIZE,
|
|
9
|
-
bd as COMPRESSIBLE_CTOKEN_RENT_PER_EPOCH,
|
|
10
|
-
b8 as COMPRESSION_COST,
|
|
11
|
-
b9 as COMPRESSION_INCENTIVE,
|
|
12
|
-
a$ as COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR,
|
|
13
|
-
aV as CPI_AUTHORITY_SEED,
|
|
14
|
-
aX as CREATE_TOKEN_POOL_DISCRIMINATOR,
|
|
15
|
-
bE as CompressedTokenInstructionDataApproveLayout,
|
|
16
|
-
bF as CompressedTokenInstructionDataRevokeLayout,
|
|
17
|
-
bk as CompressedTokenInstructionDataTransferLayout,
|
|
18
|
-
C as CompressedTokenProgram,
|
|
19
|
-
bj as CpiContextLayout,
|
|
20
|
-
b3 as DECOMPRESS_ACCOUNTS_IDEMPOTENT_DISCRIMINATOR,
|
|
21
|
-
F as DEFAULT_COMPRESSIBLE_CONFIG,
|
|
22
|
-
be as DEFAULT_PREPAY_EPOCHS,
|
|
23
|
-
bf as DEFAULT_WRITE_TOP_UP,
|
|
24
|
-
bi as DelegatedTransferLayout,
|
|
25
|
-
aG as ERROR_MIXED_TREE_TYPES,
|
|
26
|
-
aF as ERROR_NO_ACCOUNTS_FOUND,
|
|
27
|
-
aa as ExtensionType,
|
|
28
|
-
bh as IDL,
|
|
29
|
-
aR as LIGHT_TOKEN_CONFIG,
|
|
30
|
-
aS as LIGHT_TOKEN_RENT_SPONSOR,
|
|
31
|
-
C as LightTokenProgram,
|
|
32
|
-
f as MAX_COMBINED_BATCH_BYTES,
|
|
33
|
-
h as MAX_LOAD_ONLY_BATCH_BYTES,
|
|
34
|
-
b4 as MAX_TOP_UP,
|
|
35
|
-
M as MAX_TRANSACTION_SIZE,
|
|
36
|
-
aY as MINT_TO_DISCRIMINATOR,
|
|
37
|
-
aU as POOL_SEED,
|
|
38
|
-
b6 as RENT_PER_BYTE_PER_EPOCH,
|
|
39
|
-
b1 as REVOKE_DISCRIMINATOR,
|
|
40
|
-
b7 as SLOTS_PER_RENT_EPOCH,
|
|
41
|
-
aW as SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE,
|
|
42
|
-
ba as TOTAL_COMPRESSION_COST,
|
|
43
|
-
a_ as TRANSFER_DISCRIMINATOR,
|
|
44
|
-
aT as TokenDataVersion,
|
|
45
|
-
aj as addSplInterfaces,
|
|
46
|
-
bx as addTokenPoolAccountsLayout,
|
|
47
|
-
ak as addTokenPools,
|
|
48
|
-
ac as approve,
|
|
49
|
-
bA as approveAccountsLayout,
|
|
50
|
-
ad as approveAndMintTo,
|
|
51
|
-
bm as batchCompressLayout,
|
|
52
|
-
d as calculateCompressibleLoadComputeUnits,
|
|
53
|
-
bg as calculateFeePayerCostAtCreation,
|
|
54
|
-
aQ as checkMint,
|
|
55
|
-
av as checkSplInterfaceInfo,
|
|
56
|
-
aB as checkTokenPoolInfo,
|
|
57
|
-
ae as compress,
|
|
58
|
-
af as compressSplTokenAccount,
|
|
59
|
-
bn as compressSplTokenAccountInstructionDataLayout,
|
|
60
|
-
a4 as convertTokenDataToAccount,
|
|
61
|
-
m as createAssociatedCTokenAccountIdempotentInstruction,
|
|
62
|
-
k as createAssociatedCTokenAccountInstruction,
|
|
63
|
-
o as createAssociatedTokenAccountInterfaceIdempotentInstruction,
|
|
64
|
-
n as createAssociatedTokenAccountInterfaceInstruction,
|
|
65
|
-
H as createAtaInterface,
|
|
66
|
-
I as createAtaInterfaceIdempotent,
|
|
67
|
-
p as createAtaInterfaceIdempotentInstruction,
|
|
68
|
-
D as createDecompressInterfaceInstruction,
|
|
69
|
-
bP as createDecompressOutputState,
|
|
70
|
-
E as createLightTokenTransferInstruction,
|
|
71
|
-
a as createLoadAccountsParams,
|
|
72
|
-
b as createLoadAtaInstructionsFromInterface,
|
|
73
|
-
ag as createMint,
|
|
74
|
-
i as createMintInstruction,
|
|
75
|
-
G as createMintInterface,
|
|
76
|
-
r as createMintToCompressedInstruction,
|
|
77
|
-
q as createMintToInstruction,
|
|
78
|
-
t as createMintToInterfaceInstruction,
|
|
79
|
-
y as createRemoveMetadataKeyInstruction,
|
|
80
|
-
ah as createSplInterface,
|
|
81
|
-
j as createTokenMetadata,
|
|
82
|
-
ai as createTokenPool,
|
|
83
|
-
bw as createTokenPoolAccountsLayout,
|
|
84
|
-
al as createTokenProgramLookupTable,
|
|
85
|
-
N as createTransferInterfaceInstructions,
|
|
86
|
-
bO as createTransferOutputState,
|
|
87
|
-
A as createUnwrapInstruction,
|
|
88
|
-
B as createUnwrapInstructions,
|
|
89
|
-
v as createUpdateFreezeAuthorityInstruction,
|
|
90
|
-
x as createUpdateMetadataAuthorityInstruction,
|
|
91
|
-
w as createUpdateMetadataFieldInstruction,
|
|
92
|
-
u as createUpdateMintAuthorityInstruction,
|
|
93
|
-
z as createWrapInstruction,
|
|
94
|
-
bH as decodeApproveInstructionData,
|
|
95
|
-
br as decodeBatchCompressInstructionData,
|
|
96
|
-
bt as decodeCompressSplTokenAccountInstructionData,
|
|
97
|
-
bp as decodeMintToInstructionData,
|
|
98
|
-
bJ as decodeRevokeInstructionData,
|
|
99
|
-
a7 as decodeTokenMetadata,
|
|
100
|
-
bv as decodeTransferInstructionData,
|
|
101
|
-
am as decompress,
|
|
102
|
-
as as decompressDelegated,
|
|
103
|
-
P as decompressInterface,
|
|
104
|
-
au as deriveSplInterfaceInfo,
|
|
105
|
-
aA as deriveTokenPoolInfo,
|
|
106
|
-
a5 as deserializeMint,
|
|
107
|
-
bG as encodeApproveInstructionData,
|
|
108
|
-
bq as encodeBatchCompressInstructionData,
|
|
109
|
-
bs as encodeCompressSplTokenAccountInstructionData,
|
|
110
|
-
bo as encodeMintToInstructionData,
|
|
111
|
-
bI as encodeRevokeInstructionData,
|
|
112
|
-
a8 as encodeTokenMetadata,
|
|
113
|
-
bu as encodeTransferInstructionData,
|
|
114
|
-
e as estimateTransactionSize,
|
|
115
|
-
a9 as extractTokenMetadata,
|
|
116
|
-
bC as freezeAccountsLayout,
|
|
117
|
-
a0 as getAccountInterface,
|
|
118
|
-
J as getAssociatedTokenAddressInterface,
|
|
119
|
-
Z as getMintInterface,
|
|
120
|
-
K as getOrCreateAtaInterface,
|
|
121
|
-
aw as getSplInterfaceInfos,
|
|
122
|
-
aC as getTokenPoolInfos,
|
|
123
|
-
aH as groupAccountsByTreeType,
|
|
124
|
-
bQ as isSingleSplInterfaceInfo,
|
|
125
|
-
bR as isSingleTokenPoolInfo,
|
|
126
|
-
an as mergeTokenAccounts,
|
|
127
|
-
ao as mintTo,
|
|
128
|
-
by as mintToAccountsLayout,
|
|
129
|
-
R as mintToCToken,
|
|
130
|
-
S as mintToCompressed,
|
|
131
|
-
T as mintToInterface,
|
|
132
|
-
bl as mintToLayout,
|
|
133
|
-
aP as packCompressedTokenAccounts,
|
|
134
|
-
a2 as parseCTokenCold,
|
|
135
|
-
a1 as parseCTokenHot,
|
|
136
|
-
bN as parseMaybeDelegatedTransfer,
|
|
137
|
-
bM as parseTokenData,
|
|
138
|
-
Y as removeMetadataKey,
|
|
139
|
-
bc as rentPerEpoch,
|
|
140
|
-
ap as revoke,
|
|
141
|
-
bB as revokeAccountsLayout,
|
|
142
|
-
aI as selectAccountsByPreferredTreeType,
|
|
143
|
-
s as selectInputsForAmount,
|
|
144
|
-
aK as selectMinCompressedTokenAccountsForDecompression,
|
|
145
|
-
aL as selectMinCompressedTokenAccountsForTransfer,
|
|
146
|
-
aM as selectMinCompressedTokenAccountsForTransferOrPartial,
|
|
147
|
-
aN as selectSmartCompressedTokenAccountsForTransfer,
|
|
148
|
-
aO as selectSmartCompressedTokenAccountsForTransferOrPartial,
|
|
149
|
-
ay as selectSplInterfaceInfo,
|
|
150
|
-
az as selectSplInterfaceInfosForDecompression,
|
|
151
|
-
aJ as selectTokenAccountsForApprove,
|
|
152
|
-
aD as selectTokenPoolInfo,
|
|
153
|
-
aE as selectTokenPoolInfosForDecompression,
|
|
154
|
-
a6 as serializeMint,
|
|
155
|
-
O as sliceLast,
|
|
156
|
-
bK as sumUpTokenAmount,
|
|
157
|
-
bD as thawAccountsLayout,
|
|
158
|
-
a3 as toAccountInfo,
|
|
159
|
-
ab as toOffChainMetadataJson,
|
|
160
|
-
at as toTokenPoolInfo,
|
|
161
|
-
aq as transfer,
|
|
162
|
-
bz as transferAccountsLayout,
|
|
163
|
-
ar as transferDelegated,
|
|
164
|
-
L as transferInterface,
|
|
165
|
-
$ as unpackMintData,
|
|
166
|
-
_ as unpackMintInterface,
|
|
167
|
-
V as updateFreezeAuthority,
|
|
168
|
-
X as updateMetadataAuthority,
|
|
169
|
-
W as updateMetadataField,
|
|
170
|
-
U as updateMintAuthority,
|
|
171
|
-
bL as validateSameTokenOwner,
|
|
172
|
-
Q as wrap,
|
|
173
|
-
} from './types-BSM3Bq3L.js';
|
|
174
|
-
import '@solana/web3.js';
|
|
175
|
-
import '@lightprotocol/stateless.js';
|
|
176
|
-
export { AccountState } from '@solana/spl-token';
|
|
177
|
-
import '@coral-xyz/borsh';
|
|
178
|
-
async function ea(a, e, t, s, o, n) {
|
|
179
|
-
return c(a, e, t, s, o, n);
|
|
180
|
-
}
|
|
181
|
-
async function ta(a, e, t, s, o, n) {
|
|
182
|
-
return l(a, e, t, s, o, n, 0);
|
|
183
|
-
}
|
|
184
|
-
async function sa(a, e, t, s, o, n, r) {
|
|
185
|
-
return g(a, e, t, s, o, n, r, 0);
|
|
186
|
-
}
|
|
187
|
-
export {
|
|
188
|
-
ta as createLoadAtaInstructions,
|
|
189
|
-
ea as getAtaInterface,
|
|
190
|
-
sa as loadAta,
|
|
191
|
-
};
|
|
1
|
+
import{g as a,a as c,c as l,l as g}from"./types-BRyuPsY_.js";export{b8 as ADD_TOKEN_POOL_DISCRIMINATOR,b6 as APPROVE_DISCRIMINATOR,aD as Action,ba as BASE_RENT_PER_EPOCH,b3 as BATCH_COMPRESS_DISCRIMINATOR,bg as COMPRESSIBLE_LIGHT_TOKEN_ACCOUNT_SIZE,bi as COMPRESSIBLE_LIGHT_TOKEN_RENT_PER_EPOCH,bd as COMPRESSION_COST,be as COMPRESSION_INCENTIVE,b5 as COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR,a$ as CPI_AUTHORITY_SEED,b1 as CREATE_TOKEN_POOL_DISCRIMINATOR,bJ as CompressedTokenInstructionDataApproveLayout,bK as CompressedTokenInstructionDataRevokeLayout,bp as CompressedTokenInstructionDataTransferLayout,C as CompressedTokenProgram,bo as CpiContextLayout,H as DEFAULT_COMPRESSIBLE_CONFIG,bj as DEFAULT_PREPAY_EPOCHS,bk as DEFAULT_WRITE_TOP_UP,bn as DelegatedTransferLayout,aM as ERROR_MIXED_TREE_TYPES,aL as ERROR_NO_ACCOUNTS_FOUND,ag as ExtensionType,bm as IDL,aX as LIGHT_TOKEN_CONFIG,aY as LIGHT_TOKEN_RENT_SPONSOR,C as LightTokenProgram,b as MAX_COMBINED_BATCH_BYTES,d as MAX_LOAD_ONLY_BATCH_BYTES,b9 as MAX_TOP_UP,M as MAX_TRANSACTION_SIZE,b2 as MINT_TO_DISCRIMINATOR,a_ as POOL_SEED,bb as RENT_PER_BYTE_PER_EPOCH,b7 as REVOKE_DISCRIMINATOR,bc as SLOTS_PER_RENT_EPOCH,b0 as SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE,bf as TOTAL_COMPRESSION_COST,b4 as TRANSFER_DISCRIMINATOR,aZ as TokenDataVersion,ap as addSplInterfaces,bC as addTokenPoolAccountsLayout,aq as addTokenPools,ai as approve,bF as approveAccountsLayout,aj as approveAndMintTo,T as approveInterface,br as batchCompressLayout,bl as calculateFeePayerCostAtCreation,aW as checkMint,aB as checkSplInterfaceInfo,aH as checkTokenPoolInfo,ak as compress,al as compressSplTokenAccount,bs as compressSplTokenAccountInstructionDataLayout,aa as convertTokenDataToAccount,U as createApproveInterfaceInstructions,j as createAssociatedLightTokenAccountIdempotentInstruction,i as createAssociatedLightTokenAccountInstruction,m as createAssociatedTokenAccountInterfaceIdempotentInstruction,k as createAssociatedTokenAccountInterfaceInstruction,J as createAtaInterface,K as createAtaInterfaceIdempotent,n as createAtaInterfaceIdempotentInstruction,bU as createDecompressOutputState,F as createLightTokenApproveInstruction,A as createLightTokenFreezeAccountInstruction,G as createLightTokenRevokeInstruction,B as createLightTokenThawAccountInstruction,E as createLightTokenTransferCheckedInstruction,D as createLightTokenTransferInstruction,am as createMint,f as createMintInstruction,I as createMintInterface,p as createMintToCompressedInstruction,o as createMintToInstruction,q as createMintToInterfaceInstruction,w as createRemoveMetadataKeyInstruction,W as createRevokeInterfaceInstructions,an as createSplInterface,h as createTokenMetadata,ao as createTokenPool,bB as createTokenPoolAccountsLayout,ar as createTokenProgramLookupTable,Q as createTransferInterfaceInstructions,bT as createTransferOutputState,R as createTransferToAccountInterfaceInstructions,y as createUnwrapInstruction,z as createUnwrapInstructions,t as createUpdateFreezeAuthorityInstruction,v as createUpdateMetadataAuthorityInstruction,u as createUpdateMetadataFieldInstruction,r as createUpdateMintAuthorityInstruction,x as createWrapInstruction,bM as decodeApproveInstructionData,bw as decodeBatchCompressInstructionData,by as decodeCompressSplTokenAccountInstructionData,bu as decodeMintToInstructionData,bO as decodeRevokeInstructionData,ad as decodeTokenMetadata,bA as decodeTransferInstructionData,as as decompress,ay as decompressDelegated,aA as deriveSplInterfaceInfo,aG as deriveTokenPoolInfo,ab as deserializeMint,bL as encodeApproveInstructionData,bv as encodeBatchCompressInstructionData,bx as encodeCompressSplTokenAccountInstructionData,bt as encodeMintToInstructionData,bN as encodeRevokeInstructionData,ae as encodeTokenMetadata,bz as encodeTransferInstructionData,e as estimateTransactionSize,af as extractTokenMetadata,bH as freezeAccountsLayout,a6 as getAccountInterface,L as getAssociatedTokenAddressInterface,N as getOrCreateAtaInterface,aC as getSplInterfaceInfos,aI as getTokenPoolInfos,aN as groupAccountsByTreeType,bV as isSingleSplInterfaceInfo,bW as isSingleTokenPoolInfo,at as mergeTokenAccounts,au as mintTo,bD as mintToAccountsLayout,Z as mintToCompressed,_ as mintToInterface,bq as mintToLayout,Y as mintToLightToken,aV as packCompressedTokenAccounts,a8 as parseLightTokenCold,a7 as parseLightTokenHot,bS as parseMaybeDelegatedTransfer,bR as parseTokenData,a3 as removeMetadataKey,bh as rentPerEpoch,av as revoke,bG as revokeAccountsLayout,V as revokeInterface,aO as selectAccountsByPreferredTreeType,s as selectInputsForAmount,aQ as selectMinCompressedTokenAccountsForDecompression,aR as selectMinCompressedTokenAccountsForTransfer,aS as selectMinCompressedTokenAccountsForTransferOrPartial,aT as selectSmartCompressedTokenAccountsForTransfer,aU as selectSmartCompressedTokenAccountsForTransferOrPartial,aE as selectSplInterfaceInfo,aF as selectSplInterfaceInfosForDecompression,aP as selectTokenAccountsForApprove,aJ as selectTokenPoolInfo,aK as selectTokenPoolInfosForDecompression,ac as serializeMint,S as sliceLast,bP as sumUpTokenAmount,bI as thawAccountsLayout,a9 as toAccountInfo,ah as toOffChainMetadataJson,az as toTokenPoolInfo,aw as transfer,bE as transferAccountsLayout,ax as transferDelegated,O as transferInterface,P as transferToAccountInterface,a5 as unpackMintData,a4 as unpackMintInterface,a0 as updateFreezeAuthority,a2 as updateMetadataAuthority,a1 as updateMetadataField,$ as updateMintAuthority,bQ as validateSameTokenOwner,X as wrap}from"./types-BRyuPsY_.js";import"@solana/web3.js";import"@lightprotocol/stateless.js";export{AccountState}from"@solana/spl-token";import"@coral-xyz/borsh";async function ea(e,t,s,o,n,r){return a(e,t,s,o,n,r)}async function ta(a,e,t,s,o,n){const r=await c(a,s);return l(a,e,t,s,r.mint.decimals,o,n)}async function sa(a,e,t,s,o,n,r,c){return g(a,e,t,s,o,n,r,c)}export{ta as createLoadAtaInstructions,ea as getAtaInterface,c as getMintInterface,sa as loadAta};
|
|
192
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","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
|
|
1
|
+
{"version":3,"file":"index.js","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","getAtaInterface","rpc","ata","owner","mint","commitment","programId","_mintGetAtaInterface","createLoadAtaInstructions","payer","options","mintInterface","getMintInterface","_createLoadAtaInstructions","decimals","loadAta","confirmOptions","interfaceOptions","_loadAta"],"mappings":"6hLAgJOA,eAAeC,GAClBC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,OAAOC,EAAqBN,EAAKC,EAAKC,EAAOC,EAAMC,EAAYC,EACnE,CAcOP,eAAeS,GAClBP,EACAC,EACAC,EACAC,EACAK,EACAC,GAEA,MAAMC,QAAsBC,EAAiBX,EAAKG,GAClD,OAAOS,EACHZ,EACAC,EACAC,EACAC,EACAO,EAAcP,KAAKU,SACnBL,EACAC,EAER,CAcOX,eAAegB,GAClBd,EACAC,EACAC,EACAC,EACAK,EACAO,EACAC,EACAH,GAEA,OAAOI,EACHjB,EACAC,EACAC,EACAC,EACAK,EACAO,EACAC,EACAH,EAER"}
|