legend-cli 1.0.1

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.
@@ -0,0 +1 @@
1
+ {"name":"xircus","version":"1.0.30","description":"Xircus CLI","license":"MIT","dependencies":{"@poppinss/prompts":"^2.0.2","@xircus-web3/sdk":"*","app-root-path":"^3.1.0","chalk":"^5.1.2","cli-step":"^1.0.2","commander":"^10.0.0","cross-spawn":"^7.0.3","detect-package-manager":"^2.0.1","dotenv":"^16.0.3","ethers":"^5.7.1","execa":"^7.1.1","form-data":"^4.0.0","glob":"^9.3.2","got":"^12.6.0","hardhat":"^2.12.1","isomorphic-fetch":"^3.0.0","load-json-file":"^7.0.1","open":"^8.4.0","ora":"^6.2.0","prompts":"^2.4.2","sol-straightener":"^1.1.1","solc":"^0.8.17","tar":"^6.1.13","tiny-invariant":"^1.3.1","update-notifier":"^6.0.2","validate-npm-package-name":"^5.0.0","write":"^2.0.0"},"devDependencies":{"esbuild":"^0.15.12"},"bin":"index.js"}
package/dist/readme.md ADDED
@@ -0,0 +1,43 @@
1
+ # Xircus CLI
2
+
3
+ ## Documentation
4
+ For full documentation and example,
5
+ - [Xircus Developers](https://developers.xircus.app)
6
+ - [Xircus Developer Gitbook](https://xircus-developer.gitbook.io/)
7
+
8
+
9
+ ## Introduction
10
+ The Xircus CLI allows you to create starter codebase for building web3 apps using the Xircus SDK. It has smart contract publishing and app uploading to decentralized storage for permaweb.
11
+
12
+ ## Installation
13
+ ```bash
14
+ npm install -g xircus
15
+ ```
16
+
17
+ ## CLI Commands
18
+ ```
19
+ npx xircus --version
20
+ npx xircus create-app --template=with-components
21
+ npx xircus create-contract
22
+ npx xircus create-skin
23
+ npx xircus create-block
24
+ npx xircus create-api
25
+ npx xircus compile [SOURCE]
26
+ npx xircus publish [SOURCE]
27
+ npx xircus deploy [SOURCE]
28
+ ```
29
+
30
+ ## Community
31
+ Check out our following places for more xircus-related content:
32
+
33
+ - Join the discussions on Github
34
+ - Follow [@xircusweb3](https://twitter.com/xircusweb3) on Twitter for project updates
35
+ - Share your project using xircus
36
+ - Browse the awesome-xircus list of awesome projects and resources
37
+
38
+ ## Support
39
+ If you find xircus useful, please consider suporting development. Thank You!
40
+
41
+ - Github Sponsors
42
+ - Gitcoin Grant
43
+ - xircus.eth
@@ -0,0 +1,57 @@
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
+ ```
@@ -0,0 +1,38 @@
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
+ });
@@ -0,0 +1,9 @@
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
+ });