@cobuilders/hardhat-arb-test 0.0.1-alpha.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @cobuilders/hardhat-arb-test
2
+
3
+ ## 0.0.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 4f1b8aa: Bumping version for alpha release
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CoBuilders
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @cobuilders/hardhat-arb-test
2
+
3
+ Hardhat plugin for testing against an Arbitrum node.
4
+
5
+ > This plugin is part of [@cobuilders/hardhat-arbitrum-stylus](../hardhat-arbitrum-stylus). Install the main package to use it.
6
+
7
+ ## Task
8
+
9
+ ```
10
+ npx hardhat arb:test
11
+ ```
12
+
13
+ Runs tests against the Arbitrum node.
14
+
15
+ ## Documentation
16
+
17
+ See the [docs](../../docs) folder for more information.
18
+
19
+ ## License
20
+
21
+ MIT
@@ -0,0 +1,4 @@
1
+ import type { HardhatPlugin } from 'hardhat/types/plugins';
2
+ declare const hardhatArbTestPlugin: HardhatPlugin;
3
+ export default hardhatArbTestPlugin;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,QAAA,MAAM,oBAAoB,EAAE,aAQ3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { task } from 'hardhat/config';
2
+ const hardhatArbTestPlugin = {
3
+ id: 'hardhat-arb-test',
4
+ npmPackage: '@cobuilders/hardhat-arb-test',
5
+ tasks: [
6
+ task('arb:test', 'Run tests against Arbitrum node')
7
+ .setAction(() => import('./tasks/test.js'))
8
+ .build(),
9
+ ],
10
+ };
11
+ export default hardhatArbTestPlugin;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,MAAM,oBAAoB,GAAkB;IAC1C,EAAE,EAAE,kBAAkB;IACtB,UAAU,EAAE,8BAA8B;IAC1C,KAAK,EAAE;QACL,IAAI,CAAC,UAAU,EAAE,iCAAiC,CAAC;aAChD,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;aAC1C,KAAK,EAAE;KACX;CACF,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NewTaskActionFunction } from 'hardhat/types/tasks';
2
+ declare const taskTest: NewTaskActionFunction<{}>;
3
+ export default taskTest;
4
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/tasks/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,QAAA,MAAM,QAAQ,EAAE,qBAAqB,CAAC,EAAE,CAMvC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,6 @@
1
+ const taskTest = async ({}, hre) => {
2
+ console.log('test', 'hre.version:', hre.versions.hardhat);
3
+ console.log('hello world');
4
+ };
5
+ export default taskTest;
6
+ //# sourceMappingURL=test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/tasks/test.ts"],"names":[],"mappings":"AAGA,MAAM,QAAQ,GAA8B,KAAK,EAC/C,EAAE,EACF,GAA8B,EAC9B,EAAE;IACF,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC7B,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@cobuilders/hardhat-arb-test",
3
+ "version": "0.0.1-alpha.0",
4
+ "description": "",
5
+ "type": "module",
6
+ "types": "./dist/src/index.d.ts",
7
+ "exports": {
8
+ ".": "./dist/src/index.js"
9
+ },
10
+ "files": [
11
+ "dist/src/",
12
+ "src/",
13
+ "README.md",
14
+ "LICENSE",
15
+ "CHANGELOG.md"
16
+ ],
17
+ "peerDependencies": {
18
+ "hardhat": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/node": "^22.0.0",
22
+ "eslint": "^9.18.0",
23
+ "hardhat": "^3.0.0",
24
+ "prettier": "^3.4.0"
25
+ },
26
+ "scripts": {
27
+ "build": "tsc --build .",
28
+ "clean": "rimraf dist",
29
+ "lint": "eslint .",
30
+ "lint:fix": "eslint . --fix",
31
+ "format": "prettier --check .",
32
+ "format:fix": "prettier --write ."
33
+ }
34
+ }
package/src/index.ts ADDED
@@ -0,0 +1,14 @@
1
+ import type { HardhatPlugin } from 'hardhat/types/plugins';
2
+ import { task } from 'hardhat/config';
3
+
4
+ const hardhatArbTestPlugin: HardhatPlugin = {
5
+ id: 'hardhat-arb-test',
6
+ npmPackage: '@cobuilders/hardhat-arb-test',
7
+ tasks: [
8
+ task('arb:test', 'Run tests against Arbitrum node')
9
+ .setAction(() => import('./tasks/test.js'))
10
+ .build(),
11
+ ],
12
+ };
13
+
14
+ export default hardhatArbTestPlugin;
@@ -0,0 +1,12 @@
1
+ import type { NewTaskActionFunction } from 'hardhat/types/tasks';
2
+ import type { HardhatRuntimeEnvironment } from 'hardhat/types/hre';
3
+
4
+ const taskTest: NewTaskActionFunction<{}> = async (
5
+ {},
6
+ hre: HardhatRuntimeEnvironment,
7
+ ) => {
8
+ console.log('test', 'hre.version:', hre.versions.hardhat);
9
+ console.log('hello world');
10
+ };
11
+
12
+ export default taskTest;