openscan-hardhat-links 0.0.4 → 0.0.6
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/README.md +15 -37
- package/dist/explorer/1029.bundle.js +1 -0
- package/dist/explorer/1035.bundle.js +1 -0
- package/dist/explorer/1061.bundle.js +1 -0
- package/dist/explorer/1078.bundle.js +1 -0
- package/dist/explorer/1158.bundle.js +1 -0
- package/dist/explorer/1165.bundle.js +1 -0
- package/dist/explorer/1195.bundle.js +1 -0
- package/dist/explorer/1224.bundle.js +1 -0
- package/dist/explorer/1247.bundle.js +1 -0
- package/dist/explorer/1302.bundle.js +1 -0
- package/dist/explorer/1319.bundle.js +1 -0
- package/dist/explorer/1408.bundle.js +1 -0
- package/dist/explorer/1453.bundle.js +1 -0
- package/dist/explorer/1473.bundle.js +1 -0
- package/dist/explorer/1476.bundle.js +1 -0
- package/dist/explorer/1496.bundle.js +1 -0
- package/dist/explorer/1538.bundle.js +1 -0
- package/dist/explorer/1611.bundle.js +1 -0
- package/dist/explorer/1672.bundle.js +1 -0
- package/dist/explorer/1709.bundle.js +1 -0
- package/dist/explorer/1824.bundle.js +1 -0
- package/dist/explorer/1837.bundle.js +1 -0
- package/dist/explorer/1889.bundle.js +1 -0
- package/dist/explorer/1975.bundle.js +1 -0
- package/dist/explorer/1978.bundle.js +1 -0
- package/dist/explorer/1979.bundle.js +1 -0
- package/dist/explorer/2011.bundle.js +1 -0
- package/dist/explorer/2016.bundle.js +1 -0
- package/dist/explorer/2026.bundle.js +1 -0
- package/dist/explorer/2062.bundle.js +1 -0
- package/dist/explorer/2108.bundle.js +1 -0
- package/dist/explorer/2149.bundle.js +1 -0
- package/dist/explorer/2161.bundle.js +1 -0
- package/dist/explorer/2306.bundle.js +1 -0
- package/dist/explorer/2387.bundle.js +1 -0
- package/dist/explorer/2391.bundle.js +1 -0
- package/dist/explorer/2412.bundle.js +1 -0
- package/dist/explorer/2487.bundle.js +1 -0
- package/dist/explorer/2565.bundle.js +1 -0
- package/dist/explorer/2603.bundle.js +1 -0
- package/dist/explorer/261.bundle.js +1 -0
- package/dist/explorer/2658.bundle.js +1 -0
- package/dist/explorer/2688.bundle.js +1 -0
- package/dist/explorer/2692.bundle.js +1 -0
- package/dist/explorer/279.bundle.js +1 -0
- package/dist/explorer/2808.bundle.js +1 -0
- package/dist/explorer/2838.bundle.js +1 -0
- package/dist/explorer/2850.bundle.js +1 -0
- package/dist/explorer/2864.bundle.js +1 -0
- package/dist/explorer/2896.bundle.js +1 -0
- package/dist/explorer/2901.bundle.js +1 -0
- package/dist/explorer/2931.bundle.js +1 -0
- package/dist/explorer/3006.bundle.js +1 -0
- package/dist/explorer/3137.bundle.js +1 -0
- package/dist/explorer/3214.bundle.js +1 -0
- package/dist/explorer/3235.bundle.js +1 -0
- package/dist/explorer/3339.bundle.js +1 -0
- package/dist/explorer/3377.bundle.js +1 -0
- package/dist/explorer/3438.bundle.js +1 -0
- package/dist/explorer/3461.bundle.js +1 -0
- package/dist/explorer/3469.bundle.js +1 -0
- package/dist/explorer/3509.bundle.js +1 -0
- package/dist/explorer/3558.bundle.js +1 -0
- package/dist/explorer/3564.bundle.js +1 -0
- package/dist/explorer/3698.bundle.js +1 -0
- package/dist/explorer/3723.bundle.js +1 -0
- package/dist/explorer/3781.bundle.js +1 -0
- package/dist/explorer/3855.bundle.js +1 -0
- package/dist/explorer/3967.bundle.js +1 -0
- package/dist/explorer/3999.bundle.js +1 -0
- package/dist/explorer/4006.bundle.js +1 -0
- package/dist/explorer/4052.bundle.js +1 -0
- package/dist/explorer/4067.bundle.js +1 -0
- package/dist/explorer/4163.bundle.js +1 -0
- package/dist/explorer/4230.bundle.js +1 -0
- package/dist/explorer/4386.bundle.js +1 -0
- package/dist/explorer/4449.bundle.js +1 -0
- package/dist/explorer/4477.bundle.js +1 -0
- package/dist/explorer/4554.bundle.js +1 -0
- package/dist/explorer/4590.bundle.js +1 -0
- package/dist/explorer/4714.bundle.js +1 -0
- package/dist/explorer/4725.bundle.js +1 -0
- package/dist/explorer/4736.bundle.js +1 -0
- package/dist/explorer/4739.bundle.js +1 -0
- package/dist/explorer/4748.bundle.js +1 -0
- package/dist/explorer/4778.bundle.js +1 -0
- package/dist/explorer/4794.bundle.js +1 -0
- package/dist/explorer/4882.bundle.js +1 -0
- package/dist/explorer/4933.bundle.js +1 -0
- package/dist/explorer/4953.bundle.js +1 -0
- package/dist/explorer/4987.bundle.js +1 -0
- package/dist/explorer/5036.bundle.js +1 -0
- package/dist/explorer/5133.bundle.js +1 -0
- package/dist/explorer/5179.bundle.js +1 -0
- package/dist/explorer/5195.bundle.js +1 -0
- package/dist/explorer/5214.bundle.js +1 -0
- package/dist/explorer/5267.bundle.js +1 -0
- package/dist/explorer/5327.bundle.js +1 -0
- package/dist/explorer/5372.bundle.js +1 -0
- package/dist/explorer/5410.bundle.js +1 -0
- package/dist/explorer/5420.bundle.js +1 -0
- package/dist/explorer/5426.bundle.js +1 -0
- package/dist/explorer/5452.bundle.js +1 -0
- package/dist/explorer/5518.bundle.js +1 -0
- package/dist/explorer/5619.bundle.js +1 -0
- package/dist/explorer/5664.bundle.js +1 -0
- package/dist/explorer/5732.bundle.js +1 -0
- package/dist/explorer/5776.bundle.js +1 -0
- package/dist/explorer/579.bundle.js +1 -0
- package/dist/explorer/5806.bundle.js +1 -0
- package/dist/explorer/5823.bundle.js +1 -0
- package/dist/explorer/5935.bundle.js +1 -0
- package/dist/explorer/5937.bundle.js +1 -0
- package/dist/explorer/5943.bundle.js +1 -0
- package/dist/explorer/6014.bundle.js +1 -0
- package/dist/explorer/6040.bundle.js +1 -0
- package/dist/explorer/6099.bundle.js +1 -0
- package/dist/explorer/6187.bundle.js +1 -0
- package/dist/explorer/6188.bundle.js +1 -0
- package/dist/explorer/622.bundle.js +1 -0
- package/dist/explorer/6228.bundle.js +1 -0
- package/dist/explorer/6237.bundle.js +1 -0
- package/dist/explorer/6302.bundle.js +1 -0
- package/dist/explorer/6348.bundle.js +1 -0
- package/dist/explorer/6355.bundle.js +1 -0
- package/dist/explorer/6377.bundle.js +1 -0
- package/dist/explorer/6407.bundle.js +1 -0
- package/dist/explorer/6426.bundle.js +1 -0
- package/dist/explorer/6482.bundle.js +1 -0
- package/dist/explorer/650.bundle.js +1 -0
- package/dist/explorer/6530.bundle.js +1 -0
- package/dist/explorer/6561.bundle.js +1 -0
- package/dist/explorer/6618.bundle.js +1 -0
- package/dist/explorer/6689.bundle.js +1 -0
- package/dist/explorer/669.bundle.js +1 -0
- package/dist/explorer/6714.bundle.js +1 -0
- package/dist/explorer/6717.bundle.js +1 -0
- package/dist/explorer/6728.bundle.js +1 -0
- package/dist/explorer/676.bundle.js +1 -0
- package/dist/explorer/6780.bundle.js +1 -0
- package/dist/explorer/6791.bundle.js +1 -0
- package/dist/explorer/6828.bundle.js +1 -0
- package/dist/explorer/6926.bundle.js +1 -0
- package/dist/explorer/6929.bundle.js +1 -0
- package/dist/explorer/6952.bundle.js +1 -0
- package/dist/explorer/6982.bundle.js +1 -0
- package/dist/explorer/6983.bundle.js +1 -0
- package/dist/explorer/6984.bundle.js +1 -0
- package/dist/explorer/70.bundle.js +1 -0
- package/dist/explorer/7007.bundle.js +1 -0
- package/dist/explorer/7218.bundle.js +1 -0
- package/dist/explorer/7243.bundle.js +1 -0
- package/dist/explorer/7281.bundle.js +1 -0
- package/dist/explorer/7350.bundle.js +1 -0
- package/dist/explorer/7450.bundle.js +1 -0
- package/dist/explorer/7469.bundle.js +1 -0
- package/dist/explorer/7552.bundle.js +1 -0
- package/dist/explorer/7612.bundle.js +1 -0
- package/dist/explorer/7656.bundle.js +1 -0
- package/dist/explorer/7736.bundle.js +1 -0
- package/dist/explorer/7833.bundle.js +1 -0
- package/dist/explorer/7835.bundle.js +1 -0
- package/dist/explorer/787.bundle.js +1 -0
- package/dist/explorer/7887.bundle.js +1 -0
- package/dist/explorer/797791b8ae7fd556ee6a.js +1 -0
- package/dist/explorer/8127.bundle.js +1 -0
- package/dist/explorer/8293.bundle.js +1 -0
- package/dist/explorer/8365.bundle.js +1 -0
- package/dist/explorer/8397.bundle.js +1 -0
- package/dist/explorer/8455.bundle.js +1 -0
- package/dist/explorer/8564.bundle.js +1 -0
- package/dist/explorer/8602.bundle.js +1 -0
- package/dist/explorer/877.bundle.js +1 -0
- package/dist/explorer/8776.bundle.js +1 -0
- package/dist/explorer/8842.bundle.js +1 -0
- package/dist/explorer/9146.bundle.js +1 -0
- package/dist/explorer/9190.bundle.js +1 -0
- package/dist/explorer/9236.bundle.js +1 -0
- package/dist/explorer/9375.bundle.js +1 -0
- package/dist/explorer/9380.bundle.js +1 -0
- package/dist/explorer/9385.bundle.js +1 -0
- package/dist/explorer/9390.bundle.js +1 -0
- package/dist/explorer/9466.bundle.js +1 -0
- package/dist/explorer/9503.bundle.js +1 -0
- package/dist/explorer/9624.bundle.js +1 -0
- package/dist/explorer/9788.bundle.js +1 -0
- package/dist/explorer/9865.bundle.js +1 -0
- package/dist/explorer/9907.bundle.js +1 -0
- package/dist/explorer/9936.bundle.js +1 -0
- package/dist/explorer/bundle.js +1 -0
- package/dist/explorer/images/paymentHelp1.35dff52e41e22e90d91c.png +0 -0
- package/dist/explorer/images/paymentHelp2.08d778959310485fefce.png +0 -0
- package/dist/explorer/images/paymentHelp3.9908702eec7bdcd83f69.png +0 -0
- package/dist/explorer/index.html +26 -0
- package/dist/explorer/manifest.json +25 -0
- package/dist/explorer/openscan-logo.png +0 -0
- package/dist/explorer/robots.txt +3 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -14,11 +14,19 @@ In your `hardhat.config.ts` file, import the plugin and add it to the `plugins`
|
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
16
|
import { defineConfig } from "hardhat/config";
|
|
17
|
-
import
|
|
17
|
+
import openScanPlugin from "openscan-hardhat-links";
|
|
18
18
|
|
|
19
19
|
export default defineConfig({
|
|
20
|
-
plugins: [
|
|
20
|
+
plugins: [openScanPlugin],
|
|
21
|
+
networks: {
|
|
22
|
+
...
|
|
23
|
+
},
|
|
24
|
+
openScan: {
|
|
25
|
+
url: "http://localhost:3030",
|
|
26
|
+
chainId: 31337,
|
|
27
|
+
},
|
|
21
28
|
});
|
|
29
|
+
|
|
22
30
|
```
|
|
23
31
|
|
|
24
32
|
## Features
|
|
@@ -46,29 +54,6 @@ npx hardhat node
|
|
|
46
54
|
|
|
47
55
|
The OpenScan Explorer will automatically launch and your browser will open to the explorer interface. All subsequent transactions will include OpenScan links in the console output
|
|
48
56
|
|
|
49
|
-
### Configuration
|
|
50
|
-
|
|
51
|
-
The plugin works out of the box with zero configuration required. The following settings are hardcoded:
|
|
52
|
-
|
|
53
|
-
- **Port**: 3030 (fixed, not configurable)
|
|
54
|
-
- **Auto-open browser**: Always enabled
|
|
55
|
-
- **Webapp path**: Automatically detected from plugin installation
|
|
56
|
-
|
|
57
|
-
You can optionally configure the OpenScan URL and chain ID if you want to customize the link format:
|
|
58
|
-
|
|
59
|
-
```ts
|
|
60
|
-
import { defineConfig } from "hardhat/config";
|
|
61
|
-
import myPlugin from "openscan-hardhat-links";
|
|
62
|
-
|
|
63
|
-
export default defineConfig({
|
|
64
|
-
plugins: [myPlugin],
|
|
65
|
-
openScan: {
|
|
66
|
-
url: "http://localhost:3030", // Optional: default is http://localhost:3030
|
|
67
|
-
chainId: 31337, // Optional: default is 31337
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
```
|
|
71
|
-
|
|
72
57
|
## How It Works
|
|
73
58
|
|
|
74
59
|
### Webapp Launch
|
|
@@ -90,23 +75,16 @@ The plugin uses the `onRequest` network hook to intercept all JSON-RPC requests.
|
|
|
90
75
|
## Requirements
|
|
91
76
|
|
|
92
77
|
- Hardhat 3.x
|
|
93
|
-
- Node.js
|
|
78
|
+
- Node.js 24+
|
|
94
79
|
- Port 3030 must be available
|
|
95
80
|
|
|
96
81
|
## Troubleshooting
|
|
97
82
|
|
|
98
|
-
### Port 3030 Already in Use
|
|
83
|
+
### Port 8545 or 3030 Already in Use
|
|
99
84
|
|
|
100
|
-
If you see an error about port 3030 being in use, you need to free up that port:
|
|
85
|
+
If you see an error about port 8545 or 3030 being in use, you need to free up that port:
|
|
101
86
|
|
|
102
87
|
```bash
|
|
103
|
-
|
|
104
|
-
lsof -i:3030
|
|
105
|
-
|
|
106
|
-
# Kill the process
|
|
107
|
-
kill -9 <PID>
|
|
88
|
+
kill -9 $(lsof -t -i:8545)
|
|
89
|
+
kill -9 $(lsof -t -i:3030)
|
|
108
90
|
```
|
|
109
|
-
|
|
110
|
-
### Browser Doesn't Open Automatically
|
|
111
|
-
|
|
112
|
-
The plugin attempts to open your default browser automatically. If this fails, you can manually navigate to <http://localhost:3030>.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkopenscan=globalThis.webpackChunkopenscan||[]).push([[1029],{71029:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cardSvg: () => (/* binding */ cardSvg)\n/* harmony export */ });\n/* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lit */ 91135);\n\nconst cardSvg = (0,lit__WEBPACK_IMPORTED_MODULE_0__.svg) `<svg\n xmlns="http://www.w3.org/2000/svg"\n width="12"\n height="13"\n viewBox="0 0 12 13"\n fill="none"\n>\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M4.16072 2C4.17367 2 4.18665 2 4.19968 2L7.83857 2C8.36772 1.99998 8.82398 1.99996 9.19518 2.04018C9.5895 2.0829 9.97577 2.17811 10.3221 2.42971C10.5131 2.56849 10.6811 2.73647 10.8198 2.92749C11.0714 3.27379 11.1666 3.66007 11.2094 4.0544C11.2496 4.42561 11.2496 4.88188 11.2495 5.41105V7.58896C11.2496 8.11812 11.2496 8.57439 11.2094 8.94561C11.1666 9.33994 11.0714 9.72621 10.8198 10.0725C10.6811 10.2635 10.5131 10.4315 10.3221 10.5703C9.97577 10.8219 9.5895 10.9171 9.19518 10.9598C8.82398 11 8.36772 11 7.83856 11H4.16073C3.63157 11 3.17531 11 2.80411 10.9598C2.40979 10.9171 2.02352 10.8219 1.67722 10.5703C1.48621 10.4315 1.31824 10.2635 1.17946 10.0725C0.927858 9.72621 0.832652 9.33994 0.78993 8.94561C0.749713 8.5744 0.749733 8.11813 0.749757 7.58896L0.749758 5.45C0.749758 5.43697 0.749758 5.42399 0.749757 5.41104C0.749733 4.88188 0.749713 4.42561 0.78993 4.0544C0.832652 3.66007 0.927858 3.27379 1.17946 2.92749C1.31824 2.73647 1.48621 2.56849 1.67722 2.42971C2.02352 2.17811 2.40979 2.0829 2.80411 2.04018C3.17531 1.99996 3.63157 1.99998 4.16072 2ZM2.96567 3.53145C2.69897 3.56034 2.60687 3.60837 2.55888 3.64324C2.49521 3.6895 2.43922 3.74549 2.39296 3.80916C2.35809 3.85715 2.31007 3.94926 2.28117 4.21597C2.26629 4.35335 2.25844 4.51311 2.25431 4.70832H9.74498C9.74085 4.51311 9.733 4.35335 9.71812 4.21597C9.68922 3.94926 9.6412 3.85715 9.60633 3.80916C9.56007 3.74549 9.50408 3.6895 9.44041 3.64324C9.39242 3.60837 9.30031 3.56034 9.03362 3.53145C8.75288 3.50103 8.37876 3.5 7.79961 3.5H4.19968C3.62053 3.5 3.24641 3.50103 2.96567 3.53145ZM9.74956 6.20832H2.24973V7.55C2.24973 8.12917 2.25076 8.5033 2.28117 8.78404C2.31007 9.05074 2.35809 9.14285 2.39296 9.19084C2.43922 9.25451 2.49521 9.31051 2.55888 9.35677C2.60687 9.39163 2.69897 9.43966 2.96567 9.46856C3.24641 9.49897 3.62053 9.5 4.19968 9.5H7.79961C8.37876 9.5 8.75288 9.49897 9.03362 9.46856C9.30032 9.43966 9.39242 9.39163 9.44041 9.35677C9.50408 9.31051 9.56007 9.25451 9.60633 9.19084C9.6412 9.14285 9.68922 9.05075 9.71812 8.78404C9.74854 8.5033 9.74956 8.12917 9.74956 7.55V6.20832ZM6.74963 8C6.74963 7.58579 7.08541 7.25 7.49961 7.25H8.2496C8.6638 7.25 8.99958 7.58579 8.99958 8C8.99958 8.41422 8.6638 8.75 8.2496 8.75H7.49961C7.08541 8.75 6.74963 8.41422 6.74963 8Z"\n fill="currentColor"\n /></svg\n>`;\n//# sourceMappingURL=card.js.map\n\n//# sourceURL=webpack://openscan/./node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/card.js?')}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkopenscan=globalThis.webpackChunkopenscan||[]).push([[1035],{33416:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ plusSvg: () => (/* binding */ plusSvg)\n/* harmony export */ });\n/* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lit */ 91135);\n\nconst plusSvg = (0,lit__WEBPACK_IMPORTED_MODULE_0__.svg) `<svg\n width="13"\n height="12"\n viewBox="0 0 13 12"\n fill="none"\n>\n <path\n fill="currentColor"\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M0.794373 5.99982C0.794373 5.52643 1.17812 5.14268 1.6515 5.14268H5.643V1.15109C5.643 0.677701 6.02675 0.293946 6.50012 0.293945C6.9735 0.293946 7.35725 0.677701 7.35725 1.15109V5.14268H11.3488C11.8221 5.14268 12.2059 5.52643 12.2059 5.99982C12.2059 6.47321 11.8221 6.85696 11.3488 6.85696H7.35725V10.8486C7.35725 11.3219 6.9735 11.7057 6.50012 11.7057C6.02675 11.7057 5.643 11.3219 5.643 10.8486V6.85696H1.6515C1.17812 6.85696 0.794373 6.47321 0.794373 5.99982Z"\n /></svg\n>`;\n//# sourceMappingURL=plus.js.map\n\n//# sourceURL=webpack://openscan/./node_modules/@reown/appkit-ui/dist/esm/src/assets/svg/plus.js?')}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkopenscan=globalThis.webpackChunkopenscan||[]).push([[1061],{11061:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "default": () => (/* binding */ celo_default)\n/* harmony export */ });\n"use client";\n\n// src/components/RainbowKitProvider/chainIcons/celo.svg\nvar celo_default = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%2214%22%20fill%3D%22%23FCFF52%22%2F%3E%3Cpath%20d%3D%22M21%207H7v14h14v-4.887h-2.325a5.126%205.126%200%200%201-4.664%203.023c-2.844%200-5.147-2.325-5.147-5.147-.003-2.822%202.303-5.125%205.147-5.125%202.102%200%203.904%201.28%204.704%203.104H21V7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E";\n\n\n\n//# sourceURL=webpack://openscan/./node_modules/@rainbow-me/rainbowkit/dist/celo-GEP4TUHG.js?')}}]);
|