Skip to content

Commit

Permalink
feat: joc deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
thashimoto1998 committed May 21, 2024
1 parent bf90ead commit b72f6a8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 5 deletions.
10 changes: 10 additions & 0 deletions config/.env.joc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
GATEWAY_PROXY_ADDRESS="0xB6320E41B0A2ab217Fb74459ac7fd8781f68CC09"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x9b0C09A6DF27f972E8051E54FbB5DeF560bea0E5"
#Set your NFT's metadata url
METADATA_URL=https://xxx.yyy.zzz
#Set your NFT's sign message
MESSAGE_TO_BE_SIGNED=Hello VWBL
#Set your Japapan Open Chain Mainnet's API URL
JOC_MAINNET_URL=
#Set your private key
PRIVATE_KEY=
10 changes: 10 additions & 0 deletions config/.env.joc_testnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
GATEWAY_PROXY_ADDRESS="0xB6320E41B0A2ab217Fb74459ac7fd8781f68CC09"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x9b0C09A6DF27f972E8051E54FbB5DeF560bea0E5"
#Set your NFT's metadata url
METADATA_URL=https://xxx.yyy.zzz
#Set your NFT's sign message
MESSAGE_TO_BE_SIGNED=Hello VWBL
#Set your Japapan Open Chain Testnet's API URL
JOC_TESTNET_URL=
#Set your private key
PRIVATE_KEY=
8 changes: 8 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ const config: HardhatUserConfig = {
aurora_testnet: {
url: process.env.AURORA_TESTNET_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
},
joc: {
url: process.env.JOC_MAINNET_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
},
joc_testnet: {
url: process.env.JOC_TESTNET_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
}
},
}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"deploy:sepolia": "env-cmd -f ./config/.env.sepolia hardhat run --network sepolia scripts/deploy.ts",
"deploy:aurora": "env-cmd -f ./config/.env.aurora hardhat run --network aurora scripts/deploy.ts",
"deploy:aurora_testnet": "env-cmd -f ./config/.env.aurora_testnet hardhat run --network aurora_testnet scripts/deploy.ts",
"deploy:joc": "env-cmd -f ./config/.env.joc hardhat run --network joc scripts/deploy.ts",
"deploy:joc_testnet": "env-cmd -f ./config/.env.joc_testnet hardhat run --network joc_testnet scripts/deploy.ts",
"verify": "hardhat verify"
},
"devDependencies": {
Expand Down
9 changes: 4 additions & 5 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ async function main() {
const baseURI = process.env.METADATA_URL!
console.log("VWBL Metadata URL: ", baseURI)

const gatewayProxyContractAddress = process.env.GATEWAY_PROXY_ADDRESS!;
const accessControlCheckerByNFTContractAddress = process.env.ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS!;
const messageToBeSigned = process.env.MESSAGE_TO_BE_SIGNED!;
console.log("Message to be signed: ", messageToBeSigned);
const gatewayProxyContractAddress = process.env.GATEWAY_PROXY_ADDRESS!
const accessControlCheckerByNFTContractAddress = process.env.ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS!
const messageToBeSigned = process.env.MESSAGE_TO_BE_SIGNED!
console.log("Message to be signed: ", messageToBeSigned)

let VWBLERC721Contract: Contract;

const vwblERC721 = await ethers.getContractFactory("VWBLERC721ERC2981")
VWBLERC721Contract = await vwblERC721.deploy(
baseURI,
Expand Down

0 comments on commit b72f6a8

Please sign in to comment.