Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@delvtech/evm-client

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@delvtech/evm-client - npm Package Compare versions

Comparing version
0.4.0
to
0.4.1
+2
dist/chunk-MDTXOUYA.js
import{c as t}from"./chunk-EXKUPYHD.js";t();
//# sourceMappingURL=chunk-MDTXOUYA.js.map
{"version":3,"sources":["../src/exports/network.ts"],"sourcesContent":["export type { Block, BlockTag } from 'src/network/types/Block';\nexport type {\n Network,\n NetworkGetBalanceArgs,\n NetworkGetBlockArgs,\n NetworkGetBlockOptions,\n NetworkGetTransactionArgs,\n NetworkWaitForTransactionArgs,\n} from 'src/network/types/Network';\nexport type {\n MinedTransaction,\n Transaction,\n TransactionInfo,\n TransactionReceipt,\n} from 'src/network/types/Transaction';\n"],"mappings":"wCAAAA","names":["init_esm_shims"]}
+1
-1

@@ -7,4 +7,4 @@ export { createLruSimpleCache, createSimpleCacheKey } from './cache.js';

export { B as Block, a as BlockTag } from './Block-D7itLNye.js';
export { M as MinedTransaction, N as Network, a as NetworkGetBalanceArgs, b as NetworkGetBlockArgs, c as NetworkGetBlockOptions, d as NetworkGetTransactionArgs, e as NetworkWaitForTransactionArgs, T as Transaction, f as TransactionInfo } from './network--UJ93808.js';
export { MinedTransaction, Network, NetworkGetBalanceArgs, NetworkGetBlockArgs, NetworkGetBlockOptions, NetworkGetTransactionArgs, NetworkWaitForTransactionArgs, Transaction, TransactionInfo, TransactionReceipt } from './network.js';
import 'lru-cache';
import 'abitype';

@@ -1,2 +0,2 @@

import"./chunk-MWVTNBAN.js";import{a as f,b as m,c as t,d as x,e as a,f as b}from"./chunk-OWBXSX3M.js";import{a as r,b as e}from"./chunk-HB4JKCEF.js";import"./chunk-3DBCK3WJ.js";import{a as p}from"./chunk-FJROFRBN.js";import"./chunk-SXCIO5B6.js";import{c as o}from"./chunk-EXKUPYHD.js";o();export{p as AbiEntryNotFoundError,x as arrayToFriendly,a as arrayToObject,f as createCachedReadContract,m as createCachedReadWriteContract,r as createLruSimpleCache,e as createSimpleCacheKey,t as getAbiEntry,b as objectToArray};
import"./chunk-MWVTNBAN.js";import{a as f,b as m,c as t,d as x,e as a,f as b}from"./chunk-OWBXSX3M.js";import{a as r,b as e}from"./chunk-HB4JKCEF.js";import"./chunk-3DBCK3WJ.js";import{a as p}from"./chunk-FJROFRBN.js";import"./chunk-MDTXOUYA.js";import{c as o}from"./chunk-EXKUPYHD.js";o();export{p as AbiEntryNotFoundError,x as arrayToFriendly,a as arrayToObject,f as createCachedReadContract,m as createCachedReadWriteContract,r as createLruSimpleCache,e as createSimpleCacheKey,t as getAbiEntry,b as objectToArray};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,103 @@

