-
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.
deploy process is working better, but still needs work. adding gh act…
…ions
- Loading branch information
Showing
7 changed files
with
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Compile Contracts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
compile: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' # You can specify the Node.js version you need | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Compile contracts | ||
run: npx hardhat compile |
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
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,8 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "emissionsdatalist", | ||
"path": "../../../ghg_cds/app/emissionsdatalist" | ||
} | ||
] | ||
} |
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,36 @@ | ||
const { ethers, getNamedAccounts } = require("hardhat"); | ||
|
||
async function main() { | ||
//const emissionsNFTFactory = await hre.ethers.deployContract("emissionsNFTFactory", [], {}); | ||
//await emissionsNFTFactory.waitForDeployment(); | ||
|
||
console.log("deploying emissionsNFT contract..."); | ||
|
||
const { deployer } = await getNamedAccounts(); | ||
const deployerSigner = await ethers.getSigner(deployer); | ||
|
||
const MyContract = await ethers.getContractFactory("emissionsNFT", deployerSigner); | ||
const myContract = await MyContract.deploy(); | ||
|
||
await myContract.deployed(); | ||
|
||
console.log("emissionsNFT deployed to:", myContract.address); | ||
|
||
/* const emissionsNFT = await hre.deployments.deploy('emissionsNFT', { from: deployer}); | ||
console.log( | ||
`EmissionsNFT Contract deployed to ${emissionsNFT.target}` | ||
);*/ | ||
} | ||
|
||
main.id = "emissionsNFT"; | ||
main.tags = ['regular']; | ||
|
||
//export default main; | ||
|
||
// We recommend this pattern to be able to use async/await everywhere | ||
// and properly handle errors. | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
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