Skip to content

Commit

Permalink
Merge pull request #90 from VWBL/feat/deploy-amoytestnet
Browse files Browse the repository at this point in the history
fix: deploy config
  • Loading branch information
thashimoto1998 authored May 27, 2024
2 parents d72ef7b + 66b023f commit 9dfa4ad
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 42 deletions.
10 changes: 10 additions & 0 deletions config/.env.amoy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
GATEWAY_PROXY_ADDRESS="0x11671c072c7fb34525084e4F9C343020F6cC2534"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0xf725d206Cd6a2D7b0acccDDeDBeCc3d6Dd458a01"
#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 Amoy's API URL
AMOY_URL=https://rpc-amoy.polygon.technology/
#Set your private key
PRIVATE_KEY=
4 changes: 2 additions & 2 deletions config/.env.aurora
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GATEWAY_PROXY_ADDRESS="0x590D6C32d8E9d40FF29615a1321Dc5C5aF3d5d7C"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x5543B811D825758e1BC4fC16EC09BBFf1C007BeF"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x3BE5B96053f2a6F8DBa5066cAbD30D092D9895B6"
#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 Aurora's API URL
AURORA_URL=
AURORA_URL=https://mainnet.aurora.dev
#Set your private key
PRIVATE_KEY=
4 changes: 2 additions & 2 deletions config/.env.aurora_testnet
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GATEWAY_PROXY_ADDRESS="0xe18e1Ef91503E11156182B1eAeE7901F9C88A1B9"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0xFb6fF37e7F35d4A05d7829b43F1C8a16F9791593"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0xce2263Ff162800423D0ef1383B784F3CFeaEA2d1"
#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 Aurora Testnet's API URL
AURORA_TESTNET_URL=
AURORA_TESTNET_URL=https://testnet.aurora.dev
#Set your private key
PRIVATE_KEY=
2 changes: 1 addition & 1 deletion config/.env.ethereum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GATEWAY_PROXY_ADDRESS="0x935f06ab3333D085b9BF5F0c5D1294c6C19Bba08"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x1Dbe0B2b8eC3063a43C22024AB7AdEC584ca1004"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0xfcF17566f818BA68590440bfE88674d702128470"
#Set your NFT's metadata url
METADATA_URL=https://xxx.yyy.zzz
#Set your NFT's sign message
Expand Down
10 changes: 0 additions & 10 deletions config/.env.goerli

This file was deleted.

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="0xD13E015cC9DFcb46Bcae3f69d6E72d39164a1139"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x788F5C3e78147f458f53B8c13FE0126F33976fd1"
#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=
10 changes: 0 additions & 10 deletions config/.env.mumbai

This file was deleted.

4 changes: 2 additions & 2 deletions config/.env.polygon
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GATEWAY_PROXY_ADDRESS="0xa0cbAF6872f80172Bf0a471bC447440edFEC4475"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x9c9bd1b3376ccf3d695d9233c04e865e556f8980"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x89B8bFf9C9c72F94879Ac7bE286AF3d41eCFb380"
#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 Polygon's API URL (ex. Alchemy API URL)
POYGON_URL=
POLYGON_URL=https://polygon-rpc.com
#Set your private key
PRIVATE_KEY=
4 changes: 2 additions & 2 deletions config/.env.sepolia
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GATEWAY_PROXY_ADDRESS="0x84893D72134F64e8e3151Af359eDB83B280d3F55"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0x78b0d2494d1877936bfb3d5d0360576b7FE3Cac4"
ACCESS_CONTROL_CHECKER_BY_NFT_ADDRESS="0xb24e16b14ef31510e5f8Ba19B68d89a39c4D3927"
#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 Goerli's API URL (ex. Alchemy API URL)
#Set your Sepolia's API URL (ex. Alchemy API URL)
SEPOLIA_URL=
#Set your private key
PRIVATE_KEY=
16 changes: 10 additions & 6 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ const config: HardhatUserConfig = {
url: process.env.ETHEREUM_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
goerli: {
url: process.env.GOERLI_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
sepolia: {
url: process.env.SEPOLIA_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
Expand All @@ -42,8 +38,8 @@ const config: HardhatUserConfig = {
url: process.env.POLYGON_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
mumbai: {
url: process.env.MUMBAI_URL || "",
amoy: {
url: process.env.AMOY_URL || "",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
aurora: {
Expand All @@ -53,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
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"deploy": "hardhat run scripts/deploy.ts",
"deploy:local": "hardhat run --network localhost scripts/deploy.ts",
"deploy:polygon": "env-cmd -f ./config/.env.polygon hardhat run --network polygon scripts/deploy.ts",
"deploy:mumbai": "env-cmd -f ./config/.env.mumbai hardhat run --network mumbai scripts/deploy.ts",
"deploy:amoy": "env-cmd -f ./config/.env.amoy hardhat run --network amoy scripts/deploy.ts",
"deploy:ethereum": "env-cmd -f ./config/.env.ethereum hardhat run --network ethereum scripts/deploy.ts",
"deploy:goerli": "env-cmd -f ./config/.env.goerli hardhat run --network goerli scripts/deploy.ts",
"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 9dfa4ad

Please sign in to comment.