types

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// IprpcSubscriptionPrefix is the prefix to retrieve all IprpcSubscription
	IprpcSubscriptionPrefix = "IprpcSubscription/"

	// MinIprpcCostPrefix is the prefix to retrieve all MinIprpcCost
	MinIprpcCostPrefix = "MinIprpcCost/"

	// IprpcRewardPrefix is the prefix to retrieve all IprpcReward
	IprpcRewardPrefix = "IprpcReward/"

	// IprpcRewardsCurrentPrefix is the prefix to retrieve all IprpcRewardsCurrent
	IprpcRewardsCurrentPrefix = "IprpcRewardsCurrent/"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "rewards"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_rewards"

	// prefix for the CU tracker timer store
	MonthlyRewardsTSPrefix = "monthly-rewards-ts"
)
View Source
const (
	ValidatorsRewardsAllocationPoolName Pool   = "validators_rewards_allocation_pool"
	ProvidersRewardsAllocationPool      Pool   = "providers_rewards_allocation_pool"
	RewardsAllocationPoolsLifetime      uint64 = 48 // 4 years (in months)
)

Allocation pools constants: These pools are used as the main and reserve of tokens for the distribution rewards pools. Each month, the allocation pools transfer a monthly quota of tokens to the distribution pools so there will be funds to distribute rewards for validators/providers. The allocation pools will get depleted after RewardsAllocationPoolsLifetime.

View Source
const (
	ValidatorsRewardsDistributionPoolName Pool = "validators_rewards_distribution_pool"
	ProviderRewardsDistributionPool       Pool = "providers_rewards_distribution_pool"
	DistributionPoolRefillEventName            = "distribution_pools_refill"
	ProvidersBonusRewardsEventName             = "provider_bonus_rewards"
)

Distribution pools constants: These pools are used as the reserve of tokens for validators/providers rewards. Once a month, these pools' tokens are burned by the burn rate and get their monthly quota of tokens from the allocation pools

View Source
const (
	RefillRewardsPoolTimerPrefix = "refill-rewards-pool-ts"
	RefillRewardsPoolTimerName   = "refill-rewards-timer"
)

Refill reward pools time stores constants: This timer store is used to trigger the refill mechanism of the distribution pools once a month.

View Source
const (
	IprpcPoolName                           Pool   = "iprpc_pool"
	IprpcPoolEmissionEventName              string = "iprpc_pool_emmission"
	SetIprpcDataEventName                          = "set_iprpc_data"
	FundIprpcEventName                             = "fund_iprpc"
	TransferIprpcRewardToNextMonthEventName        = "transfer_iprpc_reward_to_next_month"
)

IPRPC Pool: IPRPC (Incentivized Providers RPC) pool is meant to hold bonus rewards for providers that provide service on specific specs. The rewards from this pool are distributed on a monthly basis

