evm: devnet deploy

This commit is contained in:
Evan Gray 2022-10-06 02:26:51 +00:00
parent 602c793cd2
commit b9d6177e6c
3 changed files with 13 additions and 5 deletions

View File

@ -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.

View File

@ -4,11 +4,8 @@
"description": "",
"main": "index.js",
"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",
"truffle": "truffle"
"deploy-devnet": "truffle compile && truffle exec scripts/deploy_devnet.js --network development"
},
"author": "",
"license": "ISC",

View File

@ -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);
}
};