Skip to content

Commit 348331b

Browse files
Merge pull request #368 from Dominikkq/redeploy
Sepolia + rsktestnet redeploy
2 parents a0d1023 + 6878c44 commit 348331b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+4970
-10559
lines changed

bridge/abi/Federation.json

Lines changed: 0 additions & 798 deletions
This file was deleted.

bridge/deploy/04_deploy_bridge.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ module.exports = async function(hre) { // HardhatRuntimeEnvironment
55
const {deployments, network} = hre;
66
const {deployer} = await getNamedAccounts();
77
const {deploy, log} = deployments;
8-
const BRIDGE_LAST_VERSION = 'v4'
8+
const BRIDGE_LAST_VERSION = 'v3'
99

1010
const bridgeProxyAddress = await address.getBridgeProxyAddress(hre);
1111
if (bridgeProxyAddress) {
12-
const Bridge = await deployments.getArtifact('Bridge');
12+
const Bridge = await deployments.getArtifact('BridgeV3');
1313
const bridge = new web3.eth.Contract(Bridge.abi, bridgeProxyAddress);
1414
const currentBridgeVersion = bridge.methods.version().call();
1515
if (currentBridgeVersion === BRIDGE_LAST_VERSION) {
1616
return;
1717
}
1818
}
1919

20-
const deployResult = await deploy('Bridge', {
20+
const deployResult = await deploy('BridgeV3', {
2121
from: deployer,
2222
log: true,
2323
});
@@ -35,4 +35,4 @@ module.exports = async function(hre) { // HardhatRuntimeEnvironment
3535
}
3636
};
3737
module.exports.id = 'deploy_bridge'; // id required to prevent reexecution
38-
module.exports.tags = ['Bridge', 'Upgrade', 'DeployFromScratch', 'IntegrationTest'];
38+
module.exports.tags = ['BridgeV3', 'Upgrade', 'DeployFromScratch', 'IntegrationTest'];

bridge/deploy/05_deploy_bridgeProxy.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
1010
return;
1111
}
1212

13-
const Bridge = await deployments.get('Bridge');
13+
const Bridge = await deployments.get('BridgeV3');
1414
const multiSigAddress = await address.getMultiSigAddress(hre);
1515
const proxyAdminAddress = await address.getProxyAdminAddress(hre);
1616
const sideTokenFactoryAddress = await address.getSideTokenFactoryAddress(hre);
@@ -20,7 +20,8 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
2020
multiSigAddress,
2121
deployer,
2222
deployer,
23-
sideTokenFactoryAddress
23+
sideTokenFactoryAddress,
24+
'r'
2425
);
2526
await methodCall.call({ from: deployer })
2627

@@ -50,4 +51,4 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
5051
};
5152
module.exports.id = 'deploy_bridge_proxy'; // id required to prevent reexecution
5253
module.exports.tags = ['BridgeProxy', 'DeployFromScratch', 'IntegrationTest'];
53-
module.exports.dependencies = ['Bridge', 'MultiSigWallet', 'ProxyAdmin', 'SideTokenFactory'];
54+
module.exports.dependencies = ['BridgeV3', 'MultiSigWallet', 'ProxyAdmin', 'SideTokenFactory'];

