helpers

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainnetMinterConfigLong = cfemintertypes.Params{
	MintDenom: testenv.DefaultTestDenom,
	StartTime: time.Now().UTC(),
	Minters: []*cfemintertypes.Minter{
		{
			SequenceId: 1,
			Config:     exponentialStepMintingConfig,
			EndTime:    &minterConfigLongEndTime,
		},
	},
}
View Source
var MainnetMinterConfigShort = cfemintertypes.Params{
	MintDenom: testenv.DefaultTestDenom,
	StartTime: time.Now().UTC(),
	Minters: []*cfemintertypes.Minter{
		{
			SequenceId: 1,
			Config:     exponentialStepMintingConfig,
			EndTime:    &minterConfigShortEndTime,
		},
		{
			SequenceId: 2,
			Config:     noMintingConfig,
		},
	},
}
View Source
var MainnetSubdistributors = []cfedistributortypes.SubDistributor{
	{
		Name: "tx_fee_distributor",
		Sources: []*cfedistributortypes.Account{
			{
				Id:   "fee_collector",
				Type: cfedistributortypes.ModuleAccount,
			},
		},
		Destinations: cfedistributortypes.Destinations{
			PrimaryShare: cfedistributortypes.Account{
				Id:   "c4e_distributor",
				Type: cfedistributortypes.Main,
			},
			BurnShare: sdk.ZeroDec(),
			Shares:    []*cfedistributortypes.DestinationShare{},
		},
	},
	{
		Name: "inflation_and_fee_distributor",
		Sources: []*cfedistributortypes.Account{
			{
				Id:   "c4e_distributor",
				Type: cfedistributortypes.Main,
			},
		},
		Destinations: cfedistributortypes.Destinations{
			PrimaryShare: cfedistributortypes.Account{
				Id:   cfedistributortypes.ValidatorsRewardsCollector,
				Type: cfedistributortypes.ModuleAccount,
			},
			BurnShare: sdk.ZeroDec(),
			Shares: []*cfedistributortypes.DestinationShare{
				{
					Name:  "usage_incentives",
					Share: sdk.MustNewDecFromStr("0.3"),
					Destination: cfedistributortypes.Account{
						Id:   "usage_incentives_collector",
						Type: cfedistributortypes.InternalAccount,
					},
				},
			},
		},
	},
	{
		Name: "usage_incentives_distributor",
		Sources: []*cfedistributortypes.Account{
			{
				Id:   "usage_incentives_collector",
				Type: cfedistributortypes.InternalAccount,
			},
		},
		Destinations: cfedistributortypes.Destinations{
			PrimaryShare: cfedistributortypes.Account{
				Id:   "green_energy_booster_collector",
				Type: cfedistributortypes.ModuleAccount,
			},
			BurnShare: sdk.ZeroDec(),
			Shares: []*cfedistributortypes.DestinationShare{
				{
					Name:  "governance_booster",
					Share: sdk.MustNewDecFromStr("0.33"),
					Destination: cfedistributortypes.Account{
						Id:   "governance_booster_collector",
						Type: cfedistributortypes.ModuleAccount,
					},
				},
			},
		},
	},
}

Functions

func GetModuleAccountAddress

func GetModuleAccountAddress(moduleName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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