viem 0.0.1-alpha.8 → 0.0.1-cjs.10

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.
Files changed (39) hide show
  1. package/actions/package.json +1 -1
  2. package/chains/package.json +1 -1
  3. package/clients/package.json +1 -1
  4. package/dist/actions/index.d.ts +5 -4
  5. package/dist/actions/index.js +125 -124
  6. package/dist/actions/index.mjs +125 -0
  7. package/dist/chains.d.ts +2 -2
  8. package/dist/chains.js +75 -76
  9. package/dist/chains.mjs +133 -0
  10. package/dist/chunk-2FDH6XP5.mjs +2616 -0
  11. package/dist/chunk-46ZFLVHC.js +1084 -0
  12. package/dist/chunk-5ZBNF5WM.js +2616 -0
  13. package/dist/{chunk-BIQ5KSX5.js → chunk-CWCWWGBC.mjs} +1 -1
  14. package/dist/{chunk-N6PIT2C5.js → chunk-HLVCJ7RV.mjs} +49 -12
  15. package/dist/chunk-SGTIBKHG.js +258 -0
  16. package/dist/clients/index.d.ts +3 -3
  17. package/dist/clients/index.js +23 -23
  18. package/dist/clients/index.mjs +23 -0
  19. package/dist/{createWalletClient-b5c3c89e.d.ts → createWalletClient-d612fe08.d.ts} +1 -1
  20. package/dist/{eip1193-100454ab.d.ts → eip1193-020a6f13.d.ts} +1 -1
  21. package/dist/index.d.ts +40 -18
  22. package/dist/index.js +374 -374
  23. package/dist/index.mjs +374 -0
  24. package/dist/{parseGwei-14f716fc.d.ts → parseGwei-7c87ff41.d.ts} +40 -118
  25. package/dist/transactionRequest-08d30731.d.ts +132 -0
  26. package/dist/utils/index.d.ts +38 -5
  27. package/dist/utils/index.js +148 -138
  28. package/dist/utils/index.mjs +148 -0
  29. package/dist/{watchAsset-e99e744d.d.ts → watchAsset-bc6373f4.d.ts} +17 -5
  30. package/dist/{webSocket-f4abf66c.d.ts → webSocket-7f88e9e0.d.ts} +1 -1
  31. package/dist/window.d.ts +1 -1
  32. package/dist/window.js +1 -0
  33. package/dist/window.mjs +0 -0
  34. package/package.json +9 -3
  35. package/utils/package.json +1 -1
  36. package/window/package.json +1 -1
  37. package/dist/chunk-4Z43OTO6.js +0 -1349
  38. package/dist/chunk-ALVD6MNU.js +0 -1113
  39. package/dist/transactionRequest-3e463099.d.ts +0 -44
@@ -1,4 +1,4 @@
1
1
  {
2
- "type": "module",
2
+ "module": "../dist/actions/index.mjs",
3
3
  "main": "../dist/actions/index.js"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "type": "module",
2
+ "module": "../dist/chains.mjs",
3
3
  "main": "../dist/chains.js"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "type": "module",
2
+ "module": "../dist/clients/index.mjs",
3
3
  "main": "../dist/clients/index.js"
4
4
  }
@@ -1,7 +1,8 @@
1
- export { C as CallArgs, a as CallResponse, b as CreateBlockFilterResponse, c as CreatePendingTransactionFilterResponse, D as DropTransactionArgs, E as EstimateGasArgs, d as EstimateGasResponse, be as FormattedTransactionRequest, G as GetBalanceArgs, e as GetBalanceResponse, f as GetBlockArgs, g as GetBlockNumberArgs, h as GetBlockNumberResponse, i as GetBlockResponse, j as GetBlockTransactionCountArgs, k as GetBlockTransactionCountResponse, l as GetFeeHistoryArgs, m as GetFeeHistoryResponse, n as GetFilterChangesArgs, o as GetFilterChangesResponse, p as GetFilterLogsArgs, q as GetFilterLogsResponse, r as GetGasPriceResponse, s as GetPermissionsResponse, t as GetTransactionArgs, u as GetTransactionConfirmationsArgs, v as GetTransactionConfirmationsResponse, w as GetTransactionCountArgs, x as GetTransactionCountResponse, z as GetTransactionReceiptArgs, A as GetTransactionReceiptResponse, y as GetTransactionResponse, I as ImpersonateAccountArgs, B as IncreaseTimeArgs, M as MineArgs, O as OnBlock, F as OnBlockNumber, H as OnBlockNumberResponse, J as OnBlockResponse, K as OnTransactions, L as OnTransactionsResponse, bc as ReplacementReason, bd as ReplacementResponse, N as RequestPermissionsResponse, R as ResetArgs, P as RevertArgs, S as SendTransactionArgs, Q as SendTransactionResponse, T as SendUnsignedTransactionArgs, U as SendUnsignedTransactionResponse, V as SetBalanceArgs, W as SetBlockGasLimitArgs, $ as SetBlockTimestampIntervalArgs, X as SetCodeArgs, Y as SetCoinbaseArgs, Z as SetIntervalMiningArgs, _ as SetMinGasPriceArgs, a1 as SetNextBlockBaseFeePerGasArgs, a0 as SetNextBlockTimestampArgs, a2 as SetNonceArgs, a3 as SetStorageAtArgs, a4 as SignMessageArgs, a5 as SignMessageResponse, a6 as StopImpersonatingAccountArgs, a7 as SwitchChainArgs, a8 as UninstallFilterArgs, a9 as UninstallFilterResponse, aa as WaitForTransactionReceiptArgs, ab as WaitForTransactionReceiptResponse, ac as WatchAssetArgs, ad as WatchAssetResponse, ae as WatchBlockNumberArgs, af as WatchBlocksArgs, ag as WatchPendingTransactionsArgs, ah as addChain, ai as call, aj as createBlockFilter, ak as createPendingTransactionFilter, am as dropTransaction, al as estimateGas, an as getAccounts, ao as getAutomine, ap as getBalance, aq as getBlock, ar as getBlockNumber, bb as getBlockNumberCache, as as getBlockTransactionCount, at as getChainId, au as getFeeHistory, av as getFilterChanges, aw as getFilterLogs, ax as getGasPrice, ay as getPermissions, az as getTransaction, aA as getTransactionConfirmations, aB as getTransactionCount, aC as getTransactionReceipt, aD as getTxpoolContent, aE as getTxpoolStatus, aF as impersonateAccount, aG as increaseTime, aH as inspectTxpool, aI as mine, aJ as removeBlockTimestampInterval, aL as requestAccounts, aM as requestPermissions, aK as reset, aN as revert, aO as sendTransaction, aP as sendUnsignedTransaction, aQ as setAutomine, aR as setBalance, aS as setBlockGasLimit, aT as setBlockTimestampInterval, aU as setCode, aV as setCoinbase, aW as setIntervalMining, aX as setLoggingEnabled, aY as setMinGasPrice, aZ as setNextBlockBaseFeePerGas, a_ as setNextBlockTimestamp, a$ as setNonce, b0 as setStorageAt, b1 as signMessage, b2 as snapshot, b3 as stopImpersonatingAccount, b4 as switchChain, b5 as uninstallFilter, b6 as waitForTransactionReceipt, b7 as watchAsset, b8 as watchBlockNumber, b9 as watchBlocks, ba as watchPendingTransactions } from '../watchAsset-e99e744d.js';
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, bh as FormattedTransactionRequest, G as GetBalanceArgs, g as GetBalanceResponse, h as GetBlockArgs, i as GetBlockNumberArgs, j as GetBlockNumberResponse, k as GetBlockResponse, l as GetBlockTransactionCountArgs, m as GetBlockTransactionCountResponse, n as GetFeeHistoryArgs, o as GetFeeHistoryResponse, p as GetFilterChangesArgs, q as GetFilterChangesResponse, r as GetFilterLogsArgs, s as GetFilterLogsResponse, t as GetGasPriceResponse, u as GetPermissionsResponse, v as GetTransactionArgs, w as GetTransactionConfirmationsArgs, x as GetTransactionConfirmationsResponse, y as GetTransactionCountArgs, z as GetTransactionCountResponse, B as GetTransactionReceiptArgs, F as GetTransactionReceiptResponse, A as GetTransactionResponse, I as ImpersonateAccountArgs, H as IncreaseTimeArgs, M as MineArgs, O as OnBlock, J as OnBlockNumber, K as OnBlockNumberResponse, L as OnBlockResponse, N as OnTransactions, P as OnTransactionsResponse, bf as ReplacementReason, bg as ReplacementResponse, Q as RequestPermissionsResponse, R as ResetArgs, S as RevertArgs, T as SendTransactionArgs, U as SendTransactionResponse, V as SendUnsignedTransactionArgs, W as SendUnsignedTransactionResponse, X as SetBalanceArgs, Y as SetBlockGasLimitArgs, a1 as SetBlockTimestampIntervalArgs, Z as SetCodeArgs, _ as SetCoinbaseArgs, $ as SetIntervalMiningArgs, a0 as SetMinGasPriceArgs, a3 as SetNextBlockBaseFeePerGasArgs, a2 as SetNextBlockTimestampArgs, a4 as SetNonceArgs, a5 as SetStorageAtArgs, a6 as SignMessageArgs, a7 as SignMessageResponse, a8 as StopImpersonatingAccountArgs, a9 as SwitchChainArgs, aa as UninstallFilterArgs, ab as UninstallFilterResponse, ac as WaitForTransactionReceiptArgs, ad as WaitForTransactionReceiptResponse, ae as WatchAssetArgs, af as WatchAssetResponse, ag as WatchBlockNumberArgs, ah as WatchBlocksArgs, ai as WatchPendingTransactionsArgs, aj as addChain, ak as call, al as callContract, am as createBlockFilter, an as createPendingTransactionFilter, ap as dropTransaction, ao as estimateGas, aq as getAccounts, ar as getAutomine, as as getBalance, at as getBlock, au as getBlockNumber, be as getBlockNumberCache, av as getBlockTransactionCount, aw as getChainId, ax as getFeeHistory, ay as getFilterChanges, az as getFilterLogs, aA as getGasPrice, aB as getPermissions, aC as getTransaction, aD as getTransactionConfirmations, aE as getTransactionCount, aF as getTransactionReceipt, aG as getTxpoolContent, aH as getTxpoolStatus, aI as impersonateAccount, aJ as increaseTime, aK as inspectTxpool, aL as mine, aM as removeBlockTimestampInterval, aO as requestAccounts, aP as requestPermissions, aN as reset, aQ as revert, aR as sendTransaction, aS as sendUnsignedTransaction, aT as setAutomine, aU as setBalance, aV as setBlockGasLimit, aW as setBlockTimestampInterval, aX as setCode, aY as setCoinbase, aZ as setIntervalMining, a_ as setLoggingEnabled, a$ as setMinGasPrice, b0 as setNextBlockBaseFeePerGas, b1 as setNextBlockTimestamp, b2 as setNonce, b3 as setStorageAt, b4 as signMessage, b5 as snapshot, b6 as stopImpersonatingAccount, b7 as switchChain, b8 as uninstallFilter, b9 as waitForTransactionReceipt, ba as watchAsset, bb as watchBlockNumber, bc as watchBlocks, bd as watchPendingTransactions } from '../watchAsset-bc6373f4.js';
2
+ import 'abitype';
2
3
  import '../chains.js';
