viem 0.0.1-alpha.14 → 0.0.1-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chains.js +5 -5
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-KB6CBNKW.mjs → chunk-2HENAFQN.mjs} +16 -6
- package/dist/{chunk-E7IQYTLV.js → chunk-EMQSYKNY.js} +11 -11
- package/dist/{chunk-VUNR7KGG.js → chunk-HTYEJEWI.js} +145 -531
- package/dist/chunk-IMYI7Z6M.js +255 -0
- package/dist/chunk-KGXH5DYI.js +152 -0
- package/dist/chunk-NYXBQHNJ.mjs +255 -0
- package/dist/chunk-PHAG5KUF.mjs +152 -0
- package/dist/{chunk-DUNJAMH5.mjs → chunk-PPDHFNFM.mjs} +94 -480
- package/dist/{chunk-6Z62LPKB.js → chunk-QMLDI5JU.js} +16 -6
- package/dist/{chunk-5TCPFLFT.mjs → chunk-SX7GPOCZ.mjs} +1 -1
- package/dist/clients/index.d.ts +6 -3
- package/dist/clients/index.js +3 -3
- package/dist/clients/index.mjs +2 -2
- package/dist/createClient-cd948138.d.ts +62 -0
- package/dist/createPublicClient-989a0556.d.ts +19 -0
- package/dist/createTestClient-81507f58.d.ts +34 -0
- package/dist/createWalletClient-43f801b9.d.ts +30 -0
- package/dist/{eip1193-c001fcd5.d.ts → eip1193-4330b722.d.ts} +1 -1
- package/dist/index.d.ts +13 -6
- package/dist/index.js +8 -4
- package/dist/index.mjs +33 -29
- package/dist/{parseGwei-21f98a29.d.ts → parseGwei-f2d23de6.d.ts} +1 -1
- package/dist/public.d.ts +12 -0
- package/dist/public.js +58 -0
- package/dist/public.mjs +58 -0
- package/dist/sendTransaction-7a9d241a.d.ts +13 -0
- package/dist/stopImpersonatingAccount-8113150e.d.ts +156 -0
- package/dist/test.d.ts +7 -0
- package/dist/test.js +59 -0
- package/dist/test.mjs +59 -0
- package/dist/{transactionRequest-1d4e4385.d.ts → transactionReceipt-5d332aab.d.ts} +4 -32
- package/dist/transactionRequest-327eb7c2.d.ts +33 -0
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.d.ts +9 -0
- package/dist/wallet.js +23 -0
- package/dist/wallet.mjs +23 -0
- package/dist/watchAsset-0088384c.d.ts +39 -0
- package/dist/{stopImpersonatingAccount-fcc5a678.d.ts → watchPendingTransactions-670a7ca3.d.ts} +7 -197
- package/dist/{webSocket-3385e295.d.ts → webSocket-9a3b0b26.d.ts} +1 -1
- package/dist/window.d.ts +1 -1
- package/package.json +16 -6
- package/actions/package.json +0 -4
- package/dist/actions/index.d.ts +0 -8
- package/dist/actions/index.js +0 -129
- package/dist/actions/index.mjs +0 -129
- package/dist/createWalletClient-3f9fa8b6.d.ts +0 -130
package/dist/clients/index.d.ts
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
export { C as Client, a as ClientConfig,
|
2
|
-
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from '../webSocket-
|
1
|
+
export { C as Client, a as ClientConfig, T as Transport, b as TransportConfig, c as createClient, d as createTransport } from '../createClient-cd948138.js';
|
2
|
+
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from '../webSocket-9a3b0b26.js';
|
3
|
+
export { P as PublicClient, a as PublicClientConfig, c as createPublicClient } from '../createPublicClient-989a0556.js';
|
4
|
+
export { T as TestClient, a as TestClientConfig, c as createTestClient } from '../createTestClient-81507f58.js';
|
5
|
+
export { W as WalletClient, a as WalletClientConfig, c as createWalletClient } from '../createWalletClient-43f801b9.js';
|
3
6
|
import '../chains.js';
|
4
7
|
import '../rpc-b77c5aee.js';
|
5
8
|
import '@wagmi/chains';
|
6
|
-
import '../eip1193-
|
9
|
+
import '../eip1193-4330b722.js';
|
7
10
|
import '../rpc-26932bae.js';
|
package/dist/clients/index.js
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
var
|
12
|
-
require('../chunk-
|
11
|
+
var _chunkEMQSYKNYjs = require('../chunk-EMQSYKNY.js');
|
12
|
+
require('../chunk-QMLDI5JU.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -20,4 +20,4 @@ require('../chunk-6Z62LPKB.js');
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
exports.createClient =
|
23
|
+
exports.createClient = _chunkEMQSYKNYjs.createClient; exports.createPublicClient = _chunkEMQSYKNYjs.createPublicClient; exports.createTestClient = _chunkEMQSYKNYjs.createTestClient; exports.createTransport = _chunkEMQSYKNYjs.createTransport; exports.createWalletClient = _chunkEMQSYKNYjs.createWalletClient; exports.custom = _chunkEMQSYKNYjs.custom; exports.fallback = _chunkEMQSYKNYjs.fallback; exports.http = _chunkEMQSYKNYjs.http; exports.webSocket = _chunkEMQSYKNYjs.webSocket;
|
package/dist/clients/index.mjs
CHANGED
@@ -0,0 +1,62 @@
|
|
1
|
+
import { Chain } from './chains.js';
|
2
|
+
import { R as Requests } from './eip1193-4330b722.js';
|
3
|
+
|
4
|
+
type BaseRpcRequests = {
|
5
|
+
request(...args: any): Promise<any>;
|
6
|
+
};
|
7
|
+
type TransportConfig<TType extends string = string, TRequests extends BaseRpcRequests['request'] = Requests['request']> = {
|
8
|
+
/** The name of the transport. */
|
9
|
+
name: string;
|
10
|
+
/** The key of the transport. */
|
11
|
+
key: string;
|
12
|
+
/** The JSON-RPC request function that matches the EIP-1193 request spec. */
|
13
|
+
request: TRequests;
|
14
|
+
/** The type of the transport. */
|
15
|
+
type: TType;
|
16
|
+
};
|
17
|
+
type Transport<TType extends string = string, TRpcAttributes = Record<string, any>> = <TChain extends Chain = Chain>({ chain, }: {
|
18
|
+
chain?: TChain;
|
19
|
+
}) => {
|
20
|
+
config: TransportConfig<TType>;
|
21
|
+
value?: TRpcAttributes;
|
22
|
+
};
|
23
|
+
/**
|
24
|
+
* @description Creates an transport intended to be used with a client.
|
25
|
+
*/
|
26
|
+
declare function createTransport<TType extends string = string, TRpcAttributes = any>(config: TransportConfig<TType>, value?: TRpcAttributes): ReturnType<Transport<TType, TRpcAttributes>>;
|
27
|
+
|
28
|
+
type Client<TTransport extends Transport = Transport, TChain extends Chain = Chain, TRequests extends BaseRpcRequests = Requests> = {
|
29
|
+
/** Chain for the client. */
|
30
|
+
chain?: TChain;
|
31
|
+
/** A key for the client. */
|
32
|
+
key: string;
|
33
|
+
/** A name for the client. */
|
34
|
+
name: string;
|
35
|
+
/** Frequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds. */
|
36
|
+
pollingInterval: number;
|
37
|
+
/** Request function wrapped with friendly error handling */
|
38
|
+
request: TRequests['request'];
|
39
|
+
/** The RPC transport (http, webSocket, custom, etc) */
|
40
|
+
transport: ReturnType<TTransport>['config'] & ReturnType<TTransport>['value'];
|
41
|
+
/** The type of client. */
|
42
|
+
type: string;
|
43
|
+
/** A unique ID for the client. */
|
44
|
+
uid: string;
|
45
|
+
};
|
46
|
+
type ClientConfig<TTransport extends Transport = Transport, TChain extends Chain = Chain, TRequests extends BaseRpcRequests = Requests> = Partial<Pick<Client<TTransport, TChain, TRequests>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'type'>> & {
|
47
|
+
transport: TTransport;
|
48
|
+
};
|
49
|
+
/**
|
50
|
+
* @description Creates a base RPC client with the given transport.
|
51
|
+
*
|
52
|
+
* - Intended to be used as a base for other RPC clients.
|
53
|
+
* - Has access to _all_ EIP-1474 RPC methods.
|
54
|
+
*
|
55
|
+
* @example
|
56
|
+
* import { mainnet } from 'viem/chains'
|
57
|
+
* import { createClient, http } from 'viem/clients'
|
58
|
+
* const client = createClient(http({ chain: mainnet }))
|
59
|
+
*/
|
60
|
+
declare function createClient<TTransport extends Transport, TChain extends Chain, TRequests extends BaseRpcRequests>({ chain, key, name, pollingInterval, transport, type, }: ClientConfig<TTransport, TChain, TRequests>): Client<TTransport, TChain, TRequests>;
|
61
|
+
|
62
|
+
export { BaseRpcRequests as B, Client as C, Transport as T, ClientConfig as a, TransportConfig as b, createClient as c, createTransport as d };
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Chain } from './chains.js';
|
2
|
+
import { P as PublicRequests } from './eip1193-4330b722.js';
|
3
|
+
import { T as Transport, a as ClientConfig, C as Client } from './createClient-cd948138.js';
|
4
|
+
|
5
|
+
type PublicClientConfig<TTransport extends Transport = Transport, TChain extends Chain = Chain> = Pick<ClientConfig<TTransport, TChain>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'>;
|
6
|
+
type PublicClient<TTransport extends Transport = Transport, TChain extends Chain = Chain> = Client<TTransport, TChain, PublicRequests>;
|
7
|
+
/**
|
8
|
+
* @description Creates a public client with a given transport.
|
9
|
+
*
|
10
|
+
* - Only has access to "public" EIP-1474 RPC methods (ie. `eth_blockNumber`, etc).
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* import { mainnet } from 'viem/chains'
|
14
|
+
* import { createPublicClient, http } from 'viem/clients'
|
15
|
+
* const client = createPublicClient(http({ chain: mainnet }))
|
16
|
+
*/
|
17
|
+
declare function createPublicClient<TTransport extends Transport, TChain extends Chain>({ chain, key, name, transport, pollingInterval, }: PublicClientConfig<TTransport, TChain>): PublicClient<TTransport, TChain>;
|
18
|
+
|
19
|
+
export { PublicClient as P, PublicClientConfig as a, createPublicClient as c };
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { T as TestRequests } from './eip1193-4330b722.js';
|
2
|
+
import { T as Transport, a as ClientConfig, C as Client } from './createClient-cd948138.js';
|
3
|
+
import { Chain } from './chains.js';
|
4
|
+
|
5
|
+
type TestClientModes = 'anvil' | 'hardhat';
|
6
|
+
type TestClientConfig<TTransport extends Transport = Transport, TChain extends Chain = Chain, TMode extends TestClientModes = TestClientModes> = {
|
7
|
+
chain?: ClientConfig<TTransport, TChain>['chain'];
|
8
|
+
/** The key of the client. */
|
9
|
+
key?: ClientConfig['key'];
|
10
|
+
/** Mode of the test client. Available: "anvil" | "hardhat" */
|
11
|
+
mode: TMode;
|
12
|
+
/** The name of the client. */
|
13
|
+
name?: ClientConfig['name'];
|
14
|
+
/** Frequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds. */
|
15
|
+
pollingInterval?: ClientConfig['pollingInterval'];
|
16
|
+
transport: ClientConfig<TTransport, TChain>['transport'];
|
17
|
+
};
|
18
|
+
type TestClient<TTransport extends Transport = Transport, TChain extends Chain = Chain, TMode extends TestClientModes = TestClientModes> = Client<TTransport, TChain, TestRequests<TMode>> & {
|
19
|
+
mode: TMode;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* @description Creates a test client with a given transport.
|
23
|
+
*
|
24
|
+
* - Only has access to "test" RPC methods (ie. `anvil_setBalance`,
|
25
|
+
* `evm_mine`, etc).
|
26
|
+
*
|
27
|
+
* @example
|
28
|
+
* import { createTestClient, http } from 'viem'
|
29
|
+
* import { local } from 'viem/chains'
|
30
|
+
* const client = createTestClient({ chain: local, mode: 'anvil', transport: http() })
|
31
|
+
*/
|
32
|
+
declare function createTestClient<TTransport extends Transport, TChain extends Chain, TMode extends TestClientModes>({ chain, key, name, mode, pollingInterval, transport, }: TestClientConfig<TTransport, TChain, TMode>): TestClient<TTransport, TChain, TMode>;
|
33
|
+
|
34
|
+
export { TestClient as T, TestClientConfig as a, createTestClient as c };
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { S as SignableRequests, W as WalletRequests } from './eip1193-4330b722.js';
|
2
|
+
import { T as Transport, a as ClientConfig, C as Client } from './createClient-cd948138.js';
|
3
|
+
import { Chain } from './chains.js';
|
4
|
+
|
5
|
+
type WalletClientConfig<TTransport extends Transport = Transport, TChain extends Chain = Chain> = {
|
6
|
+
chain?: ClientConfig<TTransport, TChain>['chain'];
|
7
|
+
/** The key of the Wallet Client. */
|
8
|
+
key?: ClientConfig['key'];
|
9
|
+
/** The name of the Wallet Client. */
|
10
|
+
name?: ClientConfig['name'];
|
11
|
+
/** Frequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds. */
|
12
|
+
pollingInterval?: ClientConfig['pollingInterval'];
|
13
|
+
transport: ClientConfig<TTransport, TChain>['transport'];
|
14
|
+
};
|
15
|
+
type WalletClient<TTransport extends Transport = Transport, TChain extends Chain = Chain> = Client<TTransport, TChain, SignableRequests & WalletRequests>;
|
16
|
+
/**
|
17
|
+
* @description Creates a wallet client with a given transport.
|
18
|
+
*
|
19
|
+
* - Only has access to "wallet" & "signable" EIP-1474 RPC methods
|
20
|
+
* (ie. `eth_sendTransaction`, `eth_requestAccounts`, etc).
|
21
|
+
*
|
22
|
+
* @example
|
23
|
+
* import { createWalletClient, custom } from 'viem'
|
24
|
+
* const client = createWalletClient(
|
25
|
+
* custom(window.ethereum)
|
26
|
+
* )
|
27
|
+
*/
|
28
|
+
declare function createWalletClient<TTransport extends Transport, TChain extends Chain>({ transport, key, name, pollingInterval, }: WalletClientConfig<TTransport, TChain>): WalletClient<TTransport, TChain>;
|
29
|
+
|
30
|
+
export { WalletClient as W, WalletClientConfig as a, createWalletClient as c };
|
@@ -984,4 +984,4 @@ type WalletRequests = {
|
|
984
984
|
};
|
985
985
|
type Requests = PublicRequests & SignableRequests & WalletRequests;
|
986
986
|
|
987
|
-
export { Events as E, PublicRequests as P, Requests as R, SignableRequests as S, TestRequests as T,
|
987
|
+
export { Events as E, PublicRequests as P, Requests as R, SignableRequests as S, TestRequests as T, WalletRequests as W, WalletPermission as a, WatchAssetParams as b };
|
package/dist/index.d.ts
CHANGED
@@ -1,14 +1,21 @@
|
|
1
|
-
export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DeployContractArgs, g as DeployContractResponse,
|
2
|
-
export {
|
3
|
-
export { C as
|
1
|
+
export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DeployContractArgs, g as DeployContractResponse, E as EstimateGasArgs, f as EstimateGasResponse, G as GetBalanceArgs, h as GetBalanceResponse, i as GetBlockArgs, j as GetBlockNumberArgs, k as GetBlockNumberResponse, l as GetBlockResponse, m as GetBlockTransactionCountArgs, n as GetBlockTransactionCountResponse, o as GetBytecodeArgs, p as GetBytecodeResponse, q as GetFeeHistoryArgs, r as GetFeeHistoryResponse, s as GetFilterChangesArgs, t as GetFilterChangesResponse, u as GetFilterLogsArgs, v as GetFilterLogsResponse, w as GetGasPriceResponse, x as GetTransactionArgs, y as GetTransactionConfirmationsArgs, z as GetTransactionConfirmationsResponse, A as GetTransactionCountArgs, B as GetTransactionCountResponse, H as GetTransactionReceiptArgs, I as GetTransactionReceiptResponse, F as GetTransactionResponse, O as OnBlock, J as OnBlockNumber, K as OnBlockNumberResponse, L as OnBlockResponse, M as OnTransactions, N as OnTransactionsResponse, U as UninstallFilterArgs, P as UninstallFilterResponse, W as WaitForTransactionReceiptArgs, Q as WaitForTransactionReceiptResponse, R as WatchBlockNumberArgs, S as WatchBlocksArgs, T as WatchPendingTransactionsArgs, V as call, X as callContract, Y as createBlockFilter, Z as createPendingTransactionFilter, _ as deployContract, $ as estimateGas, a0 as getBalance, a1 as getBlock, a2 as getBlockNumber, a3 as getBlockTransactionCount, a4 as getBytecode, a5 as getChainId, a6 as getFeeHistory, a7 as getFilterChanges, a8 as getFilterLogs, a9 as getGasPrice, aa as getTransaction, ab as getTransactionConfirmations, ac as getTransactionCount, ad as getTransactionReceipt, ae as uninstallFilter, af as waitForTransactionReceipt, ag as watchBlockNumber, ah as watchBlocks, ai as watchPendingTransactions } from './watchPendingTransactions-670a7ca3.js';
|
2
|
+
export { D as DropTransactionArgs, I as ImpersonateAccountArgs, a as IncreaseTimeArgs, M as MineArgs, R as ResetArgs, b as RevertArgs, S as SendUnsignedTransactionArgs, c as SendUnsignedTransactionResponse, d as SetBalanceArgs, e as SetBlockGasLimitArgs, j as SetBlockTimestampIntervalArgs, f as SetCodeArgs, g as SetCoinbaseArgs, h as SetIntervalMiningArgs, i as SetMinGasPriceArgs, l as SetNextBlockBaseFeePerGasArgs, k as SetNextBlockTimestampArgs, m as SetNonceArgs, n as SetStorageAtArgs, o as StopImpersonatingAccountArgs, p as dropTransaction, q as getAutomine, r as getTxpoolContent, s as getTxpoolStatus, t as impersonateAccount, u as increaseTime, v as inspectTxpool, w as mine, x as removeBlockTimestampInterval, y as reset, z as revert, A as sendUnsignedTransaction, B as setAutomine, C as setBalance, E as setBlockGasLimit, F as setBlockTimestampInterval, G as setCode, H as setCoinbase, J as setIntervalMining, K as setLoggingEnabled, L as setMinGasPrice, N as setNextBlockBaseFeePerGas, O as setNextBlockTimestamp, P as setNonce, Q as setStorageAt, T as snapshot, U as stopImpersonatingAccount } from './stopImpersonatingAccount-8113150e.js';
|
3
|
+
export { C as Client, a as ClientConfig, T as Transport, b as TransportConfig, c as createClient, d as createTransport } from './createClient-cd948138.js';
|
4
|
+
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from './webSocket-9a3b0b26.js';
|
5
|
+
export { P as PublicClient, a as PublicClientConfig, c as createPublicClient } from './createPublicClient-989a0556.js';
|
6
|
+
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './createTestClient-81507f58.js';
|
7
|
+
export { W as WalletClient, a as WalletClientConfig, c as createWalletClient } from './createWalletClient-43f801b9.js';
|
8
|
+
export { G as GetPermissionsResponse, R as RequestPermissionsResponse, S as SignMessageArgs, a as SignMessageResponse, b as SwitchChainArgs, W as WatchAssetArgs, c as WatchAssetResponse, d as addChain, g as getAccounts, e as getPermissions, r as requestAccounts, f as requestPermissions, s as signMessage, h as switchChain, w as watchAsset } from './watchAsset-0088384c.js';
|
9
|
+
export { S as SendTransactionArgs, a as SendTransactionResponse, s as sendTransaction } from './sendTransaction-7a9d241a.js';
|
4
10
|
import { H as Hex, A as Address, a as Hash, B as ByteArray, b as BlockTag } from './rpc-b77c5aee.js';
|
5
11
|
export { c as AccessList, A as Address, d as Block, f as BlockIdentifier, h as BlockNumber, b as BlockTag, B as ByteArray, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, 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, u as RpcUncle, D as Transaction, E as TransactionBase, G as TransactionEIP1559, I as TransactionEIP2930, J as TransactionLegacy, T as TransactionReceipt, v as TransactionRequest, x as TransactionRequestBase, y as TransactionRequestEIP1559, z as TransactionRequestEIP2930, C as TransactionRequestLegacy, U as Uncle, e as etherUnits, g as gweiUnits, t as transactionType, w as weiUnits } from './rpc-b77c5aee.js';
|
6
|
-
export { A as AbiItem, F as FormattedBlock, a as FormattedTransaction,
|
7
|
-
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeFunctionDataArgs, c as DecodeFunctionResultArgs, d as DecodeFunctionResultResponse, E as EncodeAbiArgs, e as EncodeDeployDataArgs, f as EncodeErrorResultArgs, g as EncodeEventTopicsArgs, h as EncodeFunctionDataArgs, i as EncodeFunctionResultArgs, l as EncodeRlpResponse, G as GetContractAddressOptions, k as GetCreate2AddressOptions, j as GetCreateAddressOptions, o as boolToBytes, p as boolToHex, q as bytesToBigint, r as bytesToBool, m as bytesToHex, s as bytesToNumber, n as bytesToString, t as decodeAbi, u as decodeBytes, v as decodeErrorResult, w as decodeFunctionData, x as decodeFunctionResult, y as decodeHex, z as decodeRlp, A as encodeAbi, B as encodeBytes, C as encodeDeployData, F as encodeErrorResult, H as encodeEventTopics, I as encodeFunctionData, J as encodeFunctionResult, K as encodeHex, L as encodeRlp, S as formatEther, a7 as formatGwei, a8 as formatUnit, M as getAddress, N as getContractAddress, P as getCreate2Address, O as getCreateAddress, Q as getEventSignature, R as getFunctionSignature, X as hexToBigInt, Y as hexToBool, Z as hexToBytes, a9 as hexToNumber, _ as hexToString, T as isAddress, U as isAddressEqual, V as isBytes, W as isHex, $ as keccak256, a0 as numberToBytes, aa as numberToHex, a1 as pad, a2 as padBytes, a3 as padHex, a4 as parseEther, a5 as parseGwei, a6 as parseUnit, ab as size, ac as slice, ad as sliceBytes, ae as sliceHex, af as stringToBytes, ag as stringToHex, ah as trim } from './parseGwei-
|
12
|
+
export { A as AbiItem, F as FormattedBlock, a as FormattedTransaction, f as formatBlock, b as formatTransaction } from './transactionReceipt-5d332aab.js';
|
13
|
+
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeFunctionDataArgs, c as DecodeFunctionResultArgs, d as DecodeFunctionResultResponse, E as EncodeAbiArgs, e as EncodeDeployDataArgs, f as EncodeErrorResultArgs, g as EncodeEventTopicsArgs, h as EncodeFunctionDataArgs, i as EncodeFunctionResultArgs, l as EncodeRlpResponse, G as GetContractAddressOptions, k as GetCreate2AddressOptions, j as GetCreateAddressOptions, o as boolToBytes, p as boolToHex, q as bytesToBigint, r as bytesToBool, m as bytesToHex, s as bytesToNumber, n as bytesToString, t as decodeAbi, u as decodeBytes, v as decodeErrorResult, w as decodeFunctionData, x as decodeFunctionResult, y as decodeHex, z as decodeRlp, A as encodeAbi, B as encodeBytes, C as encodeDeployData, F as encodeErrorResult, H as encodeEventTopics, I as encodeFunctionData, J as encodeFunctionResult, K as encodeHex, L as encodeRlp, S as formatEther, a7 as formatGwei, a8 as formatUnit, M as getAddress, N as getContractAddress, P as getCreate2Address, O as getCreateAddress, Q as getEventSignature, R as getFunctionSignature, X as hexToBigInt, Y as hexToBool, Z as hexToBytes, a9 as hexToNumber, _ as hexToString, T as isAddress, U as isAddressEqual, V as isBytes, W as isHex, $ as keccak256, a0 as numberToBytes, aa as numberToHex, a1 as pad, a2 as padBytes, a3 as padHex, a4 as parseEther, a5 as parseGwei, a6 as parseUnit, ab as size, ac as slice, ad as sliceBytes, ae as sliceHex, af as stringToBytes, ag as stringToHex, ah as trim } from './parseGwei-f2d23de6.js';
|
14
|
+
export { F as FormattedTransactionRequest, f as formatTransactionRequest } from './transactionRequest-327eb7c2.js';
|
8
15
|
import 'abitype';
|
9
16
|
import './chains.js';
|
10
17
|
import '@wagmi/chains';
|
11
|
-
import './eip1193-
|
18
|
+
import './eip1193-4330b722.js';
|
12
19
|
import './rpc-26932bae.js';
|
13
20
|
|
14
21
|
type BaseErrorArgs = {
|
package/dist/index.js
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
var _chunkEMQSYKNYjs = require('./chunk-EMQSYKNY.js');
|
11
12
|
|
12
13
|
|
13
14
|
|
@@ -34,6 +35,7 @@
|
|
34
35
|
|
35
36
|
|
36
37
|
|
38
|
+
var _chunkHTYEJEWIjs = require('./chunk-HTYEJEWI.js');
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -60,9 +62,9 @@
|
|
60
62
|
|
61
63
|
|
62
64
|
|
63
|
-
var _chunkVUNR7KGGjs = require('./chunk-VUNR7KGG.js');
|
64
65
|
|
65
66
|
|
67
|
+
var _chunkIMYI7Z6Mjs = require('./chunk-IMYI7Z6M.js');
|
66
68
|
|
67
69
|
|
68
70
|
|
@@ -71,9 +73,9 @@ var _chunkVUNR7KGGjs = require('./chunk-VUNR7KGG.js');
|
|
71
73
|
|
72
74
|
|
73
75
|
|
74
|
-
var _chunkE7IQYTLVjs = require('./chunk-E7IQYTLV.js');
|
75
76
|
|
76
77
|
|
78
|
+
var _chunkKGXH5DYIjs = require('./chunk-KGXH5DYI.js');
|
77
79
|
|
78
80
|
|
79
81
|
|
@@ -188,9 +190,9 @@ var _chunkE7IQYTLVjs = require('./chunk-E7IQYTLV.js');
|
|
188
190
|
|
189
191
|
|
190
192
|
|
191
|
-
var _chunk6Z62LPKBjs = require('./chunk-6Z62LPKB.js');
|
192
193
|
|
193
194
|
|
195
|
+
var _chunkQMLDI5JUjs = require('./chunk-QMLDI5JU.js');
|
194
196
|
|
195
197
|
|
196
198
|
|
@@ -375,4 +377,6 @@ var _chunk6Z62LPKBjs = require('./chunk-6Z62LPKB.js');
|
|
375
377
|
|
376
378
|
|
377
379
|
|
378
|
-
exports.AbiConstructorNotFoundError = _chunk6Z62LPKBjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunk6Z62LPKBjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunk6Z62LPKBjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunk6Z62LPKBjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunk6Z62LPKBjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunk6Z62LPKBjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunk6Z62LPKBjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunk6Z62LPKBjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunk6Z62LPKBjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunk6Z62LPKBjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunk6Z62LPKBjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunk6Z62LPKBjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunk6Z62LPKBjs.BaseError; exports.BlockNotFoundError = _chunk6Z62LPKBjs.BlockNotFoundError; exports.DataLengthTooLongError = _chunk6Z62LPKBjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunk6Z62LPKBjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunk6Z62LPKBjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunk6Z62LPKBjs.HttpRequestError; exports.InternalRpcError = _chunk6Z62LPKBjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunk6Z62LPKBjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunk6Z62LPKBjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunk6Z62LPKBjs.InvalidAddressError; exports.InvalidArrayError = _chunk6Z62LPKBjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunk6Z62LPKBjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunk6Z62LPKBjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunk6Z62LPKBjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunk6Z62LPKBjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunk6Z62LPKBjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunk6Z62LPKBjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunk6Z62LPKBjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunk6Z62LPKBjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunk6Z62LPKBjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunk6Z62LPKBjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunk6Z62LPKBjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunk6Z62LPKBjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunk6Z62LPKBjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunk6Z62LPKBjs.ParseRpcError; exports.RequestError = _chunk6Z62LPKBjs.RequestError; exports.ResourceNotFoundRpcError = _chunk6Z62LPKBjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunk6Z62LPKBjs.ResourceUnavailableRpcError; exports.RpcError = _chunk6Z62LPKBjs.RpcError; exports.RpcRequestError = _chunk6Z62LPKBjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunk6Z62LPKBjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunk6Z62LPKBjs.TimeoutError; exports.TransactionNotFoundError = _chunk6Z62LPKBjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunk6Z62LPKBjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunk6Z62LPKBjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunk6Z62LPKBjs.UnknownRpcError; exports.UrlRequiredError = _chunk6Z62LPKBjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunk6Z62LPKBjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunk6Z62LPKBjs.WebSocketRequestError; exports.addChain = _chunkVUNR7KGGjs.addChain; exports.boolToBytes = _chunk6Z62LPKBjs.boolToBytes; exports.boolToHex = _chunk6Z62LPKBjs.boolToHex; exports.bytesToBigint = _chunk6Z62LPKBjs.bytesToBigint; exports.bytesToBool = _chunk6Z62LPKBjs.bytesToBool; exports.bytesToHex = _chunk6Z62LPKBjs.bytesToHex; exports.bytesToNumber = _chunk6Z62LPKBjs.bytesToNumber; exports.bytesToString = _chunk6Z62LPKBjs.bytesToString; exports.call = _chunkVUNR7KGGjs.call; exports.callContract = _chunkVUNR7KGGjs.callContract; exports.createBlockFilter = _chunkVUNR7KGGjs.createBlockFilter; exports.createClient = _chunkE7IQYTLVjs.createClient; exports.createPendingTransactionFilter = _chunkVUNR7KGGjs.createPendingTransactionFilter; exports.createPublicClient = _chunkE7IQYTLVjs.createPublicClient; exports.createTestClient = _chunkE7IQYTLVjs.createTestClient; exports.createTransport = _chunkE7IQYTLVjs.createTransport; exports.createWalletClient = _chunkE7IQYTLVjs.createWalletClient; exports.custom = _chunkE7IQYTLVjs.custom; exports.decodeAbi = _chunk6Z62LPKBjs.decodeAbi; exports.decodeBytes = _chunk6Z62LPKBjs.decodeBytes; exports.decodeErrorResult = _chunk6Z62LPKBjs.decodeErrorResult; exports.decodeFunctionData = _chunk6Z62LPKBjs.decodeFunctionData; exports.decodeFunctionResult = _chunk6Z62LPKBjs.decodeFunctionResult; exports.decodeHex = _chunk6Z62LPKBjs.decodeHex; exports.decodeRlp = _chunk6Z62LPKBjs.decodeRlp; exports.deployContract = _chunkVUNR7KGGjs.deployContract; exports.dropTransaction = _chunkVUNR7KGGjs.dropTransaction; exports.encodeAbi = _chunk6Z62LPKBjs.encodeAbi; exports.encodeBytes = _chunk6Z62LPKBjs.encodeBytes; exports.encodeDeployData = _chunk6Z62LPKBjs.encodeDeployData; exports.encodeErrorResult = _chunk6Z62LPKBjs.encodeErrorResult; exports.encodeEventTopics = _chunk6Z62LPKBjs.encodeEventTopics; exports.encodeFunctionData = _chunk6Z62LPKBjs.encodeFunctionData; exports.encodeFunctionResult = _chunk6Z62LPKBjs.encodeFunctionResult; exports.encodeHex = _chunk6Z62LPKBjs.encodeHex; exports.encodeRlp = _chunk6Z62LPKBjs.encodeRlp; exports.estimateGas = _chunkVUNR7KGGjs.estimateGas; exports.etherUnits = _chunk6Z62LPKBjs.etherUnits; exports.fallback = _chunkE7IQYTLVjs.fallback; exports.formatBlock = _chunk6Z62LPKBjs.formatBlock; exports.formatEther = _chunk6Z62LPKBjs.formatEther; exports.formatGwei = _chunk6Z62LPKBjs.formatGwei; exports.formatTransaction = _chunk6Z62LPKBjs.formatTransaction; exports.formatTransactionRequest = _chunk6Z62LPKBjs.formatTransactionRequest; exports.formatUnit = _chunk6Z62LPKBjs.formatUnit; exports.getAccounts = _chunkVUNR7KGGjs.getAccounts; exports.getAddress = _chunk6Z62LPKBjs.getAddress; exports.getAutomine = _chunkVUNR7KGGjs.getAutomine; exports.getBalance = _chunkVUNR7KGGjs.getBalance; exports.getBlock = _chunkVUNR7KGGjs.getBlock; exports.getBlockNumber = _chunkVUNR7KGGjs.getBlockNumber; exports.getBlockTransactionCount = _chunkVUNR7KGGjs.getBlockTransactionCount; exports.getBytecode = _chunkVUNR7KGGjs.getBytecode; exports.getChainId = _chunkVUNR7KGGjs.getChainId; exports.getContractAddress = _chunk6Z62LPKBjs.getContractAddress; exports.getCreate2Address = _chunk6Z62LPKBjs.getCreate2Address; exports.getCreateAddress = _chunk6Z62LPKBjs.getCreateAddress; exports.getEventSignature = _chunk6Z62LPKBjs.getEventSignature; exports.getFeeHistory = _chunkVUNR7KGGjs.getFeeHistory; exports.getFilterChanges = _chunkVUNR7KGGjs.getFilterChanges; exports.getFilterLogs = _chunkVUNR7KGGjs.getFilterLogs; exports.getFunctionSignature = _chunk6Z62LPKBjs.getFunctionSignature; exports.getGasPrice = _chunkVUNR7KGGjs.getGasPrice; exports.getPermissions = _chunkVUNR7KGGjs.getPermissions; exports.getTransaction = _chunkVUNR7KGGjs.getTransaction; exports.getTransactionConfirmations = _chunkVUNR7KGGjs.getTransactionConfirmations; exports.getTransactionCount = _chunkVUNR7KGGjs.getTransactionCount; exports.getTransactionReceipt = _chunkVUNR7KGGjs.getTransactionReceipt; exports.getTxpoolContent = _chunkVUNR7KGGjs.getTxpoolContent; exports.getTxpoolStatus = _chunkVUNR7KGGjs.getTxpoolStatus; exports.gweiUnits = _chunk6Z62LPKBjs.gweiUnits; exports.hexToBigInt = _chunk6Z62LPKBjs.hexToBigInt; exports.hexToBool = _chunk6Z62LPKBjs.hexToBool; exports.hexToBytes = _chunk6Z62LPKBjs.hexToBytes; exports.hexToNumber = _chunk6Z62LPKBjs.hexToNumber; exports.hexToString = _chunk6Z62LPKBjs.hexToString; exports.http = _chunkE7IQYTLVjs.http; exports.impersonateAccount = _chunkVUNR7KGGjs.impersonateAccount; exports.increaseTime = _chunkVUNR7KGGjs.increaseTime; exports.inspectTxpool = _chunkVUNR7KGGjs.inspectTxpool; exports.isAddress = _chunk6Z62LPKBjs.isAddress; exports.isAddressEqual = _chunk6Z62LPKBjs.isAddressEqual; exports.isBytes = _chunk6Z62LPKBjs.isBytes; exports.isHex = _chunk6Z62LPKBjs.isHex; exports.keccak256 = _chunk6Z62LPKBjs.keccak256; exports.mine = _chunkVUNR7KGGjs.mine; exports.numberToBytes = _chunk6Z62LPKBjs.numberToBytes; exports.numberToHex = _chunk6Z62LPKBjs.numberToHex; exports.pad = _chunk6Z62LPKBjs.pad; exports.padBytes = _chunk6Z62LPKBjs.padBytes; exports.padHex = _chunk6Z62LPKBjs.padHex; exports.parseEther = _chunk6Z62LPKBjs.parseEther; exports.parseGwei = _chunk6Z62LPKBjs.parseGwei; exports.parseUnit = _chunk6Z62LPKBjs.parseUnit; exports.removeBlockTimestampInterval = _chunkVUNR7KGGjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkVUNR7KGGjs.requestAccounts; exports.requestPermissions = _chunkVUNR7KGGjs.requestPermissions; exports.reset = _chunkVUNR7KGGjs.reset; exports.revert = _chunkVUNR7KGGjs.revert; exports.sendTransaction = _chunkVUNR7KGGjs.sendTransaction; exports.sendUnsignedTransaction = _chunkVUNR7KGGjs.sendUnsignedTransaction; exports.setAutomine = _chunkVUNR7KGGjs.setAutomine; exports.setBalance = _chunkVUNR7KGGjs.setBalance; exports.setBlockGasLimit = _chunkVUNR7KGGjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkVUNR7KGGjs.setBlockTimestampInterval; exports.setCode = _chunkVUNR7KGGjs.setCode; exports.setCoinbase = _chunkVUNR7KGGjs.setCoinbase; exports.setIntervalMining = _chunkVUNR7KGGjs.setIntervalMining; exports.setLoggingEnabled = _chunkVUNR7KGGjs.setLoggingEnabled; exports.setMinGasPrice = _chunkVUNR7KGGjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkVUNR7KGGjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkVUNR7KGGjs.setNextBlockTimestamp; exports.setNonce = _chunkVUNR7KGGjs.setNonce; exports.setStorageAt = _chunkVUNR7KGGjs.setStorageAt; exports.signMessage = _chunkVUNR7KGGjs.signMessage; exports.size = _chunk6Z62LPKBjs.size; exports.slice = _chunk6Z62LPKBjs.slice; exports.sliceBytes = _chunk6Z62LPKBjs.sliceBytes; exports.sliceHex = _chunk6Z62LPKBjs.sliceHex; exports.snapshot = _chunkVUNR7KGGjs.snapshot; exports.stopImpersonatingAccount = _chunkVUNR7KGGjs.stopImpersonatingAccount; exports.stringToBytes = _chunk6Z62LPKBjs.stringToBytes; exports.stringToHex = _chunk6Z62LPKBjs.stringToHex; exports.switchChain = _chunkVUNR7KGGjs.switchChain; exports.transactionType = _chunk6Z62LPKBjs.transactionType; exports.trim = _chunk6Z62LPKBjs.trim; exports.uninstallFilter = _chunkVUNR7KGGjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkVUNR7KGGjs.waitForTransactionReceipt; exports.watchAsset = _chunkVUNR7KGGjs.watchAsset; exports.watchBlockNumber = _chunkVUNR7KGGjs.watchBlockNumber; exports.watchBlocks = _chunkVUNR7KGGjs.watchBlocks; exports.watchPendingTransactions = _chunkVUNR7KGGjs.watchPendingTransactions; exports.webSocket = _chunkE7IQYTLVjs.webSocket; exports.weiUnits = _chunk6Z62LPKBjs.weiUnits;
|
380
|
+
|
381
|
+
|
382
|
+
exports.AbiConstructorNotFoundError = _chunkQMLDI5JUjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkQMLDI5JUjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkQMLDI5JUjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkQMLDI5JUjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkQMLDI5JUjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkQMLDI5JUjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkQMLDI5JUjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkQMLDI5JUjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkQMLDI5JUjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkQMLDI5JUjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkQMLDI5JUjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkQMLDI5JUjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkQMLDI5JUjs.BaseError; exports.BlockNotFoundError = _chunkQMLDI5JUjs.BlockNotFoundError; exports.DataLengthTooLongError = _chunkQMLDI5JUjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkQMLDI5JUjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkQMLDI5JUjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkQMLDI5JUjs.HttpRequestError; exports.InternalRpcError = _chunkQMLDI5JUjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkQMLDI5JUjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkQMLDI5JUjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkQMLDI5JUjs.InvalidAddressError; exports.InvalidArrayError = _chunkQMLDI5JUjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkQMLDI5JUjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkQMLDI5JUjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkQMLDI5JUjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkQMLDI5JUjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkQMLDI5JUjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkQMLDI5JUjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkQMLDI5JUjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkQMLDI5JUjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkQMLDI5JUjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkQMLDI5JUjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkQMLDI5JUjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkQMLDI5JUjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkQMLDI5JUjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkQMLDI5JUjs.ParseRpcError; exports.RequestError = _chunkQMLDI5JUjs.RequestError; exports.ResourceNotFoundRpcError = _chunkQMLDI5JUjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkQMLDI5JUjs.ResourceUnavailableRpcError; exports.RpcError = _chunkQMLDI5JUjs.RpcError; exports.RpcRequestError = _chunkQMLDI5JUjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkQMLDI5JUjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkQMLDI5JUjs.TimeoutError; exports.TransactionNotFoundError = _chunkQMLDI5JUjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkQMLDI5JUjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkQMLDI5JUjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkQMLDI5JUjs.UnknownRpcError; exports.UrlRequiredError = _chunkQMLDI5JUjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkQMLDI5JUjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkQMLDI5JUjs.WebSocketRequestError; exports.addChain = _chunkKGXH5DYIjs.addChain; exports.boolToBytes = _chunkQMLDI5JUjs.boolToBytes; exports.boolToHex = _chunkQMLDI5JUjs.boolToHex; exports.bytesToBigint = _chunkQMLDI5JUjs.bytesToBigint; exports.bytesToBool = _chunkQMLDI5JUjs.bytesToBool; exports.bytesToHex = _chunkQMLDI5JUjs.bytesToHex; exports.bytesToNumber = _chunkQMLDI5JUjs.bytesToNumber; exports.bytesToString = _chunkQMLDI5JUjs.bytesToString; exports.call = _chunkHTYEJEWIjs.call; exports.callContract = _chunkHTYEJEWIjs.callContract; exports.createBlockFilter = _chunkHTYEJEWIjs.createBlockFilter; exports.createClient = _chunkEMQSYKNYjs.createClient; exports.createPendingTransactionFilter = _chunkHTYEJEWIjs.createPendingTransactionFilter; exports.createPublicClient = _chunkEMQSYKNYjs.createPublicClient; exports.createTestClient = _chunkEMQSYKNYjs.createTestClient; exports.createTransport = _chunkEMQSYKNYjs.createTransport; exports.createWalletClient = _chunkEMQSYKNYjs.createWalletClient; exports.custom = _chunkEMQSYKNYjs.custom; exports.decodeAbi = _chunkQMLDI5JUjs.decodeAbi; exports.decodeBytes = _chunkQMLDI5JUjs.decodeBytes; exports.decodeErrorResult = _chunkQMLDI5JUjs.decodeErrorResult; exports.decodeFunctionData = _chunkQMLDI5JUjs.decodeFunctionData; exports.decodeFunctionResult = _chunkQMLDI5JUjs.decodeFunctionResult; exports.decodeHex = _chunkQMLDI5JUjs.decodeHex; exports.decodeRlp = _chunkQMLDI5JUjs.decodeRlp; exports.deployContract = _chunkHTYEJEWIjs.deployContract; exports.dropTransaction = _chunkIMYI7Z6Mjs.dropTransaction; exports.encodeAbi = _chunkQMLDI5JUjs.encodeAbi; exports.encodeBytes = _chunkQMLDI5JUjs.encodeBytes; exports.encodeDeployData = _chunkQMLDI5JUjs.encodeDeployData; exports.encodeErrorResult = _chunkQMLDI5JUjs.encodeErrorResult; exports.encodeEventTopics = _chunkQMLDI5JUjs.encodeEventTopics; exports.encodeFunctionData = _chunkQMLDI5JUjs.encodeFunctionData; exports.encodeFunctionResult = _chunkQMLDI5JUjs.encodeFunctionResult; exports.encodeHex = _chunkQMLDI5JUjs.encodeHex; exports.encodeRlp = _chunkQMLDI5JUjs.encodeRlp; exports.estimateGas = _chunkHTYEJEWIjs.estimateGas; exports.etherUnits = _chunkQMLDI5JUjs.etherUnits; exports.fallback = _chunkEMQSYKNYjs.fallback; exports.formatBlock = _chunkQMLDI5JUjs.formatBlock; exports.formatEther = _chunkQMLDI5JUjs.formatEther; exports.formatGwei = _chunkQMLDI5JUjs.formatGwei; exports.formatTransaction = _chunkQMLDI5JUjs.formatTransaction; exports.formatTransactionRequest = _chunkQMLDI5JUjs.formatTransactionRequest; exports.formatUnit = _chunkQMLDI5JUjs.formatUnit; exports.getAccounts = _chunkKGXH5DYIjs.getAccounts; exports.getAddress = _chunkQMLDI5JUjs.getAddress; exports.getAutomine = _chunkIMYI7Z6Mjs.getAutomine; exports.getBalance = _chunkHTYEJEWIjs.getBalance; exports.getBlock = _chunkHTYEJEWIjs.getBlock; exports.getBlockNumber = _chunkHTYEJEWIjs.getBlockNumber; exports.getBlockTransactionCount = _chunkHTYEJEWIjs.getBlockTransactionCount; exports.getBytecode = _chunkHTYEJEWIjs.getBytecode; exports.getChainId = _chunkHTYEJEWIjs.getChainId; exports.getContractAddress = _chunkQMLDI5JUjs.getContractAddress; exports.getCreate2Address = _chunkQMLDI5JUjs.getCreate2Address; exports.getCreateAddress = _chunkQMLDI5JUjs.getCreateAddress; exports.getEventSignature = _chunkQMLDI5JUjs.getEventSignature; exports.getFeeHistory = _chunkHTYEJEWIjs.getFeeHistory; exports.getFilterChanges = _chunkHTYEJEWIjs.getFilterChanges; exports.getFilterLogs = _chunkHTYEJEWIjs.getFilterLogs; exports.getFunctionSignature = _chunkQMLDI5JUjs.getFunctionSignature; exports.getGasPrice = _chunkHTYEJEWIjs.getGasPrice; exports.getPermissions = _chunkKGXH5DYIjs.getPermissions; exports.getTransaction = _chunkHTYEJEWIjs.getTransaction; exports.getTransactionConfirmations = _chunkHTYEJEWIjs.getTransactionConfirmations; exports.getTransactionCount = _chunkHTYEJEWIjs.getTransactionCount; exports.getTransactionReceipt = _chunkHTYEJEWIjs.getTransactionReceipt; exports.getTxpoolContent = _chunkIMYI7Z6Mjs.getTxpoolContent; exports.getTxpoolStatus = _chunkIMYI7Z6Mjs.getTxpoolStatus; exports.gweiUnits = _chunkQMLDI5JUjs.gweiUnits; exports.hexToBigInt = _chunkQMLDI5JUjs.hexToBigInt; exports.hexToBool = _chunkQMLDI5JUjs.hexToBool; exports.hexToBytes = _chunkQMLDI5JUjs.hexToBytes; exports.hexToNumber = _chunkQMLDI5JUjs.hexToNumber; exports.hexToString = _chunkQMLDI5JUjs.hexToString; exports.http = _chunkEMQSYKNYjs.http; exports.impersonateAccount = _chunkIMYI7Z6Mjs.impersonateAccount; exports.increaseTime = _chunkIMYI7Z6Mjs.increaseTime; exports.inspectTxpool = _chunkIMYI7Z6Mjs.inspectTxpool; exports.isAddress = _chunkQMLDI5JUjs.isAddress; exports.isAddressEqual = _chunkQMLDI5JUjs.isAddressEqual; exports.isBytes = _chunkQMLDI5JUjs.isBytes; exports.isHex = _chunkQMLDI5JUjs.isHex; exports.keccak256 = _chunkQMLDI5JUjs.keccak256; exports.mine = _chunkIMYI7Z6Mjs.mine; exports.numberToBytes = _chunkQMLDI5JUjs.numberToBytes; exports.numberToHex = _chunkQMLDI5JUjs.numberToHex; exports.pad = _chunkQMLDI5JUjs.pad; exports.padBytes = _chunkQMLDI5JUjs.padBytes; exports.padHex = _chunkQMLDI5JUjs.padHex; exports.parseEther = _chunkQMLDI5JUjs.parseEther; exports.parseGwei = _chunkQMLDI5JUjs.parseGwei; exports.parseUnit = _chunkQMLDI5JUjs.parseUnit; exports.removeBlockTimestampInterval = _chunkIMYI7Z6Mjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkKGXH5DYIjs.requestAccounts; exports.requestPermissions = _chunkKGXH5DYIjs.requestPermissions; exports.reset = _chunkIMYI7Z6Mjs.reset; exports.revert = _chunkIMYI7Z6Mjs.revert; exports.sendTransaction = _chunkKGXH5DYIjs.sendTransaction; exports.sendUnsignedTransaction = _chunkIMYI7Z6Mjs.sendUnsignedTransaction; exports.setAutomine = _chunkIMYI7Z6Mjs.setAutomine; exports.setBalance = _chunkIMYI7Z6Mjs.setBalance; exports.setBlockGasLimit = _chunkIMYI7Z6Mjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkIMYI7Z6Mjs.setBlockTimestampInterval; exports.setCode = _chunkIMYI7Z6Mjs.setCode; exports.setCoinbase = _chunkIMYI7Z6Mjs.setCoinbase; exports.setIntervalMining = _chunkIMYI7Z6Mjs.setIntervalMining; exports.setLoggingEnabled = _chunkIMYI7Z6Mjs.setLoggingEnabled; exports.setMinGasPrice = _chunkIMYI7Z6Mjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkIMYI7Z6Mjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkIMYI7Z6Mjs.setNextBlockTimestamp; exports.setNonce = _chunkIMYI7Z6Mjs.setNonce; exports.setStorageAt = _chunkIMYI7Z6Mjs.setStorageAt; exports.signMessage = _chunkKGXH5DYIjs.signMessage; exports.size = _chunkQMLDI5JUjs.size; exports.slice = _chunkQMLDI5JUjs.slice; exports.sliceBytes = _chunkQMLDI5JUjs.sliceBytes; exports.sliceHex = _chunkQMLDI5JUjs.sliceHex; exports.snapshot = _chunkIMYI7Z6Mjs.snapshot; exports.stopImpersonatingAccount = _chunkIMYI7Z6Mjs.stopImpersonatingAccount; exports.stringToBytes = _chunkQMLDI5JUjs.stringToBytes; exports.stringToHex = _chunkQMLDI5JUjs.stringToHex; exports.switchChain = _chunkKGXH5DYIjs.switchChain; exports.transactionType = _chunkQMLDI5JUjs.transactionType; exports.trim = _chunkQMLDI5JUjs.trim; exports.uninstallFilter = _chunkHTYEJEWIjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkHTYEJEWIjs.waitForTransactionReceipt; exports.watchAsset = _chunkKGXH5DYIjs.watchAsset; exports.watchBlockNumber = _chunkHTYEJEWIjs.watchBlockNumber; exports.watchBlocks = _chunkHTYEJEWIjs.watchBlocks; exports.watchPendingTransactions = _chunkHTYEJEWIjs.watchPendingTransactions; exports.webSocket = _chunkEMQSYKNYjs.webSocket; exports.weiUnits = _chunkQMLDI5JUjs.weiUnits;
|
package/dist/index.mjs
CHANGED
@@ -1,14 +1,21 @@
|
|
1
1
|
import {
|
2
|
-
|
2
|
+
createClient,
|
3
|
+
createPublicClient,
|
4
|
+
createTestClient,
|
5
|
+
createTransport,
|
6
|
+
createWalletClient,
|
7
|
+
custom,
|
8
|
+
fallback,
|
9
|
+
http,
|
10
|
+
webSocket
|
11
|
+
} from "./chunk-SX7GPOCZ.mjs";
|
12
|
+
import {
|
3
13
|
call,
|
4
14
|
callContract,
|
5
15
|
createBlockFilter,
|
6
16
|
createPendingTransactionFilter,
|
7
17
|
deployContract,
|
8
|
-
dropTransaction,
|
9
18
|
estimateGas,
|
10
|
-
getAccounts,
|
11
|
-
getAutomine,
|
12
19
|
getBalance,
|
13
20
|
getBlock,
|
14
21
|
getBlockNumber,
|
@@ -19,11 +26,19 @@ import {
|
|
19
26
|
getFilterChanges,
|
20
27
|
getFilterLogs,
|
21
28
|
getGasPrice,
|
22
|
-
getPermissions,
|
23
29
|
getTransaction,
|
24
30
|
getTransactionConfirmations,
|
25
31
|
getTransactionCount,
|
26
32
|
getTransactionReceipt,
|
33
|
+
uninstallFilter,
|
34
|
+
waitForTransactionReceipt,
|
35
|
+
watchBlockNumber,
|
36
|
+
watchBlocks,
|
37
|
+
watchPendingTransactions
|
38
|
+
} from "./chunk-PPDHFNFM.mjs";
|
39
|
+
import {
|
40
|
+
dropTransaction,
|
41
|
+
getAutomine,
|
27
42
|
getTxpoolContent,
|
28
43
|
getTxpoolStatus,
|
29
44
|
impersonateAccount,
|
@@ -31,11 +46,8 @@ import {
|
|
31
46
|
inspectTxpool,
|
32
47
|
mine,
|
33
48
|
removeBlockTimestampInterval,
|
34
|
-
requestAccounts,
|
35
|
-
requestPermissions,
|
36
49
|
reset,
|
37
50
|
revert,
|
38
|
-
sendTransaction,
|
39
51
|
sendUnsignedTransaction,
|
40
52
|
setAutomine,
|
41
53
|
setBalance,
|
@@ -50,28 +62,20 @@ import {
|
|
50
62
|
setNextBlockTimestamp,
|
51
63
|
setNonce,
|
52
64
|
setStorageAt,
|
53
|
-
signMessage,
|
54
65
|
snapshot,
|
55
|
-
stopImpersonatingAccount
|
56
|
-
|
57
|
-
uninstallFilter,
|
58
|
-
waitForTransactionReceipt,
|
59
|
-
watchAsset,
|
60
|
-
watchBlockNumber,
|
61
|
-
watchBlocks,
|
62
|
-
watchPendingTransactions
|
63
|
-
} from "./chunk-DUNJAMH5.mjs";
|
66
|
+
stopImpersonatingAccount
|
67
|
+
} from "./chunk-NYXBQHNJ.mjs";
|
64
68
|
import {
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
} from "./chunk-
|
69
|
+
addChain,
|
70
|
+
getAccounts,
|
71
|
+
getPermissions,
|
72
|
+
requestAccounts,
|
73
|
+
requestPermissions,
|
74
|
+
sendTransaction,
|
75
|
+
signMessage,
|
76
|
+
switchChain,
|
77
|
+
watchAsset
|
78
|
+
} from "./chunk-PHAG5KUF.mjs";
|
75
79
|
import {
|
76
80
|
AbiConstructorNotFoundError,
|
77
81
|
AbiConstructorParamsNotFoundError,
|
@@ -188,7 +192,7 @@ import {
|
|
188
192
|
transactionType,
|
189
193
|
trim,
|
190
194
|
weiUnits
|
191
|
-
} from "./chunk-
|
195
|
+
} from "./chunk-2HENAFQN.mjs";
|
192
196
|
export {
|
193
197
|
AbiConstructorNotFoundError,
|
194
198
|
AbiConstructorParamsNotFoundError,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AbiParameter, AbiParametersToPrimitiveTypes, Abi, ExtractAbiErrorNames, ExtractAbiEventNames } from 'abitype';
|
2
2
|
import { H as Hex, A as Address, B as ByteArray } from './rpc-b77c5aee.js';
|
3
|
-
import { E as ExtractFunctionNameFromAbi,
|
3
|
+
import { E as ExtractFunctionNameFromAbi, d as ExtractResultFromAbi, e as ExtractConstructorArgsFromAbi, i as ExtractErrorArgsFromAbi, j as ExtractEventArgsFromAbi, c as ExtractArgsFromAbi } from './transactionReceipt-5d332aab.js';
|
4
4
|
|
5
5
|
type DecodeAbiArgs<TParams extends readonly AbiParameter[]> = {
|
6
6
|
data: Hex;
|
package/dist/public.d.ts
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DeployContractArgs, g as DeployContractResponse, E as EstimateGasArgs, f as EstimateGasResponse, G as GetBalanceArgs, h as GetBalanceResponse, i as GetBlockArgs, j as GetBlockNumberArgs, k as GetBlockNumberResponse, l as GetBlockResponse, m as GetBlockTransactionCountArgs, n as GetBlockTransactionCountResponse, o as GetBytecodeArgs, p as GetBytecodeResponse, q as GetFeeHistoryArgs, r as GetFeeHistoryResponse, s as GetFilterChangesArgs, t as GetFilterChangesResponse, u as GetFilterLogsArgs, v as GetFilterLogsResponse, w as GetGasPriceResponse, x as GetTransactionArgs, y as GetTransactionConfirmationsArgs, z as GetTransactionConfirmationsResponse, A as GetTransactionCountArgs, B as GetTransactionCountResponse, H as GetTransactionReceiptArgs, I as GetTransactionReceiptResponse, F as GetTransactionResponse, O as OnBlock, J as OnBlockNumber, K as OnBlockNumberResponse, L as OnBlockResponse, M as OnTransactions, N as OnTransactionsResponse, ak as ReplacementReason, al as ReplacementResponse, U as UninstallFilterArgs, P as UninstallFilterResponse, W as WaitForTransactionReceiptArgs, Q as WaitForTransactionReceiptResponse, R as WatchBlockNumberArgs, S as WatchBlocksArgs, T as WatchPendingTransactionsArgs, V as call, X as callContract, Y as createBlockFilter, Z as createPendingTransactionFilter, _ as deployContract, $ as estimateGas, a0 as getBalance, a1 as getBlock, a2 as getBlockNumber, aj as getBlockNumberCache, a3 as getBlockTransactionCount, a4 as getBytecode, a5 as getChainId, a6 as getFeeHistory, a7 as getFilterChanges, a8 as getFilterLogs, a9 as getGasPrice, aa as getTransaction, ab as getTransactionConfirmations, ac as getTransactionCount, ad as getTransactionReceipt, ae as uninstallFilter, af as waitForTransactionReceipt, ag as watchBlockNumber, ah as watchBlocks, ai as watchPendingTransactions } from './watchPendingTransactions-670a7ca3.js';
|
2
|
+
import 'abitype';
|
3
|
+
import './chains.js';
|
4
|
+
import './rpc-b77c5aee.js';
|
5
|
+
import '@wagmi/chains';
|
6
|
+
import './transactionReceipt-5d332aab.js';
|
7
|
+
import './transactionRequest-327eb7c2.js';
|
8
|
+
import './createPublicClient-989a0556.js';
|
9
|
+
import './eip1193-4330b722.js';
|
10
|
+
import './createClient-cd948138.js';
|
11
|
+
import './createWalletClient-43f801b9.js';
|
12
|
+
import './sendTransaction-7a9d241a.js';
|
package/dist/public.js
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
var _chunkHTYEJEWIjs = require('./chunk-HTYEJEWI.js');
|
29
|
+
require('./chunk-KGXH5DYI.js');
|
30
|
+
require('./chunk-QMLDI5JU.js');
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
exports.call = _chunkHTYEJEWIjs.call; exports.callContract = _chunkHTYEJEWIjs.callContract; exports.createBlockFilter = _chunkHTYEJEWIjs.createBlockFilter; exports.createPendingTransactionFilter = _chunkHTYEJEWIjs.createPendingTransactionFilter; exports.deployContract = _chunkHTYEJEWIjs.deployContract; exports.estimateGas = _chunkHTYEJEWIjs.estimateGas; exports.getBalance = _chunkHTYEJEWIjs.getBalance; exports.getBlock = _chunkHTYEJEWIjs.getBlock; exports.getBlockNumber = _chunkHTYEJEWIjs.getBlockNumber; exports.getBlockNumberCache = _chunkHTYEJEWIjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkHTYEJEWIjs.getBlockTransactionCount; exports.getBytecode = _chunkHTYEJEWIjs.getBytecode; exports.getChainId = _chunkHTYEJEWIjs.getChainId; exports.getFeeHistory = _chunkHTYEJEWIjs.getFeeHistory; exports.getFilterChanges = _chunkHTYEJEWIjs.getFilterChanges; exports.getFilterLogs = _chunkHTYEJEWIjs.getFilterLogs; exports.getGasPrice = _chunkHTYEJEWIjs.getGasPrice; exports.getTransaction = _chunkHTYEJEWIjs.getTransaction; exports.getTransactionConfirmations = _chunkHTYEJEWIjs.getTransactionConfirmations; exports.getTransactionCount = _chunkHTYEJEWIjs.getTransactionCount; exports.getTransactionReceipt = _chunkHTYEJEWIjs.getTransactionReceipt; exports.uninstallFilter = _chunkHTYEJEWIjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkHTYEJEWIjs.waitForTransactionReceipt; exports.watchBlockNumber = _chunkHTYEJEWIjs.watchBlockNumber; exports.watchBlocks = _chunkHTYEJEWIjs.watchBlocks; exports.watchPendingTransactions = _chunkHTYEJEWIjs.watchPendingTransactions;
|
package/dist/public.mjs
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
import {
|
2
|
+
call,
|
3
|
+
callContract,
|
4
|
+
createBlockFilter,
|
5
|
+
createPendingTransactionFilter,
|
6
|
+
deployContract,
|
7
|
+
estimateGas,
|
8
|
+
getBalance,
|
9
|
+
getBlock,
|
10
|
+
getBlockNumber,
|
11
|
+
getBlockNumberCache,
|
12
|
+
getBlockTransactionCount,
|
13
|
+
getBytecode,
|
14
|
+
getChainId,
|
15
|
+
getFeeHistory,
|
16
|
+
getFilterChanges,
|
17
|
+
getFilterLogs,
|
18
|
+
getGasPrice,
|
19
|
+
getTransaction,
|
20
|
+
getTransactionConfirmations,
|
21
|
+
getTransactionCount,
|
22
|
+
getTransactionReceipt,
|
23
|
+
uninstallFilter,
|
24
|
+
waitForTransactionReceipt,
|
25
|
+
watchBlockNumber,
|
26
|
+
watchBlocks,
|
27
|
+
watchPendingTransactions
|
28
|
+
} from "./chunk-PPDHFNFM.mjs";
|
29
|
+
import "./chunk-PHAG5KUF.mjs";
|
30
|
+
import "./chunk-2HENAFQN.mjs";
|
31
|
+
export {
|
32
|
+
call,
|
33
|
+
callContract,
|
34
|
+
createBlockFilter,
|
35
|
+
createPendingTransactionFilter,
|
36
|
+
deployContract,
|
37
|
+
estimateGas,
|
38
|
+
getBalance,
|
39
|
+
getBlock,
|
40
|
+
getBlockNumber,
|
41
|
+
getBlockNumberCache,
|
42
|
+
getBlockTransactionCount,
|
43
|
+
getBytecode,
|
44
|
+
getChainId,
|
45
|
+
getFeeHistory,
|
46
|
+
getFilterChanges,
|
47
|
+
getFilterLogs,
|
48
|
+
getGasPrice,
|
49
|
+
getTransaction,
|
50
|
+
getTransactionConfirmations,
|
51
|
+
getTransactionCount,
|
52
|
+
getTransactionReceipt,
|
53
|
+
uninstallFilter,
|
54
|
+
waitForTransactionReceipt,
|
55
|
+
watchBlockNumber,
|
56
|
+
watchBlocks,
|
57
|
+
watchPendingTransactions
|
58
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Formatter, Chain } from './chains.js';
|
2
|
+
import { M as MergeIntersectionProperties, v as TransactionRequest, a as Hash } from './rpc-b77c5aee.js';
|
3
|
+
import { W as WalletClient } from './createWalletClient-43f801b9.js';
|
4
|
+
import { a as Formatted, T as TransactionRequestFormatter } from './transactionRequest-327eb7c2.js';
|
5
|
+
|
6
|
+
type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Formatted<TFormatter, TransactionRequest, true>, TransactionRequest>;
|
7
|
+
type SendTransactionArgs<TChain extends Chain = Chain> = FormattedTransactionRequest<TransactionRequestFormatter<TChain>> & {
|
8
|
+
chain?: TChain;
|
9
|
+
};
|
10
|
+
type SendTransactionResponse = Hash;
|
11
|
+
declare function sendTransaction<TChain extends Chain>(client: WalletClient, { chain, from, accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: SendTransactionArgs<TChain>): Promise<SendTransactionResponse>;
|
12
|
+
|
13
|
+
export { FormattedTransactionRequest as F, SendTransactionArgs as S, SendTransactionResponse as a, sendTransaction as s };
|