types

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 33 Imported by: 4

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	FoundationAccount = "foundation_account"
	TotalRewardPool   = "total_reward_pool"
)
View Source
const (
	EventTypeVolumeReport      = "volume_report"
	EventTypeWithdraw          = "withdraw"
	EventTypeLegacyWithdraw    = "legacy_withdraw"
	EventTypeFoundationDeposit = "foundation_deposit"
	EventTypeSlashing          = "slashing"

	AttributeKeyEpoch               = "epoch"
	AttributeKeyReportReference     = "report_reference"
	AttributeKeyAmount              = "amount"
	AttributeKeyWalletAddress       = "wallet_address"
	AttributeKeyLegacyWalletAddress = "legacy_wallet_address"
	AttributeKeyNodeP2PAddress      = "p2p_address"
	AttributeKeySlashingNodeType    = "slashing_type"
	AttributeKeyNodeSuspended       = "suspend"

	AttributeValueCategory = ModuleName
)

pot module event types

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "pot"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey to be used for routing msgs
	RouterKey = ModuleName

	// QuerierRoute to be used for querier msgs
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgVolumeReport         = "volume_report"
	TypeMsgWithdraw             = "withdraw"
	TypeMsgLegacyWithdraw       = "legacy_withdraw"
	TypeMsgFoundationDeposit    = "foundation_deposit"
	TypeMsgSlashingResourceNode = "slashing_resource_node"
)
View Source
const (
	DefaultBondDenom   = stratos.Wei
	DefaultRewardDenom = stratos.Wei
	DefaultMatureEpoch = 2016
)

DefaultParamSpace Default parameter namespace

View Source
const (
	QueryVolumeReport                   = "query_volume_report"
	QueryIndividualRewardsByReportEpoch = "query_pot_individual_rewards_by_report_epoch"
	QueryRewardsByWalletAddr            = "query_pot_rewards_by_wallet_address"
	QuerySlashingByWalletAddr           = "query_pot_slashing_by_wallet_address"
	QueryPotParams                      = "query_pot_params"
	QueryTotalMinedToken                = "query_total_mined_token"
	QueryCirculationSupply              = "query_circulation_supply"
	QueryTotalRewardByEpoch             = "total-reward"
	QueryDefaultLimit                   = 100
)

Variables

View Source
var (
	ErrInvalid                        = sdkerrors.Register(ModuleName, codeErrInvalid, "error invalid")
	ErrUnknownAccountAddress          = sdkerrors.Register(ModuleName, codeErrUnknownAccountAddress, "account address does not exist")
	ErrOutOfIssuance                  = sdkerrors.Register(ModuleName, codeErrOutOfIssuance, "mining reward reaches the issuance limit")
	ErrWithdrawAmountInvalid          = sdkerrors.Register(ModuleName, codeErrWithdrawAmountInvalid, "withdraw amount is invalid")
	ErrMissingWalletAddress           = sdkerrors.Register(ModuleName, codeErrMissingWalletAddress, "missing wallet address")
	ErrMissingTargetAddress           = sdkerrors.Register(ModuleName, codeErrMissingTargetAddress, "missing target address")
	ErrInsufficientMatureTotal        = sdkerrors.Register(ModuleName, codeErrInsufficientMatureTotal, "insufficient mature total")
	ErrMatureEpoch                    = sdkerrors.Register(ModuleName, codeErrMatureEpoch, "the value of epoch must be positive and greater than its previous one")
	ErrMiningRewardParams             = sdkerrors.Register(ModuleName, codeErrMiningRewardParams, "invalid mining reward param")
	ErrCommunityTax                   = sdkerrors.Register(ModuleName, codeErrCommunityTax, "invalid community tax param")
	ErrInitialTotalSupply             = sdkerrors.Register(ModuleName, codeErrInitialTotalSupply, "invalid initial total supply param")
	ErrEmptyFromAddr                  = sdkerrors.Register(ModuleName, codeErrEmptyFromAddr, "missing from address")
	ErrEmptyReporterAddr              = sdkerrors.Register(ModuleName, codeErrEmptyReporterAddr, "missing reporter address")
	ErrEmptyWalletVolumes             = sdkerrors.Register(ModuleName, codeErrEmptyWalletVolumes, "wallet volumes list empty")
	ErrEpochNotPositive               = sdkerrors.Register(ModuleName, codeErrEpochNotPositive, "report epoch is not positive")
	ErrEmptyReportReference           = sdkerrors.Register(ModuleName, codeErrEmptyReportReference, "missing report reference")
	ErrReporterOwnerAddr              = sdkerrors.Register(ModuleName, codeErrReporterOwnerAddr, "invalid reporter owner address")
	ErrNegativeVolume                 = sdkerrors.Register(ModuleName, codeErrNegativeVolume, "report volume is negative")
	ErrFoundationDepositAmountInvalid = sdkerrors.Register(ModuleName, codeErrFoundationDepositAmountInvalid, "foundation deposit amount is invalid")
	ErrBLSSignatureInvalid            = sdkerrors.Register(ModuleName, codeErrBLSSignatureInvalid, "BLS signature is invalid")
	ErrBLSTxDataInvalid               = sdkerrors.Register(ModuleName, codeErrBLSTxDataInvalid, "BLS signature txData is invalid")
	ErrBLSPubkeysInvalid              = sdkerrors.Register(ModuleName, codeErrBLSPubkeysInvalid, "BLS signature pubkeys are invalid")
	ErrBLSVerifyFailed                = sdkerrors.Register(ModuleName, codeErrBLSVerifyFailed, "BLS signature verify failed")
	ErrBLSNotReachThreshold           = sdkerrors.Register(ModuleName, codeErrBLSNotReachThreshold, "BLS signed meta-nodes does not reach the threshold")
	ErrReporterAddress                = sdkerrors.Register(ModuleName, codeErrReporterAddress, "invalid reporter address")
	ErrInvalidAmount                  = sdkerrors.Register(ModuleName, codeErrInvalidAmount, "invalid amount")
	ErrCannotFindReport               = sdkerrors.Register(ModuleName, codeErrCannotFindReport, "Can not find report")
	ErrCannotFindReward               = sdkerrors.Register(ModuleName, codeErrCannotFindReward, "Can not find Pot rewards")
	ErrInvalidAddress                 = sdkerrors.Register(ModuleName, codeErrInvalidAddress, "invalid address")
	ErrInvalidDenom                   = sdkerrors.Register(ModuleName, codeErrInvalidDenom, "invalid denomination")
	ErrWithdrawFailure                = sdkerrors.Register(ModuleName, codeErrWithdrawFailure, "failure during withdraw")
	ErrFoundationDepositFailure       = sdkerrors.Register(ModuleName, codeErrFoundationDepositFailure, "failure during foundation deposit")
	ErrSlashingResourceNodeFailure    = sdkerrors.Register(ModuleName, codeErrSlashingResourceNodeFailure, "failure during slashing resource node")
	ErrVolumeReport                   = sdkerrors.Register(ModuleName, codeErrVolumeReport, "volume report failed")
	ErrLegacyWithdrawFailure          = sdkerrors.Register(ModuleName, codeErrLegacyWithdrawFailure, "failure during legacyWithdraw")
	ErrReporterAddressOrOwner         = sdkerrors.Register(ModuleName, codeErrReporterAddressOrOwner, "invalid reporter address or owner address")
)
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 (
	TotalMinedTokensKeyPrefix     = []byte{0x01}
	LastDistributedEpochKeyPrefix = []byte{0x02}
	IndividualRewardKeyPrefix     = []byte{0x03} // key: prefix{address}_{epoch}, the amount that is matured at {epoch}
	MatureTotalRewardKeyPrefix    = []byte{0x04} // key: prefix{address}
	ImmatureTotalRewardKeyPrefix  = []byte{0x05} // key: prefix{address}
	VolumeReportStoreKeyPrefix    = []byte{0x06} // VolumeReportStoreKeyPrefix prefix for volumeReport store
	MaturedEpochKeyPrefix         = []byte{0x07}
)
View Source
var (
	KeyBondDenom          = []byte("BondDenom")
	KeyRewardDenom        = []byte("RewardDenom")
	KeyMatureEpoch        = []byte("MatureEpoch")
	KeyMiningRewardParams = []byte("MiningRewardParams")
	KeyCommunityTax       = []byte("CommunityTax")
	KeyInitialTotalSupply = []byte("InitialTotalSupply")

	DefaultCommunityTax       = sdk.NewDecWithPrec(2, 2) // 2%
	DefaultInitialTotalSupply = sdk.NewCoin(DefaultBondDenom,
		sdk.NewInt(1e8).Mul(sdk.NewInt(stratos.StosToWei)),
	) //100,000,000 stos
)

Parameter store keys

