evm: devnet deploy
This commit is contained in:
parent
602c793cd2
commit
b9d6177e6c
|
@ -1,4 +1,4 @@
|
||||||
# example-portal-fast-withdrawal
|
# Example Portal Fast Withdrawal
|
||||||
|
|
||||||
In a world where Ethereum finality takes ~18 minutes and Wormhole offers instant, un-finalized messaging in addition to finalized messaging, this repo imagines a Portal which can offer even faster transfers.
|
In a world where Ethereum finality takes ~18 minutes and Wormhole offers instant, un-finalized messaging in addition to finalized messaging, this repo imagines a Portal which can offer even faster transfers.
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,8 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run generate && tsc && jest --config jestconfig.json --verbose",
|
|
||||||
"genTypes": "typechain --target ethers-v5 --out-dir ethers-contracts/abi --show-stack-traces ./build/contracts/*.json",
|
|
||||||
"generate": "rimraf lib && rimraf ethers-contracts && rimraf build && truffle compile && npm run genTypes",
|
|
||||||
"build": "truffle compile",
|
"build": "truffle compile",
|
||||||
"truffle": "truffle"
|
"deploy-devnet": "truffle compile && truffle exec scripts/deploy_devnet.js --network development"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
const FastTransfer = artifacts.require("FastTransfer");
|
||||||
|
module.exports = async function (callback) {
|
||||||
|
try {
|
||||||
|
const ft = await FastTransfer.new();
|
||||||
|
console.log("tx: " + ft.transactionHash);
|
||||||
|
console.log("FastTransfer address: " + ft.address);
|
||||||
|
callback();
|
||||||
|
} catch (e) {
|
||||||
|
callback(e);
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue