Skip to content

Commit 9829af1

Browse files
mjlescanonoahlitvindbeal-eth
authored
* refactor cli and remove hardhat dependance * add deployments artifacts saved to deploy command * fix signer deployment * re enable run command * fix logging for subcommands * assorted updates * fix cli package-lock * fix sample project package lock * add npm run ci command to install deps from all packages * update package-lock * update typescript as devDependency in builder * fix package-lock * fix cli build * remove unnecessary ci command * fix logging of settings for build command * fix removed cached files * fix ethers import * fix ipfs configuration on build * remove lib/ from sample project * docs and cli interface * hardhat commands * fix printing of templated version * fix package interpolation * fix name & version definition * fix hardhat-cannon params build * fix hardhat-cannon build artifacts getter * fix hardhat-cannon run command * v1.1.0-alpha.0 * impersonate * update fundAddresses param for run * add custom infura endpoint * update default ethereum endpoint to cloudflare * normalize usage of registry constants * fix dependencies download on run command * v1.1.0-alpha.1 * sample project fixes * update cannon default dir ~/.local/share/cannon * fix cannon registry creation * update build command to use any network * v1.1.0-alpha.2 * update package-locks * update typescript * update package-lock files * update hardhat run command interface * fix build command dumpç * fix interact command on run * v1.1.0-alpha.3 * add writeDeployments flag to run command * remove unused write-deployments param * fix parsing of package ref & tilde on paths * fix publish workding * fix linter errors * update hardhat-cannon deploy command * fix error logging * fix build signers * add dry-run param to deploy command * fix account creation on dry-riun * v1.1.0-alpha.4 * fixes * fix build and publish * delete stray build folder * fix package version import * v1.1.0-alpha.5 * add interaction when running multiple packages * fix bugs for v2x testing * v1.1.0-alpha.6 * fixes for the run command * run linter * fix lint warnings of unused vars * fix hostname replace * fix hostname replace * add debugging to registry * fix ipfs url configuration * fix signers generated on build command * v1.1.0-alpha.7 * fix dependencies * fix imports * v1.1.0-alpha.8 * fix tsconfig modules config * v1.1.0-alpha.9 * fix dependencies versions * v1.1.0-alpha.10 Co-authored-by: Noah Litvin <[email protected]> Co-authored-by: Daniel Beal <[email protected]>
1 parent 9d34e26 commit 9829af1

File tree

133 files changed

+65607
-44104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+65607
-44104
lines changed

.github/workflows/verify.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v2
1515
with:
16-
node-version: "16.8.0"
17-
cache: "npm"
16+
node-version: '16.8.0'
17+
cache: 'npm'
1818
cache-dependency-path: '**/package-lock.json'
1919
- run: npm ci
2020
- run: npm run lint
@@ -41,4 +41,4 @@ jobs:
4141
- run: npm ci
4242
- run: npx lerna bootstrap
4343
- run: npm run build
44-
- run: cd ./packages/sample-project && npm run test
44+
- run: cd ./packages/sample-foundry-project && npm run test

README.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ This is the monorepo for Cannon. If you’re just interested in using the projec
44

55
For more information, please see documentation in the modules listed below:
66

7-
8-
- [`cli`](packages/cli): Source code for the CLI, accessible at `npx @usecannon/cli <package:version>`. This downloads a package from the registry, optionally exports deployment data, and runs the package on an [Anvil](https://github.com/foundry-rs/foundry/tree/master/anvil) node
9-
- [`hardhat-cannon`](packages/hardhat-cannon): Main plugin module which is imported into packages
10-
- [`registry`](packages/registry): Contains source and deployment code for the IPFS registry
11-
- [`registry-subgraph`](packages/registry-subgraph): Indexes the registry contract onto The Graph for display on the website explorer
12-
- [`sample-project`](packages/sample-project): Demonstrates the core functionality of the `hardhat-cannon` module
7+
- [`cli`](packages/cli): The command-line interface. Run `npx @usecannon/cli --help` for usage information.
8+
- [`builder`](packages/builder): Builds chain data from cannonfiles. (This is used by the CLI.)
9+
- [`hardhat-cannon`](packages/hardhat-cannon): Code for the Hardhat plug-in, which wraps the CLI functionality with defaults pulled from a Hardhat project configuration.
10+
- [`registry`](packages/registry): The smart contract for the package registry.
11+
- [`registry-subgraph`](packages/registry-subgraph): Indexes the registry contract onto The Graph for display on the website.
12+
- [`website`](packages/website): The website, hosted at https://usecannon.com
13+
- [`sample-hardhat-project`](packages/sample-hardhat-project): Hardhat project that demonstrates the core functionality of the `hardhat-cannon` module
14+
- [`sample-foundry-project`](packages/sample-hardhat-project): Foundry project that demonstrates the core functionality of the `cli` module
1315
- [`contracts`](packages/contracts): Cannonfiles for standard contracts
14-
- [`website`](packages/website): Source code for https://usecannon.com
15-
- [`builder`](packages/builder): Contains source code that builds chain data from cannonfiles
1616

1717
## Development
1818

@@ -22,6 +22,7 @@ To load an development version of Cannon, start by bootstrapping the project fro
2222

2323
```
2424
npx lerna bootstrap
25+
npm i
2526
```
2627

2728
After making changes, rebuild the project:
@@ -39,7 +40,7 @@ cd ./packages/cli && npm start -- <package:version>
3940
Test changes to the Hardhat plug-in in the sample project:
4041

4142
```
42-
cd ./packages/sample-project && npx hardhat cannon:build
43+
cd ./packages/sample-hardhat-project && npx hardhat cannon:build
4344
```
4445

4546
Preview updates to the website
@@ -48,3 +49,6 @@ Preview updates to the website
4849
cd ./packages/website && npm run dev
4950
```
5051

52+
### Publishing
53+
54+
With appropriate permissions on npm, publish updates using the [lerna publish](https://github.com/lerna/lerna/tree/main/commands/publish) command. For example, `npx lerna publish patch` will publish updated packages as the next patch version.

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "1.0.31"
5+
"version": "1.1.0-alpha.10"
66
}

0 commit comments

Comments
 (0)