feemarketv1

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Params_FullMethodName  = "/feemarket.feemarket.v1.Query/Params"
	Query_State_FullMethodName   = "/feemarket.feemarket.v1.Query/State"
	Query_BaseFee_FullMethodName = "/feemarket.feemarket.v1.Query/BaseFee"
)
View Source
const (
	Msg_Params_FullMethodName = "/feemarket.feemarket.v1.Msg/Params"
)

Variables

View Source
var File_feemarket_feemarket_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_feemarket_feemarket_v1_params_proto protoreflect.FileDescriptor
View Source
var File_feemarket_feemarket_v1_query_proto protoreflect.FileDescriptor
View Source
var File_feemarket_feemarket_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "feemarket.feemarket.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Msg_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "feemarket/feemarket/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "feemarket.feemarket.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "State",
			Handler:    _Query_State_Handler,
		},
		{
			MethodName: "BaseFee",
			Handler:    _Query_BaseFee_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "feemarket/feemarket/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type BaseFeeRequest

type BaseFeeRequest struct {
	// contains filtered or unexported fields
}

BaseFeeRequest is the request type for the Query/BaseFee RPC method.

func (*BaseFeeRequest) Descriptor deprecated

func (*BaseFeeRequest) Descriptor() ([]byte, []int)

Deprecated: Use BaseFeeRequest.ProtoReflect.Descriptor instead.

func (*BaseFeeRequest) ProtoMessage

func (*BaseFeeRequest) ProtoMessage()

func (*BaseFeeRequest) ProtoReflect

func (x *BaseFeeRequest) ProtoReflect() protoreflect.Message

func (*BaseFeeRequest) Reset

func (x *BaseFeeRequest) Reset()

func (*BaseFeeRequest) String

func (x *BaseFeeRequest) String() string

type BaseFeeResponse

type BaseFeeResponse struct {
	Fee []*v1beta1.Coin `protobuf:"bytes,1,rep,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

StateResponse is the response type for the Query/BaseFee RPC method.

func (*BaseFeeResponse) Descriptor deprecated

func (*BaseFeeResponse) Descriptor() ([]byte, []int)

Deprecated: Use BaseFeeResponse.ProtoReflect.Descriptor instead.

func (*BaseFeeResponse) GetFee

func (x *BaseFeeResponse) GetFee() []*v1beta1.Coin

func (*BaseFeeResponse) ProtoMessage

func (*BaseFeeResponse) ProtoMessage()

func (*BaseFeeResponse) ProtoReflect

func (x *BaseFeeResponse) ProtoReflect() protoreflect.Message

func (*BaseFeeResponse) Reset

func (x *BaseFeeResponse) Reset()

func (*BaseFeeResponse) String

func (x *BaseFeeResponse) String() string

type GenesisState

type GenesisState struct {

	// Params are the parameters for the feemarket module. These parameters
	// can be utilized to implement both the base EIP-1559 fee market and
	// and the AIMD EIP-1559 fee market.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// State contains the current state of the AIMD fee market.
	State *State `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the feemarket module's genesis state.

func (*GenesisState) Descriptor deprecated

func (*GenesisState) Descriptor() ([]byte, []int)

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetState

func (x *GenesisState) GetState() *State

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient

type MsgClient interface {
	// Params defines a method for updating the feemarket module parameters.
	Params(ctx context.Context, in *MsgParams, opts ...grpc.CallOption) (*MsgParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgParams

type MsgParams struct {

	// Params defines the new parameters for the feemarket module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// Authority defines the authority that is updating the feemarket module
	// parameters.
	Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

MsgParams defines the Msg/Params request type. It contains the new parameters for the feemarket module.

func (*MsgParams) Descriptor deprecated

func (*MsgParams) Descriptor() ([]byte, []int)

Deprecated: Use MsgParams.ProtoReflect.Descriptor instead.

func (*MsgParams) GetAuthority

func (x *MsgParams) GetAuthority() string

func (*MsgParams) GetParams

func (x *MsgParams) GetParams() *Params

func (*MsgParams) ProtoMessage

func (*MsgParams) ProtoMessage()

func (*MsgParams) ProtoReflect

func (x *MsgParams) ProtoReflect() protoreflect.Message

func (*MsgParams) Reset

func (x *MsgParams) Reset()

func (*MsgParams) String

func (x *MsgParams) String() string

type MsgParamsResponse

type MsgParamsResponse struct {
	// contains filtered or unexported fields
}

MsgParamsResponse defines the Msg/Params response type.

func (*MsgParamsResponse) Descriptor deprecated

func (*MsgParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgParamsResponse) ProtoMessage

func (*MsgParamsResponse) ProtoMessage()

func (*MsgParamsResponse) ProtoReflect

func (x *MsgParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgParamsResponse) Reset

func (x *MsgParamsResponse) Reset()

func (*MsgParamsResponse) String

func (x *MsgParamsResponse) String() string

type MsgServer

type MsgServer interface {
	// Params defines a method for updating the feemarket module parameters.
	Params(context.Context, *MsgParams) (*MsgParamsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type Params

type Params struct {

	// Alpha is the amount we additively increase the learninig rate
	// when it is above or below the target +/- threshold.
	Alpha string `protobuf:"bytes,1,opt,name=alpha,proto3" json:"alpha,omitempty"`
	// Beta is the amount we multiplicatively decrease the learning rate
	// when it is within the target +/- threshold.
	Beta string `protobuf:"bytes,2,opt,name=beta,proto3" json:"beta,omitempty"`
	// Theta is the threshold for the learning rate. If the learning rate is
	// above or below the target +/- threshold, we additively increase the
	// learning rate by Alpha. Otherwise, we multiplicatively decrease the
	// learning rate by Beta.
	Theta string `protobuf:"bytes,3,opt,name=theta,proto3" json:"theta,omitempty"`
	// Delta is the amount we additively increase/decrease the base fee when the
	// net block utilization difference in the window is above/below the target
	// utilization.
	Delta string `protobuf:"bytes,4,opt,name=delta,proto3" json:"delta,omitempty"`
	// MinBaseFee determines the initial base fee of the module and the global
	// minimum
	// for the network. This is denominated in fee per gas unit.
	MinBaseFee string `protobuf:"bytes,5,opt,name=min_base_fee,json=minBaseFee,proto3" json:"min_base_fee,omitempty"`
	// MinLearningRate is the lower bound for the learning rate.
	MinLearningRate string `protobuf:"bytes,6,opt,name=min_learning_rate,json=minLearningRate,proto3" json:"min_learning_rate,omitempty"`
	// MaxLearningRate is the upper bound for the learning rate.
	MaxLearningRate string `protobuf:"bytes,7,opt,name=max_learning_rate,json=maxLearningRate,proto3" json:"max_learning_rate,omitempty"`
	// TargetBlockUtilization is the target block utilization.
	TargetBlockUtilization uint64 `` /* 130-byte string literal not displayed */
	// MaxBlockUtilization is the maximum block utilization.
	MaxBlockUtilization uint64 `protobuf:"varint,9,opt,name=max_block_utilization,json=maxBlockUtilization,proto3" json:"max_block_utilization,omitempty"`
	// Window defines the window size for calculating an adaptive learning rate
	// over a moving window of blocks.
	Window uint64 `protobuf:"varint,10,opt,name=window,proto3" json:"window,omitempty"`
	// FeeDenom is the denom that will be used for all fee payments.
	FeeDenom string `protobuf:"bytes,11,opt,name=fee_denom,json=feeDenom,proto3" json:"fee_denom,omitempty"`
	// Enabled is a boolean that determines whether the EIP1559 fee market is
	// enabled.
	Enabled bool `protobuf:"varint,12,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

Params contains the required set of parameters for the EIP1559 fee market plugin implementation.

func (*Params) Descriptor deprecated

func (*Params) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetAlpha

func (x *Params) GetAlpha() string

func (*Params) GetBeta

func (x *Params) GetBeta() string

func (*Params) GetDelta

func (x *Params) GetDelta() string

func (*Params) GetEnabled

func (x *Params) GetEnabled() bool

func (*Params) GetFeeDenom

func (x *Params) GetFeeDenom() string

func (*Params) GetMaxBlockUtilization

func (x *Params) GetMaxBlockUtilization() uint64

func (*Params) GetMaxLearningRate

func (x *Params) GetMaxLearningRate() string

func (*Params) GetMinBaseFee

func (x *Params) GetMinBaseFee() string

func (*Params) GetMinLearningRate

func (x *Params) GetMinLearningRate() string

func (*Params) GetTargetBlockUtilization

func (x *Params) GetTargetBlockUtilization() uint64

func (*Params) GetTheta

func (x *Params) GetTheta() string

func (*Params) GetWindow

func (x *Params) GetWindow() uint64

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type ParamsRequest

type ParamsRequest struct {
	// contains filtered or unexported fields
}

ParamsRequest is the request type for the Query/Params RPC method.

func (*ParamsRequest) Descriptor deprecated

func (*ParamsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead.

func (*ParamsRequest) ProtoMessage

func (*ParamsRequest) ProtoMessage()

func (*ParamsRequest) ProtoReflect

func (x *ParamsRequest) ProtoReflect() protoreflect.Message

func (*ParamsRequest) Reset

func (x *ParamsRequest) Reset()

func (*ParamsRequest) String

func (x *ParamsRequest) String() string

type ParamsResponse

type ParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

ParamsResponse is the response type for the Query/Params RPC method.

func (*ParamsResponse) Descriptor deprecated

func (*ParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead.

func (*ParamsResponse) GetParams

func (x *ParamsResponse) GetParams() *Params

func (*ParamsResponse) ProtoMessage

func (*ParamsResponse) ProtoMessage()

func (*ParamsResponse) ProtoReflect

func (x *ParamsResponse) ProtoReflect() protoreflect.Message

func (*ParamsResponse) Reset

func (x *ParamsResponse) Reset()

func (*ParamsResponse) String

func (x *ParamsResponse) String() string

type QueryClient

type QueryClient interface {
	// Params returns the current feemarket module parameters.
	Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error)
	// State returns the current feemarket module state.
	State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error)
	// BaseFee returns the current feemarket module base fee.
	BaseFee(ctx context.Context, in *BaseFeeRequest, opts ...grpc.CallOption) (*BaseFeeResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryServer

type QueryServer interface {
	// Params returns the current feemarket module parameters.
	Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
	// State returns the current feemarket module state.
	State(context.Context, *StateRequest) (*StateResponse, error)
	// BaseFee returns the current feemarket module base fee.
	BaseFee(context.Context, *BaseFeeRequest) (*BaseFeeResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type State

type State struct {

	// BaseFee is the current base fee. This is denominated in the fee per gas
	// unit.
	BaseFee string `protobuf:"bytes,1,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"`
	// LearningRate is the current learning rate.
	LearningRate string `protobuf:"bytes,2,opt,name=learning_rate,json=learningRate,proto3" json:"learning_rate,omitempty"`
	// Window contains a list of the last blocks' utilization values. This is used
	// to calculate the next base fee. This stores the number of units of gas
	// consumed per block.
	Window []uint64 `protobuf:"varint,3,rep,packed,name=window,proto3" json:"window,omitempty"`
	// Index is the index of the current block in the block utilization window.
	Index uint64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

State is utilized to track the current state of the fee market. This includes the current base fee, learning rate, and block utilization within the specified AIMD window.

func (*State) Descriptor deprecated

func (*State) Descriptor() ([]byte, []int)

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetBaseFee

func (x *State) GetBaseFee() string

func (*State) GetIndex

func (x *State) GetIndex() uint64

func (*State) GetLearningRate

func (x *State) GetLearningRate() string

func (*State) GetWindow

func (x *State) GetWindow() []uint64

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

func (x *State) ProtoReflect() protoreflect.Message

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

type StateRequest

type StateRequest struct {
	// contains filtered or unexported fields
}

StateRequest is the request type for the Query/State RPC method.

func (*StateRequest) Descriptor deprecated

func (*StateRequest) Descriptor() ([]byte, []int)

Deprecated: Use StateRequest.ProtoReflect.Descriptor instead.

func (*StateRequest) ProtoMessage

func (*StateRequest) ProtoMessage()

func (*StateRequest) ProtoReflect

func (x *StateRequest) ProtoReflect() protoreflect.Message

func (*StateRequest) Reset

func (x *StateRequest) Reset()

func (*StateRequest) String

func (x *StateRequest) String() string

type StateResponse

type StateResponse struct {
	State *State `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

StateResponse is the response type for the Query/State RPC method.

func (*StateResponse) Descriptor deprecated

func (*StateResponse) Descriptor() ([]byte, []int)

Deprecated: Use StateResponse.ProtoReflect.Descriptor instead.

func (*StateResponse) GetState

func (x *StateResponse) GetState() *State

func (*StateResponse) ProtoMessage

func (*StateResponse) ProtoMessage()

func (*StateResponse) ProtoReflect

func (x *StateResponse) ProtoReflect() protoreflect.Message

func (*StateResponse) Reset

func (x *StateResponse) Reset()

func (*StateResponse) String

func (x *StateResponse) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Params

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) BaseFee

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) State

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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