Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Improve system readiness for deployment (paritytech#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeddes authored Jul 15, 2021
1 parent bec5972 commit 0fed4da
Show file tree
Hide file tree
Showing 58 changed files with 3,481 additions and 2,048 deletions.
31 changes: 31 additions & 0 deletions ethereum/migrations/99_dump_address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
require("dotenv").config();
const fs = require('fs');

contractNames = [
"ETHApp",
"ERC20App",
"DOTApp",
"BasicInboundChannel",
"BasicOutboundChannel",
"IncentivizedInboundChannel",
"IncentivizedOutboundChannel"
]

module.exports = function (deployer, network, accounts) {
deployer.then(async () => {

addresses = {}

for (const name of contractNames) {
contract = await artifacts.require(name)
instance = await contract.deployed()

addresses[name] = instance.address
}

console.log(JSON.stringify(addresses, null, 2))

console.log("Dumped contract addresses at /tmp/addresses.json")
fs.writeFileSync("/tmp/addresses.json", JSON.stringify(addresses, null, 2))
});
}
7 changes: 3 additions & 4 deletions ethereum/scripts/dumpTestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const bridge = {

const dump = (tmpDir, channels, bridge) => {
const config = {
global: {
"data-dir": "/tmp/snowbridge-e2e-config",
},
ethereum: {
endpoint: "ws://localhost:8545/",
startblock: 1,
Expand All @@ -57,10 +60,6 @@ const dump = (tmpDir, channels, bridge) => {
relaychain: {
endpoint: "ws://127.0.0.1:9944/"
},
database: {
dialect: "sqlite3",
dbpath: "tmp.db",
},
workers: {
parachaincommitmentrelayer: {
enabled: true,
Expand Down
3 changes: 2 additions & 1 deletion ethereum/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ module.exports = {
"https://ropsten.infura.io/v3/".concat(process.env.INFURA_PROJECT_ID)
),
network_id: 3,
gas: 6000000
gas: 8000000,
gasPrice: 50000000000
}
},
mocha: {
Expand Down
4,013 changes: 3,033 additions & 980 deletions ethereum/yarn.lock

Large diffs are not rendered by default.

133 changes: 0 additions & 133 deletions infra/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions infra/ansible/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions infra/ansible/ansible.cfg

This file was deleted.

114 changes: 0 additions & 114 deletions infra/ansible/aws.yml

This file was deleted.

7 changes: 0 additions & 7 deletions infra/ansible/files/journald.conf

This file was deleted.

27 changes: 0 additions & 27 deletions infra/ansible/inventory/aws_ec2.yml

This file was deleted.

5 changes: 0 additions & 5 deletions infra/ansible/inventory/group_vars/rococo.yml

This file was deleted.

12 changes: 0 additions & 12 deletions infra/ansible/inventory/host_vars/parachain-node-0/node-key.yml

This file was deleted.

12 changes: 0 additions & 12 deletions infra/ansible/inventory/host_vars/relaychain-node-0/node-key.yml

This file was deleted.

Loading

0 comments on commit 0fed4da

Please sign in to comment.