Giter VIP home page Giter VIP logo

stride-gaia-local's Introduction

pre-requisite: Download the stride binary from github repo(https://github.com/Stride-Labs/stride), add admin address to stride daemon utils/admins.go

https://github.com/Stride-Labs/stride/blob/main/utils/admins.go

package utils

var Admins = map[string]bool{
	"stride1k8c2m5cn322akk5wy8lpt87dd2f4yh9azg7jlh": true, // F5
	"stride10d07y265gmmuvt4z0w9aw880jnsr700jefnezl": true, // gov module
	"stride1sy4vkp007vlmp2t670ev60ky2v0mdcqne8jdjs": true, // for local test <==== this line
}

then build gaiad(https://github.com/cosmos/gaia) and strided

  • Tested on stride v3.0.0, gaia v7.0.3
  1. Run init.sh

  2. Replace stride_epoch value to 30s which is in ~/.stride/config/genesis.json (#121)

"identifier": "stride_epoch",
"start_time": "0001-01-01T00:00:00Z",
"duration": "30s",
  1. Open a terminal session, run gaiad.sh
  2. Open a new terminal session, run strided.sh
  3. Run hermes.sh
  4. Run hermes relayer with config.toml in this directory
  5. Run transfer.sh
  6. Copy ibc denom of uatom i.g) ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2
  7. Send uatom to gaia ica host account
gaiad tx bank send genesis {gaia_address_for_withdraw_on_stride} 100uatom --from genesis --node http://localhost:26657 --chain-id cosmoshub
  1. Register host zone for gaia
strided tx stakeibc register-host-zone connection-0 uatom cosmos ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 channel-0 1 --from genesis --chain-id stride --gas auto -b block --node http://localhost:36657
  1. Check the icq response message from strided
2:12AM INF Proof validated! module: interchainquery, queryId 01173ff5167296eb4ba7c4c3d896f8b3e273a74210b91b82eb3f8b5e8a512747 module=x/interchainquery
2:12AM INF [ICQ Resp] query 01173ff5167296eb4ba7c4c3d896f8b3e273a74210b91b82eb3f8b5e8a512747 with ttl: 1670001180949678000, resp time: 1670001168896629000. module=x/interchainquery
2:12AM INF [ICQ Resp] executing callback for queryId (01173ff5167296eb4ba7c4c3d896f8b3e273a74210b91b82eb3f8b5e8a512747), module (stakeibc) module=x/interchainquery
  1. Clean up chain data
sudo rm -r ~/.gaia
sudo rm -r ~/.stride

stride-gaia-local's People

Contributors

sangyunock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.