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.
- package/actions/package.json +1 -1
- package/chains/package.json +1 -1
- package/clients/package.json +1 -1
- package/dist/actions/index.d.ts +5 -4
- package/dist/actions/index.js +125 -124
- package/dist/actions/index.mjs +125 -0
- package/dist/chains.d.ts +2 -2
- package/dist/chains.js +75 -76
- package/dist/chains.mjs +133 -0
- package/dist/chunk-2FDH6XP5.mjs +2616 -0
- package/dist/chunk-46ZFLVHC.js +1084 -0
- package/dist/chunk-5ZBNF5WM.js +2616 -0
- package/dist/{chunk-BIQ5KSX5.js → chunk-CWCWWGBC.mjs} +1 -1
- package/dist/{chunk-N6PIT2C5.js → chunk-HLVCJ7RV.mjs} +49 -12
- package/dist/chunk-SGTIBKHG.js +258 -0
- package/dist/clients/index.d.ts +3 -3
- package/dist/clients/index.js +23 -23
- package/dist/clients/index.mjs +23 -0
- package/dist/{createWalletClient-b5c3c89e.d.ts → createWalletClient-d612fe08.d.ts} +1 -1
- package/dist/{eip1193-100454ab.d.ts → eip1193-020a6f13.d.ts} +1 -1
- package/dist/index.d.ts +40 -18
- package/dist/index.js +374 -374
- package/dist/index.mjs +374 -0
- package/dist/{parseGwei-14f716fc.d.ts → parseGwei-7c87ff41.d.ts} +40 -118
- package/dist/transactionRequest-08d30731.d.ts +132 -0
- package/dist/utils/index.d.ts +38 -5
- package/dist/utils/index.js +148 -138
- package/dist/utils/index.mjs +148 -0
- package/dist/{watchAsset-e99e744d.d.ts → watchAsset-bc6373f4.d.ts} +17 -5
- package/dist/{webSocket-f4abf66c.d.ts → webSocket-7f88e9e0.d.ts} +1 -1
- package/dist/window.d.ts +1 -1
- package/dist/window.js +1 -0
- package/dist/window.mjs +0 -0
- package/package.json +9 -3
- package/utils/package.json +1 -1
- package/window/package.json +1 -1
- package/dist/chunk-4Z43OTO6.js +0 -1349
- package/dist/chunk-ALVD6MNU.js +0 -1113
- package/dist/transactionRequest-3e463099.d.ts +0 -44
package/actions/package.json
CHANGED
package/chains/package.json
CHANGED
package/clients/package.json
CHANGED
package/dist/actions/index.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
export { C as CallArgs, a as
|
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 '../
|
6
|
-
import '../
|
7
|
-
import '../
|
6
|
+
import '../transactionRequest-08d30731.js';
|
7
|
+
import '../createWalletClient-d612fe08.js';
|
8
|
+
import '../eip1193-020a6f13.js';
|
package/dist/actions/index.js
CHANGED
@@ -1,124 +1,125 @@
|
|
1
|
-
|
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
|
-
|
63
|
-
|
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
|
-
|
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" | "
|
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" | "
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
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(
|
61
|
-
var arbitrum = defineChain(
|
62
|
-
var avalancheFuji = defineChain(
|
63
|
-
var avalanche = defineChain(
|
64
|
-
var bscTestnet = defineChain(
|
65
|
-
var bsc = defineChain(
|
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(
|
98
|
-
var fantom = defineChain(
|
99
|
-
var foundry = defineChain(
|
100
|
-
var goerli = defineChain(
|
101
|
-
var hardhat = defineChain(
|
102
|
-
var localhost = defineChain(
|
103
|
-
var mainnet = defineChain(
|
104
|
-
var optimismGoerli = defineChain(
|
105
|
-
var optimism = defineChain(
|
106
|
-
var polygonMumbai = defineChain(
|
107
|
-
var polygon = defineChain(
|
108
|
-
var sepolia = defineChain(
|
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
|
-
|
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;
|