types

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 29 Imported by: 12

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "stakers"

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

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_stakers"
)
View Source
const (
	MaxStakers        = 50
	DefaultCommission = "0.9"
)
View Source
const TypeMsgCreateStaker = "create_staker"
View Source
const TypeMsgJoinPool = "join_pool"
View Source
const TypeMsgLeavePool = "leave_pool"
View Source
const TypeMsgUpdateCommission = "update_commission"
View Source
const TypeMsgUpdateMetadata = "update_metadata"

Variables

View Source
var (
	ErrStakeTooLow             = errors.Register(ModuleName, 1103, "minimum staking amount of %vkyve not reached")
	ErrUnstakeTooHigh          = errors.Register(ModuleName, 1104, "maximum unstaking amount of %vkyve surpassed")
	ErrNoStaker                = errors.Register(ModuleName, 1105, "sender is no staker")
	ErrAlreadyJoinedPool       = errors.Register(ModuleName, 1106, "already joined pool")
	ErrAlreadyLeftPool         = errors.Register(ModuleName, 1107, "already left pool")
	ValaddressAlreadyUsed      = errors.Register(ModuleName, 1108, "valaddress already used")
	ErrStringMaxLengthExceeded = errors.Register(ModuleName, 1109, "String length exceeded: %d vs %d")
	ErrStakerAlreadyCreated    = errors.Register(ModuleName, 1110, "Staker already created")
	ErrValaddressSameAsStaker  = errors.Register(ModuleName, 1111, "Valaddress has same address as Valaddress")
	ErrCanNotJoinDisabledPool  = errors.Register(ModuleName, 1112, "can not join disabled pool")

	ErrInvalidCommission          = errors.Register(ModuleName, 1116, "invalid commission %v")
	ErrPoolLeaveAlreadyInProgress = errors.Register(ModuleName, 1117, "Pool leave is already in progress")
	ErrValaccountUnauthorized     = errors.Register(ModuleName, 1118, "valaccount unauthorized")
)

