Skip to content

ulbqb/cosmos-stateless-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosmos-stateless-poc

This is PoC of stateless clients for cosmos chains. You can try the stateless client of Gaia.

run gaia

$ git clone --branch v10.0.2 --depth=1 https://github.com/cosmos/gaia.git
$ cd gaia
$ go mod edit -replace github.com/cosmos/cosmos-sdk=github.com/ulbqb/cosmos-sdk@v0.45.17-0.20230717104443-b8f62f5fa8cf # Requires SDK with special API
$ make install
$ # run and sync

run stateless client

$ cd example/gaiasl
$ go build
$ ./gaiasl -basedir ./tmp -rpc http://localhost:26657 -height 16182260 -hash 9DA91A055F29937A06AC8A15CD8D385C8BAD27AA148F9477B4F16AAFFD6AC5C5
E63D25384DEF73D71F096AEC15C35411B5DB5A50AFF8B58D259E1B8CDF5EE3C9 # next app hash by stateless execution
$ curl https://rpc-cosmoshub-ia.cosmosia.notional.ventures/block?height=16182261 | jq -r .result.block.header.app_has
E63D25384DEF73D71F096AEC15C35411B5DB5A50AFF8B58D259E1B8CDF5EE3C9 # next app hash by full node

Implementation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published