cmd

package
v0.0.0-...-d770fd4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VestingFilePath     = "./data/vesting.csv"             // vesting file
	VestingFilePathTest = "../../../data/vesting_test.csv" // vesting file
)
View Source
var (
	FarmingFeeCollector           = "cre1h292smhhttwy0rl3qr4p6xsvpvxc4v05s6rxtczwq3cs6qc462mq4p6cjy"
	LiquidityFeeCollectorAddress  = "cre1zdew6yxyw92z373yqp756e0x4rvd2het37j0a2wjp7fj48eevxvq303p8d"
	LiquidityDustCollectorAddress = "cre1suads2mkd027cmfphmk9fpuwcct4d8ys02frk8e64hluswfwfj0s4xymnj"
	InflationFeeCollector         = "cre17xpfvakm2amg962yls6f84z3kell8c5l53s97s"
	EcosystemIncentive            = "cre1kgshua58cjr2p7hnrvgun68yrqf7ktdzyz2yxv54fqj6uwl4gc4q95txqa"
	EcosystemIncentiveLP          = "cre1wht0xhmuqph4rhzulhejgatthnpeatzjgnnkvqvphq97xr26np0qdvun2s"
	EcosystemIncentiveMM          = "cre1ddn66jv0sjpmck0ptegmhmqtn35qsg2vxyk2hn9sqf4qxtzqz3sq3qhhde"
	EcosystemIncentiveBoost       = "cre17zftu6rg7mkmemqxv4whjkvecl0e2ja7j6um9t8qaczp79y72d7q2su2xm"
	AirdropSourceAddress          = "cre1rq9dzurree0ruj4xvuss33ysfus3lkneg3jnfdsy4ah8gxjta3mqlr2sax"
	FoundationAddress             = "cre1u9jxn6l7seq5jjej4w6etpdxufphwfuunljr4e" // multisig
	DevTeamAddress                = "cre1ge2jm9nkvu2l8cvhc2un4m33d4yy4p0wfag09j" // multisig
)
View Source
var (
	GenesisTime      = "2022-04-13T00:00:00Z"
	GenesisTimeUnix  = ParseTime(GenesisTime).Unix()
	BondDenom        = "ucre"
	LiquidBondDenom  = "ubcre"
	FoundationSupply = sdk.NewInt(100_000_000_000_000) // 100mil
	DEXDropSupply    = sdk.NewInt(50_000_000_000_000)  // 50mil
	BoostDropSupply  = sdk.NewInt(50_000_000_000_000)  // 50mil
)
View Source
var (
	FirstYearCliff              = int64(60 * 60 * 24 * 365)                              // 31,536,000 1year
	SecondThirdYearMonthlyCliff = int64(60 * 60 * 24 * 365 / 12)                         // 2,628,000 1month
	TotalVestingLength          = FirstYearCliff + SecondThirdYearMonthlyCliff*int64(24) // 94,608,000 3year
	FirstYearRatio              = sdk.MustNewDecFromStr("0.34")
	SecondYearRatio             = sdk.MustNewDecFromStr("0.34")
	ThirdYearRatio              = sdk.MustNewDecFromStr("0.32")
	TotalCliff                  = 25
)
View Source
var (
	// AddressVerifier address verifier
	AddressVerifier = func(bz []byte) error {
		if n := len(bz); n != 20 && n != 32 {
			return fmt.Errorf("incorrect address length %d", n)
		}
		return nil
	}
)

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func CalcVestingPeriod

func CalcVestingPeriod(totalVestingAmount sdk.Int) authvesting.Periods

func GetConfig

func GetConfig() *sdk.Config

func NewRootCmd

func NewRootCmd() (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command. It is called once in the main function.

func ParseTime

func ParseTime(s string) time.Time

ParseTime parses and returns time.Time in time.RFC3339 format.

func PrepareGenesis

func PrepareGenesis(
	clientCtx client.Context,
	appState map[string]json.RawMessage,
	genDoc *tmtypes.GenesisDoc,
	genParams *GenesisStates,
	chainID string,
) (map[string]json.RawMessage, *tmtypes.GenesisDoc, error)

func PrepareGenesisCmd

func PrepareGenesisCmd(defaultNodeHome string, mbm module.BasicManager) *cobra.Command

Types

type GenesisStates

type GenesisStates struct {
	DEXdropSupply   sdk.Coin
	BoostdropSupply sdk.Coin
	BondDenom       string

	GenesisTime         time.Time
	ChainId             string
	ConsensusParams     *tmproto.ConsensusParams
	AuthParams          authtypes.Params
	AuthGenesisState    authtypes.GenesisState
	BankParams          banktypes.Params
	DistributionParams  distrtypes.Params
	StakingParams       stakingtypes.Params
	GovParams           govtypes.Params
	SlashingParams      slashingtypes.Params
	MintParams          minttypes.Params
	LiquidityParams     liquiditytypes.Params
	LiquidStakingParams liquidstakingtypes.Params
	FarmingParams       farmingtypes.Params
	BudgetParams        budgettypes.Params
	BankGenesisStates   banktypes.GenesisState
	CrisisStates        crisistypes.GenesisState
	ClaimGenesisState   claimtypes.GenesisState
}

func MainnetGenesisStates

func MainnetGenesisStates() *GenesisStates

Jump to

Keyboard shortcuts

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