Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Abhimanyu121/hypercerts
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
Abhimanyu121 committed Oct 16, 2023
2 parents afe36de + b79636b commit 3c19045
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
24 changes: 17 additions & 7 deletions contracts/tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,24 @@ task("deploy-trader", "Deploy HypercertTrader and verify")
});

task("deploy-hyperboard", "Deploy Hyperboard and verify")
.addParam("hypercerts", "Hypercerts smart contract address")
.addParam("name", "Hyperboards NFT name", "Hyperboard")
.addParam("symbol", "Hyperboards NFT symbol", "HBRD")
.addParam("subgraph", "Subgraph endpoint")
.addParam("baseUri", "Base NFT metadata URI")
.addOptionalParam("output", "write the details of the deployment to this file if this is set")
.setAction(async ({ output }, { ethers, upgrades }) => {
const Hyperboard = await ethers.getContractFactory("Hyperboard");
const hyperboard = await upgrades.deployProxy(Hyperboard, {
kind: "uups",
unsafeAllow: ["constructor"],
});
.setAction(async ({ hypercerts, name, symbol, subgraph, baseUri, output }, { ethers, upgrades }) => {
const version = "1";
const hyperboard = await ethers.deployContract("Hyperboard", [
hypercerts,
name,
symbol,
subgraph,
baseUri,
version,
]);
const contract = await hyperboard.deployed();
console.log(`hyperboard is deployed to proxy address: ${hyperboard.address}`);
console.log(`hyperboard is deployed to address: ${hyperboard.address}`);

// If the `deploymentFile` option is set then write the deployed address to
// a json object on disk. This is intended to be deliberate with how we
Expand All @@ -126,6 +135,7 @@ task("deploy-hyperboard", "Deploy Hyperboard and verify")
}
await hre.run("verify:verify", {
address: hyperboard.address,
constructorArguments: [hypercerts, name, symbol, subgraph, baseUri, version],
});
} catch ({ message }) {
if ((message as string).includes("Reason: Already Verified")) {
Expand Down
2 changes: 1 addition & 1 deletion graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
},
"devDependencies": {
"@graphprotocol/graph-ts": "0.31.0",
"matchstick-as": "https://github.com/LimeChain/matchstick-as#update-graph-ts"
"matchstick-as": "0.5.2"
}
}
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21158,9 +21158,10 @@ marked@^4.2.12:
resolved "https://registry.yarnpkg.com/marked/-/marked-4.3.0.tgz#796362821b019f734054582038b116481b456cf3"
integrity sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==

"matchstick-as@https://github.com/LimeChain/matchstick-as#update-graph-ts":
version "0.5.1"
resolved "https://github.com/LimeChain/matchstick-as#d2f05087e65cd3fde4c01843df01c704ec4cc0e0"
[email protected]:
version "0.5.2"
resolved "https://registry.yarnpkg.com/matchstick-as/-/matchstick-as-0.5.2.tgz#6a6dde02d1d939c32458bd67bac688891a07a34c"
integrity sha512-fb1OVphDKEvJY06Ue02Eh1CNncuW95vp6b8tNAP7UIqplICSLoU/zgN6U7ge7R0upsoO78C7CRi4EyK/7Jxz7g==
dependencies:
wabt "1.0.24"

Expand Down

0 comments on commit 3c19045

Please sign in to comment.