viem 0.0.1-alpha.3 → 0.0.1-alpha.31
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/chains/package.json +1 -1
- package/contract/package.json +4 -0
- package/dist/chain-00b37e4e.d.ts +543 -0
- package/dist/chain-38182d92.d.ts +5 -0
- package/dist/chains.d.ts +1305 -74
- package/dist/chains.js +125 -130
- package/dist/chains.js.map +1 -0
- package/dist/chains.mjs +129 -0
- package/dist/chains.mjs.map +1 -0
- package/dist/chunk-5STAX3WF.js +265 -0
- package/dist/chunk-5STAX3WF.js.map +1 -0
- package/dist/chunk-6ZFIUYGC.mjs +3436 -0
- package/dist/chunk-6ZFIUYGC.mjs.map +1 -0
- package/dist/chunk-APXHGB76.mjs +197 -0
- package/dist/chunk-APXHGB76.mjs.map +1 -0
- package/dist/chunk-C54QK7K3.mjs +210 -0
- package/dist/chunk-C54QK7K3.mjs.map +1 -0
- package/dist/{chunk-YZEQFYZ3.js → chunk-IBWRBL2I.mjs} +725 -556
- package/dist/chunk-IBWRBL2I.mjs.map +1 -0
- package/dist/chunk-J7QHQ26Y.js +3436 -0
- package/dist/chunk-J7QHQ26Y.js.map +1 -0
- package/dist/chunk-MYFKW55L.js +210 -0
- package/dist/chunk-MYFKW55L.js.map +1 -0
- package/dist/chunk-NCPBWOQA.js +1216 -0
- package/dist/chunk-NCPBWOQA.js.map +1 -0
- package/dist/chunk-QBB3DFIB.mjs +265 -0
- package/dist/chunk-QBB3DFIB.mjs.map +1 -0
- package/dist/chunk-UUULPQHV.js +197 -0
- package/dist/chunk-UUULPQHV.js.map +1 -0
- package/dist/contract.d.ts +11 -0
- package/dist/contract.js +57 -0
- package/dist/contract.js.map +1 -0
- package/dist/contract.mjs +57 -0
- package/dist/contract.mjs.map +1 -0
- package/dist/createClient-5258d590.d.ts +70 -0
- package/dist/createPublicClient-99be385b.d.ts +650 -0
- package/dist/{eip1193-8b4d90ce.d.ts → eip1193-fcdeee04.d.ts} +13 -10
- package/dist/ens.d.ts +22 -0
- package/dist/ens.js +22 -0
- package/dist/ens.js.map +1 -0
- package/dist/ens.mjs +22 -0
- package/dist/ens.mjs.map +1 -0
- package/dist/formatAbiItem-50cb39d8.d.ts +14 -0
- package/dist/getAbiItem-6d4f64d2.d.ts +97 -0
- package/dist/index.d.ts +251 -67
- package/dist/index.js +769 -344
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +769 -0
- package/dist/index.mjs.map +1 -0
- package/dist/namehash-88f4639d.d.ts +22 -0
- package/dist/parseGwei-8af7a0a6.d.ts +509 -0
- package/dist/public.d.ts +29 -0
- package/dist/public.js +60 -0
- package/dist/public.js.map +1 -0
- package/dist/public.mjs +60 -0
- package/dist/public.mjs.map +1 -0
- package/dist/test-79ec416c.d.ts +213 -0
- package/dist/test.d.ts +20 -0
- package/dist/test.js +62 -0
- package/dist/test.js.map +1 -0
- package/dist/test.mjs +62 -0
- package/dist/test.mjs.map +1 -0
- package/dist/utils/index.d.ts +52 -7
- package/dist/utils/index.js +187 -126
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +187 -0
- package/dist/utils/index.mjs.map +1 -0
- package/dist/wallet-cf5c8351.d.ts +115 -0
- package/dist/wallet.d.ts +7 -0
- package/dist/wallet.js +24 -0
- package/dist/wallet.js.map +1 -0
- package/dist/wallet.mjs +24 -0
- package/dist/wallet.mjs.map +1 -0
- package/dist/window.d.ts +5 -2
- package/dist/window.js +1 -0
- package/dist/window.js.map +1 -0
- package/dist/window.mjs +1 -0
- package/dist/window.mjs.map +1 -0
- package/ens/package.json +4 -0
- package/package.json +46 -73
- package/public/package.json +4 -0
- package/test/package.json +4 -0
- package/utils/package.json +1 -1
- package/wallet/package.json +4 -0
- package/window/package.json +1 -1
- package/actions/package.json +0 -4
- package/clients/package.json +0 -4
- package/dist/actions/index.d.ts +0 -7
- package/dist/actions/index.js +0 -124
- package/dist/chunk-SRDTRROA.js +0 -1214
- package/dist/chunk-TLEMV4T3.js +0 -258
- package/dist/chunk-WZITKXV3.js +0 -996
- package/dist/clients/index.d.ts +0 -7
- package/dist/clients/index.js +0 -23
- package/dist/createWalletClient-15ad1601.d.ts +0 -130
- package/dist/parseGwei-0f85e8ca.d.ts +0 -248
- package/dist/rpc-15b85963.d.ts +0 -292
- package/dist/rpc-26932bae.d.ts +0 -61
- package/dist/transactionRequest-f538ea86.d.ts +0 -44
- package/dist/watchAsset-0c9d01e2.d.ts +0 -522
- package/dist/webSocket-b55b0951.d.ts +0 -83
package/dist/window.d.ts
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
import { R as Requests, E as Events } from './eip1193-
|
2
|
-
import './
|
1
|
+
import { R as Requests, E as Events } from './eip1193-fcdeee04.js';
|
2
|
+
import './chain-00b37e4e.js';
|
3
|
+
import '@wagmi/chains';
|
4
|
+
import 'abitype';
|
5
|
+
import 'ethers@6/types/providers';
|
3
6
|
|
4
7
|
type WindowProvider = Requests & Events;
|
5
8
|
declare global {
|
package/dist/window.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";//# sourceMappingURL=window.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/window.mjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=window.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/ens/package.json
ADDED
package/package.json
CHANGED
@@ -1,80 +1,78 @@
|
|
1
1
|
{
|
2
2
|
"name": "viem",
|
3
|
-
"description": "TypeScript
|
4
|
-
"
|
3
|
+
"description": "TypeScript Interface for Ethereum",
|
4
|
+
"dependencies": {
|
5
|
+
"@noble/hashes": "^1.1.2",
|
6
|
+
"@wagmi/chains": "~0.2.8",
|
7
|
+
"abitype": "~0.3.0",
|
8
|
+
"idna-uts46-hx": "^4.1.2",
|
9
|
+
"isomorphic-ws": "^5.0.0",
|
10
|
+
"ws": "^8.12.0"
|
11
|
+
},
|
12
|
+
"version": "0.0.1-alpha.31",
|
5
13
|
"files": [
|
6
|
-
"/actions",
|
7
|
-
"/chains",
|
8
14
|
"/dist",
|
9
|
-
"/
|
10
|
-
"/
|
15
|
+
"/chains",
|
16
|
+
"/contract",
|
17
|
+
"/ens",
|
18
|
+
"/public",
|
19
|
+
"/test",
|
11
20
|
"/utils",
|
21
|
+
"/wallet",
|
12
22
|
"/window"
|
13
23
|
],
|
14
24
|
"exports": {
|
15
25
|
".": {
|
16
26
|
"types": "./dist/index.d.ts",
|
27
|
+
"module": "./dist/index.mjs",
|
17
28
|
"default": "./dist/index.js"
|
18
29
|
},
|
19
|
-
"./actions": {
|
20
|
-
"types": "./dist/actions/index.d.ts",
|
21
|
-
"default": "./dist/actions/index.js"
|
22
|
-
},
|
23
30
|
"./chains": {
|
24
31
|
"types": "./dist/chains.d.ts",
|
32
|
+
"module": "./dist/chains.mjs",
|
25
33
|
"default": "./dist/chains.js"
|
26
34
|
},
|
27
|
-
"./
|
28
|
-
"types": "./dist/
|
29
|
-
"
|
35
|
+
"./contract": {
|
36
|
+
"types": "./dist/contract.d.ts",
|
37
|
+
"module": "./dist/contract.mjs",
|
38
|
+
"default": "./dist/contract.js"
|
39
|
+
},
|
40
|
+
"./ens": {
|
41
|
+
"types": "./dist/ens.d.ts",
|
42
|
+
"module": "./dist/ens.mjs",
|
43
|
+
"default": "./dist/ens.js"
|
44
|
+
},
|
45
|
+
"./public": {
|
46
|
+
"types": "./dist/public.d.ts",
|
47
|
+
"module": "./dist/public.mjs",
|
48
|
+
"default": "./dist/public.js"
|
49
|
+
},
|
50
|
+
"./test": {
|
51
|
+
"types": "./dist/test.d.ts",
|
52
|
+
"module": "./dist/test.mjs",
|
53
|
+
"default": "./dist/test.js"
|
30
54
|
},
|
31
55
|
"./utils": {
|
32
56
|
"types": "./dist/utils/index.d.ts",
|
57
|
+
"module": "./dist/utils/index.mjs",
|
33
58
|
"default": "./dist/utils/index.js"
|
34
59
|
},
|
60
|
+
"./wallet": {
|
61
|
+
"types": "./dist/wallet.d.ts",
|
62
|
+
"module": "./dist/wallet.mjs",
|
63
|
+
"default": "./dist/wallet.js"
|
64
|
+
},
|
35
65
|
"./window": {
|
36
66
|
"types": "./dist/window.d.ts",
|
67
|
+
"module": "./dist/window.mjs",
|
37
68
|
"default": "./dist/window.js"
|
38
69
|
},
|
39
70
|
"./package.json": "./package.json"
|
40
71
|
},
|
41
|
-
"type": "module",
|
42
72
|
"main": "dist/index.js",
|
73
|
+
"module": "dist/index.mjs",
|
43
74
|
"types": "dist/index.d.ts",
|
44
75
|
"sideEffects": false,
|
45
|
-
"dependencies": {
|
46
|
-
"@noble/hashes": "^1.1.2",
|
47
|
-
"@wagmi/chains": "^0.1.0",
|
48
|
-
"abitype": "^0.2.5"
|
49
|
-
},
|
50
|
-
"devDependencies": {
|
51
|
-
"@actions/core": "^1.10.0",
|
52
|
-
"@actions/github": "^5.1.1",
|
53
|
-
"@changesets/changelog-github": "^0.4.5",
|
54
|
-
"@changesets/cli": "^2.23.2",
|
55
|
-
"@testing-library/jest-dom": "^5.16.5",
|
56
|
-
"@types/dedent": "^0.7.0",
|
57
|
-
"@types/fs-extra": "^9.0.13",
|
58
|
-
"@types/node": "^17.0.45",
|
59
|
-
"@vitest/coverage-c8": "^0.24.3",
|
60
|
-
"@vitest/ui": "^0.19.1",
|
61
|
-
"bundlewatch": "^0.3.3",
|
62
|
-
"dedent": "^0.7.0",
|
63
|
-
"esbuild": "^0.16.12",
|
64
|
-
"esbuild-register": "^3.4.2",
|
65
|
-
"essential-eth": "^0.6.2",
|
66
|
-
"ethers": "^5.7.2",
|
67
|
-
"execa": "^6.1.0",
|
68
|
-
"fs-extra": "^10.1.0",
|
69
|
-
"jsdom": "^20.0.0",
|
70
|
-
"rome": "^11.0.0",
|
71
|
-
"simple-git-hooks": "^2.8.1",
|
72
|
-
"tsup": "^6.5.0",
|
73
|
-
"typescript": "^4.9.3",
|
74
|
-
"vite": "^3.0.4",
|
75
|
-
"vitest": "^0.25.2",
|
76
|
-
"web3": "^1.8.1"
|
77
|
-
},
|
78
76
|
"license": "MIT",
|
79
77
|
"repository": "wagmi-dev/viem",
|
80
78
|
"authors": [
|
@@ -87,30 +85,5 @@
|
|
87
85
|
"dapps",
|
88
86
|
"wallet",
|
89
87
|
"web3"
|
90
|
-
]
|
91
|
-
"simple-git-hooks": {
|
92
|
-
"pre-commit": "pnpm format & pnpm lint:fix"
|
93
|
-
},
|
94
|
-
"scripts": {
|
95
|
-
"anvil": "source .env && anvil --fork-url $ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
|
96
|
-
"bench": "vitest bench --no-threads",
|
97
|
-
"bench:ci": "CI=true vitest bench --no-threads",
|
98
|
-
"build": "tsup",
|
99
|
-
"changeset": "changeset",
|
100
|
-
"changeset:release": "pnpm build && changeset publish",
|
101
|
-
"changeset:version": "changeset version && pnpm install --lockfile-only",
|
102
|
-
"dev": "DEV=true tsup",
|
103
|
-
"dev:docs": "pnpm -r --filter site dev",
|
104
|
-
"format": "rome format src/ test/ --write",
|
105
|
-
"lint": "rome check .",
|
106
|
-
"lint:fix": "pnpm lint --apply-suggested",
|
107
|
-
"playground": "pnpm --filter playground-dev dev",
|
108
|
-
"playground:benchmark": "pnpm --filter playground-benchmark dev",
|
109
|
-
"postinstall": "pnpm dev",
|
110
|
-
"preinstall": "npx only-allow pnpm",
|
111
|
-
"test": "vitest dev --coverage --no-threads",
|
112
|
-
"test:ci": "CI=true vitest --coverage --no-threads",
|
113
|
-
"test:ui": "vitest dev --ui --no-threads",
|
114
|
-
"typecheck": "tsc --noEmit"
|
115
|
-
}
|
88
|
+
]
|
116
89
|
}
|
package/utils/package.json
CHANGED
package/window/package.json
CHANGED
package/actions/package.json
DELETED
package/clients/package.json
DELETED
package/dist/actions/index.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
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-0c9d01e2.js';
|
2
|
-
import '../chains.js';
|
3
|
-
import '../rpc-15b85963.js';
|
4
|
-
import '@wagmi/chains';
|
5
|
-
import '../createWalletClient-15ad1601.js';
|
6
|
-
import '../eip1193-8b4d90ce.js';
|
7
|
-
import '../transactionRequest-f538ea86.js';
|
package/dist/actions/index.js
DELETED
@@ -1,124 +0,0 @@
|
|
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-YZEQFYZ3.js";
|
62
|
-
import "../chunk-SRDTRROA.js";
|
63
|
-
import "../chunk-WZITKXV3.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
|
-
};
|