bridge/deploy/06_deploy_federation.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ module.exports = async function(hre) { // HardhatRuntimeEnvironment
55
const {deployments, network} = hre;
66
const {deployer} = await getNamedAccounts();
77
const {deploy, log} = deployments;
8-
const FEDERATION_LAST_VERSION = 'v3'
8+
const FEDERATION_LAST_VERSION = 'v2'
99

1010
const federationProxyAddress = await address.getFederationProxyAddress(hre);
1111
if (federationProxyAddress) {
12-
const Federation = await deployments.getArtifact('Federation');
12+
const Federation = await deployments.getArtifact('FederationV2');
1313
const federation = new web3.eth.Contract(Federation.abi, federationProxyAddress);
1414
const currentFederationVersion = federation.methods.version().call();
1515
if (currentFederationVersion === FEDERATION_LAST_VERSION) {
1616
return;
1717
}
1818
}
1919

20-
const deployResult = await deploy('Federation', {
20+
const deployResult = await deploy('FederationV2', {
2121
from: deployer,
2222
log: true
2323
});
@@ -35,4 +35,4 @@ module.exports = async function(hre) { // HardhatRuntimeEnvironment
3535
}
3636
};
3737
module.exports.id = 'deploy_federation'; // id required to prevent reexecution
38-
module.exports.tags = ['Federation', 'Upgrade', 'DeployFromScratch', 'IntegrationTest'];
38+
module.exports.tags = ['FederationV2', 'Upgrade', 'DeployFromScratch', 'IntegrationTest'];

bridge/deploy/07_deploy_federationProxy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = async function(hre) { // HardhatRuntimeEnvironment
1111
return;
1212
}
1313

14-
const Federation = await deployments.get('Federation');
14+
const Federation = await deployments.get('FederationV2');
1515
const proxyAdminAddress = await address.getProxyAdminAddress(hre);
1616
const multiSigAddress = await address.getMultiSigAddress(hre);
1717
const bridgeProxyAddress = await address.getBridgeProxyAddress(hre);
@@ -54,13 +54,13 @@ module.exports = async function(hre) { // HardhatRuntimeEnvironment
5454
};
5555
module.exports.id = 'deploy_federation_proxy'; // id required to prevent reexecution
5656
module.exports.tags = ['FederationProxy', 'DeployFromScratch', 'IntegrationTest'];
57-
module.exports.dependencies = ['MultiSigWallet', 'ProxyAdmin', 'Federation', 'BridgeProxy'];
57+
module.exports.dependencies = ['MultiSigWallet', 'ProxyAdmin', 'FederationV2', 'BridgeProxy'];
5858

5959
function getFederationConf(deployer, network) {
6060
const networkName = network.name.toLowerCase();
61-
if (networkName.includes('testnet') || networkName.includes('kovan') || networkName.includes('rinkeby')) {
61+
if (networkName.includes('testnet') || networkName.includes('kovan') || networkName.includes('rinkeby') ) {
6262
return {
63-
members: ['0x8f397ff074ff190fc650e5cab4da039a8163e12a'],
63+
members: ['0xD1B27867E42E3DE1A32217Ff773B32b48888fb3B'],
6464
required: 1,
6565
};
6666
}

bridge/deploy/12_transfer_federationToBridge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
99
return;
1010
}
1111

12-
const Bridge = await deployments.getArtifact('Bridge');
12+
const Bridge = await deployments.getArtifact('BridgeV3');
1313
const MultiSigWallet = await deployments.getArtifact('MultiSigWallet');
1414

1515
const bridgeProxyAddress = await address.getBridgeProxyAddress(hre);
@@ -26,4 +26,4 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
2626
};
2727
module.exports.id = 'transfer_federation_to_bridge'; // id required to prevent reexecution
2828
module.exports.tags = ['TransferFederationToBridge', 'DeployFromScratch', 'IntegrationTest'];
29-
module.exports.dependencies = ['Bridge', 'BridgeProxy', 'FederationProxy', 'MultiSigWallet'];
29+
module.exports.dependencies = ['BridgeV3', 'BridgeProxy', 'FederationProxy', 'MultiSigWallet'];

bridge/deploy/13_transfer_allowTokensToBridge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
99
return;
1010
}
1111

12-
const Bridge = await deployments.getArtifact('Bridge');
12+
const Bridge = await deployments.getArtifact('BridgeV3');
1313
const MultiSigWallet = await deployments.getArtifact('MultiSigWallet');
1414

1515
const multiSigAddress = await address.getMultiSigAddress(hre);
@@ -26,4 +26,4 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
2626
};
2727
module.exports.id = 'transfer_allow_tokens'; // id required to prevent reexecution
2828
module.exports.tags = ['TransferAllowTokensToBridge', 'DeployFromScratch', 'IntegrationTest'];
29-
module.exports.dependencies = ['Bridge', 'BridgeProxy', 'AllowTokensProxy', 'MultiSigWallet'];
29+
module.exports.dependencies = ['BridgeV3', 'BridgeProxy', 'AllowTokensProxy', 'MultiSigWallet'];

bridge/deploy/17_set_wrapped_currency.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
99
return;
1010
}
1111

12-
const Bridge = await deployments.getArtifact('Bridge');
12+
const Bridge = await deployments.getArtifact('BridgeV3');
1313
const BridgeProxy = await deployments.get('BridgeProxy');
1414
const MultiSigWallet = await deployments.getArtifact('MultiSigWallet');
1515

@@ -48,5 +48,5 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
4848
module.exports.id = 'set_bridge_wrapped_currency'; // id required to prevent reexecution
4949
module.exports.tags = ['BridgeSetWrappedCurrency', 'DeployFromScratch', 'IntegrationTest'];
5050
module.exports.dependencies = [
51-
'AllowTokensProxy', 'AllowTokens', 'Bridge', 'BridgeProxy', 'MultiSigWallet'
51+
'AllowTokensProxy', 'AllowTokens', 'BridgeV3', 'BridgeProxy', 'MultiSigWallet'
5252
];

bridge/deploy/upgrades/01_upgrade_bridge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
55
const {deployer, bridgeProxy, proxyAdmin, multiSig} = await getNamedAccounts();
66
const {log} = deployments;
77

8-
const bridgeDeployed = await deployments.get('Bridge');
8+
const bridgeDeployed = await deployments.get('BridgeV3');
99
const proxyAdminArtifact = await deployments.getArtifact('ProxyAdmin');
1010
const multiSigWalletArtifact = await deployments.getArtifact('MultiSigWallet');
1111

@@ -23,4 +23,4 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
2323
};
2424
module.exports.id = 'upgrade_bridge'; // id required to prevent reexecution
2525
module.exports.tags = ['UpgradeBridge', 'Upgrade'];
26-
module.exports.dependencies = ['Bridge'];
26+
module.exports.dependencies = ['BridgeV3'];

bridge/deploy/upgrades/02_upgrade_federation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
55
const {deployer, federationProxy, proxyAdmin, multiSig} = await getNamedAccounts();
66
const {log} = deployments;
77

8-
const federationDeployed = await deployments.get('Federation');
8+
const federationDeployed = await deployments.get('FederationV2');
99
const proxyAdminArtifact = await deployments.getArtifact('ProxyAdmin');
1010
const multiSigWalletDeployment = await deployments.getArtifact('MultiSigWallet');
1111

@@ -23,4 +23,4 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
2323
};
2424
module.exports.id = 'upgrade_federation'; // id required to prevent reexecution
2525
module.exports.tags = ['UpgradeFederation', 'Upgrade'];
26-
module.exports.dependencies = ['Federation'];
26+
module.exports.dependencies = ['FederationV2'];

0 commit comments

Comments
 (0)