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