Skip to content

Commit 6bbf038

Browse files
committed
add router demo
1 parent 1b81435 commit 6bbf038

36 files changed

Lines changed: 1320 additions & 6826 deletions

demoes/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"deploy:watch": "wait-on ./generated && ldenv -m localhost as-soon -w generated -w deploy pnpm run deploy:dev @@MODE @@",
4242
"test": "hardhat test",
4343
"test:watch": "wait-on ./generated && as-soon -w generated -w test hardhat test --no-compile",
44-
"start": "zellij-launcher --layout zellij.kdl a $npm_package_name || zellij --layout zellij.kdl -s $npm_package_name",
44+
"start": "zellij-launcher a $npm_package_name || zellij -n zellij.kdl -s $npm_package_name",
4545
"stop": "zellij kill-session $npm_package_name",
4646
"format:check": "prettier --check .",
4747
"format": "prettier --write ."

demoes/basic/pnpm-lock.yaml

Lines changed: 0 additions & 2246 deletions
This file was deleted.

demoes/diamond/hardhat.config.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,17 @@ import HardhatKeystore from '@nomicfoundation/hardhat-keystore';
88
import HardhatDeploy from 'hardhat-deploy';
99
import {addForkConfiguration, addNetworksFromEnv} from 'hardhat-deploy/helpers';
1010

11+
import HardhatExternalArtifacts from 'hardhat-external-artifacts';
12+
1113
const config: HardhatUserConfig = {
12-
plugins: [HardhatNodeTestRunner, HardhatViem, HardhatNetworkHelpers, HardhatKeystore, HardhatDeploy],
14+
plugins: [
15+
HardhatNodeTestRunner,
16+
HardhatViem,
17+
HardhatNetworkHelpers,
18+
HardhatKeystore,
19+
HardhatDeploy,
20+
HardhatExternalArtifacts,
21+
],
1322
solidity: {
1423
profiles: {
1524
default: {
@@ -51,6 +60,9 @@ const config: HardhatUserConfig = {
5160
paths: {
5261
sources: ['src'],
5362
},
63+
externalArtifacts: {
64+
modules: ['@rocketh/diamond/artifacts'],
65+
},
5466
};
5567

5668
export default config;

demoes/diamond/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@nomicfoundation/hardhat-node-test-runner": "^3.0.8",
1010
"@nomicfoundation/hardhat-viem": "^3.0.2",
1111
"@rocketh/deploy": "^0.19.1",
12-
"@rocketh/diamond": "^0.19.1",
12+
"@rocketh/diamond": "^0.19.2",
1313
"@rocketh/node": "^0.19.3",
1414
"@rocketh/read-execute": "^0.19.0",
1515
"@types/node": "^25.2.3",
@@ -18,6 +18,7 @@
1818
"forge-std": "github:foundry-rs/forge-std#v1.9.4",
1919
"hardhat": "3.1.8",
2020
"hardhat-deploy": "workspace:*",
21+
"hardhat-external-artifacts": "^0.0.3",
2122
"ldenv": "^0.3.16",
2223
"prettier": "^3.8.1",
2324
"prettier-plugin-solidity": "^2.2.1",
@@ -42,7 +43,7 @@
4243
"deploy:watch": "wait-on ./generated && ldenv -m localhost as-soon -w generated -w deploy pnpm run deploy:dev @@MODE @@",
4344
"test": "hardhat test",
4445
"test:watch": "wait-on ./generated && as-soon -w generated -w test hardhat test --no-compile",
45-
"start": "zellij-launcher --layout zellij.kdl a $npm_package_name || zellij --layout zellij.kdl -s $npm_package_name",
46+
"start": "zellij-launcher a $npm_package_name || zellij -n zellij.kdl -s $npm_package_name",
4647
"stop": "zellij kill-session $npm_package_name",
4748
"format:check": "prettier --check .",
4849
"format": "prettier --write ."

0 commit comments

Comments
 (0)