types

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 32 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

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
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")
	ErrInvalidIdentityString   = errors.Register(ModuleName, 1113, "invalid identity: %s")
	ErrNotEnoughRewards        = errors.Register(ModuleName, 1114, "claim amount is larger than current rewards")

	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 DefaultCommission = sdk.MustNewDecFromStr("0.1")
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 RegisterInterfaces

func RegisterInterfaces(registry codecTypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v1.2.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
	// 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) 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 EventClaimCommissionRewards added in v1.3.0

type EventClaimCommissionRewards 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"`
}

EventClaimCommissionRewards ... emitted_by: MsgClaimCommissionRewards

func (*EventClaimCommissionRewards) Descriptor added in v1.3.0

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

func (*EventClaimCommissionRewards) GetAmount added in v1.3.0

func (m *EventClaimCommissionRewards) GetAmount() uint64

func (*EventClaimCommissionRewards) GetStaker added in v1.3.0

func (m *EventClaimCommissionRewards) GetStaker() string

func (*EventClaimCommissionRewards) Marshal added in v1.3.0

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

func (*EventClaimCommissionRewards) MarshalTo added in v1.3.0

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

func (*EventClaimCommissionRewards) MarshalToSizedBuffer added in v1.3.0

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

func (*EventClaimCommissionRewards) ProtoMessage added in v1.3.0

func (*EventClaimCommissionRewards) ProtoMessage()

func (*EventClaimCommissionRewards) Reset added in v1.3.0

func (m *EventClaimCommissionRewards) Reset()

func (*EventClaimCommissionRewards) Size added in v1.3.0

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

func (*EventClaimCommissionRewards) String added in v1.3.0

func (m *EventClaimCommissionRewards) String() string

func (*EventClaimCommissionRewards) Unmarshal added in v1.3.0

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

func (*EventClaimCommissionRewards) XXX_DiscardUnknown added in v1.3.0

func (m *EventClaimCommissionRewards) XXX_DiscardUnknown()

func (*EventClaimCommissionRewards) XXX_Marshal added in v1.3.0

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

func (*EventClaimCommissionRewards) XXX_Merge added in v1.3.0

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

func (*EventClaimCommissionRewards) XXX_Size added in v1.3.0

func (m *EventClaimCommissionRewards) XXX_Size() int

func (*EventClaimCommissionRewards) XXX_Unmarshal added in v1.3.0

func (m *EventClaimCommissionRewards) XXX_Unmarshal(b []byte) 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"`
	// commission
	Commission github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
}

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 github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
}

EventUpdateCommission ... emitted_by: EndBlock