staking errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
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 (
	// ParamsKey is the prefix for all module params defined in params.proto
	ParamsKey = []byte{0x00}

	// StakerKeyPrefix is indexed by the staker address
	// and contains all stakers regardless of the pool
	// key -> StakerKeyPrefix | <stakerAddr>
	StakerKeyPrefix = []byte{1}

	// ValaccountPrefix stores valaccount for each staker and pool
	// ValaccountPrefix | <poolId> | <staker>
	ValaccountPrefix = []byte{2, 0}
	// ValaccountPrefixIndex2 | <staker> | <poolId>
	ValaccountPrefixIndex2 = []byte{2, 1}

	// CommissionChangeEntryKeyPrefix | <index>
	CommissionChangeEntryKeyPrefix = []byte{4, 0}
	// CommissionChangeEntryKeyPrefixIndex2 | <staker>
	CommissionChangeEntryKeyPrefixIndex2 = []byte{4, 1}

	// LeavePoolEntryKeyPrefix | <index>
	LeavePoolEntryKeyPrefix = []byte{5, 0}
	// LeavePoolEntryKeyPrefixIndex2 | <staker> | <poolId>
	LeavePoolEntryKeyPrefixIndex2 = []byte{5, 1}

	ActiveStakerIndex = []byte{6}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStakers        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStakers          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStakers = 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 DefaultCommissionChangeTime = uint64(60 * 60 * 24 * 5)

DefaultCommissionChangeTime ...

View Source
var DefaultLeavePoolTime = uint64(60 * 60 * 24 * 5)

DefaultLeavePoolTime ...

Functions

func ActiveStakerKeyIndex

func ActiveStakerKeyIndex(staker string) []byte

func CommissionChangeEntryKey

func CommissionChangeEntryKey(index uint64) []byte

func CommissionChangeEntryKeyIndex2

func CommissionChangeEntryKeyIndex2(staker string) []byte

Important: only one queue entry per staker is allowed at a time.

func LeavePoolEntryKey

func LeavePoolEntryKey(index uint64) []byte

func LeavePoolEntryKeyIndex2

func LeavePoolEntryKeyIndex2(staker string, poolId uint64) []byte

func RegisterCodec

func RegisterCodec(_ *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func StakerKey

func StakerKey(staker string) []byte

StakerKey returns the store Key to retrieve a Staker from the index fields

func ValaccountKey

func ValaccountKey(poolId uint64, staker string) []byte

func ValaccountKeyIndex2

func ValaccountKeyIndex2(staker string, poolId uint64) []byte

Types

type AccountKeeper

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

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

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommissionChangeEntry

type CommissionChangeEntry struct {
	// index is needed for the queue-algorithm which
	// processes the commission changes
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// staker is the address of the affected staker
	Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
	// commission is the new commission which will
	// be applied after the waiting time is over.
	Commission string `protobuf:"bytes,3,opt,name=commission,proto3" json:"commission,omitempty"`
	// creation_date is the UNIX-timestamp in seconds
	// when the entry was created.
	CreationDate int64 `protobuf:"varint,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
}

CommissionChangeEntry stores the information for an upcoming commission change. A commission change is never instant, so delegators have time to redelegate in case they don't agree with the new commission.

func (*CommissionChangeEntry) Descriptor

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

func (*CommissionChangeEntry) GetCommission

func (m *CommissionChangeEntry) GetCommission() string

func (*CommissionChangeEntry) GetCreationDate

func (m *CommissionChangeEntry) GetCreationDate() int64

func (*CommissionChangeEntry) GetIndex

func (m *CommissionChangeEntry) GetIndex() uint64

func (*CommissionChangeEntry) GetStaker

func (m *CommissionChangeEntry) GetStaker() string

func (*CommissionChangeEntry) Marshal

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

func (*CommissionChangeEntry) MarshalTo

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

func (*CommissionChangeEntry) MarshalToSizedBuffer

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

func (*CommissionChangeEntry) ProtoMessage

func (*CommissionChangeEntry) ProtoMessage()

func (*CommissionChangeEntry) Reset

func (m *CommissionChangeEntry) Reset()

func (*CommissionChangeEntry) Size

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

func (*CommissionChangeEntry) String

func (m *CommissionChangeEntry) String() string

func (*CommissionChangeEntry) Unmarshal

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

func (*CommissionChangeEntry) XXX_DiscardUnknown

func (m *CommissionChangeEntry) XXX_DiscardUnknown()

func (*CommissionChangeEntry) XXX_Marshal

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

func (*CommissionChangeEntry) XXX_Merge

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

func (*CommissionChangeEntry) XXX_Size

func (m *CommissionChangeEntry) XXX_Size() int

func (*CommissionChangeEntry) XXX_Unmarshal

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

type DelegationKeeper

type DelegationKeeper interface {
	GetDelegationAmount(ctx sdk.Context, staker string) uint64
	GetDelegationAmountOfDelegator(ctx sdk.Context, stakerAddress string, delegatorAddress string) uint64
	GetStakersByDelegator(ctx sdk.Context, delegator string) []string
}

type DistrKeeper

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

type EventCreateStaker

type EventCreateStaker struct {
	// staker is the account address of the protocol node.
	Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"`
	// amount ...
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
}

EventCreateStaker is an event emitted when a protocol node stakes in a pool. emitted_by: MsgCreateStaker

func (*EventCreateStaker) Descriptor

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

func (*EventCreateStaker) GetAmount

func (m *EventCreateStaker) GetAmount() uint64

func (*EventCreateStaker) GetStaker

func (m *EventCreateStaker) GetStaker() string

func (*EventCreateStaker) Marshal

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

func (*EventCreateStaker) MarshalTo

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

func (*EventCreateStaker) MarshalToSizedBuffer

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

func (*EventCreateStaker) ProtoMessage

func (*EventCreateStaker) ProtoMessage()

func (*EventCreateStaker) Reset

func (m *EventCreateStaker) Reset()

func (*EventCreateStaker) Size

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

func (*EventCreateStaker) String

func (m *EventCreateStaker) String() string

func (*EventCreateStaker) Unmarshal

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

func (*EventCreateStaker) XXX_DiscardUnknown

func (m *EventCreateStaker) XXX_DiscardUnknown()

func (*EventCreateStaker) XXX_Marshal

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

func (*EventCreateStaker) XXX_Merge

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

func (*EventCreateStaker) XXX_Size

func (m *EventCreateStaker) XXX_Size() int

func (*EventCreateStaker) XXX_Unmarshal

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

type EventJoinPool

type EventJoinPool struct {
	// pool_id is the pool the staker joined
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// staker is the address of the staker
	Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
	// valaddress is the address of the protocol node which
	// votes in favor of the staker
	Valaddress string `protobuf:"bytes,3,opt,name=valaddress,proto3" json:"valaddress,omitempty"`
	// amount is the amount of funds transferred to the valaddress
	Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
}

EventJoinPool ... emitted_by: MsgJoinPool

func (*EventJoinPool) Descriptor

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

func (*EventJoinPool) GetAmount

func (m *EventJoinPool) GetAmount() uint64

func (*EventJoinPool) GetPoolId

func (m *EventJoinPool) GetPoolId() uint64

func (*EventJoinPool) GetStaker

func (m *EventJoinPool) GetStaker() string

func (*EventJoinPool) GetValaddress

func (m *EventJoinPool) GetValaddress() string

func (*EventJoinPool) Marshal

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

func (*EventJoinPool) MarshalTo

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

func (*EventJoinPool) MarshalToSizedBuffer

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

func (*EventJoinPool) ProtoMessage

func (*EventJoinPool) ProtoMessage()

func (*EventJoinPool) Reset

func (m *EventJoinPool) Reset()

func (*EventJoinPool) Size

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

func (*EventJoinPool) String

func (m *EventJoinPool) String() string

func (*EventJoinPool) Unmarshal

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

func (*EventJoinPool) XXX_DiscardUnknown

func (m *EventJoinPool) XXX_DiscardUnknown()

func (*EventJoinPool) XXX_Marshal

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

func (*EventJoinPool) XXX_Merge

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

func (*EventJoinPool) XXX_Size

func (m *EventJoinPool) XXX_Size() int

func (*EventJoinPool) XXX_Unmarshal

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

type EventLeavePool

type EventLeavePool struct {
	// pool_id ...
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// staker ...
	Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
}

EventLeavePool ... emitted_by: EndBlock

func (*EventLeavePool) Descriptor

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

func (*EventLeavePool) GetPoolId

func (m *EventLeavePool) GetPoolId() uint64

func (*EventLeavePool) GetStaker

func (m *EventLeavePool) GetStaker() string

func (*EventLeavePool) Marshal

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

func (*EventLeavePool) MarshalTo

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

func (*EventLeavePool) MarshalToSizedBuffer

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

func (*EventLeavePool) ProtoMessage

func (*EventLeavePool) ProtoMessage()

func (*EventLeavePool) Reset

func (m *EventLeavePool) Reset()

func (*EventLeavePool) Size

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

func (*EventLeavePool) String

func (m *EventLeavePool) String() string

func (*EventLeavePool) Unmarshal

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

func (*EventLeavePool) XXX_DiscardUnknown

func (m *EventLeavePool) XXX_DiscardUnknown()

func (*EventLeavePool) XXX_Marshal

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

func (*EventLeavePool) XXX_Merge

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

func (*EventLeavePool) XXX_Size

func (m *EventLeavePool) XXX_Size() int

func (*EventLeavePool) XXX_Unmarshal

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

type EventUpdateCommission

type EventUpdateCommission struct {
	// staker is the account address of the protocol node.
	Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"`
	// commission ...
	Commission string `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission,omitempty"`
}

EventUpdateCommission ... emitted_by: EndBlock

func (*EventUpdateCommission) Descriptor

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

func (*EventUpdateCommission) GetCommission

func (m *EventUpdateCommission) GetCommission() string

func (*EventUpdateCommission) GetStaker

func (m *EventUpdateCommission) GetStaker() string

func (*EventUpdateCommission) Marshal

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

func (*EventUpdateCommission) MarshalTo

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

func (*EventUpdateCommission) MarshalToSizedBuffer

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

func (*EventUpdateCommission) ProtoMessage

func (*EventUpdateCommission) ProtoMessage()

func (*EventUpdateCommission) Reset

func (m *EventUpdateCommission) Reset()

func (*EventUpdateCommission) Size

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

func (*EventUpdateCommission) String

func (m *EventUpdateCommission) String() string

func (*EventUpdateCommission) Unmarshal

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

func (*EventUpdateCommission) XXX_DiscardUnknown

func (m *EventUpdateCommission) XXX_DiscardUnknown()

func (*EventUpdateCommission) XXX_Marshal

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

func (*EventUpdateCommission) XXX_Merge

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

func (*EventUpdateCommission) XXX_Size

func (m *EventUpdateCommission) XXX_Size() int

func (*EventUpdateCommission) XXX_Unmarshal

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

type EventUpdateMetadata

type EventUpdateMetadata struct {
	// staker is the account address of the protocol node.
	Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"`
	// moniker ...
	Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// website ...
	Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"`
}

EventUpdateMetadata is an event emitted when a protocol node updates their metadata. emitted_by: MsgUpdateMetadata

func (*EventUpdateMetadata) Descriptor

func (*EventUpdateMetadata) Descriptor() ([]byte, []int)
func (m *EventUpdateMetadata) GetLogo() string

func (*EventUpdateMetadata) GetMoniker

func (m *EventUpdateMetadata) GetMoniker() string

func (*EventUpdateMetadata) GetStaker

func (m *EventUpdateMetadata) GetStaker() string

func (*EventUpdateMetadata) GetWebsite

func (m *EventUpdateMetadata) GetWebsite() string

func (*EventUpdateMetadata) Marshal

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

func (*EventUpdateMetadata) MarshalTo

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

func (*EventUpdateMetadata) MarshalToSizedBuffer

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

func (*EventUpdateMetadata) ProtoMessage

func (*EventUpdateMetadata) ProtoMessage()

func (*EventUpdateMetadata) Reset

func (m *EventUpdateMetadata) Reset()

func (*EventUpdateMetadata) Size

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

func (*EventUpdateMetadata) String

func (m *EventUpdateMetadata) String() string

func (*EventUpdateMetadata) Unmarshal

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

func (*EventUpdateMetadata) XXX_DiscardUnknown

func (m *EventUpdateMetadata) XXX_DiscardUnknown()

func (*EventUpdateMetadata) XXX_Marshal

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

func (*EventUpdateMetadata) XXX_Merge

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

func (*EventUpdateMetadata) XXX_Size

func (m *EventUpdateMetadata) XXX_Size() int

func (*EventUpdateMetadata) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// staker_list ...
	StakerList []Staker `protobuf:"bytes,2,rep,name=staker_list,json=stakerList,proto3" json:"staker_list"`
	// valaccount_list ...
	ValaccountList []Valaccount `protobuf:"bytes,3,rep,name=valaccount_list,json=valaccountList,proto3" json:"valaccount_list"`
	// commission_change_entries ...
	CommissionChangeEntries []CommissionChangeEntry `protobuf:"bytes,4,rep,name=commission_change_entries,json=commissionChangeEntries,proto3" json:"commission_change_entries"`
	// queue_state_commission ...
	QueueStateCommission QueueState `protobuf:"bytes,5,opt,name=queue_state_commission,json=queueStateCommission,proto3" json:"queue_state_commission"`
	// leave_pool_entries ...
	LeavePoolEntries []LeavePoolEntry `protobuf:"bytes,6,rep,name=leave_pool_entries,json=leavePoolEntries,proto3" json:"leave_pool_entries"`
	// queue_state_leave ...
	QueueStateLeave QueueState `protobuf:"bytes,7,opt,name=queue_state_leave,json=queueStateLeave,proto3" json:"queue_state_leave"`
}

GenesisState defines the stakers module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCommissionChangeEntries

func (m *GenesisState) GetCommissionChangeEntries() []CommissionChangeEntry

func (*GenesisState) GetLeavePoolEntries

func (m *GenesisState) GetLeavePoolEntries() []LeavePoolEntry

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetQueueStateCommission

func (m *GenesisState) GetQueueStateCommission() QueueState

func (*GenesisState) GetQueueStateLeave

func (m *GenesisState) GetQueueStateLeave() QueueState

func (*GenesisState) GetStakerList

func (m *GenesisState) GetStakerList() []Staker

func (*GenesisState) GetValaccountList

func (m *GenesisState) GetValaccountList() []Valaccount

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type LeavePoolEntry

type LeavePoolEntry struct {
	// index is needed for the queue-algorithm which
	// processes the commission changes
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// staker is the address of the affected staker
	Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
	// pool_id indicates the pool the staker wants to leave
	PoolId uint64 `protobuf:"varint,3,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// creation_date is the UNIX-timestamp in seconds
	// when the entry was created.
	CreationDate int64 `protobuf:"varint,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
}

LeavePoolEntry stores the information for an upcoming pool leave. A staker can't leave a pool instantly. Instead a the `LeaveTime` needs to be awaited. If a staker start to leave a pool, it will be shown in the UI to the delegators.

func (*LeavePoolEntry) Descriptor

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

func (*LeavePoolEntry) GetCreationDate

func (m *LeavePoolEntry) GetCreationDate() int64

func (*LeavePoolEntry) GetIndex

func (m *LeavePoolEntry) GetIndex() uint64

func (*LeavePoolEntry) GetPoolId

func (m *LeavePoolEntry) GetPoolId() uint64

func (*LeavePoolEntry) GetStaker

func (m *LeavePoolEntry) GetStaker() string

func (*LeavePoolEntry) Marshal

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

func (*LeavePoolEntry) MarshalTo

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

func (*LeavePoolEntry) MarshalToSizedBuffer

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

func (*LeavePoolEntry) ProtoMessage

func (*LeavePoolEntry) ProtoMessage()

func (*LeavePoolEntry) Reset

func (m *LeavePoolEntry) Reset()

func (*LeavePoolEntry) Size

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

func (*LeavePoolEntry) String

func (m *LeavePoolEntry) String() string

func (*LeavePoolEntry) Unmarshal

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

func (*LeavePoolEntry) XXX_DiscardUnknown

func (m *LeavePoolEntry) XXX_DiscardUnknown()

func (*LeavePoolEntry) XXX_Marshal

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

func (*LeavePoolEntry) XXX_Merge

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

func (*LeavePoolEntry) XXX_Size

func (m *LeavePoolEntry) XXX_Size() int

func (*LeavePoolEntry) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateStaker ...
	CreateStaker(ctx context.Context, in *MsgCreateStaker, opts ...grpc.CallOption) (*MsgCreateStakerResponse, error)
	// UpdateMetadata ...
	UpdateMetadata(ctx context.Context, in *MsgUpdateMetadata, opts ...grpc.CallOption) (*MsgUpdateMetadataResponse, error)
	// UpdateCommission ...
	UpdateCommission(ctx context.Context, in *MsgUpdateCommission, opts ...grpc.CallOption) (*MsgUpdateCommissionResponse, error)
	// JoinPool ...
	JoinPool(ctx context.Context, in *MsgJoinPool, opts ...grpc.CallOption) (*MsgJoinPoolResponse, error)
	// LeavePool ...
	LeavePool(ctx context.Context, in *MsgLeavePool, opts ...grpc.CallOption) (*MsgLeavePoolResponse, error)
	// UpdateParams defines a governance operation for updating the x/stakers module
	// parameters. The authority is hard-coded to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateStaker

type MsgCreateStaker struct {
	// creator ...
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// amount ...
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
}

MsgStakePool defines a SDK message for staking in a pool.

func (*MsgCreateStaker) Descriptor

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

func (*MsgCreateStaker) GetAmount

func (m *MsgCreateStaker) GetAmount() uint64

func (*MsgCreateStaker) GetCreator

func (m *MsgCreateStaker) GetCreator() string

func (*MsgCreateStaker) GetSignBytes

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

func (*MsgCreateStaker) GetSigners

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

func (*MsgCreateStaker) Marshal

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

func (*MsgCreateStaker) MarshalTo

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

func (*MsgCreateStaker) MarshalToSizedBuffer

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

func (*MsgCreateStaker) ProtoMessage

func (*MsgCreateStaker) ProtoMessage()

func (*MsgCreateStaker) Reset

func (m *MsgCreateStaker) Reset()

func (*MsgCreateStaker) Route

func (msg *MsgCreateStaker) Route() string

func (*MsgCreateStaker) Size

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

func (*MsgCreateStaker) String

func (m *MsgCreateStaker) String() string

func (*MsgCreateStaker) Type

func (msg *MsgCreateStaker) Type() string

func (*MsgCreateStaker) Unmarshal

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

func (*MsgCreateStaker) ValidateBasic

func (msg *MsgCreateStaker) ValidateBasic() error

func (*MsgCreateStaker) XXX_DiscardUnknown

func (m *MsgCreateStaker) XXX_DiscardUnknown()

func (*MsgCreateStaker) XXX_Marshal

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

func (*MsgCreateStaker) XXX_Merge

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

func (*MsgCreateStaker) XXX_Size

func (m *MsgCreateStaker) XXX_Size() int

func (*MsgCreateStaker) XXX_Unmarshal

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

type MsgCreateStakerResponse

type MsgCreateStakerResponse struct {
}

MsgStakePoolResponse defines the Msg/StakePool response type.

func (*MsgCreateStakerResponse) Descriptor

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

func (*MsgCreateStakerResponse) Marshal

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

func (*MsgCreateStakerResponse) MarshalTo

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

func (*MsgCreateStakerResponse) MarshalToSizedBuffer

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

func (*MsgCreateStakerResponse) ProtoMessage

func (*MsgCreateStakerResponse) ProtoMessage()

func (*MsgCreateStakerResponse) Reset

func (m *MsgCreateStakerResponse) Reset()

func (*MsgCreateStakerResponse) Size

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

func (*MsgCreateStakerResponse) String

func (m *MsgCreateStakerResponse) String() string

func (*MsgCreateStakerResponse) Unmarshal

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

func (*MsgCreateStakerResponse) XXX_DiscardUnknown

func (m *MsgCreateStakerResponse) XXX_DiscardUnknown()

func (*MsgCreateStakerResponse) XXX_Marshal

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

func (*MsgCreateStakerResponse) XXX_Merge

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

func (*MsgCreateStakerResponse) XXX_Size

func (m *MsgCreateStakerResponse) XXX_Size() int

func (*MsgCreateStakerResponse) XXX_Unmarshal

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

type MsgJoinPool

type MsgJoinPool struct {
	// creator ...
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// pool_id ...
	PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// valaddress ...
	Valaddress string `protobuf:"bytes,3,opt,name=valaddress,proto3" json:"valaddress,omitempty"`
	// amount ...
	Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
}

MsgJoinPool ...

func (*MsgJoinPool) Descriptor

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

func (*MsgJoinPool) GetAmount

func (m *MsgJoinPool) GetAmount() uint64

func (*MsgJoinPool) GetCreator

func (m *MsgJoinPool) GetCreator() string

func (*MsgJoinPool) GetPoolId

func (m *MsgJoinPool) GetPoolId() uint64

func (*MsgJoinPool) GetSignBytes

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

func (*MsgJoinPool) GetSigners

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

func (*MsgJoinPool) GetValaddress

func (m *MsgJoinPool) GetValaddress() string

func (*MsgJoinPool) Marshal

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

func (*MsgJoinPool) MarshalTo

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

func (*MsgJoinPool) MarshalToSizedBuffer

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

func (*MsgJoinPool) ProtoMessage

func (*MsgJoinPool) ProtoMessage()

func (*MsgJoinPool) Reset

func (m *MsgJoinPool) Reset()

func (*MsgJoinPool) Route

func (msg *MsgJoinPool) Route() string

func (*MsgJoinPool) Size

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

func (*MsgJoinPool) String

func (m *MsgJoinPool) String() string

func (*MsgJoinPool) Type

func (msg *MsgJoinPool) Type() string

func (*MsgJoinPool) Unmarshal

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

func (*MsgJoinPool) ValidateBasic

func (msg *MsgJoinPool) ValidateBasic() error

func (*MsgJoinPool) XXX_DiscardUnknown

func (m *MsgJoinPool) XXX_DiscardUnknown()

func (*MsgJoinPool) XXX_Marshal

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

func (*MsgJoinPool) XXX_Merge

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

func (*MsgJoinPool) XXX_Size

func (m *MsgJoinPool) XXX_Size() int

func (*MsgJoinPool) XXX_Unmarshal

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

type MsgJoinPoolResponse

type MsgJoinPoolResponse struct {
}

MsgJoinPoolResponse ...

func (*MsgJoinPoolResponse) Descriptor

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

func (*MsgJoinPoolResponse) Marshal

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

func (*MsgJoinPoolResponse) MarshalTo

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

func (*MsgJoinPoolResponse) MarshalToSizedBuffer

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

func (*MsgJoinPoolResponse) ProtoMessage

func (*MsgJoinPoolResponse) ProtoMessage()

func (*MsgJoinPoolResponse) Reset

func (m *MsgJoinPoolResponse) Reset()

func (*MsgJoinPoolResponse) Size

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

func (*MsgJoinPoolResponse) String

func (m *MsgJoinPoolResponse) String() string

func (*MsgJoinPoolResponse) Unmarshal

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

func (*MsgJoinPoolResponse) XXX_DiscardUnknown

func (m *MsgJoinPoolResponse) XXX_DiscardUnknown()

func (*MsgJoinPoolResponse) XXX_Marshal

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

func (*MsgJoinPoolResponse) XXX_Merge

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

func (*MsgJoinPoolResponse) XXX_Size

func (m *MsgJoinPoolResponse) XXX_Size() int

func (*MsgJoinPoolResponse) XXX_Unmarshal

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

type MsgLeavePool

type MsgLeavePool struct {
	// creator ...
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// pool_id ...
	PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

MsgLeavePool ...

func (*MsgLeavePool) Descriptor

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

func (*MsgLeavePool) GetCreator

func (m *MsgLeavePool) GetCreator() string

func (*MsgLeavePool) GetPoolId

func (m *MsgLeavePool) GetPoolId() uint64

func (*MsgLeavePool) GetSignBytes

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

func (*MsgLeavePool) GetSigners

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

func (*MsgLeavePool) Marshal

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

func (*MsgLeavePool) MarshalTo

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

func (*MsgLeavePool) MarshalToSizedBuffer

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

func (*MsgLeavePool) ProtoMessage

func (*MsgLeavePool) ProtoMessage()

func (*MsgLeavePool) Reset

func (m *MsgLeavePool) Reset()

func (*MsgLeavePool) Route

func (msg *MsgLeavePool) Route() string

func (*MsgLeavePool) Size

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

func (*MsgLeavePool) String

func (m *MsgLeavePool) String() string

func (*MsgLeavePool) Type

func (msg *MsgLeavePool) Type() string

func (*MsgLeavePool) Unmarshal

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

func (*MsgLeavePool) ValidateBasic

func (msg *MsgLeavePool) ValidateBasic() error

func (*MsgLeavePool) XXX_DiscardUnknown

func (m *MsgLeavePool) XXX_DiscardUnknown()

func (*MsgLeavePool) XXX_Marshal

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

func (*MsgLeavePool) XXX_Merge

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

func (*MsgLeavePool) XXX_Size

func (m *MsgLeavePool) XXX_Size() int

func (*MsgLeavePool) XXX_Unmarshal

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

type MsgLeavePoolResponse

type MsgLeavePoolResponse struct {
}

MsgReactivateStakerResponse ...

func (*MsgLeavePoolResponse) Descriptor

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

func (*MsgLeavePoolResponse) Marshal

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

func (*MsgLeavePoolResponse) MarshalTo

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

func (*MsgLeavePoolResponse) MarshalToSizedBuffer

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

func (*MsgLeavePoolResponse) ProtoMessage

func (*MsgLeavePoolResponse) ProtoMessage()

func (*MsgLeavePoolResponse) Reset

func (m *MsgLeavePoolResponse) Reset()

func (*MsgLeavePoolResponse) Size

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

func (*MsgLeavePoolResponse) String

func (m *MsgLeavePoolResponse) String() string

func (*MsgLeavePoolResponse) Unmarshal

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

func (*MsgLeavePoolResponse) XXX_DiscardUnknown

func (m *MsgLeavePoolResponse) XXX_DiscardUnknown()

func (*MsgLeavePoolResponse) XXX_Marshal

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

func (*MsgLeavePoolResponse) XXX_Merge

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

func (*MsgLeavePoolResponse) XXX_Size

func (m *MsgLeavePoolResponse) XXX_Size() int

func (*MsgLeavePoolResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateStaker ...
	CreateStaker(context.Context, *MsgCreateStaker) (*MsgCreateStakerResponse, error)
	// UpdateMetadata ...
	UpdateMetadata(context.Context, *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error)
	// UpdateCommission ...
	UpdateCommission(context.Context, *MsgUpdateCommission) (*MsgUpdateCommissionResponse, error)
	// JoinPool ...
	JoinPool(context.Context, *MsgJoinPool) (*MsgJoinPoolResponse, error)
	// LeavePool ...
	LeavePool(context.Context, *MsgLeavePool) (*MsgLeavePoolResponse, error)
	// UpdateParams defines a governance operation for updating the x/stakers module
	// parameters. The authority is hard-coded to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateCommission

type MsgUpdateCommission struct {
	// creator ...
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// commission ...
	Commission string `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission,omitempty"`
}

MsgUpdateCommission ...

func (*MsgUpdateCommission) Descriptor

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

func (*MsgUpdateCommission) GetCommission

func (m *MsgUpdateCommission) GetCommission() string

func (*MsgUpdateCommission) GetCreator

func (m *MsgUpdateCommission) GetCreator() string

func (*MsgUpdateCommission) GetSignBytes

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

func (*MsgUpdateCommission) GetSigners

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

func (*MsgUpdateCommission) Marshal

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

func (*MsgUpdateCommission) MarshalTo

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

func (*MsgUpdateCommission) MarshalToSizedBuffer

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

func (*MsgUpdateCommission) ProtoMessage

func (*MsgUpdateCommission) ProtoMessage()

func (*MsgUpdateCommission) Reset

func (m *MsgUpdateCommission) Reset()

func (*MsgUpdateCommission) Route

func (msg *MsgUpdateCommission) Route() string

func (*MsgUpdateCommission) Size

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

func (*MsgUpdateCommission) String

func (m *MsgUpdateCommission) String() string

func (*MsgUpdateCommission) Type

func (msg *MsgUpdateCommission) Type() string

func (*MsgUpdateCommission) Unmarshal

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

func (*MsgUpdateCommission) ValidateBasic

func (msg *MsgUpdateCommission) ValidateBasic() error

func (*MsgUpdateCommission) XXX_DiscardUnknown

func (m *MsgUpdateCommission) XXX_DiscardUnknown()

func (*MsgUpdateCommission) XXX_Marshal

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

func (*MsgUpdateCommission) XXX_Merge

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

func (*MsgUpdateCommission) XXX_Size

func (m *MsgUpdateCommission) XXX_Size() int

func (*MsgUpdateCommission) XXX_Unmarshal

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

type MsgUpdateCommissionResponse

type MsgUpdateCommissionResponse struct {
}

MsgUpdateCommissionResponse ...

func (*MsgUpdateCommissionResponse) Descriptor

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

func (*MsgUpdateCommissionResponse) Marshal

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

func (*MsgUpdateCommissionResponse) MarshalTo

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

func (*MsgUpdateCommissionResponse) MarshalToSizedBuffer

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

func (*MsgUpdateCommissionResponse) ProtoMessage

func (*MsgUpdateCommissionResponse) ProtoMessage()

func (*MsgUpdateCommissionResponse) Reset

func (m *MsgUpdateCommissionResponse) Reset()

func (*MsgUpdateCommissionResponse) Size

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

func (*MsgUpdateCommissionResponse) String

func (m *MsgUpdateCommissionResponse) String() string

func (*MsgUpdateCommissionResponse) Unmarshal

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

func (*MsgUpdateCommissionResponse) XXX_DiscardUnknown

func (m *MsgUpdateCommissionResponse) XXX_DiscardUnknown()

func (*MsgUpdateCommissionResponse) XXX_Marshal

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

func (*MsgUpdateCommissionResponse) XXX_Merge

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

func (*MsgUpdateCommissionResponse) XXX_Size

func (m *MsgUpdateCommissionResponse) XXX_Size() int

func (*MsgUpdateCommissionResponse) XXX_Unmarshal

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

type MsgUpdateMetadata

type MsgUpdateMetadata struct {
	// creator ...
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// moniker ...
	Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// website ...
	Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"`
}

MsgUpdateMetadata defines a SDK message for claiming the uploader role.

func (*MsgUpdateMetadata) Descriptor

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

func (*MsgUpdateMetadata) GetCreator

func (m *MsgUpdateMetadata) GetCreator() string
func (m *MsgUpdateMetadata) GetLogo() string

func (*MsgUpdateMetadata) GetMoniker

func (m *MsgUpdateMetadata) GetMoniker() string

func (*MsgUpdateMetadata) GetSignBytes

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

func (*MsgUpdateMetadata) GetSigners

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

func (*MsgUpdateMetadata) GetWebsite

func (m *MsgUpdateMetadata) GetWebsite() string

func (*MsgUpdateMetadata) Marshal

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

func (*MsgUpdateMetadata) MarshalTo

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

func (*MsgUpdateMetadata) MarshalToSizedBuffer

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

func (*MsgUpdateMetadata) ProtoMessage

func (*MsgUpdateMetadata) ProtoMessage()

func (*MsgUpdateMetadata) Reset

func (m *MsgUpdateMetadata) Reset()

func (*MsgUpdateMetadata) Route

func (msg *MsgUpdateMetadata) Route() string

func (*MsgUpdateMetadata) Size

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

func (*MsgUpdateMetadata) String

func (m *MsgUpdateMetadata) String() string

func (*MsgUpdateMetadata) Type

func (msg *MsgUpdateMetadata) Type() string

func (*MsgUpdateMetadata) Unmarshal

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

func (*MsgUpdateMetadata) ValidateBasic

func (msg *MsgUpdateMetadata) ValidateBasic() error

func (*MsgUpdateMetadata) XXX_DiscardUnknown

func (m *MsgUpdateMetadata) XXX_DiscardUnknown()

func (*MsgUpdateMetadata) XXX_Marshal

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

func (*MsgUpdateMetadata) XXX_Merge

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

func (*MsgUpdateMetadata) XXX_Size

func (m *MsgUpdateMetadata) XXX_Size() int

func (*MsgUpdateMetadata) XXX_Unmarshal

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

type MsgUpdateMetadataResponse

type MsgUpdateMetadataResponse struct {
}

MsgUpdateMetadataResponse defines the Msg/MsgUpdateMetadata response type.

func (*MsgUpdateMetadataResponse) Descriptor

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

func (*MsgUpdateMetadataResponse) Marshal

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

func (*MsgUpdateMetadataResponse) MarshalTo

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

func (*MsgUpdateMetadataResponse) MarshalToSizedBuffer

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

func (*MsgUpdateMetadataResponse) ProtoMessage

func (*MsgUpdateMetadataResponse) ProtoMessage()

func (*MsgUpdateMetadataResponse) Reset

func (m *MsgUpdateMetadataResponse) Reset()

func (*MsgUpdateMetadataResponse) Size

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

func (*MsgUpdateMetadataResponse) String

func (m *MsgUpdateMetadataResponse) String() string

func (*MsgUpdateMetadataResponse) Unmarshal

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

func (*MsgUpdateMetadataResponse) XXX_DiscardUnknown

func (m *MsgUpdateMetadataResponse) XXX_DiscardUnknown()

func (*MsgUpdateMetadataResponse) XXX_Marshal

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

func (*MsgUpdateMetadataResponse) XXX_Merge

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

func (*MsgUpdateMetadataResponse) XXX_Size

func (m *MsgUpdateMetadataResponse) XXX_Size() int

func (*MsgUpdateMetadataResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// payload defines the x/stakers parameters to update.
	Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}

MsgUpdateParams defines a SDK message for updating the module parameters.

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetPayload

func (m *MsgUpdateParams) GetPayload() string

func (*MsgUpdateParams) GetSigners

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

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the Msg/UpdateParams response type.

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// commission_change_time ...
	CommissionChangeTime uint64 `protobuf:"varint,1,opt,name=commission_change_time,json=commissionChangeTime,proto3" json:"commission_change_time,omitempty"`
	// commission_change_time ...
	LeavePoolTime uint64 `protobuf:"varint,2,opt,name=leave_pool_time,json=leavePoolTime,proto3" json:"leave_pool_time,omitempty"`
}

Params defines the stakers module parameters.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	commissionChangeTime uint64,
	leavePoolTime uint64,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetCommissionChangeTime

func (m *Params) GetCommissionChangeTime() uint64

func (*Params) GetLeavePoolTime

func (m *Params) GetLeavePoolTime() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PoolKeeper

type PoolKeeper interface {
	AssertPoolExists(ctx sdk.Context, poolId uint64) error
	GetPoolWithError(ctx sdk.Context, poolId uint64) (poolTypes.Pool, error)
}

type QUEUE_IDENTIFIER

type QUEUE_IDENTIFIER []byte

ENUM queue types identifiers

var (
	QUEUE_IDENTIFIER_COMMISSION QUEUE_IDENTIFIER = []byte{30, 2}
	QUEUE_IDENTIFIER_LEAVE      QUEUE_IDENTIFIER = []byte{30, 3}
)

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueueState

type QueueState struct {
	// low_index is the tail of the queue. It is the
	// oldest entry in the queue. If this entry isn't
	// due, non of the other entries is.
	LowIndex uint64 `protobuf:"varint,1,opt,name=low_index,json=lowIndex,proto3" json:"low_index,omitempty"`
	// high_index is the head of the queue. New entries
	// are added to the top.
	HighIndex uint64 `protobuf:"varint,2,opt,name=high_index,json=highIndex,proto3" json:"high_index,omitempty"`
}

UnbondingState stores the state for the unbonding of stakes and delegations.

func (*QueueState) Descriptor

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

func (*QueueState) GetHighIndex

func (m *QueueState) GetHighIndex() uint64

func (*QueueState) GetLowIndex

func (m *QueueState) GetLowIndex() uint64

func (*QueueState) Marshal

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

func (*QueueState) MarshalTo

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

func (*QueueState) MarshalToSizedBuffer

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

func (*QueueState) ProtoMessage

func (*QueueState) ProtoMessage()

func (*QueueState) Reset

func (m *QueueState) Reset()

func (*QueueState) Size

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

func (*QueueState) String

func (m *QueueState) String() string

func (*QueueState) Unmarshal

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

func (*QueueState) XXX_DiscardUnknown

func (m *QueueState) XXX_DiscardUnknown()

func (*QueueState) XXX_Marshal

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

func (*QueueState) XXX_Merge

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

func (*QueueState) XXX_Size

func (m *QueueState) XXX_Size() int

func (*QueueState) XXX_Unmarshal

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

type STAKER_STATS

type STAKER_STATS string

ENUM aggregated data types

var STAKER_STATS_COUNT STAKER_STATS = "total_stakers"

type Staker

type Staker struct {
	// address ...
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// commission ...
	Commission string `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission,omitempty"`
	// moniker ...
	Moniker string `protobuf:"bytes,3,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// website ...
	Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"`
	Logo string `protobuf:"bytes,5,opt,name=logo,proto3" json:"logo,omitempty"`
}

Staker contains all metadata for a staker Every address can only create one staker (itself)

func (*Staker) Descriptor

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

func (*Staker) GetAddress

func (m *Staker) GetAddress() string

func (*Staker) GetCommission

func (m *Staker) GetCommission() string
func (m *Staker) GetLogo() string

func (*Staker) GetMoniker

func (m *Staker) GetMoniker() string

func (*Staker) GetWebsite

func (m *Staker) GetWebsite() string

func (*Staker) Marshal

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

func (*Staker) MarshalTo

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

func (*Staker) MarshalToSizedBuffer

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

func (*Staker) ProtoMessage

func (*Staker) ProtoMessage()

func (*Staker) Reset

func (m *Staker) Reset()

func (*Staker) Size

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

func (*Staker) String

func (m *Staker) String() string

func (*Staker) Unmarshal

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

func (*Staker) XXX_DiscardUnknown

func (m *Staker) XXX_DiscardUnknown()

func (*Staker) XXX_Marshal

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

func (*Staker) XXX_Merge

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

func (*Staker) XXX_Size

func (m *Staker) XXX_Size() int

func (*Staker) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateStaker

func (*UnimplementedMsgServer) JoinPool

func (*UnimplementedMsgServer) LeavePool

func (*UnimplementedMsgServer) UpdateCommission

func (*UnimplementedMsgServer) UpdateMetadata

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

type UpgradeKeeper

type UpgradeKeeper interface {
	ScheduleUpgrade(ctx sdk.Context, plan types.Plan) error
}

type Valaccount

type Valaccount struct {
	// pool_id defines the pool in which the address
	// is allowed to vote in.
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// staker is the address the valaccount is voting for.
	Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
	// valaddress is the account stored on the protocol
	// node which votes for the staker in the given pool
	Valaddress string `protobuf:"bytes,3,opt,name=valaddress,proto3" json:"valaddress,omitempty"`
	// When a node is inactive (does not vote at all)
	// A point is added, after a certain amount of points
	// is reached the node gets kicked out.
	Points uint64 `protobuf:"varint,4,opt,name=points,proto3" json:"points,omitempty"`
	// isLeaving indicates if a staker is leaving the given pool.
	IsLeaving bool `protobuf:"varint,5,opt,name=is_leaving,json=isLeaving,proto3" json:"is_leaving,omitempty"`
}

Valaccount gets authorized by a staker to vote in a given pool by favor of the staker.

func (*Valaccount) Descriptor

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

func (*Valaccount) GetIsLeaving

func (m *Valaccount) GetIsLeaving() bool

func (*Valaccount) GetPoints

func (m *Valaccount) GetPoints() uint64

func (*Valaccount) GetPoolId

func (m *Valaccount) GetPoolId() uint64

func (*Valaccount) GetStaker

func (m *Valaccount) GetStaker() string

func (*Valaccount) GetValaddress

func (m *Valaccount) GetValaddress() string

func (*Valaccount) Marshal

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

func (*Valaccount) MarshalTo

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

func (*Valaccount) MarshalToSizedBuffer

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

func (*Valaccount) ProtoMessage

func (*Valaccount) ProtoMessage()

func (*Valaccount) Reset

func (m *Valaccount) Reset()

func (*Valaccount) Size

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

func (*Valaccount) String

func (m *Valaccount) String() string

func (*Valaccount) Unmarshal

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

func (*Valaccount) XXX_DiscardUnknown

func (m *Valaccount) XXX_DiscardUnknown()

func (*Valaccount) XXX_Marshal

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

func (*Valaccount) XXX_Merge

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

func (*Valaccount) XXX_Size

func (m *Valaccount) XXX_Size() int

func (*Valaccount) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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