Documentation ¶
Index ¶
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetBaseFeeChangeDenominator() uint32
- func (m *Params) GetElasticityMultiplier() uint32
- func (m *Params) GetEnableHeight() int64
- func (m *Params) GetNoBaseFee() bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthFeemarket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFeemarket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFeemarket = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ParamsKey = []byte("Params") ParamStoreKeyNoBaseFee = []byte("NoBaseFee") ParamStoreKeyBaseFeeChangeDenominator = []byte("BaseFeeChangeDenominator") ParamStoreKeyElasticityMultiplier = []byte("ElasticityMultiplier") ParamStoreKeyBaseFee = []byte("BaseFee") ParamStoreKeyEnableHeight = []byte("EnableHeight") ParamStoreKeyMinGasPrice = []byte("MinGasPrice") ParamStoreKeyMinGasMultiplier = []byte("MinGasMultiplier") )
Parameter keys
View Source
var ( // DefaultMinGasMultiplier is 0.5 or 50% DefaultMinGasMultiplier = sdk.NewDecWithPrec(50, 2) // DefaultMinGasPrice is 0 (i.e disabled) DefaultMinGasPrice = sdk.ZeroDec() DefaultEnableHeight = int64(0) DefaultNoBaseFee = false )
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
Types ¶
type Params ¶
type Params struct { // no_base_fee forces the EIP-1559 base fee to 0 (needed for 0 price calls) NoBaseFee bool `protobuf:"varint,1,opt,name=no_base_fee,json=noBaseFee,proto3" json:"no_base_fee,omitempty"` // base_fee_change_denominator bounds the amount the base fee can change // between blocks. BaseFeeChangeDenominator uint32 `` /* 138-byte string literal not displayed */ // elasticity_multiplier bounds the maximum gas limit an EIP-1559 block may // have. ElasticityMultiplier uint32 `protobuf:"varint,3,opt,name=elasticity_multiplier,json=elasticityMultiplier,proto3" json:"elasticity_multiplier,omitempty"` // enable_height defines at which block height the base fee calculation is enabled. EnableHeight int64 `protobuf:"varint,5,opt,name=enable_height,json=enableHeight,proto3" json:"enable_height,omitempty"` // base_fee for EIP-1559 blocks. BaseFee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=base_fee,json=baseFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"base_fee"` // min_gas_price defines the minimum gas price value for cosmos and eth transactions MinGasPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 136-byte string literal not displayed */ // min_gas_multiplier bounds the minimum gas used to be charged // to senders based on gas limit MinGasMultiplier github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */ }
Params defines the EVM module parameters
func NewParams ¶
func NewParams( noBaseFee bool, baseFeeChangeDenom, elasticityMultiplier uint32, baseFee uint64, enableHeight int64, minGasPrice sdk.Dec, minGasPriceMultiplier sdk.Dec, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetBaseFeeChangeDenominator ¶
func (*Params) GetElasticityMultiplier ¶
func (*Params) GetEnableHeight ¶
func (*Params) GetNoBaseFee ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.