incentive

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 16 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.

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

Index

Constants

View Source
const (
	Query_Params_FullMethodName      = "/side.incentive.Query/Params"
	Query_Rewards_FullMethodName     = "/side.incentive.Query/Rewards"
	Query_RewardStats_FullMethodName = "/side.incentive.Query/RewardStats"
)
View Source
const (
	Msg_UpdateParams_FullMethodName = "/side.incentive.Msg/UpdateParams"
)

Variables

View Source
var File_side_incentive_genesis_proto protoreflect.FileDescriptor
View Source
var File_side_incentive_incentive_proto protoreflect.FileDescriptor
View Source
var File_side_incentive_params_proto protoreflect.FileDescriptor
View Source
var File_side_incentive_query_proto protoreflect.FileDescriptor
View Source
var File_side_incentive_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "side.incentive.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "side/incentive/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: "side.incentive.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Rewards",
			Handler:    _Query_Rewards_Handler,
		},
		{
			MethodName: "RewardStats",
			Handler:    _Query_RewardStats_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "side/incentive/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 GenesisState

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

GenesisState defines the incentive 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) 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 {
	// UpdateParams defines a governance operation for updating the x/incentive module
	// parameters. The authority defaults to the x/gov module account.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgServer

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the x/incentive module
	// parameters. The authority defaults to the x/gov module account.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

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

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/incentive parameters to be updated.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

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

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

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

MsgUpdateParamsResponse defines the Msg/UpdateParams response type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

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

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

type Params struct {

	// Indicates if the incentive mechanism is enabled
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Reward per deposit tx via btc bridge
	RewardPerDeposit *v1beta1.Coin `protobuf:"bytes,2,opt,name=reward_per_deposit,json=rewardPerDeposit,proto3" json:"reward_per_deposit,omitempty"`
	// Reward per withdrawal tx via btc bridge
	RewardPerWithdraw *v1beta1.Coin `protobuf:"bytes,3,opt,name=reward_per_withdraw,json=rewardPerWithdraw,proto3" json:"reward_per_withdraw,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetEnabled

func (x *Params) GetEnabled() bool

func (*Params) GetRewardPerDeposit

func (x *Params) GetRewardPerDeposit() *v1beta1.Coin

func (*Params) GetRewardPerWithdraw

func (x *Params) GetRewardPerWithdraw() *v1beta1.Coin

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 QueryClient

type QueryClient interface {
	// Params queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Rewards queries the rewards of the given address.
	Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error)
	// RewardStats queries total reward statistics.
	RewardStats(ctx context.Context, in *QueryRewardStatsRequest, opts ...grpc.CallOption) (*QueryRewardStatsResponse, 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 QueryParamsRequest

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

QueryParamsRequest is 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 holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is 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 QueryRewardStatsRequest

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

QueryRewardStatsRequest is request type for the Query/RewardStats RPC method.

func (*QueryRewardStatsRequest) Descriptor deprecated

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

Deprecated: Use QueryRewardStatsRequest.ProtoReflect.Descriptor instead.

func (*QueryRewardStatsRequest) ProtoMessage

func (*QueryRewardStatsRequest) ProtoMessage()

func (*QueryRewardStatsRequest) ProtoReflect

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

func (*QueryRewardStatsRequest) Reset

func (x *QueryRewardStatsRequest) Reset()

func (*QueryRewardStatsRequest) String

func (x *QueryRewardStatsRequest) String() string

type QueryRewardStatsResponse

type QueryRewardStatsResponse struct {
	RewardStats *RewardStats `protobuf:"bytes,1,opt,name=reward_stats,json=rewardStats,proto3" json:"reward_stats,omitempty"`
	// contains filtered or unexported fields
}

QueryRewardStatsResponse is response type for the Query/RewardStats RPC method.

func (*QueryRewardStatsResponse) Descriptor deprecated

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

Deprecated: Use QueryRewardStatsResponse.ProtoReflect.Descriptor instead.

func (*QueryRewardStatsResponse) GetRewardStats

func (x *QueryRewardStatsResponse) GetRewardStats() *RewardStats

func (*QueryRewardStatsResponse) ProtoMessage

func (*QueryRewardStatsResponse) ProtoMessage()

func (*QueryRewardStatsResponse) ProtoReflect

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

func (*QueryRewardStatsResponse) Reset

func (x *QueryRewardStatsResponse) Reset()

func (*QueryRewardStatsResponse) String

func (x *QueryRewardStatsResponse) String() string

type QueryRewardsRequest

type QueryRewardsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

QueryRewardsRequest is request type for the Query/Rewards RPC method.

func (*QueryRewardsRequest) Descriptor deprecated

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

Deprecated: Use QueryRewardsRequest.ProtoReflect.Descriptor instead.

func (*QueryRewardsRequest) GetAddress

func (x *QueryRewardsRequest) GetAddress() string

func (*QueryRewardsRequest) ProtoMessage

func (*QueryRewardsRequest) ProtoMessage()

func (*QueryRewardsRequest) ProtoReflect

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

func (*QueryRewardsRequest) Reset

func (x *QueryRewardsRequest) Reset()

func (*QueryRewardsRequest) String

func (x *QueryRewardsRequest) String() string

type QueryRewardsResponse

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

QueryRewardsResponse is response type for the Query/Rewards RPC method.

func (*QueryRewardsResponse) Descriptor deprecated

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

Deprecated: Use QueryRewardsResponse.ProtoReflect.Descriptor instead.

func (*QueryRewardsResponse) GetRewards

func (x *QueryRewardsResponse) GetRewards() *Rewards

func (*QueryRewardsResponse) ProtoMessage

func (*QueryRewardsResponse) ProtoMessage()

func (*QueryRewardsResponse) ProtoReflect

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

func (*QueryRewardsResponse) Reset

func (x *QueryRewardsResponse) Reset()

func (*QueryRewardsResponse) String

func (x *QueryRewardsResponse) String() string

type QueryServer

type QueryServer interface {
	// Params queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Rewards queries the rewards of the given address.
	Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error)
	// RewardStats queries total reward statistics.
	RewardStats(context.Context, *QueryRewardStatsRequest) (*QueryRewardStatsResponse, error)
	// contains filtered or unexported methods
}

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

type RewardStats

type RewardStats struct {
	AddressCount      uint64        `protobuf:"varint,1,opt,name=address_count,json=addressCount,proto3" json:"address_count,omitempty"`
	TxCount           uint64        `protobuf:"varint,2,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"`
	TotalRewardAmount *v1beta1.Coin `protobuf:"bytes,3,opt,name=total_reward_amount,json=totalRewardAmount,proto3" json:"total_reward_amount,omitempty"`
	// contains filtered or unexported fields
}

Reward Statistics

func (*RewardStats) Descriptor deprecated

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

Deprecated: Use RewardStats.ProtoReflect.Descriptor instead.

func (*RewardStats) GetAddressCount

func (x *RewardStats) GetAddressCount() uint64

func (*RewardStats) GetTotalRewardAmount

func (x *RewardStats) GetTotalRewardAmount() *v1beta1.Coin

func (*RewardStats) GetTxCount

func (x *RewardStats) GetTxCount() uint64

func (*RewardStats) ProtoMessage

func (*RewardStats) ProtoMessage()

func (*RewardStats) ProtoReflect

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

func (*RewardStats) Reset

func (x *RewardStats) Reset()

func (*RewardStats) String

func (x *RewardStats) String() string

type Rewards

type Rewards struct {
	Address        string        `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	DepositCount   uint64        `protobuf:"varint,2,opt,name=deposit_count,json=depositCount,proto3" json:"deposit_count,omitempty"`
	WithdrawCount  uint64        `protobuf:"varint,3,opt,name=withdraw_count,json=withdrawCount,proto3" json:"withdraw_count,omitempty"`
	DepositReward  *v1beta1.Coin `protobuf:"bytes,4,opt,name=deposit_reward,json=depositReward,proto3" json:"deposit_reward,omitempty"`
	WithdrawReward *v1beta1.Coin `protobuf:"bytes,5,opt,name=withdraw_reward,json=withdrawReward,proto3" json:"withdraw_reward,omitempty"`
	TotalAmount    *v1beta1.Coin `protobuf:"bytes,6,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	// contains filtered or unexported fields
}

Rewards

func (*Rewards) Descriptor deprecated

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

Deprecated: Use Rewards.ProtoReflect.Descriptor instead.

func (*Rewards) GetAddress

func (x *Rewards) GetAddress() string

func (*Rewards) GetDepositCount

func (x *Rewards) GetDepositCount() uint64

func (*Rewards) GetDepositReward

func (x *Rewards) GetDepositReward() *v1beta1.Coin

func (*Rewards) GetTotalAmount

func (x *Rewards) GetTotalAmount() *v1beta1.Coin

func (*Rewards) GetWithdrawCount

func (x *Rewards) GetWithdrawCount() uint64

func (*Rewards) GetWithdrawReward

func (x *Rewards) GetWithdrawReward() *v1beta1.Coin

func (*Rewards) ProtoMessage

func (*Rewards) ProtoMessage()

func (*Rewards) ProtoReflect

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

func (*Rewards) Reset

func (x *Rewards) Reset()

func (*Rewards) String

func (x *Rewards) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Rewards

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