ethereum: Add truffle scripts to deploy core & token bridge

This commit is contained in:
Csongor Kiss 2022-06-25 15:15:20 +01:00 committed by Csongor Kiss
parent e65176d492
commit 22dda6ba84
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
const Implementation = artifacts.require("Implementation");
module.exports = async function(callback) {
try {
const bridge = (await Implementation.new());
console.log('tx: ' + bridge.transactionHash);
console.log('Implementation address: ' + bridge.address);
callback();
} catch (e) {
callback(e);
}
};

View File

@ -0,0 +1,11 @@
const BridgeImplementation = artifacts.require("BridgeImplementation");
module.exports = async function(callback) {
try {
const bridge = (await BridgeImplementation.new());
console.log('tx: ' + bridge.transactionHash);
console.log('Bridge address: ' + bridge.address);
callback();
} catch (e) {
callback(e);
}
};