Skip to content

Commit

Permalink
v1.1 (#23)
Browse files Browse the repository at this point in the history
* 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 <noah.litvin@gmail.com>
Co-authored-by: Daniel Beal <git@danb.email>
  • Loading branch information
3 people authored Sep 22, 2022
1 parent 9d34e26 commit 9829af1
Show file tree
Hide file tree
Showing 133 changed files with 65,607 additions and 44,104 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.8.0"
cache: "npm"
node-version: '16.8.0'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- run: npm run lint
Expand All @@ -41,4 +41,4 @@ jobs:
- run: npm ci
- run: npx lerna bootstrap
- run: npm run build
- run: cd ./packages/sample-project && npm run test
- run: cd ./packages/sample-foundry-project && npm run test
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ This is the monorepo for Cannon. If you’re just interested in using the projec

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


- [`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
- [`hardhat-cannon`](packages/hardhat-cannon): Main plugin module which is imported into packages
- [`registry`](packages/registry): Contains source and deployment code for the IPFS registry
- [`registry-subgraph`](packages/registry-subgraph): Indexes the registry contract onto The Graph for display on the website explorer
- [`sample-project`](packages/sample-project): Demonstrates the core functionality of the `hardhat-cannon` module
- [`cli`](packages/cli): The command-line interface. Run `npx @usecannon/cli --help` for usage information.
- [`builder`](packages/builder): Builds chain data from cannonfiles. (This is used by the CLI.)
- [`hardhat-cannon`](packages/hardhat-cannon): Code for the Hardhat plug-in, which wraps the CLI functionality with defaults pulled from a Hardhat project configuration.
- [`registry`](packages/registry): The smart contract for the package registry.
- [`registry-subgraph`](packages/registry-subgraph): Indexes the registry contract onto The Graph for display on the website.
- [`website`](packages/website): The website, hosted at https://usecannon.com
- [`sample-hardhat-project`](packages/sample-hardhat-project): Hardhat project that demonstrates the core functionality of the `hardhat-cannon` module
- [`sample-foundry-project`](packages/sample-hardhat-project): Foundry project that demonstrates the core functionality of the `cli` module
- [`contracts`](packages/contracts): Cannonfiles for standard contracts
- [`website`](packages/website): Source code for https://usecannon.com
- [`builder`](packages/builder): Contains source code that builds chain data from cannonfiles

## Development

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

```
npx lerna bootstrap
npm i
```

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

```
cd ./packages/sample-project && npx hardhat cannon:build
cd ./packages/sample-hardhat-project && npx hardhat cannon:build
```

Preview updates to the website
Expand All @@ -48,3 +49,6 @@ Preview updates to the website
cd ./packages/website && npm run dev
```

### Publishing

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.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "1.0.31"
"version": "1.1.0-alpha.10"
}
Loading

0 comments on commit 9829af1

Please sign in to comment.