Documentation
¶
Index ¶
- Variables
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func CalcVestingPeriod(totalVestingAmount sdk.Int) authvesting.Periods
- func GetConfig() *sdk.Config
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- func ParseTime(s string) time.Time
- func ParseVestingAccounts(filePath string) (sdk.Int, map[string]*authvesting.PeriodicVestingAccount, ...)
- func PrepareGenesis(clientCtx client.Context, appState map[string]json.RawMessage, ...) (map[string]json.RawMessage, *tmtypes.GenesisDoc, error)
- func PrepareGenesisCmd(defaultNodeHome string, mbm module.BasicManager) *cobra.Command
- type GenesisStates
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 )
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func CalcVestingPeriod ¶
func CalcVestingPeriod(totalVestingAmount sdk.Int) authvesting.Periods
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, params.EncodingConfig)
NewRootCmd creates a new root command. It is called once in the main function.
func ParseVestingAccounts ¶
func ParseVestingAccounts(filePath string) (sdk.Int, map[string]*authvesting.PeriodicVestingAccount, []*authvesting.PeriodicVestingAccount)
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
Click to show internal directories.
Click to hide internal directories.