@lightprotocol/compressed-token 0.23.0-beta.6 → 0.23.0-beta.7
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 -1
- package/dist/cjs/browser/types-D7Vfriyx.cjs +2 -0
- package/dist/cjs/browser/types-D7Vfriyx.cjs.map +1 -0
- package/dist/cjs/browser/unified/index.cjs +1 -1
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/types-DM7_3vD2.cjs +2 -0
- package/dist/cjs/node/types-DM7_3vD2.cjs.map +1 -0
- package/dist/cjs/node/unified/index.cjs +1 -1
- package/dist/es/browser/index.js +1 -1
- package/dist/es/browser/types-MLa8Txs3.js +2 -0
- package/dist/es/browser/types-MLa8Txs3.js.map +1 -0
- package/dist/es/browser/unified/index.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/browser/types-C7ZeGpIm.cjs +0 -2
- package/dist/cjs/browser/types-C7ZeGpIm.cjs.map +0 -1
- package/dist/cjs/node/types-BGRaX3tR.cjs +0 -2
- package/dist/cjs/node/types-BGRaX3tR.cjs.map +0 -1
- package/dist/es/browser/types-BvBzUhrt.js +0 -2
- package/dist/es/browser/types-BvBzUhrt.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ComputeBudgetProgram as e}from"@solana/web3.js";import{LIGHT_TOKEN_PROGRAM_ID as s,buildAndSignTx as o,sendAndConfirmTx as c}from"@lightprotocol/stateless.js";import{g as l,J as f,c as M,l as N,o as L,L as h,bR as g,bS as K,N as B,B as J,bT as ea}from"../types-
|
|
1
|
+
import{ComputeBudgetProgram as e}from"@solana/web3.js";import{LIGHT_TOKEN_PROGRAM_ID as s,buildAndSignTx as o,sendAndConfirmTx as c}from"@lightprotocol/stateless.js";import{g as l,J as f,c as M,l as N,o as L,L as h,bR as g,bS as K,N as B,B as J,bT as ea}from"../types-MLa8Txs3.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,bV as COMPRESSED_MINT_SEED,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,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,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,bN as createTransferOutputState,A as createUnwrapInstruction,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,bU as deriveCMintAddress,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,a9 as extractTokenMetadata,bW as findMintAddress,bB as freezeAccountsLayout,a0 as getAccountInterface,bY as getAssociatedCTokenAddress,bX as getAssociatedCTokenAddressAndBump,Z as getMintInterface,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,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,$ as unpackMintData,_ as unpackMintInterface,V as updateFreezeAuthority,X as updateMetadataAuthority,W as updateMetadataField,U as updateMintAuthority,bK as validateSameTokenOwner,Q as wrap}from"../types-MLa8Txs3.js";export{AccountState}from"@solana/spl-token";import"@coral-xyz/borsh";async function ta(a,e,t,s,o,n){return l(a,e,t,s,o,n,1)}function sa(a,e,t=0,o=s,n){if(!o.equals(s))throw new Error("Please derive the unified ATA from the c-token program; balances across SPL, T22, and c-token are unified under the canonical c-token ATA.");return f(a,e,t,o,n)}async function oa(a,e,t,s,o,n){return M(a,e,t,s,o,n,1)}async function na(a,t,n,r,i,u,T){i??=n;const I=await N(a,t,n,r,i,u,T,1);if(null===I&&!await a.getAccountInfo(t)){const T=L(i.publicKey,t,n.publicKey,r,s),{blockhash:I}=await a.getLatestBlockhash(),p=o([e.setComputeUnitLimit({units:3e4}),T],i,I,i.publicKey.equals(n.publicKey)?[]:[n]);return c(a,p,u)}return I}async function ra(a,e,t,s,o,n,r,c,i){return h(a,e,t,s,o,n,r,void 0,c,i,1)}async function ca(a,e,t,o,n=0,r,c){return g(a,e,t,o,n,r,c,s,K(s),1)}async function ia(a,e,t,s,o,n,r){return B(a,e,t,s,o,n,{...r,wrap:1})}async function ua(a,e,t,s,o,n,r,c){return J(a,e,t,s,o,n,r,c,1)}async function Ta(a,e,t,s,o,n,r,c){return ea(a,e,t,s,o,n,r,c)}export{L as createAssociatedTokenAccountInterfaceIdempotentInstruction,oa as createLoadAtaInstructions,ia as createTransferInterfaceInstructions,ua as createUnwrapInstructions,sa as getAssociatedTokenAddressInterface,ta as getAtaInterface,ca as getOrCreateAtaInterface,na as loadAta,ra as transferInterface,Ta as unwrap};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/compressed-token",
|
|
3
|
-
"version": "0.23.0-beta.
|
|
3
|
+
"version": "0.23.0-beta.7",
|
|
4
4
|
"description": "JS client to interact with the compressed-token program",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/node/index.cjs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@coral-xyz/borsh": "^0.29.0",
|
|
43
43
|
"@solana/spl-token": ">=0.3.9",
|
|
44
44
|
"@solana/web3.js": ">=1.73.5",
|
|
45
|
-
"@lightprotocol/stateless.js": "0.23.0-beta.
|
|
45
|
+
"@lightprotocol/stateless.js": "0.23.0-beta.7"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@solana/buffer-layout": "^4.0.1",
|