export { B as Block, a as BlockTag } from './Block-D7itLNye.js';
export { M as MinedTransaction, N as Network, a as NetworkGetBalanceArgs, b as NetworkGetBlockArgs, c as NetworkGetBlockOptions, d as NetworkGetTransactionArgs, e as NetworkWaitForTransactionArgs, T as Transaction, f as TransactionInfo } from './network--UJ93808.js';
import { B as Block, a as BlockTag } from './Block-D7itLNye.js';
interface TransactionInfo {
blockHash?: `0x${string}`;
blockNumber?: bigint;
from?: `0x${string}`;
hash?: `0x${string}`;
transactionIndex?: number;
}
/** Basic legacy compatible transaction */
interface Transaction extends TransactionInfo {
type: `0x${string}`;
nonce: number;
gas: bigint;
value: bigint;
input: `0x${string}`;
gasPrice: bigint;
chainId?: number;
to?: `0x${string}` | null;
}
type MinedTransaction = Transaction & Required<TransactionInfo>;
interface TransactionReceipt {
blockHash: `0x${string}`;
blockNumber: bigint;
from: `0x${string}`;
/**
* Address of the receiver or `null` in a contract creation transaction.
*/
to: `0x${string}` | null;
/**
* The sum of gas used by this transaction and all preceding transactions in
* the same block.
*/
cumulativeGasUsed: bigint;
/**
* The amount of gas used for this specific transaction alone.
*/
gasUsed: bigint;
logsBloom: `0x${string}`;
transactionHash: `0x${string}`;
transactionIndex: number;
status: 'success' | 'reverted';
/**
* The actual value per gas deducted from the sender's account. Before
* EIP-1559, this is equal to the transaction's gas price. After, it is equal
* to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).
*/
effectiveGasPrice: bigint;
}
/**
* An interface representing data the SDK needs to get from the network.
*/
interface Network {
/**
* Get the balance of native currency for an account.
*/
getBalance(...args: NetworkGetBalanceArgs): Promise<bigint>;
/**
* Get a block from a block tag, number, or hash. If no argument is provided,
* the latest block is returned.
*/
getBlock(...args: NetworkGetBlockArgs): Promise<Block | undefined>;
/**
* Get a transaction from a transaction hash.
*/
getTransaction(...args: NetworkGetTransactionArgs): Promise<Transaction | undefined>;
/**
* Wait for a transaction to be mined.
*/
waitForTransaction(...args: NetworkWaitForTransactionArgs): Promise<TransactionReceipt | undefined>;
}
type NetworkGetBlockOptions = {
blockHash?: `0x${string}`;
blockNumber?: never;
blockTag?: never;
} | {
blockHash?: never;
blockNumber?: bigint;
blockTag?: never;
} | {
blockHash?: never;
blockNumber?: never;
blockTag?: BlockTag;
};
type NetworkGetBalanceArgs = [
address: `0x${string}`,
block?: NetworkGetBlockOptions
];
type NetworkGetBlockArgs = [options?: NetworkGetBlockOptions];
type NetworkGetTransactionArgs = [hash: `0x${string}`];
type NetworkWaitForTransactionArgs = [
hash: `0x${string}`,
options?: {
/**
* The number of milliseconds to wait for the transaction until rejecting
* the promise.
*/
timeout?: number;
}
];
export { Block, BlockTag, type MinedTransaction, type Network, type NetworkGetBalanceArgs, type NetworkGetBlockArgs, type NetworkGetBlockOptions, type NetworkGetTransactionArgs, type NetworkWaitForTransactionArgs, type Transaction, type TransactionInfo, type TransactionReceipt };

@@ -1,2 +0,2 @@

import"./chunk-SXCIO5B6.js";import"./chunk-EXKUPYHD.js";
import"./chunk-MDTXOUYA.js";import"./chunk-EXKUPYHD.js";
//# sourceMappingURL=network.js.map

@@ -5,3 +5,3 @@ import { Abi } from 'abitype';

import { B as Block } from './Block-D7itLNye.js';
import { N as Network, a as NetworkGetBalanceArgs, b as NetworkGetBlockArgs, d as NetworkGetTransactionArgs, T as Transaction, e as NetworkWaitForTransactionArgs, g as TransactionReceipt } from './network--UJ93808.js';
import { Network, NetworkGetBalanceArgs, NetworkGetBlockArgs, NetworkGetTransactionArgs, Transaction, NetworkWaitForTransactionArgs, TransactionReceipt } from './network.js';

