- install starport. (protoc as well)
curl https://get.starport.network/starport! | bash
- download
orchestrator
andclient
binaries from the releases. - install Go and set any required environment variables like $(go env GOPATH)/bin to $PATH.
- install vue
- go into scripts/cosmos-gravity-bridge/solidity and setup hardhat as follows:
- npm init
- npm install --save-dev ts-node typescript
- npm install --save-dev chai @types/node @types/mocha @types/chai
- npm install --save-dev hardhat-waffle ethereum-waffle chai hardhat-ethers ethers typechain typechain-target-ethers-v5
- npm install --save-dev hardhat
- start gravity process through starport with
starport serve --force-reset
in the root directory. - you might need to copy
gravityd
togravity
under$PATH
. ex)whereis gravityd
->cp gravityd <new_location>
- install and start a
geth
process (light sync mode recommended). - navigate to
scripts/
- in
setup-orch.sh
, modify thecosphr
variable to what's shown asalice
's private mnemonics. - run
setup.orch.sh
. Occasionally the orchestrator might lag a bit and not produce a erc20 representation of the cosmos native token. Just re-run the last commandorchestrator deploy-erc20-representation...
- in the frontend
localhost:8080/types
you can create some cosmos->eth txs. - run
client build-batch
from alice to confirm batch transaction on ethereum. Or, you can refer toclient cosmos-to-eth
command to make txs on the CLI.- Note: make sure you're using
stake
ormstake
while transferring, andAmount
andFee
field have to have same denominations.1234stake
and12stake
.
- Note: make sure you're using
- run
client eth-to-cosmos
to send some tokens back to cosmos. Any ERC20 tokens can be transferred. - see the txs go through.