legend-cli 1.0.2 → 1.0.4
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/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/hardhat3/README.md +0 -57
- package/hardhat3/hardhat.config.ts +0 -38
- package/hardhat3/ignition/modules/Counter.ts +0 -9
- package/hardhat3/package-lock.json +0 -2925
- package/hardhat3/package.json +0 -14
- package/hardhat3/scripts/send-op-tx.ts +0 -31
- package/hardhat3/test/Counter.ts +0 -46
- package/hardhat3/tsconfig.json +0 -13
- package/temp/createApp.js +0 -69
- package/temp/createContract--.js +0 -77
- package/temp/createContract.js +0 -77
- package/temp/createProject.js +0 -31
- package/temp/extract.js +0 -8
- package/temp/initContract.js +0 -38
- package/temp/publishContract copy.js +0 -120
- package/temp/publishContract.js +0 -120
package/package.json
CHANGED
package/hardhat3/README.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# Sample Hardhat 3 Beta Project (`node:test` and `viem`)
|
|
2
|
-
|
|
3
|
-
This project showcases a Hardhat 3 Beta project using the native Node.js test runner (`node:test`) and the `viem` library for Ethereum interactions.
|
|
4
|
-
|
|
5
|
-
To learn more about the Hardhat 3 Beta, please visit the [Getting Started guide](https://hardhat.org/docs/getting-started#getting-started-with-hardhat-3). To share your feedback, join our [Hardhat 3 Beta](https://hardhat.org/hardhat3-beta-telegram-group) Telegram group or [open an issue](https://github.com/NomicFoundation/hardhat/issues/new) in our GitHub issue tracker.
|
|
6
|
-
|
|
7
|
-
## Project Overview
|
|
8
|
-
|
|
9
|
-
This example project includes:
|
|
10
|
-
|
|
11
|
-
- A simple Hardhat configuration file.
|
|
12
|
-
- Foundry-compatible Solidity unit tests.
|
|
13
|
-
- TypeScript integration tests using [`node:test`](nodejs.org/api/test.html), the new Node.js native test runner, and [`viem`](https://viem.sh/).
|
|
14
|
-
- Examples demonstrating how to connect to different types of networks, including locally simulating OP mainnet.
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
### Running Tests
|
|
19
|
-
|
|
20
|
-
To run all the tests in the project, execute the following command:
|
|
21
|
-
|
|
22
|
-
```shell
|
|
23
|
-
npx hardhat test
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
You can also selectively run the Solidity or `node:test` tests:
|
|
27
|
-
|
|
28
|
-
```shell
|
|
29
|
-
npx hardhat test solidity
|
|
30
|
-
npx hardhat test nodejs
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Make a deployment to Sepolia
|
|
34
|
-
|
|
35
|
-
This project includes an example Ignition module to deploy the contract. You can deploy this module to a locally simulated chain or to Sepolia.
|
|
36
|
-
|
|
37
|
-
To run the deployment to a local chain:
|
|
38
|
-
|
|
39
|
-
```shell
|
|
40
|
-
npx hardhat ignition deploy ignition/modules/Counter.ts
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
To run the deployment to Sepolia, you need an account with funds to send the transaction. The provided Hardhat configuration includes a Configuration Variable called `SEPOLIA_PRIVATE_KEY`, which you can use to set the private key of the account you want to use.
|
|
44
|
-
|
|
45
|
-
You can set the `SEPOLIA_PRIVATE_KEY` variable using the `hardhat-keystore` plugin or by setting it as an environment variable.
|
|
46
|
-
|
|
47
|
-
To set the `SEPOLIA_PRIVATE_KEY` config variable using `hardhat-keystore`:
|
|
48
|
-
|
|
49
|
-
```shell
|
|
50
|
-
npx hardhat keystore set SEPOLIA_PRIVATE_KEY
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
After setting the variable, you can run the deployment with the Sepolia network:
|
|
54
|
-
|
|
55
|
-
```shell
|
|
56
|
-
npx hardhat ignition deploy --network sepolia ignition/modules/Counter.ts
|
|
57
|
-
```
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import hardhatToolboxViemPlugin from "@nomicfoundation/hardhat-toolbox-viem";
|
|
2
|
-
import { configVariable, defineConfig } from "hardhat/config";
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
plugins: [hardhatToolboxViemPlugin],
|
|
6
|
-
solidity: {
|
|
7
|
-
profiles: {
|
|
8
|
-
default: {
|
|
9
|
-
version: "0.8.28",
|
|
10
|
-
},
|
|
11
|
-
production: {
|
|
12
|
-
version: "0.8.28",
|
|
13
|
-
settings: {
|
|
14
|
-
optimizer: {
|
|
15
|
-
enabled: true,
|
|
16
|
-
runs: 200,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
networks: {
|
|
23
|
-
hardhatMainnet: {
|
|
24
|
-
type: "edr-simulated",
|
|
25
|
-
chainType: "l1",
|
|
26
|
-
},
|
|
27
|
-
hardhatOp: {
|
|
28
|
-
type: "edr-simulated",
|
|
29
|
-
chainType: "op",
|
|
30
|
-
},
|
|
31
|
-
sepolia: {
|
|
32
|
-
type: "http",
|
|
33
|
-
chainType: "l1",
|
|
34
|
-
url: configVariable("SEPOLIA_RPC_URL"),
|
|
35
|
-
accounts: [configVariable("SEPOLIA_PRIVATE_KEY")],
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
});
|