🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@layerzerolabs/devtools-solana

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/devtools-solana - npm Package Compare versions

Comparing version
3.0.7
to
3.1.0
+15
-1
dist/index.d.mts

@@ -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 };

@@ -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