pioconfig

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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}`

	// SimAppChainID hardcoded chainID for simulation.
	// Copied from cosmossdk.io/simapp/sim_test.go. We used to use this directly, but now its in a _test.go file.
	SimAppChainID = "simulation-app"
)

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