View Source
var (
	ErrInvalidLengthPot        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPot          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPot = 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 ModuleCdc *codec.LegacyAmino

ModuleCdc references the global x/pot module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding as Amino is still used for that purpose.

The actual codec used for serialization should be provided to x/pot and defined at the application level.

Functions

func GetImmatureTotalRewardKey

func GetImmatureTotalRewardKey(acc sdk.AccAddress) []byte

GetImmatureTotalRewardKey prefix{address}

func GetIndividualRewardIteratorKey added in v0.7.0

func GetIndividualRewardIteratorKey(epoch sdk.Int) []byte

func GetIndividualRewardKey

func GetIndividualRewardKey(acc sdk.AccAddress, epoch sdk.Int) []byte

GetIndividualRewardKey prefix{epoch}_{account}, the amount that is matured at {epoch}

func GetMatureTotalRewardKey

func GetMatureTotalRewardKey(acc sdk.AccAddress) []byte

GetMatureTotalRewardKey prefix{address}

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for pot module

func RegisterInterfaces added in v0.8.0

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the x/register interfaces types with the interface registry

func RegisterLegacyAminoCodec added in v0.8.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec RegisterCodec registers concrete types on codec

func RegisterMsgHandler added in v0.8.0

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

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

func RegisterMsgHandlerClient added in v0.8.0

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

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

func RegisterMsgHandlerFromEndpoint added in v0.8.0

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

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

func RegisterMsgHandlerServer added in v0.8.0

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer added in v0.8.0

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.8.0

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 added in v0.8.0

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 added in v0.8.0

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 added in v0.8.0

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.8.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis validates the pot genesis parameters

func VolumeReportStoreKey

func VolumeReportStoreKey(epoch sdk.Int) []byte

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI // only used for simulation
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper (noalias)

type BLSSignatureInfo added in v0.6.0

type BLSSignatureInfo struct {
	PubKeys   [][]byte `protobuf:"bytes,1,rep,name=pub_keys,json=pubKeys,proto3" json:"pub_keys" yaml:"pub_keys"`
	Signature []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature" yaml:"signature"`
	TxData    []byte   `protobuf:"bytes,3,opt,name=txData,proto3" json:"tx_data" yaml:"tx_data"`
}

func NewBLSSignatureInfo added in v0.6.0

func NewBLSSignatureInfo(pubKeys [][]byte, signature []byte, txData []byte) BLSSignatureInfo

func (*BLSSignatureInfo) Descriptor added in v0.8.0

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

func (*BLSSignatureInfo) GetPubKeys added in v0.8.0

func (m *BLSSignatureInfo) GetPubKeys() [][]byte

func (*BLSSignatureInfo) GetSignature added in v0.8.0

func (m *BLSSignatureInfo) GetSignature() []byte

func (*BLSSignatureInfo) GetTxData added in v0.8.0

func (m *BLSSignatureInfo) GetTxData() []byte

func (*BLSSignatureInfo) Marshal added in v0.8.0

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

func (*BLSSignatureInfo) MarshalTo added in v0.8.0

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

func (*BLSSignatureInfo) MarshalToSizedBuffer added in v0.8.0

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

func (*BLSSignatureInfo) ProtoMessage added in v0.8.0

func (*BLSSignatureInfo) ProtoMessage()

func (*BLSSignatureInfo) Reset added in v0.8.0

func (m *BLSSignatureInfo) Reset()

func (*BLSSignatureInfo) Size added in v0.8.0

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

func (*BLSSignatureInfo) String added in v0.8.0

func (m *BLSSignatureInfo) String() string

func (*BLSSignatureInfo) Unmarshal added in v0.8.0

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

func (*BLSSignatureInfo) XXX_DiscardUnknown added in v0.8.0

func (m *BLSSignatureInfo) XXX_DiscardUnknown()

func (*BLSSignatureInfo) XXX_Marshal added in v0.8.0

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

func (*BLSSignatureInfo) XXX_Merge added in v0.8.0

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

func (*BLSSignatureInfo) XXX_Size added in v0.8.0

func (m *BLSSignatureInfo) XXX_Size() int

func (*BLSSignatureInfo) XXX_Unmarshal added in v0.8.0

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

type BankKeeper added in v0.8.0

type BankKeeper interface {
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BaseBLSSignatureInfo added in v0.8.0

type BaseBLSSignatureInfo struct {
	PubKeys   []string `json:"pub_keys" yaml:"pub_keys"`
	Signature string   `json:"signature" yaml:"signature"`
	TxData    string   `json:"tx_data" yaml:"tx_data"`
}

type DistrKeeper added in v0.9.0

type DistrKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
	GetFeePool(ctx sdk.Context) (feePool distrtypes.FeePool)
}

type DistributeGoal

type DistributeGoal struct {
	StakeMiningRewardToValidator  sdk.Coin `json:"stake_mining_reward_to_validator" yaml:"stake_mining_reward_to_validator"`   // 20% mining reward
	StakeTrafficRewardToValidator sdk.Coin `json:"stake_traffic_reward_to_validator" yaml:"stake_traffic_reward_to_validator"` // 20% traffic reward
	MiningRewardToMetaNode        sdk.Coin `json:"mining_reward_to_meta_node" yaml:"mining_reward_to_meta_node"`               // 20% of mining reward, distribute equally
	TrafficRewardToMetaNode       sdk.Coin `json:"traffic_reward_to_meta_node" yaml:"traffic_reward_to_meta_node"`             // 20% of traffic reward, distribute equally
	MiningRewardToResourceNode    sdk.Coin `json:"mining_reward_to_resource_node" yaml:"mining_reward_to_resource_node"`       // 60% of mining reward, distribute by traffic contribution
	TrafficRewardToResourceNode   sdk.Coin `json:"traffic_reward_to_resource_node" yaml:"traffic_reward_to_resource_node"`     // 60% of traffic reward, distribute by traffic contribution
}

func InitDistributeGoal

func InitDistributeGoal() DistributeGoal

func NewDistributeGoal

func NewDistributeGoal(
	stakeMiningRewardToValidator sdk.Coin, stakeTrafficRewardToValidator sdk.Coin, miningRewardToMetaNode sdk.Coin,
	trafficRewardToMetaNode sdk.Coin, miningRewardToResourceNode sdk.Coin, trafficRewardToResourceNode sdk.Coin) DistributeGoal

func (DistributeGoal) AddMiningRewardToMetaNode added in v0.9.0

func (d DistributeGoal) AddMiningRewardToMetaNode(reward sdk.Coin) DistributeGoal

func (DistributeGoal) AddMiningRewardToResourceNode added in v0.9.0

func (d DistributeGoal) AddMiningRewardToResourceNode(reward sdk.Coin) DistributeGoal

func (DistributeGoal) AddStakeMiningRewardToValidator added in v0.9.0

func (d DistributeGoal) AddStakeMiningRewardToValidator(reward sdk.Coin) DistributeGoal

func (DistributeGoal) AddStakeTrafficRewardToValidator added in v0.9.0

func (d DistributeGoal) AddStakeTrafficRewardToValidator(reward sdk.Coin) DistributeGoal

func (DistributeGoal) AddTrafficRewardToMetaNode added in v0.9.0

func (d DistributeGoal) AddTrafficRewardToMetaNode(reward sdk.Coin) DistributeGoal

func (DistributeGoal) AddTrafficRewardToResourceNode added in v0.9.0

func (d DistributeGoal) AddTrafficRewardToResourceNode(reward sdk.Coin) DistributeGoal

func (DistributeGoal) String

func (d DistributeGoal) String() string

String returns a human readable string representation of a Reward.

type GenesisState

type GenesisState struct {
	Params               Params                                 `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
	TotalMinedToken      types.Coin                             `protobuf:"bytes,2,opt,name=total_mined_token,json=totalMinedToken,proto3" json:"total_mined_token" yaml:"total_mined_token"`
	LastDistributedEpoch github_com_cosmos_cosmos_sdk_types.Int `` /* 193-byte string literal not displayed */
	ImmatureTotalInfo    []ImmatureTotal                        `` /* 131-byte string literal not displayed */
	MatureTotalInfo      []MatureTotal                          `protobuf:"bytes,5,rep,name=mature_total_info,json=matureTotalInfo,proto3" json:"mature_total_info" yaml:"mature_total_info"`
	IndividualRewardInfo []Reward                               `` /* 143-byte string literal not displayed */
	MaturedEpoch         github_com_cosmos_cosmos_sdk_types.Int `` /* 158-byte string literal not displayed */
}

GenesisState defines the register module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState - default GenesisState used by Cosmos Hub

func NewGenesisState

func NewGenesisState(params Params, totalMinedToken sdk.Coin, lastDistributedEpoch sdk.Int,
	immatureTotalInfo []ImmatureTotal, matureTotalInfo []MatureTotal, individualRewardInfo []Reward,
	maturedEpoch sdk.Int,
) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor added in v0.8.0

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

func (*GenesisState) GetImmatureTotalInfo added in v0.8.0

func (m *GenesisState) GetImmatureTotalInfo() []ImmatureTotal

func (*GenesisState) GetIndividualRewardInfo added in v0.8.0

func (m *GenesisState) GetIndividualRewardInfo() []Reward

func (*GenesisState) GetMatureTotalInfo added in v0.8.0

func (m *GenesisState) GetMatureTotalInfo() []MatureTotal

func (*GenesisState) GetParams added in v0.8.0

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetTotalMinedToken added in v0.8.0

func (m *GenesisState) GetTotalMinedToken() types.Coin

func (*GenesisState) Marshal added in v0.8.0

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

func (*GenesisState) MarshalTo added in v0.8.0

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

func (*GenesisState) MarshalToSizedBuffer added in v0.8.0

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

func (*GenesisState) ProtoMessage added in v0.8.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.8.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.8.0

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

func (*GenesisState) String added in v0.8.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.8.0

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

func (*GenesisState) XXX_DiscardUnknown added in v0.8.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.8.0

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

func (*GenesisState) XXX_Merge added in v0.8.0

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

func (*GenesisState) XXX_Size added in v0.8.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.8.0

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

type ImmatureTotal added in v0.7.0

type ImmatureTotal struct {
	WalletAddress string                                   `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"`
	Value         github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=value,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"value"`
}

func NewImmatureTotal added in v0.7.0

func NewImmatureTotal(walletAddress sdk.AccAddress, value sdk.Coins) ImmatureTotal

func (*ImmatureTotal) Descriptor added in v0.8.0

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

func (*ImmatureTotal) GetValue added in v0.8.0

func (*ImmatureTotal) GetWalletAddress added in v0.8.0

func (m *ImmatureTotal) GetWalletAddress() string

func (*ImmatureTotal) Marshal added in v0.8.0

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

func (*ImmatureTotal) MarshalTo added in v0.8.0

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

func (*ImmatureTotal) MarshalToSizedBuffer added in v0.8.0

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

func (*ImmatureTotal) ProtoMessage added in v0.8.0

func (*ImmatureTotal) ProtoMessage()

func (*ImmatureTotal) Reset added in v0.8.0

func (m *ImmatureTotal) Reset()

func (*ImmatureTotal) Size added in v0.8.0

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

func (*ImmatureTotal) String added in v0.8.0

func (m *ImmatureTotal) String() string

func (*ImmatureTotal) Unmarshal added in v0.8.0

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

func (*ImmatureTotal) XXX_DiscardUnknown added in v0.8.0

func (m *ImmatureTotal) XXX_DiscardUnknown()

func (*ImmatureTotal) XXX_Marshal added in v0.8.0

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

func (*ImmatureTotal) XXX_Merge added in v0.8.0

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

func (*ImmatureTotal) XXX_Size added in v0.8.0

func (m *ImmatureTotal) XXX_Size() int

func (*ImmatureTotal) XXX_Unmarshal added in v0.8.0

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

type MatureTotal added in v0.7.0

type MatureTotal struct {
	WalletAddress string                                   `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"`
	Value         github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=value,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"value"`
}

func NewMatureTotal added in v0.7.0

func NewMatureTotal(walletAddress sdk.AccAddress, value sdk.Coins) MatureTotal

func (*MatureTotal) Descriptor added in v0.8.0

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

func (*MatureTotal) GetValue added in v0.8.0

func (*MatureTotal) GetWalletAddress added in v0.8.0

func (m *MatureTotal) GetWalletAddress() string

func (*MatureTotal) Marshal added in v0.8.0

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

func (*MatureTotal) MarshalTo added in v0.8.0

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

func (*MatureTotal) MarshalToSizedBuffer added in v0.8.0

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

func (*MatureTotal) ProtoMessage added in v0.8.0

func (*MatureTotal) ProtoMessage()

func (*MatureTotal) Reset added in v0.8.0

func (m *MatureTotal) Reset()

func (*MatureTotal) Size added in v0.8.0

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

func (*MatureTotal) String added in v0.8.0

func (m *MatureTotal) String() string

func (*MatureTotal) Unmarshal added in v0.8.0

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

func (*MatureTotal) XXX_DiscardUnknown added in v0.8.0

func (m *MatureTotal) XXX_DiscardUnknown()

func (*MatureTotal) XXX_Marshal added in v0.8.0

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

func (*MatureTotal) XXX_Merge added in v0.8.0

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

func (*MatureTotal) XXX_Size added in v0.8.0

func (m *MatureTotal) XXX_Size() int

func (*MatureTotal) XXX_Unmarshal added in v0.8.0

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

type MiningRewardParam

type MiningRewardParam struct {
	TotalMinedValveStart       types.Coin                             `` /* 146-byte string literal not displayed */
	TotalMinedValveEnd         types.Coin                             `` /* 138-byte string literal not displayed */
	MiningReward               types.Coin                             `protobuf:"bytes,3,opt,name=mining_reward,json=miningReward,proto3" json:"mining_reward" yaml:"mining_reward"`
	BlockChainPercentageInBp   github_com_cosmos_cosmos_sdk_types.Int `` /* 215-byte string literal not displayed */
	ResourceNodePercentageInBp github_com_cosmos_cosmos_sdk_types.Int `` /* 223-byte string literal not displayed */
	MetaNodePercentageInBp     github_com_cosmos_cosmos_sdk_types.Int `` /* 207-byte string literal not displayed */
}

func NewMiningRewardParam

func NewMiningRewardParam(totalMinedValveStart sdk.Coin, totalMinedValveEnd sdk.Coin, miningReward sdk.Coin,
	resourceNodePercentageInBp sdk.Int, metaNodePercentageInBp sdk.Int, blockChainPercentageInBp sdk.Int) MiningRewardParam

func (*MiningRewardParam) Descriptor added in v0.8.0

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

func (*MiningRewardParam) GetMiningReward added in v0.8.0

func (m *MiningRewardParam) GetMiningReward() types.Coin

func (*MiningRewardParam) GetTotalMinedValveEnd added in v0.8.0

func (m *MiningRewardParam) GetTotalMinedValveEnd() types.Coin

func (*MiningRewardParam) GetTotalMinedValveStart added in v0.8.0

func (m *MiningRewardParam) GetTotalMinedValveStart() types.Coin

func (*MiningRewardParam) Marshal added in v0.8.0

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

func (*MiningRewardParam) MarshalTo added in v0.8.0

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

func (*MiningRewardParam) MarshalToSizedBuffer added in v0.8.0

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

func (*MiningRewardParam) ProtoMessage added in v0.8.0

func (*MiningRewardParam) ProtoMessage()

func (*MiningRewardParam) Reset added in v0.8.0

func (m *MiningRewardParam) Reset()

func (*MiningRewardParam) Size added in v0.8.0

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

func (*MiningRewardParam) String added in v0.8.0

func (m *MiningRewardParam) String() string

func (*MiningRewardParam) Unmarshal added in v0.8.0

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

func (*MiningRewardParam) XXX_DiscardUnknown added in v0.8.0

func (m *MiningRewardParam) XXX_DiscardUnknown()

func (*MiningRewardParam) XXX_Marshal added in v0.8.0

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

func (*MiningRewardParam) XXX_Merge added in v0.8.0

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

func (*MiningRewardParam) XXX_Size added in v0.8.0

func (m *MiningRewardParam) XXX_Size() int

func (*MiningRewardParam) XXX_Unmarshal added in v0.8.0

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

type MsgClient added in v0.8.0

type MsgClient interface {
	HandleMsgVolumeReport(ctx context.Context, in *MsgVolumeReport, opts ...grpc.CallOption) (*MsgVolumeReportResponse, error)
	HandleMsgWithdraw(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, error)
	HandleMsgLegacyWithdraw(ctx context.Context, in *MsgLegacyWithdraw, opts ...grpc.CallOption) (*MsgLegacyWithdrawResponse, error)
	HandleMsgFoundationDeposit(ctx context.Context, in *MsgFoundationDeposit, opts ...grpc.CallOption) (*MsgFoundationDepositResponse, error)
	HandleMsgSlashingResourceNode(ctx context.Context, in *MsgSlashingResourceNode, opts ...grpc.CallOption) (*MsgSlashingResourceNodeResponse, 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 added in v0.8.0

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgFoundationDeposit added in v0.5.0

type MsgFoundationDeposit struct {
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"`
	From   string                                   `protobuf:"bytes,2,opt,name=from,proto3" json:"from" yaml:"from"`
}

MsgFoundationDeposit - encapsulates an FoundationDeposit transaction as an SDK message

func NewMsgFoundationDeposit added in v0.5.0

func NewMsgFoundationDeposit(amount sdk.Coins, from sdk.AccAddress) *MsgFoundationDeposit

func (*MsgFoundationDeposit) Descriptor added in v0.8.0

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

func (*MsgFoundationDeposit) GetAmount added in v0.8.0

func (*MsgFoundationDeposit) GetFrom added in v0.8.0

func (m *MsgFoundationDeposit) GetFrom() string

func (MsgFoundationDeposit) GetSignBytes added in v0.5.0

func (msg MsgFoundationDeposit) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgFoundationDeposit) GetSigners added in v0.5.0

