mintv1

package
v0.6.7-testnet Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 14 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.

Index

Constants

This section is empty.

Variables

View Source
var File_nova_mint_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_nova_mint_v1_mint_proto protoreflect.FileDescriptor
View Source
var File_nova_mint_v1_query_proto protoreflect.FileDescriptor
View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nova.mint.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Inflation",
			Handler:    _Query_Inflation_Handler,
		},
		{
			MethodName: "AnnualProvisions",
			Handler:    _Query_AnnualProvisions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "nova/mint/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 RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type DistributionProportions

type DistributionProportions struct {

	// staking defines the proportion of the minted minted_denom that is to be
	// allocated as staking rewards.
	Staking string `protobuf:"bytes,1,opt,name=staking,proto3" json:"staking,omitempty"`
	// pool_incentives defines the proportion of the minted minted_denom that is
	// to be allocated as pool incentives.
	LpIncentives string `protobuf:"bytes,2,opt,name=lp_incentives,json=lpIncentives,proto3" json:"lp_incentives,omitempty"`
	// community_pool defines the proportion of the minted minted_denom that is
	// to be allocated to the community pool.
	CommunityPool string `protobuf:"bytes,4,opt,name=community_pool,json=communityPool,proto3" json:"community_pool,omitempty"`
	// contains filtered or unexported fields
}

func (*DistributionProportions) Descriptor deprecated

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

Deprecated: Use DistributionProportions.ProtoReflect.Descriptor instead.

func (*DistributionProportions) GetCommunityPool

func (x *DistributionProportions) GetCommunityPool() string

func (*DistributionProportions) GetLpIncentives

func (x *DistributionProportions) GetLpIncentives() string

func (*DistributionProportions) GetStaking

func (x *DistributionProportions) GetStaking() string

func (*DistributionProportions) ProtoMessage

func (*DistributionProportions) ProtoMessage()

func (*DistributionProportions) ProtoReflect

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

func (*DistributionProportions) Reset

func (x *DistributionProportions) Reset()

func (*DistributionProportions) String

func (x *DistributionProportions) String() string

type GenesisState

type GenesisState struct {

	// minter is a space for holding current rewards information.
	Minter *Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter,omitempty"`
	// params defines all the paramaters of the module.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the mint module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetMinter

func (x *GenesisState) GetMinter() *Minter

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

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 Minter

type Minter struct {

	// current annual inflation rate
	Inflation string `protobuf:"bytes,1,opt,name=inflation,proto3" json:"inflation,omitempty"`
	// current annual expected provisions
	AnnualProvisions string `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3" json:"annual_provisions,omitempty"`
	// contains filtered or unexported fields
}

Minter represents the minting state.

func (*Minter) Descriptor deprecated

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

Deprecated: Use Minter.ProtoReflect.Descriptor instead.

func (*Minter) GetAnnualProvisions

func (x *Minter) GetAnnualProvisions() string

func (*Minter) GetInflation

func (x *Minter) GetInflation() string

func (*Minter) ProtoMessage

func (*Minter) ProtoMessage()

func (*Minter) ProtoReflect

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

func (*Minter) Reset

func (x *Minter) Reset()

func (*Minter) String

func (x *Minter) String() string

type Params

type Params struct {

	// type of coin to mint
	MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"`
	// maximum annual change in inflation rate
	InflationRateChange string `protobuf:"bytes,2,opt,name=inflation_rate_change,json=inflationRateChange,proto3" json:"inflation_rate_change,omitempty"`
	// maximum inflation rate
	InflationMax string `protobuf:"bytes,3,opt,name=inflation_max,json=inflationMax,proto3" json:"inflation_max,omitempty"`
	// minimum inflation rate
	InflationMin string `protobuf:"bytes,4,opt,name=inflation_min,json=inflationMin,proto3" json:"inflation_min,omitempty"`
	// goal of percent bonded atoms
	GoalBonded string `protobuf:"bytes,5,opt,name=goal_bonded,json=goalBonded,proto3" json:"goal_bonded,omitempty"`
	// expected blocks per year
	BlocksPerYear           uint64                   `protobuf:"varint,6,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty"`
	DistributionProportions *DistributionProportions `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Params holds parameters for the mint module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetBlocksPerYear

func (x *Params) GetBlocksPerYear() uint64

func (*Params) GetDistributionProportions

func (x *Params) GetDistributionProportions() *DistributionProportions

func (*Params) GetGoalBonded

func (x *Params) GetGoalBonded() string

func (*Params) GetInflationMax

func (x *Params) GetInflationMax() string

func (*Params) GetInflationMin

func (x *Params) GetInflationMin() string

func (*Params) GetInflationRateChange

func (x *Params) GetInflationRateChange() string

func (*Params) GetMintDenom

func (x *Params) GetMintDenom() string

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 QueryAnnualProvisionsRequest

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

QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method.

func (*QueryAnnualProvisionsRequest) Descriptor deprecated

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

Deprecated: Use QueryAnnualProvisionsRequest.ProtoReflect.Descriptor instead.

func (*QueryAnnualProvisionsRequest) ProtoMessage

func (*QueryAnnualProvisionsRequest) ProtoMessage()

func (*QueryAnnualProvisionsRequest) ProtoReflect

func (*QueryAnnualProvisionsRequest) Reset

func (x *QueryAnnualProvisionsRequest) Reset()

func (*QueryAnnualProvisionsRequest) String

type QueryAnnualProvisionsResponse

type QueryAnnualProvisionsResponse struct {

	// annual_provisions is the current minting annual provisions value.
	AnnualProvisions []byte `protobuf:"bytes,1,opt,name=annual_provisions,json=annualProvisions,proto3" json:"annual_provisions,omitempty"`
	// contains filtered or unexported fields
}

QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method.

func (*QueryAnnualProvisionsResponse) Descriptor deprecated

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

Deprecated: Use QueryAnnualProvisionsResponse.ProtoReflect.Descriptor instead.

func (*QueryAnnualProvisionsResponse) GetAnnualProvisions

func (x *QueryAnnualProvisionsResponse) GetAnnualProvisions() []byte

func (*QueryAnnualProvisionsResponse) ProtoMessage

func (*QueryAnnualProvisionsResponse) ProtoMessage()

func (*QueryAnnualProvisionsResponse) ProtoReflect

func (*QueryAnnualProvisionsResponse) Reset

func (x *QueryAnnualProvisionsResponse) Reset()

func (*QueryAnnualProvisionsResponse) String

type QueryClient

type QueryClient interface {
	// Params returns the total set of minting parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Inflation returns the current minting inflation value.
	Inflation(ctx context.Context, in *QueryInflationRequest, opts ...grpc.CallOption) (*QueryInflationResponse, error)
	// AnnualProvisions current minting annual provisions value.
	AnnualProvisions(ctx context.Context, in *QueryAnnualProvisionsRequest, opts ...grpc.CallOption) (*QueryAnnualProvisionsResponse, 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 QueryInflationRequest

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

QueryInflationRequest is the request type for the Query/Inflation RPC method.

func (*QueryInflationRequest) Descriptor deprecated

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

Deprecated: Use QueryInflationRequest.ProtoReflect.Descriptor instead.

func (*QueryInflationRequest) ProtoMessage

func (*QueryInflationRequest) ProtoMessage()

func (*QueryInflationRequest) ProtoReflect

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

func (*QueryInflationRequest) Reset

func (x *QueryInflationRequest) Reset()

func (*QueryInflationRequest) String

func (x *QueryInflationRequest) String() string

type QueryInflationResponse

type QueryInflationResponse struct {

	// inflation is the current minting inflation value.
	Inflation []byte `protobuf:"bytes,1,opt,name=inflation,proto3" json:"inflation,omitempty"`
	// contains filtered or unexported fields
}

QueryInflationResponse is the response type for the Query/Inflation RPC method.

func (*QueryInflationResponse) Descriptor deprecated

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

Deprecated: Use QueryInflationResponse.ProtoReflect.Descriptor instead.

func (*QueryInflationResponse) GetInflation

func (x *QueryInflationResponse) GetInflation() []byte

func (*QueryInflationResponse) ProtoMessage

func (*QueryInflationResponse) ProtoMessage()

func (*QueryInflationResponse) ProtoReflect

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

func (*QueryInflationResponse) Reset

func (x *QueryInflationResponse) Reset()

func (*QueryInflationResponse) String

func (x *QueryInflationResponse) String() string

type QueryParamsRequest

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

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

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

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

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params defines the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

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

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer

type QueryServer interface {
	// Params returns the total set of minting parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Inflation returns the current minting inflation value.
	Inflation(context.Context, *QueryInflationRequest) (*QueryInflationResponse, error)
	// AnnualProvisions current minting annual provisions value.
	AnnualProvisions(context.Context, *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error)
	// contains filtered or unexported methods
}

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Inflation

func (UnimplementedQueryServer) Params

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