@lightprotocol/compressed-token 0.23.0-beta.2 → 0.23.0-beta.4
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 +218 -1
- package/dist/cjs/browser/types-qZMOMIxa.cjs +11351 -0
- package/dist/cjs/browser/types-qZMOMIxa.cjs.map +1 -0
- package/dist/cjs/browser/unified/index.cjs +379 -1
- package/dist/cjs/node/index.cjs +219 -1
- package/dist/cjs/node/types-BsKbElnz.cjs +10113 -0
- package/dist/cjs/node/types-BsKbElnz.cjs.map +1 -0
- package/dist/cjs/node/unified/index.cjs +380 -1
- package/dist/es/browser/index.js +166 -1
- package/dist/es/browser/types-pblNXos5.js +10454 -0
- package/dist/es/browser/types-pblNXos5.js.map +1 -0
- package/dist/es/browser/unified/index.js +284 -1
- package/dist/types/index.d.ts +1271 -262
- package/dist/types/unified/index.d.ts +1307 -267
- package/package.json +2 -2
- package/dist/cjs/browser/types-BYVvBJS4.cjs +0 -2
- package/dist/cjs/browser/types-BYVvBJS4.cjs.map +0 -1
- package/dist/cjs/node/types-C6bFjLLI.cjs +0 -2
- package/dist/cjs/node/types-C6bFjLLI.cjs.map +0 -1
- package/dist/es/browser/types-Z2gqWJ9V.js +0 -2
- package/dist/es/browser/types-Z2gqWJ9V.js.map +0 -1
|
@@ -1,2 +1,219 @@
|
|
|
1
|
-
|
|
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
|
+
}));
|
|
2
219
|
//# sourceMappingURL=index.cjs.map
|