Socket
Socket
Sign inDemoInstall

viem

Package Overview
Dependencies
Maintainers
1
Versions
2133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viem - npm Package Compare versions

Comparing version 0.0.1-alpha.27 to 0.0.1-alpha.28

dist/chain-4d46a747.d.ts

8

dist/chains.d.ts

@@ -1,5 +0,7 @@

import { R as RpcBlock, d as Block, x as Transaction, H as Hex, o as RpcTransaction, p as RpcTransactionReceipt, T as TransactionReceipt, J as TransactionType, s as TransactionRequest, q as RpcTransactionRequest } from './chain-42de87e5.js';
export { C as Chain } from './chain-42de87e5.js';
export { d as defineChain } from './chain-b0cfb141.js';
import { R as RpcBlock, e as Block, z as Transaction, H as Hex, q as RpcTransaction, r as RpcTransactionReceipt, T as TransactionReceipt, $ as TransactionType, u as TransactionRequest, s as RpcTransactionRequest } from './chain-4d46a747.js';
export { C as Chain } from './chain-4d46a747.js';
export { d as defineChain } from './chain-c7c44165.js';
import '@wagmi/chains';
import 'abitype';
import 'ethers@6/types/providers';

@@ -6,0 +8,0 @@ declare const arbitrum: {

@@ -7,3 +7,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }

var _chunkW7KWIGWOjs = require('./chunk-W7KWIGWO.js');
var _chunkNYWN5V47js = require('./chunk-NYWN5V47.js');

@@ -13,3 +13,3 @@ // src/chains.ts

var celoFormatters = {
block: _chunkW7KWIGWOjs.defineBlock.call(void 0, {
block: _chunkNYWN5V47js.defineBlock.call(void 0, {
exclude: ["difficulty", "gasLimit", "mixHash", "nonce", "uncles"],

@@ -20,3 +20,3 @@ format: (block) => ({

}),
transaction: _chunkW7KWIGWOjs.defineTransaction.call(void 0, {
transaction: _chunkNYWN5V47js.defineTransaction.call(void 0, {
format: (transaction) => ({

@@ -28,3 +28,3 @@ feeCurrency: transaction.feeCurrency,

}),
transactionReceipt: _chunkW7KWIGWOjs.defineTransactionReceipt.call(void 0, {
transactionReceipt: _chunkNYWN5V47js.defineTransactionReceipt.call(void 0, {
format: (transaction) => ({

@@ -36,3 +36,3 @@ feeCurrency: transaction.feeCurrency,

}),
transactionRequest: _chunkW7KWIGWOjs.defineTransactionRequest.call(void 0, {
transactionRequest: _chunkNYWN5V47js.defineTransactionRequest.call(void 0, {
format: (transactionRequest) => ({

@@ -45,48 +45,48 @@ feeCurrency: transactionRequest.feeCurrency,

};
var arbitrum2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.arbitrum);
var arbitrumGoerli2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.arbitrumGoerli);
var aurora2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.aurora);
var auroraGoerli = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.auroraTestnet);
var avalanche2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.avalanche);
var avalancheFuji2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.avalancheFuji);
var bronos2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.bronos);
var bronosTestnet2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.bronosTestnet);
var bsc2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.bsc);
var bscTestnet2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.bscTestnet);
var canto2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.canto);
var celo2 = _chunkW7KWIGWOjs.defineChain.call(void 0, {
var arbitrum2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.arbitrum);
var arbitrumGoerli2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.arbitrumGoerli);
var aurora2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.aurora);
var auroraGoerli = _chunkNYWN5V47js.defineChain.call(void 0, chains.auroraTestnet);
var avalanche2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.avalanche);
var avalancheFuji2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.avalancheFuji);
var bronos2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.bronos);
var bronosTestnet2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.bronosTestnet);
var bsc2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.bsc);
var bscTestnet2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.bscTestnet);
var canto2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.canto);
var celo2 = _chunkNYWN5V47js.defineChain.call(void 0, {
...chains.celo,
formatters: celoFormatters
});
var celoAlfajores2 = _chunkW7KWIGWOjs.defineChain.call(void 0, {
var celoAlfajores2 = _chunkNYWN5V47js.defineChain.call(void 0, {
...chains.celoAlfajores,
formatters: celoFormatters
});
var crossbell2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.crossbell);
var evmos2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.evmos);
var evmosTestnet2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.evmosTestnet);
var fantom2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.fantom);
var fantomTestnet2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.fantomTestnet);
var filecoin2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.filecoin);
var filecoinTestnet = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.filecoinHyperspace);
var foundry2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.foundry);
var goerli2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.goerli);
var gnosis2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.gnosis);
var gnosisChiado2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.gnosisChiado);
var hardhat2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.hardhat);
var iotex2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.iotex);
var iotexTestnet2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.iotexTestnet);
var localhost2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.localhost);
var mainnet2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.mainnet);
var metis2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.metis);
var metisGoerli2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.metisGoerli);
var optimism2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.optimism);
var optimismGoerli2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.optimismGoerli);
var polygon2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.polygon);
var polygonMumbai2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.polygonMumbai);
var sepolia2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.sepolia);
var taraxa2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.taraxa);
var taraxaTestnet2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.taraxaTestnet);
var zkSync2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.zkSync);
var zkSyncTestnet2 = _chunkW7KWIGWOjs.defineChain.call(void 0, chains.zkSyncTestnet);
var crossbell2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.crossbell);
var evmos2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.evmos);
var evmosTestnet2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.evmosTestnet);
var fantom2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.fantom);
var fantomTestnet2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.fantomTestnet);
var filecoin2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.filecoin);
var filecoinTestnet = _chunkNYWN5V47js.defineChain.call(void 0, chains.filecoinHyperspace);
var foundry2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.foundry);
var goerli2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.goerli);
var gnosis2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.gnosis);
var gnosisChiado2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.gnosisChiado);
var hardhat2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.hardhat);
var iotex2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.iotex);
var iotexTestnet2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.iotexTestnet);
var localhost2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.localhost);
var mainnet2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.mainnet);
var metis2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.metis);
var metisGoerli2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.metisGoerli);
var optimism2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.optimism);
var optimismGoerli2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.optimismGoerli);
var polygon2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.polygon);
var polygonMumbai2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.polygonMumbai);
var sepolia2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.sepolia);
var taraxa2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.taraxa);
var taraxaTestnet2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.taraxaTestnet);
var zkSync2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.zkSync);
var zkSyncTestnet2 = _chunkNYWN5V47js.defineChain.call(void 0, chains.zkSyncTestnet);

@@ -134,3 +134,3 @@

exports.arbitrum = arbitrum2; exports.arbitrumGoerli = arbitrumGoerli2; exports.aurora = aurora2; exports.auroraGoerli = auroraGoerli; exports.avalanche = avalanche2; exports.avalancheFuji = avalancheFuji2; exports.bronos = bronos2; exports.bronosTestnet = bronosTestnet2; exports.bsc = bsc2; exports.bscTestnet = bscTestnet2; exports.canto = canto2; exports.celo = celo2; exports.celoAlfajores = celoAlfajores2; exports.crossbell = crossbell2; exports.defineChain = _chunkW7KWIGWOjs.defineChain; exports.evmos = evmos2; exports.evmosTestnet = evmosTestnet2; exports.fantom = fantom2; exports.fantomTestnet = fantomTestnet2; exports.filecoin = filecoin2; exports.filecoinTestnet = filecoinTestnet; exports.foundry = foundry2; exports.gnosis = gnosis2; exports.gnosisChiado = gnosisChiado2; exports.goerli = goerli2; exports.hardhat = hardhat2; exports.iotex = iotex2; exports.iotexTestnet = iotexTestnet2; exports.localhost = localhost2; exports.mainnet = mainnet2; exports.metis = metis2; exports.metisGoerli = metisGoerli2; exports.optimism = optimism2; exports.optimismGoerli = optimismGoerli2; exports.polygon = polygon2; exports.polygonMumbai = polygonMumbai2; exports.sepolia = sepolia2; exports.taraxa = taraxa2; exports.taraxaTestnet = taraxaTestnet2; exports.zkSync = zkSync2; exports.zkSyncTestnet = zkSyncTestnet2;
exports.arbitrum = arbitrum2; exports.arbitrumGoerli = arbitrumGoerli2; exports.aurora = aurora2; exports.auroraGoerli = auroraGoerli; exports.avalanche = avalanche2; exports.avalancheFuji = avalancheFuji2; exports.bronos = bronos2; exports.bronosTestnet = bronosTestnet2; exports.bsc = bsc2; exports.bscTestnet = bscTestnet2; exports.canto = canto2; exports.celo = celo2; exports.celoAlfajores = celoAlfajores2; exports.crossbell = crossbell2; exports.defineChain = _chunkNYWN5V47js.defineChain; exports.evmos = evmos2; exports.evmosTestnet = evmosTestnet2; exports.fantom = fantom2; exports.fantomTestnet = fantomTestnet2; exports.filecoin = filecoin2; exports.filecoinTestnet = filecoinTestnet; exports.foundry = foundry2; exports.gnosis = gnosis2; exports.gnosisChiado = gnosisChiado2; exports.goerli = goerli2; exports.hardhat = hardhat2; exports.iotex = iotex2; exports.iotexTestnet = iotexTestnet2; exports.localhost = localhost2; exports.mainnet = mainnet2; exports.metis = metis2; exports.metisGoerli = metisGoerli2; exports.optimism = optimism2; exports.optimismGoerli = optimismGoerli2; exports.polygon = polygon2; exports.polygonMumbai = polygonMumbai2; exports.sepolia = sepolia2; exports.taraxa = taraxa2; exports.taraxaTestnet = taraxaTestnet2; exports.zkSync = zkSync2; exports.zkSyncTestnet = zkSyncTestnet2;
//# sourceMappingURL=chains.js.map

@@ -1,129 +0,13 @@

export { D as DecodeAbiArgs, a as DecodeEventLogArgs, b as DecodeEventLogResponse, c as DecodeFunctionDataArgs, d as DecodeFunctionResultArgs, e as DecodeFunctionResultResponse, E as EncodeAbiArgs, f as EncodeDeployDataArgs, g as EncodeErrorResultArgs, h as EncodeEventTopicsArgs, i as EncodeFunctionDataArgs, j as EncodeFunctionResultArgs, G as GetAbiItemArgs, k as decodeAbi, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeAbi, p as encodeDeployData, q as encodeErrorResult, r as encodeEventTopics, s as encodeFunctionData, t as encodeFunctionResult, v as formatAbiItem, u as formatAbiItemWithArgs, w as getAbiItem } from './getAbiItem-d2e8bd76.js';
export { a as DecodeErrorResultArgs, D as DecodeErrorResultResponse, d as decodeErrorResult } from './decodeErrorResult-ac835649.js';
import { Abi, Narrow } from 'abitype';
import { C as Chain, H as Hex, A as Address, b as BlockTag, L as Log } from './chain-42de87e5.js';
import { C as ContractConfig, E as ExtractResultFromAbi, a as ExtractConstructorArgsFromAbi, G as GetValue, b as ExtractEventNameFromAbi, c as ExtractEventArgsFromAbi } from './contract-9dd2f98b.js';
import { P as PublicClient } from './createPublicClient-fd558574.js';
import { W as WalletClient } from './createWalletClient-4df88244.js';
import { S as SendTransactionArgs, a as SendTransactionResponse } from './sendTransaction-7ce442c0.js';
import { C as CallArgs } from './call-3476b8ee.js';
export { G as GetBytecodeArgs, a as GetBytecodeResponse, O as OnLogs, b as OnLogsResponse, g as getBytecode } from './watchEvent-569c9976.js';
export { R as ReadContractArgs, a as ReadContractResponse, r as readContract } from './readContract-c460f23a.js';
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeErrorResultResponse, c as DecodeEventLogArgs, d as DecodeEventLogResponse, e as DecodeFunctionDataArgs, f as DecodeFunctionResultArgs, g as DecodeFunctionResultResponse, E as EncodeAbiArgs, h as EncodeDeployDataArgs, i as EncodeErrorResultArgs, j as EncodeEventTopicsArgs, k as EncodeFunctionDataArgs, l as EncodeFunctionResultArgs, G as GetAbiItemArgs, m as decodeAbi, n as decodeErrorResult, o as decodeEventLog, p as decodeFunctionData, q as decodeFunctionResult, r as encodeAbi, s as encodeDeployData, t as encodeErrorResult, u as encodeEventTopics, v as encodeFunctionData, w as encodeFunctionResult, x as getAbiItem } from './getAbiItem-0e085959.js';
export { a as formatAbiItem, f as formatAbiItemWithArgs } from './formatAbiItem-d231fef2.js';
export { D as DeployContractArgs, d as DeployContractResponse, b as WriteContractArgs, e as WriteContractResponse, f as deployContract, w as writeContract } from './wallet-9b1c6905.js';
export { C as CreateContractEventFilterArgs, b as CreateContractEventFilterResponse, E as EstimateContractGasArgs, d as EstimateContractGasResponse, G as GetBytecodeArgs, e as GetBytecodeResponse, f as GetStorageAtArgs, g as GetStorageAtResponse, M as MulticallArgs, h as MulticallResponse, O as OnLogs, i as OnLogsResponse, R as ReadContractArgs, j as ReadContractResponse, S as SimulateContractArgs, k as SimulateContractResponse, W as WatchContractEventArgs, l as createContractEventFilter, m as estimateContractGas, n as getBytecode, o as getStorageAt, p as multicall, r as readContract, s as simulateContract, w as watchContractEvent } from './createPublicClient-2b4afeac.js';
import 'abitype';
import './chain-4d46a747.js';
import '@wagmi/chains';
import 'ethers@6/types/providers';
import 'abitype/dist/abi-78346466';
import '@wagmi/chains';
import './eip1193-617a05ae.js';
import './createClient-6689596e.js';
import './transactionRequest-f437b4ba.js';
type MAXIMUM_DEPTH = 20;
type Contract<TAbi extends Abi | readonly unknown[] = Abi | readonly unknown[], TFunctionName extends string = string> = {
abi: TAbi;
functionName: TFunctionName;
};
type MulticallContracts<TContracts extends Contract[], TProperties extends Record<string, any> = object, Result extends any[] = [], Depth extends ReadonlyArray<number> = []> = Depth['length'] extends MAXIMUM_DEPTH ? (ContractConfig & TProperties)[] : TContracts extends [] ? [] : TContracts extends [infer Head extends Contract] ? [
...Result,
ContractConfig<Head['abi'], Head['functionName']> & TProperties
] : TContracts extends [
infer Head extends Contract,
...infer Tail extends Contract[]
] ? MulticallContracts<[
...Tail
], TProperties, [
...Result,
ContractConfig<Head['abi'], Head['functionName']> & TProperties
], [
...Depth,
1
]> : unknown[] extends TContracts ? TContracts : TContracts extends ContractConfig<infer TAbi, infer TFunctionName>[] ? (ContractConfig<TAbi, TFunctionName> & TProperties)[] : (ContractConfig & TProperties)[];
type MulticallResult<Result, TAllowFailure extends boolean = true> = TAllowFailure extends true ? ({
error?: undefined;
result: Result;
status: 'success';
} | {
error: Error;
result?: undefined;
status: 'error';
}) : Result;
type MulticallResults<TContracts extends Contract[], TAllowFailure extends boolean = true, Result extends any[] = [], Depth extends ReadonlyArray<number> = []> = Depth['length'] extends MAXIMUM_DEPTH ? MulticallResult<ExtractResultFromAbi, TAllowFailure>[] : TContracts extends [] ? [] : TContracts extends [infer Head extends Contract] ? [...Result, MulticallResult<ExtractResultFromAbi<Head['abi'], Head['functionName']>, TAllowFailure>] : TContracts extends [
infer Head extends Contract,
...infer Tail extends Contract[]
] ? MulticallResults<[
...Tail
], TAllowFailure, [
...Result,
MulticallResult<ExtractResultFromAbi<Head['abi'], Head['functionName']>, TAllowFailure>
], [
...Depth,
1
]> : TContracts extends ContractConfig<infer TAbi, infer TFunctionName>[] ? MulticallResult<ExtractResultFromAbi<TAbi, TFunctionName>, TAllowFailure>[] : MulticallResult<ExtractResultFromAbi, TAllowFailure>[];
type DeployContractArgs<TChain extends Chain = Chain, TAbi extends Abi | readonly unknown[] = Abi> = Omit<SendTransactionArgs<TChain>, 'accessList' | 'to' | 'data' | 'value'> & {
abi: Narrow<TAbi>;
bytecode: Hex;
} & ExtractConstructorArgsFromAbi<TAbi>;
type DeployContractResponse = SendTransactionResponse;
declare function deployContract<TChain extends Chain, TAbi extends Abi>(walletClient: WalletClient, { abi, args, bytecode, ...request }: DeployContractArgs<TChain, TAbi>): Promise<DeployContractResponse>;
type WriteContractArgs<TChain extends Chain = Chain, TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = Omit<SendTransactionArgs<TChain>, 'to' | 'data' | 'value'> & {
value?: GetValue<TAbi, TFunctionName, SendTransactionArgs<TChain>['value']>;
} & ContractConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'>;
type WriteContractResponse = SendTransactionResponse;
declare function writeContract<TChain extends Chain, TAbi extends Abi | readonly unknown[], TFunctionName extends string>(client: WalletClient, { abi, address, args, functionName, ...request }: WriteContractArgs<TChain, TAbi, TFunctionName>): Promise<WriteContractResponse>;
type SimulateContractArgs<TChain extends Chain = Chain, TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = any> = Omit<CallArgs<TChain>, 'to' | 'data' | 'value'> & ContractConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'> & {
value?: GetValue<TAbi, TFunctionName, CallArgs<TChain>['value']>;
};
type SimulateContractResponse<TChain extends Chain = Chain, TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = {
result: ExtractResultFromAbi<TAbi, TFunctionName>;
request: WriteContractArgs<TChain, TAbi, TFunctionName> & ContractConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'>;
};
declare function simulateContract<TChain extends Chain, TAbi extends Abi | readonly unknown[], TFunctionName extends string>(client: PublicClient<any, TChain>, { abi, address, args, functionName, ...callRequest }: SimulateContractArgs<TChain, TAbi, TFunctionName>): Promise<SimulateContractResponse<TChain, TAbi, TFunctionName>>;
type EstimateContractGasArgs<TChain extends Chain = Chain, TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = any> = Omit<CallArgs<TChain>, 'to' | 'data' | 'value'> & ContractConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'> & {
value?: GetValue<TAbi, TFunctionName, CallArgs<TChain>['value']>;
};
type EstimateContractGasResponse = bigint;
declare function estimateContractGas<TChain extends Chain, TAbi extends Abi | readonly unknown[], TFunctionName extends string>(client: PublicClient<any, TChain>, { abi, address, args, functionName, ...request }: EstimateContractGasArgs<TChain, TAbi, TFunctionName>): Promise<EstimateContractGasResponse>;
type GetStorageAtArgs = {
address: Address;
slot: Hex;
} & ({
blockNumber?: never;
blockTag?: BlockTag;
} | {
blockNumber?: bigint;
blockTag?: never;
});
type GetStorageAtResponse = Hex | undefined;
declare function getStorageAt(client: PublicClient, { address, blockNumber, blockTag, slot }: GetStorageAtArgs): Promise<GetStorageAtResponse>;
type MulticallArgs<TContracts extends ContractConfig[] = ContractConfig[], TAllowFailure extends boolean = true> = Pick<CallArgs, 'blockNumber' | 'blockTag'> & {
allowFailure?: TAllowFailure;
contracts: readonly [...MulticallContracts<TContracts>];
multicallAddress: Address;
};
type MulticallResponse<TContracts extends ContractConfig[] = ContractConfig[], TAllowFailure extends boolean = true> = MulticallResults<TContracts, TAllowFailure>;
declare function multicall<TContracts extends ContractConfig[], TAllowFailure extends boolean = true>(client: PublicClient, args: MulticallArgs<TContracts, TAllowFailure>): Promise<MulticallResponse<TContracts, TAllowFailure>>;
type OnLogsResponse = Log[];
type OnLogs = (logs: OnLogsResponse) => void;
type WatchContractEventArgs<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = any> = {
/** The address of the contract. */
address: Address | Address[];
/** Contract ABI. */
abi: TAbi;
/** Whether or not the event logs should be batched on each invocation. */
batch?: boolean;
/** Contract event. */
eventName?: ExtractEventNameFromAbi<TAbi, TEventName>;
/** The callback to call when an error occurred when trying to get for a new block. */
onError?: (error: Error) => void;
/** The callback to call when new event logs are received. */
onLogs: OnLogs;
/** Polling frequency (in ms). Defaults to Client's pollingInterval config. */
pollingInterval?: number;
} & ExtractEventArgsFromAbi<TAbi, TEventName>;
declare function watchContractEvent<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = any>(client: PublicClient, { abi, address, args, batch, eventName, onError, onLogs, pollingInterval, }: WatchContractEventArgs<TAbi, TEventName>): () => void;
export { DeployContractArgs, DeployContractResponse, EstimateContractGasArgs, EstimateContractGasResponse, GetStorageAtArgs, GetStorageAtResponse, MulticallArgs, MulticallResponse, SimulateContractArgs, SimulateContractResponse, WatchContractEventArgs, WriteContractArgs, WriteContractResponse, deployContract, estimateContractGas, getStorageAt, multicall, simulateContract, watchContractEvent, writeContract };
import './eip1193-f09a55af.js';
import './createClient-5d5c14d6.js';
import './transactionRequest-44c539b4.js';
import './transactionReceipt-84fc92e1.js';

