Giter Site home page Giter Site logo

balloon's Introduction

Balloon

In this project, we are learning how to upgrade a Cosmos | Ignite chain while preserving the older data. Here is what we have planned to test whether we have achieved our goal or not.

First, we will create a custom message that enables us to execute a transaction, which will then be recorded on the blockchain. We'll also save the transaction hashes for later use. After completing these transactions, we will halt the blockchain operation. Following this, we'll introduce a new message type and execute another set of transactions to generate new transaction hashes, which, in my opinion, should be easily retrievable. Additionally, we will attempt to access the previously saved data. If we can successfully retrieve the old data along with the new transaction hashes,

Boom, we will have successfully achieved our goal.

so let's create our first message

1. AddBalloon

ignite scaffold message addBalloon balloonName balloonHeight --response message

now we will run the chain and perform some transactions

ignite chain serve

let's check whether our message works or not

balloond tx balloon add-balloon

it should show us something like this

Usage:
balloond tx balloon add-balloon [balloon-name] [balloon-height] [flags]

Now let's pass the full command

balloond tx balloon add-balloon testballoon 80085 --from alice -y

now go to this url in your browserhttp://0.0.0.0:1317/cosmos/tx/v1beta1/txs/<TxHashYouJustGot> with your tx hash you will see your transaction

balloon's People

Contributors

computerkeeda avatar

Watchers

 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.