This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
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.
- Loading branch information
1 parent
55fd65f
commit e173856
Showing
10 changed files
with
2,564 additions
and
33 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,47 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
/* eslint-disable prettier/prettier */ | ||
"use strict"; | ||
|
||
const hre = require("hardhat"); | ||
|
||
const deployFunction = async ({ deployments, getNamedAccounts }) => { | ||
const { deploy } = deployments; | ||
const { deployer } = await getNamedAccounts(); | ||
|
||
// Deploy the SupplyChain contract | ||
const supplychain = await deploy("SupplyChain", { | ||
from: deployer, | ||
log: true, | ||
nonce: await ethers.provider.getTransactionCount(deployer) | ||
}); | ||
console.log("SupplyChain contract deployed to:", supplychain.address); | ||
|
||
// Deploy the Participants contract | ||
const participants = await deploy("Participants", { | ||
from: deployer, | ||
log: true, | ||
nonce: await ethers.provider.getTransactionCount(deployer) | ||
}); | ||
console.log("Participants contract deployed to:", participants.address); | ||
|
||
// Deploy the Registry contract | ||
const registry = await deploy("Registry", { | ||
from: deployer, | ||
log: true, | ||
nonce: await ethers.provider.getTransactionCount(deployer) | ||
}); | ||
console.log("Registry contract deployed to:", registry.address); | ||
|
||
// Deploy the MineralToken contract | ||
const mineralToken = await deploy("MineralToken", { | ||
from: deployer, | ||
log: true, | ||
nonce: await ethers.provider.getTransactionCount(deployer) | ||
}); | ||
console.log("MineralToken contract deployed to:", mineralToken.address); | ||
}; | ||
|
||
// Setting individual tags correctly | ||
module.exports = deployFunction; | ||
module.exports.tags = ["SupplyChain", "Participants", "Registry", "MineralToken"]; |
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
1 change: 1 addition & 0 deletions
1
...s/hardhat/deploy/2_deploy_participants.js → .../hardhat/scripts/2_deploy_participants.js
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/* eslint-disable prettier/prettier */ | ||
"use strict"; | ||
const hre = require("hardhat"); | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
packages/hardhat/deploy/3_deploy_registry.js → ...ages/hardhat/scripts/3_deploy_registry.js
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
2 changes: 2 additions & 0 deletions
2
...s/hardhat/deploy/4_deploy_mineralToken.js → .../hardhat/scripts/4_deploy_mineralToken.js
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { Metadata } from "next"; | ||
|
||
import { ClaimRoleCard } from "~~/components/dashboard/ClaimRoleCard"; | ||
export const metadata: Metadata = { | ||
title: "Welcome abroad!", | ||
}; | ||
|
||
export default function OnBoadingPage() { | ||
return ( | ||
<div className="w-full min-h-screen flex justify-center items-center"> | ||
<p>Hello world</p> | ||
<ClaimRoleCard /> | ||
</div> | ||
); | ||
} | ||
} |
Oops, something went wrong.