Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2023-09-15 #475

Merged
merged 96 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
4321b68
restore old ui files
zoeyTM Aug 23, 2023
6863f45
add new types for execution UI
zoeyTM Aug 24, 2023
48a2637
add basic wiring up of UiEventEmitter
zoeyTM Aug 24, 2023
275db43
refactor UiEventListener
zoeyTM Aug 24, 2023
7343c32
rename UiEvent and derivatives to ExecutionEvent
zoeyTM Aug 24, 2023
b422de6
implement execution event result helpers and evm error helper
zoeyTM Aug 24, 2023
089b8fd
implement initial UiEventHandler for hardhat-plugin
zoeyTM Aug 24, 2023
f06f77b
updated some event types and implemented ui render logic
zoeyTM Aug 25, 2023
5ca1fa8
some initial react changes
zoeyTM Aug 25, 2023
3a587f9
add event and emitter to send batch info to the UI
zoeyTM Aug 25, 2023
fbe5f0c
update UiEventHandler with batch logic
zoeyTM Aug 25, 2023
ec18206
update react views for new API
zoeyTM Aug 26, 2023
cfc9989
fixed all build errors
zoeyTM Aug 26, 2023
5548119
implement remaining journal messages as events
zoeyTM Aug 28, 2023
af7b059
implement VerboseEventHelper to encompass previous "verbose mode" via…
zoeyTM Aug 28, 2023
4bd0e68
added events for beginning new deployments and beginning each new batch
zoeyTM Aug 29, 2023
a264ed1
Remove double .ts extension in a file
alcuadrado Aug 29, 2023
3f0e8f9
Remove ".js" extension from some imports
alcuadrado Aug 29, 2023
0e561b7
emit moduleName for UI
zoeyTM Aug 31, 2023
3ff57a6
fix: apply `.flat` rather than lodash flat
kanej Aug 31, 2023
a5bc920
Merge branch 'development' into feat/execution-ui
kanej Aug 31, 2023
e018f52
feat: show deployed addresses on rerun
kanej Aug 31, 2023
0c0ab65
chore: sketch out display of error results
kanej Aug 31, 2023
680ef1b
added display of validation errors
zoeyTM Sep 1, 2023
4c9ebc7
add display for reconciliation errors
zoeyTM Sep 1, 2023
7aefcd5
fix: moduleName in UI not displaying during early phase errors
zoeyTM Sep 1, 2023
0a3e89a
feat: cleanup execution spinner
kanej Sep 1, 2023
a20a35a
feat: support execution error result in ui
kanej Sep 1, 2023
9e067ba
feat: only display a batch if a future has started
kanej Sep 1, 2023
4569b88
Merge pull request #401 from NomicFoundation/feat/execution-ui
kanej Sep 5, 2023
58f41d0
npm fix
zoeyTM Sep 6, 2023
d1ddc7b
refactor: rename artifactFutureId to artifactId
kanej Sep 6, 2023
f64a809
update ci workflow
zoeyTM Sep 6, 2023
21f0280
fix: pin version of node 20 to avoid vite bug
kanej Sep 6, 2023
6476ce3
refactor: remove new-api as intermediary folder
kanej Sep 6, 2023
5d7ec07
refactor: rename new-execution to execution
kanej Sep 6, 2023
a0c7304
refactor: remove new-api folder as intermediary in tests
kanej Sep 6, 2023
19bebe3
refactor: rename new-execution to execution in test
kanej Sep 6, 2023
b9c539b
refactor: rename minimal-new-api to just minimal in tests
kanej Sep 6, 2023
3a6401e
refactor ExecutionEventListener function names
alcuadrado Sep 7, 2023
37cc8ae
remove second map and add clever type casting
zoeyTM Sep 7, 2023
b106242
fix lint error
zoeyTM Sep 7, 2023
6f9c544
refactor: rename wipe message
kanej Sep 7, 2023
ccca4ae
refactor: move views out of execution
kanej Sep 8, 2023
745658c
add integration test for chainId reconciliation
zoeyTM Sep 12, 2023
be05303
restrict ReadEventArgumentFuture types
zoeyTM Sep 12, 2023
f6b48b2
restrict calls and static calls to non library contracts
zoeyTM Sep 12, 2023
7e0bbaa
feat: rename `use-verbose` to `simple-text-ui`
kanej Sep 11, 2023
25bbada
Merge pull request #460 from NomicFoundation/fix/restrict-event-arg-type
zoeyTM Sep 13, 2023
b89c9ed
Merge pull request #461 from NomicFoundation/fix/limit-library-in-calls
zoeyTM Sep 13, 2023
404e36d
add support for reading events from send data futures
zoeyTM Sep 13, 2023
e90b7cd
fix lint
zoeyTM Sep 13, 2023
3b859a8
fix: rework batch complete detection
kanej Sep 13, 2023
3ac4367
refactor: rename executionId to networkInteractionId
kanej Sep 13, 2023
ab6f8b0
feat: add `Held` status to exState status
kanej Sep 11, 2023
f603a95
Merge pull request #464 from NomicFoundation/feat/send-data-events
zoeyTM Sep 14, 2023
2b550c3
Merge pull request #458 from NomicFoundation/chain-id-test
zoeyTM Sep 14, 2023
951e07b
rename `argumentName` to `nameOrIndex` and allow numbers for events
zoeyTM Sep 12, 2023
a94b543
add support for indexing static call result
zoeyTM Sep 12, 2023
98a667f
fix static call results and add tests
zoeyTM Sep 12, 2023
e09c30e
add validation rules for static call and tests
zoeyTM Sep 12, 2023
74743c7
update reconciliation rules
zoeyTM Sep 14, 2023
768a9a8
Merge pull request #462 from NomicFoundation/refactor/tuple-indexing
zoeyTM Sep 14, 2023
d14faf3
feat: validate user provided ids in builder api
kanej Sep 12, 2023
e277a64
feat: constrain inputs to ids to alphanumerics
kanej Sep 12, 2023
8e8baf7
feat: remove id from send options
kanej Sep 12, 2023
4a47a56
refactor: extract the id logic from module-builder
kanej Sep 13, 2023
0f4b7f7
test: fix ui test with bad id
kanej Sep 13, 2023
a3d881d
refactor: pull out validation methods
kanej Sep 13, 2023
5b45b09
feat: change call/staticCall ids to match namespacing
kanej Sep 13, 2023
91bc6ca
feat: allow ethers style event names
kanej Sep 13, 2023
a0ee590
feat: change id separators
kanej Sep 13, 2023
1d61181
refactor: tweak order of validation checks
kanej Sep 14, 2023
8d08c1b
test: add covering test
kanej Sep 14, 2023
d6b3050
introduced new deployment result type and moved logic out of reconciler
zoeyTM Sep 13, 2023
7ec1749
update UI to handle PreviousRunErrors
zoeyTM Sep 13, 2023
de1f601
update tests
zoeyTM Sep 13, 2023
5e8f723
update to UI
zoeyTM Sep 14, 2023
2d2a46a
Overload ModuleBuilder's contract, library and contractAt
alcuadrado Sep 12, 2023
808c2b7
Update all ocurrences
alcuadrado Sep 12, 2023
6c9c639
Replace some casts with validations
alcuadrado Sep 14, 2023
84827c6
Fix broken test
alcuadrado Sep 14, 2023
01eecfe
Remove outdated tests
alcuadrado Sep 14, 2023
6a07ff7
Rebase on top of `development`
alcuadrado Sep 14, 2023
77fa64c
Merge pull request #463 from NomicFoundation/module-builder-refactor
alcuadrado Sep 14, 2023
bb020a7
Rename FutureType values
alcuadrado Sep 14, 2023
c5b048d
Rename futures
alcuadrado Sep 14, 2023
5bcdd1a
Fix a broken test
alcuadrado Sep 14, 2023
7d556e2
Merge pull request #470 from NomicFoundation/refactor/overloaded-futures
alcuadrado Sep 14, 2023
d6bff1f
feat: rename plan to visualize
kanej Sep 14, 2023
6232f70
refactor: remove details from stored deployment
kanej Sep 14, 2023
2c86071
refactor: change serialization to be module based
kanej Sep 14, 2023
ff8fe1f
refactor: remove visualize from core api
kanej Sep 14, 2023
f68813c
test: tweak timeout
kanej Sep 14, 2023
5bf67c1
feat: store debug files with build infos
kanej Sep 14, 2023
8e67866
chore: bump version to v0.4.0
kanej Sep 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 1 addition & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
with:
node-version: 16
cache: npm
- name: npm latest
run: npm i -g npm@8 && npm i -g npm@latest
- name: Install
run: npm install
- name: Build
Expand All @@ -37,8 +35,6 @@ jobs:
with:
node-version: 16
cache: npm
- name: npm latest
run: npm i -g npm
- name: Install
run: npm install
- name: Build
Expand All @@ -53,15 +49,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
node: [16, 18, 20.5]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- name: npm latest
run: npm i -g npm
- name: Install
run: npm install
- name: Build
Expand All @@ -80,8 +74,6 @@ jobs:
with:
node-version: 16
cache: npm
- name: npm latest
run: npm i -g npm
- name: Install
run: npm install
- name: Build
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![npm](https://img.shields.io/npm/v/@ignored/hardhat-ignition.svg)](https://www.npmjs.com/package/@ignored/hardhat-ignition) [![hardhat](https://hardhat.org/buidler-plugin-badge.svg?1)](https://hardhat.org)
[![npm](https://img.shields.io/npm/v/@nomicfoundation/hardhat-ignition.svg)](https://www.npmjs.com/package/@nomicfoundation/hardhat-ignition) [![hardhat](https://hardhat.org/buidler-plugin-badge.svg?1)](https://hardhat.org)

# Ignition

Expand All @@ -13,19 +13,19 @@ Join our [Hardhat Support Discord server](https://hardhat.org/discord) to stay u
## Installation

```bash
npm install --save-dev @ignored/hardhat-ignition
npm install --save-dev @nomicfoundation/hardhat-ignition
```

And add the following statement to your `hardhat.config.js`:

```js
require("@ignored/hardhat-ignition");
require("@nomicfoundation/hardhat-ignition");
```

Or, if you are using TypeScript, add this to your `hardhat.config.ts`:

```js
import "@ignored/hardhat-ignition";
import "@nomicfoundation/hardhat-ignition";
```

## Getting Started
Expand All @@ -44,7 +44,7 @@ See our [Getting started guide](./docs/getting-started-guide.md) for a worked ex
- [Switching based on the _Network Chain ID_](./docs/creating-modules-for-deployment.md#switching-based-on-the-network-chain-id)
- [Using Ignition in _Hardhat_ tests](./docs/using-ignition-in-hardhat-tests.md)
- [Running a deployment](./docs/running-a-deployment.md)
- [Visualizing your deployment with the `plan` task](./docs/running-a-deployment.md#visualizing-your-deployment-with-the-plan-task)
- [Visualizing your deployment with the `visualize` task](./docs/running-a-deployment.md#visualizing-your-deployment-with-the-visualize-task)
- [Executing the deployment](./docs/running-a-deployment.md#executing-the-deployment)

### Examples
Expand Down
8 changes: 4 additions & 4 deletions docs/creating-modules-for-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ An **Ignition** deployment is composed of modules. A module is a special javascr
For example, this is a minimal module `MyModule` that deploys an instance of a `Token` contract and exposes it to any consumer of `MyModule`:

```javascript
const { buildModule } = require("@ignored/hardhat-ignition");
const { buildModule } = require("@nomicfoundation/hardhat-ignition");

module.exports = buildModule("MyModule", (m) => {
const token = m.contract("Token");
Expand Down Expand Up @@ -92,13 +92,13 @@ const b = m.contract("B", [], {

### Deploying from an artifact

To allow you to use your own mechanism for getting the contract artifact, `contractFromArtifact` supports passing an `Artifact` as the second parameter:
To allow you to use your own mechanism for getting the contract artifact, `contract` supports passing an `Artifact` as the second parameter:

```javascript
const artifact = hre.artifacts.readArtifactSync("Foo");

const userModule = buildModule("MyModule", (m) => {
m.contractFromArtifact("Foo", artifact, [0]);
m.contract("Foo", artifact, [0]);
});
```

Expand All @@ -107,7 +107,7 @@ const userModule = buildModule("MyModule", (m) => {
A user might need to execute a method in a contract that wasn't deployed by Ignition. An existing contract can be leveraged by passing an address and artifact:

```tsx
const uniswap = m.contractAtFromArtifact("UniswapRouter", "0x0...", artifact);
const uniswap = m.contractAt("UniswapRouter", "0x0...", artifact);

m.call(uniswap, "swap", [
/*...*/
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ $ npx hardhat
Add **Ignition** to your **Hardhat** project by installing the plugin:

```bash
npm install --save-dev @ignored/hardhat-ignition
npm install --save-dev @nomicfoundation/hardhat-ignition
```

Modify your `hardhat.config.js` file, to include **Ignition**:

```javascript
require("@nomicfoundation/hardhat-toolbox");
// ...
require("@ignored/hardhat-ignition");
require("@nomicfoundation/hardhat-ignition");
```

Create an `./ignition` folder in your project root to contain your deployment modules.
Expand All @@ -63,7 +63,7 @@ Add a deployment module under the `./ignition` folder for the example `Lock.sol`

```js
// ./ignition/LockModule.js
const { buildModule } = require("@ignored/hardhat-ignition");
const { buildModule } = require("@nomicfoundation/hardhat-ignition");

const currentTimestampInSeconds = Math.round(new Date(2023, 0, 1) / 1000);
const TEN_YEAR_IN_SECS = 10 * 365 * 24 * 60 * 60;
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion docs/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ yyyy-mm-dd` release.
13. On a successful check, `rebase merge` the release branch into `main`
14. Switch to main branch and pull the latest changes
15. Git tag the version, `g tag -a v0.x.x -m "v0.x.x"` and push the tag `git push --follow-tags`
16. Publish `@ignored/ignition-core`, `@ignored/ignition-ui` and `@ignored/hardhat-ignition` : `npm publish -w @ignored/ignition-core -w @ignored/ignition-ui -w @ignored/hardhat-ignition`
16. Publish `@nomicfoundation/ignition-core`, `@nomicfoundation/ignition-ui` and `@nomicfoundation/hardhat-ignition` : `npm publish -w @nomicfoundation/ignition-core -w @nomicfoundation/ignition-ui -w @nomicfoundation/hardhat-ignition`
17. Create a release on github off of the pushed tag
18 changes: 9 additions & 9 deletions docs/running-a-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@

### Table of Contents

- [Visualizing your deployment with the `plan` task](./running-a-deployment.md#visualizing-your-deployment-with-the-plan-task)
- [Visualizing your deployment with the `visualize` task](./running-a-deployment.md#visualizing-your-deployment-with-the-visualize-task)
- [Executing the deployment](./running-a-deployment.md#executing-the-deployment)
- [Configuration options](./running-a-deployment.md#configuration-options)
<!-- - [Resuming a failed or onhold deployment](./running-a-deployment.md#visualizing-your-deployment-with-the-plan-task) -->
<!-- - [Resuming a failed or onhold deployment](./running-a-deployment.md#visualizing-your-deployment-with-the-visualize-task) -->

---

Once you have built and tested your deployment module, it is time to deploy it! Start by making sure you understand exactly what will be executed on chain.

## Visualizing your deployment with the `plan` task
## Visualizing your deployment with the `visualize` task

**Ignition** adds a `plan` task to the cli, that will generate a HTML report showing a _dry run_ of the deployment - the contract deploys and contract calls.
**Ignition** adds a `visualize` task to the cli, that will generate a HTML report showing a _dry run_ of the deployment - the contract deploys and contract calls.

The `plan` task takes one argument, the module to visualize. For example, using the `ENS.js` module from our [ENS example project](../examples/ens/README.md):
The `visualize` task takes one argument, the module to visualize. For example, using the `ENS.js` module from our [ENS example project](../examples/ens/README.md):

```bash
npx hardhat plan ENS
npx hardhat visualize ENS
```

Running `plan` will generate the report based on the given module (in this case `ENS.js`), it will then open the report in your system's default browser:
Running `visualize` will generate the report based on the given module (in this case `ENS.js`), it will then open the report in your system's default browser:

![Main plan output](images/plan-1.png)
![Main visualize output](images/visualize-1.png)

The report summarises the contract that will be deployed and the contract calls that will be made.

It shows the dependency graph as it will be executed by Ignition (where a dependency will not be run until all its dependents have successfully completed).

If something in your deployment isn't behaving the way you expected, the `plan` task can be an extremely helpful tool for debugging and verifying that your and **Ignition**'s understanding of the deployment are the same.
If something in your deployment isn't behaving the way you expected, the `visualize` task can be an extremely helpful tool for debugging and verifying that your and **Ignition**'s understanding of the deployment are the same.

## Executing the deployment

Expand Down
2 changes: 1 addition & 1 deletion examples/complete/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require("@nomicfoundation/hardhat-toolbox");
require("@ignored/hardhat-ignition");
require("@nomicfoundation/hardhat-ignition");

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
Expand Down
19 changes: 7 additions & 12 deletions examples/complete/ignition/CompleteModule.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
// ./ignition/CompleteModule.js
const { buildModule } = require("@ignored/hardhat-ignition");
const { buildModule } = require("@nomicfoundation/hardhat-ignition");

const withLibArtifact = require("../libArtifacts/ContractWithLibrary.json");
const libArtifact = require("../libArtifacts/BasicLibrary.json");

module.exports = buildModule("CompleteModule", (m) => {
const basic = m.contract("BasicContract");
const library = m.library("BasicLibrary");
const libFromArtifact = m.libraryFromArtifact("BasicLibrary", libArtifact, {
const libFromArtifact = m.library("BasicLibrary", libArtifact, {
id: "BasicLibrary2",
});
const withLib = m.contractFromArtifact(
"ContractWithLibrary",
withLibArtifact,
[],
{
libraries: { BasicLibrary: library },
}
);
const withLib = m.contract("ContractWithLibrary", withLibArtifact, [], {
libraries: { BasicLibrary: library },
});

const call = m.call(basic, "basicFunction", [40]);
const eventArg = m.readEventArgument(call, "BasicEvent", "eventArg");
Expand All @@ -26,14 +21,14 @@ module.exports = buildModule("CompleteModule", (m) => {
const duplicate = m.contractAt("BasicContract", basic, {
id: "BasicContract2",
});
const duplicateWithLib = m.contractAtFromArtifact(
const duplicateWithLib = m.contractAt(
"ContractWithLibrary",
withLib,
withLibArtifact,
{ id: "ContractWithLibrary2" }
);

m.send("test-send", duplicate, 123n);
m.send("test_send", duplicate, 123n);

return {
basic,
Expand Down
4 changes: 2 additions & 2 deletions examples/complete/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nomicfoundation/ignition-complete-example",
"private": true,
"version": "0.3.0",
"version": "0.4.0",
"scripts": {
"test": "hardhat test",
"lint": "npm run prettier -- --check && npm run eslint",
Expand All @@ -10,7 +10,7 @@
"prettier": "prettier \"*.{js,md,json}\" \"ignition/*.{js,md,json}\" \"test/*.{js,md,json}\" \"contracts/**/*.sol\""
},
"devDependencies": {
"@ignored/hardhat-ignition": "^0.3.0",
"@nomicfoundation/hardhat-ignition": "^0.4.0",
"@nomicfoundation/hardhat-toolbox": "3.0.0",
"hardhat": "^2.14.0",
"prettier-plugin-solidity": "1.1.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/ens/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require("@nomicfoundation/hardhat-toolbox");
require("@ignored/hardhat-ignition");
require("@nomicfoundation/hardhat-ignition");

/**
* @type import('hardhat/config').HardhatUserConfig
Expand Down
8 changes: 4 additions & 4 deletions examples/ens/ignition/ENS.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { buildModule } = require("@ignored/hardhat-ignition");
const { buildModule } = require("@nomicfoundation/hardhat-ignition");

const namehash = require("eth-ens-namehash");
const ethers = hre.ethers;
Expand Down Expand Up @@ -30,7 +30,7 @@ const resolverModule = buildModule("RESOLVER", (m) => {
const resolver = m.contract("PublicResolver", [ens, ZERO_ADDRESS]);

m.call(ens, "setSubnodeOwner", [ZERO_HASH, resolverLabel, account], {
id: "set-subnode-owner-for-resolver",
id: "set_subnode_owner_for_resolver",
});

m.call(ens, "setResolver", [resolverNode, resolver]);
Expand All @@ -50,15 +50,15 @@ const reverseRegistrarModule = buildModule("REVERSEREGISTRAR", (m) => {
const reverseRegistrar = m.contract("ReverseRegistrar", [ens, resolver]);

m.call(ens, "setSubnodeOwner", [ZERO_HASH, reverseLabel, account], {
id: "set-subnode-owner-reverse",
id: "set_subnode_owner_reverse",
});

m.call(
ens,
"setSubnodeOwner",
[reverseTldHash, addrLabel, reverseRegistrar],
{
id: "set-subnode-addr-label",
id: "set_subnode_addr_label",
}
);

Expand Down
6 changes: 3 additions & 3 deletions examples/ens/ignition/test-registrar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { buildModule } = require("@ignored/hardhat-ignition");
const { buildModule } = require("@nomicfoundation/hardhat-ignition");
const namehash = require("eth-ens-namehash");

const setupENSRegistry = require("./ENS");
Expand All @@ -11,7 +11,7 @@ const ZERO_HASH =

const ACCOUNT_0 = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266";

module.exports = buildModule("TEST registrar", (m) => {
module.exports = buildModule("TEST_registrar", (m) => {
const tld = "test";
const tldHash = namehash.hash(tld);
const tldLabel = labelhash(tld);
Expand All @@ -22,7 +22,7 @@ module.exports = buildModule("TEST registrar", (m) => {
const registrar = m.contract("FIFSRegistrar", [ens, tldHash]);

m.call(ens, "setSubnodeOwner", [ZERO_HASH, tldLabel, ACCOUNT_0], {
id: "set-subnode-owner-for-registrar",
id: "set_subnode_owner_for_registrar",
});

return { ens, resolver, registrar, reverseRegistrar };
Expand Down
4 changes: 2 additions & 2 deletions examples/ens/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nomicfoundation/ignition-ens-example",
"private": true,
"version": "0.3.0",
"version": "0.4.0",
"scripts": {
"test": "hardhat test",
"lint": "npm run prettier -- --check && npm run eslint",
Expand All @@ -10,7 +10,7 @@
"prettier": "prettier \"*.{js,md,json}\" \"ignition/*.{js,md,json}\" \"test/*.{js,md,json}\" \"contracts/**/*.sol\""
},
"devDependencies": {
"@ignored/hardhat-ignition": "^0.3.0",
"@nomicfoundation/hardhat-ignition": "^0.4.0",
"@nomicfoundation/hardhat-toolbox": "3.0.0",
"hardhat": "^2.14.0",
"prettier-plugin-solidity": "1.1.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/sample/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require("@nomicfoundation/hardhat-toolbox");
require("@ignored/hardhat-ignition");
require("@nomicfoundation/hardhat-ignition");

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion examples/sample/ignition/LockModule.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ./ignition/LockModule.js
const { buildModule } = require("@ignored/hardhat-ignition");
const { buildModule } = require("@nomicfoundation/hardhat-ignition");

const currentTimestampInSeconds = Math.round(new Date(2023, 0, 1) / 1000);
const TEN_YEAR_IN_SECS = 10 * 365 * 24 * 60 * 60;
Expand Down
4 changes: 2 additions & 2 deletions examples/sample/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nomicfoundation/ignition-sample-example",
"private": true,
"version": "0.3.0",
"version": "0.4.0",
"scripts": {
"test": "hardhat test",
"lint": "npm run prettier -- --check && npm run eslint",
Expand All @@ -10,7 +10,7 @@
"prettier": "prettier \"*.{js,md,json}\" \"ignition/*.{js,md,json}\" \"test/*.{js,md,json}\" \"contracts/**/*.sol\""
},
"devDependencies": {
"@ignored/hardhat-ignition": "^0.3.0",
"@nomicfoundation/hardhat-ignition": "^0.4.0",
"@nomicfoundation/hardhat-toolbox": "3.0.0",
"hardhat": "^2.14.0",
"prettier-plugin-solidity": "1.1.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-sample/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { HardhatUserConfig } from "hardhat/config";

import "@nomicfoundation/hardhat-ignition";
import "@nomicfoundation/hardhat-toolbox";
import "@ignored/hardhat-ignition";

const config: HardhatUserConfig = {
solidity: "0.8.17",
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-sample/ignition/LockModule.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { buildModule } from "@ignored/hardhat-ignition";
import { buildModule } from "@nomicfoundation/hardhat-ignition";
import hre from "hardhat";

const currentTimestampInSeconds = Math.round(
Expand Down
Loading
Loading