Skip to content

Commit

Permalink
Merge pull request #32 from CudoVentures/CUDOS-1756
Browse files Browse the repository at this point in the history
Cudos 1756: Sepolia deployment
  • Loading branch information
kstoykov authored Dec 23, 2022
2 parents c82e5d5 + 19c9dc2 commit cecc5a5
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ target
tests/test-runner/Cargo.lock
tests/dockerfile/gravity.tar.gz
solidity/dist
solidity/build
solidity/artifacts/
orchestrator/bins

# OS files
.DS_Store

# IDE files
.idea/

Expand Down
53 changes: 28 additions & 25 deletions solidity/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,37 +31,40 @@ module.exports = {
// This is a sample solc configuration that specifies which version of solc to use
solidity: {
compilers: [
{
version: "0.6.6",
settings: {
optimizer: {
enabled: true
}
}
},
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true
}
}
},
{
version: "0.8.1",
settings: {
optimizer: {
enabled: true
{
version: "0.6.6",
settings: {
optimizer: {
enabled: true
}
}
},
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true
}
}
},
{
version: "0.8.1",
settings: {
optimizer: {
enabled: true
}
}
}
}
}
]
]
},
defaultNetwork: process.env.DEFAULT_NETWORK,
networks: {
rinkeby: {
url: `${process.env.ETH_NODE}`
},
sepolia: {
url: `${process.env.ETH_NODE}`
},
mainnet: {
url: `${process.env.ETH_NODE}`
},
Expand Down Expand Up @@ -1022,7 +1025,7 @@ module.exports = {
mocha: {
timeout: 2000000
},
etherscan:{
etherscan: {
apiKey: `${process.env.ETHERSCAN_API_KEY}`
}
};
12 changes: 7 additions & 5 deletions solidity/scripts/contract-deployer.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
npx ts-node \
contract-deployer.ts \
--cosmos-node="http://localhost:26657" \
--eth-node="http://localhost:8545" \
--eth-privkey="0xb1bab011e03a9862664706fc3bbaa1b16651528e5f0e7fbfcbfdd8be302a13e7" \
--contract=Gravity.json \
--test-mode=true
--cosmos-node="${COSMOS_NODE}" \
--eth-node="${ETH_NODE}" \
--eth-privkey="${ETH_PRIV_KEY_HEX}" \
--contract="artifacts/contracts/Gravity.sol/Gravity.json" \
--test-mode=true \
--cudos-access-control="${CUDOS_ACCESS_CONTROL_ADDRESS}" \
--cudos-token-address="${CUDOS_TOKEN_ADDRESS}"

0 comments on commit cecc5a5

Please sign in to comment.