CosmosSDK in Action
  • Introduction
  • Outline
    • CosmosSDK
    • Tendermint
    • ABCI
  • Module Create
    • Setup the main app
      • baseapp.go
      • app.go
    • Defining the message(msg)
      • msg.go
      • msg.go - mymodule
    • Create the Object (types)
      • types.go
      • types.go - mymodule
    • Get and Set Values(keeper)
      • keeper.go
      • keeper.go - mymodule
    • Message Handler(handler)
      • handle.go
      • handle.go - mymodule
    • Wire
      • wire.go
      • wire.go - mymodule
    • other
      • tick.go
      • tick.go - mymodule
    • Add My Module
  • Module CLI
  • Module Test
  • Example
    • MyModule
  • Appendix
Powered by GitBook
On this page
  1. Module Create
  2. Defining the message(msg)

msg.go - mymodule

Source Code:msg.go

X
├── mymodule
    ├── errors.go
    ├── handler.go
    ├── keeper.go
    ├── msg.go
    ├── tick.go
    ├── types.go
    └── wires.go

按照上图在cosmos-sdk的x文件夹下的mymodule下新建msg.go

Previousmsg.goNextCreate the Object (types)

Last updated 7 years ago