pioconfig

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultReDnmString is the allowed denom regex expression
	DefaultReDnmString = `[a-zA-Z][a-zA-Z0-9/\-\.]{2,127}`
)

Variables

This section is empty.

Functions

func ChangeMsgFeeFloorDenom

func ChangeMsgFeeFloorDenom(amount int64, denom string)

ChangeMsgFeeFloorDenom changes FloorGasPrice, even though practically the denom for Floor checking should be the same as fee denom, however it seems tests like to play around with it being different, so for now keeping it, in a test helper for the sole reason for the awareness of someone using it of it's current purpose.

func SetProvenanceConfig

func SetProvenanceConfig(customDenom string, msgFeeFloorGasPrice int64)

SetProvenanceConfig in running the app it is called once from root.go. We decided not to seal it because we have tests, which set the Config to test certain msg fee flows. But the contract remains that this will be called once from root.go while starting up.

Types

type ProvenanceConfig

type ProvenanceConfig struct {
	FeeDenom               string
	ProvenanceMinGasPrices string // maps to defaultMinGasPrices in previous code,Node level config that provenance binary set's from appOpts.
	// Current it will mirror MsgFeeFloorGasPrice.
	MsgFeeFloorGasPrice int64 // Msg fee ante handlers and code use this for their calculations, this ***ONLY SETS***
	// the default param(see method DefaultFloorGasPrice), all calculated values are still from msg fee module PARAMS.
	// for that module, if the param is changed via governance then the code will pick the new value.(should pick that up from module param)
	BondDenom     string // Also referred to as Staking Denom sometimes.
	MsgFloorDenom string // MsgFloorDenom should always be the same Fee Denom, but maybe useful for tests.
}

func GetProvenanceConfig

func GetProvenanceConfig() ProvenanceConfig

GetProvenanceConfig get ProvenanceConfig

Jump to

Keyboard shortcuts

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