ethereum: Add truffle scripts to deploy core & token bridge
This commit is contained in:
parent
e65176d492
commit
22dda6ba84
|
@ -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);
|
||||||
|
}
|
||||||
|
};
|
|
@ -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);
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue