Skip to content

Commit

Permalink
Add updates for Ethereum blockchain deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
jg8481 committed Apr 10, 2024
1 parent de937a8 commit d282730
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
11 changes: 4 additions & 7 deletions solidity-hardhat-multichain-tools/Ethereum.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ module.exports = {
chainId: 31337,
enabled: true,
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/<your-infura-api-key-goes-here>", // Rinkeby Testnet. To use this RPC, you need to create a free Infura account and replace "<your-infura-api-key-goes-here>".
//accounts: [<Your wallet private key can go here...WARNING, do not use this if you only want to do local testing. ALWAYS PROTECT YOUR PRIVATE KEY!!!>]
},
goerli: {
url: "https://goerli.infura.io/v3/<your-infura-api-key-goes-here>", // Goerli Testnet. To use this RPC, you need to create a free Infura account and replace "<your-infura-api-key-goes-here>".
//accounts: [<Your wallet private key can go here...WARNING, do not use this if you only want to do local testing. ALWAYS PROTECT YOUR PRIVATE KEY!!!>]
sepolia: {
url: "https://sepolia.infura.io/v3/<your-infura-api-key-goes-here>", // Sepolia Testnet. To use this RPC, you need to create a free Infura account and replace "<your-infura-api-key-goes-here>".
//accounts: [<Your wallet private key can go here...WARNING, do not use this if you only want to do local testing. ALWAYS PROTECT YOUR PRIVATE KEY!!!>],
chainId: 11155111,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ Library Process

*** Variables ***


${PATH} ${EXECDIR}/solidity-hardhat-multichain-tools
${NETWORK} hardhat ### This will deploy your smart contract to the local Hardhat Network Node
#${NETWORK} rinkeby ### This will deploy your smart contract to the Ethereum Rinkeby Testnet. You need a wallet private key set to the provided Ethereum.config.js file, otherwise it won't work.
#${NETWORK} goerli ### This will deploy your smart contract to the Ethereum Goerli Testnet. You need a wallet private key set to the provided Ethereum.config.js file, otherwise it won't work.
${ETHEREUM_DEPLOYMENT} disabled ### If you change this to "enabled" the "HARDHAT ETHEREUM DEPLOYMENT" automation below will attempt to run a deployment using the Ethereum.config.js file. You need a wallet private key set up in that file, otherwise it won't work.
${NETWORK} hardhat ### This will deploy your smart contract to the local Hardhat Network Node. Comment this line if you want to try the Ethereum Sepolia Testnet below.
#${NETWORK} sepolia ### This will deploy your smart contract to the Ethereum Sepolia Testnet if you un-comment this line. You need a wallet private key set to the provided Ethereum.config.js file, otherwise it won't work.

*** Tasks ***

Expand Down Expand Up @@ -52,3 +53,20 @@ HARDHAT DEPLOYMENT STEP 3 : Deploy the compiled Solidity smart contracts to the
Log To Console ...
Log To Console ...
Log To Console ...

HARDHAT ETHEREUM DEPLOYMENT : Deploy the compiled Solidity smart contracts to the Ethereum blockchain configured in the Ethereum.config.js file. This will skip quickly if any checks fail.
[Tags] robot:skip-on-failure Ethereum_Blockchain_Test
Skip If '${ETHEREUM_DEPLOYMENT}' == 'disabled'
Should Not Be Empty ${ETHEREUM_DEPLOYMENT}
Should Contain ${ETHEREUM_DEPLOYMENT} enabled
Remove File ${PATH}/logs/hardhat-contract-deployment.log
Run Process cd ${PATH} && echo "..." > ./logs/hardhat-contract-deployment.log && npx hardhat --config Ethereum.config.js run --network ${NETWORK} ./scripts/deploy.js >> ./logs/hardhat-contract-deployment.log shell=yes
${OUTPUT}= Get File ${PATH}/logs/hardhat-contract-deployment.log
Log ${OUTPUT}
Log To Console ...
Log To Console ...
Log To Console ...
Log To Console ${OUTPUT}
Log To Console ...
Log To Console ...
Log To Console ...

0 comments on commit d282730

Please sign in to comment.