func (msg MsgFoundationDeposit) GetSigners() []sdk.AccAddress

GetSigners Implement

func (*MsgFoundationDeposit) Marshal added in v0.8.0

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

func (*MsgFoundationDeposit) MarshalTo added in v0.8.0

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

func (*MsgFoundationDeposit) MarshalToSizedBuffer added in v0.8.0

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

func (*MsgFoundationDeposit) ProtoMessage added in v0.8.0

func (*MsgFoundationDeposit) ProtoMessage()

func (*MsgFoundationDeposit) Reset added in v0.8.0

func (m *MsgFoundationDeposit) Reset()

func (MsgFoundationDeposit) Route added in v0.5.0

func (msg MsgFoundationDeposit) Route() string

Route Implement

func (*MsgFoundationDeposit) Size added in v0.8.0

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

func (*MsgFoundationDeposit) String added in v0.8.0

func (m *MsgFoundationDeposit) String() string

func (MsgFoundationDeposit) Type added in v0.5.0

func (msg MsgFoundationDeposit) Type() string

Type Implement

func (*MsgFoundationDeposit) Unmarshal added in v0.8.0

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

func (MsgFoundationDeposit) ValidateBasic added in v0.5.0

func (msg MsgFoundationDeposit) ValidateBasic() error

ValidateBasic validity check for the AnteHandler

func (*MsgFoundationDeposit) XXX_DiscardUnknown added in v0.8.0

func (m *MsgFoundationDeposit) XXX_DiscardUnknown()

func (*MsgFoundationDeposit) XXX_Marshal added in v0.8.0

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

func (*MsgFoundationDeposit) XXX_Merge added in v0.8.0

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

func (*MsgFoundationDeposit) XXX_Size added in v0.8.0

func (m *MsgFoundationDeposit) XXX_Size() int

func (*MsgFoundationDeposit) XXX_Unmarshal added in v0.8.0

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

type MsgFoundationDepositResponse added in v0.8.0

type MsgFoundationDepositResponse struct {
}

MsgFoundationDepositResponse defines the MsgFoundationDeposit response type

func (*MsgFoundationDepositResponse) Descriptor added in v0.8.0

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

func (*MsgFoundationDepositResponse) Marshal added in v0.8.0

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

func (*MsgFoundationDepositResponse) MarshalTo added in v0.8.0

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

func (*MsgFoundationDepositResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*MsgFoundationDepositResponse) ProtoMessage added in v0.8.0

func (*MsgFoundationDepositResponse) ProtoMessage()

func (*MsgFoundationDepositResponse) Reset added in v0.8.0

func (m *MsgFoundationDepositResponse) Reset()

func (*MsgFoundationDepositResponse) Size added in v0.8.0

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

func (*MsgFoundationDepositResponse) String added in v0.8.0

func (*MsgFoundationDepositResponse) Unmarshal added in v0.8.0

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

func (*MsgFoundationDepositResponse) XXX_DiscardUnknown added in v0.8.0

func (m *MsgFoundationDepositResponse) XXX_DiscardUnknown()

func (*MsgFoundationDepositResponse) XXX_Marshal added in v0.8.0

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

func (*MsgFoundationDepositResponse) XXX_Merge added in v0.8.0

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

func (*MsgFoundationDepositResponse) XXX_Size added in v0.8.0

func (m *MsgFoundationDepositResponse) XXX_Size() int

func (*MsgFoundationDepositResponse) XXX_Unmarshal added in v0.8.0

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

type MsgLegacyWithdraw added in v0.9.0

type MsgLegacyWithdraw struct {
	Amount        github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"`
	From          string                                   `protobuf:"bytes,2,opt,name=from,proto3" json:"from" yaml:"from"`
	TargetAddress string                                   `protobuf:"bytes,3,opt,name=target_address,json=targetAddress,proto3" json:"target_address" yaml:"target_address"`
}

MsgLegacyWithdraw encapsulates an legacyWithdraw transaction as an SDK message.

func NewMsgLegacyWithdraw added in v0.9.0

func NewMsgLegacyWithdraw(amount sdk.Coins, from sdk.AccAddress, targetAddress sdk.AccAddress) *MsgLegacyWithdraw

func (*MsgLegacyWithdraw) Descriptor added in v0.9.0

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

func (*MsgLegacyWithdraw) GetAmount added in v0.9.0

func (*MsgLegacyWithdraw) GetFrom added in v0.9.0

func (m *MsgLegacyWithdraw) GetFrom() string

func (MsgLegacyWithdraw) GetSignBytes added in v0.9.0

func (msg MsgLegacyWithdraw) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgLegacyWithdraw) GetSigners added in v0.9.0

func (msg MsgLegacyWithdraw) GetSigners() []sdk.AccAddress

GetSigners Implement

func (*MsgLegacyWithdraw) GetTargetAddress added in v0.9.0

func (m *MsgLegacyWithdraw) GetTargetAddress() string

func (*MsgLegacyWithdraw) Marshal added in v0.9.0

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

func (*MsgLegacyWithdraw) MarshalTo added in v0.9.0

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

func (*MsgLegacyWithdraw) MarshalToSizedBuffer added in v0.9.0

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

func (*MsgLegacyWithdraw) ProtoMessage added in v0.9.0

func (*MsgLegacyWithdraw) ProtoMessage()

func (*MsgLegacyWithdraw) Reset added in v0.9.0

func (m *MsgLegacyWithdraw) Reset()

func (MsgLegacyWithdraw) Route added in v0.9.0

func (msg MsgLegacyWithdraw) Route() string

Route Implement

func (*MsgLegacyWithdraw) Size added in v0.9.0

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

func (*MsgLegacyWithdraw) String added in v0.9.0

func (m *MsgLegacyWithdraw) String() string

func (MsgLegacyWithdraw) Type added in v0.9.0

func (msg MsgLegacyWithdraw) Type() string

Type Implement

func (*MsgLegacyWithdraw) Unmarshal added in v0.9.0

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

func (MsgLegacyWithdraw) ValidateBasic added in v0.9.0

func (msg MsgLegacyWithdraw) ValidateBasic() error

ValidateBasic validity check for the AnteHandler

func (*MsgLegacyWithdraw) XXX_DiscardUnknown added in v0.9.0

func (m *MsgLegacyWithdraw) XXX_DiscardUnknown()

func (*MsgLegacyWithdraw) XXX_Marshal added in v0.9.0

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

func (*MsgLegacyWithdraw) XXX_Merge added in v0.9.0

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

func (*MsgLegacyWithdraw) XXX_Size added in v0.9.0

func (m *MsgLegacyWithdraw) XXX_Size() int

func (*MsgLegacyWithdraw) XXX_Unmarshal added in v0.9.0

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

type MsgLegacyWithdrawResponse added in v0.9.0

type MsgLegacyWithdrawResponse struct {
}

MsgLegacyWithdrawResponse defines the Msg/MsgWithdraw response type.

func (*MsgLegacyWithdrawResponse) Descriptor added in v0.9.0

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

func (*MsgLegacyWithdrawResponse) Marshal added in v0.9.0

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

func (*MsgLegacyWithdrawResponse) MarshalTo added in v0.9.0

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

func (*MsgLegacyWithdrawResponse) MarshalToSizedBuffer added in v0.9.0

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

func (*MsgLegacyWithdrawResponse) ProtoMessage added in v0.9.0

func (*MsgLegacyWithdrawResponse) ProtoMessage()

func (*MsgLegacyWithdrawResponse) Reset added in v0.9.0

func (m *MsgLegacyWithdrawResponse) Reset()

func (*MsgLegacyWithdrawResponse) Size added in v0.9.0

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

func (*MsgLegacyWithdrawResponse) String added in v0.9.0

func (m *MsgLegacyWithdrawResponse) String() string

func (*MsgLegacyWithdrawResponse) Unmarshal added in v0.9.0

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

func (*MsgLegacyWithdrawResponse) XXX_DiscardUnknown added in v0.9.0

func (m *MsgLegacyWithdrawResponse) XXX_DiscardUnknown()

func (*MsgLegacyWithdrawResponse) XXX_Marshal added in v0.9.0

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

func (*MsgLegacyWithdrawResponse) XXX_Merge added in v0.9.0

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

func (*MsgLegacyWithdrawResponse) XXX_Size added in v0.9.0

func (m *MsgLegacyWithdrawResponse) XXX_Size() int

func (*MsgLegacyWithdrawResponse) XXX_Unmarshal added in v0.9.0

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

type MsgServer added in v0.8.0

