added portal info

This commit is contained in:
spacemandev 2022-06-16 22:37:39 -05:00
parent d831b3ef4c
commit 59a2c4976b
2 changed files with 11 additions and 3 deletions

View File

@ -19,7 +19,7 @@ import {
import fetch from 'node-fetch';
async function main(){
async function main() {
let config = JSON.parse(fs.readFileSync('./xdapp.config.json').toString());
let network = config.networks[process.argv[2]];
@ -27,7 +27,7 @@ async function main(){
throw new Error("Network not defined in config file.")
}
if(process.argv[3] == "deploy"){
if(process.argv[3] == "deploy") {
if(network.type == "evm"){
console.log(`Deploying EVM network: ${process.argv[2]} to ${network.rpc}`);
exec(
@ -65,6 +65,14 @@ async function main(){
}
})
)
} else if (network.type == "solana") {
//node exec solana deployer
/**
* solana config set --url $TILT_RPC_IP:8899
cd solana-project && anchor build && solana airdrop 100 -k test_keypair.json && sleep 5 && cd ../
cd solana-deployer && cargo build --release && cargo run --release -- -m=8 --payer=../solana-project/test_keypair.json --program-kp-path=../solana-project/solana_project-keypair.json --program-path=../solana-project/target/deploy/solana_project.so -r=$TILT_RPC_IP:8899 -s=1 -t=5 --thread-count=8 && cd ../
sleep 10
*/
} else {
throw new Error("Invalid Network Type!");
}

View File

@ -3,7 +3,7 @@
- [Introduction](./introduction/introduction.md)
- [What is an xDapp](./introduction/xdapp.md)
- [What is Wormhole](./introduction/wormhole.md)
- [What is Portal]()
- [What is Portal](./introduction/portal.md)
- [Wormhole Architecture]()
- [Core Bridge Contracts]()
- [VAA: Verifiable Action Approval]()