@@ -9,8 +9,8 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkJY7JGKSAjs = require('./chunk-JY7JGKSA.js');
var _chunk7GQB4KE5js = require('./chunk-7GQB4KE5.js');
var _chunk2DSFM32Pjs = require('./chunk-2DSFM32P.js');
var _chunkJJ4FDDDWjs = require('./chunk-JJ4FDDDW.js');

@@ -30,4 +30,4 @@

var _chunkW7KWIGWOjs = require('./chunk-W7KWIGWO.js');
var _chunkNYWN5V47js = require('./chunk-NYWN5V47.js');

@@ -56,3 +56,5 @@

exports.decodeAbi = _chunkW7KWIGWOjs.decodeAbi; exports.decodeErrorResult = _chunkW7KWIGWOjs.decodeErrorResult; exports.decodeEventLog = _chunkW7KWIGWOjs.decodeEventLog; exports.decodeFunctionData = _chunkW7KWIGWOjs.decodeFunctionData; exports.decodeFunctionResult = _chunkW7KWIGWOjs.decodeFunctionResult; exports.deployContract = _chunk2DSFM32Pjs.deployContract; exports.encodeAbi = _chunkW7KWIGWOjs.encodeAbi; exports.encodeDeployData = _chunkW7KWIGWOjs.encodeDeployData; exports.encodeErrorResult = _chunkW7KWIGWOjs.encodeErrorResult; exports.encodeEventTopics = _chunkW7KWIGWOjs.encodeEventTopics; exports.encodeFunctionData = _chunkW7KWIGWOjs.encodeFunctionData; exports.encodeFunctionResult = _chunkW7KWIGWOjs.encodeFunctionResult; exports.estimateContractGas = _chunkJY7JGKSAjs.estimateContractGas; exports.formatAbiItem = _chunkW7KWIGWOjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkW7KWIGWOjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkW7KWIGWOjs.getAbiItem; exports.getBytecode = _chunkJY7JGKSAjs.getBytecode; exports.getStorageAt = _chunkJY7JGKSAjs.getStorageAt; exports.multicall = _chunkJY7JGKSAjs.multicall; exports.readContract = _chunkJY7JGKSAjs.readContract; exports.simulateContract = _chunkJY7JGKSAjs.simulateContract; exports.watchContractEvent = _chunkJY7JGKSAjs.watchContractEvent; exports.writeContract = _chunk2DSFM32Pjs.writeContract;
exports.createContractEventFilter = _chunk7GQB4KE5js.createContractEventFilter; exports.decodeAbi = _chunkNYWN5V47js.decodeAbi; exports.decodeErrorResult = _chunkNYWN5V47js.decodeErrorResult; exports.decodeEventLog = _chunkNYWN5V47js.decodeEventLog; exports.decodeFunctionData = _chunkNYWN5V47js.decodeFunctionData; exports.decodeFunctionResult = _chunkNYWN5V47js.decodeFunctionResult; exports.deployContract = _chunkJJ4FDDDWjs.deployContract; exports.encodeAbi = _chunkNYWN5V47js.encodeAbi; exports.encodeDeployData = _chunkNYWN5V47js.encodeDeployData; exports.encodeErrorResult = _chunkNYWN5V47js.encodeErrorResult; exports.encodeEventTopics = _chunkNYWN5V47js.encodeEventTopics; exports.encodeFunctionData = _chunkNYWN5V47js.encodeFunctionData; exports.encodeFunctionResult = _chunkNYWN5V47js.encodeFunctionResult; exports.estimateContractGas = _chunk7GQB4KE5js.estimateContractGas; exports.formatAbiItem = _chunkNYWN5V47js.formatAbiItem; exports.formatAbiItemWithArgs = _chunkNYWN5V47js.formatAbiItemWithArgs; exports.getAbiItem = _chunkNYWN5V47js.getAbiItem; exports.getBytecode = _chunk7GQB4KE5js.getBytecode; exports.getStorageAt = _chunk7GQB4KE5js.getStorageAt; exports.multicall = _chunk7GQB4KE5js.multicall; exports.readContract = _chunk7GQB4KE5js.readContract; exports.simulateContract = _chunk7GQB4KE5js.simulateContract; exports.watchContractEvent = _chunk7GQB4KE5js.watchContractEvent; exports.writeContract = _chunkJJ4FDDDWjs.writeContract;
//# sourceMappingURL=contract.js.map

@@ -1,72 +0,14 @@

import { P as Prettify, A as Address } from './chain-42de87e5.js';
import { P as PublicClient } from './createPublicClient-fd558574.js';
import { R as ReadContractArgs } from './readContract-c460f23a.js';
export { q as GetEnsAddressArgs, t as GetEnsNameArgs, u as getEnsAddress, v as getEnsName } from './createPublicClient-2b4afeac.js';
export { l as labelhash, n as namehash } from './namehash-88f4639d.js';
import './eip1193-f09a55af.js';
import './chain-4d46a747.js';
import '@wagmi/chains';
import './eip1193-617a05ae.js';
import './createClient-6689596e.js';
import 'abitype';
import './contract-9dd2f98b.js';
import './call-3476b8ee.js';
import './transactionRequest-f437b4ba.js';
import 'ethers@6/types/providers';
import './createClient-5d5c14d6.js';
import './transactionRequest-44c539b4.js';
import './wallet-9b1c6905.js';
import './transactionReceipt-84fc92e1.js';
type GetEnsAddressArgs = Prettify<Pick<ReadContractArgs, 'blockNumber' | 'blockTag'> & {
/** ENS name to get address. */
name: string;
/** Address of ENS Universal Resolver Contract */
universalResolverAddress?: Address;
}>;
/**
* @description Gets address for ENS name.
*
* - Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
*
* @example
* const ensAddress = await getEnsAddress(publicClient, {
* name: 'wagmi-dev.eth',
* })
* // '0xd2135CfB216b74109775236E36d4b433F1DF507B'
*/
declare function getEnsAddress(client: PublicClient, { blockNumber, blockTag, name, universalResolverAddress: universalResolverAddress_, }: GetEnsAddressArgs): Promise<`0x${string}`>;
type GetEnsNameArgs = Prettify<Pick<ReadContractArgs, 'blockNumber' | 'blockTag'> & {
/** Address to get ENS name for. */
address: Address;
/** Address of ENS Universal Resolver Contract. */
universalResolverAddress?: Address;
}>;
/**
* @description Gets primary name for specified address.
*
* - Calls `reverse(bytes)` on ENS Universal Resolver Contract.
*
* @example
* const ensName = await getEnsName(publicClient, {
* address: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
* })
* // 'wagmi-dev.eth'
*/
declare function getEnsName(client: PublicClient, { address, blockNumber, blockTag, universalResolverAddress: universalResolverAddress_, }: GetEnsNameArgs): Promise<string | null>;
/**
* @description Hashes ENS label
*
* @example
* labelhash('eth')
* '0x4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f0'
*/
declare function labelhash(label: string): `0x${string}`;
/**
* @description Hashes ENS name
*
* @example
* namehash('wagmi-dev.eth')
* '0xf246651c1b9a6b141d19c2604e9a58f567973833990f830d882534a747801359'
*
* @see https://eips.ethereum.org/EIPS/eip-137
* @see https://docs.ens.domains/contract-api-reference/name-processing#hashing-names
*/
declare function namehash(name: string): `0x${string}`;
/**
* @description Normalizes ENS name

@@ -82,2 +24,2 @@ *

export { GetEnsAddressArgs, GetEnsNameArgs, getEnsAddress, getEnsName, labelhash, namehash, normalize };
export { normalize };

@@ -1,18 +0,10 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkJY7JGKSAjs = require('./chunk-JY7JGKSA.js');
var _chunk67DKKHAVjs = require('./chunk-67DKKHAV.js');
require('./chunk-7GQB4KE5.js');
require('./chunk-NYWN5V47.js');
var _chunkW7KWIGWOjs = require('./chunk-W7KWIGWO.js');
// src/utils/ens/normalize.ts

@@ -24,194 +16,8 @@ var _idnauts46hx = require('idna-uts46-hx');

// src/utils/ens/labelhash.ts
function labelhash(label) {
let result = new Uint8Array(32).fill(0);
if (!label)
return _chunkW7KWIGWOjs.bytesToHex.call(void 0, result);
return _chunkW7KWIGWOjs.keccak256.call(void 0, _chunkW7KWIGWOjs.stringToBytes.call(void 0, normalize(label)));
}
// src/utils/ens/namehash.ts
function namehash(name) {
let result = new Uint8Array(32).fill(0);
if (!name)
return _chunkW7KWIGWOjs.bytesToHex.call(void 0, result);
const labels = normalize(name).split(".");
for (let i = labels.length - 1; i >= 0; i -= 1) {
const hashed = _chunkW7KWIGWOjs.keccak256.call(void 0, _chunkW7KWIGWOjs.stringToBytes.call(void 0, labels[i]), "bytes");
result = _chunkW7KWIGWOjs.keccak256.call(void 0, _chunkW7KWIGWOjs.concat.call(void 0, [result, hashed]), "bytes");
}
return _chunkW7KWIGWOjs.bytesToHex.call(void 0, result);
}
// src/utils/ens/packetToBytes.ts
function packetToBytes(packet) {
function length(value2) {
if (value2 === "." || value2 === "..")
return 1;
return _chunkW7KWIGWOjs.toBytes.call(void 0, value2.replace(/^\.|\.$/gm, "")).length + 2;
}
const bytes = new Uint8Array(length(packet));
const value = packet.replace(/^\.|\.$/gm, "");
if (!value.length)
return bytes;
let offset = 0;
const list = value.split(".");
for (let i = 0; i < list.length; i++) {
const encoded = _chunkW7KWIGWOjs.toBytes.call(void 0, list[i]);
bytes[offset] = encoded.length;
bytes.set(encoded, offset + 1);
offset += encoded.length + 1;
}
return bytes;
}
// src/actions/ens/getEnsAddress.ts
async function getEnsAddress(client, {
blockNumber,
blockTag,
name,
universalResolverAddress: universalResolverAddress_
}) {
let universalResolverAddress = universalResolverAddress_;
if (!universalResolverAddress) {
if (!client.chain)
throw new Error(
"client chain not configured. universalResolverAddress is required."
);
const contract = _optionalChain([client, 'access', _ => _.chain, 'optionalAccess', _2 => _2.contracts, 'optionalAccess', _3 => _3.ensUniversalResolver]);
if (!contract)
throw new (0, _chunkW7KWIGWOjs.ChainDoesNotSupportContract)({
chain: client.chain,
contract: { name: "ensUniversalResolver" }
});
if (blockNumber && contract.blockCreated && contract.blockCreated > blockNumber)
throw new (0, _chunkW7KWIGWOjs.ChainDoesNotSupportContract)({
blockNumber,
chain: client.chain,
contract: {
name: "ensUniversalResolver",
blockCreated: contract.blockCreated
}
});
universalResolverAddress = contract.address;
}
const res = await _chunkJY7JGKSAjs.readContract.call(void 0, client, {
address: universalResolverAddress,
abi: [
{
name: "resolve",
type: "function",
stateMutability: "view",
inputs: [
{ name: "name", type: "bytes" },
{ name: "data", type: "bytes" }
],
outputs: [
{ name: "", type: "bytes" },
{ name: "address", type: "address" }
]
}
],
functionName: "resolve",
args: [
_chunkW7KWIGWOjs.toHex.call(void 0, packetToBytes(name)),
_chunkW7KWIGWOjs.encodeFunctionData.call(void 0, {
abi: [
{
name: "addr",
type: "function",
stateMutability: "view",
inputs: [{ name: "name", type: "bytes32" }],
outputs: []
}
],
functionName: "addr",
args: [namehash(name)]
})
],
blockNumber,
blockTag
});
return _chunkW7KWIGWOjs.decodeFunctionResult.call(void 0, {
abi: [
{
name: "addr",
type: "function",
stateMutability: "view",
inputs: [],
outputs: [{ name: "name", type: "address" }]
}
],
functionName: "addr",
data: res[0]
});
}
// src/actions/ens/getEnsName.ts
async function getEnsName(client, {
address,
blockNumber,
blockTag,
universalResolverAddress: universalResolverAddress_
}) {
let universalResolverAddress = universalResolverAddress_;
if (!universalResolverAddress) {
if (!client.chain)
throw new Error(
"client chain not configured. universalResolverAddress is required."
);
const contract = _optionalChain([client, 'access', _4 => _4.chain, 'optionalAccess', _5 => _5.contracts, 'optionalAccess', _6 => _6.ensUniversalResolver]);
if (!contract)
throw new (0, _chunkW7KWIGWOjs.ChainDoesNotSupportContract)({
chain: client.chain,
contract: { name: "ensUniversalResolver" }
});
if (blockNumber && contract.blockCreated && contract.blockCreated > blockNumber)
throw new (0, _chunkW7KWIGWOjs.ChainDoesNotSupportContract)({
blockNumber,
chain: client.chain,
contract: {
name: "ensUniversalResolver",
blockCreated: contract.blockCreated
}
});
universalResolverAddress = contract.address;
}
const reverseNode = `${address.toLowerCase().substring(2)}.addr.reverse`;
try {
const res = await _chunkJY7JGKSAjs.readContract.call(void 0, client, {
address: universalResolverAddress,
abi: [
{
name: "reverse",
type: "function",
stateMutability: "view",
inputs: [{ type: "bytes", name: "reverseName" }],
outputs: [
{ type: "string", name: "resolvedName" },
{ type: "address", name: "resolvedAddress" },
{ type: "address", name: "reverseResolver" },
{ type: "address", name: "resolver" }
]
}
],
functionName: "reverse",
args: [_chunkW7KWIGWOjs.toHex.call(void 0, packetToBytes(reverseNode))],
blockNumber,
blockTag
});
return res[0];
} catch (error) {
if (error instanceof _chunkW7KWIGWOjs.ContractFunctionExecutionError && error.cause.reason === _chunkW7KWIGWOjs.panicReasons[50])
return null;
throw error;
}
}
exports.getEnsAddress = getEnsAddress; exports.getEnsName = getEnsName; exports.labelhash = labelhash; exports.namehash = namehash; exports.normalize = normalize;
exports.getEnsAddress = _chunk67DKKHAVjs.getEnsAddress; exports.getEnsName = _chunk67DKKHAVjs.getEnsName; exports.labelhash = _chunk67DKKHAVjs.labelhash; exports.namehash = _chunk67DKKHAVjs.namehash; exports.normalize = normalize;
//# sourceMappingURL=ens.js.map

@@ -1,16 +0,21 @@

import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createClient-6689596e.js';
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-6689596e.js';
import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createClient-5d5c14d6.js';
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-5d5c14d6.js';
import WebSocket from 'isomorphic-ws';
import { H as Hex, A as Address, a as Hash, B as ByteArray, b as BlockTag } from './chain-42de87e5.js';
export { c as AccessList, A as Address, d as Block, e as BlockIdentifier, f as BlockNumber, b as BlockTag, B as ByteArray, C as Chain, F as FeeHistory, g as FeeValues, h as FeeValuesEIP1559, i as FeeValuesLegacy, a as Hash, H as Hex, L as Log, R as RpcBlock, j as RpcBlockIdentifier, k as RpcBlockNumber, l as RpcFeeHistory, m as RpcFeeValues, n as RpcLog, o as RpcTransaction, p as RpcTransactionReceipt, q as RpcTransactionRequest, r as RpcUncle, x as Transaction, y as TransactionBase, z as TransactionEIP1559, D as TransactionEIP2930, E as TransactionLegacy, T as TransactionReceipt, s as TransactionRequest, t as TransactionRequestBase, u as TransactionRequestEIP1559, v as TransactionRequestEIP2930, w as TransactionRequestLegacy, U as Uncle } from './chain-42de87e5.js';
import { B as BaseError, R as RpcResponse } from './rpc-8c10fc98.js';
export { B as BaseError, C as ContractFunctionExecutionError, a as ContractFunctionRevertedError, b as ContractFunctionZeroDataError } from './rpc-8c10fc98.js';
export { P as PublicClient, a as PublicClientConfig, c as createPublicClient } from './createPublicClient-fd558574.js';
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './createTestClient-bc1d9028.js';
export { W as WalletClient, a as WalletClientConfig, c as createWalletClient } from './createWalletClient-4df88244.js';
export { A as AbiItem, C as ContractConfig } from './contract-9dd2f98b.js';
import './eip1193-617a05ae.js';
import { H as Hex, A as Address, a as Hash, B as ByteArray, b as BlockTag } from './chain-4d46a747.js';
export { c as AbiItem, d as AccessList, A as Address, e as Block, f as BlockIdentifier, g as BlockNumber, b as BlockTag, B as ByteArray, C as Chain, h as ContractConfig, J as ExtractFormatter, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, K as Formatted, M as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, l as RpcBlockIdentifier, m as RpcBlockNumber, n as RpcFeeHistory, o as RpcFeeValues, p as RpcLog, q as RpcTransaction, r as RpcTransactionReceipt, s as RpcTransactionRequest, t as RpcUncle, z as Transaction, D as TransactionBase, E as TransactionEIP1559, G as TransactionEIP2930, N as TransactionFormatter, I as TransactionLegacy, T as TransactionReceipt, u as TransactionRequest, v as TransactionRequestBase, w as TransactionRequestEIP1559, x as TransactionRequestEIP2930, y as TransactionRequestLegacy, U as Uncle, O as defineTransaction, P as formatTransaction, Q as transactionType } from './chain-4d46a747.js';
import { B as BaseError, R as RpcResponse } from './parseGwei-07adffee.js';
export { B as BaseError, C as ContractFunctionExecutionError, a as ContractFunctionRevertedError, b as ContractFunctionZeroDataError, G as GetContractAddressOptions, c as GetCreate2AddressOptions, d as GetCreateAddressOptions, T as ToRlpResponse, e as boolToBytes, f as boolToHex, g as bytesToBigint, h as bytesToBool, i as bytesToHex, j as bytesToNumber, k as bytesToString, l as etherUnits, m as formatEther, n as formatGwei, o as formatUnit, p as fromBytes, q as fromHex, r as fromRlp, s as getAddress, t as getContractAddress, u as getContractError, v as getCreate2Address, w as getCreateAddress, x as getEventSignature, y as getFunctionSignature, z as gweiUnits, A as hexToBigInt, D as hexToBool, E as hexToBytes, F as hexToNumber, H as hexToString, I as isAddress, J as isAddressEqual, K as isBytes, L as isHex, M as keccak256, N as numberToBytes, O as numberToHex, P as pad, Q as padBytes, S as padHex, U as parseEther, V as parseGwei, W as parseUnit, X as size, Y as slice, Z as sliceBytes, _ as sliceHex, $ as stringToBytes, a0 as stringToHex, a1 as stringify, a2 as toBytes, a3 as toHex, a4 as toRlp, a5 as trim, a6 as weiUnits } from './parseGwei-07adffee.js';
export { P as PublicClient, a as PublicClientConfig, c as createPublicClient } from './createPublicClient-2b4afeac.js';
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-b9208949.js';
export { W as WalletClient, a as WalletClientConfig, c as createWalletClient } from './wallet-9b1c6905.js';
export { l as labelhash, n as namehash } from './namehash-88f4639d.js';
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeErrorResultResponse, c as DecodeEventLogArgs, d as DecodeEventLogResponse, e as DecodeFunctionDataArgs, f as DecodeFunctionResultArgs, g as DecodeFunctionResultResponse, E as EncodeAbiArgs, h as EncodeDeployDataArgs, i as EncodeErrorResultArgs, j as EncodeEventTopicsArgs, k as EncodeFunctionDataArgs, l as EncodeFunctionResultArgs, G as GetAbiItemArgs, m as decodeAbi, n as decodeErrorResult, o as decodeEventLog, p as decodeFunctionData, q as decodeFunctionResult, r as encodeAbi, s as encodeDeployData, t as encodeErrorResult, u as encodeEventTopics, v as encodeFunctionData, w as encodeFunctionResult, x as getAbiItem } from './getAbiItem-0e085959.js';
export { d as defineChain } from './chain-c7c44165.js';
export { B as BlockFormatter, F as FormattedBlock, a as FormattedTransactionReceipt, T as TransactionReceiptFormatter, d as defineBlock, b as defineTransactionReceipt, f as formatBlock } from './transactionReceipt-84fc92e1.js';
export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, d as defineTransactionRequest, f as formatTransactionRequest } from './transactionRequest-44c539b4.js';
import './eip1193-f09a55af.js';
import '@wagmi/chains';
import 'abitype';
import './decodeErrorResult-ac835649.js';
import 'ethers@6/types/providers';
import 'abitype/dist/abi-78346466';

@@ -381,2 +386,4 @@ declare class AbiConstructorNotFoundError extends BaseError {

retryDelay?: TransportConfig['retryDelay'];
/** The timeout (in ms) for the HTTP request. Default: 10_000 */
timeout?: TransportConfig['timeout'];
};

@@ -419,2 +426,4 @@ type HttpTransport = Transport<'http', {

retryDelay?: TransportConfig['retryDelay'];
/** The timeout (in ms) for async WebSocket requests. Default: 10_000 */
timeout?: TransportConfig['timeout'];
};

@@ -421,0 +430,0 @@ type WebSocketTransport = Transport<'webSocket', {

@@ -6,2 +6,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }

var _chunk67DKKHAVjs = require('./chunk-67DKKHAV.js');

@@ -40,2 +41,3 @@

var _chunk7GQB4KE5js = require('./chunk-7GQB4KE5.js');

@@ -63,4 +65,158 @@

var _chunkW7KWIGWOjs = require('./chunk-W7KWIGWO.js');
var _chunkFPEKYEVUjs = require('./chunk-FPEKYEVU.js');
var _chunkJJ4FDDDWjs = require('./chunk-JJ4FDDDW.js');
var _chunkNYWN5V47js = require('./chunk-NYWN5V47.js');
// src/clients/transports/createTransport.ts

@@ -73,7 +229,8 @@ function createTransport({

retryDelay = 150,
timeout,
type
}, value) {
return {
config: { key, name, request, retryCount, retryDelay, type },
request: _chunkW7KWIGWOjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
config: { key, name, request, retryCount, retryDelay, timeout, type },
request: _chunkNYWN5V47js.buildRequest.call(void 0, request, { retryCount, retryDelay }),
value

@@ -112,3 +269,3 @@ };

} catch (err) {
if (_chunkW7KWIGWOjs.isDeterministicError.call(void 0, err))
if (_chunkNYWN5V47js.isDeterministicError.call(void 0, err))
throw err;

@@ -136,3 +293,8 @@ if (i === transports.length - 1)

function http(url, config = {}) {
const { key = "http", name = "HTTP JSON-RPC", retryDelay } = config;
const {
key = "http",
name = "HTTP JSON-RPC",
retryDelay,
timeout = 1e4
} = config;
return ({ chain, retryCount: defaultRetryCount }) => {

@@ -142,3 +304,3 @@ const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));

if (!url_)
throw new (0, _chunkW7KWIGWOjs.UrlRequiredError)();
throw new (0, _chunkNYWN5V47js.UrlRequiredError)();
return createTransport(

@@ -149,7 +311,8 @@ {

async request({ method, params }) {
const { result } = await _chunkW7KWIGWOjs.rpc.http(url_, {
const { result } = await _chunkNYWN5V47js.rpc.http(url_, {
body: {
method,
params
}
},
timeout
});

@@ -160,2 +323,3 @@ return result;

retryDelay,
timeout,
type: "http"

@@ -172,3 +336,8 @@ },

function webSocket(url, config = {}) {
const { key = "webSocket", name = "WebSocket JSON-RPC", retryDelay } = config;
const {
key = "webSocket",
name = "WebSocket JSON-RPC",
retryDelay,
timeout = 1e4
} = config;
return ({ chain, retryCount: defaultRetryCount }) => {

@@ -178,3 +347,3 @@ const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));

if (!url_)
throw new (0, _chunkW7KWIGWOjs.UrlRequiredError)();
throw new (0, _chunkNYWN5V47js.UrlRequiredError)();
return createTransport(

@@ -185,5 +354,6 @@ {

async request({ method, params }) {
const socket = await _chunkW7KWIGWOjs.getSocket.call(void 0, url_);
const { result } = await _chunkW7KWIGWOjs.rpc.webSocketAsync(socket, {
body: { method, params }
const socket = await _chunkNYWN5V47js.getSocket.call(void 0, url_);
const { result } = await _chunkNYWN5V47js.rpc.webSocketAsync(socket, {
body: { method, params },
timeout
});

@@ -194,2 +364,3 @@ return result;

retryDelay,
timeout,
type: "webSocket"

@@ -199,8 +370,8 @@ },

getSocket() {
return _chunkW7KWIGWOjs.getSocket.call(void 0, url_);
return _chunkNYWN5V47js.getSocket.call(void 0, url_);
},
async subscribe({ params, onData, onError }) {
const socket = await _chunkW7KWIGWOjs.getSocket.call(void 0, url_);
const socket = await _chunkNYWN5V47js.getSocket.call(void 0, url_);
const { result: subscriptionId } = await new Promise(
(resolve, reject) => _chunkW7KWIGWOjs.rpc.webSocket(socket, {
(resolve, reject) => _chunkNYWN5V47js.rpc.webSocket(socket, {
body: {

@@ -227,3 +398,3 @@ method: "eth_subscribe",

return new Promise(
(resolve, reject) => _chunkW7KWIGWOjs.rpc.webSocket(socket, {
(resolve, reject) => _chunkNYWN5V47js.rpc.webSocket(socket, {
body: {

@@ -246,10 +417,10 @@ method: "eth_unsubscribe",

// src/utils/uid.ts
var size = 256;
var index = size;
var size2 = 256;
var index = size2;
var buffer;
function uid(length = 11) {
if (!buffer || index + length > size * 2) {
if (!buffer || index + length > size2 * 2) {
buffer = "";
index = 0;
for (let i = 0; i < size; i++) {
for (let i = 0; i < size2; i++) {
buffer += (256 + Math.random() * 256 | 0).toString(16).substring(1);

@@ -283,2 +454,87 @@ }

// src/clients/decorators/public.ts
var publicActions = (client) => ({
call: (args) => _chunk7GQB4KE5js.call.call(void 0, client, args),
createBlockFilter: () => _chunk7GQB4KE5js.createBlockFilter.call(void 0, client),
createContractEventFilter: (args) => _chunk7GQB4KE5js.createContractEventFilter.call(void 0, client, args),
createEventFilter: (args) => _chunk7GQB4KE5js.createEventFilter.call(void 0, client, args),
createPendingTransactionFilter: () => _chunk7GQB4KE5js.createPendingTransactionFilter.call(void 0, client),
estimateContractGas: (args) => _chunk7GQB4KE5js.estimateContractGas.call(void 0, client, args),
estimateGas: (args) => _chunk7GQB4KE5js.estimateGas.call(void 0, client, args),
getBalance: (args) => _chunk7GQB4KE5js.getBalance.call(void 0, client, args),
getBlock: (args) => _chunk7GQB4KE5js.getBlock.call(void 0, client, args),
getBlockNumber: (args) => _chunk7GQB4KE5js.getBlockNumber.call(void 0, client, args),
getBlockTransactionCount: (args) => _chunk7GQB4KE5js.getBlockTransactionCount.call(void 0, client, args),
getBytecode: (args) => _chunk7GQB4KE5js.getBytecode.call(void 0, client, args),
getChainId: () => _chunk7GQB4KE5js.getChainId.call(void 0, client),
getEnsAddress: (args) => _chunk67DKKHAVjs.getEnsAddress.call(void 0, client, args),
getEnsName: (args) => _chunk67DKKHAVjs.getEnsName.call(void 0, client, args),
getFeeHistory: (args) => _chunk7GQB4KE5js.getFeeHistory.call(void 0, client, args),
getFilterChanges: (args) => _chunk7GQB4KE5js.getFilterChanges.call(void 0, client, args),
getFilterLogs: (args) => _chunk7GQB4KE5js.getFilterLogs.call(void 0, client, args),
getGasPrice: () => _chunk7GQB4KE5js.getGasPrice.call(void 0, client),
getLogs: (args) => _chunk7GQB4KE5js.getLogs.call(void 0, client, args),
getStorageAt: (args) => _chunk7GQB4KE5js.getStorageAt.call(void 0, client, args),
getTransaction: (args) => _chunk7GQB4KE5js.getTransaction.call(void 0, client, args),
getTransactionConfirmations: (args) => _chunk7GQB4KE5js.getTransactionConfirmations.call(void 0, client, args),
getTransactionReceipt: (args) => _chunk7GQB4KE5js.getTransactionReceipt.call(void 0, client, args),
multicall: (args) => _chunk7GQB4KE5js.multicall.call(void 0, client, args),
readContract: (args) => _chunk7GQB4KE5js.readContract.call(void 0, client, args),
simulateContract: (args) => _chunk7GQB4KE5js.simulateContract.call(void 0, client, args),
uninstallFilter: (args) => _chunk7GQB4KE5js.uninstallFilter.call(void 0, client, args),
waitForTransactionReceipt: (args) => _chunk7GQB4KE5js.waitForTransactionReceipt.call(void 0, client, args),
watchBlocks: (args) => _chunk7GQB4KE5js.watchBlocks.call(void 0, client, args),
watchBlockNumber: (args) => _chunk7GQB4KE5js.watchBlockNumber.call(void 0, client, args),
watchContractEvent: (args) => _chunk7GQB4KE5js.watchContractEvent.call(void 0, client, args),
watchEvent: (args) => _chunk7GQB4KE5js.watchEvent.call(void 0, client, args),
watchPendingTransactions: (args) => _chunk7GQB4KE5js.watchPendingTransactions.call(void 0, client, args)
});
// src/clients/decorators/test.ts
var testActions = (client) => ({
dropTransaction: (args) => _chunkFPEKYEVUjs.dropTransaction.call(void 0, client, args),
getAutomine: () => _chunkFPEKYEVUjs.getAutomine.call(void 0, client),
getTxPoolContent: () => _chunkFPEKYEVUjs.getTxpoolContent.call(void 0, client),
getTxPoolStatus: () => _chunkFPEKYEVUjs.getTxpoolStatus.call(void 0, client),
impersonateAccount: (args) => _chunkFPEKYEVUjs.impersonateAccount.call(void 0, client, args),
increaseTime: (args) => _chunkFPEKYEVUjs.increaseTime.call(void 0, client, args),
inspectTxpool: () => _chunkFPEKYEVUjs.inspectTxpool.call(void 0, client),
mine: (args) => _chunkFPEKYEVUjs.mine.call(void 0, client, args),
removeBlockTimestampInterval: () => _chunkFPEKYEVUjs.removeBlockTimestampInterval.call(void 0, client),
reset: (args) => _chunkFPEKYEVUjs.reset.call(void 0, client, args),
revert: (args) => _chunkFPEKYEVUjs.revert.call(void 0, client, args),
sendUnsignedTransaction: (args) => _chunkFPEKYEVUjs.sendUnsignedTransaction.call(void 0, client, args),
setAutomine: (args) => _chunkFPEKYEVUjs.setAutomine.call(void 0, client, args),
setBalance: (args) => _chunkFPEKYEVUjs.setBalance.call(void 0, client, args),
setBlockGasLimit: (args) => _chunkFPEKYEVUjs.setBlockGasLimit.call(void 0, client, args),
setBlockTimestampInterval: (args) => _chunkFPEKYEVUjs.setBlockTimestampInterval.call(void 0, client, args),
setCode: (args) => _chunkFPEKYEVUjs.setCode.call(void 0, client, args),
setCoinbase: (args) => _chunkFPEKYEVUjs.setCoinbase.call(void 0, client, args),
setIntervalMining: (args) => _chunkFPEKYEVUjs.setIntervalMining.call(void 0, client, args),
setLoggingEnabled: (args) => _chunkFPEKYEVUjs.setLoggingEnabled.call(void 0, client, args),
setMinGasPrice: (args) => _chunkFPEKYEVUjs.setMinGasPrice.call(void 0, client, args),
setNextBlockBaseFeePerGas: (args) => _chunkFPEKYEVUjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
setNextBlockTimestamp: (args) => _chunkFPEKYEVUjs.setNextBlockTimestamp.call(void 0, client, args),
setNonce: (args) => _chunkFPEKYEVUjs.setNonce.call(void 0, client, args),
setRpcUrl: (args) => _chunkFPEKYEVUjs.setRpcUrl.call(void 0, client, args),
setStorageAt: (args) => _chunkFPEKYEVUjs.setStorageAt.call(void 0, client, args),
snapshot: () => _chunkFPEKYEVUjs.snapshot.call(void 0, client),
stopImpersonatingAccount: (args) => _chunkFPEKYEVUjs.stopImpersonatingAccount.call(void 0, client, args)
});
// src/clients/decorators/wallet.ts
var walletActions = (client) => ({
addChain: (args) => _chunkJJ4FDDDWjs.addChain.call(void 0, client, args),
deployContract: (args) => _chunkJJ4FDDDWjs.deployContract.call(void 0, client, args),
getAccounts: () => _chunkJJ4FDDDWjs.getAccounts.call(void 0, client),
getPermissions: () => _chunkJJ4FDDDWjs.getPermissions.call(void 0, client),
requestAccounts: () => _chunkJJ4FDDDWjs.requestAccounts.call(void 0, client),
requestPermissions: (args) => _chunkJJ4FDDDWjs.requestPermissions.call(void 0, client, args),
sendTransaction: (args) => _chunkJJ4FDDDWjs.sendTransaction.call(void 0, client, args),
signMessage: (args) => _chunkJJ4FDDDWjs.signMessage.call(void 0, client, args),
switchChain: (args) => _chunkJJ4FDDDWjs.switchChain.call(void 0, client, args),
watchAsset: (args) => _chunkJJ4FDDDWjs.watchAsset.call(void 0, client, args),
writeContract: (args) => _chunkJJ4FDDDWjs.writeContract.call(void 0, client, args)
});
// src/clients/createPublicClient.ts

@@ -292,4 +548,3 @@ function createPublicClient({

}) {
chain;
return createClient({
const client = createClient({
chain,

@@ -302,2 +557,6 @@ key,

});
return {
...client,
...publicActions(client)
};
}

@@ -314,3 +573,3 @@

}) {
return {
const client = {
...createClient({

@@ -326,2 +585,6 @@ chain,

};
return {
...client,
...testActions(client)
};
}

@@ -336,3 +599,3 @@

}) {
return createClient({
const client = createClient({
key,

@@ -344,2 +607,6 @@ name,

});
return {
...client,
...walletActions(client)
};
}

@@ -411,3 +678,78 @@

exports.AbiConstructorNotFoundError = _chunkW7KWIGWOjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkW7KWIGWOjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkW7KWIGWOjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkW7KWIGWOjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkW7KWIGWOjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkW7KWIGWOjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkW7KWIGWOjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkW7KWIGWOjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkW7KWIGWOjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkW7KWIGWOjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkW7KWIGWOjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkW7KWIGWOjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkW7KWIGWOjs.BaseError; exports.BlockNotFoundError = _chunkW7KWIGWOjs.BlockNotFoundError; exports.ContractFunctionExecutionError = _chunkW7KWIGWOjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkW7KWIGWOjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkW7KWIGWOjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkW7KWIGWOjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkW7KWIGWOjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkW7KWIGWOjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkW7KWIGWOjs.HttpRequestError; exports.InternalRpcError = _chunkW7KWIGWOjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkW7KWIGWOjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkW7KWIGWOjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkW7KWIGWOjs.InvalidAddressError; exports.InvalidArrayError = _chunkW7KWIGWOjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkW7KWIGWOjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkW7KWIGWOjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkW7KWIGWOjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkW7KWIGWOjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkW7KWIGWOjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkW7KWIGWOjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkW7KWIGWOjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkW7KWIGWOjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkW7KWIGWOjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkW7KWIGWOjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkW7KWIGWOjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkW7KWIGWOjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkW7KWIGWOjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkW7KWIGWOjs.ParseRpcError; exports.RequestError = _chunkW7KWIGWOjs.RequestError; exports.ResourceNotFoundRpcError = _chunkW7KWIGWOjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkW7KWIGWOjs.ResourceUnavailableRpcError; exports.RpcError = _chunkW7KWIGWOjs.RpcError; exports.RpcRequestError = _chunkW7KWIGWOjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkW7KWIGWOjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkW7KWIGWOjs.TimeoutError; exports.TransactionNotFoundError = _chunkW7KWIGWOjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkW7KWIGWOjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkW7KWIGWOjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkW7KWIGWOjs.UnknownRpcError; exports.UrlRequiredError = _chunkW7KWIGWOjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkW7KWIGWOjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkW7KWIGWOjs.WebSocketRequestError; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.fallback = fallback; exports.http = http; exports.multicall3Abi = _chunkW7KWIGWOjs.multicall3Abi; exports.webSocket = webSocket;
exports.AbiConstructorNotFoundError = _chunkNYWN5V47js.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkNYWN5V47js.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkNYWN5V47js.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkNYWN5V47js.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkNYWN5V47js.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkNYWN5V47js.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkNYWN5V47js.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkNYWN5V47js.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkNYWN5V47js.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkNYWN5V47js.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkNYWN5V47js.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkNYWN5V47js.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkNYWN5V47js.BaseError; exports.BlockNotFoundError = _chunkNYWN5V47js.BlockNotFoundError; exports.ContractFunctionExecutionError = _chunkNYWN5V47js.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkNYWN5V47js.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkNYWN5V47js.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkNYWN5V47js.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkNYWN5V47js.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkNYWN5V47js.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkNYWN5V47js.HttpRequestError; exports.InternalRpcError = _chunkNYWN5V47js.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkNYWN5V47js.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkNYWN5V47js.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkNYWN5V47js.InvalidAddressError; exports.InvalidArrayError = _chunkNYWN5V47js.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkNYWN5V47js.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkNYWN5V47js.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkNYWN5V47js.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkNYWN5V47js.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkNYWN5V47js.InvalidHexValueError; exports.InvalidInputRpcError = _chunkNYWN5V47js.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkNYWN5V47js.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkNYWN5V47js.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkNYWN5V47js.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkNYWN5V47js.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkNYWN5V47js.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkNYWN5V47js.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkNYWN5V47js.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkNYWN5V47js.ParseRpcError; exports.RequestError = _chunkNYWN5V47js.RequestError; exports.ResourceNotFoundRpcError = _chunkNYWN5V47js.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkNYWN5V47js.ResourceUnavailableRpcError; exports.RpcError = _chunkNYWN5V47js.RpcError; exports.RpcRequestError = _chunkNYWN5V47js.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkNYWN5V47js.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkNYWN5V47js.TimeoutError; exports.TransactionNotFoundError = _chunkNYWN5V47js.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkNYWN5V47js.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkNYWN5V47js.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkNYWN5V47js.UnknownRpcError; exports.UrlRequiredError = _chunkNYWN5V47js.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkNYWN5V47js.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkNYWN5V47js.WebSocketRequestError; exports.boolToBytes = _chunkNYWN5V47js.boolToBytes; exports.boolToHex = _chunkNYWN5V47js.boolToHex; exports.bytesToBigint = _chunkNYWN5V47js.bytesToBigint; exports.bytesToBool = _chunkNYWN5V47js.bytesToBool; exports.bytesToHex = _chunkNYWN5V47js.bytesToHex; exports.bytesToNumber = _chunkNYWN5V47js.bytesToNumber; exports.bytesToString = _chunkNYWN5V47js.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbi = _chunkNYWN5V47js.decodeAbi; exports.decodeErrorResult = _chunkNYWN5V47js.decodeErrorResult; exports.decodeEventLog = _chunkNYWN5V47js.decodeEventLog; exports.decodeFunctionData = _chunkNYWN5V47js.decodeFunctionData; exports.decodeFunctionResult = _chunkNYWN5V47js.decodeFunctionResult; exports.defineBlock = _chunkNYWN5V47js.defineBlock; exports.defineChain = _chunkNYWN5V47js.defineChain; exports.defineTransaction = _chunkNYWN5V47js.defineTransaction; exports.defineTransactionReceipt = _chunkNYWN5V47js.defineTransactionReceipt; exports.defineTransactionRequest = _chunkNYWN5V47js.defineTransactionRequest; exports.encodeAbi = _chunkNYWN5V47js.encodeAbi; exports.encodeDeployData = _chunkNYWN5V47js.encodeDeployData; exports.encodeErrorResult = _chunkNYWN5V47js.encodeErrorResult; exports.encodeEventTopics = _chunkNYWN5V47js.encodeEventTopics; exports.encodeFunctionData = _chunkNYWN5V47js.encodeFunctionData; exports.encodeFunctionResult = _chunkNYWN5V47js.encodeFunctionResult; exports.etherUnits = _chunkNYWN5V47js.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkNYWN5V47js.formatBlock; exports.formatEther = _chunkNYWN5V47js.formatEther; exports.formatGwei = _chunkNYWN5V47js.formatGwei; exports.formatTransaction = _chunkNYWN5V47js.formatTransaction; exports.formatTransactionRequest = _chunkNYWN5V47js.formatTransactionRequest; exports.formatUnit = _chunkNYWN5V47js.formatUnit; exports.fromBytes = _chunkNYWN5V47js.fromBytes; exports.fromHex = _chunkNYWN5V47js.fromHex; exports.fromRlp = _chunkNYWN5V47js.fromRlp; exports.getAbiItem = _chunkNYWN5V47js.getAbiItem; exports.getAddress = _chunkNYWN5V47js.getAddress; exports.getContractAddress = _chunkNYWN5V47js.getContractAddress; exports.getContractError = _chunkNYWN5V47js.getContractError; exports.getCreate2Address = _chunkNYWN5V47js.getCreate2Address; exports.getCreateAddress = _chunkNYWN5V47js.getCreateAddress; exports.getEventSignature = _chunkNYWN5V47js.getEventSignature; exports.getFunctionSignature = _chunkNYWN5V47js.getFunctionSignature; exports.gweiUnits = _chunkNYWN5V47js.gweiUnits; exports.hexToBigInt = _chunkNYWN5V47js.hexToBigInt; exports.hexToBool = _chunkNYWN5V47js.hexToBool; exports.hexToBytes = _chunkNYWN5V47js.hexToBytes; exports.hexToNumber = _chunkNYWN5V47js.hexToNumber; exports.hexToString = _chunkNYWN5V47js.hexToString; exports.http = http; exports.isAddress = _chunkNYWN5V47js.isAddress; exports.isAddressEqual = _chunkNYWN5V47js.isAddressEqual; exports.isBytes = _chunkNYWN5V47js.isBytes; exports.isHex = _chunkNYWN5V47js.isHex; exports.keccak256 = _chunkNYWN5V47js.keccak256; exports.labelhash = _chunk67DKKHAVjs.labelhash; exports.multicall3Abi = _chunkNYWN5V47js.multicall3Abi; exports.namehash = _chunk67DKKHAVjs.namehash; exports.numberToBytes = _chunkNYWN5V47js.numberToBytes; exports.numberToHex = _chunkNYWN5V47js.numberToHex; exports.pad = _chunkNYWN5V47js.pad; exports.padBytes = _chunkNYWN5V47js.padBytes; exports.padHex = _chunkNYWN5V47js.padHex; exports.parseEther = _chunkNYWN5V47js.parseEther; exports.parseGwei = _chunkNYWN5V47js.parseGwei; exports.parseUnit = _chunkNYWN5V47js.parseUnit; exports.size = _chunkNYWN5V47js.size; exports.slice = _chunkNYWN5V47js.slice; exports.sliceBytes = _chunkNYWN5V47js.sliceBytes; exports.sliceHex = _chunkNYWN5V47js.sliceHex; exports.stringToBytes = _chunkNYWN5V47js.stringToBytes; exports.stringToHex = _chunkNYWN5V47js.stringToHex; exports.stringify = _chunkNYWN5V47js.stringify; exports.toBytes = _chunkNYWN5V47js.toBytes; exports.toHex = _chunkNYWN5V47js.toHex; exports.toRlp = _chunkNYWN5V47js.toRlp; exports.transactionType = _chunkNYWN5V47js.transactionType; exports.trim = _chunkNYWN5V47js.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkNYWN5V47js.weiUnits;
//# sourceMappingURL=index.js.map

@@ -1,244 +0,13 @@

export { C as CallArgs, a as CallResponse, c as call } from './call-3476b8ee.js';
import { H as Hex, C as Chain, b as BlockTag, M as Formatter, O as MergeIntersectionProperties, S as Formatted, s as TransactionRequest, A as Address, a as Hash, F as FeeHistory, L as Log, f as BlockNumber, W as FormattedTransaction, X as TransactionFormatter, V as ExtractFormatter, p as RpcTransactionReceipt, T as TransactionReceipt, J as TransactionType, x as Transaction } from './chain-42de87e5.js';
import { P as PublicClient } from './createPublicClient-fd558574.js';
import { T as TransactionRequestFormatter } from './transactionRequest-f437b4ba.js';
import { F as FormattedBlock, B as BlockFormatter, a as FormattedTransactionReceipt, T as TransactionReceiptFormatter } from './transactionReceipt-44dbf122.js';
import { E as EventFilterArgs } from './watchEvent-569c9976.js';
export { G as GetBytecodeArgs, a as GetBytecodeResponse, g as getBytecode, w as watchEvent } from './watchEvent-569c9976.js';
import { j as EventDefinition } from './contract-9dd2f98b.js';
import { P as PublicClient } from './createPublicClient-2b4afeac.js';
export { a3 as CallArgs, a4 as CallResponse, a5 as CreateBlockFilterResponse, a6 as CreateEventFilterArgs, a7 as CreateEventFilterResponse, a8 as CreatePendingTransactionFilterResponse, a9 as EstimateGasArgs, aa as EstimateGasResponse, ab as GetBalanceArgs, ac as GetBalanceResponse, ad as GetBlockArgs, ae as GetBlockNumberArgs, af as GetBlockNumberResponse, ag as GetBlockResponse, ah as GetBlockTransactionCountArgs, ai as GetBlockTransactionCountResponse, G as GetBytecodeArgs, e as GetBytecodeResponse, aj as GetFeeHistoryArgs, ak as GetFeeHistoryResponse, al as GetFilterChangesArgs, am as GetFilterChangesResponse, an as GetFilterLogsArgs, ao as GetFilterLogsResponse, ap as GetGasPriceResponse, aq as GetTransactionArgs, ar as GetTransactionConfirmationsArgs, as as GetTransactionConfirmationsResponse, at as GetTransactionReceiptArgs, au as GetTransactionReceiptResponse, av as GetTransactionResponse, aw as OnBlock, ax as OnBlockNumber, ay as OnBlockNumberResponse, az as OnBlockResponse, aA as OnTransactions, aB as OnTransactionsResponse, aC as ReplacementReason, aD as ReplacementResponse, aE as UninstallFilterArgs, aF as UninstallFilterResponse, aG as WaitForTransactionReceiptArgs, aH as WaitForTransactionReceiptResponse, aI as WatchBlockNumberArgs, aJ as WatchBlocksArgs, aK as WatchPendingTransactionsArgs, x as call, y as createBlockFilter, z as createEventFilter, A as createPendingTransactionFilter, B as estimateGas, D as getBalance, F as getBlock, H as getBlockNumber, I as getBlockNumberCache, J as getBlockTransactionCount, n as getBytecode, K as getChainId, L as getFeeHistory, N as getFilterChanges, Q as getFilterLogs, U as getGasPrice, T as getLogs, V as getTransaction, X as getTransactionConfirmations, Y as getTransactionReceipt, Z as uninstallFilter, _ as waitForTransactionReceipt, $ as watchBlockNumber, a0 as watchBlocks, a1 as watchEvent, a2 as watchPendingTransactions } from './createPublicClient-2b4afeac.js';
import { A as Address, b as BlockTag } from './chain-4d46a747.js';
import './eip1193-f09a55af.js';
import './createClient-5d5c14d6.js';
import 'abitype';
import './transactionRequest-44c539b4.js';
import './wallet-9b1c6905.js';
import './transactionReceipt-84fc92e1.js';
import '@wagmi/chains';
import './eip1193-617a05ae.js';
import './createClient-6689596e.js';
import 'abitype';
import 'ethers@6/types/providers';
type FilterType = 'transaction' | 'block' | 'event';
type Filter<TFilterType extends FilterType = 'event'> = {
id: Hex;
type: TFilterType;
};
type CreatePendingTransactionFilterResponse = Filter<'transaction'>;
declare function createPendingTransactionFilter(client: PublicClient): Promise<CreatePendingTransactionFilterResponse>;
type CreateBlockFilterResponse = Filter<'block'>;
declare function createBlockFilter(client: PublicClient): Promise<CreateBlockFilterResponse>;
type FormattedEstimateGas<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Formatted<TFormatter, TransactionRequest, true>, TransactionRequest>;
type EstimateGasArgs<TChain extends Chain = Chain> = FormattedEstimateGas<TransactionRequestFormatter<TChain>> & ({
/** The balance of the account at a block number. */
blockNumber?: bigint;
blockTag?: never;
} | {
blockNumber?: never;
/** The balance of the account at a block tag. */
blockTag?: BlockTag;
});
type EstimateGasResponse = bigint;
/**
* @description Estimates the gas necessary to complete a transaction without submitting it to the network.
*/
declare function estimateGas<TChain extends Chain>(client: PublicClient<any, TChain>, { accessList, blockNumber, blockTag, data, from, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: EstimateGasArgs): Promise<EstimateGasResponse>;
type GetBalanceArgs = {
/** The address of the account. */
address: Address;
} & ({
/** The balance of the account at a block number. */
blockNumber?: bigint;
blockTag?: never;
} | {
blockNumber?: never;
/** The balance of the account at a block tag. */
blockTag?: BlockTag;
});
type GetBalanceResponse = bigint;
/**
* @description Returns the balance of an address in wei.
*/
declare function getBalance(client: PublicClient, { address, blockNumber, blockTag }: GetBalanceArgs): Promise<GetBalanceResponse>;
type GetBlockArgs = {
/** Whether or not to include transaction data in the response. */
includeTransactions?: boolean;
} & ({
/** Hash of the block. */
blockHash?: Hash;
blockNumber?: never;
blockTag?: never;
} | {
blockHash?: never;
/** The block number. */
blockNumber?: bigint;
blockTag?: never;
} | {
blockHash?: never;
blockNumber?: never;
/** The block tag. Defaults to 'latest'. */
blockTag?: BlockTag;
});
type GetBlockResponse<TChain extends Chain = Chain> = FormattedBlock<BlockFormatter<TChain>>;
declare function getBlock<TChain extends Chain>(client: PublicClient<any, TChain>, { blockHash, blockNumber, blockTag, includeTransactions, }?: GetBlockArgs): Promise<GetBlockResponse<TChain>>;
type GetBlockNumberArgs = {
/** The maximum age (in ms) of the cached value. */
maxAge?: number;
};
type GetBlockNumberResponse = bigint;
declare function getBlockNumberCache(id: string): {
clear: () => void;
promise: {
clear: () => boolean;
get: () => Promise<unknown> | undefined;
set: (data: Promise<unknown>) => Map<string, Promise<unknown>>;
};
response: {
clear: () => boolean;
get: () => {
created: Date;
data: unknown;
} | undefined;
set: (data: {
created: Date;
data: unknown;
}) => Map<string, {
created: Date;
data: unknown;
}>;
};
};
/**
* @description Returns the number of the most recent block seen.
*/
declare function getBlockNumber(client: PublicClient, { maxAge }?: GetBlockNumberArgs): Promise<GetBlockNumberResponse>;
type GetBlockTransactionCountArgs = {
/** Hash of the block. */
blockHash?: Hash;
blockNumber?: never;
blockTag?: never;
} | {
blockHash?: never;
/** The block number. */
blockNumber?: bigint;
blockTag?: never;
} | {
blockHash?: never;
blockNumber?: never;
/** The block tag. Defaults to 'latest'. */
blockTag?: BlockTag;
};
type GetBlockTransactionCountResponse = number;
declare function getBlockTransactionCount<TChain extends Chain>(client: PublicClient<any, TChain>, { blockHash, blockNumber, blockTag, }?: GetBlockTransactionCountArgs): Promise<GetBlockTransactionCountResponse>;
declare function getChainId(client: PublicClient): Promise<number>;
type GetFeeHistoryArgs = {
blockCount: number;
rewardPercentiles: number[];
} & ({
blockNumber?: never;
blockTag?: BlockTag;
} | {
blockNumber?: bigint;
blockTag?: never;
});
type GetFeeHistoryResponse = FeeHistory;
/**
* @description Returns a collection of historical gas information.
*/
declare function getFeeHistory(client: PublicClient, { blockCount, blockNumber, blockTag, rewardPercentiles, }: GetFeeHistoryArgs): Promise<GetFeeHistoryResponse>;
type GetFilterChangesArgs<TFilterType extends FilterType> = {
filter: Filter<TFilterType>;
};
type GetFilterChangesResponse<TFilterType extends FilterType> = TFilterType extends 'event' ? Log[] : Hash[];
declare function getFilterChanges<TFilterType extends FilterType>(client: PublicClient, { filter }: GetFilterChangesArgs<TFilterType>): Promise<GetFilterChangesResponse<TFilterType>>;
type GetFilterLogsArgs = {
filter: Filter<'event'>;
};
type GetFilterLogsResponse = Log[];
declare function getFilterLogs<TFilterType extends FilterType>(client: PublicClient, { filter }: GetFilterLogsArgs): Promise<GetFilterLogsResponse>;
type GetGasPriceResponse = bigint;
/**
* @description Returns the current price of gas (in wei).
*/
declare function getGasPrice(client: PublicClient): Promise<GetGasPriceResponse>;
type GetLogsArgs<TEventDefinition extends EventDefinition> = {
/** Address or list of addresses from which logs originated */
address?: Address | Address[];
} & ({
event: TEventDefinition;
args?: EventFilterArgs<TEventDefinition>;
} | {
event?: never;
args?: never;
}) & ({
/** Block number or tag after which to include logs */
fromBlock?: BlockNumber<bigint> | BlockTag;
/** Block number or tag before which to include logs */
toBlock?: BlockNumber<bigint> | BlockTag;
blockHash?: never;
} | {
fromBlock?: never;
toBlock?: never;
/** Hash of block to include logs from */
blockHash?: Hash;
});
type GetLogsResponse = Log[];
/**
* @description Returns a collection of event logs.
*/
declare function getLogs<TEventDefinition extends EventDefinition>(client: PublicClient, { address, blockHash, fromBlock, toBlock, event, args, }?: GetLogsArgs<TEventDefinition>): Promise<GetLogsResponse>;
type GetTransactionArgs = {
/** The block hash */
blockHash: Hash;
blockNumber?: never;
blockTag?: never;
hash?: never;
/** The index of the transaction on the block. */
index: number;
} | {
blockHash?: never;
/** The block number */
blockNumber: bigint;
blockTag?: never;
hash?: never;
/** The index of the transaction on the block. */
index: number;
} | {
blockHash?: never;
blockNumber?: never;
/** The block tag. */
blockTag: BlockTag;
hash?: never;
/** The index of the transaction on the block. */
index: number;
} | {
blockHash?: never;
blockNumber?: never;
blockTag?: never;
/** The hash of the transaction. */
hash: Hash;
index?: number;
};
type GetTransactionResponse<TChain extends Chain = Chain> = FormattedTransaction<TransactionFormatter<TChain>>;
/** @description Returns information about a transaction given a hash or block identifier. */
declare function getTransaction<TChain extends Chain>(client: PublicClient<any, TChain>, { blockHash, blockNumber, blockTag, hash, index, }: GetTransactionArgs): Promise<GetTransactionResponse<TChain>>;
type GetTransactionConfirmationsArgs<TChain extends Chain> = {
/** The transaction hash. */
hash: Hash;
transactionReceipt?: never;
} | {
hash?: never;
/** The transaction receipt. */
transactionReceipt: FormattedTransactionReceipt<TransactionReceiptFormatter<TChain>>;
};
type GetTransactionConfirmationsResponse = bigint;
declare function getTransactionConfirmations<TChain extends Chain>(client: PublicClient<any, TChain>, { hash, transactionReceipt }: GetTransactionConfirmationsArgs<TChain>): Promise<GetTransactionConfirmationsResponse>;
type GetTransactionCountArgs = {

@@ -262,94 +31,2 @@ /** The account address. */

type GetTransactionReceiptArgs = {
/** The hash of the transaction. */
hash: Hash;
};
type GetTransactionReceiptResponse<TChain extends Chain = Chain> = FormattedTransactionReceipt<TransactionReceiptFormatter<TChain>>;
declare function getTransactionReceipt<TChain extends Chain>(client: PublicClient<any, TChain>, { hash }: GetTransactionReceiptArgs): Promise<Formatted<ExtractFormatter<TChain, "transactionReceipt", Formatter<RpcTransactionReceipt, TransactionReceipt<bigint, number, "success" | "reverted", TransactionType>>>, TransactionReceipt<bigint, number, "success" | "reverted", TransactionType>, false>>;
type UninstallFilterArgs = {
filter: Filter<any>;
};
type UninstallFilterResponse = boolean;
declare function uninstallFilter(client: PublicClient, { filter }: UninstallFilterArgs): Promise<UninstallFilterResponse>;
type ReplacementReason = 'cancelled' | 'replaced' | 'repriced';
type ReplacementResponse<TChain extends Chain = Chain> = {
reason: ReplacementReason;
replacedTransaction: Transaction;
transaction: Transaction;
transactionReceipt: GetTransactionReceiptResponse<TChain>;
};
type WaitForTransactionReceiptResponse<TChain extends Chain = Chain> = GetTransactionReceiptResponse<TChain>;
type WaitForTransactionReceiptArgs<TChain extends Chain = Chain> = {
/** The number of confirmations (blocks that have passed) to wait before resolving. */
confirmations?: number;
/** The hash of the transaction. */
hash: Hash;
onReplaced?: (response: ReplacementResponse<TChain>) => void;
/** Polling frequency (in ms). Defaults to the client's pollingInterval config. */
pollingInterval?: number;
/** Optional timeout (in milliseconds) to wait before stopping polling. */
timeout?: number;
};
declare function waitForTransactionReceipt<TChain extends Chain>(client: PublicClient<any, TChain>, { confirmations, hash, onReplaced, pollingInterval, timeout, }: WaitForTransactionReceiptArgs<TChain>): Promise<WaitForTransactionReceiptResponse<TChain>>;
type OnBlockNumberResponse = GetBlockNumberResponse;
type OnBlockNumber = (blockNumber: OnBlockNumberResponse, prevBlockNumber: OnBlockNumberResponse | undefined) => void;
type WatchBlockNumberArgs = {
/** Whether or not to emit the missed block numbers to the callback. */
emitMissed?: boolean;
/** Whether or not to emit the latest block number to the callback when the subscription opens. */
emitOnBegin?: boolean;
/** The callback to call when a new block number is received. */
onBlockNumber: OnBlockNumber;
/** The callback to call when an error occurred when trying to get for a new block. */
onError?: (error: Error) => void;
/** Polling frequency (in ms). Defaults to Client's pollingInterval config. */
pollingInterval?: number;
};
/** @description Watches and returns incoming block numbers. */
declare function watchBlockNumber(client: PublicClient, { emitOnBegin, emitMissed, onBlockNumber, onError, pollingInterval, }: WatchBlockNumberArgs): () => void;
type OnBlockResponse<TChain extends Chain = Chain, TIncludeTransactions = false> = Omit<GetBlockResponse<TChain>, TIncludeTransactions extends false ? 'transactions' : ''>;
type OnBlock<TChain extends Chain = Chain, TIncludeTransactions = false> = (block: OnBlockResponse<TChain, TIncludeTransactions>, prevBlock: OnBlockResponse<TChain, TIncludeTransactions> | undefined) => void;
type WatchBlocksArgs<TChain extends Chain = Chain> = {
/** The block tag. Defaults to "latest". */
blockTag?: BlockTag;
/** Whether or not to emit the missed blocks to the callback. */
emitMissed?: boolean;
/** Whether or not to emit the block to the callback when the subscription opens. */
emitOnBegin?: boolean;
/** The callback to call when an error occurred when trying to get for a new block. */
onError?: (error: Error) => void;
/** Polling frequency (in ms). Defaults to the client's pollingInterval config. */
pollingInterval?: number;
} & ({
/** Whether or not to include transaction data in the response. */
includeTransactions: true;
/** The callback to call when a new block is received. */
onBlock: OnBlock<TChain, true>;
} | {
/** Whether or not to include transaction data in the response. */
includeTransactions?: false;
/** The callback to call when a new block is received. */
onBlock: OnBlock<TChain>;
});
/** @description Watches and returns information for incoming blocks. */
declare function watchBlocks<TChain extends Chain, TWatchBlocksArgs extends WatchBlocksArgs<TChain>>(client: PublicClient<any, TChain>, { blockTag, emitMissed, emitOnBegin, onBlock, onError, includeTransactions, pollingInterval, }: TWatchBlocksArgs): () => void;
type OnTransactionsResponse = Hash[];
type OnTransactions = (transactions: OnTransactionsResponse) => void;
type WatchPendingTransactionsArgs = {
/** Whether or not the transaction hashes should be batched on each invocation. */
batch?: boolean;
/** The callback to call when an error occurred when trying to get for a new block. */
onError?: (error: Error) => void;
/** The callback to call when new transactions are received. */
onTransactions: OnTransactions;
/** Polling frequency (in ms). Defaults to Client's pollingInterval config. */
pollingInterval?: number;
};
declare function watchPendingTransactions(client: PublicClient, { batch, onError, onTransactions, pollingInterval, }: WatchPendingTransactionsArgs): () => void;
export { CreateBlockFilterResponse, CreatePendingTransactionFilterResponse, EstimateGasArgs, EstimateGasResponse, GetBalanceArgs, GetBalanceResponse, GetBlockArgs, GetBlockNumberArgs, GetBlockNumberResponse, GetBlockResponse, GetBlockTransactionCountArgs, GetBlockTransactionCountResponse, GetFeeHistoryArgs, GetFeeHistoryResponse, GetFilterChangesArgs, GetFilterChangesResponse, GetFilterLogsArgs, GetFilterLogsResponse, GetGasPriceResponse, GetTransactionArgs, GetTransactionConfirmationsArgs, GetTransactionConfirmationsResponse, GetTransactionCountArgs, GetTransactionCountResponse, GetTransactionReceiptArgs, GetTransactionReceiptResponse, GetTransactionResponse, OnBlock, OnBlockNumber, OnBlockNumberResponse, OnBlockResponse, OnTransactions, OnTransactionsResponse, ReplacementReason, ReplacementResponse, UninstallFilterArgs, UninstallFilterResponse, WaitForTransactionReceiptArgs, WaitForTransactionReceiptResponse, WatchBlockNumberArgs, WatchBlocksArgs, WatchPendingTransactionsArgs, createBlockFilter, createPendingTransactionFilter, estimateGas, getBalance, getBlock, getBlockNumber, getBlockNumberCache, getBlockTransactionCount, getChainId, getFeeHistory, getFilterChanges, getFilterLogs, getGasPrice, getLogs, getTransaction, getTransactionConfirmations, getTransactionCount, getTransactionReceipt, uninstallFilter, waitForTransactionReceipt, watchBlockNumber, watchBlocks, watchPendingTransactions };
export { GetTransactionCountArgs, GetTransactionCountResponse, getTransactionCount };

@@ -28,5 +28,5 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkJY7JGKSAjs = require('./chunk-JY7JGKSA.js');
require('./chunk-W7KWIGWO.js');
var _chunk7GQB4KE5js = require('./chunk-7GQB4KE5.js');
require('./chunk-NYWN5V47.js');

@@ -58,3 +58,5 @@

exports.call = _chunkJY7JGKSAjs.call; exports.createBlockFilter = _chunkJY7JGKSAjs.createBlockFilter; exports.createPendingTransactionFilter = _chunkJY7JGKSAjs.createPendingTransactionFilter; exports.estimateGas = _chunkJY7JGKSAjs.estimateGas; exports.getBalance = _chunkJY7JGKSAjs.getBalance; exports.getBlock = _chunkJY7JGKSAjs.getBlock; exports.getBlockNumber = _chunkJY7JGKSAjs.getBlockNumber; exports.getBlockNumberCache = _chunkJY7JGKSAjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkJY7JGKSAjs.getBlockTransactionCount; exports.getBytecode = _chunkJY7JGKSAjs.getBytecode; exports.getChainId = _chunkJY7JGKSAjs.getChainId; exports.getFeeHistory = _chunkJY7JGKSAjs.getFeeHistory; exports.getFilterChanges = _chunkJY7JGKSAjs.getFilterChanges; exports.getFilterLogs = _chunkJY7JGKSAjs.getFilterLogs; exports.getGasPrice = _chunkJY7JGKSAjs.getGasPrice; exports.getLogs = _chunkJY7JGKSAjs.getLogs; exports.getTransaction = _chunkJY7JGKSAjs.getTransaction; exports.getTransactionConfirmations = _chunkJY7JGKSAjs.getTransactionConfirmations; exports.getTransactionCount = _chunkJY7JGKSAjs.getTransactionCount; exports.getTransactionReceipt = _chunkJY7JGKSAjs.getTransactionReceipt; exports.uninstallFilter = _chunkJY7JGKSAjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkJY7JGKSAjs.waitForTransactionReceipt; exports.watchBlockNumber = _chunkJY7JGKSAjs.watchBlockNumber; exports.watchBlocks = _chunkJY7JGKSAjs.watchBlocks; exports.watchEvent = _chunkJY7JGKSAjs.watchEvent; exports.watchPendingTransactions = _chunkJY7JGKSAjs.watchPendingTransactions;
exports.call = _chunk7GQB4KE5js.call; exports.createBlockFilter = _chunk7GQB4KE5js.createBlockFilter; exports.createEventFilter = _chunk7GQB4KE5js.createEventFilter; exports.createPendingTransactionFilter = _chunk7GQB4KE5js.createPendingTransactionFilter; exports.estimateGas = _chunk7GQB4KE5js.estimateGas; exports.getBalance = _chunk7GQB4KE5js.getBalance; exports.getBlock = _chunk7GQB4KE5js.getBlock; exports.getBlockNumber = _chunk7GQB4KE5js.getBlockNumber; exports.getBlockNumberCache = _chunk7GQB4KE5js.getBlockNumberCache; exports.getBlockTransactionCount = _chunk7GQB4KE5js.getBlockTransactionCount; exports.getBytecode = _chunk7GQB4KE5js.getBytecode; exports.getChainId = _chunk7GQB4KE5js.getChainId; exports.getFeeHistory = _chunk7GQB4KE5js.getFeeHistory; exports.getFilterChanges = _chunk7GQB4KE5js.getFilterChanges; exports.getFilterLogs = _chunk7GQB4KE5js.getFilterLogs; exports.getGasPrice = _chunk7GQB4KE5js.getGasPrice; exports.getLogs = _chunk7GQB4KE5js.getLogs; exports.getTransaction = _chunk7GQB4KE5js.getTransaction; exports.getTransactionConfirmations = _chunk7GQB4KE5js.getTransactionConfirmations; exports.getTransactionCount = _chunk7GQB4KE5js.getTransactionCount; exports.getTransactionReceipt = _chunk7GQB4KE5js.getTransactionReceipt; exports.uninstallFilter = _chunk7GQB4KE5js.uninstallFilter; exports.waitForTransactionReceipt = _chunk7GQB4KE5js.waitForTransactionReceipt; exports.watchBlockNumber = _chunk7GQB4KE5js.watchBlockNumber; exports.watchBlocks = _chunk7GQB4KE5js.watchBlocks; exports.watchEvent = _chunk7GQB4KE5js.watchEvent; exports.watchPendingTransactions = _chunk7GQB4KE5js.watchPendingTransactions;
//# sourceMappingURL=public.js.map

@@ -1,161 +0,20 @@

import { a as Hash, o as RpcTransaction, A as Address, Q as Quantity, s as TransactionRequest, H as Hex } from './chain-42de87e5.js';
import { T as TestClient } from './createTestClient-bc1d9028.js';
import { T as TestClient } from './test-b9208949.js';
export { D as DropTransactionArgs, I as ImpersonateAccountArgs, z as IncreaseTimeArgs, M as MineArgs, R as ResetArgs, A as RevertArgs, S as SendUnsignedTransactionArgs, B as SendUnsignedTransactionResponse, C as SetBalanceArgs, E as SetBlockGasLimitArgs, F as SetBlockTimestampIntervalArgs, G as SetCodeArgs, H as SetCoinbaseArgs, J as SetIntervalMiningArgs, K as SetMinGasPriceArgs, L as SetNextBlockBaseFeePerGasArgs, N as SetNextBlockTimestampArgs, O as SetNonceArgs, P as SetStorageAtArgs, Q as StopImpersonatingAccountArgs, d as dropTransaction, g as getAutomine, b as getTxpoolContent, e as getTxpoolStatus, i as impersonateAccount, f as increaseTime, h as inspectTxpool, m as mine, r as reset, j as revert, s as sendUnsignedTransaction, k as setBalance, l as setBlockGasLimit, n as setBlockTimestampInterval, o as setCode, p as setCoinbase, q as setIntervalMining, t as setMinGasPrice, u as setNextBlockBaseFeePerGas, v as setNextBlockTimestamp, w as setNonce, x as setStorageAt, y as stopImpersonatingAccount } from './test-b9208949.js';
import './chain-4d46a747.js';
import '@wagmi/chains';
import './eip1193-617a05ae.js';
import './createClient-6689596e.js';
import 'abitype';
import 'ethers@6/types/providers';
import './eip1193-f09a55af.js';
import './createClient-5d5c14d6.js';
type DropTransactionArgs = {
/** The hash of the transaction to drop. */
hash: Hash;
};
declare function dropTransaction(client: TestClient, { hash }: DropTransactionArgs): Promise<void>;
type GetAutomineResponse = boolean;
declare function getAutomine(client: TestClient): Promise<GetAutomineResponse>;
declare function getTxpoolContent(client: TestClient): Promise<{
pending: Record<`0x${string}`, Record<string, RpcTransaction>>;
queued: Record<`0x${string}`, Record<string, RpcTransaction>>;
}>;
declare function getTxpoolStatus(client: TestClient): Promise<{
pending: number;
queued: number;
}>;
type ImpersonateAccountArgs = {
/** The account to impersonate. */
address: Address;
};
declare function impersonateAccount(client: TestClient, { address }: ImpersonateAccountArgs): Promise<void>;
type IncreaseTimeArgs = {
/** The amount of seconds to jump forward in time. */
seconds: number;
};
declare function increaseTime(client: TestClient, { seconds }: IncreaseTimeArgs): Promise<`0x${string}`>;
declare function inspectTxpool(client: TestClient): Promise<{
pending: Record<`0x${string}`, Record<string, string>>;
queued: Record<`0x${string}`, Record<string, string>>;
}>;
type MineArgs = {
/** Number of blocks to mine. */
blocks: number;
/** Interval between each block in seconds. */
interval?: number;
};
declare function mine(client: TestClient, { blocks, interval }: MineArgs): Promise<void>;
declare function removeBlockTimestampInterval(client: TestClient): Promise<void>;
type ResetArgs = {
/** The block number to reset from. */
blockNumber?: bigint;
/** The JSON RPC URL. */
jsonRpcUrl?: string;
};
declare function reset(client: TestClient, { blockNumber, jsonRpcUrl }?: ResetArgs): Promise<void>;
type RevertArgs = {
/** The snapshot ID to revert to. */
id: Quantity;
};
declare function revert(client: TestClient, { id }: RevertArgs): Promise<void>;
type SendUnsignedTransactionArgs = TransactionRequest;
type SendUnsignedTransactionResponse = Hash;
declare function sendUnsignedTransaction(client: TestClient, request: SendUnsignedTransactionArgs): Promise<SendUnsignedTransactionResponse>;
declare function setAutomine(client: TestClient, enabled: boolean): Promise<void>;
type SetBalanceArgs = {
/** The account address. */
address: Address;
/** Amount (in wei) to set */
value: bigint;
};
declare function setBalance(client: TestClient, { address, value }: SetBalanceArgs): Promise<void>;
type SetBlockGasLimitArgs = {
/** Gas limit (in wei). */
gasLimit: bigint;
};
declare function setBlockGasLimit(client: TestClient, { gasLimit }: SetBlockGasLimitArgs): Promise<void>;
type SetBlockTimestampIntervalArgs = {
/** The interval (in seconds). */
interval: number;
};
declare function setBlockTimestampInterval(client: TestClient, { interval }: SetBlockTimestampIntervalArgs): Promise<void>;
type SetCodeArgs = {
/** The account address. */
address: Address;
/** The bytecode to set */
bytecode: Hex;
};
declare function setCode(client: TestClient, { address, bytecode }: SetCodeArgs): Promise<void>;
type SetCoinbaseArgs = {
/** The coinbase address. */
address: Address;
};
declare function setCoinbase(client: TestClient, { address }: SetCoinbaseArgs): Promise<void>;
type SetIntervalMiningArgs = {
/** The mining interval. */
interval: number;
};
declare function setIntervalMining(client: TestClient, { interval }: SetIntervalMiningArgs): Promise<void>;
declare function setLoggingEnabled(client: TestClient, enabled: boolean): Promise<void>;
type SetMinGasPriceArgs = {
/** The gas price. */
gasPrice: bigint;
};
declare function setMinGasPrice(client: TestClient, { gasPrice }: SetMinGasPriceArgs): Promise<void>;
type SetNextBlockBaseFeePerGasArgs = {
/** Base fee per gas (in wei). */
baseFeePerGas: bigint;
};
declare function setNextBlockBaseFeePerGas(client: TestClient, { baseFeePerGas }: SetNextBlockBaseFeePerGasArgs): Promise<void>;
type SetNextBlockTimestampArgs = {
/** The timestamp (in seconds). */
timestamp: bigint;
};
declare function setNextBlockTimestamp(client: TestClient, { timestamp }: SetNextBlockTimestampArgs): Promise<void>;
type SetNonceArgs = {
/** The account address. */
address: Address;
/** The nonce to set. */
nonce: number;
};
declare function setNonce(client: TestClient, { address, nonce }: SetNonceArgs): Promise<void>;
declare function setRpcUrl(client: TestClient, jsonRpcUrl: string): Promise<void>;
type SetStorageAtArgs = {
/** The account address. */
address: Address;
/** The storage slot (index). Can either be a number or hash value. */
index: number | Hash;
/** The value to store as a 32 byte hex string. */
value: Hex;
};
declare function setStorageAt(client: TestClient, { address, index, value }: SetStorageAtArgs): Promise<void>;
declare function snapshot(client: TestClient): Promise<`0x${string}`>;
type StopImpersonatingAccountArgs = {
/** The account to impersonate. */
address: Address;
};
declare function stopImpersonatingAccount(client: TestClient, { address }: StopImpersonatingAccountArgs): Promise<void>;
export { DropTransactionArgs, ImpersonateAccountArgs, IncreaseTimeArgs, MineArgs, ResetArgs, RevertArgs, SendUnsignedTransactionArgs, SendUnsignedTransactionResponse, SetBalanceArgs, SetBlockGasLimitArgs, SetBlockTimestampIntervalArgs, SetCodeArgs, SetCoinbaseArgs, SetIntervalMiningArgs, SetMinGasPriceArgs, SetNextBlockBaseFeePerGasArgs, SetNextBlockTimestampArgs, SetNonceArgs, SetStorageAtArgs, StopImpersonatingAccountArgs, dropTransaction, getAutomine, getTxpoolContent, getTxpoolStatus, impersonateAccount, increaseTime, inspectTxpool, mine, removeBlockTimestampInterval, reset, revert, sendUnsignedTransaction, setAutomine, setBalance, setBlockGasLimit, setBlockTimestampInterval, setCode, setCoinbase, setIntervalMining, setLoggingEnabled, setMinGasPrice, setNextBlockBaseFeePerGas, setNextBlockTimestamp, setNonce, setRpcUrl, setStorageAt, snapshot, stopImpersonatingAccount };
export { removeBlockTimestampInterval, setAutomine, setLoggingEnabled, setRpcUrl, snapshot };

@@ -5,231 +5,32 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkW7KWIGWOjs = require('./chunk-W7KWIGWO.js');
// src/actions/test/dropTransaction.ts
async function dropTransaction(client, { hash }) {
return await client.request({
method: `${client.mode}_dropTransaction`,
params: [hash]
});
}
// src/actions/test/getAutomine.ts
async function getAutomine(client) {
return await client.request({
method: `${client.mode}_getAutomine`
});
}
// src/actions/test/getTxpoolContent.ts
async function getTxpoolContent(client) {
return await client.request({
method: "txpool_content"
});
}
// src/actions/test/getTxpoolStatus.ts
async function getTxpoolStatus(client) {
const { pending, queued } = await client.request({
method: "txpool_status"
});
return {
pending: _chunkW7KWIGWOjs.hexToNumber.call(void 0, pending),
queued: _chunkW7KWIGWOjs.hexToNumber.call(void 0, queued)
};
}
// src/actions/test/impersonateAccount.ts
async function impersonateAccount(client, { address }) {
return await client.request({
method: `${client.mode}_impersonateAccount`,
params: [address]
});
}
// src/actions/test/increaseTime.ts
async function increaseTime(client, { seconds }) {
return await client.request({
method: "evm_increaseTime",
params: [_chunkW7KWIGWOjs.numberToHex.call(void 0, seconds)]
});
}
// src/actions/test/inspectTxpool.ts
async function inspectTxpool(client) {
return await client.request({
method: "txpool_inspect"
});
}
// src/actions/test/mine.ts
async function mine(client, { blocks, interval }) {
return await client.request({
method: `${client.mode}_mine`,
params: [_chunkW7KWIGWOjs.numberToHex.call(void 0, blocks), _chunkW7KWIGWOjs.numberToHex.call(void 0, interval || 0)]
});
}
// src/actions/test/removeBlockTimestampInterval.ts
async function removeBlockTimestampInterval(client) {
return await client.request({
method: `${client.mode}_removeBlockTimestampInterval`
});
}
// src/actions/test/reset.ts
async function reset(client, { blockNumber, jsonRpcUrl } = {}) {
return await client.request({
method: `${client.mode}_reset`,
params: [{ forking: { blockNumber: Number(blockNumber), jsonRpcUrl } }]
});
}
// src/actions/test/revert.ts
async function revert(client, { id }) {
return await client.request({
method: "evm_revert",
params: [id]
});
}
// src/actions/test/sendUnsignedTransaction.ts
async function sendUnsignedTransaction(client, request) {
const request_ = _chunkW7KWIGWOjs.formatTransactionRequest.call(void 0, request);
const hash = await client.request({
method: "eth_sendUnsignedTransaction",
params: [request_]
});
return hash;
}
// src/actions/test/setAutomine.ts
async function setAutomine(client, enabled) {
return await client.request({
method: "evm_setAutomine",
params: [enabled]
});
}
// src/actions/test/setBalance.ts
async function setBalance(client, { address, value }) {
return await client.request({
method: `${client.mode}_setBalance`,
params: [address, _chunkW7KWIGWOjs.numberToHex.call(void 0, value)]
});
}
// src/actions/test/setBlockGasLimit.ts
async function setBlockGasLimit(client, { gasLimit }) {
return await client.request({
method: "evm_setBlockGasLimit",
params: [_chunkW7KWIGWOjs.numberToHex.call(void 0, gasLimit)]
});
}
// src/actions/test/setBlockTimestampInterval.ts
async function setBlockTimestampInterval(client, { interval }) {
return await client.request({
method: `${client.mode}_setBlockTimestampInterval`,
params: [interval]
});
}
// src/actions/test/setCode.ts
async function setCode(client, { address, bytecode }) {
return await client.request({
method: `${client.mode}_setCode`,
params: [address, bytecode]
});
}
// src/actions/test/setCoinbase.ts
async function setCoinbase(client, { address }) {
return await client.request({
method: `${client.mode}_setCoinbase`,
params: [address]
});
}
// src/actions/test/setIntervalMining.ts
async function setIntervalMining(client, { interval }) {
return await client.request({
method: "evm_setIntervalMining",
params: [interval]
});
}
// src/actions/test/setLoggingEnabled.ts
async function setLoggingEnabled(client, enabled) {
return await client.request({
method: `${client.mode}_setLoggingEnabled`,
params: [enabled]
});
}
// src/actions/test/setMinGasPrice.ts
async function setMinGasPrice(client, { gasPrice }) {
return await client.request({
method: `${client.mode}_setMinGasPrice`,
params: [_chunkW7KWIGWOjs.numberToHex.call(void 0, gasPrice)]
});
}
// src/actions/test/setNextBlockBaseFeePerGas.ts
async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
return await client.request({
method: `${client.mode}_setNextBlockBaseFeePerGas`,
params: [_chunkW7KWIGWOjs.numberToHex.call(void 0, baseFeePerGas)]
});
}
// src/actions/test/setNextBlockTimestamp.ts
async function setNextBlockTimestamp(client, { timestamp }) {
return await client.request({
method: "evm_setNextBlockTimestamp",
params: [_chunkW7KWIGWOjs.numberToHex.call(void 0, timestamp)]
});
}
// src/actions/test/setNonce.ts
async function setNonce(client, { address, nonce }) {
return await client.request({
method: `${client.mode}_setNonce`,
params: [address, _chunkW7KWIGWOjs.numberToHex.call(void 0, nonce)]
});
}
// src/actions/test/setRpcUrl.ts
async function setRpcUrl(client, jsonRpcUrl) {
return await client.request({
method: `${client.mode}_setRpcUrl`,
params: [jsonRpcUrl]
});
}
var _chunkFPEKYEVUjs = require('./chunk-FPEKYEVU.js');
require('./chunk-NYWN5V47.js');
// src/actions/test/setStorageAt.ts
async function setStorageAt(client, { address, index, value }) {
return await client.request({
method: `${client.mode}_setStorageAt`,
params: [
address,
typeof index === "number" ? _chunkW7KWIGWOjs.numberToHex.call(void 0, index) : index,
value
]
});
}
// src/actions/test/snapshot.ts
async function snapshot(client) {
return await client.request({
method: "evm_snapshot"
});
}
// src/actions/test/stopImpersonatingAccount.ts
async function stopImpersonatingAccount(client, { address }) {
return await client.request({
method: `${client.mode}_stopImpersonatingAccount`,
params: [address]
});
}

@@ -261,6 +62,3 @@

exports.dropTransaction = dropTransaction; exports.getAutomine = getAutomine; exports.getTxpoolContent = getTxpoolContent; exports.getTxpoolStatus = getTxpoolStatus; exports.impersonateAccount = impersonateAccount; exports.increaseTime = increaseTime; exports.inspectTxpool = inspectTxpool; exports.mine = mine; exports.removeBlockTimestampInterval = removeBlockTimestampInterval; exports.reset = reset; exports.revert = revert; exports.sendUnsignedTransaction = sendUnsignedTransaction; exports.setAutomine = setAutomine; exports.setBalance = setBalance; exports.setBlockGasLimit = setBlockGasLimit; exports.setBlockTimestampInterval = setBlockTimestampInterval; exports.setCode = setCode; exports.setCoinbase = setCoinbase; exports.setIntervalMining = setIntervalMining; exports.setLoggingEnabled = setLoggingEnabled; exports.setMinGasPrice = setMinGasPrice; exports.setNextBlockBaseFeePerGas = setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = setNextBlockTimestamp; exports.setNonce = setNonce; exports.setRpcUrl = setRpcUrl; exports.setStorageAt = setStorageAt; exports.snapshot = snapshot; exports.stopImpersonatingAccount = stopImpersonatingAccount;
exports.dropTransaction = _chunkFPEKYEVUjs.dropTransaction; exports.getAutomine = _chunkFPEKYEVUjs.getAutomine; exports.getTxpoolContent = _chunkFPEKYEVUjs.getTxpoolContent; exports.getTxpoolStatus = _chunkFPEKYEVUjs.getTxpoolStatus; exports.impersonateAccount = _chunkFPEKYEVUjs.impersonateAccount; exports.increaseTime = _chunkFPEKYEVUjs.increaseTime; exports.inspectTxpool = _chunkFPEKYEVUjs.inspectTxpool; exports.mine = _chunkFPEKYEVUjs.mine; exports.removeBlockTimestampInterval = _chunkFPEKYEVUjs.removeBlockTimestampInterval; exports.reset = _chunkFPEKYEVUjs.reset; exports.revert = _chunkFPEKYEVUjs.revert; exports.sendUnsignedTransaction = _chunkFPEKYEVUjs.sendUnsignedTransaction; exports.setAutomine = _chunkFPEKYEVUjs.setAutomine; exports.setBalance = _chunkFPEKYEVUjs.setBalance; exports.setBlockGasLimit = _chunkFPEKYEVUjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkFPEKYEVUjs.setBlockTimestampInterval; exports.setCode = _chunkFPEKYEVUjs.setCode; exports.setCoinbase = _chunkFPEKYEVUjs.setCoinbase; exports.setIntervalMining = _chunkFPEKYEVUjs.setIntervalMining; exports.setLoggingEnabled = _chunkFPEKYEVUjs.setLoggingEnabled; exports.setMinGasPrice = _chunkFPEKYEVUjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkFPEKYEVUjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkFPEKYEVUjs.setNextBlockTimestamp; exports.setNonce = _chunkFPEKYEVUjs.setNonce; exports.setRpcUrl = _chunkFPEKYEVUjs.setRpcUrl; exports.setStorageAt = _chunkFPEKYEVUjs.setStorageAt; exports.snapshot = _chunkFPEKYEVUjs.snapshot; exports.stopImpersonatingAccount = _chunkFPEKYEVUjs.stopImpersonatingAccount;
//# sourceMappingURL=test.js.map

@@ -1,40 +0,15 @@

export { D as DecodeAbiArgs, a as DecodeEventLogArgs, b as DecodeEventLogResponse, c as DecodeFunctionDataArgs, d as DecodeFunctionResultArgs, e as DecodeFunctionResultResponse, E as EncodeAbiArgs, f as EncodeDeployDataArgs, g as EncodeErrorResultArgs, h as EncodeEventTopicsArgs, i as EncodeFunctionDataArgs, j as EncodeFunctionResultArgs, G as GetAbiItemArgs, k as decodeAbi, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeAbi, p as encodeDeployData, q as encodeErrorResult, r as encodeEventTopics, s as encodeFunctionData, t as encodeFunctionResult, v as formatAbiItem, u as formatAbiItemWithArgs, w as getAbiItem } from '../getAbiItem-d2e8bd76.js';
export { a as DecodeErrorResultArgs, D as DecodeErrorResultResponse, d as decodeErrorResult } from '../decodeErrorResult-ac835649.js';
import { A as Address, B as ByteArray, H as Hex, M as Formatter } from '../chain-42de87e5.js';
export { V as ExtractFormatter, S as Formatted, W as FormattedTransaction, X as TransactionFormatter, Y as defineFormatter, Z as defineTransaction, _ as format, $ as formatTransaction, a0 as transactionType } from '../chain-42de87e5.js';
export { d as defineChain } from '../chain-b0cfb141.js';
import { Abi } from 'abitype';
import { B as BaseError, C as ContractFunctionExecutionError } from '../rpc-8c10fc98.js';
export { r as rpc } from '../rpc-8c10fc98.js';
export { B as BlockFormatter, F as FormattedBlock, a as FormattedTransactionReceipt, T as TransactionReceiptFormatter, d as defineBlock, b as defineTransactionReceipt, f as formatBlock } from '../transactionReceipt-44dbf122.js';
export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, d as defineTransactionRequest, f as formatTransactionRequest } from '../transactionRequest-f437b4ba.js';
import { j as EventDefinition } from '../contract-9dd2f98b.js';
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeErrorResultResponse, c as DecodeEventLogArgs, d as DecodeEventLogResponse, e as DecodeFunctionDataArgs, f as DecodeFunctionResultArgs, g as DecodeFunctionResultResponse, E as EncodeAbiArgs, h as EncodeDeployDataArgs, i as EncodeErrorResultArgs, j as EncodeEventTopicsArgs, k as EncodeFunctionDataArgs, l as EncodeFunctionResultArgs, G as GetAbiItemArgs, m as decodeAbi, n as decodeErrorResult, o as decodeEventLog, p as decodeFunctionData, q as decodeFunctionResult, r as encodeAbi, s as encodeDeployData, t as encodeErrorResult, u as encodeEventTopics, v as encodeFunctionData, w as encodeFunctionResult, x as getAbiItem } from '../getAbiItem-0e085959.js';
export { a as formatAbiItem, f as formatAbiItemWithArgs } from '../formatAbiItem-d231fef2.js';
export { G as GetContractAddressOptions, c as GetCreate2AddressOptions, d as GetCreateAddressOptions, T as ToRlpResponse, e as boolToBytes, f as boolToHex, g as bytesToBigint, h as bytesToBool, i as bytesToHex, j as bytesToNumber, k as bytesToString, l as etherUnits, m as formatEther, n as formatGwei, o as formatUnit, p as fromBytes, q as fromHex, r as fromRlp, s as getAddress, t as getContractAddress, u as getContractError, v as getCreate2Address, w as getCreateAddress, x as getEventSignature, y as getFunctionSignature, z as gweiUnits, A as hexToBigInt, D as hexToBool, E as hexToBytes, F as hexToNumber, H as hexToString, I as isAddress, J as isAddressEqual, K as isBytes, L as isHex, M as keccak256, N as numberToBytes, O as numberToHex, P as pad, Q as padBytes, S as padHex, U as parseEther, V as parseGwei, W as parseUnit, a7 as rpc, X as size, Y as slice, Z as sliceBytes, _ as sliceHex, $ as stringToBytes, a0 as stringToHex, a1 as stringify, a2 as toBytes, a3 as toHex, a4 as toRlp, a5 as trim, a6 as weiUnits } from '../parseGwei-07adffee.js';
export { d as defineChain } from '../chain-c7c44165.js';
export { B as BlockFormatter, F as FormattedBlock, a as FormattedTransactionReceipt, T as TransactionReceiptFormatter, d as defineBlock, b as defineTransactionReceipt, f as formatBlock } from '../transactionReceipt-84fc92e1.js';
import { W as Formatter } from '../chain-4d46a747.js';
export { J as ExtractFormatter, K as Formatted, M as FormattedTransaction, N as TransactionFormatter, ad as defineFormatter, O as defineTransaction, ae as format, P as formatTransaction, Q as transactionType } from '../chain-4d46a747.js';
export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, d as defineTransactionRequest, f as formatTransactionRequest } from '../transactionRequest-44c539b4.js';
import 'abitype';
import 'abitype/dist/abi-78346466';
import 'isomorphic-ws';
import '@wagmi/chains';
import 'isomorphic-ws';
import 'ethers@6/types/providers';
declare function getAddress(address: Address): `0x${string}`;
type GetCreateAddressOptions = {
from: Address;
nonce: bigint;
};
type GetCreate2AddressOptions = {
bytecode: ByteArray | Hex;
from: Address;
salt: ByteArray | Hex;
};
type GetContractAddressOptions = ({
opcode?: 'CREATE';
} & GetCreateAddressOptions) | ({
opcode: 'CREATE2';
} & GetCreate2AddressOptions);
declare function getContractAddress(opts: GetContractAddressOptions): `0x${string}`;
declare function getCreateAddress(opts: GetCreateAddressOptions): `0x${string}`;
declare function getCreate2Address(opts: GetCreate2AddressOptions): `0x${string}`;
declare function isAddress(address: Address): boolean;
declare function isAddressEqual(a: Address, b: Address): boolean;
declare function buildRequest<TRequest extends (args: any) => Promise<any>>(request: TRequest, { retryDelay, retryCount, }?: {

@@ -58,65 +33,3 @@ retryDelay?: number;

declare function getContractError(err: BaseError, { abi, address, args, docsPath, functionName, sender, }: {
abi: Abi;
args: any;
address?: Address;
docsPath?: string;
functionName: string;
sender?: Address;
}): ContractFunctionExecutionError;
declare function isBytes(value: any): boolean;
declare function isHex(value: any): boolean;
type PadOptions = {
dir?: 'left' | 'right';
size?: number;
};
type PadResult<TValue extends ByteArray | Hex> = TValue extends Hex ? Hex : ByteArray;
declare function pad<TValue extends ByteArray | Hex>(hexOrBytes: TValue, { dir, size }?: PadOptions): PadResult<TValue>;
declare function padHex(hex_: Hex, { dir, size }?: PadOptions): `0x${string}`;
declare function padBytes(bytes: ByteArray, { dir, size }?: PadOptions): Uint8Array;
type TrimOptions = {
dir?: 'left' | 'right';
};
type TrimResult<TValue extends ByteArray | Hex> = TValue extends Hex ? Hex : ByteArray;
declare function trim<TValue extends ByteArray | Hex>(hexOrBytes: TValue, { dir }?: TrimOptions): TrimResult<TValue>;
/**
* @description Retrieves the size of the value (in bytes).
*
* @param value The value (hex or byte array) to retrieve the size of.
* @returns The size of the value (in bytes).
*/
declare function size(value: Hex | ByteArray): number;
type SliceResult<TValue extends ByteArray | Hex> = TValue extends Hex ? Hex : ByteArray;
/**
* @description Returns a section of the hex or byte array given a start/end bytes offset.
*
* @param value The hex or byte array to slice.
* @param start The start offset (in bytes).
* @param end The end offset (in bytes).
*/
declare function slice<TValue extends ByteArray | Hex>(value: TValue, start?: number, end?: number): SliceResult<TValue>;
/**
* @description Returns a section of the byte array given a start/end bytes offset.
*
* @param value The byte array to slice.
* @param start The start offset (in bytes).
* @param end The end offset (in bytes).
*/
declare function sliceBytes(value: ByteArray, start?: number, end?: number): Uint8Array;
/**
* @description Returns a section of the hex value given a start/end bytes offset.
*
* @param value The hex value to slice.
* @param start The start offset (in bytes).
* @param end The end offset (in bytes).
*/
declare function sliceHex(value_: Hex, start?: number, end?: number): string;
/**
* @description Picks out the keys from `value` that exist in the formatter.

@@ -128,141 +41,2 @@ */

/**
* @description Encodes a boolean into a hex string
*/
declare function boolToHex(value: boolean): Hex;
/**
* @description Encodes a bytes array into a hex string
*/
declare function bytesToHex(value: ByteArray): Hex;
/**
* @description Encodes a string, number, bigint, or ByteArray into a hex string
*/
declare function toHex(value: string | number | bigint | boolean | ByteArray): Hex;
type NumberToHexOpts$1 = {
signed?: boolean;
size: number;
} | {
signed?: never;
size?: never;
};
/**
* @description Encodes a number or bigint into a hex string
*/
declare function numberToHex(value_: number | bigint, opts?: NumberToHexOpts$1): Hex;
/**
* @description Encodes a UTF-8 string into a hex string
*/
declare function stringToHex(value: string): Hex;
/**
* @description Encodes a boolean into a byte array.
*/
declare function boolToBytes(value: boolean): Uint8Array;
/** @description Encodes a UTF-8 string, hex value, bigint, number or boolean to a byte array. */
declare function toBytes(value: string | bigint | number | boolean | Hex): ByteArray;
/**
* @description Encodes a hex string into a byte array.
*/
declare function hexToBytes(hex_: Hex): ByteArray;
/**
* @description Encodes a number into a byte array.
*/
declare function numberToBytes(value: bigint | number, opts?: NumberToHexOpts$1): Uint8Array;
/**
* @description Encodes a UTF-8 string into a byte array.
*/
declare function stringToBytes(value: string): ByteArray;
type RecursiveArray<T> = T | Array<RecursiveArray<T>>;
type To$1 = 'hex' | 'bytes';
type toRlpResponse<TTo extends To$1> = TTo extends 'bytes' ? ByteArray : TTo extends 'hex' ? Hex : never;
declare function toRlp<TTo extends To$1 = 'hex'>(hexOrBytes: RecursiveArray<Hex> | RecursiveArray<ByteArray>, to_?: TTo): toRlpResponse<TTo>;
type fromBytesResponse<TTo> = TTo extends 'string' ? string : TTo extends 'hex' ? Hex : TTo extends 'bigint' ? bigint : TTo extends 'number' ? number : TTo extends 'boolean' ? boolean : never;
/**
* @description Decodes a byte array into a UTF-8 string, hex value, number, bigint or boolean.
*/
declare function fromBytes<TTo extends 'string' | 'hex' | 'bigint' | 'number' | 'boolean'>(bytes: ByteArray, to: TTo): fromBytesResponse<TTo>;
/**
* @description Decodes a byte array into a bigint.
*/
declare function bytesToBigint(bytes: ByteArray): bigint;
/**
* @description Decodes a byte array into a boolean.
*/
declare function bytesToBool(bytes: ByteArray): boolean;
/**
* @description Decodes a byte array into a number.
*/
declare function bytesToNumber(bytes: ByteArray): number;
/**
* @description Decodes a byte array into a UTF-8 string.
*/
declare function bytesToString(bytes: ByteArray): string;
type fromHexResponse<TTo> = TTo extends 'string' ? string : TTo extends 'bigint' ? bigint : TTo extends 'number' ? number : TTo extends 'bytes' ? ByteArray : TTo extends 'boolean' ? boolean : never;
/**
* @description Decodes a hex string into a string, number, bigint, boolean, or bytes32 array.
*/
declare function fromHex<TTo extends 'string' | 'bigint' | 'number' | 'bytes' | 'boolean'>(hex: Hex, to: TTo): fromHexResponse<TTo>;
type HexToBigIntOpts = {
signed?: boolean;
};
/**
* @description Decodes a hex string into a bigint.
*/
declare function hexToBigInt(hex: Hex, opts?: HexToBigIntOpts): bigint;
/**
* @description Decodes a hex string into a boolean.
*/
declare function hexToBool(hex: Hex): boolean;
type NumberToHexOpts = HexToBigIntOpts;
/**
* @description Decodes a hex string into a number.
*/
declare function hexToNumber(hex: Hex, opts?: NumberToHexOpts): number;
/**
* @description Decodes a hex string into a UTF-8 string.
*/
declare function hexToString(hex: Hex): string;
type fromRlpResponse<TTo> = TTo extends 'bytes' ? ByteArray : TTo extends 'hex' ? Hex : never;
declare function fromRlp<TTo extends 'bytes' | 'hex'>(value: ByteArray | Hex, to: TTo): RecursiveArray<fromRlpResponse<TTo>>;
declare const getEventSignature: (event: EventDefinition) => `0x${string}`;
declare const getFunctionSignature: (fn: string) => `0x${string}`;
type To = 'hex' | 'bytes';
type Keccak256Hash<TTo extends To> = (TTo extends 'bytes' ? ByteArray : never) | (TTo extends 'hex' ? Hex : never);
declare function keccak256<TTo extends To = 'hex'>(value: ByteArray, to_?: TTo): Keccak256Hash<TTo>;
declare function stringify(value: unknown): string;
declare const etherUnits: {
gwei: number;
wei: number;
};
declare const gweiUnits: {
ether: number;
wei: number;
};
declare const weiUnits: {
ether: number;
gwei: number;
};
declare function formatEther(wei: bigint, unit?: 'wei' | 'gwei'): string;
declare function formatGwei(wei: bigint, unit?: 'wei'): string;
declare function formatUnit(value: bigint, decimals: number): string;
declare function parseUnit(value: `${number}`, decimals: number): bigint;
declare function parseEther(ether: `${number}`, unit?: 'wei' | 'gwei'): bigint;
declare function parseGwei(ether: `${number}`, unit?: 'wei'): bigint;
export { GetContractAddressOptions, GetCreate2AddressOptions, GetCreateAddressOptions, boolToBytes, boolToHex, buildRequest, bytesToBigint, bytesToBool, bytesToHex, bytesToNumber, bytesToString, etherUnits, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, formatEther, formatGwei, formatUnit, fromBytes, fromHex, fromRlp, getAddress, getContractAddress, getContractError, getCreate2Address, getCreateAddress, getEventSignature, getFunctionSignature, gweiUnits, hexToBigInt, hexToBool, hexToBytes, hexToNumber, hexToString, isAddress, isAddressEqual, isBytes, isHex, keccak256, numberToBytes, numberToHex, pad, padBytes, padHex, parseEther, parseGwei, parseUnit, size, slice, sliceBytes, sliceHex, stringToBytes, stringToHex, stringify, toBytes, toHex, toRlp, toRlpResponse, trim, weiUnits };
export { buildRequest, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType };

@@ -86,3 +86,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkW7KWIGWOjs = require('../chunk-W7KWIGWO.js');
var _chunkNYWN5V47js = require('../chunk-NYWN5V47.js');

@@ -173,3 +173,3 @@

exports.boolToBytes = _chunkW7KWIGWOjs.boolToBytes; exports.boolToHex = _chunkW7KWIGWOjs.boolToHex; exports.buildRequest = _chunkW7KWIGWOjs.buildRequest; exports.bytesToBigint = _chunkW7KWIGWOjs.bytesToBigint; exports.bytesToBool = _chunkW7KWIGWOjs.bytesToBool; exports.bytesToHex = _chunkW7KWIGWOjs.bytesToHex; exports.bytesToNumber = _chunkW7KWIGWOjs.bytesToNumber; exports.bytesToString = _chunkW7KWIGWOjs.bytesToString; exports.decodeAbi = _chunkW7KWIGWOjs.decodeAbi; exports.decodeErrorResult = _chunkW7KWIGWOjs.decodeErrorResult; exports.decodeEventLog = _chunkW7KWIGWOjs.decodeEventLog; exports.decodeFunctionData = _chunkW7KWIGWOjs.decodeFunctionData; exports.decodeFunctionResult = _chunkW7KWIGWOjs.decodeFunctionResult; exports.defineBlock = _chunkW7KWIGWOjs.defineBlock; exports.defineChain = _chunkW7KWIGWOjs.defineChain; exports.defineFormatter = _chunkW7KWIGWOjs.defineFormatter; exports.defineTransaction = _chunkW7KWIGWOjs.defineTransaction; exports.defineTransactionReceipt = _chunkW7KWIGWOjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkW7KWIGWOjs.defineTransactionRequest; exports.encodeAbi = _chunkW7KWIGWOjs.encodeAbi; exports.encodeDeployData = _chunkW7KWIGWOjs.encodeDeployData; exports.encodeErrorResult = _chunkW7KWIGWOjs.encodeErrorResult; exports.encodeEventTopics = _chunkW7KWIGWOjs.encodeEventTopics; exports.encodeFunctionData = _chunkW7KWIGWOjs.encodeFunctionData; exports.encodeFunctionResult = _chunkW7KWIGWOjs.encodeFunctionResult; exports.etherUnits = _chunkW7KWIGWOjs.etherUnits; exports.extract = _chunkW7KWIGWOjs.extract; exports.extractFunctionName = _chunkW7KWIGWOjs.extractFunctionName; exports.extractFunctionParams = _chunkW7KWIGWOjs.extractFunctionParams; exports.extractFunctionParts = _chunkW7KWIGWOjs.extractFunctionParts; exports.extractFunctionType = _chunkW7KWIGWOjs.extractFunctionType; exports.format = _chunkW7KWIGWOjs.format; exports.formatAbiItem = _chunkW7KWIGWOjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkW7KWIGWOjs.formatAbiItemWithArgs; exports.formatBlock = _chunkW7KWIGWOjs.formatBlock; exports.formatEther = _chunkW7KWIGWOjs.formatEther; exports.formatGwei = _chunkW7KWIGWOjs.formatGwei; exports.formatTransaction = _chunkW7KWIGWOjs.formatTransaction; exports.formatTransactionRequest = _chunkW7KWIGWOjs.formatTransactionRequest; exports.formatUnit = _chunkW7KWIGWOjs.formatUnit; exports.fromBytes = _chunkW7KWIGWOjs.fromBytes; exports.fromHex = _chunkW7KWIGWOjs.fromHex; exports.fromRlp = _chunkW7KWIGWOjs.fromRlp; exports.getAbiItem = _chunkW7KWIGWOjs.getAbiItem; exports.getAddress = _chunkW7KWIGWOjs.getAddress; exports.getContractAddress = _chunkW7KWIGWOjs.getContractAddress; exports.getContractError = _chunkW7KWIGWOjs.getContractError; exports.getCreate2Address = _chunkW7KWIGWOjs.getCreate2Address; exports.getCreateAddress = _chunkW7KWIGWOjs.getCreateAddress; exports.getEventSignature = _chunkW7KWIGWOjs.getEventSignature; exports.getFunctionSignature = _chunkW7KWIGWOjs.getFunctionSignature; exports.gweiUnits = _chunkW7KWIGWOjs.gweiUnits; exports.hexToBigInt = _chunkW7KWIGWOjs.hexToBigInt; exports.hexToBool = _chunkW7KWIGWOjs.hexToBool; exports.hexToBytes = _chunkW7KWIGWOjs.hexToBytes; exports.hexToNumber = _chunkW7KWIGWOjs.hexToNumber; exports.hexToString = _chunkW7KWIGWOjs.hexToString; exports.isAddress = _chunkW7KWIGWOjs.isAddress; exports.isAddressEqual = _chunkW7KWIGWOjs.isAddressEqual; exports.isBytes = _chunkW7KWIGWOjs.isBytes; exports.isHex = _chunkW7KWIGWOjs.isHex; exports.keccak256 = _chunkW7KWIGWOjs.keccak256; exports.numberToBytes = _chunkW7KWIGWOjs.numberToBytes; exports.numberToHex = _chunkW7KWIGWOjs.numberToHex; exports.pad = _chunkW7KWIGWOjs.pad; exports.padBytes = _chunkW7KWIGWOjs.padBytes; exports.padHex = _chunkW7KWIGWOjs.padHex; exports.parseEther = _chunkW7KWIGWOjs.parseEther; exports.parseGwei = _chunkW7KWIGWOjs.parseGwei; exports.parseUnit = _chunkW7KWIGWOjs.parseUnit; exports.rpc = _chunkW7KWIGWOjs.rpc; exports.size = _chunkW7KWIGWOjs.size; exports.slice = _chunkW7KWIGWOjs.slice; exports.sliceBytes = _chunkW7KWIGWOjs.sliceBytes; exports.sliceHex = _chunkW7KWIGWOjs.sliceHex; exports.stringToBytes = _chunkW7KWIGWOjs.stringToBytes; exports.stringToHex = _chunkW7KWIGWOjs.stringToHex; exports.stringify = _chunkW7KWIGWOjs.stringify; exports.toBytes = _chunkW7KWIGWOjs.toBytes; exports.toHex = _chunkW7KWIGWOjs.toHex; exports.toRlp = _chunkW7KWIGWOjs.toRlp; exports.transactionType = _chunkW7KWIGWOjs.transactionType; exports.trim = _chunkW7KWIGWOjs.trim; exports.weiUnits = _chunkW7KWIGWOjs.weiUnits;
exports.boolToBytes = _chunkNYWN5V47js.boolToBytes; exports.boolToHex = _chunkNYWN5V47js.boolToHex; exports.buildRequest = _chunkNYWN5V47js.buildRequest; exports.bytesToBigint = _chunkNYWN5V47js.bytesToBigint; exports.bytesToBool = _chunkNYWN5V47js.bytesToBool; exports.bytesToHex = _chunkNYWN5V47js.bytesToHex; exports.bytesToNumber = _chunkNYWN5V47js.bytesToNumber; exports.bytesToString = _chunkNYWN5V47js.bytesToString; exports.decodeAbi = _chunkNYWN5V47js.decodeAbi; exports.decodeErrorResult = _chunkNYWN5V47js.decodeErrorResult; exports.decodeEventLog = _chunkNYWN5V47js.decodeEventLog; exports.decodeFunctionData = _chunkNYWN5V47js.decodeFunctionData; exports.decodeFunctionResult = _chunkNYWN5V47js.decodeFunctionResult; exports.defineBlock = _chunkNYWN5V47js.defineBlock; exports.defineChain = _chunkNYWN5V47js.defineChain; exports.defineFormatter = _chunkNYWN5V47js.defineFormatter; exports.defineTransaction = _chunkNYWN5V47js.defineTransaction; exports.defineTransactionReceipt = _chunkNYWN5V47js.defineTransactionReceipt; exports.defineTransactionRequest = _chunkNYWN5V47js.defineTransactionRequest; exports.encodeAbi = _chunkNYWN5V47js.encodeAbi; exports.encodeDeployData = _chunkNYWN5V47js.encodeDeployData; exports.encodeErrorResult = _chunkNYWN5V47js.encodeErrorResult; exports.encodeEventTopics = _chunkNYWN5V47js.encodeEventTopics; exports.encodeFunctionData = _chunkNYWN5V47js.encodeFunctionData; exports.encodeFunctionResult = _chunkNYWN5V47js.encodeFunctionResult; exports.etherUnits = _chunkNYWN5V47js.etherUnits; exports.extract = _chunkNYWN5V47js.extract; exports.extractFunctionName = _chunkNYWN5V47js.extractFunctionName; exports.extractFunctionParams = _chunkNYWN5V47js.extractFunctionParams; exports.extractFunctionParts = _chunkNYWN5V47js.extractFunctionParts; exports.extractFunctionType = _chunkNYWN5V47js.extractFunctionType; exports.format = _chunkNYWN5V47js.format; exports.formatAbiItem = _chunkNYWN5V47js.formatAbiItem; exports.formatAbiItemWithArgs = _chunkNYWN5V47js.formatAbiItemWithArgs; exports.formatBlock = _chunkNYWN5V47js.formatBlock; exports.formatEther = _chunkNYWN5V47js.formatEther; exports.formatGwei = _chunkNYWN5V47js.formatGwei; exports.formatTransaction = _chunkNYWN5V47js.formatTransaction; exports.formatTransactionRequest = _chunkNYWN5V47js.formatTransactionRequest; exports.formatUnit = _chunkNYWN5V47js.formatUnit; exports.fromBytes = _chunkNYWN5V47js.fromBytes; exports.fromHex = _chunkNYWN5V47js.fromHex; exports.fromRlp = _chunkNYWN5V47js.fromRlp; exports.getAbiItem = _chunkNYWN5V47js.getAbiItem; exports.getAddress = _chunkNYWN5V47js.getAddress; exports.getContractAddress = _chunkNYWN5V47js.getContractAddress; exports.getContractError = _chunkNYWN5V47js.getContractError; exports.getCreate2Address = _chunkNYWN5V47js.getCreate2Address; exports.getCreateAddress = _chunkNYWN5V47js.getCreateAddress; exports.getEventSignature = _chunkNYWN5V47js.getEventSignature; exports.getFunctionSignature = _chunkNYWN5V47js.getFunctionSignature; exports.gweiUnits = _chunkNYWN5V47js.gweiUnits; exports.hexToBigInt = _chunkNYWN5V47js.hexToBigInt; exports.hexToBool = _chunkNYWN5V47js.hexToBool; exports.hexToBytes = _chunkNYWN5V47js.hexToBytes; exports.hexToNumber = _chunkNYWN5V47js.hexToNumber; exports.hexToString = _chunkNYWN5V47js.hexToString; exports.isAddress = _chunkNYWN5V47js.isAddress; exports.isAddressEqual = _chunkNYWN5V47js.isAddressEqual; exports.isBytes = _chunkNYWN5V47js.isBytes; exports.isHex = _chunkNYWN5V47js.isHex; exports.keccak256 = _chunkNYWN5V47js.keccak256; exports.numberToBytes = _chunkNYWN5V47js.numberToBytes; exports.numberToHex = _chunkNYWN5V47js.numberToHex; exports.pad = _chunkNYWN5V47js.pad; exports.padBytes = _chunkNYWN5V47js.padBytes; exports.padHex = _chunkNYWN5V47js.padHex; exports.parseEther = _chunkNYWN5V47js.parseEther; exports.parseGwei = _chunkNYWN5V47js.parseGwei; exports.parseUnit = _chunkNYWN5V47js.parseUnit; exports.rpc = _chunkNYWN5V47js.rpc; exports.size = _chunkNYWN5V47js.size; exports.slice = _chunkNYWN5V47js.slice; exports.sliceBytes = _chunkNYWN5V47js.sliceBytes; exports.sliceHex = _chunkNYWN5V47js.sliceHex; exports.stringToBytes = _chunkNYWN5V47js.stringToBytes; exports.stringToHex = _chunkNYWN5V47js.stringToHex; exports.stringify = _chunkNYWN5V47js.stringify; exports.toBytes = _chunkNYWN5V47js.toBytes; exports.toHex = _chunkNYWN5V47js.toHex; exports.toRlp = _chunkNYWN5V47js.toRlp; exports.transactionType = _chunkNYWN5V47js.transactionType; exports.trim = _chunkNYWN5V47js.trim; exports.weiUnits = _chunkNYWN5V47js.weiUnits;
//# sourceMappingURL=index.js.map

@@ -1,42 +0,8 @@

import { C as Chain, A as Address, H as Hex, B as ByteArray } from './chain-42de87e5.js';
import { W as WalletClient } from './createWalletClient-4df88244.js';
import { a as WalletPermission, b as WatchAssetParams } from './eip1193-617a05ae.js';
export { F as FormattedTransactionRequest, S as SendTransactionArgs, a as SendTransactionResponse, s as sendTransaction } from './sendTransaction-7ce442c0.js';
export { A as AddChainArgs, F as FormattedTransactionRequest, n as GetAccountsResponse, G as GetPermissionsResponse, R as RequestAccountsResponse, o as RequestPermissionsResponse, S as SendTransactionArgs, p as SendTransactionResponse, q as SignMessageArgs, t as SignMessageResponse, u as SwitchChainArgs, v as WatchAssetArgs, x as WatchAssetResponse, g as addChain, h as getAccounts, i as getPermissions, r as requestAccounts, j as requestPermissions, s as sendTransaction, k as signMessage, l as switchChain, m as watchAsset } from './wallet-9b1c6905.js';
import 'abitype';
import './chain-4d46a747.js';
import '@wagmi/chains';
import './createClient-6689596e.js';
import './transactionRequest-f437b4ba.js';
declare function addChain(client: WalletClient, chain: Chain): Promise<void>;
declare function getAccounts(client: WalletClient): Promise<`0x${string}`[]>;
type GetPermissionsResponse = WalletPermission[];
declare function getPermissions(client: WalletClient): Promise<WalletPermission[]>;
declare function requestAccounts(client: WalletClient): Promise<`0x${string}`[]>;
type RequestPermissionsArgs = {
eth_accounts: Record<string, any>;
} & {
[key: string]: Record<string, any>;
};
type RequestPermissionsResponse = WalletPermission[];
declare function requestPermissions(client: WalletClient, permissions: RequestPermissionsArgs): Promise<WalletPermission[]>;
type SignMessageArgs = {
from: Address;
data: Hex | ByteArray;
};
type SignMessageResponse = Hex;
declare function signMessage(client: WalletClient, { from, data: data_ }: SignMessageArgs): Promise<SignMessageResponse>;
type SwitchChainArgs = {
id: Chain['id'];
};
declare function switchChain(client: WalletClient, { id }: SwitchChainArgs): Promise<void>;
type WatchAssetArgs = WatchAssetParams;
type WatchAssetResponse = boolean;
declare function watchAsset(client: WalletClient, params: WatchAssetParams): Promise<WatchAssetResponse>;
export { GetPermissionsResponse, RequestPermissionsResponse, SignMessageArgs, SignMessageResponse, SwitchChainArgs, WatchAssetArgs, WatchAssetResponse, addChain, getAccounts, getPermissions, requestAccounts, requestPermissions, signMessage, switchChain, watchAsset };
import 'ethers@6/types/providers';
import './eip1193-f09a55af.js';
import './createClient-5d5c14d6.js';
import './transactionRequest-44c539b4.js';

@@ -11,4 +11,4 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunk2DSFM32Pjs = require('./chunk-2DSFM32P.js');
require('./chunk-W7KWIGWO.js');
var _chunkJJ4FDDDWjs = require('./chunk-JJ4FDDDW.js');
require('./chunk-NYWN5V47.js');

@@ -24,3 +24,3 @@

exports.addChain = _chunk2DSFM32Pjs.addChain; exports.getAccounts = _chunk2DSFM32Pjs.getAccounts; exports.getPermissions = _chunk2DSFM32Pjs.getPermissions; exports.requestAccounts = _chunk2DSFM32Pjs.requestAccounts; exports.requestPermissions = _chunk2DSFM32Pjs.requestPermissions; exports.sendTransaction = _chunk2DSFM32Pjs.sendTransaction; exports.signMessage = _chunk2DSFM32Pjs.signMessage; exports.switchChain = _chunk2DSFM32Pjs.switchChain; exports.watchAsset = _chunk2DSFM32Pjs.watchAsset;
exports.addChain = _chunkJJ4FDDDWjs.addChain; exports.getAccounts = _chunkJJ4FDDDWjs.getAccounts; exports.getPermissions = _chunkJJ4FDDDWjs.getPermissions; exports.requestAccounts = _chunkJJ4FDDDWjs.requestAccounts; exports.requestPermissions = _chunkJJ4FDDDWjs.requestPermissions; exports.sendTransaction = _chunkJJ4FDDDWjs.sendTransaction; exports.signMessage = _chunkJJ4FDDDWjs.signMessage; exports.switchChain = _chunkJJ4FDDDWjs.switchChain; exports.watchAsset = _chunkJJ4FDDDWjs.watchAsset;
//# sourceMappingURL=wallet.js.map

@@ -1,4 +0,6 @@

import { R as Requests, E as Events } from './eip1193-617a05ae.js';
import './chain-42de87e5.js';
import { R as Requests, E as Events } from './eip1193-f09a55af.js';
import './chain-4d46a747.js';
import '@wagmi/chains';
import 'abitype';
import 'ethers@6/types/providers';

@@ -5,0 +7,0 @@ type WindowProvider = Requests & Events;

@@ -12,3 +12,3 @@ {

},
"version": "0.0.1-alpha.27",
"version": "0.0.1-alpha.28",
"files": [

@@ -15,0 +15,0 @@ "/dist",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc