Git Product home page Git Product logo

cosmoverse-workshop's Introduction

Cosmoverse 2022 Workshop

eightball is a blockchain built using Cosmos SDK and Tendermint and created with Ignite CLI.

Get started

ignite chain serve

serve command installs dependencies, builds, initializes, and starts your blockchain in development.

Usecase

User will submit a token offering, and receive back a fortune.

Chain 1 is a eightball which gives out fortunes if you give it an offering in any denom but actually only wants a specific denom

Chain 2 is a simple dex, which will take the token offering and swap it into the denom that the eightball wants

alt text

CLI commands

rm -rf ~/.cosmoverse-workshop && rm -rf ~/.simple-dex && hermes keys delete --chain simpledex --all && hermes keys delete --chain cosmoverseworkshop --all

ignite chain serve

hermes keys add --chain cosmoverseworkshop --mnemonic-file ~/.hermes/cvworkshop-mnemonic.txt && hermes keys add --chain simpledex --mnemonic-file ~/.hermes/simpledex-mnemonic.txt

hermes create connection --a-chain cosmoverseworkshop --b-chain simpledex

cosmoverse-workshopd q ibc connection connections 
simple-dexd q ibc connection connections        

hermes start --full-scan

cosmoverse-workshopd tx eightball connect-to-dex connection-0 --from alice --chain-id cosmoverseworkshop --gas auto 

cosmoverse-workshopd q ibc channel channels
simple-dexd q ibc channel channels

cosmoverse-workshopd tx eightball feeling-lucky 50stake --from alice --chain-id cosmoverseworkshop --gas auto 

cosmoverse-workshopd tx eightball feeling-lucky 100stake --from bob --chain-id cosmoverseworkshop --gas auto

cosmoverse-workshopd q bank balances

cosmoverse-workshopd q eightball list-fortunes
cosmoverse-workshopd q eightball show-fortune <address>

cosmoverse-workshop's People

Contributors

charleenfei avatar adityasripal avatar

Stargazers

Thomas Dekeyser avatar Sishir Giri avatar Nick Beattie avatar Ratan Kaliani avatar emma avatar Jeremiah O Sullivan avatar Nicholas Tindle avatar  avatar

Watchers

 avatar

Forkers

nextnet-works

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.