govgen

module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0

README

GovGen

[!WARNING] THE CODE IN THIS REPOSITORY HAS NOT BEEN AUDITED YET.

PLEASE USE EXTREME CAUTION WHEN USING THIS SOFTWARE, AND USE IT AT YOUR OWN RISK. FOR THE TIME BEING, WE ADVISE THAT YOU NOT USE IT WITH YOUR PERSONAL PRIVATE KEY(S).

THIS IS ESPECIALLY IMPORTANT AS GOVGEN RELIES ON AND USES ACCOUNTS DERIVED FROM THE COSMOS HUB, AND THEREFORE THERE IS RISK OF COMPROMISING YOUR COSMOS HUB ACCOUNT AS WELL.

GovGen is built using the Cosmos SDK as a fork of the Cosmos Hub at version v14.1.0.

The following modifications have been made to the Cosmos Hub software to create GovGen:

  1. Removed x/globalfee module and revert to older and simpler fee decorator
  2. Removed IBC and related modules (e.g. ICA, Packet Forwarding Middleware, etc.)
  3. Removed Interchain Security module
  4. Reverted to standard Cosmos SDK v0.46.16 without the Liquid Staking Module (LSM)
  5. Changed Bech32 prefixes to govgen (see cmd/govgend/cmd/config.go)
  6. Reduced hard-coded ante min-deposit percentage to 1% (see ante/gov_ante.go:minInitialDepositFraction)
  7. Removed ability for validators to vote on proposals with delegations, they can only use their own stake
  8. Removed community spend proposal
  9. Allowed setting different voting periods for different proposal types
  10. Stake automatically 50% of balance for accounts that have more than 25 $GOVGEN at genesis initialization. The resulting stake distribution will provide approximately the same voting power to all genesis validators. Accounts will automatically stake to a maximum of 5 validators if 50% of the balance is less than 500 $GOVGEN, a maximum of 10 validators if less than 10,000 $GOVGEN and a maximum of 20 validators if more, uniformly. The number of validators elected for the delegations is not a constant because it depends on the state of the distribution.

Reproducible builds

An effort has been made to make it possible to build the exact same binary locally as the Github Release section. To do this, checkout to the expected version and then simply run make build (which will output the binary to the build directory) or make install. The resulted binary should have the same sha256 hash than the one from the Github Release section.

Directories

Path Synopsis
app
params
Package params defines the simulation parameters in the govgen.
Package params defines the simulation parameters in the govgen.
sim
cmd
pkg
types
x
gov
gov/types
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL