mint

package
v0.5.0 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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterMsgServiceServer

func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)

Types

type MsgServiceClient

type MsgServiceClient interface {
	// update params. Only callable by someone on the emissions module whitelist
	UpdateParams(ctx context.Context, in *MsgServiceUpdateParamsRequest, opts ...grpc.CallOption) (*MsgServiceUpdateParamsResponse, error)
	// force a target emission calculation right now. Otherwise waits until the
	// end of params.BlocksPerMonth
	RecalculateTargetEmission(ctx context.Context, in *MsgServiceRecalculateTargetEmissionRequest, opts ...grpc.CallOption) (*MsgServiceRecalculateTargetEmissionResponse, error)
}

MsgServiceClient is the client API for MsgService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgServiceClient

func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient

type MsgServiceRecalculateTargetEmissionRequest

type MsgServiceRecalculateTargetEmissionRequest struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
}

Force a recalculation of the target emission right now. This indirectly controls recalculating the inflation rate for the network and the stakers APY %.

func (*MsgServiceRecalculateTargetEmissionRequest) Descriptor

func (*MsgServiceRecalculateTargetEmissionRequest) GetSender

func (*MsgServiceRecalculateTargetEmissionRequest) Marshal

func (m *MsgServiceRecalculateTargetEmissionRequest) Marshal() (dAtA []byte, err error)

func (*MsgServiceRecalculateTargetEmissionRequest) MarshalTo

func (m *MsgServiceRecalculateTargetEmissionRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgServiceRecalculateTargetEmissionRequest) MarshalToSizedBuffer

func (m *MsgServiceRecalculateTargetEmissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgServiceRecalculateTargetEmissionRequest) ProtoMessage

func (*MsgServiceRecalculateTargetEmissionRequest) Reset

func (*MsgServiceRecalculateTargetEmissionRequest) Size

func (*MsgServiceRecalculateTargetEmissionRequest) String

func (*MsgServiceRecalculateTargetEmissionRequest) Unmarshal

func (*MsgServiceRecalculateTargetEmissionRequest) XXX_DiscardUnknown

func (m *MsgServiceRecalculateTargetEmissionRequest) XXX_DiscardUnknown()

func (*MsgServiceRecalculateTargetEmissionRequest) XXX_Marshal

func (m *MsgServiceRecalculateTargetEmissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgServiceRecalculateTargetEmissionRequest) XXX_Merge

func (*MsgServiceRecalculateTargetEmissionRequest) XXX_Size

func (*MsgServiceRecalculateTargetEmissionRequest) XXX_Unmarshal

type MsgServiceRecalculateTargetEmissionResponse

type MsgServiceRecalculateTargetEmissionResponse struct {
}

response from recalculating the target emission

func (*MsgServiceRecalculateTargetEmissionResponse) Descriptor

func (*MsgServiceRecalculateTargetEmissionResponse) Marshal

func (m *MsgServiceRecalculateTargetEmissionResponse) Marshal() (dAtA []byte, err error)

func (*MsgServiceRecalculateTargetEmissionResponse) MarshalTo

func (*MsgServiceRecalculateTargetEmissionResponse) MarshalToSizedBuffer

func (m *MsgServiceRecalculateTargetEmissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgServiceRecalculateTargetEmissionResponse) ProtoMessage

func (*MsgServiceRecalculateTargetEmissionResponse) Reset

func (*MsgServiceRecalculateTargetEmissionResponse) Size

func (*MsgServiceRecalculateTargetEmissionResponse) String

func (*MsgServiceRecalculateTargetEmissionResponse) Unmarshal

func (*MsgServiceRecalculateTargetEmissionResponse) XXX_DiscardUnknown

func (m *MsgServiceRecalculateTargetEmissionResponse) XXX_DiscardUnknown()

func (*MsgServiceRecalculateTargetEmissionResponse) XXX_Marshal

func (m *MsgServiceRecalculateTargetEmissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgServiceRecalculateTargetEmissionResponse) XXX_Merge

func (*MsgServiceRecalculateTargetEmissionResponse) XXX_Size

func (*MsgServiceRecalculateTargetEmissionResponse) XXX_Unmarshal

type MsgServiceServer

type MsgServiceServer interface {
	// update params. Only callable by someone on the emissions module whitelist
	UpdateParams(context.Context, *MsgServiceUpdateParamsRequest) (*MsgServiceUpdateParamsResponse, error)
	// force a target emission calculation right now. Otherwise waits until the
	// end of params.BlocksPerMonth
	RecalculateTargetEmission(context.Context, *MsgServiceRecalculateTargetEmissionRequest) (*MsgServiceRecalculateTargetEmissionResponse, error)
}

MsgServiceServer is the server API for MsgService service.

type MsgServiceUpdateParamsRequest

type MsgServiceUpdateParamsRequest struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// params defines the x/mint parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params                    types.Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
	RecalculateTargetEmission bool         `` /* 139-byte string literal not displayed */
}

MsgUpdateParams allows an update to the minting parameters of the module.

func (*MsgServiceUpdateParamsRequest) Descriptor

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

func (*MsgServiceUpdateParamsRequest) GetParams

func (*MsgServiceUpdateParamsRequest) GetRecalculateTargetEmission

func (m *MsgServiceUpdateParamsRequest) GetRecalculateTargetEmission() bool

func (*MsgServiceUpdateParamsRequest) GetSender

func (m *MsgServiceUpdateParamsRequest) GetSender() string

func (*MsgServiceUpdateParamsRequest) Marshal

func (m *MsgServiceUpdateParamsRequest) Marshal() (dAtA []byte, err error)

func (*MsgServiceUpdateParamsRequest) MarshalTo

func (m *MsgServiceUpdateParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgServiceUpdateParamsRequest) MarshalToSizedBuffer

func (m *MsgServiceUpdateParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgServiceUpdateParamsRequest) ProtoMessage

func (*MsgServiceUpdateParamsRequest) ProtoMessage()

func (*MsgServiceUpdateParamsRequest) Reset

func (m *MsgServiceUpdateParamsRequest) Reset()

func (*MsgServiceUpdateParamsRequest) Size

func (m *MsgServiceUpdateParamsRequest) Size() (n int)

func (*MsgServiceUpdateParamsRequest) String

func (*MsgServiceUpdateParamsRequest) Unmarshal

func (m *MsgServiceUpdateParamsRequest) Unmarshal(dAtA []byte) error

func (*MsgServiceUpdateParamsRequest) XXX_DiscardUnknown

func (m *MsgServiceUpdateParamsRequest) XXX_DiscardUnknown()

func (*MsgServiceUpdateParamsRequest) XXX_Marshal

func (m *MsgServiceUpdateParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgServiceUpdateParamsRequest) XXX_Merge

func (m *MsgServiceUpdateParamsRequest) XXX_Merge(src proto.Message)

func (*MsgServiceUpdateParamsRequest) XXX_Size

func (m *MsgServiceUpdateParamsRequest) XXX_Size() int

func (*MsgServiceUpdateParamsRequest) XXX_Unmarshal

func (m *MsgServiceUpdateParamsRequest) XXX_Unmarshal(b []byte) error

type MsgServiceUpdateParamsResponse

type MsgServiceUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgServiceUpdateParamsResponse) Descriptor

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

func (*MsgServiceUpdateParamsResponse) Marshal

func (m *MsgServiceUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgServiceUpdateParamsResponse) MarshalTo

func (m *MsgServiceUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgServiceUpdateParamsResponse) MarshalToSizedBuffer

func (m *MsgServiceUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgServiceUpdateParamsResponse) ProtoMessage

func (*MsgServiceUpdateParamsResponse) ProtoMessage()

func (*MsgServiceUpdateParamsResponse) Reset

func (m *MsgServiceUpdateParamsResponse) Reset()

func (*MsgServiceUpdateParamsResponse) Size

func (m *MsgServiceUpdateParamsResponse) Size() (n int)

func (*MsgServiceUpdateParamsResponse) String

func (*MsgServiceUpdateParamsResponse) Unmarshal

func (m *MsgServiceUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgServiceUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgServiceUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgServiceUpdateParamsResponse) XXX_Marshal

func (m *MsgServiceUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgServiceUpdateParamsResponse) XXX_Merge

func (m *MsgServiceUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgServiceUpdateParamsResponse) XXX_Size

func (m *MsgServiceUpdateParamsResponse) XXX_Size() int

func (*MsgServiceUpdateParamsResponse) XXX_Unmarshal

func (m *MsgServiceUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServiceServer

type UnimplementedMsgServiceServer struct {
}

UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServiceServer) UpdateParams

Directories

Path Synopsis
api
mint/module/v1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.
mint/v1beta1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.
mint/v2
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

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