3
4
  import '../rpc-b77c5aee.js';
4
5
  import '@wagmi/chains';
5
- import '../createWalletClient-b5c3c89e.js';
6
- import '../eip1193-100454ab.js';
7
- import '../transactionRequest-3e463099.js';
6
+ import '../transactionRequest-08d30731.js';
7
+ import '../createWalletClient-d612fe08.js';
8
+ import '../eip1193-020a6f13.js';
@@ -1,124 +1,125 @@
1
- import {
2
- addChain,
3
- call,
4
- createBlockFilter,
5
- createPendingTransactionFilter,
6
- dropTransaction,
7
- estimateGas,
8
- getAccounts,
9
- getAutomine,
10
- getBalance,
11
- getBlock,
12
- getBlockNumber,
13
- getBlockNumberCache,
14
- getBlockTransactionCount,
15
- getChainId,
16
- getFeeHistory,
17
- getFilterChanges,
18
- getFilterLogs,
19
- getGasPrice,
20
- getPermissions,
21
- getTransaction,
22
- getTransactionConfirmations,
23
- getTransactionCount,
24
- getTransactionReceipt,
25
- getTxpoolContent,
26
- getTxpoolStatus,
27
- impersonateAccount,
28
- increaseTime,
29
- inspectTxpool,
30
- mine,
31
- removeBlockTimestampInterval,
32
- requestAccounts,
33
- requestPermissions,
34
- reset,
35
- revert,
36
- sendTransaction,
37
- sendUnsignedTransaction,
38
- setAutomine,
39
- setBalance,
40
- setBlockGasLimit,
41
- setBlockTimestampInterval,
42
- setCode,
43
- setCoinbase,
44
- setIntervalMining,
45
- setLoggingEnabled,
46
- setMinGasPrice,
47
- setNextBlockBaseFeePerGas,
48
- setNextBlockTimestamp,
49
- setNonce,
50
- setStorageAt,
51
- signMessage,
52
- snapshot,
53
- stopImpersonatingAccount,
54
- switchChain,
55
- uninstallFilter,
56
- waitForTransactionReceipt,
57
- watchAsset,
58
- watchBlockNumber,
59
- watchBlocks,
60
- watchPendingTransactions
61
- } from "../chunk-N6PIT2C5.js";
62
- import "../chunk-4Z43OTO6.js";
63
- import "../chunk-ALVD6MNU.js";
64
- export {
65
- addChain,
66
- call,
67
- createBlockFilter,
68
- createPendingTransactionFilter,
69
- dropTransaction,
70
- estimateGas,
71
- getAccounts,
72
- getAutomine,
73
- getBalance,
74
- getBlock,
75
- getBlockNumber,
76
- getBlockNumberCache,
77
- getBlockTransactionCount,
78
- getChainId,
79
- getFeeHistory,
80
- getFilterChanges,
81
- getFilterLogs,
82
- getGasPrice,
83
- getPermissions,
84
- getTransaction,
85
- getTransactionConfirmations,
86
- getTransactionCount,
87
- getTransactionReceipt,
88
- getTxpoolContent,
89
- getTxpoolStatus,
90
- impersonateAccount,
91
- increaseTime,
92
- inspectTxpool,
93
- mine,
94
- removeBlockTimestampInterval,
95
- requestAccounts,
96
- requestPermissions,
97
- reset,
98
- revert,
99
- sendTransaction,
100
- sendUnsignedTransaction,
101
- setAutomine,
102
- setBalance,
103
- setBlockGasLimit,
104
- setBlockTimestampInterval,
105
- setCode,
106
- setCoinbase,
107
- setIntervalMining,
108
- setLoggingEnabled,
109
- setMinGasPrice,
110
- setNextBlockBaseFeePerGas,
111
- setNextBlockTimestamp,
112
- setNonce,
113
- setStorageAt,
114
- signMessage,
115
- snapshot,
116
- stopImpersonatingAccount,
117
- switchChain,
118
- uninstallFilter,
119
- waitForTransactionReceipt,
120
- watchAsset,
121
- watchBlockNumber,
122
- watchBlocks,
123
- watchPendingTransactions
124
- };
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
+
29
+
30
+
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
+
59
+
60
+
61
+
62
+ var _chunk46ZFLVHCjs = require('../chunk-46ZFLVHC.js');
63
+ require('../chunk-5ZBNF5WM.js');
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+ exports.addChain = _chunk46ZFLVHCjs.addChain; exports.call = _chunk46ZFLVHCjs.call; exports.callContract = _chunk46ZFLVHCjs.callContract; exports.createBlockFilter = _chunk46ZFLVHCjs.createBlockFilter; exports.createPendingTransactionFilter = _chunk46ZFLVHCjs.createPendingTransactionFilter; exports.dropTransaction = _chunk46ZFLVHCjs.dropTransaction; exports.estimateGas = _chunk46ZFLVHCjs.estimateGas; exports.getAccounts = _chunk46ZFLVHCjs.getAccounts; exports.getAutomine = _chunk46ZFLVHCjs.getAutomine; exports.getBalance = _chunk46ZFLVHCjs.getBalance; exports.getBlock = _chunk46ZFLVHCjs.getBlock; exports.getBlockNumber = _chunk46ZFLVHCjs.getBlockNumber; exports.getBlockNumberCache = _chunk46ZFLVHCjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunk46ZFLVHCjs.getBlockTransactionCount; exports.getChainId = _chunk46ZFLVHCjs.getChainId; exports.getFeeHistory = _chunk46ZFLVHCjs.getFeeHistory; exports.getFilterChanges = _chunk46ZFLVHCjs.getFilterChanges; exports.getFilterLogs = _chunk46ZFLVHCjs.getFilterLogs; exports.getGasPrice = _chunk46ZFLVHCjs.getGasPrice; exports.getPermissions = _chunk46ZFLVHCjs.getPermissions; exports.getTransaction = _chunk46ZFLVHCjs.getTransaction; exports.getTransactionConfirmations = _chunk46ZFLVHCjs.getTransactionConfirmations; exports.getTransactionCount = _chunk46ZFLVHCjs.getTransactionCount; exports.getTransactionReceipt = _chunk46ZFLVHCjs.getTransactionReceipt; exports.getTxpoolContent = _chunk46ZFLVHCjs.getTxpoolContent; exports.getTxpoolStatus = _chunk46ZFLVHCjs.getTxpoolStatus; exports.impersonateAccount = _chunk46ZFLVHCjs.impersonateAccount; exports.increaseTime = _chunk46ZFLVHCjs.increaseTime; exports.inspectTxpool = _chunk46ZFLVHCjs.inspectTxpool; exports.mine = _chunk46ZFLVHCjs.mine; exports.removeBlockTimestampInterval = _chunk46ZFLVHCjs.removeBlockTimestampInterval; exports.requestAccounts = _chunk46ZFLVHCjs.requestAccounts; exports.requestPermissions = _chunk46ZFLVHCjs.requestPermissions; exports.reset = _chunk46ZFLVHCjs.reset; exports.revert = _chunk46ZFLVHCjs.revert; exports.sendTransaction = _chunk46ZFLVHCjs.sendTransaction; exports.sendUnsignedTransaction = _chunk46ZFLVHCjs.sendUnsignedTransaction; exports.setAutomine = _chunk46ZFLVHCjs.setAutomine; exports.setBalance = _chunk46ZFLVHCjs.setBalance; exports.setBlockGasLimit = _chunk46ZFLVHCjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunk46ZFLVHCjs.setBlockTimestampInterval; exports.setCode = _chunk46ZFLVHCjs.setCode; exports.setCoinbase = _chunk46ZFLVHCjs.setCoinbase; exports.setIntervalMining = _chunk46ZFLVHCjs.setIntervalMining; exports.setLoggingEnabled = _chunk46ZFLVHCjs.setLoggingEnabled; exports.setMinGasPrice = _chunk46ZFLVHCjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunk46ZFLVHCjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunk46ZFLVHCjs.setNextBlockTimestamp; exports.setNonce = _chunk46ZFLVHCjs.setNonce; exports.setStorageAt = _chunk46ZFLVHCjs.setStorageAt; exports.signMessage = _chunk46ZFLVHCjs.signMessage; exports.snapshot = _chunk46ZFLVHCjs.snapshot; exports.stopImpersonatingAccount = _chunk46ZFLVHCjs.stopImpersonatingAccount; exports.switchChain = _chunk46ZFLVHCjs.switchChain; exports.uninstallFilter = _chunk46ZFLVHCjs.uninstallFilter; exports.waitForTransactionReceipt = _chunk46ZFLVHCjs.waitForTransactionReceipt; exports.watchAsset = _chunk46ZFLVHCjs.watchAsset; exports.watchBlockNumber = _chunk46ZFLVHCjs.watchBlockNumber; exports.watchBlocks = _chunk46ZFLVHCjs.watchBlocks; exports.watchPendingTransactions = _chunk46ZFLVHCjs.watchPendingTransactions;
@@ -0,0 +1,125 @@
1
+ import {
2
+ addChain,
3
+ call,
4
+ callContract,
5
+ createBlockFilter,
6
+ createPendingTransactionFilter,
7
+ dropTransaction,
8
+ estimateGas,
9
+ getAccounts,
10
+ getAutomine,
11
+ getBalance,
12
+ getBlock,
13
+ getBlockNumber,
14
+ getBlockNumberCache,
15
+ getBlockTransactionCount,
16
+ getChainId,
17
+ getFeeHistory,
18
+ getFilterChanges,
19
+ getFilterLogs,
20
+ getGasPrice,
21
+ getPermissions,
22
+ getTransaction,
23
+ getTransactionConfirmations,
24
+ getTransactionCount,
25
+ getTransactionReceipt,
26
+ getTxpoolContent,
27
+ getTxpoolStatus,
28
+ impersonateAccount,
29
+ increaseTime,
30
+ inspectTxpool,
31
+ mine,
32
+ removeBlockTimestampInterval,
33
+ requestAccounts,
34
+ requestPermissions,
35
+ reset,
36
+ revert,
37
+ sendTransaction,
38
+ sendUnsignedTransaction,
39
+ setAutomine,
40
+ setBalance,
41
+ setBlockGasLimit,
42
+ setBlockTimestampInterval,
43
+ setCode,
44
+ setCoinbase,
45
+ setIntervalMining,
46
+ setLoggingEnabled,
47
+ setMinGasPrice,
48
+ setNextBlockBaseFeePerGas,
49
+ setNextBlockTimestamp,
50
+ setNonce,
51
+ setStorageAt,
52
+ signMessage,
53
+ snapshot,
54
+ stopImpersonatingAccount,
55
+ switchChain,
56
+ uninstallFilter,
57
+ waitForTransactionReceipt,
58
+ watchAsset,
59
+ watchBlockNumber,
60
+ watchBlocks,
61
+ watchPendingTransactions
62
+ } from "../chunk-HLVCJ7RV.mjs";
63
+ import "../chunk-2FDH6XP5.mjs";
64
+ export {
65
+ addChain,
66
+ call,
67
+ callContract,
68
+ createBlockFilter,
69
+ createPendingTransactionFilter,
70
+ dropTransaction,
71
+ estimateGas,
72
+ getAccounts,
73
+ getAutomine,
74
+ getBalance,
75
+ getBlock,
76
+ getBlockNumber,
77
+ getBlockNumberCache,
78
+ getBlockTransactionCount,
79
+ getChainId,
80
+ getFeeHistory,
81
+ getFilterChanges,
82
+ getFilterLogs,
83
+ getGasPrice,
84
+ getPermissions,
85
+ getTransaction,
86
+ getTransactionConfirmations,
87
+ getTransactionCount,
88
+ getTransactionReceipt,
89
+ getTxpoolContent,
90
+ getTxpoolStatus,
91
+ impersonateAccount,
92
+ increaseTime,
93
+ inspectTxpool,
94
+ mine,
95
+ removeBlockTimestampInterval,
96
+ requestAccounts,
97
+ requestPermissions,
98
+ reset,
99
+ revert,
100
+ sendTransaction,
101
+ sendUnsignedTransaction,
102
+ setAutomine,
103
+ setBalance,
104
+ setBlockGasLimit,
105
+ setBlockTimestampInterval,
106
+ setCode,
107
+ setCoinbase,
108
+ setIntervalMining,
109
+ setLoggingEnabled,
110
+ setMinGasPrice,
111
+ setNextBlockBaseFeePerGas,
112
+ setNextBlockTimestamp,
113
+ setNonce,
114
+ setStorageAt,
115
+ signMessage,
116
+ snapshot,
117
+ stopImpersonatingAccount,
118
+ switchChain,
119
+ uninstallFilter,
120
+ waitForTransactionReceipt,
121
+ watchAsset,
122
+ watchBlockNumber,
123
+ watchBlocks,
124
+ watchPendingTransactions
125
+ };
package/dist/chains.d.ts CHANGED
@@ -24,7 +24,7 @@ declare const defineBlock: <TFormat extends Formatter<Partial<RpcBlock>, Partial
24
24
  }) => Block<bigint, Transaction<bigint, number>> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