type MsgServer interface {
	HandleMsgVolumeReport(context.Context, *MsgVolumeReport) (*MsgVolumeReportResponse, error)
	HandleMsgWithdraw(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error)
	HandleMsgLegacyWithdraw(context.Context, *MsgLegacyWithdraw) (*MsgLegacyWithdrawResponse, error)
	HandleMsgFoundationDeposit(context.Context, *MsgFoundationDeposit) (*MsgFoundationDepositResponse, error)
	HandleMsgSlashingResourceNode(context.Context, *MsgSlashingResourceNode) (*MsgSlashingResourceNodeResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSlashingResourceNode added in v0.6.2

type MsgSlashingResourceNode struct {
	Reporters      []string                                `protobuf:"bytes,1,rep,name=reporters,proto3" json:"reporters" yaml:"reporters"`
	ReporterOwner  []string                                `protobuf:"bytes,2,rep,name=reporter_owner,json=reporterOwner,proto3" json:"reporter_owner" yaml:"reporter_owner"`
	NetworkAddress string                                  `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"`
	WalletAddress  string                                  `protobuf:"bytes,4,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"`
	Slashing       *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=slashing,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"slashing" yaml:"slashing"`
	Suspend        bool                                    `protobuf:"varint,6,opt,name=suspend,proto3" json:"suspend" yaml:"suspend"`
}

MsgRemoveMetaNode - encapsulates an MsgRemoveMetaNode transaction as an SDK message

func NewMsgSlashingResourceNode added in v0.6.2

func NewMsgSlashingResourceNode(reporters []stratos.SdsAddress, reporterOwner []sdk.AccAddress,
	networkAddress stratos.SdsAddress, walletAddress sdk.AccAddress, slashing sdk.Int, suspend bool) *MsgSlashingResourceNode

func (*MsgSlashingResourceNode) Descriptor added in v0.8.0

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

func (*MsgSlashingResourceNode) GetNetworkAddress added in v0.8.0

func (m *MsgSlashingResourceNode) GetNetworkAddress() string

func (*MsgSlashingResourceNode) GetReporterOwner added in v0.8.0

func (m *MsgSlashingResourceNode) GetReporterOwner() []string

func (*MsgSlashingResourceNode) GetReporters added in v0.8.0

func (m *MsgSlashingResourceNode) GetReporters() []string

func (MsgSlashingResourceNode) GetSignBytes added in v0.6.2

func (m MsgSlashingResourceNode) GetSignBytes() []byte

func (MsgSlashingResourceNode) GetSigners added in v0.6.2

func (m MsgSlashingResourceNode) GetSigners() []sdk.AccAddress

func (*MsgSlashingResourceNode) GetSuspend added in v0.8.0

func (m *MsgSlashingResourceNode) GetSuspend() bool

func (*MsgSlashingResourceNode) GetWalletAddress added in v0.8.0

func (m *MsgSlashingResourceNode) GetWalletAddress() string

func (*MsgSlashingResourceNode) Marshal added in v0.8.0

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

func (*MsgSlashingResourceNode) MarshalTo added in v0.8.0

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

func (*MsgSlashingResourceNode) MarshalToSizedBuffer added in v0.8.0

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

func (*MsgSlashingResourceNode) ProtoMessage added in v0.8.0

func (*MsgSlashingResourceNode) ProtoMessage()

func (*MsgSlashingResourceNode) Reset added in v0.8.0

func (m *MsgSlashingResourceNode) Reset()

func (MsgSlashingResourceNode) Route added in v0.6.2

func (m MsgSlashingResourceNode) Route() string

func (*MsgSlashingResourceNode) Size added in v0.8.0

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

func (*MsgSlashingResourceNode) String added in v0.8.0

func (m *MsgSlashingResourceNode) String() string

func (MsgSlashingResourceNode) Type added in v0.6.2

func (*MsgSlashingResourceNode) Unmarshal added in v0.8.0

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

func (MsgSlashingResourceNode) ValidateBasic added in v0.6.2

func (m MsgSlashingResourceNode) ValidateBasic() error

func (*MsgSlashingResourceNode) XXX_DiscardUnknown added in v0.8.0

func (m *MsgSlashingResourceNode) XXX_DiscardUnknown()

func (*MsgSlashingResourceNode) XXX_Marshal added in v0.8.0

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

func (*MsgSlashingResourceNode) XXX_Merge added in v0.8.0

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

func (*MsgSlashingResourceNode) XXX_Size added in v0.8.0

func (m *MsgSlashingResourceNode) XXX_Size() int

func (*MsgSlashingResourceNode) XXX_Unmarshal added in v0.8.0

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

type MsgSlashingResourceNodeResponse added in v0.8.0

type MsgSlashingResourceNodeResponse struct {
}

MsgSlashingResourceNodeResponse defines the Msg/MsgSlashingResourceNode response type.

func (*MsgSlashingResourceNodeResponse) Descriptor added in v0.8.0

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

func (*MsgSlashingResourceNodeResponse) Marshal added in v0.8.0

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

func (*MsgSlashingResourceNodeResponse) MarshalTo added in v0.8.0

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

func (*MsgSlashingResourceNodeResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*MsgSlashingResourceNodeResponse) ProtoMessage added in v0.8.0

func (*MsgSlashingResourceNodeResponse) ProtoMessage()

func (*MsgSlashingResourceNodeResponse) Reset added in v0.8.0

func (*MsgSlashingResourceNodeResponse) Size added in v0.8.0

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

func (*MsgSlashingResourceNodeResponse) String added in v0.8.0

func (*MsgSlashingResourceNodeResponse) Unmarshal added in v0.8.0

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

func (*MsgSlashingResourceNodeResponse) XXX_DiscardUnknown added in v0.8.0

func (m *MsgSlashingResourceNodeResponse) XXX_DiscardUnknown()

func (*MsgSlashingResourceNodeResponse) XXX_Marshal added in v0.8.0

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

func (*MsgSlashingResourceNodeResponse) XXX_Merge added in v0.8.0

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

func (*MsgSlashingResourceNodeResponse) XXX_Size added in v0.8.0

func (m *MsgSlashingResourceNodeResponse) XXX_Size() int

func (*MsgSlashingResourceNodeResponse) XXX_Unmarshal added in v0.8.0

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

type MsgVolumeReport

type MsgVolumeReport struct {
	WalletVolumes   []SingleWalletVolume                   `protobuf:"bytes,1,rep,name=wallet_volumes,json=walletVolumes,proto3" json:"wallet_volumes" yaml:"wallet_volumes"`
	Reporter        string                                 `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter" yaml:"reporter"`
	Epoch           github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=epoch,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"epoch" yaml:"epoch"`
	ReportReference string                                 `protobuf:"bytes,4,opt,name=report_reference,json=reportReference,proto3" json:"report_reference" yaml:"report_reference"`
	ReporterOwner   string                                 `protobuf:"bytes,5,opt,name=reporter_owner,json=reporterOwner,proto3" json:"reporter_owner" yaml:"reporter_owner"`
	BLSSignature    BLSSignatureInfo                       `protobuf:"bytes,6,opt,name=BLS_signature,json=BLSSignature,proto3" json:"bls_signature" yaml:"bls_signature"`
}

MsgVolumeReport encapsulates an VolumeReport transaction as an SDK message.

func NewMsgVolumeReport

func NewMsgVolumeReport(
	walletVolumes []SingleWalletVolume,
	reporter stratos.SdsAddress,
	epoch sdk.Int,
	reportReference string,
	reporterOwner sdk.AccAddress,
	blsSignature BLSSignatureInfo,
) *MsgVolumeReport

NewMsgVolumeReport creates a new MsgVolumeReport instance

func (*MsgVolumeReport) Descriptor added in v0.8.0

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

func (MsgVolumeReport) GetBLSSignBytes added in v0.10.0

func (msg MsgVolumeReport) GetBLSSignBytes() []byte

func (*MsgVolumeReport) GetBLSSignature added in v0.8.0

func (m *MsgVolumeReport) GetBLSSignature() BLSSignatureInfo

func (*MsgVolumeReport) GetReportReference added in v0.8.0

func (m *MsgVolumeReport) GetReportReference() string

func (*MsgVolumeReport) GetReporter added in v0.8.0

func (m *MsgVolumeReport) GetReporter() string

func (*MsgVolumeReport) GetReporterOwner added in v0.8.0

func (m *MsgVolumeReport) GetReporterOwner() string

func (MsgVolumeReport) GetSignBytes

func (msg MsgVolumeReport) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgVolumeReport) GetSigners

func (msg MsgVolumeReport) GetSigners() []sdk.AccAddress

GetSigners Implement

func (*MsgVolumeReport) GetWalletVolumes added in v0.8.0

func (m *MsgVolumeReport) GetWalletVolumes() []SingleWalletVolume

func (*MsgVolumeReport) Marshal added in v0.8.0

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

func (*MsgVolumeReport) MarshalTo added in v0.8.0

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

func (*MsgVolumeReport) MarshalToSizedBuffer added in v0.8.0

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

func (*MsgVolumeReport) ProtoMessage added in v0.8.0

func (*MsgVolumeReport) ProtoMessage()

func (*MsgVolumeReport) Reset added in v0.8.0

func (m *MsgVolumeReport) Reset()

func (MsgVolumeReport) Route

func (msg MsgVolumeReport) Route() string

Route Implement

func (*MsgVolumeReport) Size added in v0.8.0

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

func (*MsgVolumeReport) String added in v0.8.0

func (m *MsgVolumeReport) String() string

func (MsgVolumeReport) Type

func (msg MsgVolumeReport) Type() string

Type Implement

func (*MsgVolumeReport) Unmarshal added in v0.8.0

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

func (MsgVolumeReport) ValidateBasic

func (msg MsgVolumeReport) ValidateBasic() error

ValidateBasic validity check for the AnteHandler

func (*MsgVolumeReport) XXX_DiscardUnknown added in v0.8.0

func (m *MsgVolumeReport) XXX_DiscardUnknown()

func (*MsgVolumeReport) XXX_Marshal added in v0.8.0

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

func (*MsgVolumeReport) XXX_Merge added in v0.8.0

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

func (*MsgVolumeReport) XXX_Size added in v0.8.0

func (m *MsgVolumeReport) XXX_Size() int

func (*MsgVolumeReport) XXX_Unmarshal added in v0.8.0

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

type MsgVolumeReportResponse added in v0.8.0

type MsgVolumeReportResponse struct {
}

MsgVolumeReportResponse defines the MsgVolumeReport response type

func (*MsgVolumeReportResponse) Descriptor added in v0.8.0

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

func (*MsgVolumeReportResponse) Marshal added in v0.8.0

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

func (*MsgVolumeReportResponse) MarshalTo added in v0.8.0

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

func (*MsgVolumeReportResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*MsgVolumeReportResponse) ProtoMessage added in v0.8.0

func (*MsgVolumeReportResponse) ProtoMessage()

func (*MsgVolumeReportResponse) Reset added in v0.8.0

func (m *MsgVolumeReportResponse) Reset()

func (*MsgVolumeReportResponse) Size added in v0.8.0

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

func (*MsgVolumeReportResponse) String added in v0.8.0

func (m *MsgVolumeReportResponse) String() string

func (*MsgVolumeReportResponse) Unmarshal added in v0.8.0

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

func (*MsgVolumeReportResponse) XXX_DiscardUnknown added in v0.8.0

func (m *MsgVolumeReportResponse) XXX_DiscardUnknown()

func (*MsgVolumeReportResponse) XXX_Marshal added in v0.8.0

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

func (*MsgVolumeReportResponse) XXX_Merge added in v0.8.0

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

func (*MsgVolumeReportResponse) XXX_Size added in v0.8.0

func (m *MsgVolumeReportResponse) XXX_Size() int

func (*MsgVolumeReportResponse) XXX_Unmarshal added in v0.8.0

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

type MsgWithdraw

type MsgWithdraw struct {
	Amount        github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"`
	WalletAddress string                                   `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"`
	TargetAddress string                                   `protobuf:"bytes,3,opt,name=target_address,json=targetAddress,proto3" json:"target_address" yaml:"target_address"`
}

MsgWithdraw encapsulates an withdraw transaction as an SDK message.

func NewMsgWithdraw

func NewMsgWithdraw(amount sdk.Coins, walletAddress sdk.AccAddress, targetAddress sdk.AccAddress) *MsgWithdraw

func (*MsgWithdraw) Descriptor added in v0.8.0

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

func (*MsgWithdraw) GetAmount added in v0.8.0

func (MsgWithdraw) GetSignBytes

func (msg MsgWithdraw) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgWithdraw) GetSigners

func (msg MsgWithdraw) GetSigners() []sdk.AccAddress

GetSigners Implement

func (*MsgWithdraw) GetTargetAddress added in v0.8.0

func (m *MsgWithdraw) GetTargetAddress() string

func (*MsgWithdraw) GetWalletAddress added in v0.8.0

func (m *MsgWithdraw) GetWalletAddress() string

func (*MsgWithdraw) Marshal added in v0.8.0

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

func (*MsgWithdraw) MarshalTo added in v0.8.0

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

func (*MsgWithdraw) MarshalToSizedBuffer added in v0.8.0

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

func (*MsgWithdraw) ProtoMessage added in v0.8.0

func (*MsgWithdraw) ProtoMessage()

func (*MsgWithdraw) Reset added in v0.8.0

func (m *MsgWithdraw) Reset()

func (MsgWithdraw) Route

func (msg MsgWithdraw) Route() string

Route Implement

func (*MsgWithdraw) Size added in v0.8.0

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

func (*MsgWithdraw) String added in v0.8.0

func (m *MsgWithdraw) String() string

func (MsgWithdraw) Type

func (msg MsgWithdraw) Type() string

Type Implement

func (*MsgWithdraw) Unmarshal added in v0.8.0

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

func (MsgWithdraw) ValidateBasic

func (msg MsgWithdraw) ValidateBasic() error

ValidateBasic validity check for the AnteHandler

func (*MsgWithdraw) XXX_DiscardUnknown added in v0.8.0

func (m *MsgWithdraw) XXX_DiscardUnknown()

func (*MsgWithdraw) XXX_Marshal added in v0.8.0

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

func (*MsgWithdraw) XXX_Merge added in v0.8.0

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

func (*MsgWithdraw) XXX_Size added in v0.8.0

func (m *MsgWithdraw) XXX_Size() int

func (*MsgWithdraw) XXX_Unmarshal added in v0.8.0

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

type MsgWithdrawResponse added in v0.8.0

type MsgWithdrawResponse struct {
}

MsgWithdrawResponse defines the Msg/MsgWithdraw response type.

func (*MsgWithdrawResponse) Descriptor added in v0.8.0

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

func (*MsgWithdrawResponse) Marshal added in v0.8.0

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

func (*MsgWithdrawResponse) MarshalTo added in v0.8.0

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

func (*MsgWithdrawResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*MsgWithdrawResponse) ProtoMessage added in v0.8.0

func (*MsgWithdrawResponse) ProtoMessage()

func (*MsgWithdrawResponse) Reset added in v0.8.0

func (m *MsgWithdrawResponse) Reset()

func (*MsgWithdrawResponse) Size added in v0.8.0

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

func (*MsgWithdrawResponse) String added in v0.8.0

func (m *MsgWithdrawResponse) String() string

func (*MsgWithdrawResponse) Unmarshal added in v0.8.0

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

func (*MsgWithdrawResponse) XXX_DiscardUnknown added in v0.8.0

func (m *MsgWithdrawResponse) XXX_DiscardUnknown()

func (*MsgWithdrawResponse) XXX_Marshal added in v0.8.0

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

func (*MsgWithdrawResponse) XXX_Merge added in v0.8.0

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

func (*MsgWithdrawResponse) XXX_Size added in v0.8.0

func (m *MsgWithdrawResponse) XXX_Size() int

func (*MsgWithdrawResponse) XXX_Unmarshal added in v0.8.0

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

type Params

type Params struct {
	BondDenom          string                                 `protobuf:"bytes,1,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom" yaml:"bond_denom"`
	RewardDenom        string                                 `protobuf:"bytes,2,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom" yaml:"reward_denom"`
	MatureEpoch        int64                                  `protobuf:"varint,3,opt,name=mature_epoch,json=matureEpoch,proto3" json:"mature_epoch" yaml:"mature_epoch"`
	MiningRewardParams []MiningRewardParam                    `` /* 135-byte string literal not displayed */
	CommunityTax       github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	InitialTotalSupply types.Coin                             `` /* 135-byte string literal not displayed */
}

Params defines the PoT module parameters

func DefaultParams

func DefaultParams() Params

DefaultParams returns the default distribution parameters

func NewParams

func NewParams(bondDenom string, rewardDenom string, matureEpoch int64, miningRewardParams []MiningRewardParam,
	communityTax sdk.Dec, initialTotalSupply sdk.Coin) Params

NewParams creates a new Params object

func (*Params) Descriptor added in v0.8.0

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

func (*Params) GetBondDenom added in v0.8.0

func (m *Params) GetBondDenom() string

func (*Params) GetInitialTotalSupply added in v0.10.0

func (m *Params) GetInitialTotalSupply() types.Coin

func (*Params) GetMatureEpoch added in v0.8.0

func (m *Params) GetMatureEpoch() int64

func (*Params) GetMiningRewardParams added in v0.8.0

func (m *Params) GetMiningRewardParams() []MiningRewardParam

func (*Params) GetRewardDenom added in v0.8.0

func (m *Params) GetRewardDenom() string

func (Params) HrpString added in v0.8.0

func (p Params) HrpString() string

HrpString implements the stringer interface for Params

func (*Params) Marshal added in v0.8.0

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

func (*Params) MarshalTo added in v0.8.0

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

func (*Params) MarshalToSizedBuffer added in v0.8.0

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

func (*Params) ParamSetPairs

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

ParamSetPairs - Implements params.ParamSet

func (*Params) ProtoMessage added in v0.8.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.8.0

func (m *Params) Reset()

func (*Params) Size added in v0.8.0

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal added in v0.8.0

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

func (Params) ValidateBasic

func (p Params) ValidateBasic() error

func (*Params) XXX_DiscardUnknown added in v0.8.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.8.0

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

func (*Params) XXX_Merge added in v0.8.0

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

func (*Params) XXX_Size added in v0.8.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.8.0

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

type QueryCirculationSupplyRequest added in v0.10.0

type QueryCirculationSupplyRequest struct {
}

func (*QueryCirculationSupplyRequest) Descriptor added in v0.10.0

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

func (*QueryCirculationSupplyRequest) Marshal added in v0.10.0

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

func (*QueryCirculationSupplyRequest) MarshalTo added in v0.10.0

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

func (*QueryCirculationSupplyRequest) MarshalToSizedBuffer added in v0.10.0

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

func (*QueryCirculationSupplyRequest) ProtoMessage added in v0.10.0

func (*QueryCirculationSupplyRequest) ProtoMessage()

func (*QueryCirculationSupplyRequest) Reset added in v0.10.0

func (m *QueryCirculationSupplyRequest) Reset()

func (*QueryCirculationSupplyRequest) Size added in v0.10.0

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

func (*QueryCirculationSupplyRequest) String added in v0.10.0

func (*QueryCirculationSupplyRequest) Unmarshal added in v0.10.0

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

func (*QueryCirculationSupplyRequest) XXX_DiscardUnknown added in v0.10.0

func (m *QueryCirculationSupplyRequest) XXX_DiscardUnknown()

func (*QueryCirculationSupplyRequest) XXX_Marshal added in v0.10.0

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

func (*QueryCirculationSupplyRequest) XXX_Merge added in v0.10.0

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

func (*QueryCirculationSupplyRequest) XXX_Size added in v0.10.0

func (m *QueryCirculationSupplyRequest) XXX_Size() int

func (*QueryCirculationSupplyRequest) XXX_Unmarshal added in v0.10.0

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

type QueryCirculationSupplyResponse added in v0.10.0

type QueryCirculationSupplyResponse struct {
	CirculationSupply github_com_cosmos_cosmos_sdk_types.Coins `` /* 156-byte string literal not displayed */
}

func (*QueryCirculationSupplyResponse) Descriptor added in v0.10.0

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

func (*QueryCirculationSupplyResponse) GetCirculationSupply added in v0.10.0

func (*QueryCirculationSupplyResponse) Marshal added in v0.10.0

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

func (*QueryCirculationSupplyResponse) MarshalTo added in v0.10.0

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

func (*QueryCirculationSupplyResponse) MarshalToSizedBuffer added in v0.10.0

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

func (*QueryCirculationSupplyResponse) ProtoMessage added in v0.10.0

func (*QueryCirculationSupplyResponse) ProtoMessage()

func (*QueryCirculationSupplyResponse) Reset added in v0.10.0

func (m *QueryCirculationSupplyResponse) Reset()

func (*QueryCirculationSupplyResponse) Size added in v0.10.0

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

func (*QueryCirculationSupplyResponse) String added in v0.10.0

func (*QueryCirculationSupplyResponse) Unmarshal added in v0.10.0

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

func (*QueryCirculationSupplyResponse) XXX_DiscardUnknown added in v0.10.0

func (m *QueryCirculationSupplyResponse) XXX_DiscardUnknown()

func (*QueryCirculationSupplyResponse) XXX_Marshal added in v0.10.0

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

func (*QueryCirculationSupplyResponse) XXX_Merge added in v0.10.0

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

func (*QueryCirculationSupplyResponse) XXX_Size added in v0.10.0

func (m *QueryCirculationSupplyResponse) XXX_Size() int

func (*QueryCirculationSupplyResponse) XXX_Unmarshal added in v0.10.0

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

type QueryClient added in v0.8.0

type QueryClient interface {
	// VolumeReport queries VolumeReport info for given epoch.
	VolumeReport(ctx context.Context, in *QueryVolumeReportRequest, opts ...grpc.CallOption) (*QueryVolumeReportResponse, error)
	// RewardsByEpoch queries Pot rewards by a given epoch.
	RewardsByEpoch(ctx context.Context, in *QueryRewardsByEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByEpochResponse, error)
	// RewardsByOwner queries Pot rewards by a given owner wallet address.
	RewardsByOwner(ctx context.Context, in *QueryRewardsByOwnerRequest, opts ...grpc.CallOption) (*QueryRewardsByOwnerResponse, error)
	// SlashingByOwner queries Pot slashing by owner wallet address.
	SlashingByOwner(ctx context.Context, in *QuerySlashingByOwnerRequest, opts ...grpc.CallOption) (*QuerySlashingByOwnerResponse, error)
	// Params queries POT module Params info.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	TotalMinedToken(ctx context.Context, in *QueryTotalMinedTokenRequest, opts ...grpc.CallOption) (*QueryTotalMinedTokenResponse, error)
	CirculationSupply(ctx context.Context, in *QueryCirculationSupplyRequest, opts ...grpc.CallOption) (*QueryCirculationSupplyResponse, error)
	TotalRewardByEpoch(ctx context.Context, in *QueryTotalRewardByEpochRequest, opts ...grpc.CallOption) (*QueryTotalRewardByEpochResponse, 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 added in v0.8.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryIndividualRewardsByReportEpochParams added in v0.10.0

type QueryIndividualRewardsByReportEpochParams struct {
	Page  int
	Limit int
	Epoch sdk.Int
}

func NewQueryIndividualRewardsByEpochParams added in v0.10.0

func NewQueryIndividualRewardsByEpochParams(page, limit int, epoch sdk.Int) QueryIndividualRewardsByReportEpochParams

NewQueryIndividualRewardsByEpochParams creates a new instance of QueryIndividualRewardsByReportEpochParams

type QueryParamsRequest added in v0.8.0

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor added in v0.8.0

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

func (*QueryParamsRequest) Marshal added in v0.8.0

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

func (*QueryParamsRequest) MarshalTo added in v0.8.0

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryParamsRequest) ProtoMessage added in v0.8.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.8.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.8.0

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

func (*QueryParamsRequest) String added in v0.8.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.8.0

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.8.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.8.0

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

func (*QueryParamsRequest) XXX_Merge added in v0.8.0

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

func (*QueryParamsRequest) XXX_Size added in v0.8.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.8.0

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

type QueryParamsResponse added in v0.8.0

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

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

func (*QueryParamsResponse) Descriptor added in v0.8.0

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

func (*QueryParamsResponse) GetParams added in v0.8.0

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal added in v0.8.0

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

func (*QueryParamsResponse) MarshalTo added in v0.8.0

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryParamsResponse) ProtoMessage added in v0.8.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.8.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.8.0

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

func (*QueryParamsResponse) String added in v0.8.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.8.0

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.8.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.8.0

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

func (*QueryParamsResponse) XXX_Merge added in v0.8.0

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

func (*QueryParamsResponse) XXX_Size added in v0.8.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.8.0

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

type QueryRewardsByEpochRequest added in v0.10.0

type QueryRewardsByEpochRequest struct {
	Epoch         int64              `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	WalletAddress string             `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	Pagination    *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRewardsByEpochRequest is request type for the Query/RewardsByEpoch by a given epoch RPC method

func (*QueryRewardsByEpochRequest) Descriptor added in v0.10.0

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

func (*QueryRewardsByEpochRequest) GetEpoch added in v0.10.0

func (m *QueryRewardsByEpochRequest) GetEpoch() int64

func (*QueryRewardsByEpochRequest) GetPagination added in v0.10.0

func (m *QueryRewardsByEpochRequest) GetPagination() *query.PageRequest

func (*QueryRewardsByEpochRequest) GetWalletAddress added in v0.10.0

func (m *QueryRewardsByEpochRequest) GetWalletAddress() string

func (*QueryRewardsByEpochRequest) Marshal added in v0.10.0

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

func (*QueryRewardsByEpochRequest) MarshalTo added in v0.10.0

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

func (*QueryRewardsByEpochRequest) MarshalToSizedBuffer added in v0.10.0

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

func (*QueryRewardsByEpochRequest) ProtoMessage added in v0.10.0

func (*QueryRewardsByEpochRequest) ProtoMessage()

func (*QueryRewardsByEpochRequest) Reset added in v0.10.0

func (m *QueryRewardsByEpochRequest) Reset()

func (*QueryRewardsByEpochRequest) Size added in v0.10.0

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

func (*QueryRewardsByEpochRequest) String added in v0.10.0

func (m *QueryRewardsByEpochRequest) String() string

func (*QueryRewardsByEpochRequest) Unmarshal added in v0.10.0

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

func (*QueryRewardsByEpochRequest) XXX_DiscardUnknown added in v0.10.0

func (m *QueryRewardsByEpochRequest) XXX_DiscardUnknown()

func (*QueryRewardsByEpochRequest) XXX_Marshal added in v0.10.0

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

func (*QueryRewardsByEpochRequest) XXX_Merge added in v0.10.0

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

func (*QueryRewardsByEpochRequest) XXX_Size added in v0.10.0

func (m *QueryRewardsByEpochRequest) XXX_Size() int

func (*QueryRewardsByEpochRequest) XXX_Unmarshal added in v0.10.0

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

type QueryRewardsByEpochResponse added in v0.10.0

type QueryRewardsByEpochResponse struct {
	Rewards    []*Reward           `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
	Height     int64               `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRewardsByEpochResponse is response type for the Query/RewardsByEpoch RPC method

func (*QueryRewardsByEpochResponse) Descriptor added in v0.10.0

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

func (*QueryRewardsByEpochResponse) GetHeight added in v0.10.0

func (m *QueryRewardsByEpochResponse) GetHeight() int64

func (*QueryRewardsByEpochResponse) GetPagination added in v0.10.0

func (m *QueryRewardsByEpochResponse) GetPagination() *query.PageResponse

func (*QueryRewardsByEpochResponse) GetRewards added in v0.10.0

func (m *QueryRewardsByEpochResponse) GetRewards() []*Reward

func (*QueryRewardsByEpochResponse) Marshal added in v0.10.0

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

func (*QueryRewardsByEpochResponse) MarshalTo added in v0.10.0

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

func (*QueryRewardsByEpochResponse) MarshalToSizedBuffer added in v0.10.0

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

func (*QueryRewardsByEpochResponse) ProtoMessage added in v0.10.0

func (*QueryRewardsByEpochResponse) ProtoMessage()

func (*QueryRewardsByEpochResponse) Reset added in v0.10.0

func (m *QueryRewardsByEpochResponse) Reset()

func (*QueryRewardsByEpochResponse) Size added in v0.10.0

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

func (*QueryRewardsByEpochResponse) String added in v0.10.0

func (m *QueryRewardsByEpochResponse) String() string

func (*QueryRewardsByEpochResponse) Unmarshal added in v0.10.0

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

func (*QueryRewardsByEpochResponse) XXX_DiscardUnknown added in v0.10.0

func (m *QueryRewardsByEpochResponse) XXX_DiscardUnknown()

func (*QueryRewardsByEpochResponse) XXX_Marshal added in v0.10.0

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

func (*QueryRewardsByEpochResponse) XXX_Merge added in v0.10.0

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

func (*QueryRewardsByEpochResponse) XXX_Size added in v0.10.0

func (m *QueryRewardsByEpochResponse) XXX_Size() int

func (*QueryRewardsByEpochResponse) XXX_Unmarshal added in v0.10.0

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

type QueryRewardsByOwnerRequest added in v0.10.0

type QueryRewardsByOwnerRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
}

QueryRewardsByOwnerRequest is request type for the Query/RewardsByOwner by a given owner RPC method

func (*QueryRewardsByOwnerRequest) Descriptor added in v0.10.0

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

func (*QueryRewardsByOwnerRequest) GetWalletAddress added in v0.10.0

func (m *QueryRewardsByOwnerRequest) GetWalletAddress() string

func (*QueryRewardsByOwnerRequest) Marshal added in v0.10.0

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

func (*QueryRewardsByOwnerRequest) MarshalTo added in v0.10.0

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

func (*QueryRewardsByOwnerRequest) MarshalToSizedBuffer added in v0.10.0

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

func (*QueryRewardsByOwnerRequest) ProtoMessage added in v0.10.0

func (*QueryRewardsByOwnerRequest) ProtoMessage()

func (*QueryRewardsByOwnerRequest) Reset added in v0.10.0

func (m *QueryRewardsByOwnerRequest) Reset()

func (*QueryRewardsByOwnerRequest) Size added in v0.10.0

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

func (*QueryRewardsByOwnerRequest) String added in v0.10.0

func (m *QueryRewardsByOwnerRequest) String() string

func (*QueryRewardsByOwnerRequest) Unmarshal added in v0.10.0

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

func (*QueryRewardsByOwnerRequest) XXX_DiscardUnknown added in v0.10.0

func (m *QueryRewardsByOwnerRequest) XXX_DiscardUnknown()

func (*QueryRewardsByOwnerRequest) XXX_Marshal added in v0.10.0

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

func (*QueryRewardsByOwnerRequest) XXX_Merge added in v0.10.0

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

func (*QueryRewardsByOwnerRequest) XXX_Size added in v0.10.0

func (m *QueryRewardsByOwnerRequest) XXX_Size() int

func (*QueryRewardsByOwnerRequest) XXX_Unmarshal added in v0.10.0

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

type QueryRewardsByOwnerResponse added in v0.10.0

type QueryRewardsByOwnerResponse struct {
	Rewards *RewardByOwner `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"`
	Height  int64          `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

QueryRewardsByOwnerResponse is response type for the Query/RewardsByOwner RPC method

func (*QueryRewardsByOwnerResponse) Descriptor added in v0.10.0

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

func (*QueryRewardsByOwnerResponse) GetHeight added in v0.10.0

func (m *QueryRewardsByOwnerResponse) GetHeight() int64

func (*QueryRewardsByOwnerResponse) GetRewards added in v0.10.0

func (m *QueryRewardsByOwnerResponse) GetRewards() *RewardByOwner

func (*QueryRewardsByOwnerResponse) Marshal added in v0.10.0

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

func (*QueryRewardsByOwnerResponse) MarshalTo added in v0.10.0

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

func (*QueryRewardsByOwnerResponse) MarshalToSizedBuffer added in v0.10.0

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

func (*QueryRewardsByOwnerResponse) ProtoMessage added in v0.10.0

func (*QueryRewardsByOwnerResponse) ProtoMessage()

func (*QueryRewardsByOwnerResponse) Reset added in v0.10.0

func (m *QueryRewardsByOwnerResponse) Reset()

func (*QueryRewardsByOwnerResponse) Size added in v0.10.0

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

func (*QueryRewardsByOwnerResponse) String added in v0.10.0

func (m *QueryRewardsByOwnerResponse) String() string

func (*QueryRewardsByOwnerResponse) Unmarshal added in v0.10.0

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

func (*QueryRewardsByOwnerResponse) XXX_DiscardUnknown added in v0.10.0

func (m *QueryRewardsByOwnerResponse) XXX_DiscardUnknown()

func (*QueryRewardsByOwnerResponse) XXX_Marshal added in v0.10.0

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

func (*QueryRewardsByOwnerResponse) XXX_Merge added in v0.10.0

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

func (*QueryRewardsByOwnerResponse) XXX_Size added in v0.10.0

func (m *QueryRewardsByOwnerResponse) XXX_Size() int

func (*QueryRewardsByOwnerResponse) XXX_Unmarshal added in v0.10.0

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

type QueryRewardsByWalletAddrParams added in v0.10.0

type QueryRewardsByWalletAddrParams struct {
	WalletAddr sdk.AccAddress
	Height     int64
	Epoch      sdk.Int
}

func NewQueryRewardsByWalletAddrParams added in v0.10.0

func NewQueryRewardsByWalletAddrParams(walletAddr sdk.AccAddress, height int64, epoch sdk.Int) QueryRewardsByWalletAddrParams

type QueryServer added in v0.8.0

type QueryServer interface {
	// VolumeReport queries VolumeReport info for given epoch.
	VolumeReport(context.Context, *QueryVolumeReportRequest) (*QueryVolumeReportResponse, error)
	// RewardsByEpoch queries Pot rewards by a given epoch.
	RewardsByEpoch(context.Context, *QueryRewardsByEpochRequest) (*QueryRewardsByEpochResponse, error)
	// RewardsByOwner queries Pot rewards by a given owner wallet address.
	RewardsByOwner(context.Context, *QueryRewardsByOwnerRequest) (*QueryRewardsByOwnerResponse, error)
	// SlashingByOwner queries Pot slashing by owner wallet address.
	SlashingByOwner(context.Context, *QuerySlashingByOwnerRequest) (*QuerySlashingByOwnerResponse, error)
	// Params queries POT module Params info.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	TotalMinedToken(context.Context, *QueryTotalMinedTokenRequest) (*QueryTotalMinedTokenResponse, error)
	CirculationSupply(context.Context, *QueryCirculationSupplyRequest) (*QueryCirculationSupplyResponse, error)
	TotalRewardByEpoch(context.Context, *QueryTotalRewardByEpochRequest) (*QueryTotalRewardByEpochResponse, error)
}

QueryServer is the server API for Query service.

type QuerySlashingByOwnerRequest added in v0.10.0

type QuerySlashingByOwnerRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
}

QuerySlashingByOwnerRequest is request type for the Query/Slashing by a given owner RPC method

func (*QuerySlashingByOwnerRequest) Descriptor added in v0.10.0

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

func (*QuerySlashingByOwnerRequest) GetWalletAddress added in v0.10.0

func (m *QuerySlashingByOwnerRequest) GetWalletAddress() string

func (*QuerySlashingByOwnerRequest) Marshal added in v0.10.0

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

func (*QuerySlashingByOwnerRequest) MarshalTo added in v0.10.0

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

func (*QuerySlashingByOwnerRequest) MarshalToSizedBuffer added in v0.10.0

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

func (*QuerySlashingByOwnerRequest) ProtoMessage added in v0.10.0

func (*QuerySlashingByOwnerRequest) ProtoMessage()

func (*QuerySlashingByOwnerRequest) Reset added in v0.10.0

func (m *QuerySlashingByOwnerRequest) Reset()

func (*QuerySlashingByOwnerRequest) Size added in v0.10.0

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

func (*QuerySlashingByOwnerRequest) String added in v0.10.0

func (m *QuerySlashingByOwnerRequest) String() string

func (*QuerySlashingByOwnerRequest) Unmarshal added in v0.10.0

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

func (*QuerySlashingByOwnerRequest) XXX_DiscardUnknown added in v0.10.0

func (m *QuerySlashingByOwnerRequest) XXX_DiscardUnknown()

func (*QuerySlashingByOwnerRequest) XXX_Marshal added in v0.10.0

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

func (*QuerySlashingByOwnerRequest) XXX_Merge added in v0.10.0

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

func (*QuerySlashingByOwnerRequest) XXX_Size added in v0.10.0

func (m *QuerySlashingByOwnerRequest) XXX_Size() int

func (*QuerySlashingByOwnerRequest) XXX_Unmarshal added in v0.10.0

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

type QuerySlashingByOwnerResponse added in v0.10.0

type QuerySlashingByOwnerResponse struct {
	Slashing string `protobuf:"bytes,1,opt,name=slashing,proto3" json:"slashing,omitempty"`
	Height   int64  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

QuerySlashingByOwnerResponse is response type for the Query/Slashing RPC method

func (*QuerySlashingByOwnerResponse) Descriptor added in v0.10.0

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

func (*QuerySlashingByOwnerResponse) GetHeight added in v0.10.0

func (m *QuerySlashingByOwnerResponse) GetHeight() int64

func (*QuerySlashingByOwnerResponse) GetSlashing added in v0.10.0

func (m *QuerySlashingByOwnerResponse) GetSlashing() string

func (*QuerySlashingByOwnerResponse) Marshal added in v0.10.0

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

func (*QuerySlashingByOwnerResponse) MarshalTo added in v0.10.0

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

func (*QuerySlashingByOwnerResponse) MarshalToSizedBuffer added in v0.10.0

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

func (*QuerySlashingByOwnerResponse) ProtoMessage added in v0.10.0

func (*QuerySlashingByOwnerResponse) ProtoMessage()

func (*QuerySlashingByOwnerResponse) Reset added in v0.10.0

func (m *QuerySlashingByOwnerResponse) Reset()

func (*QuerySlashingByOwnerResponse) Size added in v0.10.0

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

func (*QuerySlashingByOwnerResponse) String added in v0.10.0

func (*QuerySlashingByOwnerResponse) Unmarshal added in v0.10.0

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

func (*QuerySlashingByOwnerResponse) XXX_DiscardUnknown added in v0.10.0

func (m *QuerySlashingByOwnerResponse) XXX_DiscardUnknown()

func (*QuerySlashingByOwnerResponse) XXX_Marshal added in v0.10.0

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

func (*QuerySlashingByOwnerResponse) XXX_Merge added in v0.10.0

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

func (*QuerySlashingByOwnerResponse) XXX_Size added in v0.10.0

func (m *QuerySlashingByOwnerResponse) XXX_Size() int

func (*QuerySlashingByOwnerResponse) XXX_Unmarshal added in v0.10.0

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

type QueryTotalMinedTokenRequest added in v0.10.0

type QueryTotalMinedTokenRequest struct {
}

func (*QueryTotalMinedTokenRequest) Descriptor added in v0.10.0

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

func (*QueryTotalMinedTokenRequest) Marshal added in v0.10.0

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

func (*QueryTotalMinedTokenRequest) MarshalTo added in v0.10.0

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

func (*QueryTotalMinedTokenRequest) MarshalToSizedBuffer added in v0.10.0

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

func (*QueryTotalMinedTokenRequest) ProtoMessage added in v0.10.0

func (*QueryTotalMinedTokenRequest) ProtoMessage()

func (*QueryTotalMinedTokenRequest) Reset added in v0.10.0

func (m *QueryTotalMinedTokenRequest) Reset()

func (*QueryTotalMinedTokenRequest) Size added in v0.10.0

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

func (*QueryTotalMinedTokenRequest) String added in v0.10.0

func (m *QueryTotalMinedTokenRequest) String() string

func (*QueryTotalMinedTokenRequest) Unmarshal added in v0.10.0

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

func (*QueryTotalMinedTokenRequest) XXX_DiscardUnknown added in v0.10.0

func (m *QueryTotalMinedTokenRequest) XXX_DiscardUnknown()

func (*QueryTotalMinedTokenRequest) XXX_Marshal added in v0.10.0

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

func (*QueryTotalMinedTokenRequest) XXX_Merge added in v0.10.0

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

func (*QueryTotalMinedTokenRequest) XXX_Size added in v0.10.0

func (m *QueryTotalMinedTokenRequest) XXX_Size() int

func (*QueryTotalMinedTokenRequest) XXX_Unmarshal added in v0.10.0

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

type QueryTotalMinedTokenResponse added in v0.10.0

type QueryTotalMinedTokenResponse struct {
	TotalMinedToken types.Coin `protobuf:"bytes,1,opt,name=total_mined_token,json=totalMinedToken,proto3" json:"total_mined_token" yaml:"total_mined_token"`
}

func (*QueryTotalMinedTokenResponse) Descriptor added in v0.10.0

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

func (*QueryTotalMinedTokenResponse) GetTotalMinedToken added in v0.10.0

func (m *QueryTotalMinedTokenResponse) GetTotalMinedToken() types.Coin

func (*QueryTotalMinedTokenResponse) Marshal added in v0.10.0

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

func (*QueryTotalMinedTokenResponse) MarshalTo added in v0.10.0

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

func (*QueryTotalMinedTokenResponse) MarshalToSizedBuffer added in v0.10.0

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

func (*QueryTotalMinedTokenResponse) ProtoMessage added in v0.10.0

func (*QueryTotalMinedTokenResponse) ProtoMessage()

func (*QueryTotalMinedTokenResponse) Reset added in v0.10.0

func (m *QueryTotalMinedTokenResponse) Reset()

func (*QueryTotalMinedTokenResponse) Size added in v0.10.0

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

func (*QueryTotalMinedTokenResponse) String added in v0.10.0

func (*QueryTotalMinedTokenResponse) Unmarshal added in v0.10.0

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

func (*QueryTotalMinedTokenResponse) XXX_DiscardUnknown added in v0.10.0

func (m *QueryTotalMinedTokenResponse) XXX_DiscardUnknown()

func (*QueryTotalMinedTokenResponse) XXX_Marshal added in v0.10.0

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

func (*QueryTotalMinedTokenResponse) XXX_Merge added in v0.10.0

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

func (*QueryTotalMinedTokenResponse) XXX_Size added in v0.10.0

func (m *QueryTotalMinedTokenResponse) XXX_Size() int

func (*QueryTotalMinedTokenResponse) XXX_Unmarshal added in v0.10.0

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

type QueryTotalRewardByEpochParams added in v0.11.0

type QueryTotalRewardByEpochParams struct {
	Epoch sdk.Int
}

func NewQueryTotalRewardByEpochParams added in v0.11.0

func NewQueryTotalRewardByEpochParams(epoch sdk.Int) QueryTotalRewardByEpochParams

type QueryTotalRewardByEpochRequest added in v0.11.0

type QueryTotalRewardByEpochRequest struct {
	Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
}

func (*QueryTotalRewardByEpochRequest) Descriptor added in v0.11.0

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

func (*QueryTotalRewardByEpochRequest) GetEpoch added in v0.11.0

func (m *QueryTotalRewardByEpochRequest) GetEpoch() int64

func (*QueryTotalRewardByEpochRequest) Marshal added in v0.11.0

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

func (*QueryTotalRewardByEpochRequest) MarshalTo added in v0.11.0

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

func (*QueryTotalRewardByEpochRequest) MarshalToSizedBuffer added in v0.11.0

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

func (*QueryTotalRewardByEpochRequest) ProtoMessage added in v0.11.0

func (*QueryTotalRewardByEpochRequest) ProtoMessage()

func (*QueryTotalRewardByEpochRequest) Reset added in v0.11.0

func (m *QueryTotalRewardByEpochRequest) Reset()

func (*QueryTotalRewardByEpochRequest) Size added in v0.11.0

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

func (*QueryTotalRewardByEpochRequest) String added in v0.11.0

func (*QueryTotalRewardByEpochRequest) Unmarshal added in v0.11.0

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

func (*QueryTotalRewardByEpochRequest) XXX_DiscardUnknown added in v0.11.0

func (m *QueryTotalRewardByEpochRequest) XXX_DiscardUnknown()

func (*QueryTotalRewardByEpochRequest) XXX_Marshal added in v0.11.0

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

func (*QueryTotalRewardByEpochRequest) XXX_Merge added in v0.11.0

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

func (*QueryTotalRewardByEpochRequest) XXX_Size added in v0.11.0

func (m *QueryTotalRewardByEpochRequest) XXX_Size() int

func (*QueryTotalRewardByEpochRequest) XXX_Unmarshal added in v0.11.0

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

type QueryTotalRewardByEpochResponse added in v0.11.0

type QueryTotalRewardByEpochResponse struct {
	TotalReward TotalReward `protobuf:"bytes,1,opt,name=total_reward,json=totalReward,proto3" json:"total_reward" yaml:"total_reward"`
}

func (*QueryTotalRewardByEpochResponse) Descriptor added in v0.11.0

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

func (*QueryTotalRewardByEpochResponse) GetTotalReward added in v0.11.0

func (m *QueryTotalRewardByEpochResponse) GetTotalReward() TotalReward

func (*QueryTotalRewardByEpochResponse) Marshal added in v0.11.0

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

func (*QueryTotalRewardByEpochResponse) MarshalTo added in v0.11.0

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

func (*QueryTotalRewardByEpochResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*QueryTotalRewardByEpochResponse) ProtoMessage added in v0.11.0

func (*QueryTotalRewardByEpochResponse) ProtoMessage()

func (*QueryTotalRewardByEpochResponse) Reset added in v0.11.0

func (*QueryTotalRewardByEpochResponse) Size added in v0.11.0

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

func (*QueryTotalRewardByEpochResponse) String added in v0.11.0

func (*QueryTotalRewardByEpochResponse) Unmarshal added in v0.11.0

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

func (*QueryTotalRewardByEpochResponse) XXX_DiscardUnknown added in v0.11.0

func (m *QueryTotalRewardByEpochResponse) XXX_DiscardUnknown()

func (*QueryTotalRewardByEpochResponse) XXX_Marshal added in v0.11.0

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

func (*QueryTotalRewardByEpochResponse) XXX_Merge added in v0.11.0

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

func (*QueryTotalRewardByEpochResponse) XXX_Size added in v0.11.0

func (m *QueryTotalRewardByEpochResponse) XXX_Size() int

func (*QueryTotalRewardByEpochResponse) XXX_Unmarshal added in v0.11.0

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

type QueryVolumeReportRequest added in v0.8.0

type QueryVolumeReportRequest struct {
	// epoch defines the epoch number to query for.
	Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
}

QueryVolumeReportRequest is request type for the Query/VolumeReport RPC method

func (*QueryVolumeReportRequest) Descriptor added in v0.8.0

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

func (*QueryVolumeReportRequest) GetEpoch added in v0.8.0

func (m *QueryVolumeReportRequest) GetEpoch() int64

func (*QueryVolumeReportRequest) Marshal added in v0.8.0

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

func (*QueryVolumeReportRequest) MarshalTo added in v0.8.0

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

func (*QueryVolumeReportRequest) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryVolumeReportRequest) ProtoMessage added in v0.8.0

func (*QueryVolumeReportRequest) ProtoMessage()

func (*QueryVolumeReportRequest) Reset added in v0.8.0

func (m *QueryVolumeReportRequest) Reset()

func (*QueryVolumeReportRequest) Size added in v0.8.0

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

func (*QueryVolumeReportRequest) String added in v0.8.0

func (m *QueryVolumeReportRequest) String() string

func (*QueryVolumeReportRequest) Unmarshal added in v0.8.0

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

func (*QueryVolumeReportRequest) XXX_DiscardUnknown added in v0.8.0

func (m *QueryVolumeReportRequest) XXX_DiscardUnknown()

func (*QueryVolumeReportRequest) XXX_Marshal added in v0.8.0

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

func (*QueryVolumeReportRequest) XXX_Merge added in v0.8.0

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

func (*QueryVolumeReportRequest) XXX_Size added in v0.8.0

func (m *QueryVolumeReportRequest) XXX_Size() int

func (*QueryVolumeReportRequest) XXX_Unmarshal added in v0.8.0

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

type QueryVolumeReportResponse added in v0.8.0

type QueryVolumeReportResponse struct {
	// node defines the the volumeReport info.
	ReportInfo *ReportInfo `protobuf:"bytes,1,opt,name=report_info,json=reportInfo,proto3" json:"report_info,omitempty"`
	Height     int64       `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

QueryVolumeReportResponse is response type for the Query/ResourceNode RPC method

func (*QueryVolumeReportResponse) Descriptor added in v0.8.0

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

func (*QueryVolumeReportResponse) GetHeight added in v0.8.0

func (m *QueryVolumeReportResponse) GetHeight() int64

func (*QueryVolumeReportResponse) GetReportInfo added in v0.8.0

func (m *QueryVolumeReportResponse) GetReportInfo() *ReportInfo

func (*QueryVolumeReportResponse) Marshal added in v0.8.0

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

func (*QueryVolumeReportResponse) MarshalTo added in v0.8.0

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

func (*QueryVolumeReportResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryVolumeReportResponse) ProtoMessage added in v0.8.0

func (*QueryVolumeReportResponse) ProtoMessage()

func (*QueryVolumeReportResponse) Reset added in v0.8.0

func (m *QueryVolumeReportResponse) Reset()

func (*QueryVolumeReportResponse) Size added in v0.8.0

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

func (*QueryVolumeReportResponse) String added in v0.8.0

func (m *QueryVolumeReportResponse) String() string

func (*QueryVolumeReportResponse) Unmarshal added in v0.8.0

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

func (*QueryVolumeReportResponse) XXX_DiscardUnknown added in v0.8.0

func (m *QueryVolumeReportResponse) XXX_DiscardUnknown()

func (*QueryVolumeReportResponse) XXX_Marshal added in v0.8.0

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

func (*QueryVolumeReportResponse) XXX_Merge added in v0.8.0

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

func (*QueryVolumeReportResponse) XXX_Size added in v0.8.0

func (m *QueryVolumeReportResponse) XXX_Size() int

func (*QueryVolumeReportResponse) XXX_Unmarshal added in v0.8.0

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

type RegisterKeeper added in v0.8.0

type RegisterKeeper interface {
	GetMetaNode(ctx sdk.Context, p2pAddress stratos.SdsAddress) (metaNode types.MetaNode, found bool)
	GetResourceNode(ctx sdk.Context, p2pAddress stratos.SdsAddress) (resourceNode types.ResourceNode, found bool)
	SetResourceNode(ctx sdk.Context, resourceNode types.ResourceNode)

	GetSlashing(ctx sdk.Context, walletAddress sdk.AccAddress) (res sdk.Int)
	SetSlashing(ctx sdk.Context, walletAddress sdk.AccAddress, slashing sdk.Int)
	DeductSlashing(ctx sdk.Context, walletAddress sdk.AccAddress, coins sdk.Coins, slashingDenom string) (remaining, deducted sdk.Coins)

	GetRemainingOzoneLimit(ctx sdk.Context) (value sdk.Int)
	SetRemainingOzoneLimit(ctx sdk.Context, value sdk.Int)
	GetTotalUnissuedPrepay(ctx sdk.Context) (totalUnissuedPrepay sdk.Coin)
	GetDepositNozRate(ctx sdk.Context) (depositNozRate sdk.Dec)

	GetResourceNodeBondedToken(ctx sdk.Context) (token sdk.Coin)
	GetMetaNodeBondedToken(ctx sdk.Context) (token sdk.Coin)

	GetEffectiveTotalDeposit(ctx sdk.Context) (deposit sdk.Int)

	GetResourceNodeIterator(ctx sdk.Context) sdk.Iterator
	GetMetaNodeIterator(ctx sdk.Context) sdk.Iterator
	GetBondedMetaNodeCnt(ctx sdk.Context) sdk.Int

	DecreaseOzoneLimitBySubtractDeposit(ctx sdk.Context, deposit sdk.Int) (ozoneLimitChange sdk.Int)
	IncreaseOzoneLimitByAddDeposit(ctx sdk.Context, deposit sdk.Int) (ozoneLimitChange sdk.Int)
	GetUnbondingNodeBalance(ctx sdk.Context, networkAddr stratos.SdsAddress) sdk.Int

	OwnMetaNode(ctx sdk.Context, ownerAddr sdk.AccAddress, p2pAddr stratos.SdsAddress) (found bool)
}

type ReportInfo added in v0.4.0

type ReportInfo struct {
	Epoch     int64  `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
	TxHash    string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	Reporter  string `protobuf:"bytes,4,opt,name=reporter,proto3" json:"reporter,omitempty"`
}

func (*ReportInfo) Descriptor added in v0.8.0

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

func (*ReportInfo) GetEpoch added in v0.8.0

func (m *ReportInfo) GetEpoch() int64

func (*ReportInfo) GetReference added in v0.8.0

func (m *ReportInfo) GetReference() string

func (*ReportInfo) GetReporter added in v0.8.0

func (m *ReportInfo) GetReporter() string

func (*ReportInfo) GetTxHash added in v0.8.0

func (m *ReportInfo) GetTxHash() string

func (*ReportInfo) Marshal added in v0.8.0

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

func (*ReportInfo) MarshalTo added in v0.8.0

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

func (*ReportInfo) MarshalToSizedBuffer added in v0.8.0

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

func (*ReportInfo) ProtoMessage added in v0.8.0

func (*ReportInfo) ProtoMessage()

func (*ReportInfo) Reset added in v0.8.0

func (m *ReportInfo) Reset()

func (*ReportInfo) Size added in v0.8.0

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

func (*ReportInfo) String added in v0.8.0

func (m *ReportInfo) String() string

func (*ReportInfo) Unmarshal added in v0.8.0

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

func (*ReportInfo) XXX_DiscardUnknown added in v0.8.0

func (m *ReportInfo) XXX_DiscardUnknown()

func (*ReportInfo) XXX_Marshal added in v0.8.0

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

func (*ReportInfo) XXX_Merge added in v0.8.0

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

func (*ReportInfo) XXX_Size added in v0.8.0

func (m *ReportInfo) XXX_Size() int

func (*ReportInfo) XXX_Unmarshal added in v0.8.0

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

type Reward

type Reward struct {
	WalletAddress         string                                   `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"`
	RewardFromMiningPool  github_com_cosmos_cosmos_sdk_types.Coins `` /* 200-byte string literal not displayed */
	RewardFromTrafficPool github_com_cosmos_cosmos_sdk_types.Coins `` /* 204-byte string literal not displayed */
}

func NewDefaultReward

func NewDefaultReward(walletAddress sdk.AccAddress) Reward

func NewReward

func NewReward(walletAddress sdk.AccAddress, rewardFromMiningPool sdk.Coins, rewardFromTrafficPool sdk.Coins) Reward

func (Reward) AddRewardFromMiningPool

func (r Reward) AddRewardFromMiningPool(reward sdk.Coin) Reward

func (Reward) AddRewardFromTrafficPool

func (r Reward) AddRewardFromTrafficPool(reward sdk.Coin) Reward

func (*Reward) Descriptor added in v0.8.0

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

func (*Reward) GetRewardFromMiningPool added in v0.8.0

func (m *Reward) GetRewardFromMiningPool() github_com_cosmos_cosmos_sdk_types.Coins

func (*Reward) GetRewardFromTrafficPool added in v0.8.0

func (m *Reward) GetRewardFromTrafficPool() github_com_cosmos_cosmos_sdk_types.Coins

func (*Reward) GetWalletAddress added in v0.8.0

func (m *Reward) GetWalletAddress() string

func (Reward) HrpString added in v0.8.0

func (r Reward) HrpString() string

String returns a human readable string representation of a Reward.

func (*Reward) Marshal added in v0.8.0

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

func (*Reward) MarshalTo added in v0.8.0

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

func (*Reward) MarshalToSizedBuffer added in v0.8.0

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

func (*Reward) ProtoMessage added in v0.8.0

func (*Reward) ProtoMessage()

func (*Reward) Reset added in v0.8.0

func (m *Reward) Reset()

func (*Reward) Size added in v0.8.0

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

func (*Reward) String

func (m *Reward) String() string

func (*Reward) Unmarshal added in v0.8.0

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

func (*Reward) XXX_DiscardUnknown added in v0.8.0

func (m *Reward) XXX_DiscardUnknown()

func (*Reward) XXX_Marshal added in v0.8.0

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

func (*Reward) XXX_Merge added in v0.8.0

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

func (*Reward) XXX_Size added in v0.8.0

func (m *Reward) XXX_Size() int

func (*Reward) XXX_Unmarshal added in v0.8.0

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

type RewardByOwner added in v0.10.0

type RewardByOwner struct {
	WalletAddress       string                                   `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	MatureTotalReward   github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */
	ImmatureTotalReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 164-byte string literal not displayed */
}

func NewRewardInfo added in v0.10.0

func NewRewardInfo(
	walletAddress sdk.AccAddress,
	matureTotal sdk.Coins,
	immatureTotal sdk.Coins,
) RewardByOwner

NewRewardInfo creates a new instance of PotRewardInfo

func (*RewardByOwner) Descriptor added in v0.10.0

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

func (*RewardByOwner) GetImmatureTotalReward added in v0.10.0

func (m *RewardByOwner) GetImmatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins

func (*RewardByOwner) GetMatureTotalReward added in v0.10.0

func (m *RewardByOwner) GetMatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins

func (*RewardByOwner) GetWalletAddress added in v0.10.0

func (m *RewardByOwner) GetWalletAddress() string

func (*RewardByOwner) Marshal added in v0.10.0

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

func (*RewardByOwner) MarshalTo added in v0.10.0

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

func (*RewardByOwner) MarshalToSizedBuffer added in v0.10.0

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

func (*RewardByOwner) ProtoMessage added in v0.10.0

func (*RewardByOwner) ProtoMessage()

func (*RewardByOwner) Reset added in v0.10.0

func (m *RewardByOwner) Reset()

func (*RewardByOwner) Size added in v0.10.0

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

func (*RewardByOwner) String added in v0.10.0

func (m *RewardByOwner) String() string

func (*RewardByOwner) Unmarshal added in v0.10.0

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

func (*RewardByOwner) XXX_DiscardUnknown added in v0.10.0

func (m *RewardByOwner) XXX_DiscardUnknown()

func (*RewardByOwner) XXX_Marshal added in v0.10.0

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

func (*RewardByOwner) XXX_Merge added in v0.10.0

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

func (*RewardByOwner) XXX_Size added in v0.10.0

func (m *RewardByOwner) XXX_Size() int

func (*RewardByOwner) XXX_Unmarshal added in v0.10.0

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

type SingleWalletVolume added in v0.6.0

type SingleWalletVolume struct {
	WalletAddress string                                 `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"`
	Volume        github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=volume,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"volume" yaml:"volume"`
}

func NewSingleWalletVolume added in v0.6.0

func NewSingleWalletVolume(
	walletAddress sdk.AccAddress,
	volume sdk.Int,
) SingleWalletVolume

NewSingleWalletVolume creates a new Msg<Action> instance

func (*SingleWalletVolume) Descriptor added in v0.8.0

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

func (*SingleWalletVolume) GetWalletAddress added in v0.8.0

func (m *SingleWalletVolume) GetWalletAddress() string

func (*SingleWalletVolume) Marshal added in v0.8.0

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

func (*SingleWalletVolume) MarshalTo added in v0.8.0

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

func (*SingleWalletVolume) MarshalToSizedBuffer added in v0.8.0

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

func (*SingleWalletVolume) ProtoMessage added in v0.8.0

func (*SingleWalletVolume) ProtoMessage()

func (*SingleWalletVolume) Reset added in v0.8.0

func (m *SingleWalletVolume) Reset()

func (*SingleWalletVolume) Size added in v0.8.0

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

func (*SingleWalletVolume) String added in v0.8.0

func (m *SingleWalletVolume) String() string

func (*SingleWalletVolume) Unmarshal added in v0.8.0

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

func (*SingleWalletVolume) XXX_DiscardUnknown added in v0.8.0

func (m *SingleWalletVolume) XXX_DiscardUnknown()

func (*SingleWalletVolume) XXX_Marshal added in v0.8.0

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

func (*SingleWalletVolume) XXX_Merge added in v0.8.0

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

func (*SingleWalletVolume) XXX_Size added in v0.8.0

func (m *SingleWalletVolume) XXX_Size() int

func (*SingleWalletVolume) XXX_Unmarshal added in v0.8.0

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

type StakingKeeper added in v0.8.0

type StakingKeeper interface {
	TotalBondedTokens(ctx sdk.Context) sdk.Int
}

type TotalReward added in v0.11.0

type TotalReward struct {
	MiningReward  github_com_cosmos_cosmos_sdk_types.Coins `` /* 162-byte string literal not displayed */
	TrafficReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 166-byte string literal not displayed */
}

func (*TotalReward) Descriptor added in v0.11.0

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

func (*TotalReward) GetMiningReward added in v0.11.0

func (*TotalReward) GetTrafficReward added in v0.11.0

func (*TotalReward) Marshal added in v0.11.0

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

func (*TotalReward) MarshalTo added in v0.11.0

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

func (*TotalReward) MarshalToSizedBuffer added in v0.11.0

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

func (*TotalReward) ProtoMessage added in v0.11.0

func (*TotalReward) ProtoMessage()

func (*TotalReward) Reset added in v0.11.0

func (m *TotalReward) Reset()

func (*TotalReward) Size added in v0.11.0

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

func (*TotalReward) String added in v0.11.0

func (m *TotalReward) String() string

func (*TotalReward) Unmarshal added in v0.11.0

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

func (*TotalReward) XXX_DiscardUnknown added in v0.11.0

func (m *TotalReward) XXX_DiscardUnknown()

func (*TotalReward) XXX_Marshal added in v0.11.0

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

func (*TotalReward) XXX_Merge added in v0.11.0

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

func (*TotalReward) XXX_Size added in v0.11.0

func (m *TotalReward) XXX_Size() int

func (*TotalReward) XXX_Unmarshal added in v0.11.0

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

type UnimplementedMsgServer added in v0.8.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) HandleMsgFoundationDeposit added in v0.8.0

func (*UnimplementedMsgServer) HandleMsgLegacyWithdraw added in v0.9.0

func (*UnimplementedMsgServer) HandleMsgSlashingResourceNode added in v0.8.0

func (*UnimplementedMsgServer) HandleMsgVolumeReport added in v0.8.0

func (*UnimplementedMsgServer) HandleMsgWithdraw added in v0.8.0

func (*UnimplementedMsgServer) HandleMsgWithdraw(ctx context.Context, req *MsgWithdraw) (*MsgWithdrawResponse, error)

type UnimplementedQueryServer added in v0.8.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CirculationSupply added in v0.10.0

func (*UnimplementedQueryServer) Params added in v0.8.0

func (*UnimplementedQueryServer) RewardsByEpoch added in v0.10.0

func (*UnimplementedQueryServer) RewardsByOwner added in v0.10.0

func (*UnimplementedQueryServer) SlashingByOwner added in v0.10.0

func (*UnimplementedQueryServer) TotalMinedToken added in v0.10.0

func (*UnimplementedQueryServer) TotalRewardByEpoch added in v0.11.0

func (*UnimplementedQueryServer) VolumeReport added in v0.8.0

type VolumeReportRecord added in v0.5.0

type VolumeReportRecord struct {
	Reporter        string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter" yaml:"reporter"`
	ReportReference string `protobuf:"bytes,2,opt,name=report_reference,json=reportReference,proto3" json:"report_reference" yaml:"report_reference"`
	TxHash          string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash" yaml:"tx_hash"`
}

func NewReportRecord added in v0.4.0

func NewReportRecord(reporter stratos.SdsAddress, reportReference string, txHash string) VolumeReportRecord

func (*VolumeReportRecord) Descriptor added in v0.8.0

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

func (*VolumeReportRecord) GetReportReference added in v0.8.0

func (m *VolumeReportRecord) GetReportReference() string

func (*VolumeReportRecord) GetReporter added in v0.8.0

func (m *VolumeReportRecord) GetReporter() string

func (*VolumeReportRecord) GetTxHash added in v0.8.0

func (m *VolumeReportRecord) GetTxHash() string

func (*VolumeReportRecord) Marshal added in v0.8.0

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

func (*VolumeReportRecord) MarshalTo added in v0.8.0

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

func (*VolumeReportRecord) MarshalToSizedBuffer added in v0.8.0

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

func (*VolumeReportRecord) ProtoMessage added in v0.8.0

func (*VolumeReportRecord) ProtoMessage()

func (*VolumeReportRecord) Reset added in v0.8.0

func (m *VolumeReportRecord) Reset()

func (*VolumeReportRecord) Size added in v0.8.0

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

func (*VolumeReportRecord) String added in v0.8.0

func (m *VolumeReportRecord) String() string

func (*VolumeReportRecord) Unmarshal added in v0.8.0

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

func (*VolumeReportRecord) XXX_DiscardUnknown added in v0.8.0

func (m *VolumeReportRecord) XXX_DiscardUnknown()

func (*VolumeReportRecord) XXX_Marshal added in v0.8.0

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

func (*VolumeReportRecord) XXX_Merge added in v0.8.0

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

func (*VolumeReportRecord) XXX_Size added in v0.8.0

func (m *VolumeReportRecord) XXX_Size() int

func (*VolumeReportRecord) XXX_Unmarshal added in v0.8.0

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

type WalletVolumes added in v0.10.0

type WalletVolumes struct {
	Volumes []SingleWalletVolume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes" yaml:"volumes"`
}

func (*WalletVolumes) Descriptor added in v0.10.0

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

func (*WalletVolumes) GetVolumes added in v0.10.0

func (m *WalletVolumes) GetVolumes() []SingleWalletVolume

func (*WalletVolumes) Marshal added in v0.10.0

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

func (*WalletVolumes) MarshalTo added in v0.10.0

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

func (*WalletVolumes) MarshalToSizedBuffer added in v0.10.0

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

func (*WalletVolumes) ProtoMessage added in v0.10.0

func (*WalletVolumes) ProtoMessage()

func (*WalletVolumes) Reset added in v0.10.0

func (m *WalletVolumes) Reset()

func (*WalletVolumes) Size added in v0.10.0

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

func (*WalletVolumes) String added in v0.10.0

func (m *WalletVolumes) String() string

func (*WalletVolumes) Unmarshal added in v0.10.0

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

func (*WalletVolumes) XXX_DiscardUnknown added in v0.10.0

func (m *WalletVolumes) XXX_DiscardUnknown()

func (*WalletVolumes) XXX_Marshal added in v0.10.0

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

func (*WalletVolumes) XXX_Merge added in v0.10.0

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

func (*WalletVolumes) XXX_Size added in v0.10.0

func (m *WalletVolumes) XXX_Size() int

func (*WalletVolumes) XXX_Unmarshal added in v0.10.0

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

Jump to

Keyboard shortcuts

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