viem 0.0.1-alpha.12 → 0.0.1-alpha.14
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/actions/index.d.ts +2 -2
- package/dist/actions/index.js +7 -3
- package/dist/actions/index.mjs +6 -2
- package/dist/chains.js +5 -5
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-PC3JNTPF.mjs → chunk-5TCPFLFT.mjs} +1 -1
- package/dist/{chunk-A3PVAH22.js → chunk-6Z62LPKB.js} +25 -10
- package/dist/{chunk-DPSKYDCG.mjs → chunk-DUNJAMH5.mjs} +172 -141
- package/dist/{chunk-A4O3JKF2.js → chunk-E7IQYTLV.js} +11 -11
- package/dist/{chunk-ERPD74AT.mjs → chunk-KB6CBNKW.mjs} +16 -1
- package/dist/{chunk-QO5C5Y2L.js → chunk-VUNR7KGG.js} +224 -193
- package/dist/clients/index.js +3 -3
- package/dist/clients/index.mjs +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -4
- package/dist/index.mjs +7 -3
- package/dist/{parseGwei-7c87ff41.d.ts → parseGwei-21f98a29.d.ts} +1 -1
- package/dist/{watchAsset-43255bfd.d.ts → stopImpersonatingAccount-fcc5a678.d.ts} +63 -44
- package/dist/{transactionRequest-08d30731.d.ts → transactionRequest-1d4e4385.d.ts} +1 -1
- package/dist/utils/index.d.ts +12 -5
- package/dist/utils/index.js +4 -2
- package/dist/utils/index.mjs +3 -1
- package/package.json +1 -1
package/dist/clients/index.js
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
var
|
12
|
-
require('../chunk-
|
11
|
+
var _chunkE7IQYTLVjs = require('../chunk-E7IQYTLV.js');
|
12
|
+
require('../chunk-6Z62LPKB.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -20,4 +20,4 @@ require('../chunk-A3PVAH22.js');
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
exports.createClient =
|
23
|
+
exports.createClient = _chunkE7IQYTLVjs.createClient; exports.createPublicClient = _chunkE7IQYTLVjs.createPublicClient; exports.createTestClient = _chunkE7IQYTLVjs.createTestClient; exports.createTransport = _chunkE7IQYTLVjs.createTransport; exports.createWalletClient = _chunkE7IQYTLVjs.createWalletClient; exports.custom = _chunkE7IQYTLVjs.custom; exports.fallback = _chunkE7IQYTLVjs.fallback; exports.http = _chunkE7IQYTLVjs.http; exports.webSocket = _chunkE7IQYTLVjs.webSocket;
|
package/dist/clients/index.mjs
CHANGED
package/dist/index.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, G as GetBalanceArgs,
|
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, h as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, G as GetBalanceArgs, i as GetBalanceResponse, j as GetBlockArgs, k as GetBlockNumberArgs, l as GetBlockNumberResponse, m as GetBlockResponse, n as GetBlockTransactionCountArgs, o as GetBlockTransactionCountResponse, p as GetBytecodeArgs, q as GetBytecodeResponse, r as GetFeeHistoryArgs, s as GetFeeHistoryResponse, t as GetFilterChangesArgs, u as GetFilterChangesResponse, v as GetFilterLogsArgs, w as GetFilterLogsResponse, x as GetGasPriceResponse, y as GetPermissionsResponse, z as GetTransactionArgs, A as GetTransactionConfirmationsArgs, B as GetTransactionConfirmationsResponse, F as GetTransactionCountArgs, H as GetTransactionCountResponse, J as GetTransactionReceiptArgs, K as GetTransactionReceiptResponse, I as GetTransactionResponse, L as ImpersonateAccountArgs, M as IncreaseTimeArgs, N as MineArgs, O as OnBlock, P as OnBlockNumber, Q as OnBlockNumberResponse, R as OnBlockResponse, S as OnTransactions, T as OnTransactionsResponse, V as RequestPermissionsResponse, U as ResetArgs, W as RevertArgs, X as SendTransactionArgs, Y as SendTransactionResponse, Z as SendUnsignedTransactionArgs, _ as SendUnsignedTransactionResponse, $ as SetBalanceArgs, a0 as SetBlockGasLimitArgs, a5 as SetBlockTimestampIntervalArgs, a1 as SetCodeArgs, a2 as SetCoinbaseArgs, a3 as SetIntervalMiningArgs, a4 as SetMinGasPriceArgs, a7 as SetNextBlockBaseFeePerGasArgs, a6 as SetNextBlockTimestampArgs, a8 as SetNonceArgs, a9 as SetStorageAtArgs, aa as SignMessageArgs, ab as SignMessageResponse, ac as StopImpersonatingAccountArgs, ad as SwitchChainArgs, ae as UninstallFilterArgs, af as UninstallFilterResponse, ag as WaitForTransactionReceiptArgs, ah as WaitForTransactionReceiptResponse, ai as WatchAssetArgs, aj as WatchAssetResponse, ak as WatchBlockNumberArgs, al as WatchBlocksArgs, am as WatchPendingTransactionsArgs, an as addChain, ao as call, ap as callContract, aq as createBlockFilter, ar as createPendingTransactionFilter, as as deployContract, at as dropTransaction, au as estimateGas, av as getAccounts, aw as getAutomine, ax as getBalance, ay as getBlock, az as getBlockNumber, aA as getBlockTransactionCount, aB as getBytecode, aC as getChainId, aD as getFeeHistory, aE as getFilterChanges, aF as getFilterLogs, aG as getGasPrice, aH as getPermissions, aI as getTransaction, aJ as getTransactionConfirmations, aK as getTransactionCount, aL as getTransactionReceipt, aM as getTxpoolContent, aN as getTxpoolStatus, aO as impersonateAccount, aP as increaseTime, aQ as inspectTxpool, aR as mine, aS as removeBlockTimestampInterval, aU as requestAccounts, aV as requestPermissions, aT as reset, aW as revert, aX as sendTransaction, aY as sendUnsignedTransaction, aZ as setAutomine, a_ as setBalance, a$ as setBlockGasLimit, b0 as setBlockTimestampInterval, b1 as setCode, b2 as setCoinbase, b3 as setIntervalMining, b4 as setLoggingEnabled, b5 as setMinGasPrice, b6 as setNextBlockBaseFeePerGas, b7 as setNextBlockTimestamp, b8 as setNonce, b9 as setStorageAt, ba as signMessage, bb as snapshot, bc as stopImpersonatingAccount, bd as switchChain, be as uninstallFilter, bf as waitForTransactionReceipt, bg as watchAsset, bh as watchBlockNumber, bi as watchBlocks, bj as watchPendingTransactions } from './stopImpersonatingAccount-fcc5a678.js';
|
2
2
|
export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from './createWalletClient-3f9fa8b6.js';
|
3
3
|
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-3385e295.js';
|
4
4
|
import { H as Hex, A as Address, a as Hash, B as ByteArray, b as BlockTag } from './rpc-b77c5aee.js';
|
5
5
|
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, b as FormattedTransactionRequest, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from './transactionRequest-
|
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-
|
6
|
+
export { A as AbiItem, F as FormattedBlock, a as FormattedTransaction, b as FormattedTransactionRequest, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from './transactionRequest-1d4e4385.js';
|
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-21f98a29.js';
|
8
8
|
import 'abitype';
|
9
9
|
import './chains.js';
|
10
10
|
import '@wagmi/chains';
|
package/dist/index.js
CHANGED
@@ -58,9 +58,9 @@
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
-
var _chunkQO5C5Y2Ljs = require('./chunk-QO5C5Y2L.js');
|
62
61
|
|
63
62
|
|
63
|
+
var _chunkVUNR7KGGjs = require('./chunk-VUNR7KGG.js');
|
64
64
|
|
65
65
|
|
66
66
|
|
@@ -69,9 +69,9 @@ var _chunkQO5C5Y2Ljs = require('./chunk-QO5C5Y2L.js');
|
|
69
69
|
|
70
70
|
|
71
71
|
|
72
|
-
var _chunkA4O3JKF2js = require('./chunk-A4O3JKF2.js');
|
73
72
|
|
74
73
|
|
74
|
+
var _chunkE7IQYTLVjs = require('./chunk-E7IQYTLV.js');
|
75
75
|
|
76
76
|
|
77
77
|
|
@@ -186,9 +186,9 @@ var _chunkA4O3JKF2js = require('./chunk-A4O3JKF2.js');
|
|
186
186
|
|
187
187
|
|
188
188
|
|
189
|
-
var _chunkA3PVAH22js = require('./chunk-A3PVAH22.js');
|
190
189
|
|
191
190
|
|
191
|
+
var _chunk6Z62LPKBjs = require('./chunk-6Z62LPKB.js');
|
192
192
|
|
193
193
|
|
194
194
|
|
@@ -371,4 +371,8 @@ var _chunkA3PVAH22js = require('./chunk-A3PVAH22.js');
|
|
371
371
|
|
372
372
|
|
373
373
|
|
374
|
-
exports.AbiConstructorNotFoundError = _chunkA3PVAH22js.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkA3PVAH22js.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkA3PVAH22js.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkA3PVAH22js.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkA3PVAH22js.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkA3PVAH22js.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkA3PVAH22js.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkA3PVAH22js.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkA3PVAH22js.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkA3PVAH22js.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkA3PVAH22js.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkA3PVAH22js.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkA3PVAH22js.BaseError; exports.BlockNotFoundError = _chunkA3PVAH22js.BlockNotFoundError; exports.DataLengthTooLongError = _chunkA3PVAH22js.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkA3PVAH22js.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkA3PVAH22js.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkA3PVAH22js.HttpRequestError; exports.InternalRpcError = _chunkA3PVAH22js.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkA3PVAH22js.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkA3PVAH22js.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkA3PVAH22js.InvalidAddressError; exports.InvalidArrayError = _chunkA3PVAH22js.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkA3PVAH22js.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkA3PVAH22js.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkA3PVAH22js.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkA3PVAH22js.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkA3PVAH22js.InvalidHexValueError; exports.InvalidInputRpcError = _chunkA3PVAH22js.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkA3PVAH22js.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkA3PVAH22js.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkA3PVAH22js.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkA3PVAH22js.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkA3PVAH22js.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkA3PVAH22js.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkA3PVAH22js.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkA3PVAH22js.ParseRpcError; exports.RequestError = _chunkA3PVAH22js.RequestError; exports.ResourceNotFoundRpcError = _chunkA3PVAH22js.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkA3PVAH22js.ResourceUnavailableRpcError; exports.RpcError = _chunkA3PVAH22js.RpcError; exports.RpcRequestError = _chunkA3PVAH22js.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkA3PVAH22js.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkA3PVAH22js.TimeoutError; exports.TransactionNotFoundError = _chunkA3PVAH22js.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkA3PVAH22js.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkA3PVAH22js.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkA3PVAH22js.UnknownRpcError; exports.UrlRequiredError = _chunkA3PVAH22js.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkA3PVAH22js.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkA3PVAH22js.WebSocketRequestError; exports.addChain = _chunkQO5C5Y2Ljs.addChain; exports.boolToBytes = _chunkA3PVAH22js.boolToBytes; exports.boolToHex = _chunkA3PVAH22js.boolToHex; exports.bytesToBigint = _chunkA3PVAH22js.bytesToBigint; exports.bytesToBool = _chunkA3PVAH22js.bytesToBool; exports.bytesToHex = _chunkA3PVAH22js.bytesToHex; exports.bytesToNumber = _chunkA3PVAH22js.bytesToNumber; exports.bytesToString = _chunkA3PVAH22js.bytesToString; exports.call = _chunkQO5C5Y2Ljs.call; exports.callContract = _chunkQO5C5Y2Ljs.callContract; exports.createBlockFilter = _chunkQO5C5Y2Ljs.createBlockFilter; exports.createClient = _chunkA4O3JKF2js.createClient; exports.createPendingTransactionFilter = _chunkQO5C5Y2Ljs.createPendingTransactionFilter; exports.createPublicClient = _chunkA4O3JKF2js.createPublicClient; exports.createTestClient = _chunkA4O3JKF2js.createTestClient; exports.createTransport = _chunkA4O3JKF2js.createTransport; exports.createWalletClient = _chunkA4O3JKF2js.createWalletClient; exports.custom = _chunkA4O3JKF2js.custom; exports.decodeAbi = _chunkA3PVAH22js.decodeAbi; exports.decodeBytes = _chunkA3PVAH22js.decodeBytes; exports.decodeErrorResult = _chunkA3PVAH22js.decodeErrorResult; exports.decodeFunctionData = _chunkA3PVAH22js.decodeFunctionData; exports.decodeFunctionResult = _chunkA3PVAH22js.decodeFunctionResult; exports.decodeHex = _chunkA3PVAH22js.decodeHex; exports.decodeRlp = _chunkA3PVAH22js.decodeRlp; exports.dropTransaction = _chunkQO5C5Y2Ljs.dropTransaction; exports.encodeAbi = _chunkA3PVAH22js.encodeAbi; exports.encodeBytes = _chunkA3PVAH22js.encodeBytes; exports.encodeDeployData = _chunkA3PVAH22js.encodeDeployData; exports.encodeErrorResult = _chunkA3PVAH22js.encodeErrorResult; exports.encodeEventTopics = _chunkA3PVAH22js.encodeEventTopics; exports.encodeFunctionData = _chunkA3PVAH22js.encodeFunctionData; exports.encodeFunctionResult = _chunkA3PVAH22js.encodeFunctionResult; exports.encodeHex = _chunkA3PVAH22js.encodeHex; exports.encodeRlp = _chunkA3PVAH22js.encodeRlp; exports.estimateGas = _chunkQO5C5Y2Ljs.estimateGas; exports.etherUnits = _chunkA3PVAH22js.etherUnits; exports.fallback = _chunkA4O3JKF2js.fallback; exports.formatBlock = _chunkA3PVAH22js.formatBlock; exports.formatEther = _chunkA3PVAH22js.formatEther; exports.formatGwei = _chunkA3PVAH22js.formatGwei; exports.formatTransaction = _chunkA3PVAH22js.formatTransaction; exports.formatTransactionRequest = _chunkA3PVAH22js.formatTransactionRequest; exports.formatUnit = _chunkA3PVAH22js.formatUnit; exports.getAccounts = _chunkQO5C5Y2Ljs.getAccounts; exports.getAddress = _chunkA3PVAH22js.getAddress; exports.getAutomine = _chunkQO5C5Y2Ljs.getAutomine; exports.getBalance = _chunkQO5C5Y2Ljs.getBalance; exports.getBlock = _chunkQO5C5Y2Ljs.getBlock; exports.getBlockNumber = _chunkQO5C5Y2Ljs.getBlockNumber; exports.getBlockTransactionCount = _chunkQO5C5Y2Ljs.getBlockTransactionCount; exports.getChainId = _chunkQO5C5Y2Ljs.getChainId; exports.getContractAddress = _chunkA3PVAH22js.getContractAddress; exports.getCreate2Address = _chunkA3PVAH22js.getCreate2Address; exports.getCreateAddress = _chunkA3PVAH22js.getCreateAddress; exports.getEventSignature = _chunkA3PVAH22js.getEventSignature; exports.getFeeHistory = _chunkQO5C5Y2Ljs.getFeeHistory; exports.getFilterChanges = _chunkQO5C5Y2Ljs.getFilterChanges; exports.getFilterLogs = _chunkQO5C5Y2Ljs.getFilterLogs; exports.getFunctionSignature = _chunkA3PVAH22js.getFunctionSignature; exports.getGasPrice = _chunkQO5C5Y2Ljs.getGasPrice; exports.getPermissions = _chunkQO5C5Y2Ljs.getPermissions; exports.getTransaction = _chunkQO5C5Y2Ljs.getTransaction; exports.getTransactionConfirmations = _chunkQO5C5Y2Ljs.getTransactionConfirmations; exports.getTransactionCount = _chunkQO5C5Y2Ljs.getTransactionCount; exports.getTransactionReceipt = _chunkQO5C5Y2Ljs.getTransactionReceipt; exports.getTxpoolContent = _chunkQO5C5Y2Ljs.getTxpoolContent; exports.getTxpoolStatus = _chunkQO5C5Y2Ljs.getTxpoolStatus; exports.gweiUnits = _chunkA3PVAH22js.gweiUnits; exports.hexToBigInt = _chunkA3PVAH22js.hexToBigInt; exports.hexToBool = _chunkA3PVAH22js.hexToBool; exports.hexToBytes = _chunkA3PVAH22js.hexToBytes; exports.hexToNumber = _chunkA3PVAH22js.hexToNumber; exports.hexToString = _chunkA3PVAH22js.hexToString; exports.http = _chunkA4O3JKF2js.http; exports.impersonateAccount = _chunkQO5C5Y2Ljs.impersonateAccount; exports.increaseTime = _chunkQO5C5Y2Ljs.increaseTime; exports.inspectTxpool = _chunkQO5C5Y2Ljs.inspectTxpool; exports.isAddress = _chunkA3PVAH22js.isAddress; exports.isAddressEqual = _chunkA3PVAH22js.isAddressEqual; exports.isBytes = _chunkA3PVAH22js.isBytes; exports.isHex = _chunkA3PVAH22js.isHex; exports.keccak256 = _chunkA3PVAH22js.keccak256; exports.mine = _chunkQO5C5Y2Ljs.mine; exports.numberToBytes = _chunkA3PVAH22js.numberToBytes; exports.numberToHex = _chunkA3PVAH22js.numberToHex; exports.pad = _chunkA3PVAH22js.pad; exports.padBytes = _chunkA3PVAH22js.padBytes; exports.padHex = _chunkA3PVAH22js.padHex; exports.parseEther = _chunkA3PVAH22js.parseEther; exports.parseGwei = _chunkA3PVAH22js.parseGwei; exports.parseUnit = _chunkA3PVAH22js.parseUnit; exports.removeBlockTimestampInterval = _chunkQO5C5Y2Ljs.removeBlockTimestampInterval; exports.requestAccounts = _chunkQO5C5Y2Ljs.requestAccounts; exports.requestPermissions = _chunkQO5C5Y2Ljs.requestPermissions; exports.reset = _chunkQO5C5Y2Ljs.reset; exports.revert = _chunkQO5C5Y2Ljs.revert; exports.sendTransaction = _chunkQO5C5Y2Ljs.sendTransaction; exports.sendUnsignedTransaction = _chunkQO5C5Y2Ljs.sendUnsignedTransaction; exports.setAutomine = _chunkQO5C5Y2Ljs.setAutomine; exports.setBalance = _chunkQO5C5Y2Ljs.setBalance; exports.setBlockGasLimit = _chunkQO5C5Y2Ljs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkQO5C5Y2Ljs.setBlockTimestampInterval; exports.setCode = _chunkQO5C5Y2Ljs.setCode; exports.setCoinbase = _chunkQO5C5Y2Ljs.setCoinbase; exports.setIntervalMining = _chunkQO5C5Y2Ljs.setIntervalMining; exports.setLoggingEnabled = _chunkQO5C5Y2Ljs.setLoggingEnabled; exports.setMinGasPrice = _chunkQO5C5Y2Ljs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkQO5C5Y2Ljs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkQO5C5Y2Ljs.setNextBlockTimestamp; exports.setNonce = _chunkQO5C5Y2Ljs.setNonce; exports.setStorageAt = _chunkQO5C5Y2Ljs.setStorageAt; exports.signMessage = _chunkQO5C5Y2Ljs.signMessage; exports.size = _chunkA3PVAH22js.size; exports.slice = _chunkA3PVAH22js.slice; exports.sliceBytes = _chunkA3PVAH22js.sliceBytes; exports.sliceHex = _chunkA3PVAH22js.sliceHex; exports.snapshot = _chunkQO5C5Y2Ljs.snapshot; exports.stopImpersonatingAccount = _chunkQO5C5Y2Ljs.stopImpersonatingAccount; exports.stringToBytes = _chunkA3PVAH22js.stringToBytes; exports.stringToHex = _chunkA3PVAH22js.stringToHex; exports.switchChain = _chunkQO5C5Y2Ljs.switchChain; exports.transactionType = _chunkA3PVAH22js.transactionType; exports.trim = _chunkA3PVAH22js.trim; exports.uninstallFilter = _chunkQO5C5Y2Ljs.uninstallFilter; exports.waitForTransactionReceipt = _chunkQO5C5Y2Ljs.waitForTransactionReceipt; exports.watchAsset = _chunkQO5C5Y2Ljs.watchAsset; exports.watchBlockNumber = _chunkQO5C5Y2Ljs.watchBlockNumber; exports.watchBlocks = _chunkQO5C5Y2Ljs.watchBlocks; exports.watchPendingTransactions = _chunkQO5C5Y2Ljs.watchPendingTransactions; exports.webSocket = _chunkA4O3JKF2js.webSocket; exports.weiUnits = _chunkA3PVAH22js.weiUnits;
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
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;
|
package/dist/index.mjs
CHANGED
@@ -4,6 +4,7 @@ import {
|
|
4
4
|
callContract,
|
5
5
|
createBlockFilter,
|
6
6
|
createPendingTransactionFilter,
|
7
|
+
deployContract,
|
7
8
|
dropTransaction,
|
8
9
|
estimateGas,
|
9
10
|
getAccounts,
|
@@ -12,6 +13,7 @@ import {
|
|
12
13
|
getBlock,
|
13
14
|
getBlockNumber,
|
14
15
|
getBlockTransactionCount,
|
16
|
+
getBytecode,
|
15
17
|
getChainId,
|
16
18
|
getFeeHistory,
|
17
19
|
getFilterChanges,
|
@@ -58,7 +60,7 @@ import {
|
|
58
60
|
watchBlockNumber,
|
59
61
|
watchBlocks,
|
60
62
|
watchPendingTransactions
|
61
|
-
} from "./chunk-
|
63
|
+
} from "./chunk-DUNJAMH5.mjs";
|
62
64
|
import {
|
63
65
|
createClient,
|
64
66
|
createPublicClient,
|
@@ -69,7 +71,7 @@ import {
|
|
69
71
|
fallback,
|
70
72
|
http,
|
71
73
|
webSocket
|
72
|
-
} from "./chunk-
|
74
|
+
} from "./chunk-5TCPFLFT.mjs";
|
73
75
|
import {
|
74
76
|
AbiConstructorNotFoundError,
|
75
77
|
AbiConstructorParamsNotFoundError,
|
@@ -186,7 +188,7 @@ import {
|
|
186
188
|
transactionType,
|
187
189
|
trim,
|
188
190
|
weiUnits
|
189
|
-
} from "./chunk-
|
191
|
+
} from "./chunk-KB6CBNKW.mjs";
|
190
192
|
export {
|
191
193
|
AbiConstructorNotFoundError,
|
192
194
|
AbiConstructorParamsNotFoundError,
|
@@ -264,6 +266,7 @@ export {
|
|
264
266
|
decodeFunctionResult,
|
265
267
|
decodeHex,
|
266
268
|
decodeRlp,
|
269
|
+
deployContract,
|
267
270
|
dropTransaction,
|
268
271
|
encodeAbi,
|
269
272
|
encodeBytes,
|
@@ -290,6 +293,7 @@ export {
|
|
290
293
|
getBlock,
|
291
294
|
getBlockNumber,
|
292
295
|
getBlockTransactionCount,
|
296
|
+
getBytecode,
|
293
297
|
getChainId,
|
294
298
|
getContractAddress,
|
295
299
|
getCreate2Address,
|
@@ -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, h as ExtractResultFromAbi,
|
3
|
+
import { E as ExtractFunctionNameFromAbi, h as ExtractResultFromAbi, i as ExtractConstructorArgsFromAbi, n as ExtractErrorArgsFromAbi, o as ExtractEventArgsFromAbi, g as ExtractArgsFromAbi } from './transactionRequest-1d4e4385.js';
|
4
4
|
|
5
5
|
type DecodeAbiArgs<TParams extends readonly AbiParameter[]> = {
|
6
6
|
data: Hex;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Abi } from 'abitype';
|
2
2
|
import { Chain, Formatter } from './chains.js';
|
3
|
-
import { H as Hex, A as Address, b as BlockTag, M as MergeIntersectionProperties, v as TransactionRequest,
|
4
|
-
import { T as TransactionRequestFormatter, e as Formatted, E as ExtractFunctionNameFromAbi, G as GetValue, g as ExtractArgsFromAbi, h as ExtractResultFromAbi, F as FormattedBlock, B as BlockFormatter, a as FormattedTransaction,
|
5
|
-
import { P as PublicClient,
|
3
|
+
import { H as Hex, A as Address, b as BlockTag, M as MergeIntersectionProperties, v as TransactionRequest, a as Hash, B as ByteArray, K as EstimateGasParameters, F as FeeHistory, L as Log, r as RpcTransactionReceipt, T as TransactionReceipt, N as TransactionType, D as Transaction, q as RpcTransaction, Q as Quantity } from './rpc-b77c5aee.js';
|
4
|
+
import { T as TransactionRequestFormatter, e as Formatted, E as ExtractFunctionNameFromAbi, G as GetValue, g as ExtractArgsFromAbi, h as ExtractResultFromAbi, i as ExtractConstructorArgsFromAbi, F as FormattedBlock, B as BlockFormatter, a as FormattedTransaction, j as TransactionFormatter, k as FormattedTransactionReceipt, l as TransactionReceiptFormatter, m as ExtractFormatter } from './transactionRequest-1d4e4385.js';
|
5
|
+
import { P as PublicClient, W as WalletClient, T as TestClient } from './createWalletClient-3f9fa8b6.js';
|
6
6
|
import { W as WalletPermission, a as WatchAssetParams } from './eip1193-c001fcd5.js';
|
7
7
|
|
8
8
|
type FilterType = 'transaction' | 'block' | 'event';
|
@@ -45,6 +45,53 @@ declare function createPendingTransactionFilter(client: PublicClient): Promise<C
|
|
45
45
|
type CreateBlockFilterResponse = Filter<'block'>;
|
46
46
|
declare function createBlockFilter(client: PublicClient): Promise<CreateBlockFilterResponse>;
|
47
47
|
|
48
|
+
declare function addChain(client: WalletClient, chain: Chain): Promise<void>;
|
49
|
+
|
50
|
+
declare function getAccounts(client: WalletClient): Promise<`0x${string}`[]>;
|
51
|
+
|
52
|
+
type GetPermissionsResponse = WalletPermission[];
|
53
|
+
declare function getPermissions(client: WalletClient): Promise<WalletPermission[]>;
|
54
|
+
|
55
|
+
declare function requestAccounts(client: WalletClient): Promise<`0x${string}`[]>;
|
56
|
+
|
57
|
+
type RequestPermissionsArgs = {
|
58
|
+
eth_accounts: Record<string, any>;
|
59
|
+
} & {
|
60
|
+
[key: string]: Record<string, any>;
|
61
|
+
};
|
62
|
+
type RequestPermissionsResponse = WalletPermission[];
|
63
|
+
declare function requestPermissions(client: WalletClient, permissions: RequestPermissionsArgs): Promise<WalletPermission[]>;
|
64
|
+
|
65
|
+
type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Formatted<TFormatter, TransactionRequest, true>, TransactionRequest>;
|
66
|
+
type SendTransactionArgs<TChain extends Chain = Chain> = FormattedTransactionRequest<TransactionRequestFormatter<TChain>> & {
|
67
|
+
chain?: TChain;
|
68
|
+
};
|
69
|
+
type SendTransactionResponse = Hash;
|
70
|
+
declare function sendTransaction<TChain extends Chain>(client: WalletClient, { chain, from, accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: SendTransactionArgs<TChain>): Promise<SendTransactionResponse>;
|
71
|
+
|
72
|
+
type SignMessageArgs = {
|
73
|
+
from: Address;
|
74
|
+
data: Hex | ByteArray;
|
75
|
+
};
|
76
|
+
type SignMessageResponse = Hex;
|
77
|
+
declare function signMessage(client: WalletClient, { from, data: data_ }: SignMessageArgs): Promise<SignMessageResponse>;
|
78
|
+
|
79
|
+
type SwitchChainArgs = {
|
80
|
+
id: Chain['id'];
|
81
|
+
};
|
82
|
+
declare function switchChain(client: WalletClient, { id }: SwitchChainArgs): Promise<void>;
|
83
|
+
|
84
|
+
type WatchAssetArgs = WatchAssetParams;
|
85
|
+
type WatchAssetResponse = boolean;
|
86
|
+
declare function watchAsset(client: WalletClient, params: WatchAssetParams): Promise<WatchAssetResponse>;
|
87
|
+
|
88
|
+
type DeployContractArgs<TChain extends Chain = Chain, TAbi extends Abi = Abi> = Omit<SendTransactionArgs<TChain>, 'accessList' | 'to' | 'data' | 'value'> & {
|
89
|
+
abi: TAbi;
|
90
|
+
bytecode: Hex;
|
91
|
+
} & ExtractConstructorArgsFromAbi<TAbi>;
|
92
|
+
type DeployContractResponse = SendTransactionResponse;
|
93
|
+
declare function deployContract<TChain extends Chain, TAbi extends Abi = Abi>(walletClient: WalletClient, { abi, args, bytecode, ...request }: DeployContractArgs<TChain, TAbi>): Promise<DeployContractResponse>;
|
94
|
+
|
48
95
|
type EstimateGasArgs = EstimateGasParameters & ({
|
49
96
|
/** The balance of the account at a block number. */
|
50
97
|
blockNumber?: bigint;
|
@@ -151,6 +198,18 @@ type GetBlockTransactionCountArgs = {
|
|
151
198
|
type GetBlockTransactionCountResponse = number;
|
152
199
|
declare function getBlockTransactionCount<TChain extends Chain>(client: PublicClient<any, TChain>, { blockHash, blockNumber, blockTag, }?: GetBlockTransactionCountArgs): Promise<GetBlockTransactionCountResponse>;
|
153
200
|
|
201
|
+
type GetBytecodeArgs = {
|
202
|
+
address: Address;
|
203
|
+
} & ({
|
204
|
+
blockNumber?: never;
|
205
|
+
blockTag?: BlockTag;
|
206
|
+
} | {
|
207
|
+
blockNumber?: bigint;
|
208
|
+
blockTag?: never;
|
209
|
+
});
|
210
|
+
type GetBytecodeResponse = Hex | undefined;
|
211
|
+
declare function getBytecode(client: PublicClient, { address, blockNumber, blockTag }: GetBytecodeArgs): Promise<GetBytecodeResponse>;
|
212
|
+
|
154
213
|
declare function getChainId(client: PublicClient): Promise<number>;
|
155
214
|
|
156
215
|
type GetFeeHistoryArgs = {
|
@@ -491,44 +550,4 @@ type StopImpersonatingAccountArgs = {
|
|
491
550
|
};
|
492
551
|
declare function stopImpersonatingAccount(client: TestClient, { address }: StopImpersonatingAccountArgs): Promise<void>;
|
493
552
|
|
494
|
-
|
495
|
-
|
496
|
-
declare function getAccounts(client: WalletClient): Promise<`0x${string}`[]>;
|
497
|
-
|
498
|
-
type GetPermissionsResponse = WalletPermission[];
|
499
|
-
declare function getPermissions(client: WalletClient): Promise<WalletPermission[]>;
|
500
|
-
|
501
|
-
declare function requestAccounts(client: WalletClient): Promise<`0x${string}`[]>;
|
502
|
-
|
503
|
-
type RequestPermissionsArgs = {
|
504
|
-
eth_accounts: Record<string, any>;
|
505
|
-
} & {
|
506
|
-
[key: string]: Record<string, any>;
|
507
|
-
};
|
508
|
-
type RequestPermissionsResponse = WalletPermission[];
|
509
|
-
declare function requestPermissions(client: WalletClient, permissions: RequestPermissionsArgs): Promise<WalletPermission[]>;
|
510
|
-
|
511
|
-
type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Formatted<TFormatter, TransactionRequest, true>, TransactionRequest>;
|
512
|
-
type SendTransactionArgs<TChain extends Chain = Chain> = FormattedTransactionRequest<TransactionRequestFormatter<TChain>> & {
|
513
|
-
chain?: TChain;
|
514
|
-
};
|
515
|
-
type SendTransactionResponse = Hash;
|
516
|
-
declare function sendTransaction<TChain extends Chain>(client: WalletClient, { chain, from, accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: SendTransactionArgs<TChain>): Promise<SendTransactionResponse>;
|
517
|
-
|
518
|
-
type SignMessageArgs = {
|
519
|
-
from: Address;
|
520
|
-
data: Hex | ByteArray;
|
521
|
-
};
|
522
|
-
type SignMessageResponse = Hex;
|
523
|
-
declare function signMessage(client: WalletClient, { from, data: data_ }: SignMessageArgs): Promise<SignMessageResponse>;
|
524
|
-
|
525
|
-
type SwitchChainArgs = {
|
526
|
-
id: Chain['id'];
|
527
|
-
};
|
528
|
-
declare function switchChain(client: WalletClient, { id }: SwitchChainArgs): Promise<void>;
|
529
|
-
|
530
|
-
type WatchAssetArgs = WatchAssetParams;
|
531
|
-
type WatchAssetResponse = boolean;
|
532
|
-
declare function watchAsset(client: WalletClient, params: WatchAssetParams): Promise<WatchAssetResponse>;
|
533
|
-
|
534
|
-
export { SetIntervalMiningArgs as $, GetTransactionResponse as A, GetTransactionReceiptArgs as B, CallArgs as C, DropTransactionArgs as D, EstimateGasArgs as E, GetTransactionReceiptResponse as F, GetBalanceArgs as G, IncreaseTimeArgs as H, ImpersonateAccountArgs as I, OnBlockNumber as J, OnBlockNumberResponse as K, OnBlockResponse as L, MineArgs as M, OnTransactions as N, OnBlock as O, OnTransactionsResponse as P, RequestPermissionsResponse as Q, ResetArgs as R, RevertArgs as S, SendTransactionArgs as T, SendTransactionResponse as U, SendUnsignedTransactionArgs as V, SendUnsignedTransactionResponse as W, SetBalanceArgs as X, SetBlockGasLimitArgs as Y, SetCodeArgs as Z, SetCoinbaseArgs as _, CallContractArgs as a, setMinGasPrice as a$, SetMinGasPriceArgs as a0, SetBlockTimestampIntervalArgs as a1, SetNextBlockTimestampArgs as a2, SetNextBlockBaseFeePerGasArgs as a3, SetNonceArgs as a4, SetStorageAtArgs as a5, SignMessageArgs as a6, SignMessageResponse as a7, StopImpersonatingAccountArgs as a8, SwitchChainArgs as a9, getGasPrice as aA, getPermissions as aB, getTransaction as aC, getTransactionConfirmations as aD, getTransactionCount as aE, getTransactionReceipt as aF, getTxpoolContent as aG, getTxpoolStatus as aH, impersonateAccount as aI, increaseTime as aJ, inspectTxpool as aK, mine as aL, removeBlockTimestampInterval as aM, reset as aN, requestAccounts as aO, requestPermissions as aP, revert as aQ, sendTransaction as aR, sendUnsignedTransaction as aS, setAutomine as aT, setBalance as aU, setBlockGasLimit as aV, setBlockTimestampInterval as aW, setCode as aX, setCoinbase as aY, setIntervalMining as aZ, setLoggingEnabled as a_, UninstallFilterArgs as aa, UninstallFilterResponse as ab, WaitForTransactionReceiptArgs as ac, WaitForTransactionReceiptResponse as ad, WatchAssetArgs as ae, WatchAssetResponse as af, WatchBlockNumberArgs as ag, WatchBlocksArgs as ah, WatchPendingTransactionsArgs as ai, addChain as aj, call as ak, callContract as al, createBlockFilter as am, createPendingTransactionFilter as an, estimateGas as ao, dropTransaction as ap, getAccounts as aq, getAutomine as ar, getBalance as as, getBlock as at, getBlockNumber as au, getBlockTransactionCount as av, getChainId as aw, getFeeHistory as ax, getFilterChanges as ay, getFilterLogs as az, CallContractResponse as b, setNextBlockBaseFeePerGas as b0, setNextBlockTimestamp as b1, setNonce as b2, setStorageAt as b3, signMessage as b4, snapshot as b5, stopImpersonatingAccount as b6, switchChain as b7, uninstallFilter as b8, waitForTransactionReceipt as b9, watchAsset as ba, watchBlockNumber as bb, watchBlocks as bc, watchPendingTransactions as bd, getBlockNumberCache as be, ReplacementReason as bf, ReplacementResponse as bg, FormattedTransactionRequest as bh, CallResponse as c, CreateBlockFilterResponse as d, CreatePendingTransactionFilterResponse as e, EstimateGasResponse as f, GetBalanceResponse as g, GetBlockArgs as h, GetBlockNumberArgs as i, GetBlockNumberResponse as j, GetBlockResponse as k, GetBlockTransactionCountArgs as l, GetBlockTransactionCountResponse as m, GetFeeHistoryArgs as n, GetFeeHistoryResponse as o, GetFilterChangesArgs as p, GetFilterChangesResponse as q, GetFilterLogsArgs as r, GetFilterLogsResponse as s, GetGasPriceResponse as t, GetPermissionsResponse as u, GetTransactionArgs as v, GetTransactionConfirmationsArgs as w, GetTransactionConfirmationsResponse as x, GetTransactionCountArgs as y, GetTransactionCountResponse as z };
|
553
|
+
export { SetBalanceArgs as $, GetTransactionConfirmationsArgs as A, GetTransactionConfirmationsResponse as B, CallArgs as C, DeployContractArgs as D, EstimateGasArgs as E, GetTransactionCountArgs as F, GetBalanceArgs as G, GetTransactionCountResponse as H, GetTransactionResponse as I, GetTransactionReceiptArgs as J, GetTransactionReceiptResponse as K, ImpersonateAccountArgs as L, IncreaseTimeArgs as M, MineArgs as N, OnBlock as O, OnBlockNumber as P, OnBlockNumberResponse as Q, OnBlockResponse as R, OnTransactions as S, OnTransactionsResponse as T, ResetArgs as U, RequestPermissionsResponse as V, RevertArgs as W, SendTransactionArgs as X, SendTransactionResponse as Y, SendUnsignedTransactionArgs as Z, SendUnsignedTransactionResponse as _, CallContractArgs as a, setBlockGasLimit as a$, SetBlockGasLimitArgs as a0, SetCodeArgs as a1, SetCoinbaseArgs as a2, SetIntervalMiningArgs as a3, SetMinGasPriceArgs as a4, SetBlockTimestampIntervalArgs as a5, SetNextBlockTimestampArgs as a6, SetNextBlockBaseFeePerGasArgs as a7, SetNonceArgs as a8, SetStorageAtArgs as a9, getBlockTransactionCount as aA, getBytecode as aB, getChainId as aC, getFeeHistory as aD, getFilterChanges as aE, getFilterLogs as aF, getGasPrice as aG, getPermissions as aH, getTransaction as aI, getTransactionConfirmations as aJ, getTransactionCount as aK, getTransactionReceipt as aL, getTxpoolContent as aM, getTxpoolStatus as aN, impersonateAccount as aO, increaseTime as aP, inspectTxpool as aQ, mine as aR, removeBlockTimestampInterval as aS, reset as aT, requestAccounts as aU, requestPermissions as aV, revert as aW, sendTransaction as aX, sendUnsignedTransaction as aY, setAutomine as aZ, setBalance as a_, SignMessageArgs as aa, SignMessageResponse as ab, StopImpersonatingAccountArgs as ac, SwitchChainArgs as ad, UninstallFilterArgs as ae, UninstallFilterResponse as af, WaitForTransactionReceiptArgs as ag, WaitForTransactionReceiptResponse as ah, WatchAssetArgs as ai, WatchAssetResponse as aj, WatchBlockNumberArgs as ak, WatchBlocksArgs as al, WatchPendingTransactionsArgs as am, addChain as an, call as ao, callContract as ap, createBlockFilter as aq, createPendingTransactionFilter as ar, deployContract as as, dropTransaction as at, estimateGas as au, getAccounts as av, getAutomine as aw, getBalance as ax, getBlock as ay, getBlockNumber as az, CallContractResponse as b, setBlockTimestampInterval as b0, setCode as b1, setCoinbase as b2, setIntervalMining as b3, setLoggingEnabled as b4, setMinGasPrice as b5, setNextBlockBaseFeePerGas as b6, setNextBlockTimestamp as b7, setNonce as b8, setStorageAt as b9, signMessage as ba, snapshot as bb, stopImpersonatingAccount as bc, switchChain as bd, uninstallFilter as be, waitForTransactionReceipt as bf, watchAsset as bg, watchBlockNumber as bh, watchBlocks as bi, watchPendingTransactions as bj, getBlockNumberCache as bk, ReplacementReason as bl, ReplacementResponse as bm, FormattedTransactionRequest as bn, CallResponse as c, CreateBlockFilterResponse as d, CreatePendingTransactionFilterResponse as e, EstimateGasResponse as f, DeployContractResponse as g, DropTransactionArgs as h, GetBalanceResponse as i, GetBlockArgs as j, GetBlockNumberArgs as k, GetBlockNumberResponse as l, GetBlockResponse as m, GetBlockTransactionCountArgs as n, GetBlockTransactionCountResponse as o, GetBytecodeArgs as p, GetBytecodeResponse as q, GetFeeHistoryArgs as r, GetFeeHistoryResponse as s, GetFilterChangesArgs as t, GetFilterChangesResponse as u, GetFilterLogsArgs as v, GetFilterLogsResponse as w, GetGasPriceResponse as x, GetPermissionsResponse as y, GetTransactionArgs as z };
|
@@ -129,4 +129,4 @@ type TransactionRequestFormatter<TChain extends Chain = Chain> = ExtractFormatte
|
|
129
129
|
type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, RpcTransactionRequest>;
|
130
130
|
declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
|
131
131
|
|
132
|
-
export { AbiItem as A, BlockFormatter as B, ExtractFunctionNameFromAbi as E, FormattedBlock as F, GetValue as G, TransactionRequestFormatter as T, FormattedTransaction as a, FormattedTransactionRequest as b, formatTransaction as c, formatTransactionRequest as d, Formatted as e, formatBlock as f, ExtractArgsFromAbi as g, ExtractResultFromAbi as h,
|
132
|
+
export { AbiItem as A, BlockFormatter as B, ExtractFunctionNameFromAbi as E, FormattedBlock as F, GetValue as G, TransactionRequestFormatter as T, FormattedTransaction as a, FormattedTransactionRequest as b, formatTransaction as c, formatTransactionRequest as d, Formatted as e, formatBlock as f, ExtractArgsFromAbi as g, ExtractResultFromAbi as h, ExtractConstructorArgsFromAbi as i, TransactionFormatter as j, FormattedTransactionReceipt as k, TransactionReceiptFormatter as l, ExtractFormatter as m, ExtractErrorArgsFromAbi as n, ExtractEventArgsFromAbi as o, format as p };
|
package/dist/utils/index.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
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-
|
2
|
-
import { A as AbiItem } from '../transactionRequest-
|
3
|
-
export { B as BlockFormatter,
|
1
|
+
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-21f98a29.js';
|
2
|
+
import { A as AbiItem } from '../transactionRequest-1d4e4385.js';
|
3
|
+
export { B as BlockFormatter, m as ExtractFormatter, e as Formatted, F as FormattedBlock, a as FormattedTransaction, k as FormattedTransactionReceipt, b as FormattedTransactionRequest, j as TransactionFormatter, l as TransactionReceiptFormatter, T as TransactionRequestFormatter, p as format, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from '../transactionRequest-1d4e4385.js';
|
4
4
|
import * as abitype_dist_abi_b1bae27f from 'abitype/dist/abi-b1bae27f';
|
5
5
|
import { Abi } from 'abitype';
|
6
6
|
import { A as Address } from '../rpc-b77c5aee.js';
|
7
|
+
import { Formatter } from '../chains.js';
|
7
8
|
export { r as rpc } from '../rpc-26932bae.js';
|
8
|
-
import '../chains.js';
|
9
9
|
import '@wagmi/chains';
|
10
10
|
|
11
11
|
declare function formatAbiItemWithArgs({ abiItem, args, includeFunctionName, includeName, }: {
|
@@ -47,6 +47,13 @@ declare function getContractError(err: unknown, { abi, address, args, functionNa
|
|
47
47
|
sender?: Address;
|
48
48
|
}): unknown;
|
49
49
|
|
50
|
+
/**
|
51
|
+
* @description Picks out the keys from `value` that exist in the formatter.
|
52
|
+
*/
|
53
|
+
declare function extract(value: Record<string, unknown>, { formatter }: {
|
54
|
+
formatter?: Formatter;
|
55
|
+
}): {};
|
56
|
+
|
50
57
|
declare function stringify(value: unknown): string;
|
51
58
|
|
52
|
-
export { buildRequest, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, formatAbiItemWithArgs, formatAbiItemWithParams, getAbiItem, getContractError, stringify };
|
59
|
+
export { buildRequest, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, formatAbiItemWithArgs, formatAbiItemWithParams, getAbiItem, getContractError, stringify };
|
package/dist/utils/index.js
CHANGED
@@ -71,8 +71,8 @@
|
|
71
71
|
|
72
72
|
|
73
73
|
|
74
|
-
var _chunkA3PVAH22js = require('../chunk-A3PVAH22.js');
|
75
74
|
|
75
|
+
var _chunk6Z62LPKBjs = require('../chunk-6Z62LPKB.js');
|
76
76
|
|
77
77
|
|
78
78
|
|
@@ -145,4 +145,6 @@ var _chunkA3PVAH22js = require('../chunk-A3PVAH22.js');
|
|
145
145
|
|
146
146
|
|
147
147
|
|
148
|
-
|
148
|
+
|
149
|
+
|
150
|
+
exports.boolToBytes = _chunk6Z62LPKBjs.boolToBytes; exports.boolToHex = _chunk6Z62LPKBjs.boolToHex; exports.buildRequest = _chunk6Z62LPKBjs.buildRequest; exports.bytesToBigint = _chunk6Z62LPKBjs.bytesToBigint; exports.bytesToBool = _chunk6Z62LPKBjs.bytesToBool; exports.bytesToHex = _chunk6Z62LPKBjs.bytesToHex; exports.bytesToNumber = _chunk6Z62LPKBjs.bytesToNumber; exports.bytesToString = _chunk6Z62LPKBjs.bytesToString; 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.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.extract = _chunk6Z62LPKBjs.extract; exports.extractFunctionName = _chunk6Z62LPKBjs.extractFunctionName; exports.extractFunctionParams = _chunk6Z62LPKBjs.extractFunctionParams; exports.extractFunctionParts = _chunk6Z62LPKBjs.extractFunctionParts; exports.extractFunctionType = _chunk6Z62LPKBjs.extractFunctionType; exports.format = _chunk6Z62LPKBjs.format; exports.formatAbiItemWithArgs = _chunk6Z62LPKBjs.formatAbiItemWithArgs; exports.formatAbiItemWithParams = _chunk6Z62LPKBjs.formatAbiItemWithParams; 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.getAbiItem = _chunk6Z62LPKBjs.getAbiItem; exports.getAddress = _chunk6Z62LPKBjs.getAddress; exports.getContractAddress = _chunk6Z62LPKBjs.getContractAddress; exports.getContractError = _chunk6Z62LPKBjs.getContractError; exports.getCreate2Address = _chunk6Z62LPKBjs.getCreate2Address; exports.getCreateAddress = _chunk6Z62LPKBjs.getCreateAddress; exports.getEventSignature = _chunk6Z62LPKBjs.getEventSignature; exports.getFunctionSignature = _chunk6Z62LPKBjs.getFunctionSignature; exports.hexToBigInt = _chunk6Z62LPKBjs.hexToBigInt; exports.hexToBool = _chunk6Z62LPKBjs.hexToBool; exports.hexToBytes = _chunk6Z62LPKBjs.hexToBytes; exports.hexToNumber = _chunk6Z62LPKBjs.hexToNumber; exports.hexToString = _chunk6Z62LPKBjs.hexToString; exports.isAddress = _chunk6Z62LPKBjs.isAddress; exports.isAddressEqual = _chunk6Z62LPKBjs.isAddressEqual; exports.isBytes = _chunk6Z62LPKBjs.isBytes; exports.isHex = _chunk6Z62LPKBjs.isHex; exports.keccak256 = _chunk6Z62LPKBjs.keccak256; 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.rpc = _chunk6Z62LPKBjs.rpc; exports.size = _chunk6Z62LPKBjs.size; exports.slice = _chunk6Z62LPKBjs.slice; exports.sliceBytes = _chunk6Z62LPKBjs.sliceBytes; exports.sliceHex = _chunk6Z62LPKBjs.sliceHex; exports.stringToBytes = _chunk6Z62LPKBjs.stringToBytes; exports.stringToHex = _chunk6Z62LPKBjs.stringToHex; exports.stringify = _chunk6Z62LPKBjs.stringify; exports.trim = _chunk6Z62LPKBjs.trim;
|
package/dist/utils/index.mjs
CHANGED
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
encodeFunctionResult,
|
24
24
|
encodeHex,
|
25
25
|
encodeRlp,
|
26
|
+
extract,
|
26
27
|
extractFunctionName,
|
27
28
|
extractFunctionParams,
|
28
29
|
extractFunctionParts,
|
@@ -71,7 +72,7 @@ import {
|
|
71
72
|
stringToHex,
|
72
73
|
stringify,
|
73
74
|
trim
|
74
|
-
} from "../chunk-
|
75
|
+
} from "../chunk-KB6CBNKW.mjs";
|
75
76
|
export {
|
76
77
|
boolToBytes,
|
77
78
|
boolToHex,
|
@@ -97,6 +98,7 @@ export {
|
|
97
98
|
encodeFunctionResult,
|
98
99
|
encodeHex,
|
99
100
|
encodeRlp,
|
101
|
+
extract,
|
100
102
|
extractFunctionName,
|
101
103
|
extractFunctionParams,
|
102
104
|
extractFunctionParts,
|