@@ -8,0 +8,0 @@ /**

{
"name": "@delvtech/evm-client",
"version": "0.4.0",
"version": "0.4.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "type": "module",

import{c as t}from"./chunk-EXKUPYHD.js";t();
//# sourceMappingURL=chunk-SXCIO5B6.js.map
{"version":3,"sources":["../src/exports/network.ts"],"sourcesContent":["export type { Block, BlockTag } from 'src/network/types/Block';\nexport type {\n Network,\n NetworkGetBalanceArgs,\n NetworkGetBlockArgs,\n NetworkGetBlockOptions,\n NetworkGetTransactionArgs,\n NetworkWaitForTransactionArgs,\n} from 'src/network/types/Network';\nexport type {\n MinedTransaction,\n Transaction,\n TransactionInfo,\n} from 'src/network/types/Transaction';\n"],"mappings":"wCAAAA","names":["init_esm_shims"]}
import { B as Block, a as BlockTag } from './Block-D7itLNye.js';
interface TransactionInfo {
blockHash?: `0x${string}`;
blockNumber?: bigint;
from?: `0x${string}`;
hash?: `0x${string}`;
transactionIndex?: number;
}
/** Basic legacy compatible transaction */
interface Transaction extends TransactionInfo {
type: `0x${string}`;
nonce: number;
gas: bigint;
value: bigint;
input: `0x${string}`;
gasPrice: bigint;
chainId?: number;
to?: `0x${string}` | null;
}
type MinedTransaction = Transaction & Required<TransactionInfo>;
interface TransactionReceipt {
blockHash: `0x${string}`;
blockNumber: bigint;
from: `0x${string}`;
/**
* Address of the receiver or `null` in a contract creation transaction.
*/
to: `0x${string}` | null;
/**
* The sum of gas used by this transaction and all preceding transactions in
* the same block.
*/
cumulativeGasUsed: bigint;
/**
* The amount of gas used for this specific transaction alone.
*/
gasUsed: bigint;
logsBloom: `0x${string}`;
transactionHash: `0x${string}`;
transactionIndex: number;
status: 'success' | 'reverted';
/**
* The actual value per gas deducted from the sender's account. Before
* EIP-1559, this is equal to the transaction's gas price. After, it is equal
* to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).
*/
effectiveGasPrice: bigint;
}
/**
* An interface representing data the SDK needs to get from the network.
*/
interface Network {
/**
* Get the balance of native currency for an account.
*/
getBalance(...args: NetworkGetBalanceArgs): Promise<bigint>;
/**
* Get a block from a block tag, number, or hash. If no argument is provided,
* the latest block is returned.
*/
getBlock(...args: NetworkGetBlockArgs): Promise<Block | undefined>;
/**
* Get a transaction from a transaction hash.
*/
getTransaction(...args: NetworkGetTransactionArgs): Promise<Transaction | undefined>;
/**
* Wait for a transaction to be mined.
*/
waitForTransaction(...args: NetworkWaitForTransactionArgs): Promise<TransactionReceipt | undefined>;
}
type NetworkGetBlockOptions = {
blockHash?: `0x${string}`;
blockNumber?: never;
blockTag?: never;
} | {
blockHash?: never;
blockNumber?: bigint;
blockTag?: never;
} | {
blockHash?: never;
blockNumber?: never;
blockTag?: BlockTag;
};
type NetworkGetBalanceArgs = [
address: `0x${string}`,
block?: NetworkGetBlockOptions
];
type NetworkGetBlockArgs = [options?: NetworkGetBlockOptions];
type NetworkGetTransactionArgs = [hash: `0x${string}`];
type NetworkWaitForTransactionArgs = [
hash: `0x${string}`,
options?: {
/**
* The number of milliseconds to wait for the transaction until rejecting
* the promise.
*/
timeout?: number;
}
];
export type { MinedTransaction as M, Network as N, Transaction as T, NetworkGetBalanceArgs as a, NetworkGetBlockArgs as b, NetworkGetBlockOptions as c, NetworkGetTransactionArgs as d, NetworkWaitForTransactionArgs as e, TransactionInfo as f, TransactionReceipt as g };