Coinomics
Abstract
This document specifies the internal x/coinomics
module of the HAQQ Network.
The x/coinomics
module is part of the HAQQ Network tokenomics and aims to increase the growth of the network by distributing
rewards to users who stake their coins to network validators.
The rewards drive users to delegate coins and participate in governance on HAQQ to improve the sustainability of the services in the network.
Contents
Module Architecture
note
If you're not familiar with the overall module structure from the SDK modules, please check this document as prerequisite reading.
coinomics/
├── client
│ └── cli
│ └── query.go # CLI query commands for the module
├── keeper
│ ├── abci.go # ABCI BeginBlock and EndBlock logic
│ ├── grpc_query.go # gRPC state query handlers
│ ├── inflation.go # Main coin minting calculations logic of the module
│ ├── keeper.go # Store keeper that handles the business logic of the module and has access to a specific subtree of the state tree.
│ ├── migrations.go # The module migration handler
│ ├── mint_info.go # Store state handlers of the module
│ └── params.go # Parameter getter and setter
├── spec
│ └── README.md # The specification of the module
├── types
│ ├── codec.go # Type registration for encoding
│ ├── events.go # Events exposed to the CometBFT PubSub/Websocket
│ ├── genesis.go # Genesis state for the module
│ ├── interfaces.go # The interfaces describing the components of the required modules