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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "legend-cli",
3
3
  "type": "module",
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "description": "Smart Contract Publisher by Auto Legends",
6
6
  "bin": "dist/index.js",
7
7
  "scripts": {
@@ -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
- });
@@ -1,9 +0,0 @@
1
- import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
2
-
3
- export default buildModule("CounterModule", (m) => {
4
- const counter = m.contract("Counter");
5
-
6
- m.call(counter, "incBy", [5n]);
7
-
8
- return { counter };
9
- });