func (*EventUpdateCommission) Descriptor

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

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"`
	// identity ...
	Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"`
	// security_contact ...
	SecurityContact string `protobuf:"bytes,5,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"`
	// details ...
	Details string `protobuf:"bytes,6,opt,name=details,proto3" json:"details,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 (*EventUpdateMetadata) GetDetails added in v1.1.0

func (m *EventUpdateMetadata) GetDetails() string

func (*EventUpdateMetadata) GetIdentity added in v1.1.0

func (m *EventUpdateMetadata) GetIdentity() string

func (*EventUpdateMetadata) GetMoniker

func (m *EventUpdateMetadata) GetMoniker() string

func (*EventUpdateMetadata) GetSecurityContact added in v1.1.0

func (m *EventUpdateMetadata) GetSecurityContact() 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 EventUpdateParams added in v1.1.0

type EventUpdateParams struct {
	// old_params is the module's old parameters.
	OldParams Params `protobuf:"bytes,1,opt,name=old_params,json=oldParams,proto3" json:"old_params"`
	// new_params is the module's new parameters.
	NewParams Params `protobuf:"bytes,2,opt,name=new_params,json=newParams,proto3" json:"new_params"`
	// payload is the parameter updates that were performed.
	Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
}

EventUpdateParams is an event emitted when the module parameters are updated. emitted_by: MsgUpdateParams

func (*EventUpdateParams) Descriptor added in v1.1.0

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

func (*EventUpdateParams) GetNewParams added in v1.1.0

func (m *EventUpdateParams) GetNewParams() Params

func (*EventUpdateParams) GetOldParams added in v1.1.0

func (m *EventUpdateParams) GetOldParams() Params

func (*EventUpdateParams) GetPayload added in v1.1.0

func (m *EventUpdateParams) GetPayload() string

func (*EventUpdateParams) Marshal added in v1.1.0

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

func (*EventUpdateParams) MarshalTo added in v1.1.0

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

func (*EventUpdateParams) MarshalToSizedBuffer added in v1.1.0

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

func (*EventUpdateParams) ProtoMessage added in v1.1.0

func (*EventUpdateParams) ProtoMessage()

func (*EventUpdateParams) Reset added in v1.1.0

func (m *EventUpdateParams) Reset()

func (*EventUpdateParams) Size added in v1.1.0

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

func (*EventUpdateParams) String added in v1.1.0

func (m *EventUpdateParams) String() string

func (*EventUpdateParams) Unmarshal added in v1.1.0

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

func (*EventUpdateParams) XXX_DiscardUnknown added in v1.1.0

func (m *EventUpdateParams) XXX_DiscardUnknown()

func (*EventUpdateParams) XXX_Marshal added in v1.1.0

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

func (*EventUpdateParams) XXX_Merge added in v1.1.0

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

func (*EventUpdateParams) XXX_Size added in v1.1.0

func (m *EventUpdateParams) XXX_Size() int

func (*EventUpdateParams) XXX_Unmarshal added in v1.1.0

func (m *EventUpdateParams) 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 MsgClaimCommissionRewards added in v1.3.0

type MsgClaimCommissionRewards 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"`
}

MsgClaimCommissionRewards ...

func (*MsgClaimCommissionRewards) Descriptor added in v1.3.0

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

func (*MsgClaimCommissionRewards) GetAmount added in v1.3.0

func (m *MsgClaimCommissionRewards) GetAmount() uint64

func (*MsgClaimCommissionRewards) GetCreator added in v1.3.0

func (m *MsgClaimCommissionRewards) GetCreator() string

func (*MsgClaimCommissionRewards) GetSignBytes added in v1.3.0

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

func (*MsgClaimCommissionRewards) GetSigners added in v1.3.0

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

func (*MsgClaimCommissionRewards) Marshal added in v1.3.0

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

func (*MsgClaimCommissionRewards) MarshalTo added in v1.3.0

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

func (*MsgClaimCommissionRewards) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgClaimCommissionRewards) ProtoMessage added in v1.3.0

func (*MsgClaimCommissionRewards) ProtoMessage()

func (*MsgClaimCommissionRewards) Reset added in v1.3.0

func (m *MsgClaimCommissionRewards) Reset()

func (*MsgClaimCommissionRewards) Route added in v1.3.0

func (msg *MsgClaimCommissionRewards) Route() string

func (*MsgClaimCommissionRewards) Size added in v1.3.0

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

func (*MsgClaimCommissionRewards) String added in v1.3.0

func (m *MsgClaimCommissionRewards) String() string

func (*MsgClaimCommissionRewards) Type added in v1.3.0

func (msg *MsgClaimCommissionRewards) Type() string

func (*MsgClaimCommissionRewards) Unmarshal added in v1.3.0

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

func (*MsgClaimCommissionRewards) ValidateBasic added in v1.3.0

func (msg *MsgClaimCommissionRewards) ValidateBasic() error

func (*MsgClaimCommissionRewards) XXX_DiscardUnknown added in v1.3.0

func (m *MsgClaimCommissionRewards) XXX_DiscardUnknown()

func (*MsgClaimCommissionRewards) XXX_Marshal added in v1.3.0

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

func (*MsgClaimCommissionRewards) XXX_Merge added in v1.3.0

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

func (*MsgClaimCommissionRewards) XXX_Size added in v1.3.0

func (m *MsgClaimCommissionRewards) XXX_Size() int

func (*MsgClaimCommissionRewards) XXX_Unmarshal added in v1.3.0

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

type MsgClaimCommissionRewardsResponse added in v1.3.0

type MsgClaimCommissionRewardsResponse struct {
}

MsgClaimCommissionRewardsResponse ...

