-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init ignition/modules/EventManager.ts
- Loading branch information
Showing
7 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules"; | ||
|
||
// npx hardhat ignition deploy ignition/modules/EventManager.ts --network localhost | ||
const EventManagerModule = buildModule("EventManagerModule", (m) => { | ||
// Déploiement du contrat EventManager. | ||
const eventManager = m.contract("EventManager"); | ||
|
||
return { eventManager }; | ||
}); | ||
|
||
export default EventManagerModule; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Vérifier si un argument est fourni. | ||
if [ -z "$1" ]; then | ||
echo "Error: Network must be specified as an argument." | ||
echo "Usage: $0 <network>" | ||
exit 1 | ||
fi | ||
|
||
# Déployer sur le réseau spécifié. | ||
npx hardhat ignition deploy ignition/modules/EventManager.ts --network $1 |