25
25
  declare const defineTransaction: <TFormat extends Formatter<Partial<RpcTransaction>, Partial<Transaction<bigint, number>> & {
26
26
  [key: string]: unknown;
27
- }>, TExclude extends ("type" | "gas" | "blockHash" | "blockNumber" | "hash" | "value" | "from" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList")[] = []>({ exclude, format: formatOverride, }: {
27
+ }>, TExclude extends ("type" | "gas" | "value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "blockHash" | "blockNumber" | "hash" | "from" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "accessList")[] = []>({ exclude, format: formatOverride, }: {
28
28
  exclude?: TExclude | undefined;
29
29
  format?: TFormat | undefined;
30
30
  }) => (data: Partial<RpcTransaction> & {
@@ -32,7 +32,7 @@ declare const defineTransaction: <TFormat extends Formatter<Partial<RpcTransacti
32
32
  }) => Transaction<bigint, number> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
33
33
  declare const defineTransactionRequest: <TFormat extends Formatter<Partial<TransactionRequest<bigint, number>>, Partial<RpcTransactionRequest> & {
34
34
  [key: string]: unknown;
35
- }>, TExclude extends ("gas" | "data" | "value" | "from" | "nonce" | "to" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList")[] = []>({ exclude, format: formatOverride, }: {
35
+ }>, TExclude extends ("gas" | "value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "data" | "from" | "nonce" | "to" | "accessList")[] = []>({ exclude, format: formatOverride, }: {
36
36
  exclude?: TExclude | undefined;
37
37
  format?: TFormat | undefined;
38
38
  }) => (data: Partial<TransactionRequest<bigint, number>> & {
package/dist/chains.js CHANGED
@@ -1,32 +1,31 @@
1
- import {
2
- formatBlock,
3
- formatTransaction,
4
- formatTransactionReceipt,
5
- formatTransactionRequest
6
- } from "./chunk-4Z43OTO6.js";
7
- import "./chunk-ALVD6MNU.js";
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+
4
+
5
+
6
+ var _chunk5ZBNF5WMjs = require('./chunk-5ZBNF5WM.js');
8
7
 
9
8
  // src/chains.ts
10
- import {
11
- arbitrumGoerli as arbitrumGoerli_,
12
- arbitrum as arbitrum_,
13
- avalancheFuji as avalancheFuji_,
14
- avalanche as avalanche_,
15
- bscTestnet as bscTestnet_,
16
- bsc as bsc_,
17
- fantomTestnet as fantomTestnet_,
18
- fantom as fantom_,
19
- foundry as foundry_,
20
- goerli as goerli_,
21
- hardhat as hardhat_,
22
- localhost as localhost_,
23
- mainnet as mainnet_,
24
- optimismGoerli as optimismGoerli_,
25
- optimism as optimism_,
26
- polygonMumbai as polygonMumbai_,
27
- polygon as polygon_,
28
- sepolia as sepolia_
29
- } from "@wagmi/chains";
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+ var _chains = require('@wagmi/chains');
30
29
  function defineChain(chain) {
31
30
  return chain;
32
31
  }
@@ -45,24 +44,24 @@ function defineFormatter({
45
44
  }
46
45
  return {
47
46
  ...formatted,
48
- ...formatOverride?.(data)
47
+ ..._optionalChain([formatOverride, 'optionalCall', _ => _(data)])
49
48
  };
50
49
  };
51
50
  }
52
- var defineBlock = defineFormatter({ format: formatBlock });
53
- var defineTransaction = defineFormatter({ format: formatTransaction });
51
+ var defineBlock = defineFormatter({ format: _chunk5ZBNF5WMjs.formatBlock });
52
+ var defineTransaction = defineFormatter({ format: _chunk5ZBNF5WMjs.formatTransaction });
54
53
  var defineTransactionRequest = defineFormatter({
55
- format: formatTransactionRequest
54
+ format: _chunk5ZBNF5WMjs.formatTransactionRequest
56
55
  });
57
56
  var defineTransactionReceipt = defineFormatter({
58
- format: formatTransactionReceipt
57
+ format: _chunk5ZBNF5WMjs.formatTransactionReceipt
59
58
  });
60
- var arbitrumGoerli = defineChain(arbitrumGoerli_);
61
- var arbitrum = defineChain(arbitrum_);
62
- var avalancheFuji = defineChain(avalancheFuji_);
63
- var avalanche = defineChain(avalanche_);
64
- var bscTestnet = defineChain(bscTestnet_);
65
- var bsc = defineChain(bsc_);
59
+ var arbitrumGoerli = defineChain(_chains.arbitrumGoerli);
60
+ var arbitrum = defineChain(_chains.arbitrum);
61
+ var avalancheFuji = defineChain(_chains.avalancheFuji);
62
+ var avalanche = defineChain(_chains.avalanche);
63
+ var bscTestnet = defineChain(_chains.bscTestnet);
64
+ var bsc = defineChain(_chains.bsc);
66
65
  var celo = defineChain({
67
66
  id: 42220,
68
67
  name: "Celo",
@@ -94,41 +93,41 @@ var celo = defineChain({
94
93
  })
95
94
  }
96
95
  });
