@layerzerolabs/devtools-solana
Advanced tools
+15
-1
@@ -48,2 +48,16 @@ import { Factory, OmniAddress, OmniPoint, EndpointBasedFactory, RpcUrlFactory, IOmniSDK as IOmniSDK$1, OmniTransaction, OmniSignerBase, OmniSigner, OmniTransactionResponse, OmniTransactionReceipt, OmniSignerFactory } from '@layerzerolabs/devtools'; | ||
| /** | ||
| * The big-number type the Solana program instruction builders (via beet) expect for | ||
| * `u64`/`u128` fields. Re-exported so consumers can name it without depending on `bn.js` | ||
| * directly. | ||
| */ | ||
| type Bignum = BN; | ||
| /** | ||
| * Converts a `bigint` to a `bn.js` `BN`, which is the numeric type the Solana program | ||
| * instruction builders (via beet) expect for `u64`/`u128` fields. | ||
| * | ||
| * Going through the decimal string keeps full precision for values that overflow a JS | ||
| * number (e.g. the `type(uint64).max` NIL sentinel used in ULN configs). | ||
| */ | ||
| declare function bigIntToBN(value: bigint): Bignum; | ||
| /** Returns the maximum whole-token supply given u64 base-unit cap: | ||
@@ -223,2 +237,2 @@ * floor(U64_MAX / 10^localDecimals). | ||
| export { BNBigIntSchema, type ConnectionFactory, type GetAccountInfo, type IOmniSDK, OmniSDK, OmniSignerSolana, OmniSignerSolanaSquads, PublicKeyBase58Schema, type PublicKeyFactory, PublicKeySchema, assertAccountInitialized, assertValidSolanaAdmin, canAddInstruction, createConnectionFactory, createGetAccountInfo, createRpcUrlFactory, createSolanaConnectionFactory, createSolanaSignerFactory, defaultRpcUrlFactory, deserializeTransactionBuffer, deserializeTransactionMessage, estimateTransactionSize, getPrioritizationFees, getSolanaKeypair, isOmniPointOnSolana, isOnCurveAddress, isSquadsV4Vault, localDecimalsToMaxWholeTokens, serializeTransactionBuffer, serializeTransactionMessage, setTransactionSizeBuffer }; | ||
| export { BNBigIntSchema, type Bignum, type ConnectionFactory, type GetAccountInfo, type IOmniSDK, OmniSDK, OmniSignerSolana, OmniSignerSolanaSquads, PublicKeyBase58Schema, type PublicKeyFactory, PublicKeySchema, assertAccountInitialized, assertValidSolanaAdmin, bigIntToBN, canAddInstruction, createConnectionFactory, createGetAccountInfo, createRpcUrlFactory, createSolanaConnectionFactory, createSolanaSignerFactory, defaultRpcUrlFactory, deserializeTransactionBuffer, deserializeTransactionMessage, estimateTransactionSize, getPrioritizationFees, getSolanaKeypair, isOmniPointOnSolana, isOnCurveAddress, isSquadsV4Vault, localDecimalsToMaxWholeTokens, serializeTransactionBuffer, serializeTransactionMessage, setTransactionSizeBuffer }; |
+15
-1
@@ -48,2 +48,16 @@ import { Factory, OmniAddress, OmniPoint, EndpointBasedFactory, RpcUrlFactory, IOmniSDK as IOmniSDK$1, OmniTransaction, OmniSignerBase, OmniSigner, OmniTransactionResponse, OmniTransactionReceipt, OmniSignerFactory } from '@layerzerolabs/devtools'; | ||
| /** | ||
| * The big-number type the Solana program instruction builders (via beet) expect for | ||
| * `u64`/`u128` fields. Re-exported so consumers can name it without depending on `bn.js` | ||
| * directly. | ||
| */ | ||
| type Bignum = BN; | ||
| /** | ||
| * Converts a `bigint` to a `bn.js` `BN`, which is the numeric type the Solana program | ||
| * instruction builders (via beet) expect for `u64`/`u128` fields. | ||
| * | ||
| * Going through the decimal string keeps full precision for values that overflow a JS | ||
| * number (e.g. the `type(uint64).max` NIL sentinel used in ULN configs). | ||
| */ | ||
| declare function bigIntToBN(value: bigint): Bignum; | ||
| /** Returns the maximum whole-token supply given u64 base-unit cap: | ||
@@ -223,2 +237,2 @@ * floor(U64_MAX / 10^localDecimals). | ||
| export { BNBigIntSchema, type ConnectionFactory, type GetAccountInfo, type IOmniSDK, OmniSDK, OmniSignerSolana, OmniSignerSolanaSquads, PublicKeyBase58Schema, type PublicKeyFactory, PublicKeySchema, assertAccountInitialized, assertValidSolanaAdmin, canAddInstruction, createConnectionFactory, createGetAccountInfo, createRpcUrlFactory, createSolanaConnectionFactory, createSolanaSignerFactory, defaultRpcUrlFactory, deserializeTransactionBuffer, deserializeTransactionMessage, estimateTransactionSize, getPrioritizationFees, getSolanaKeypair, isOmniPointOnSolana, isOnCurveAddress, isSquadsV4Vault, localDecimalsToMaxWholeTokens, serializeTransactionBuffer, serializeTransactionMessage, setTransactionSizeBuffer }; | ||
| export { BNBigIntSchema, type Bignum, type ConnectionFactory, type GetAccountInfo, type IOmniSDK, OmniSDK, OmniSignerSolana, OmniSignerSolanaSquads, PublicKeyBase58Schema, type PublicKeyFactory, PublicKeySchema, assertAccountInitialized, assertValidSolanaAdmin, bigIntToBN, canAddInstruction, createConnectionFactory, createGetAccountInfo, createRpcUrlFactory, createSolanaConnectionFactory, createSolanaSignerFactory, defaultRpcUrlFactory, deserializeTransactionBuffer, deserializeTransactionMessage, estimateTransactionSize, getPrioritizationFees, getSolanaKeypair, isOmniPointOnSolana, isOnCurveAddress, isSquadsV4Vault, localDecimalsToMaxWholeTokens, serializeTransactionBuffer, serializeTransactionMessage, setTransactionSizeBuffer }; |
+1
-1
| { | ||
| "name": "@layerzerolabs/devtools-solana", | ||
| "version": "3.0.7", | ||
| "version": "3.1.0", | ||
| "description": "Utilities for LayerZero Solana projects", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
35
-25.53%2523397
-3.91%33174
-3.52%