win dev helpers

Change-Id: I57568cc7952ba630d9ff808f8c46d051b4367ba6
This commit is contained in:
Evan Gray 2021-08-07 21:45:18 -04:00 committed by Hendrik Hofstadt
parent b4ca77497a
commit 5a6cfe034f
4 changed files with 10 additions and 1 deletions

View File

@ -35,6 +35,8 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d
### `npm run build-contracts`
_Note: this requires `/ethereum` to have been installed; you may see an error if you have not yet run `npm ci` there_
This runs the build in the ethereum folder, copies the compiled contracts, and runs typechain on them. This is automatically run on `postinstall`
### `npm run eject`

View File

@ -2,7 +2,7 @@
| Label | Network | Address | Note |
| ------------- | :-------------: | -----: | :----- |
| Test Wallet | ETH | 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 | Key: `0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d` |
| Test Wallet | ETH | 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 | Key: `0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d` Mnemonic `myth like bonus scare over problem client lizard pioneer submit female collect` |
| Test ERC20 | ETH | 0x0290FB167208Af455bB137780163b7B7a9a10C16 | Tokens minted to Test Wallet |
| Bridge Core | ETH | 0x254dffcd3277c0b1660f6d42efbb754edababc2b | |
| Token Bridge | ETH | 0xe982e462b094850f12af94d21d470e21be9d0e9c | |

1
generate-protos-all.ps1 Normal file
View File

@ -0,0 +1 @@
docker run -it --rm -v ${pwd}:/wormhole golang sh -c "apt update && apt install -y nodejs npm && cd /wormhole && ./generate-protos.sh && ./generate-protos-web.sh"

6
generate-wasm.ps1 Normal file
View File

@ -0,0 +1,6 @@
docker build -t localhost/certusone/wormhole-wasmpack:latest -f Dockerfile.wasm .
docker run --rm -it --workdir /usr/src/bridge/bridge/program -v ${pwd}/../bridge_ui/rust_modules/core:/usr/src/bridge/bridge/program/pkg -e EMITTER_ADDRESS=11111111111111111111111111111115 localhost/certusone/wormhole-wasmpack:latest /usr/local/cargo/bin/wasm-pack build --target bundler -- --features wasm
docker run --rm -it --workdir /usr/src/bridge/modules/token_bridge/program -v ${pwd}/../bridge_ui/rust_modules/token:/usr/src/bridge/modules/token_bridge/program/pkg -e EMITTER_ADDRESS=11111111111111111111111111111115 localhost/certusone/wormhole-wasmpack:latest /usr/local/cargo/bin/wasm-pack build --target bundler -- --features wasm
docker run --rm -it --workdir /usr/src/bridge/bridge/program -v ${pwd}/../clients/solana/pkg:/usr/src/bridge/bridge/program/pkg -e EMITTER_ADDRESS=11111111111111111111111111111115 localhost/certusone/wormhole-wasmpack:latest /usr/local/cargo/bin/wasm-pack build --target nodejs -- --features wasm
cp ${pwd}/../clients/solana/pkg/. ${pwd}/../clients/token_bridge/pkg/core
docker run --rm -it --workdir /usr/src/bridge/modules/token_bridge/program -v ${pwd}/../clients/token_bridge/pkg/token:/usr/src/bridge/modules/token_bridge/program/pkg -e EMITTER_ADDRESS=11111111111111111111111111111115 localhost/certusone/wormhole-wasmpack:latest /usr/local/cargo/bin/wasm-pack build --target nodejs -- --features wasm