97
- var fantomTestnet = defineChain(fantomTestnet_);
98
- var fantom = defineChain(fantom_);
99
- var foundry = defineChain(foundry_);
100
- var goerli = defineChain(goerli_);
101
- var hardhat = defineChain(hardhat_);
102
- var localhost = defineChain(localhost_);
103
- var mainnet = defineChain(mainnet_);
104
- var optimismGoerli = defineChain(optimismGoerli_);
105
- var optimism = defineChain(optimism_);
106
- var polygonMumbai = defineChain(polygonMumbai_);
107
- var polygon = defineChain(polygon_);
108
- var sepolia = defineChain(sepolia_);
109
- export {
110
- arbitrum,
111
- arbitrumGoerli,
112
- avalanche,
113
- avalancheFuji,
114
- bsc,
115
- bscTestnet,
116
- celo,
117
- defineBlock,
118
- defineChain,
119
- defineTransaction,
120
- defineTransactionReceipt,
121
- defineTransactionRequest,
122
- fantom,
123
- fantomTestnet,
124
- foundry,
125
- goerli,
126
- hardhat,
127
- localhost,
128
- mainnet,
129
- optimism,
130
- optimismGoerli,
131
- polygon,
132
- polygonMumbai,
133
- sepolia
134
- };
96
+ var fantomTestnet = defineChain(_chains.fantomTestnet);
97
+ var fantom = defineChain(_chains.fantom);
98
+ var foundry = defineChain(_chains.foundry);
99
+ var goerli = defineChain(_chains.goerli);
100
+ var hardhat = defineChain(_chains.hardhat);
101
+ var localhost = defineChain(_chains.localhost);
102
+ var mainnet = defineChain(_chains.mainnet);
103
+ var optimismGoerli = defineChain(_chains.optimismGoerli);
104
+ var optimism = defineChain(_chains.optimism);
105
+ var polygonMumbai = defineChain(_chains.polygonMumbai);
106
+ var polygon = defineChain(_chains.polygon);
107
+ var sepolia = defineChain(_chains.sepolia);
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ exports.arbitrum = arbitrum; exports.arbitrumGoerli = arbitrumGoerli; exports.avalanche = avalanche; exports.avalancheFuji = avalancheFuji; exports.bsc = bsc; exports.bscTestnet = bscTestnet; exports.celo = celo; exports.defineBlock = defineBlock; exports.defineChain = defineChain; exports.defineTransaction = defineTransaction; exports.defineTransactionReceipt = defineTransactionReceipt; exports.defineTransactionRequest = defineTransactionRequest; exports.fantom = fantom; exports.fantomTestnet = fantomTestnet; exports.foundry = foundry; exports.goerli = goerli; exports.hardhat = hardhat; exports.localhost = localhost; exports.mainnet = mainnet; exports.optimism = optimism; exports.optimismGoerli = optimismGoerli; exports.polygon = polygon; exports.polygonMumbai = polygonMumbai; exports.sepolia = sepolia;