View Source
const (
	// BasePayPrefix is the prefix to retrieve all BasePay
	BasePayPrefix = "BasePay/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgFundIprpc = "fund_iprpc"
View Source
const TypeMsgSetIprpcData = "set_iprpc_data"
View Source
const (
	ValidatorsAndCommunityFund = "validators_and_community_fund"
)

Events

Variables

View Source
var (
	ErrInvalidLengthBasePay        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBasePay          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBasePay = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthIprpc        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIprpc          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIprpc = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyMinBondedTarget             = []byte("MinBondedTarget")
	DefaultMinBondedTarget sdk.Dec = sdk.NewDecWithPrec(6, 1) // 0.6
)
View Source
var (
	KeyMaxBondedTarget             = []byte("MaxBondedTarget")
	DefaultMaxBondedTarget sdk.Dec = sdk.NewDecWithPrec(8, 1) // 0.8
)
View Source
var (
	KeyLowFactor             = []byte("LowFactor")
	DefaultLowFactor sdk.Dec = sdk.NewDecWithPrec(5, 1) // 0.5
)
View Source
var (
	KeyLeftoverBurnRate             = []byte("LeftoverBurnRate")
	DefaultLeftOverBurnRate sdk.Dec = sdk.OneDec()
)
View Source
var (
	KeyMaxRewardBoost     = []byte("MaxRewardBoost")
	DefaultMaxRewardBoost = uint64(5)
)
View Source
var (
	KeyValidatorsSubscriptionParticipation             = []byte("ValidatorsSubscriptionParticipation")
	DefaultValidatorsSubscriptionParticipation sdk.Dec = sdk.NewDecWithPrec(5, 2) // 0.05
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
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")
)
View Source
var BlocksToTimerExpirySlackFactor math.LegacyDec = sdk.NewDecWithPrec(105, 2) // 1.05

BlocksToTimerExpirySlackFactor is used to calculate the number of blocks until the next timer expiry which determine the validators block rewards. since the time/blocks conversion can be errornous, we multiply our calculated number of blocks by this error margin, so we'll won't have a case of having too few blocks

View Source
var (
	ErrFundIprpc = sdkerrors.Register(ModuleName, 1, "fund iprpc TX failed")
)

x/rewards module sentinel errors

View Source
var LastRewardsBlockPrefix = collections.NewPrefix([]byte("LastRewardsBlock/"))

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BasePay

type BasePay struct {
	Total         github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=total,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total"`
	TotalAdjusted github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=totalAdjusted,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"totalAdjusted"`
	IprpcCu       uint64                                 `protobuf:"varint,3,opt,name=iprpc_cu,json=iprpcCu,proto3" json:"iprpc_cu,omitempty"`
}

aggregated rewards for the provider through out the month

func (*BasePay) Descriptor

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

func (*BasePay) GetIprpcCu

func (m *BasePay) GetIprpcCu() uint64

func (*BasePay) Marshal

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

func (*BasePay) MarshalTo

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

func (*BasePay) MarshalToSizedBuffer

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

func (*BasePay) ProtoMessage

func (*BasePay) ProtoMessage()

func (*BasePay) Reset

func (m *BasePay) Reset()

func (*BasePay) Size

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

func (*BasePay) String

func (m *BasePay) String() string

func (*BasePay) Unmarshal

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

func (*BasePay) XXX_DiscardUnknown

func (m *BasePay) XXX_DiscardUnknown()

func (*BasePay) XXX_Marshal

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

func (*BasePay) XXX_Merge

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

func (*BasePay) XXX_Size

func (m *BasePay) XXX_Size() int

func (*BasePay) XXX_Unmarshal

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

type BasePayWithIndex

type BasePayWithIndex struct {
	Provider string  `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainId  string  `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	BasePay  BasePay `protobuf:"bytes,3,opt,name=base_pay,json=basePay,proto3" json:"base_pay"`
}

aggregated rewards for the provider through out the month

func BasePayKeyRecover

func BasePayKeyRecover(key string) (bp BasePayWithIndex)

func (*BasePayWithIndex) Descriptor

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

func (*BasePayWithIndex) GetBasePay

func (m *BasePayWithIndex) GetBasePay() BasePay

func (*BasePayWithIndex) GetChainId

func (m *BasePayWithIndex) GetChainId() string

func (*BasePayWithIndex) GetProvider

func (m *BasePayWithIndex) GetProvider() string

func (BasePayWithIndex) Index

func (bp BasePayWithIndex) Index() string

func (*BasePayWithIndex) Marshal

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

func (*BasePayWithIndex) MarshalTo

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

func (*BasePayWithIndex) MarshalToSizedBuffer

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

func (*BasePayWithIndex) ProtoMessage

func (*BasePayWithIndex) ProtoMessage()

func (*BasePayWithIndex) Reset

func (m *BasePayWithIndex) Reset()

func (*BasePayWithIndex) Size

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

func (*BasePayWithIndex) String

func (m *BasePayWithIndex) String() string

func (*BasePayWithIndex) Unmarshal

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

func (*BasePayWithIndex) XXX_DiscardUnknown

func (m *BasePayWithIndex) XXX_DiscardUnknown()

func (*BasePayWithIndex) XXX_Marshal

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

func (*BasePayWithIndex) XXX_Merge

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

func (*BasePayWithIndex) XXX_Size

func (m *BasePayWithIndex) XXX_Size() int

func (*BasePayWithIndex) XXX_Unmarshal

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

type DistributionKeeper

type DistributionKeeper interface {
	GetParams(ctx sdk.Context) (params distributiontypes.Params)
	GetFeePool(ctx sdk.Context) (feePool distributiontypes.FeePool)
	SetFeePool(ctx sdk.Context, feePool distributiontypes.FeePool)
}

type DowntimeKeeper

type DowntimeKeeper interface {
	GetParams(ctx sdk.Context) (params v1.Params)
}

type DualStakingKeeper

type DualStakingKeeper interface {
	RewardProvidersAndDelegators(ctx sdk.Context, providerAddr string, chainID string, totalReward sdk.Coins, senderModule string, calcOnlyProvider bool, calcOnlyDelegators bool, calcOnlyContributor bool) (providerReward sdk.Coins, err error)
}

type EpochstorageKeeper

type EpochstorageKeeper interface {
	GetStakeEntryCurrent(ctx sdk.Context, chainID string, address string) (epochstoragetypes.StakeEntry, bool)
	GetAllStakeEntriesCurrentForChainId(ctx sdk.Context, chainID string) []epochstoragetypes.StakeEntry
	EpochBlocks(ctx sdk.Context, block uint64) (res uint64, err error)
}

type GenesisState

type GenesisState struct {
	Params              Params             `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	RefillRewardsTS     types.GenesisState `protobuf:"bytes,2,opt,name=refillRewardsTS,proto3" json:"refillRewardsTS"`
	BasePays            []BasePayWithIndex `protobuf:"bytes,3,rep,name=base_pays,json=basePays,proto3" json:"base_pays"`
	IprpcSubscriptions  []string           `protobuf:"bytes,4,rep,name=iprpc_subscriptions,json=iprpcSubscriptions,proto3" json:"iprpc_subscriptions,omitempty"`
	MinIprpcCost        types1.Coin        `protobuf:"bytes,5,opt,name=min_iprpc_cost,json=minIprpcCost,proto3" json:"min_iprpc_cost"`
	IprpcRewards        []IprpcReward      `protobuf:"bytes,6,rep,name=iprpc_rewards,json=iprpcRewards,proto3" json:"iprpc_rewards"`
	IprpcRewardsCurrent uint64             `protobuf:"varint,7,opt,name=iprpc_rewards_current,json=iprpcRewardsCurrent,proto3" json:"iprpc_rewards_current,omitempty"`
}

GenesisState defines the rewards module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBasePays

func (m *GenesisState) GetBasePays() []BasePayWithIndex

func (*GenesisState) GetIprpcRewards

func (m *GenesisState) GetIprpcRewards() []IprpcReward

func (*GenesisState) GetIprpcRewardsCurrent

func (m *GenesisState) GetIprpcRewardsCurrent() uint64

func (*GenesisState) GetIprpcSubscriptions

func (m *GenesisState) GetIprpcSubscriptions() []string

func (*GenesisState) GetMinIprpcCost

func (m *GenesisState) GetMinIprpcCost() types1.Coin

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRefillRewardsTS

func (m *GenesisState) GetRefillRewardsTS() types.GenesisState

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type IprpcReward

type IprpcReward struct {
	Id        uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	SpecFunds []Specfund `protobuf:"bytes,2,rep,name=spec_funds,json=specFunds,proto3" json:"spec_funds"`
}

object that holds the list for iprpc funcs for a specific month id

func (*IprpcReward) Descriptor

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

func (*IprpcReward) GetId

func (m *IprpcReward) GetId() uint64

func (*IprpcReward) GetSpecFunds

func (m *IprpcReward) GetSpecFunds() []Specfund

func (*IprpcReward) Marshal

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

func (*IprpcReward) MarshalTo

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

func (*IprpcReward) MarshalToSizedBuffer

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

func (*IprpcReward) ProtoMessage

func (*IprpcReward) ProtoMessage()

func (*IprpcReward) Reset

func (m *IprpcReward) Reset()

func (*IprpcReward) Size

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

func (*IprpcReward) String

func (m *IprpcReward) String() string

func (*IprpcReward) Unmarshal

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

func (*IprpcReward) XXX_DiscardUnknown

func (m *IprpcReward) XXX_DiscardUnknown()

func (*IprpcReward) XXX_Marshal

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

func (*IprpcReward) XXX_Merge

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

func (*IprpcReward) XXX_Size

func (m *IprpcReward) XXX_Size() int

func (*IprpcReward) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	SetIprpcData(ctx context.Context, in *MsgSetIprpcData, opts ...grpc.CallOption) (*MsgSetIprpcDataResponse, error)
	FundIprpc(ctx context.Context, in *MsgFundIprpc, opts ...grpc.CallOption) (*MsgFundIprpcResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgFundIprpc

type MsgFundIprpc struct {
	Creator  string                                   `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Duration uint64                                   `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"`
	Amounts  github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amounts,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amounts"`
	Spec     string                                   `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"`
}

func NewMsgFundIprpc

func NewMsgFundIprpc(creator string, spec string, duration uint64, amounts sdk.Coins) *MsgFundIprpc

func (*MsgFundIprpc) Descriptor

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

func (*MsgFundIprpc) GetAmounts

func (*MsgFundIprpc) GetCreator

func (m *MsgFundIprpc) GetCreator() string

func (*MsgFundIprpc) GetDuration

func (m *MsgFundIprpc) GetDuration() uint64

func (*MsgFundIprpc) GetSignBytes

func (msg *MsgFundIprpc) GetSignBytes() []byte

func (*MsgFundIprpc) GetSigners

func (msg *MsgFundIprpc) GetSigners() []sdk.AccAddress

func (*MsgFundIprpc) GetSpec

func (m *MsgFundIprpc) GetSpec() string

func (*MsgFundIprpc) Marshal

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

func (*MsgFundIprpc) MarshalTo

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

func (*MsgFundIprpc) MarshalToSizedBuffer

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

func (*MsgFundIprpc) ProtoMessage

func (*MsgFundIprpc) ProtoMessage()

func (*MsgFundIprpc) Reset

func (m *MsgFundIprpc) Reset()

func (*MsgFundIprpc) Route

func (msg *MsgFundIprpc) Route() string

func (*MsgFundIprpc) Size

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

func (*MsgFundIprpc) String

func (m *MsgFundIprpc) String() string

func (*MsgFundIprpc) Type

func (msg *MsgFundIprpc) Type() string

func (*MsgFundIprpc) Unmarshal

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

func (*MsgFundIprpc) ValidateBasic

func (msg *MsgFundIprpc) ValidateBasic() error

func (*MsgFundIprpc) XXX_DiscardUnknown

func (m *MsgFundIprpc) XXX_DiscardUnknown()

func (*MsgFundIprpc) XXX_Marshal

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

func (*MsgFundIprpc) XXX_Merge

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

func (*MsgFundIprpc) XXX_Size

func (m *MsgFundIprpc) XXX_Size() int

func (*MsgFundIprpc) XXX_Unmarshal

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

type MsgFundIprpcResponse

type MsgFundIprpcResponse struct {
}

func (*MsgFundIprpcResponse) Descriptor

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

func (*MsgFundIprpcResponse) Marshal

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

func (*MsgFundIprpcResponse) MarshalTo

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

func (*MsgFundIprpcResponse) MarshalToSizedBuffer

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

func (*MsgFundIprpcResponse) ProtoMessage

func (*MsgFundIprpcResponse) ProtoMessage()

func (*MsgFundIprpcResponse) Reset

func (m *MsgFundIprpcResponse) Reset()

func (*MsgFundIprpcResponse) Size

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

func (*MsgFundIprpcResponse) String

func (m *MsgFundIprpcResponse) String() string

func (*MsgFundIprpcResponse) Unmarshal

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

func (*MsgFundIprpcResponse) XXX_DiscardUnknown

func (m *MsgFundIprpcResponse) XXX_DiscardUnknown()

func (*MsgFundIprpcResponse) XXX_Marshal

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

func (*MsgFundIprpcResponse) XXX_Merge

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

func (*MsgFundIprpcResponse) XXX_Size

func (m *MsgFundIprpcResponse) XXX_Size() int

func (*MsgFundIprpcResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	SetIprpcData(context.Context, *MsgSetIprpcData) (*MsgSetIprpcDataResponse, error)
	FundIprpc(context.Context, *MsgFundIprpc) (*MsgFundIprpcResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetIprpcData

type MsgSetIprpcData struct {
	Authority          string     `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	MinIprpcCost       types.Coin `protobuf:"bytes,2,opt,name=min_iprpc_cost,json=minIprpcCost,proto3" json:"min_iprpc_cost"`
	IprpcSubscriptions []string   `protobuf:"bytes,3,rep,name=iprpc_subscriptions,json=iprpcSubscriptions,proto3" json:"iprpc_subscriptions,omitempty"`
}

func NewMsgSetIprpcData

func NewMsgSetIprpcData(authority string, cost sdk.Coin, subs []string) *MsgSetIprpcData

func (*MsgSetIprpcData) Descriptor

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

func (*MsgSetIprpcData) GetAuthority

func (m *MsgSetIprpcData) GetAuthority() string

func (*MsgSetIprpcData) GetIprpcSubscriptions

func (m *MsgSetIprpcData) GetIprpcSubscriptions() []string

func (*MsgSetIprpcData) GetMinIprpcCost

func (m *MsgSetIprpcData) GetMinIprpcCost() types.Coin

func (*MsgSetIprpcData) GetSignBytes

func (msg *MsgSetIprpcData) GetSignBytes() []byte

func (*MsgSetIprpcData) GetSigners

func (msg *MsgSetIprpcData) GetSigners() []sdk.AccAddress

func (*MsgSetIprpcData) Marshal

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

func (*MsgSetIprpcData) MarshalTo

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

func (*MsgSetIprpcData) MarshalToSizedBuffer

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

func (*MsgSetIprpcData) ProtoMessage

func (*MsgSetIprpcData) ProtoMessage()

func (*MsgSetIprpcData) Reset

func (m *MsgSetIprpcData) Reset()

func (*MsgSetIprpcData) Route

func (msg *MsgSetIprpcData) Route() string

func (*MsgSetIprpcData) Size

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

func (*MsgSetIprpcData) String

func (m *MsgSetIprpcData) String() string

func (*MsgSetIprpcData) Type

func (msg *MsgSetIprpcData) Type() string

func (*MsgSetIprpcData) Unmarshal

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

func (*MsgSetIprpcData) ValidateBasic

func (msg *MsgSetIprpcData) ValidateBasic() error

func (*MsgSetIprpcData) XXX_DiscardUnknown

func (m *MsgSetIprpcData) XXX_DiscardUnknown()

func (*MsgSetIprpcData) XXX_Marshal

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

func (*MsgSetIprpcData) XXX_Merge

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

func (*MsgSetIprpcData) XXX_Size

func (m *MsgSetIprpcData) XXX_Size() int

func (*MsgSetIprpcData) XXX_Unmarshal

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

type MsgSetIprpcDataResponse

type MsgSetIprpcDataResponse struct {
}

func (*MsgSetIprpcDataResponse) Descriptor

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

func (*MsgSetIprpcDataResponse) Marshal

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

func (*MsgSetIprpcDataResponse) MarshalTo

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

func (*MsgSetIprpcDataResponse) MarshalToSizedBuffer

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

func (*MsgSetIprpcDataResponse) ProtoMessage

func (*MsgSetIprpcDataResponse) ProtoMessage()

func (*MsgSetIprpcDataResponse) Reset

func (m *MsgSetIprpcDataResponse) Reset()

func (*MsgSetIprpcDataResponse) Size

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

func (*MsgSetIprpcDataResponse) String

func (m *MsgSetIprpcDataResponse) String() string

func (*MsgSetIprpcDataResponse) Unmarshal

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

func (*MsgSetIprpcDataResponse) XXX_DiscardUnknown

func (m *MsgSetIprpcDataResponse) XXX_DiscardUnknown()

func (*MsgSetIprpcDataResponse) XXX_Marshal

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

func (*MsgSetIprpcDataResponse) XXX_Merge

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

func (*MsgSetIprpcDataResponse) XXX_Size

func (m *MsgSetIprpcDataResponse) XXX_Size() int

func (*MsgSetIprpcDataResponse) XXX_Unmarshal

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

type Params

type Params struct {
	MinBondedTarget                     github_com_cosmos_cosmos_sdk_types.Dec `` /* 173-byte string literal not displayed */
	MaxBondedTarget                     github_com_cosmos_cosmos_sdk_types.Dec `` /* 173-byte string literal not displayed */
	LowFactor                           github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	LeftoverBurnRate                    github_com_cosmos_cosmos_sdk_types.Dec `` /* 177-byte string literal not displayed */
	MaxRewardBoost                      uint64                                 `protobuf:"varint,5,opt,name=max_reward_boost,json=maxRewardBoost,proto3" json:"max_reward_boost,omitempty"`
	ValidatorsSubscriptionParticipation github_com_cosmos_cosmos_sdk_types.Dec `` /* 253-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	minBondedTarget sdk.Dec,
	maxBondedTarget sdk.Dec,
	lowFactor sdk.Dec,
	leftoverBurnRate sdk.Dec,
	maxRewardBoost uint64,
	validatorsSubscriptionParticipation sdk.Dec,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetMaxRewardBoost

func (m *Params) GetMaxRewardBoost() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type Pool

type Pool string
const (
	ValidatorsRewardsLeftOverPoolName Pool = "validators_rewards_leftover_pool"
)

Validators leftover pool for coins that were moved near the end of the month

type PoolInfo

type PoolInfo struct {
	Name    string                                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Balance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance"`
}

func (*PoolInfo) Descriptor

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

func (*PoolInfo) GetBalance

func (*PoolInfo) GetName

func (m *PoolInfo) GetName() string

func (*PoolInfo) Marshal

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

func (*PoolInfo) MarshalTo

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

func (*PoolInfo) MarshalToSizedBuffer

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

func (*PoolInfo) ProtoMessage

func (*PoolInfo) ProtoMessage()

func (*PoolInfo) Reset

func (m *PoolInfo) Reset()

func (*PoolInfo) Size

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

func (*PoolInfo) String

func (m *PoolInfo) String() string

func (*PoolInfo) Unmarshal

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

func (*PoolInfo) XXX_DiscardUnknown

func (m *PoolInfo) XXX_DiscardUnknown()

func (*PoolInfo) XXX_Marshal

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

func (*PoolInfo) XXX_Merge

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

func (*PoolInfo) XXX_Size

func (m *PoolInfo) XXX_Size() int

func (*PoolInfo) XXX_Unmarshal

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

type ProviderCuType

type ProviderCuType struct {
	Provider string
	CU       uint64
}

type QueryBlockRewardRequest

type QueryBlockRewardRequest struct {
}

QueryBlockRewardRequest is request type for the Query/BlockReward RPC method.

func (*QueryBlockRewardRequest) Descriptor

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

func (*QueryBlockRewardRequest) Marshal

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

func (*QueryBlockRewardRequest) MarshalTo

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

func (*QueryBlockRewardRequest) MarshalToSizedBuffer

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

func (*QueryBlockRewardRequest) ProtoMessage

func (*QueryBlockRewardRequest) ProtoMessage()

func (*QueryBlockRewardRequest) Reset

func (m *QueryBlockRewardRequest) Reset()

func (*QueryBlockRewardRequest) Size

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

func (*QueryBlockRewardRequest) String

func (m *QueryBlockRewardRequest) String() string

func (*QueryBlockRewardRequest) Unmarshal

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

func (*QueryBlockRewardRequest) XXX_DiscardUnknown

func (m *QueryBlockRewardRequest) XXX_DiscardUnknown()

func (*QueryBlockRewardRequest) XXX_Marshal

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

func (*QueryBlockRewardRequest) XXX_Merge

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

func (*QueryBlockRewardRequest) XXX_Size

func (m *QueryBlockRewardRequest) XXX_Size() int

func (*QueryBlockRewardRequest) XXX_Unmarshal

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

type QueryBlockRewardResponse

type QueryBlockRewardResponse struct {
	Reward types.Coin `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward"`
}

QueryBlockRewardResponse is response type for the Query/BlockReward RPC method.

func (*QueryBlockRewardResponse) Descriptor

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

func (*QueryBlockRewardResponse) GetReward

func (m *QueryBlockRewardResponse) GetReward() types.Coin

func (*QueryBlockRewardResponse) Marshal

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

func (*QueryBlockRewardResponse) MarshalTo

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

func (*QueryBlockRewardResponse) MarshalToSizedBuffer

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

func (*QueryBlockRewardResponse) ProtoMessage

func (*QueryBlockRewardResponse) ProtoMessage()

func (*QueryBlockRewardResponse) Reset

func (m *QueryBlockRewardResponse) Reset()

func (*QueryBlockRewardResponse) Size

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

func (*QueryBlockRewardResponse) String

func (m *QueryBlockRewardResponse) String() string

func (*QueryBlockRewardResponse) Unmarshal

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

func (*QueryBlockRewardResponse) XXX_DiscardUnknown

func (m *QueryBlockRewardResponse) XXX_DiscardUnknown()

func (*QueryBlockRewardResponse) XXX_Marshal

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

func (*QueryBlockRewardResponse) XXX_Merge

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

func (*QueryBlockRewardResponse) XXX_Size

func (m *QueryBlockRewardResponse) XXX_Size() int

func (*QueryBlockRewardResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Pools queries all the pools' info
	Pools(ctx context.Context, in *QueryPoolsRequest, opts ...grpc.CallOption) (*QueryPoolsResponse, error)
	// BlockReward queries for the validators reward for proposing a block
	BlockReward(ctx context.Context, in *QueryBlockRewardRequest, opts ...grpc.CallOption) (*QueryBlockRewardResponse, error)
	// ShowIprpcData queries for the iprpc data
	ShowIprpcData(ctx context.Context, in *QueryShowIprpcDataRequest, opts ...grpc.CallOption) (*QueryShowIprpcDataResponse, error)
	// ProviderReward queries for the providers reward for their services
	SpecTrackedInfo(ctx context.Context, in *QuerySpecTrackedInfoRequest, opts ...grpc.CallOption) (*QuerySpecTrackedInfoResponse, error)
	// IprpcProviderRewardEstimation queries for a provider's current IPRPC reward (relative to its serviced CU)
	IprpcProviderRewardEstimation(ctx context.Context, in *QueryIprpcProviderRewardEstimationRequest, opts ...grpc.CallOption) (*QueryIprpcProviderRewardEstimationResponse, error)
	// IprpcSpecReward queries for a spec's IPRPC reward
	IprpcSpecReward(ctx context.Context, in *QueryIprpcSpecRewardRequest, opts ...grpc.CallOption) (*QueryIprpcSpecRewardResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryIprpcProviderRewardEstimationRequest

type QueryIprpcProviderRewardEstimationRequest struct {
	Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
}

QueryIprpcProviderRewardEstimationRequest is request type for the Query/IprpcProviderRewardEstimation RPC method.

func (*QueryIprpcProviderRewardEstimationRequest) Descriptor

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

func (*QueryIprpcProviderRewardEstimationRequest) GetProvider

func (*QueryIprpcProviderRewardEstimationRequest) Marshal

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

func (*QueryIprpcProviderRewardEstimationRequest) MarshalTo

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

func (*QueryIprpcProviderRewardEstimationRequest) MarshalToSizedBuffer

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

func (*QueryIprpcProviderRewardEstimationRequest) ProtoMessage

func (*QueryIprpcProviderRewardEstimationRequest) Reset

func (*QueryIprpcProviderRewardEstimationRequest) Size

func (*QueryIprpcProviderRewardEstimationRequest) String

func (*QueryIprpcProviderRewardEstimationRequest) Unmarshal

func (*QueryIprpcProviderRewardEstimationRequest) XXX_DiscardUnknown

func (m *QueryIprpcProviderRewardEstimationRequest) XXX_DiscardUnknown()

func (*QueryIprpcProviderRewardEstimationRequest) XXX_Marshal

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

func (*QueryIprpcProviderRewardEstimationRequest) XXX_Merge

func (*QueryIprpcProviderRewardEstimationRequest) XXX_Size

func (*QueryIprpcProviderRewardEstimationRequest) XXX_Unmarshal

type QueryIprpcProviderRewardEstimationResponse

type QueryIprpcProviderRewardEstimationResponse struct {
	SpecFunds []Specfund `protobuf:"bytes,1,rep,name=spec_funds,json=specFunds,proto3" json:"spec_funds"`
}

QueryIprpcProviderRewardEstimationResponse is response type for the Query/IprpcProviderRewardEstimation RPC method.

func (*QueryIprpcProviderRewardEstimationResponse) Descriptor

func (*QueryIprpcProviderRewardEstimationResponse) GetSpecFunds

func (*QueryIprpcProviderRewardEstimationResponse) Marshal

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

func (*QueryIprpcProviderRewardEstimationResponse) MarshalTo

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

func (*QueryIprpcProviderRewardEstimationResponse) MarshalToSizedBuffer

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

func (*QueryIprpcProviderRewardEstimationResponse) ProtoMessage

func (*QueryIprpcProviderRewardEstimationResponse) Reset

func (*QueryIprpcProviderRewardEstimationResponse) Size

func (*QueryIprpcProviderRewardEstimationResponse) String

func (*QueryIprpcProviderRewardEstimationResponse) Unmarshal

func (*QueryIprpcProviderRewardEstimationResponse) XXX_DiscardUnknown

func (m *QueryIprpcProviderRewardEstimationResponse) XXX_DiscardUnknown()

func (*QueryIprpcProviderRewardEstimationResponse) XXX_Marshal

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

func (*QueryIprpcProviderRewardEstimationResponse) XXX_Merge

func (*QueryIprpcProviderRewardEstimationResponse) XXX_Size

func (*QueryIprpcProviderRewardEstimationResponse) XXX_Unmarshal

type QueryIprpcSpecRewardRequest

type QueryIprpcSpecRewardRequest struct {
	Spec string `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
}

QueryIprpcSpecRewardRequest is request type for the Query/IprpcSpecReward RPC method.

func (*QueryIprpcSpecRewardRequest) Descriptor

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

func (*QueryIprpcSpecRewardRequest) GetSpec

func (m *QueryIprpcSpecRewardRequest) GetSpec() string

func (*QueryIprpcSpecRewardRequest) Marshal

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

func (*QueryIprpcSpecRewardRequest) MarshalTo

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

func (*QueryIprpcSpecRewardRequest) MarshalToSizedBuffer

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

func (*QueryIprpcSpecRewardRequest) ProtoMessage

func (*QueryIprpcSpecRewardRequest) ProtoMessage()

func (*QueryIprpcSpecRewardRequest) Reset

func (m *QueryIprpcSpecRewardRequest) Reset()

func (*QueryIprpcSpecRewardRequest) Size

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

func (*QueryIprpcSpecRewardRequest) String

func (m *QueryIprpcSpecRewardRequest) String() string

func (*QueryIprpcSpecRewardRequest) Unmarshal

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

func (*QueryIprpcSpecRewardRequest) XXX_DiscardUnknown

func (m *QueryIprpcSpecRewardRequest) XXX_DiscardUnknown()

func (*QueryIprpcSpecRewardRequest) XXX_Marshal

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

func (*QueryIprpcSpecRewardRequest) XXX_Merge

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

func (*QueryIprpcSpecRewardRequest) XXX_Size

func (m *QueryIprpcSpecRewardRequest) XXX_Size() int

func (*QueryIprpcSpecRewardRequest) XXX_Unmarshal

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

type QueryIprpcSpecRewardResponse

type QueryIprpcSpecRewardResponse struct {
	IprpcRewards   []IprpcReward `protobuf:"bytes,1,rep,name=iprpc_rewards,json=iprpcRewards,proto3" json:"iprpc_rewards"`
	CurrentMonthId uint64        `protobuf:"varint,2,opt,name=current_month_id,json=currentMonthId,proto3" json:"current_month_id,omitempty"`
}

QueryIprpcSpecRewardResponse is response type for the Query/IprpcSpecReward RPC method.

func (*QueryIprpcSpecRewardResponse) Descriptor

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

func (*QueryIprpcSpecRewardResponse) GetCurrentMonthId

func (m *QueryIprpcSpecRewardResponse) GetCurrentMonthId() uint64

func (*QueryIprpcSpecRewardResponse) GetIprpcRewards

func (m *QueryIprpcSpecRewardResponse) GetIprpcRewards() []IprpcReward

func (*QueryIprpcSpecRewardResponse) Marshal

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

func (*QueryIprpcSpecRewardResponse) MarshalTo

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

func (*QueryIprpcSpecRewardResponse) MarshalToSizedBuffer

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

func (*QueryIprpcSpecRewardResponse) ProtoMessage

func (*QueryIprpcSpecRewardResponse) ProtoMessage()

func (*QueryIprpcSpecRewardResponse) Reset

func (m *QueryIprpcSpecRewardResponse) Reset()

func (*QueryIprpcSpecRewardResponse) Size

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

func (*QueryIprpcSpecRewardResponse) String

func (*QueryIprpcSpecRewardResponse) Unmarshal

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

func (*QueryIprpcSpecRewardResponse) XXX_DiscardUnknown

func (m *QueryIprpcSpecRewardResponse) XXX_DiscardUnknown()

func (*QueryIprpcSpecRewardResponse) XXX_Marshal

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

func (*QueryIprpcSpecRewardResponse) XXX_Merge

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

func (*QueryIprpcSpecRewardResponse) XXX_Size

func (m *QueryIprpcSpecRewardResponse) XXX_Size() int

func (*QueryIprpcSpecRewardResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryPoolsRequest

type QueryPoolsRequest struct {
}

QueryPoolsRequest is request type for the Query/Pools RPC method.

func (*QueryPoolsRequest) Descriptor

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

func (*QueryPoolsRequest) Marshal

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

func (*QueryPoolsRequest) MarshalTo

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

func (*QueryPoolsRequest) MarshalToSizedBuffer

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

func (*QueryPoolsRequest) ProtoMessage

func (*QueryPoolsRequest) ProtoMessage()

func (*QueryPoolsRequest) Reset

func (m *QueryPoolsRequest) Reset()

func (*QueryPoolsRequest) Size

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

func (*QueryPoolsRequest) String

func (m *QueryPoolsRequest) String() string

func (*QueryPoolsRequest) Unmarshal

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

func (*QueryPoolsRequest) XXX_DiscardUnknown

func (m *QueryPoolsRequest) XXX_DiscardUnknown()

func (*QueryPoolsRequest) XXX_Marshal

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

func (*QueryPoolsRequest) XXX_Merge

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

func (*QueryPoolsRequest) XXX_Size

func (m *QueryPoolsRequest) XXX_Size() int

func (*QueryPoolsRequest) XXX_Unmarshal

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

type QueryPoolsResponse

type QueryPoolsResponse struct {
	// details holds all the info of this module's pools.
	Pools                    []PoolInfo `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools"`
	TimeToRefill             int64      `protobuf:"varint,2,opt,name=time_to_refill,json=timeToRefill,proto3" json:"time_to_refill,omitempty"`
	EstimatedBlocksToRefill  int64      `` /* 135-byte string literal not displayed */
	AllocationPoolMonthsLeft int64      `` /* 138-byte string literal not displayed */
}

QueryPoolsResponse is response type for the Query/Pools RPC method.

func (*QueryPoolsResponse) Descriptor

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

func (*QueryPoolsResponse) GetAllocationPoolMonthsLeft

func (m *QueryPoolsResponse) GetAllocationPoolMonthsLeft() int64

func (*QueryPoolsResponse) GetEstimatedBlocksToRefill

func (m *QueryPoolsResponse) GetEstimatedBlocksToRefill() int64

func (*QueryPoolsResponse) GetPools

func (m *QueryPoolsResponse) GetPools() []PoolInfo

func (*QueryPoolsResponse) GetTimeToRefill

func (m *QueryPoolsResponse) GetTimeToRefill() int64

func (*QueryPoolsResponse) Marshal

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

func (*QueryPoolsResponse) MarshalTo

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

func (*QueryPoolsResponse) MarshalToSizedBuffer

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

func (*QueryPoolsResponse) ProtoMessage

func (*QueryPoolsResponse) ProtoMessage()

func (*QueryPoolsResponse) Reset

func (m *QueryPoolsResponse) Reset()

func (*QueryPoolsResponse) Size

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

func (*QueryPoolsResponse) String

func (m *QueryPoolsResponse) String() string

func (*QueryPoolsResponse) Unmarshal

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

func (*QueryPoolsResponse) XXX_DiscardUnknown

func (m *QueryPoolsResponse) XXX_DiscardUnknown()

func (*QueryPoolsResponse) XXX_Marshal

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

func (*QueryPoolsResponse) XXX_Merge

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

func (*QueryPoolsResponse) XXX_Size

func (m *QueryPoolsResponse) XXX_Size() int

func (*QueryPoolsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Pools queries all the pools' info
	Pools(context.Context, *QueryPoolsRequest) (*QueryPoolsResponse, error)
	// BlockReward queries for the validators reward for proposing a block
	BlockReward(context.Context, *QueryBlockRewardRequest) (*QueryBlockRewardResponse, error)
	// ShowIprpcData queries for the iprpc data
	ShowIprpcData(context.Context, *QueryShowIprpcDataRequest) (*QueryShowIprpcDataResponse, error)
	// ProviderReward queries for the providers reward for their services
	SpecTrackedInfo(context.Context, *QuerySpecTrackedInfoRequest) (*QuerySpecTrackedInfoResponse, error)
	// IprpcProviderRewardEstimation queries for a provider's current IPRPC reward (relative to its serviced CU)
	IprpcProviderRewardEstimation(context.Context, *QueryIprpcProviderRewardEstimationRequest) (*QueryIprpcProviderRewardEstimationResponse, error)
	// IprpcSpecReward queries for a spec's IPRPC reward
	IprpcSpecReward(context.Context, *QueryIprpcSpecRewardRequest) (*QueryIprpcSpecRewardResponse, error)
}

QueryServer is the server API for Query service.

type QueryShowIprpcDataRequest

type QueryShowIprpcDataRequest struct {
}

QueryShowIprpcDataRequest is request type for the Query/ShowIprpcData RPC method.

func (*QueryShowIprpcDataRequest) Descriptor

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

func (*QueryShowIprpcDataRequest) Marshal

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

func (*QueryShowIprpcDataRequest) MarshalTo

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

func (*QueryShowIprpcDataRequest) MarshalToSizedBuffer

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

func (*QueryShowIprpcDataRequest) ProtoMessage

func (*QueryShowIprpcDataRequest) ProtoMessage()

func (*QueryShowIprpcDataRequest) Reset

func (m *QueryShowIprpcDataRequest) Reset()

func (*QueryShowIprpcDataRequest) Size

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

func (*QueryShowIprpcDataRequest) String

func (m *QueryShowIprpcDataRequest) String() string

func (*QueryShowIprpcDataRequest) Unmarshal

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

func (*QueryShowIprpcDataRequest) XXX_DiscardUnknown

func (m *QueryShowIprpcDataRequest) XXX_DiscardUnknown()

func (*QueryShowIprpcDataRequest) XXX_Marshal

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

func (*QueryShowIprpcDataRequest) XXX_Merge

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

func (*QueryShowIprpcDataRequest) XXX_Size

func (m *QueryShowIprpcDataRequest) XXX_Size() int

func (*QueryShowIprpcDataRequest) XXX_Unmarshal

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

type QueryShowIprpcDataResponse

type QueryShowIprpcDataResponse struct {
	MinCost            types.Coin `protobuf:"bytes,1,opt,name=min_cost,json=minCost,proto3" json:"min_cost"`
	IprpcSubscriptions []string   `protobuf:"bytes,2,rep,name=iprpc_subscriptions,json=iprpcSubscriptions,proto3" json:"iprpc_subscriptions,omitempty"`
}

QueryShowIprpcDataResponse is response type for the Query/ShowIprpcData RPC method.

func (*QueryShowIprpcDataResponse) Descriptor

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

func (*QueryShowIprpcDataResponse) GetIprpcSubscriptions

func (m *QueryShowIprpcDataResponse) GetIprpcSubscriptions() []string

func (*QueryShowIprpcDataResponse) GetMinCost

func (m *QueryShowIprpcDataResponse) GetMinCost() types.Coin

func (*QueryShowIprpcDataResponse) Marshal

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

func (*QueryShowIprpcDataResponse) MarshalTo

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

func (*QueryShowIprpcDataResponse) MarshalToSizedBuffer

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

func (*QueryShowIprpcDataResponse) ProtoMessage

func (*QueryShowIprpcDataResponse) ProtoMessage()

func (*QueryShowIprpcDataResponse) Reset

func (m *QueryShowIprpcDataResponse) Reset()

func (*QueryShowIprpcDataResponse) Size

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

func (*QueryShowIprpcDataResponse) String

func (m *QueryShowIprpcDataResponse) String() string

func (*QueryShowIprpcDataResponse) Unmarshal

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

func (*QueryShowIprpcDataResponse) XXX_DiscardUnknown

func (m *QueryShowIprpcDataResponse) XXX_DiscardUnknown()

func (*QueryShowIprpcDataResponse) XXX_Marshal

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

func (*QueryShowIprpcDataResponse) XXX_Merge

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

func (*QueryShowIprpcDataResponse) XXX_Size

func (m *QueryShowIprpcDataResponse) XXX_Size() int

func (*QueryShowIprpcDataResponse) XXX_Unmarshal

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

type QuerySpecTrackedInfoRequest

type QuerySpecTrackedInfoRequest struct {
	ChainId  string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
}

QueryProviderRewardRequest is request type for the Query/ProviderReward RPC method.

func (*QuerySpecTrackedInfoRequest) Descriptor

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

func (*QuerySpecTrackedInfoRequest) GetChainId

func (m *QuerySpecTrackedInfoRequest) GetChainId() string

func (*QuerySpecTrackedInfoRequest) GetProvider

func (m *QuerySpecTrackedInfoRequest) GetProvider() string

func (*QuerySpecTrackedInfoRequest) Marshal

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

func (*QuerySpecTrackedInfoRequest) MarshalTo

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

func (*QuerySpecTrackedInfoRequest) MarshalToSizedBuffer

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

func (*QuerySpecTrackedInfoRequest) ProtoMessage

func (*QuerySpecTrackedInfoRequest) ProtoMessage()

func (*QuerySpecTrackedInfoRequest) Reset

func (m *QuerySpecTrackedInfoRequest) Reset()

func (*QuerySpecTrackedInfoRequest) Size

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

func (*QuerySpecTrackedInfoRequest) String

func (m *QuerySpecTrackedInfoRequest) String() string

func (*QuerySpecTrackedInfoRequest) Unmarshal

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

func (*QuerySpecTrackedInfoRequest) XXX_DiscardUnknown

func (m *QuerySpecTrackedInfoRequest) XXX_DiscardUnknown()

func (*QuerySpecTrackedInfoRequest) XXX_Marshal

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

func (*QuerySpecTrackedInfoRequest) XXX_Merge

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

func (*QuerySpecTrackedInfoRequest) XXX_Size

func (m *QuerySpecTrackedInfoRequest) XXX_Size() int

func (*QuerySpecTrackedInfoRequest) XXX_Unmarshal

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

type QuerySpecTrackedInfoResponse

type QuerySpecTrackedInfoResponse struct {
	Info []BasePayWithIndex `protobuf:"bytes,1,rep,name=info,proto3" json:"info"`
}

QueryProviderRewardResponse is response type for the Query/ProviderReward RPC method.

func (*QuerySpecTrackedInfoResponse) Descriptor

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

func (*QuerySpecTrackedInfoResponse) GetInfo

func (*QuerySpecTrackedInfoResponse) Marshal

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

func (*QuerySpecTrackedInfoResponse) MarshalTo

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

func (*QuerySpecTrackedInfoResponse) MarshalToSizedBuffer

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

func (*QuerySpecTrackedInfoResponse) ProtoMessage

func (*QuerySpecTrackedInfoResponse) ProtoMessage()

func (*QuerySpecTrackedInfoResponse) Reset

func (m *QuerySpecTrackedInfoResponse) Reset()

func (*QuerySpecTrackedInfoResponse) Size

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

func (*QuerySpecTrackedInfoResponse) String

func (*QuerySpecTrackedInfoResponse) Unmarshal

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

func (*QuerySpecTrackedInfoResponse) XXX_DiscardUnknown

func (m *QuerySpecTrackedInfoResponse) XXX_DiscardUnknown()

func (*QuerySpecTrackedInfoResponse) XXX_Marshal

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

func (*QuerySpecTrackedInfoResponse) XXX_Merge

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

func (*QuerySpecTrackedInfoResponse) XXX_Size

func (m *QuerySpecTrackedInfoResponse) XXX_Size() int

func (*QuerySpecTrackedInfoResponse) XXX_Unmarshal

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

type SpecCuType

type SpecCuType struct {
	ProvidersCu []ProviderCuType
	TotalCu     uint64
}

helper struct to track the serviced IPRPC CU for each spec+provider

type SpecEmissionPart

type SpecEmissionPart struct {
	ChainID  string
	Emission sdk.Dec
}

type SpecKeeper

type SpecKeeper interface {
	GetAllChainIDs(ctx sdk.Context) (chainIDs []string)
	GetSpec(ctx sdk.Context, index string) (val spectypes.Spec, found bool)
	IsSpecFoundAndActive(ctx sdk.Context, chainID string) (foundAndActive, found bool, providersType spectypes.Spec_ProvidersTypes)
}

type Specfund

type Specfund struct {
	Spec string                                   `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	Fund github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=fund,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fund"`
}

func (*Specfund) Descriptor

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

func (*Specfund) GetFund

func (*Specfund) GetSpec

func (m *Specfund) GetSpec() string

func (*Specfund) Marshal

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

func (*Specfund) MarshalTo

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

func (*Specfund) MarshalToSizedBuffer

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

func (*Specfund) ProtoMessage

func (*Specfund) ProtoMessage()

func (*Specfund) Reset

func (m *Specfund) Reset()

func (*Specfund) Size

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

func (*Specfund) String

func (m *Specfund) String() string

func (*Specfund) Unmarshal

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

func (*Specfund) XXX_DiscardUnknown

func (m *Specfund) XXX_DiscardUnknown()

func (*Specfund) XXX_Marshal

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

func (*Specfund) XXX_Merge

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

func (*Specfund) XXX_Size

func (m *Specfund) XXX_Size() int

func (*Specfund) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	BondedRatio(ctx sdk.Context) math.LegacyDec
	BondDenom(ctx sdk.Context) string
}

type TimerStoreKeeper

type TimerStoreKeeper interface {
	NewTimerStoreEndBlock(storeKey storetypes.StoreKey, prefix string) *timerstoretypes.TimerStore
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) FundIprpc

func (*UnimplementedMsgServer) SetIprpcData

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) BlockReward

func (*UnimplementedQueryServer) IprpcSpecReward

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Pools

func (*UnimplementedQueryServer) ShowIprpcData

func (*UnimplementedQueryServer) SpecTrackedInfo

Jump to

Keyboard shortcuts

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