func (*MsgClaimCommissionRewardsResponse) Descriptor added in v1.3.0

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

func (*MsgClaimCommissionRewardsResponse) Marshal added in v1.3.0

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

func (*MsgClaimCommissionRewardsResponse) MarshalTo added in v1.3.0

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

func (*MsgClaimCommissionRewardsResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgClaimCommissionRewardsResponse) ProtoMessage added in v1.3.0

func (*MsgClaimCommissionRewardsResponse) ProtoMessage()

func (*MsgClaimCommissionRewardsResponse) Reset added in v1.3.0

func (*MsgClaimCommissionRewardsResponse) Size added in v1.3.0

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

func (*MsgClaimCommissionRewardsResponse) String added in v1.3.0

func (*MsgClaimCommissionRewardsResponse) Unmarshal added in v1.3.0

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

func (*MsgClaimCommissionRewardsResponse) XXX_DiscardUnknown added in v1.3.0

func (m *MsgClaimCommissionRewardsResponse) XXX_DiscardUnknown()

func (*MsgClaimCommissionRewardsResponse) XXX_Marshal added in v1.3.0

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

func (*MsgClaimCommissionRewardsResponse) XXX_Merge added in v1.3.0

func (*MsgClaimCommissionRewardsResponse) XXX_Size added in v1.3.0

func (m *MsgClaimCommissionRewardsResponse) XXX_Size() int

func (*MsgClaimCommissionRewardsResponse) XXX_Unmarshal added in v1.3.0

func (m *MsgClaimCommissionRewardsResponse) 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)
	// ClaimCommissionRewards ...
	ClaimCommissionRewards(ctx context.Context, in *MsgClaimCommissionRewards, opts ...grpc.CallOption) (*MsgClaimCommissionRewardsResponse, 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 is the address of the staker.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// amount is the initial self-stake of the staker.
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// commission is the percentage that is deducted from rewards before
	// distributing the staker's delegators.
	Commission github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
}

MsgCreateStaker defines a SDK message for creating a staker.

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)
	// ClaimCommissionRewards ...
	ClaimCommissionRewards(context.Context, *MsgClaimCommissionRewards) (*MsgClaimCommissionRewardsResponse, 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 github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
}

MsgUpdateCommission ...

func (*MsgUpdateCommission) Descriptor

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

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"`
	// identity from keybase.io
	Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"`
	// security_contact ...
	SecurityContact string `protobuf:"bytes,5,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"`
	// details ...
	Details string `protobuf:"bytes,6,opt,name=details,proto3" json:"details,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 (*MsgUpdateMetadata) GetDetails added in v1.1.0

func (m *MsgUpdateMetadata) GetDetails() string

func (*MsgUpdateMetadata) GetIdentity added in v1.1.0

func (m *MsgUpdateMetadata) GetIdentity() string

func (*MsgUpdateMetadata) GetMoniker

func (m *MsgUpdateMetadata) GetMoniker() string

func (*MsgUpdateMetadata) GetSecurityContact added in v1.1.0

func (m *MsgUpdateMetadata) GetSecurityContact() 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 github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
	// 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"`
	// identity is the 64 bit keybase.io identity string
	Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"`
	// security_contact ...
	SecurityContact string `protobuf:"bytes,6,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"`
	// details are some additional notes the staker finds important
	Details string `protobuf:"bytes,7,opt,name=details,proto3" json:"details,omitempty"`
	// commission_rewards are the rewards in $KYVE earned through commission
	CommissionRewards uint64 `protobuf:"varint,8,opt,name=commission_rewards,json=commissionRewards,proto3" json:"commission_rewards,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) GetCommissionRewards added in v1.3.0

func (m *Staker) GetCommissionRewards() uint64

func (*Staker) GetDetails added in v1.1.0

func (m *Staker) GetDetails() string

func (*Staker) GetIdentity added in v1.1.0

func (m *Staker) GetIdentity() string

func (*Staker) GetMoniker

func (m *Staker) GetMoniker() string

func (*Staker) GetSecurityContact added in v1.1.0

func (m *Staker) GetSecurityContact() 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) ClaimCommissionRewards added in v1.3.0

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