staking

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "staking"
)

Variables

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 (
	ErrInvalidLengthStaking        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStaking          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStaking = 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 BondStatus_name = map[int32]string{
	0: "BOND_STATUS_UNSPECIFIED",
	1: "BOND_STATUS_UNBONDED",
	2: "BOND_STATUS_UNBONDING",
	3: "BOND_STATUS_BONDED",
}
View Source
var BondStatus_value = map[string]int32{
	"BOND_STATUS_UNSPECIFIED": 0,
	"BOND_STATUS_UNBONDED":    1,
	"BOND_STATUS_UNBONDING":   2,
	"BOND_STATUS_BONDED":      3,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func MustMarshalDelegation

func MustMarshalDelegation(cdc codec.BinaryMarshaler, delegation Delegation) []byte

MustMarshalDelegation returns the delegation bytes. Panics if fails

func MustMarshalRED

func MustMarshalRED(cdc codec.BinaryMarshaler, red Redelegation) []byte

MustMarshalRED returns the Redelegation bytes. Panics if fails.

func MustMarshalUBD

func MustMarshalUBD(cdc codec.BinaryMarshaler, ubd UnbondingDelegation) []byte

return the unbonding delegation

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BeginRedelegateRequest

type BeginRedelegateRequest struct {
	ValidatorSrcAddress string
	ValidatorDstAddress string
	Amount              sdk.DecCoin
}

type BondStatus

type BondStatus int32

BondStatus is the status of a validator.

const (
	// UNSPECIFIED defines an invalid validator status.
	Unspecified BondStatus = 0
	// UNBONDED defines a validator that is not bonded.
	Unbonded BondStatus = 1
	// UNBONDING defines a validator that is unbonding.
	Unbonding BondStatus = 2
	// BONDED defines a validator that is bonded.
	Bonded BondStatus = 3
)

func (BondStatus) EnumDescriptor

func (BondStatus) EnumDescriptor() ([]byte, []int)

func (BondStatus) String

func (x BondStatus) String() string

type Client

type Client interface {
	sdk.Module

	CreateValidator(request CreateValidatorRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error)
	EditValidator(request EditValidatorRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error)
	Delegate(request DelegateRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error)
	Undelegate(request UndelegateRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error)
	BeginRedelegate(request BeginRedelegateRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error)

	QueryValidators(status string, page, size uint64) (QueryValidatorsResp, sdk.Error)
	QueryValidator(validatorAddr string) (QueryValidatorResp, sdk.Error)
	QueryValidatorDelegations(validatorAddr string, page, size uint64) (QueryValidatorDelegationsResp, sdk.Error)
	QueryValidatorUnbondingDelegations(validatorAddr string, page, size uint64) (QueryValidatorUnbondingDelegationsResp, sdk.Error)
	QueryDelegation(delegatorAddr string, validatorAddr string) (QueryDelegationResp, sdk.Error)
	QueryUnbondingDelegation(delegatorAddr string, validatorAddr string) (QueryUnbondingDelegationResp, sdk.Error)
	QueryDelegatorDelegations(delegatorAddr string, page, size uint64) (QueryDelegatorDelegationsResp, sdk.Error)
	QueryDelegatorUnbondingDelegations(delegatorAddr string, page, size uint64) (QueryDelegatorUnbondingDelegationsResp, sdk.Error)
	QueryRedelegations(request QueryRedelegationsReq) (QueryRedelegationsResp, sdk.Error)
	QueryDelegatorValidators(delegatorAddr string, page, size uint64) (QueryDelegatorValidatorsResp, sdk.Error)
	QueryDelegatorValidator(delegatorAddr string, validatorAddr string) (QueryValidatorResp, sdk.Error)
	QueryHistoricalInfo(height int64) (QueryHistoricalInfoResp, sdk.Error)
	QueryPool() (QueryPoolResp, sdk.Error)
	QueryParams() (QueryParamsResp, sdk.Error)
}

expose Staking module api for user

func NewClient

func NewClient(baseClient sdk.BaseClient, marshaler codec.Marshaler) Client

type Commission

type Commission struct {
	CommissionRates `protobuf:"bytes,1,opt,name=commission_rates,json=commissionRates,proto3,embedded=commission_rates" json:"commission_rates"`
	UpdateTime      time.Time `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,stdtime" json:"update_time" yaml:"update_time"`
}

Commission defines commission parameters for a given validator.

func (*Commission) Descriptor

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

func (*Commission) Equal

func (this *Commission) Equal(that interface{}) bool

func (*Commission) GetUpdateTime

func (m *Commission) GetUpdateTime() time.Time

func (*Commission) Marshal

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

func (*Commission) MarshalTo

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

func (*Commission) MarshalToSizedBuffer

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

func (*Commission) ProtoMessage

func (*Commission) ProtoMessage()

func (*Commission) Reset

func (m *Commission) Reset()

func (*Commission) Size

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

func (Commission) String

func (c Commission) String() string

String implements the Stringer interface for a Commission object.

func (*Commission) Unmarshal

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

func (*Commission) XXX_DiscardUnknown

func (m *Commission) XXX_DiscardUnknown()

func (*Commission) XXX_Marshal

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

func (*Commission) XXX_Merge

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

func (*Commission) XXX_Size

func (m *Commission) XXX_Size() int

func (*Commission) XXX_Unmarshal

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

type CommissionRates

type CommissionRates struct {
	Rate          plugchain_sdk_go_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/oracleNetworkProtocol/plugchain-sdk-go/types.Dec" json:"rate"`
	MaxRate       plugchain_sdk_go_types.Dec `` /* 159-byte string literal not displayed */
	MaxChangeRate plugchain_sdk_go_types.Dec `` /* 186-byte string literal not displayed */
}

CommissionRates defines the initial commission rates to be used for creating a validator.

func (*CommissionRates) Descriptor

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

func (*CommissionRates) Equal

func (this *CommissionRates) Equal(that interface{}) bool

func (*CommissionRates) Marshal

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

func (*CommissionRates) MarshalTo

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

func (*CommissionRates) MarshalToSizedBuffer

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

func (*CommissionRates) ProtoMessage

func (*CommissionRates) ProtoMessage()

func (*CommissionRates) Reset

func (m *CommissionRates) Reset()

func (*CommissionRates) Size

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

func (CommissionRates) String

func (cr CommissionRates) String() string

String implements the Stringer interface for a CommissionRates object.

func (*CommissionRates) Unmarshal

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

func (*CommissionRates) XXX_DiscardUnknown

func (m *CommissionRates) XXX_DiscardUnknown()

func (*CommissionRates) XXX_Marshal

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

func (*CommissionRates) XXX_Merge

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

func (*CommissionRates) XXX_Size

func (m *CommissionRates) XXX_Size() int

func (*CommissionRates) XXX_Unmarshal

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

type CreateValidatorRequest

type CreateValidatorRequest struct {
	Moniker           string      `json:"moniker"`
	Rate              sdk.Dec     `json:"rate"`
	MaxRate           sdk.Dec     `json:"max_rate"`
	MaxChangeRate     sdk.Dec     `json:"max_change_rate"`
	MinSelfDelegation sdk.Int     `json:"min_self_delegation"`
	Pubkey            string      `json:"pubkey"`
	Value             sdk.DecCoin `json:"value"`
}

type DVPair

type DVPair struct {
	DelegatorAddress string `` /* 134-byte string literal not displayed */
	ValidatorAddress string `` /* 134-byte string literal not displayed */
}

DVPair is struct that just has a delegator-validator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DVPair can be used to construct the key to getting an UnbondingDelegation from state.

func (*DVPair) Descriptor

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

func (*DVPair) Marshal

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

func (*DVPair) MarshalTo

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

func (*DVPair) MarshalToSizedBuffer

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

func (*DVPair) ProtoMessage

func (*DVPair) ProtoMessage()

func (*DVPair) Reset

func (m *DVPair) Reset()

func (*DVPair) Size

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

func (DVPair) String

func (dv DVPair) String() string

String implements the Stringer interface for a DVPair object.

func (*DVPair) Unmarshal

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

func (*DVPair) XXX_DiscardUnknown

func (m *DVPair) XXX_DiscardUnknown()

func (*DVPair) XXX_Marshal

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

func (*DVPair) XXX_Merge

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

func (*DVPair) XXX_Size

func (m *DVPair) XXX_Size() int

func (*DVPair) XXX_Unmarshal

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

type DVPairs

type DVPairs struct {
	Pairs []DVPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

DVPairs defines an array of DVPair objects.

func (*DVPairs) Descriptor

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

func (*DVPairs) GetPairs

func (m *DVPairs) GetPairs() []DVPair

func (*DVPairs) Marshal

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

func (*DVPairs) MarshalTo

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

func (*DVPairs) MarshalToSizedBuffer

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

func (*DVPairs) ProtoMessage

func (*DVPairs) ProtoMessage()

func (*DVPairs) Reset

func (m *DVPairs) Reset()

func (*DVPairs) Size

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

func (*DVPairs) String

func (m *DVPairs) String() string

func (*DVPairs) Unmarshal

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

func (*DVPairs) XXX_DiscardUnknown

func (m *DVPairs) XXX_DiscardUnknown()

func (*DVPairs) XXX_Marshal

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

func (*DVPairs) XXX_Merge

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

func (*DVPairs) XXX_Size

func (m *DVPairs) XXX_Size() int

func (*DVPairs) XXX_Unmarshal

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

type DVVTriplet

type DVVTriplet struct {
	DelegatorAddress    string `` /* 134-byte string literal not displayed */
	ValidatorSrcAddress string `` /* 149-byte string literal not displayed */
	ValidatorDstAddress string `` /* 149-byte string literal not displayed */
}

DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data. It is intended to be used as a marshalable pointer. For example, a DVVTriplet can be used to construct the key to getting a Redelegation from state.

func (*DVVTriplet) Descriptor

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

func (*DVVTriplet) Marshal

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

func (*DVVTriplet) MarshalTo

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

func (*DVVTriplet) MarshalToSizedBuffer

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

func (*DVVTriplet) ProtoMessage

func (*DVVTriplet) ProtoMessage()

func (*DVVTriplet) Reset

func (m *DVVTriplet) Reset()

func (*DVVTriplet) Size

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

func (DVVTriplet) String

func (dvv DVVTriplet) String() string

String implements the Stringer interface for a DVVTriplet object.

func (*DVVTriplet) Unmarshal

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

func (*DVVTriplet) XXX_DiscardUnknown

func (m *DVVTriplet) XXX_DiscardUnknown()

func (*DVVTriplet) XXX_Marshal

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

func (*DVVTriplet) XXX_Merge

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

func (*DVVTriplet) XXX_Size

func (m *DVVTriplet) XXX_Size() int

func (*DVVTriplet) XXX_Unmarshal

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

type DVVTriplets

type DVVTriplets struct {
	Triplets []DVVTriplet `protobuf:"bytes,1,rep,name=triplets,proto3" json:"triplets"`
}

DVVTriplets defines an array of DVVTriplet objects.

func (*DVVTriplets) Descriptor

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

func (*DVVTriplets) GetTriplets

func (m *DVVTriplets) GetTriplets() []DVVTriplet

func (*DVVTriplets) Marshal

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

func (*DVVTriplets) MarshalTo

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

func (*DVVTriplets) MarshalToSizedBuffer

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

func (*DVVTriplets) ProtoMessage

func (*DVVTriplets) ProtoMessage()

func (*DVVTriplets) Reset

func (m *DVVTriplets) Reset()

func (*DVVTriplets) Size

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

func (*DVVTriplets) String

func (m *DVVTriplets) String() string

func (*DVVTriplets) Unmarshal

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

func (*DVVTriplets) XXX_DiscardUnknown

func (m *DVVTriplets) XXX_DiscardUnknown()

func (*DVVTriplets) XXX_Marshal

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

func (*DVVTriplets) XXX_Merge

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

func (*DVVTriplets) XXX_Size

func (m *DVVTriplets) XXX_Size() int

func (*DVVTriplets) XXX_Unmarshal

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

type DelegateRequest

type DelegateRequest struct {
	ValidatorAddr string      `json:"validator_address"`
	Amount        sdk.DecCoin `json:"amount"`
}

type Delegation

type Delegation struct {
	DelegatorAddress string                     `` /* 134-byte string literal not displayed */
	ValidatorAddress string                     `` /* 134-byte string literal not displayed */
	Shares           plugchain_sdk_go_types.Dec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/xiaka53/plugchain-sdk-go/types.Dec" json:"shares"`
}

Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.

func MustUnmarshalDelegation

func MustUnmarshalDelegation(cdc codec.BinaryMarshaler, value []byte) Delegation

MustUnmarshalDelegation return the unmarshaled delegation from bytes. Panics if fails.

func NewDelegation

func NewDelegation(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, shares sdk.Dec) Delegation

NewDelegation creates a new delegation object

func UnmarshalDelegation

func UnmarshalDelegation(cdc codec.BinaryMarshaler, value []byte) (delegation Delegation, err error)

return the delegation

func (*Delegation) Descriptor

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

func (Delegation) GetDelegatorAddr

func (d Delegation) GetDelegatorAddr() sdk.AccAddress

func (Delegation) GetShares

func (d Delegation) GetShares() sdk.Dec

func (Delegation) GetValidatorAddr

func (d Delegation) GetValidatorAddr() sdk.ValAddress

func (*Delegation) Marshal

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

func (*Delegation) MarshalTo

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

func (*Delegation) MarshalToSizedBuffer

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

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) Reset

func (m *Delegation) Reset()

func (*Delegation) Size

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

func (Delegation) String

func (d Delegation) String() string

String returns a human readable string representation of a Delegation.

func (*Delegation) Unmarshal

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

func (*Delegation) XXX_DiscardUnknown

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal

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

func (*Delegation) XXX_Merge

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

func (*Delegation) XXX_Size

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal

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

type DelegationI

type DelegationI interface {
	GetDelegatorAddr() sdk.AccAddress // delegator sdk.AccAddress for the bond
	GetValidatorAddr() sdk.ValAddress // validator operator address
	GetShares() sdk.Dec               // amount of validator's shares held in this delegation
}

DelegationI delegation bond for a delegated proof of stake system

type DelegationResponse

type DelegationResponse struct {
	Delegation Delegation  `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
	Balance    types2.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance"`
}

DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.

func NewDelegationResp

func NewDelegationResp(
	delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, shares sdk.Dec, balance sdk.Coin,
) DelegationResponse

NewDelegationResp creates a new DelegationResponse instance

func (DelegationResponse) Convert

func (d DelegationResponse) Convert() interface{}

func (*DelegationResponse) Descriptor

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

func (*DelegationResponse) GetBalance

func (m *DelegationResponse) GetBalance() types2.Coin

func (*DelegationResponse) GetDelegation

func (m *DelegationResponse) GetDelegation() Delegation

func (*DelegationResponse) Marshal

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

func (DelegationResponse) MarshalJSON

func (d DelegationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface. This is so we can achieve a flattened structure while embedding other types.

func (*DelegationResponse) MarshalTo

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

func (*DelegationResponse) MarshalToSizedBuffer

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

func (*DelegationResponse) ProtoMessage

func (*DelegationResponse) ProtoMessage()

func (*DelegationResponse) Reset

func (m *DelegationResponse) Reset()

func (*DelegationResponse) Size

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

func (DelegationResponse) String

func (d DelegationResponse) String() string

String implements the Stringer interface for DelegationResponse.

func (*DelegationResponse) Unmarshal

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

func (*DelegationResponse) UnmarshalJSON

func (d *DelegationResponse) UnmarshalJSON(bz []byte) error

UnmarshalJSON implements the json.Unmarshaler interface. This is so we can achieve a flattened structure while embedding other types.

func (*DelegationResponse) XXX_DiscardUnknown

func (m *DelegationResponse) XXX_DiscardUnknown()

func (*DelegationResponse) XXX_Marshal

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

func (*DelegationResponse) XXX_Merge

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

func (*DelegationResponse) XXX_Size

func (m *DelegationResponse) XXX_Size() int

func (*DelegationResponse) XXX_Unmarshal

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

type DelegationResponses

type DelegationResponses []DelegationResponse

DelegationResponses is a collection of DelegationResp

func (DelegationResponses) String

func (d DelegationResponses) String() (out string)

String implements the Stringer interface for DelegationResponses.

type Delegations

type Delegations []Delegation

Delegations is a collection of delegations

func (Delegations) String

func (d Delegations) String() (out string)

type Description

type Description struct {
	Moniker         string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
	Identity        string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	Website         string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	SecurityContact string `` /* 130-byte string literal not displayed */
	Details         string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
}

Description defines a validator description.

func (*Description) Descriptor

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

func (*Description) Equal

func (this *Description) Equal(that interface{}) bool

func (*Description) GetDetails

func (m *Description) GetDetails() string

func (*Description) GetIdentity

func (m *Description) GetIdentity() string

func (*Description) GetMoniker

func (m *Description) GetMoniker() string

func (*Description) GetSecurityContact

func (m *Description) GetSecurityContact() string

func (*Description) GetWebsite

func (m *Description) GetWebsite() string

func (*Description) Marshal

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

func (*Description) MarshalTo

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

func (*Description) MarshalToSizedBuffer

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

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) Reset

func (m *Description) Reset()

func (*Description) Size

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

func (Description) String

func (d Description) String() string

String implements the Stringer interface for a Description object.

func (*Description) Unmarshal

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

func (*Description) XXX_DiscardUnknown

func (m *Description) XXX_DiscardUnknown()

func (*Description) XXX_Marshal

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

func (*Description) XXX_Merge

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

func (*Description) XXX_Size

func (m *Description) XXX_Size() int

func (*Description) XXX_Unmarshal

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

type EditValidatorRequest

type EditValidatorRequest struct {
	Moniker           string  `json:"moniker"`
	Identity          string  `json:"identity"`
	Website           string  `json:"website"`
	SecurityContact   string  `json:"security_contact"`
	Details           string  `json:"details"`
	CommissionRate    sdk.Dec `json:"commission_rate"`
	MinSelfDelegation sdk.Int `json:"min_self_delegation"`
}

type HistoricalInfo

type HistoricalInfo struct {
	Header types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"`
	Valset []Validator  `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset"`
}

HistoricalInfo contains header and validator information for a given block. It is stored as part of staking module's state, which persists the `n` most recent HistoricalInfo (`n` is set by the staking module's `historical_entries` parameter).

func (*HistoricalInfo) Descriptor

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

func (*HistoricalInfo) GetHeader

func (m *HistoricalInfo) GetHeader() types.Header

func (*HistoricalInfo) GetValset

func (m *HistoricalInfo) GetValset() []Validator

func (*HistoricalInfo) Marshal

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

func (*HistoricalInfo) MarshalTo

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

func (*HistoricalInfo) MarshalToSizedBuffer

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

func (*HistoricalInfo) ProtoMessage

func (*HistoricalInfo) ProtoMessage()

func (*HistoricalInfo) Reset

func (m *HistoricalInfo) Reset()

func (*HistoricalInfo) Size

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

func (*HistoricalInfo) String

func (m *HistoricalInfo) String() string

func (*HistoricalInfo) Unmarshal

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

func (*HistoricalInfo) XXX_DiscardUnknown

func (m *HistoricalInfo) XXX_DiscardUnknown()

func (*HistoricalInfo) XXX_Marshal

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

func (*HistoricalInfo) XXX_Merge

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

func (*HistoricalInfo) XXX_Size

func (m *HistoricalInfo) XXX_Size() int

func (*HistoricalInfo) XXX_Unmarshal

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

type MsgBeginRedelegate

type MsgBeginRedelegate struct {
	DelegatorAddress    string      `` /* 134-byte string literal not displayed */
	ValidatorSrcAddress string      `` /* 149-byte string literal not displayed */
	ValidatorDstAddress string      `` /* 149-byte string literal not displayed */
	Amount              types1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

MsgBeginRedelegate defines a SDK message for performing a redelegation of coins from a delegator and source validator to a destination validator.

func (*MsgBeginRedelegate) Descriptor

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

func (MsgBeginRedelegate) GetSignBytes

func (msg MsgBeginRedelegate) GetSignBytes() []byte

func (MsgBeginRedelegate) GetSigners

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

func (*MsgBeginRedelegate) Marshal

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

func (*MsgBeginRedelegate) MarshalTo

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

func (*MsgBeginRedelegate) MarshalToSizedBuffer

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

func (*MsgBeginRedelegate) ProtoMessage

func (*MsgBeginRedelegate) ProtoMessage()

func (*MsgBeginRedelegate) Reset

func (m *MsgBeginRedelegate) Reset()

func (MsgBeginRedelegate) Route

func (msg MsgBeginRedelegate) Route() string

func (*MsgBeginRedelegate) Size

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

func (*MsgBeginRedelegate) String

func (m *MsgBeginRedelegate) String() string

func (MsgBeginRedelegate) Type

func (msg MsgBeginRedelegate) Type() string

func (*MsgBeginRedelegate) Unmarshal

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

func (MsgBeginRedelegate) ValidateBasic

func (msg MsgBeginRedelegate) ValidateBasic() error

func (*MsgBeginRedelegate) XXX_DiscardUnknown

func (m *MsgBeginRedelegate) XXX_DiscardUnknown()

func (*MsgBeginRedelegate) XXX_Marshal

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

func (*MsgBeginRedelegate) XXX_Merge

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

func (*MsgBeginRedelegate) XXX_Size

func (m *MsgBeginRedelegate) XXX_Size() int

func (*MsgBeginRedelegate) XXX_Unmarshal

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

type MsgBeginRedelegateResponse

type MsgBeginRedelegateResponse struct {
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.

func (*MsgBeginRedelegateResponse) Descriptor

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

func (*MsgBeginRedelegateResponse) GetCompletionTime

func (m *MsgBeginRedelegateResponse) GetCompletionTime() time.Time

func (*MsgBeginRedelegateResponse) Marshal

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

func (*MsgBeginRedelegateResponse) MarshalTo

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

func (*MsgBeginRedelegateResponse) MarshalToSizedBuffer

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

func (*MsgBeginRedelegateResponse) ProtoMessage

func (*MsgBeginRedelegateResponse) ProtoMessage()

func (*MsgBeginRedelegateResponse) Reset

func (m *MsgBeginRedelegateResponse) Reset()

func (*MsgBeginRedelegateResponse) Size

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

func (*MsgBeginRedelegateResponse) String

func (m *MsgBeginRedelegateResponse) String() string

func (*MsgBeginRedelegateResponse) Unmarshal

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

func (*MsgBeginRedelegateResponse) XXX_DiscardUnknown

func (m *MsgBeginRedelegateResponse) XXX_DiscardUnknown()

func (*MsgBeginRedelegateResponse) XXX_Marshal

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

func (*MsgBeginRedelegateResponse) XXX_Merge

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

func (*MsgBeginRedelegateResponse) XXX_Size

func (m *MsgBeginRedelegateResponse) XXX_Size() int

func (*MsgBeginRedelegateResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateValidator defines a method for creating a new validator.
	CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error)
	// EditValidator defines a method for editing an existing validator.
	EditValidator(ctx context.Context, in *MsgEditValidator, opts ...grpc.CallOption) (*MsgEditValidatorResponse, error)
	// Delegate defines a method for performing a delegation of coins
	// from a delegator to a validator.
	Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error)
	// BeginRedelegate defines a method for performing a redelegation
	// of coins from a delegator and source validator to a destination validator.
	BeginRedelegate(ctx context.Context, in *MsgBeginRedelegate, opts ...grpc.CallOption) (*MsgBeginRedelegateResponse, error)
	// Undelegate defines a method for performing an undelegation from a
	// delegate and a validator.
	Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, 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 MsgCreateValidator

type MsgCreateValidator struct {
	Description       Description                `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
	Commission        CommissionRates            `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"`
	MinSelfDelegation plugchain_sdk_go_types.Int `` /* 202-byte string literal not displayed */
	DelegatorAddress  string                     `` /* 134-byte string literal not displayed */
	ValidatorAddress  string                     `` /* 134-byte string literal not displayed */
	Pubkey            *types.Any                 `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Value             types1.Coin                `protobuf:"bytes,7,opt,name=value,proto3" json:"value"`
}

MsgCreateValidator defines a SDK message for creating a new validator.

func (*MsgCreateValidator) Descriptor

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

func (MsgCreateValidator) GetSignBytes

func (msg MsgCreateValidator) GetSignBytes() []byte

func (MsgCreateValidator) GetSigners

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

func (*MsgCreateValidator) Marshal

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

func (*MsgCreateValidator) MarshalTo

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

func (*MsgCreateValidator) MarshalToSizedBuffer

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

func (*MsgCreateValidator) ProtoMessage

func (*MsgCreateValidator) ProtoMessage()

func (*MsgCreateValidator) Reset

func (m *MsgCreateValidator) Reset()

func (MsgCreateValidator) Route

func (msg MsgCreateValidator) Route() string

func (*MsgCreateValidator) Size

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

func (*MsgCreateValidator) String

func (m *MsgCreateValidator) String() string

func (MsgCreateValidator) Type

func (msg MsgCreateValidator) Type() string

func (*MsgCreateValidator) Unmarshal

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

func (MsgCreateValidator) UnpackInterfaces

func (msg MsgCreateValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (MsgCreateValidator) ValidateBasic

func (msg MsgCreateValidator) ValidateBasic() error

func (*MsgCreateValidator) XXX_DiscardUnknown

func (m *MsgCreateValidator) XXX_DiscardUnknown()

func (*MsgCreateValidator) XXX_Marshal

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

func (*MsgCreateValidator) XXX_Merge

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

func (*MsgCreateValidator) XXX_Size

func (m *MsgCreateValidator) XXX_Size() int

func (*MsgCreateValidator) XXX_Unmarshal

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

type MsgCreateValidatorResponse

type MsgCreateValidatorResponse struct {
}

MsgCreateValidatorResponse defines the Msg/CreateValidator response type.

func (*MsgCreateValidatorResponse) Descriptor

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

func (*MsgCreateValidatorResponse) Marshal

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

func (*MsgCreateValidatorResponse) MarshalTo

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

func (*MsgCreateValidatorResponse) MarshalToSizedBuffer

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

func (*MsgCreateValidatorResponse) ProtoMessage

func (*MsgCreateValidatorResponse) ProtoMessage()

func (*MsgCreateValidatorResponse) Reset

func (m *MsgCreateValidatorResponse) Reset()

func (*MsgCreateValidatorResponse) Size

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

func (*MsgCreateValidatorResponse) String

func (m *MsgCreateValidatorResponse) String() string

func (*MsgCreateValidatorResponse) Unmarshal

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

func (*MsgCreateValidatorResponse) XXX_DiscardUnknown

func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown()

func (*MsgCreateValidatorResponse) XXX_Marshal

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

func (*MsgCreateValidatorResponse) XXX_Merge

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

func (*MsgCreateValidatorResponse) XXX_Size

func (m *MsgCreateValidatorResponse) XXX_Size() int

func (*MsgCreateValidatorResponse) XXX_Unmarshal

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

type MsgDelegate

type MsgDelegate struct {
	DelegatorAddress string      `` /* 134-byte string literal not displayed */
	ValidatorAddress string      `` /* 134-byte string literal not displayed */
	Amount           types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgDelegate defines a SDK message for performing a delegation of coins from a delegator to a validator.

func (*MsgDelegate) Descriptor

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

func (MsgDelegate) GetSignBytes

func (msg MsgDelegate) GetSignBytes() []byte

func (MsgDelegate) GetSigners

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

func (*MsgDelegate) Marshal

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

func (*MsgDelegate) MarshalTo

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

func (*MsgDelegate) MarshalToSizedBuffer

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

func (*MsgDelegate) ProtoMessage

func (*MsgDelegate) ProtoMessage()

func (*MsgDelegate) Reset

func (m *MsgDelegate) Reset()

func (MsgDelegate) Route

func (msg MsgDelegate) Route() string

func (*MsgDelegate) Size

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

func (*MsgDelegate) String

func (m *MsgDelegate) String() string

func (MsgDelegate) Type

func (msg MsgDelegate) Type() string

func (*MsgDelegate) Unmarshal

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

func (MsgDelegate) ValidateBasic

func (msg MsgDelegate) ValidateBasic() error

func (*MsgDelegate) XXX_DiscardUnknown

func (m *MsgDelegate) XXX_DiscardUnknown()

func (*MsgDelegate) XXX_Marshal

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

func (*MsgDelegate) XXX_Merge

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

func (*MsgDelegate) XXX_Size

func (m *MsgDelegate) XXX_Size() int

func (*MsgDelegate) XXX_Unmarshal

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

type MsgDelegateResponse

type MsgDelegateResponse struct {
}

MsgDelegateResponse defines the Msg/Delegate response type.

func (*MsgDelegateResponse) Descriptor

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

func (*MsgDelegateResponse) Marshal

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

func (*MsgDelegateResponse) MarshalTo

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

func (*MsgDelegateResponse) MarshalToSizedBuffer

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

func (*MsgDelegateResponse) ProtoMessage

func (*MsgDelegateResponse) ProtoMessage()

func (*MsgDelegateResponse) Reset

func (m *MsgDelegateResponse) Reset()

func (*MsgDelegateResponse) Size

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

func (*MsgDelegateResponse) String

func (m *MsgDelegateResponse) String() string

func (*MsgDelegateResponse) Unmarshal

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

func (*MsgDelegateResponse) XXX_DiscardUnknown

func (m *MsgDelegateResponse) XXX_DiscardUnknown()

func (*MsgDelegateResponse) XXX_Marshal

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

func (*MsgDelegateResponse) XXX_Merge

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

func (*MsgDelegateResponse) XXX_Size

func (m *MsgDelegateResponse) XXX_Size() int

func (*MsgDelegateResponse) XXX_Unmarshal

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

type MsgEditValidator

type MsgEditValidator struct {
	Description      Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
	ValidatorAddress string      `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"address"`
	// We pass a reference to the new commission rate and min self delegation as
	// it's not mandatory to update. If not updated, the deserialized rate will be
	// zero with no way to distinguish if an update was intended.
	//
	// REF: #2373
	CommissionRate    *plugchain_sdk_go_types.Dec `` /* 197-byte string literal not displayed */
	MinSelfDelegation *plugchain_sdk_go_types.Int `` /* 212-byte string literal not displayed */
}

MsgEditValidator defines a SDK message for editing an existing validator.

func (*MsgEditValidator) Descriptor

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

func (MsgEditValidator) GetSignBytes

func (msg MsgEditValidator) GetSignBytes() []byte

func (MsgEditValidator) GetSigners

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

func (*MsgEditValidator) Marshal

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

func (*MsgEditValidator) MarshalTo

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

func (*MsgEditValidator) MarshalToSizedBuffer

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

func (*MsgEditValidator) ProtoMessage

func (*MsgEditValidator) ProtoMessage()

func (*MsgEditValidator) Reset

func (m *MsgEditValidator) Reset()

func (MsgEditValidator) Route

func (msg MsgEditValidator) Route() string

func (*MsgEditValidator) Size

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

func (*MsgEditValidator) String

func (m *MsgEditValidator) String() string

func (MsgEditValidator) Type

func (msg MsgEditValidator) Type() string

func (*MsgEditValidator) Unmarshal

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

func (MsgEditValidator) ValidateBasic

func (msg MsgEditValidator) ValidateBasic() error

func (*MsgEditValidator) XXX_DiscardUnknown

func (m *MsgEditValidator) XXX_DiscardUnknown()

func (*MsgEditValidator) XXX_Marshal

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

func (*MsgEditValidator) XXX_Merge

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

func (*MsgEditValidator) XXX_Size

func (m *MsgEditValidator) XXX_Size() int

func (*MsgEditValidator) XXX_Unmarshal

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

type MsgEditValidatorResponse

type MsgEditValidatorResponse struct {
}

MsgEditValidatorResponse defines the Msg/EditValidator response type.

func (*MsgEditValidatorResponse) Descriptor

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

func (*MsgEditValidatorResponse) Marshal

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

func (*MsgEditValidatorResponse) MarshalTo

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

func (*MsgEditValidatorResponse) MarshalToSizedBuffer

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

func (*MsgEditValidatorResponse) ProtoMessage

func (*MsgEditValidatorResponse) ProtoMessage()

func (*MsgEditValidatorResponse) Reset

func (m *MsgEditValidatorResponse) Reset()

func (*MsgEditValidatorResponse) Size

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

func (*MsgEditValidatorResponse) String

func (m *MsgEditValidatorResponse) String() string

func (*MsgEditValidatorResponse) Unmarshal

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

func (*MsgEditValidatorResponse) XXX_DiscardUnknown

func (m *MsgEditValidatorResponse) XXX_DiscardUnknown()

func (*MsgEditValidatorResponse) XXX_Marshal

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

func (*MsgEditValidatorResponse) XXX_Merge

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

func (*MsgEditValidatorResponse) XXX_Size

func (m *MsgEditValidatorResponse) XXX_Size() int

func (*MsgEditValidatorResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateValidator defines a method for creating a new validator.
	CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
	// EditValidator defines a method for editing an existing validator.
	EditValidator(context.Context, *MsgEditValidator) (*MsgEditValidatorResponse, error)
	// Delegate defines a method for performing a delegation of coins
	// from a delegator to a validator.
	Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error)
	// BeginRedelegate defines a method for performing a redelegation
	// of coins from a delegator and source validator to a destination validator.
	BeginRedelegate(context.Context, *MsgBeginRedelegate) (*MsgBeginRedelegateResponse, error)
	// Undelegate defines a method for performing an undelegation from a
	// delegate and a validator.
	Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUndelegate

type MsgUndelegate struct {
	DelegatorAddress string      `` /* 134-byte string literal not displayed */
	ValidatorAddress string      `` /* 134-byte string literal not displayed */
	Amount           types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgUndelegate defines a SDK message for performing an undelegation from a delegate and a validator.

func (*MsgUndelegate) Descriptor

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

func (MsgUndelegate) GetSignBytes

func (msg MsgUndelegate) GetSignBytes() []byte

func (MsgUndelegate) GetSigners

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

func (*MsgUndelegate) Marshal

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

func (*MsgUndelegate) MarshalTo

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

func (*MsgUndelegate) MarshalToSizedBuffer

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

func (*MsgUndelegate) ProtoMessage

func (*MsgUndelegate) ProtoMessage()

func (*MsgUndelegate) Reset

func (m *MsgUndelegate) Reset()

func (MsgUndelegate) Route

func (msg MsgUndelegate) Route() string

func (*MsgUndelegate) Size

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

func (*MsgUndelegate) String

func (m *MsgUndelegate) String() string

func (MsgUndelegate) Type

func (msg MsgUndelegate) Type() string

func (*MsgUndelegate) Unmarshal

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

func (MsgUndelegate) ValidateBasic

func (msg MsgUndelegate) ValidateBasic() error

func (*MsgUndelegate) XXX_DiscardUnknown

func (m *MsgUndelegate) XXX_DiscardUnknown()

func (*MsgUndelegate) XXX_Marshal

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

func (*MsgUndelegate) XXX_Merge

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

func (*MsgUndelegate) XXX_Size

func (m *MsgUndelegate) XXX_Size() int

func (*MsgUndelegate) XXX_Unmarshal

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

type MsgUndelegateResponse

type MsgUndelegateResponse struct {
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgUndelegateResponse defines the Msg/Undelegate response type.

func (*MsgUndelegateResponse) Descriptor

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

func (*MsgUndelegateResponse) GetCompletionTime

func (m *MsgUndelegateResponse) GetCompletionTime() time.Time

func (*MsgUndelegateResponse) Marshal

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

func (*MsgUndelegateResponse) MarshalTo

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

func (*MsgUndelegateResponse) MarshalToSizedBuffer

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

func (*MsgUndelegateResponse) ProtoMessage

func (*MsgUndelegateResponse) ProtoMessage()

func (*MsgUndelegateResponse) Reset

func (m *MsgUndelegateResponse) Reset()

func (*MsgUndelegateResponse) Size

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

func (*MsgUndelegateResponse) String

func (m *MsgUndelegateResponse) String() string

func (*MsgUndelegateResponse) Unmarshal

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

func (*MsgUndelegateResponse) XXX_DiscardUnknown

func (m *MsgUndelegateResponse) XXX_DiscardUnknown()

func (*MsgUndelegateResponse) XXX_Marshal

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

func (*MsgUndelegateResponse) XXX_Merge

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

func (*MsgUndelegateResponse) XXX_Size

func (m *MsgUndelegateResponse) XXX_Size() int

func (*MsgUndelegateResponse) XXX_Unmarshal

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

type Params

type Params struct {
	UnbondingTime     time.Duration `protobuf:"bytes,1,opt,name=unbonding_time,json=unbondingTime,proto3,stdduration" json:"unbonding_time" yaml:"unbonding_time"`
	MaxValidators     uint32        `protobuf:"varint,2,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty" yaml:"max_validators"`
	MaxEntries        uint32        `protobuf:"varint,3,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty" yaml:"max_entries"`
	HistoricalEntries uint32        `` /* 139-byte string literal not displayed */
	BondDenom         string        `protobuf:"bytes,5,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty" yaml:"bond_denom"`
}

Params defines the parameters for the staking module.

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetBondDenom

func (m *Params) GetBondDenom() string

func (*Params) GetHistoricalEntries

func (m *Params) GetHistoricalEntries() uint32

func (*Params) GetMaxEntries

func (m *Params) GetMaxEntries() uint32

func (*Params) GetMaxValidators

func (m *Params) GetMaxValidators() uint32

func (*Params) GetUnbondingTime

func (m *Params) GetUnbondingTime() time.Duration

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 (p Params) String() string

String implements the stringer interface.

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type Pool

type Pool struct {
	NotBondedTokens plugchain_sdk_go_types.Int `` /* 155-byte string literal not displayed */
	BondedTokens    plugchain_sdk_go_types.Int `` /* 165-byte string literal not displayed */
}

Pool is used for tracking bonded and not-bonded token supply of the bond denomination.

func (*Pool) Descriptor

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

func (*Pool) Equal

func (this *Pool) Equal(that interface{}) bool

func (*Pool) Marshal

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

func (*Pool) MarshalTo

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

func (*Pool) MarshalToSizedBuffer

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

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) Reset

func (m *Pool) Reset()

func (*Pool) Size

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

func (*Pool) String

func (m *Pool) String() string

func (*Pool) Unmarshal

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

func (*Pool) XXX_DiscardUnknown

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal

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

func (*Pool) XXX_Merge

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

func (*Pool) XXX_Size

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Validators queries all validators that match the given status.
	Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, error)
	// Validator queries validator info for given validator address.
	Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error)
	// ValidatorDelegations queries delegate info for given validator.
	ValidatorDelegations(ctx context.Context, in *QueryValidatorDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorDelegationsResponse, error)
	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
	ValidatorUnbondingDelegations(ctx context.Context, in *QueryValidatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given validator delegator pair.
	Delegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given validator delegator
	// pair.
	UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given
	// delegator address.
	DelegatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUnbondingDelegationsResponse, error)
	// Redelegations queries redelegations of given address.
	Redelegations(ctx context.Context, in *QueryRedelegationsRequest, opts ...grpc.CallOption) (*QueryRedelegationsResponse, error)
	// DelegatorValidators queries all validators info for given delegator
	// address.
	DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorValidator queries validator info for given delegator validator
	// pair.
	DelegatorValidator(ctx context.Context, in *QueryDelegatorValidatorRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorResponse, error)
	// HistoricalInfo queries the historical info for given height.
	HistoricalInfo(ctx context.Context, in *QueryHistoricalInfoRequest, opts ...grpc.CallOption) (*QueryHistoricalInfoResponse, error)
	// Pool queries the pool info.
	Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error)
	// Parameters queries the staking parameters.
	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 QueryDelegationRequest

type QueryDelegationRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryDelegationRequest is request type for the Query/Delegation RPC method.

func (*QueryDelegationRequest) Descriptor

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

func (*QueryDelegationRequest) Marshal

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

func (*QueryDelegationRequest) MarshalTo

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

func (*QueryDelegationRequest) MarshalToSizedBuffer

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

func (*QueryDelegationRequest) ProtoMessage

func (*QueryDelegationRequest) ProtoMessage()

func (*QueryDelegationRequest) Reset

func (m *QueryDelegationRequest) Reset()

func (*QueryDelegationRequest) Size

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

func (*QueryDelegationRequest) String

func (m *QueryDelegationRequest) String() string

func (*QueryDelegationRequest) Unmarshal

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

func (*QueryDelegationRequest) XXX_DiscardUnknown

func (m *QueryDelegationRequest) XXX_DiscardUnknown()

func (*QueryDelegationRequest) XXX_Marshal

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

func (*QueryDelegationRequest) XXX_Merge

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

func (*QueryDelegationRequest) XXX_Size

func (m *QueryDelegationRequest) XXX_Size() int

func (*QueryDelegationRequest) XXX_Unmarshal

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

type QueryDelegationResp

type QueryDelegationResp struct {
	Delegation delegation `json:"delegation"`
	Balance    sdk.Coin   `json:"balance"`
}

type QueryDelegationResponse

type QueryDelegationResponse struct {
	// delegation_responses defines the delegation info of a delegation.
	DelegationResponse *DelegationResponse `protobuf:"bytes,1,opt,name=delegation_response,json=delegationResponse,proto3" json:"delegation_response,omitempty"`
}

QueryDelegationResponse is response type for the Query/Delegation RPC method.

func (*QueryDelegationResponse) Descriptor

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

func (*QueryDelegationResponse) GetDelegationResponse

func (m *QueryDelegationResponse) GetDelegationResponse() *DelegationResponse

func (*QueryDelegationResponse) Marshal

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

func (*QueryDelegationResponse) MarshalTo

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

func (*QueryDelegationResponse) MarshalToSizedBuffer

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

func (*QueryDelegationResponse) ProtoMessage

func (*QueryDelegationResponse) ProtoMessage()

func (*QueryDelegationResponse) Reset

func (m *QueryDelegationResponse) Reset()

func (*QueryDelegationResponse) Size

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

func (*QueryDelegationResponse) String

func (m *QueryDelegationResponse) String() string

func (*QueryDelegationResponse) Unmarshal

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

func (*QueryDelegationResponse) XXX_DiscardUnknown

func (m *QueryDelegationResponse) XXX_DiscardUnknown()

func (*QueryDelegationResponse) XXX_Marshal

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

func (*QueryDelegationResponse) XXX_Merge

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

func (*QueryDelegationResponse) XXX_Size

func (m *QueryDelegationResponse) XXX_Size() int

func (*QueryDelegationResponse) XXX_Unmarshal

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

type QueryDelegatorDelegationsRequest

type QueryDelegatorDelegationsRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method.

func (*QueryDelegatorDelegationsRequest) Descriptor

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

func (*QueryDelegatorDelegationsRequest) Marshal

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

func (*QueryDelegatorDelegationsRequest) MarshalTo

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

func (*QueryDelegatorDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorDelegationsRequest) ProtoMessage

func (*QueryDelegatorDelegationsRequest) ProtoMessage()

func (*QueryDelegatorDelegationsRequest) Reset

func (*QueryDelegatorDelegationsRequest) Size

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

func (*QueryDelegatorDelegationsRequest) String

func (*QueryDelegatorDelegationsRequest) Unmarshal

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

func (*QueryDelegatorDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorDelegationsRequest) XXX_Merge

func (*QueryDelegatorDelegationsRequest) XXX_Size

func (m *QueryDelegatorDelegationsRequest) XXX_Size() int

func (*QueryDelegatorDelegationsRequest) XXX_Unmarshal

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

type QueryDelegatorDelegationsResp

type QueryDelegatorDelegationsResp struct {
	DelegationResponses []QueryDelegationResp `json:"delegation_responses"`
	Total               uint64                `json:"total"`
}

type QueryDelegatorDelegationsResponse

type QueryDelegatorDelegationsResponse struct {
	// delegation_responses defines all the delegations' info of a delegator.
	DelegationResponses []DelegationResponse `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3" json:"delegation_responses"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method.

func (QueryDelegatorDelegationsResponse) Convert

func (q QueryDelegatorDelegationsResponse) Convert() interface{}

func (*QueryDelegatorDelegationsResponse) Descriptor

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

func (*QueryDelegatorDelegationsResponse) GetDelegationResponses

func (m *QueryDelegatorDelegationsResponse) GetDelegationResponses() []DelegationResponse

func (*QueryDelegatorDelegationsResponse) GetPagination

func (*QueryDelegatorDelegationsResponse) Marshal

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

func (*QueryDelegatorDelegationsResponse) MarshalTo

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

func (*QueryDelegatorDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorDelegationsResponse) ProtoMessage

func (*QueryDelegatorDelegationsResponse) ProtoMessage()

func (*QueryDelegatorDelegationsResponse) Reset

func (*QueryDelegatorDelegationsResponse) Size

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

func (*QueryDelegatorDelegationsResponse) String

func (*QueryDelegatorDelegationsResponse) Unmarshal

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

func (*QueryDelegatorDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorDelegationsResponse) XXX_Merge

func (*QueryDelegatorDelegationsResponse) XXX_Size

func (m *QueryDelegatorDelegationsResponse) XXX_Size() int

func (*QueryDelegatorDelegationsResponse) XXX_Unmarshal

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

type QueryDelegatorUnbondingDelegationsRequest

type QueryDelegatorUnbondingDelegationsRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method.

func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor

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

func (*QueryDelegatorUnbondingDelegationsRequest) Marshal

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

func (*QueryDelegatorUnbondingDelegationsRequest) MarshalTo

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

func (*QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryDelegatorUnbondingDelegationsRequest) Reset

func (*QueryDelegatorUnbondingDelegationsRequest) Size

func (*QueryDelegatorUnbondingDelegationsRequest) String

func (*QueryDelegatorUnbondingDelegationsRequest) Unmarshal

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Merge

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Size

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Unmarshal

type QueryDelegatorUnbondingDelegationsResp

type QueryDelegatorUnbondingDelegationsResp struct {
	UnbondingDelegations []QueryUnbondingDelegationResp `json:"unbonding_delegations"`
	Total                uint64                         `json:"total"`
}

type QueryDelegatorUnbondingDelegationsResponse

type QueryDelegatorUnbondingDelegationsResponse struct {
	UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method.

func (QueryDelegatorUnbondingDelegationsResponse) Convert

func (q QueryDelegatorUnbondingDelegationsResponse) Convert() interface{}

func (*QueryDelegatorUnbondingDelegationsResponse) Descriptor

func (*QueryDelegatorUnbondingDelegationsResponse) GetPagination

func (*QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses

func (*QueryDelegatorUnbondingDelegationsResponse) Marshal

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

func (*QueryDelegatorUnbondingDelegationsResponse) MarshalTo

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

func (*QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryDelegatorUnbondingDelegationsResponse) Reset

func (*QueryDelegatorUnbondingDelegationsResponse) Size

func (*QueryDelegatorUnbondingDelegationsResponse) String

func (*QueryDelegatorUnbondingDelegationsResponse) Unmarshal

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Merge

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Size

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Unmarshal

type QueryDelegatorValidatorRequest

type QueryDelegatorValidatorRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method.

func (*QueryDelegatorValidatorRequest) Descriptor

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

func (*QueryDelegatorValidatorRequest) Marshal

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

func (*QueryDelegatorValidatorRequest) MarshalTo

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

func (*QueryDelegatorValidatorRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorValidatorRequest) ProtoMessage

func (*QueryDelegatorValidatorRequest) ProtoMessage()

func (*QueryDelegatorValidatorRequest) Reset

func (m *QueryDelegatorValidatorRequest) Reset()

func (*QueryDelegatorValidatorRequest) Size

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

func (*QueryDelegatorValidatorRequest) String

func (*QueryDelegatorValidatorRequest) Unmarshal

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

func (*QueryDelegatorValidatorRequest) XXX_DiscardUnknown

func (m *QueryDelegatorValidatorRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorRequest) XXX_Marshal

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

func (*QueryDelegatorValidatorRequest) XXX_Merge

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

func (*QueryDelegatorValidatorRequest) XXX_Size

func (m *QueryDelegatorValidatorRequest) XXX_Size() int

func (*QueryDelegatorValidatorRequest) XXX_Unmarshal

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

type QueryDelegatorValidatorResponse

type QueryDelegatorValidatorResponse struct {
	// validator defines the the validator info.
	Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}

QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method.

func (*QueryDelegatorValidatorResponse) Descriptor

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

func (*QueryDelegatorValidatorResponse) GetValidator

func (m *QueryDelegatorValidatorResponse) GetValidator() Validator

func (*QueryDelegatorValidatorResponse) Marshal

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

func (*QueryDelegatorValidatorResponse) MarshalTo

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

func (*QueryDelegatorValidatorResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorValidatorResponse) ProtoMessage

func (*QueryDelegatorValidatorResponse) ProtoMessage()

func (*QueryDelegatorValidatorResponse) Reset

func (*QueryDelegatorValidatorResponse) Size

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

func (*QueryDelegatorValidatorResponse) String

func (*QueryDelegatorValidatorResponse) Unmarshal

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

func (*QueryDelegatorValidatorResponse) XXX_DiscardUnknown

func (m *QueryDelegatorValidatorResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorResponse) XXX_Marshal

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

func (*QueryDelegatorValidatorResponse) XXX_Merge

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

func (*QueryDelegatorValidatorResponse) XXX_Size

func (m *QueryDelegatorValidatorResponse) XXX_Size() int

func (*QueryDelegatorValidatorResponse) XXX_Unmarshal

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

type QueryDelegatorValidatorsRequest

type QueryDelegatorValidatorsRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method.

func (*QueryDelegatorValidatorsRequest) Descriptor

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

func (*QueryDelegatorValidatorsRequest) Marshal

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

func (*QueryDelegatorValidatorsRequest) MarshalTo

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

func (*QueryDelegatorValidatorsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorValidatorsRequest) ProtoMessage

func (*QueryDelegatorValidatorsRequest) ProtoMessage()

func (*QueryDelegatorValidatorsRequest) Reset

func (*QueryDelegatorValidatorsRequest) Size

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

func (*QueryDelegatorValidatorsRequest) String

func (*QueryDelegatorValidatorsRequest) Unmarshal

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

func (*QueryDelegatorValidatorsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsRequest) XXX_Marshal

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

func (*QueryDelegatorValidatorsRequest) XXX_Merge

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

func (*QueryDelegatorValidatorsRequest) XXX_Size

func (m *QueryDelegatorValidatorsRequest) XXX_Size() int

func (*QueryDelegatorValidatorsRequest) XXX_Unmarshal

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

type QueryDelegatorValidatorsResp

type QueryDelegatorValidatorsResp struct {
	Validator []QueryValidatorResp `json:"validator"`
	Total     uint64               `json:"total"`
}

type QueryDelegatorValidatorsResponse

type QueryDelegatorValidatorsResponse struct {
	// validators defines the the validators' info of a delegator.
	Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method.

func (QueryDelegatorValidatorsResponse) Convert

func (q QueryDelegatorValidatorsResponse) Convert(cdc codec.Marshaler) interface{}

func (*QueryDelegatorValidatorsResponse) Descriptor

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

func (*QueryDelegatorValidatorsResponse) GetPagination

func (*QueryDelegatorValidatorsResponse) GetValidators

func (m *QueryDelegatorValidatorsResponse) GetValidators() []Validator

func (*QueryDelegatorValidatorsResponse) Marshal

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

func (*QueryDelegatorValidatorsResponse) MarshalTo

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

func (*QueryDelegatorValidatorsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorValidatorsResponse) ProtoMessage

func (*QueryDelegatorValidatorsResponse) ProtoMessage()

func (*QueryDelegatorValidatorsResponse) Reset

func (*QueryDelegatorValidatorsResponse) Size

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

func (*QueryDelegatorValidatorsResponse) String

func (*QueryDelegatorValidatorsResponse) Unmarshal

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

func (*QueryDelegatorValidatorsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsResponse) XXX_Marshal

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

func (*QueryDelegatorValidatorsResponse) XXX_Merge

func (*QueryDelegatorValidatorsResponse) XXX_Size

func (m *QueryDelegatorValidatorsResponse) XXX_Size() int

func (*QueryDelegatorValidatorsResponse) XXX_Unmarshal

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

type QueryHistoricalInfoRequest

type QueryHistoricalInfoRequest struct {
	// height defines at which height to query the historical info.
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method.

func (*QueryHistoricalInfoRequest) Descriptor

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

func (*QueryHistoricalInfoRequest) GetHeight

func (m *QueryHistoricalInfoRequest) GetHeight() int64

func (*QueryHistoricalInfoRequest) Marshal

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

func (*QueryHistoricalInfoRequest) MarshalTo

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

func (*QueryHistoricalInfoRequest) MarshalToSizedBuffer

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

func (*QueryHistoricalInfoRequest) ProtoMessage

func (*QueryHistoricalInfoRequest) ProtoMessage()

func (*QueryHistoricalInfoRequest) Reset

func (m *QueryHistoricalInfoRequest) Reset()

func (*QueryHistoricalInfoRequest) Size

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

func (*QueryHistoricalInfoRequest) String

func (m *QueryHistoricalInfoRequest) String() string

func (*QueryHistoricalInfoRequest) Unmarshal

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

func (*QueryHistoricalInfoRequest) XXX_DiscardUnknown

func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown()

func (*QueryHistoricalInfoRequest) XXX_Marshal

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

func (*QueryHistoricalInfoRequest) XXX_Merge

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

func (*QueryHistoricalInfoRequest) XXX_Size

func (m *QueryHistoricalInfoRequest) XXX_Size() int

func (*QueryHistoricalInfoRequest) XXX_Unmarshal

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

type QueryHistoricalInfoResp

type QueryHistoricalInfoResp struct {
	Header sdk.Header           `json:"header"`
	Valset []QueryValidatorResp `json:"valset"`
}

type QueryHistoricalInfoResponse

type QueryHistoricalInfoResponse struct {
	// hist defines the historical info at the given height.
	Hist *HistoricalInfo `protobuf:"bytes,1,opt,name=hist,proto3" json:"hist,omitempty"`
}

QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method.

func (QueryHistoricalInfoResponse) Convert

func (q QueryHistoricalInfoResponse) Convert(cdc codec.Marshaler) interface{}

func (*QueryHistoricalInfoResponse) Descriptor

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

func (*QueryHistoricalInfoResponse) GetHist

func (*QueryHistoricalInfoResponse) Marshal

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

func (*QueryHistoricalInfoResponse) MarshalTo

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

func (*QueryHistoricalInfoResponse) MarshalToSizedBuffer

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

func (*QueryHistoricalInfoResponse) ProtoMessage

func (*QueryHistoricalInfoResponse) ProtoMessage()

func (*QueryHistoricalInfoResponse) Reset

func (m *QueryHistoricalInfoResponse) Reset()

func (*QueryHistoricalInfoResponse) Size

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

func (*QueryHistoricalInfoResponse) String

func (m *QueryHistoricalInfoResponse) String() string

func (*QueryHistoricalInfoResponse) Unmarshal

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

func (*QueryHistoricalInfoResponse) XXX_DiscardUnknown

func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown()

func (*QueryHistoricalInfoResponse) XXX_Marshal

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

func (*QueryHistoricalInfoResponse) XXX_Merge

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

func (*QueryHistoricalInfoResponse) XXX_Size

func (m *QueryHistoricalInfoResponse) XXX_Size() int

func (*QueryHistoricalInfoResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResp

type QueryParamsResp struct {
	UnbondingTime     time.Duration `json:"unbonding_time"`
	MaxValidators     uint32        `json:"max_validators"`
	MaxEntries        uint32        `json:"max_entries"`
	HistoricalEntries uint32        `json:"historical_entries"`
	BondDenom         string        `json:"bond_denom"`
}

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) Convert

func (q QueryParamsResponse) Convert() interface{}

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 QueryPoolRequest

type QueryPoolRequest struct {
}

QueryPoolRequest is request type for the Query/Pool RPC method.

func (*QueryPoolRequest) Descriptor

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

func (*QueryPoolRequest) Marshal

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

func (*QueryPoolRequest) MarshalTo

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

func (*QueryPoolRequest) MarshalToSizedBuffer

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

func (*QueryPoolRequest) ProtoMessage

func (*QueryPoolRequest) ProtoMessage()

func (*QueryPoolRequest) Reset

func (m *QueryPoolRequest) Reset()

func (*QueryPoolRequest) Size

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

func (*QueryPoolRequest) String

func (m *QueryPoolRequest) String() string

func (*QueryPoolRequest) Unmarshal

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

func (*QueryPoolRequest) XXX_DiscardUnknown

func (m *QueryPoolRequest) XXX_DiscardUnknown()

func (*QueryPoolRequest) XXX_Marshal

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

func (*QueryPoolRequest) XXX_Merge

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

func (*QueryPoolRequest) XXX_Size

func (m *QueryPoolRequest) XXX_Size() int

func (*QueryPoolRequest) XXX_Unmarshal

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

type QueryPoolResp

type QueryPoolResp struct {
	NotBondedTokens sdk.Int `json:"not_bonded_tokens"`
	BondedTokens    sdk.Int `json:"bonded_tokens"`
}

type QueryPoolResponse

type QueryPoolResponse struct {
	// pool defines the pool info.
	Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
}

QueryPoolResponse is response type for the Query/Pool RPC method.

func (*QueryPoolResponse) Descriptor

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

func (*QueryPoolResponse) GetPool

func (m *QueryPoolResponse) GetPool() Pool

func (*QueryPoolResponse) Marshal

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

func (*QueryPoolResponse) MarshalTo

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

func (*QueryPoolResponse) MarshalToSizedBuffer

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

func (*QueryPoolResponse) ProtoMessage

func (*QueryPoolResponse) ProtoMessage()

func (*QueryPoolResponse) Reset

func (m *QueryPoolResponse) Reset()

func (*QueryPoolResponse) Size

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

func (*QueryPoolResponse) String

func (m *QueryPoolResponse) String() string

func (*QueryPoolResponse) Unmarshal

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

func (*QueryPoolResponse) XXX_DiscardUnknown

func (m *QueryPoolResponse) XXX_DiscardUnknown()

func (*QueryPoolResponse) XXX_Marshal

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

func (*QueryPoolResponse) XXX_Merge

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

func (*QueryPoolResponse) XXX_Size

func (m *QueryPoolResponse) XXX_Size() int

func (*QueryPoolResponse) XXX_Unmarshal

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

type QueryRedelegationsReq

type QueryRedelegationsReq struct {
	DelegatorAddr    string `json:"delegator_addr"`
	SrcValidatorAddr string `json:"src_validator_addr"`
	DstValidatorAddr string `json:"dst_validator_addr"`
	Page             uint64 `json:"page"`
	Size             uint64 `json:"size"`
}

type QueryRedelegationsRequest

type QueryRedelegationsRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// src_validator_addr defines the validator address to redelegate from.
	SrcValidatorAddr string `protobuf:"bytes,2,opt,name=src_validator_addr,json=srcValidatorAddr,proto3" json:"src_validator_addr,omitempty"`
	// dst_validator_addr defines the validator address to redelegate to.
	DstValidatorAddr string `protobuf:"bytes,3,opt,name=dst_validator_addr,json=dstValidatorAddr,proto3" json:"dst_validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.

func (*QueryRedelegationsRequest) Descriptor

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

func (*QueryRedelegationsRequest) Marshal

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

func (*QueryRedelegationsRequest) MarshalTo

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

func (*QueryRedelegationsRequest) MarshalToSizedBuffer

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

func (*QueryRedelegationsRequest) ProtoMessage

func (*QueryRedelegationsRequest) ProtoMessage()

func (*QueryRedelegationsRequest) Reset

func (m *QueryRedelegationsRequest) Reset()

func (*QueryRedelegationsRequest) Size

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

func (*QueryRedelegationsRequest) String

func (m *QueryRedelegationsRequest) String() string

func (*QueryRedelegationsRequest) Unmarshal

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

func (*QueryRedelegationsRequest) XXX_DiscardUnknown

func (m *QueryRedelegationsRequest) XXX_DiscardUnknown()

func (*QueryRedelegationsRequest) XXX_Marshal

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

func (*QueryRedelegationsRequest) XXX_Merge

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

func (*QueryRedelegationsRequest) XXX_Size

func (m *QueryRedelegationsRequest) XXX_Size() int

func (*QueryRedelegationsRequest) XXX_Unmarshal

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

type QueryRedelegationsResp

type QueryRedelegationsResp struct {
	RedelegationResponses []RedelegationResp `json:"redelegation_responses"`
	Total                 uint64             `json:"total"`
}

type QueryRedelegationsResponse

type QueryRedelegationsResponse struct {
	RedelegationResponses []RedelegationResponse `protobuf:"bytes,1,rep,name=redelegation_responses,json=redelegationResponses,proto3" json:"redelegation_responses"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.

func (QueryRedelegationsResponse) Convert

func (q QueryRedelegationsResponse) Convert() interface{}

func (*QueryRedelegationsResponse) Descriptor

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

func (*QueryRedelegationsResponse) GetPagination

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

func (*QueryRedelegationsResponse) GetRedelegationResponses

func (m *QueryRedelegationsResponse) GetRedelegationResponses() []RedelegationResponse

func (*QueryRedelegationsResponse) Marshal

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

func (*QueryRedelegationsResponse) MarshalTo

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

func (*QueryRedelegationsResponse) MarshalToSizedBuffer

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

func (*QueryRedelegationsResponse) ProtoMessage

func (*QueryRedelegationsResponse) ProtoMessage()

func (*QueryRedelegationsResponse) Reset

func (m *QueryRedelegationsResponse) Reset()

func (*QueryRedelegationsResponse) Size

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

func (*QueryRedelegationsResponse) String

func (m *QueryRedelegationsResponse) String() string

func (*QueryRedelegationsResponse) Unmarshal

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

func (*QueryRedelegationsResponse) XXX_DiscardUnknown

func (m *QueryRedelegationsResponse) XXX_DiscardUnknown()

func (*QueryRedelegationsResponse) XXX_Marshal

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

func (*QueryRedelegationsResponse) XXX_Merge

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

func (*QueryRedelegationsResponse) XXX_Size

func (m *QueryRedelegationsResponse) XXX_Size() int

func (*QueryRedelegationsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Validators queries all validators that match the given status.
	Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
	// Validator queries validator info for given validator address.
	Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
	// ValidatorDelegations queries delegate info for given validator.
	ValidatorDelegations(context.Context, *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error)
	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
	ValidatorUnbondingDelegations(context.Context, *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given validator delegator pair.
	Delegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given validator delegator
	// pair.
	UnbondingDelegation(context.Context, *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	DelegatorDelegations(context.Context, *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given
	// delegator address.
	DelegatorUnbondingDelegations(context.Context, *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
	// Redelegations queries redelegations of given address.
	Redelegations(context.Context, *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
	// DelegatorValidators queries all validators info for given delegator
	// address.
	DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorValidator queries validator info for given delegator validator
	// pair.
	DelegatorValidator(context.Context, *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error)
	// HistoricalInfo queries the historical info for given height.
	HistoricalInfo(context.Context, *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
	// Pool queries the pool info.
	Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error)
	// Parameters queries the staking parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryUnbondingDelegationRequest

type QueryUnbondingDelegationRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.

func (*QueryUnbondingDelegationRequest) Descriptor

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

func (*QueryUnbondingDelegationRequest) Marshal

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

func (*QueryUnbondingDelegationRequest) MarshalTo

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

func (*QueryUnbondingDelegationRequest) MarshalToSizedBuffer

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

func (*QueryUnbondingDelegationRequest) ProtoMessage

func (*QueryUnbondingDelegationRequest) ProtoMessage()

func (*QueryUnbondingDelegationRequest) Reset

func (*QueryUnbondingDelegationRequest) Size

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

func (*QueryUnbondingDelegationRequest) String

func (*QueryUnbondingDelegationRequest) Unmarshal

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

func (*QueryUnbondingDelegationRequest) XXX_DiscardUnknown

func (m *QueryUnbondingDelegationRequest) XXX_DiscardUnknown()

func (*QueryUnbondingDelegationRequest) XXX_Marshal

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

func (*QueryUnbondingDelegationRequest) XXX_Merge

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

func (*QueryUnbondingDelegationRequest) XXX_Size

func (m *QueryUnbondingDelegationRequest) XXX_Size() int

func (*QueryUnbondingDelegationRequest) XXX_Unmarshal

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

type QueryUnbondingDelegationResp

type QueryUnbondingDelegationResp struct {
	DelegatorAddress string                     `json:"delegator_address"`
	ValidatorAddress string                     `json:"validator_address"`
	Entries          []unbondingDelegationEntry `json:"entries"`
}

type QueryUnbondingDelegationResponse

type QueryUnbondingDelegationResponse struct {
	// unbond defines the unbonding information of a delegation.
	Unbond UnbondingDelegation `protobuf:"bytes,1,opt,name=unbond,proto3" json:"unbond"`
}

QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method.

func (*QueryUnbondingDelegationResponse) Descriptor

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

func (*QueryUnbondingDelegationResponse) GetUnbond

func (*QueryUnbondingDelegationResponse) Marshal

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

func (*QueryUnbondingDelegationResponse) MarshalTo

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

func (*QueryUnbondingDelegationResponse) MarshalToSizedBuffer

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

func (*QueryUnbondingDelegationResponse) ProtoMessage

func (*QueryUnbondingDelegationResponse) ProtoMessage()

func (*QueryUnbondingDelegationResponse) Reset

func (*QueryUnbondingDelegationResponse) Size

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

func (*QueryUnbondingDelegationResponse) String

func (*QueryUnbondingDelegationResponse) Unmarshal

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

func (*QueryUnbondingDelegationResponse) XXX_DiscardUnknown

func (m *QueryUnbondingDelegationResponse) XXX_DiscardUnknown()

func (*QueryUnbondingDelegationResponse) XXX_Marshal

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

func (*QueryUnbondingDelegationResponse) XXX_Merge

func (*QueryUnbondingDelegationResponse) XXX_Size

func (m *QueryUnbondingDelegationResponse) XXX_Size() int

func (*QueryUnbondingDelegationResponse) XXX_Unmarshal

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

type QueryValidatorDelegationsRequest

type QueryValidatorDelegationsRequest struct {
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method

func (*QueryValidatorDelegationsRequest) Descriptor

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

func (*QueryValidatorDelegationsRequest) GetPagination

func (*QueryValidatorDelegationsRequest) GetValidatorAddr

func (m *QueryValidatorDelegationsRequest) GetValidatorAddr() string

func (*QueryValidatorDelegationsRequest) Marshal

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

func (*QueryValidatorDelegationsRequest) MarshalTo

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

func (*QueryValidatorDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryValidatorDelegationsRequest) ProtoMessage

func (*QueryValidatorDelegationsRequest) ProtoMessage()

func (*QueryValidatorDelegationsRequest) Reset

func (*QueryValidatorDelegationsRequest) Size

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

func (*QueryValidatorDelegationsRequest) String

func (*QueryValidatorDelegationsRequest) Unmarshal

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

func (*QueryValidatorDelegationsRequest) XXX_DiscardUnknown

func (m *QueryValidatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorDelegationsRequest) XXX_Marshal

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

func (*QueryValidatorDelegationsRequest) XXX_Merge

func (*QueryValidatorDelegationsRequest) XXX_Size

func (m *QueryValidatorDelegationsRequest) XXX_Size() int

func (*QueryValidatorDelegationsRequest) XXX_Unmarshal

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

type QueryValidatorDelegationsResp

type QueryValidatorDelegationsResp struct {
	DelegationResponses []QueryDelegationResp `json:"delegation_responses"`
	Total               uint64                `json:"total"`
}

type QueryValidatorDelegationsResponse

type QueryValidatorDelegationsResponse struct {
	DelegationResponses DelegationResponses `` /* 141-byte string literal not displayed */
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorDelegationsResponse is response type for the Query/ValidatorDelegations RPC method

func (QueryValidatorDelegationsResponse) Convert

func (q QueryValidatorDelegationsResponse) Convert() interface{}

func (*QueryValidatorDelegationsResponse) Descriptor

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

func (*QueryValidatorDelegationsResponse) GetDelegationResponses

func (m *QueryValidatorDelegationsResponse) GetDelegationResponses() DelegationResponses

func (*QueryValidatorDelegationsResponse) GetPagination

func (*QueryValidatorDelegationsResponse) Marshal

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

func (*QueryValidatorDelegationsResponse) MarshalTo

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

func (*QueryValidatorDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryValidatorDelegationsResponse) ProtoMessage

func (*QueryValidatorDelegationsResponse) ProtoMessage()

func (*QueryValidatorDelegationsResponse) Reset

func (*QueryValidatorDelegationsResponse) Size

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

func (*QueryValidatorDelegationsResponse) String

func (*QueryValidatorDelegationsResponse) Unmarshal

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

func (*QueryValidatorDelegationsResponse) XXX_DiscardUnknown

func (m *QueryValidatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorDelegationsResponse) XXX_Marshal

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

func (*QueryValidatorDelegationsResponse) XXX_Merge

func (*QueryValidatorDelegationsResponse) XXX_Size

func (m *QueryValidatorDelegationsResponse) XXX_Size() int

func (*QueryValidatorDelegationsResponse) XXX_Unmarshal

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

type QueryValidatorRequest

type QueryValidatorRequest struct {
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryValidatorRequest is response type for the Query/Validator RPC method

func (*QueryValidatorRequest) Descriptor

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

func (*QueryValidatorRequest) GetValidatorAddr

func (m *QueryValidatorRequest) GetValidatorAddr() string

func (*QueryValidatorRequest) Marshal

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

func (*QueryValidatorRequest) MarshalTo

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

func (*QueryValidatorRequest) MarshalToSizedBuffer

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

func (*QueryValidatorRequest) ProtoMessage

func (*QueryValidatorRequest) ProtoMessage()

func (*QueryValidatorRequest) Reset

func (m *QueryValidatorRequest) Reset()

func (*QueryValidatorRequest) Size

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

func (*QueryValidatorRequest) String

func (m *QueryValidatorRequest) String() string

func (*QueryValidatorRequest) Unmarshal

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

func (*QueryValidatorRequest) XXX_DiscardUnknown

func (m *QueryValidatorRequest) XXX_DiscardUnknown()

func (*QueryValidatorRequest) XXX_Marshal

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

func (*QueryValidatorRequest) XXX_Merge

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

func (*QueryValidatorRequest) XXX_Size

func (m *QueryValidatorRequest) XXX_Size() int

func (*QueryValidatorRequest) XXX_Unmarshal

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

type QueryValidatorResp

type QueryValidatorResp struct {
	OperatorAddress   string      `json:"operator_address"`
	ConsensusPubkey   string      `json:"consensus_pubkey"`
	Jailed            bool        `json:"jailed"`
	Status            string      `json:"status"`
	Tokens            sdk.Int     `json:"tokens"`
	DelegatorShares   sdk.Dec     `json:"delegator_shares"`
	Description       description `json:"description"`
	UnbondingHeight   int64       `json:"unbonding_height"`
	UnbondingTime     time.Time   `json:"unbonding_time"`
	Commission        commission  `json:"commission"`
	MinSelfDelegation sdk.Int     `json:"min_self_delegation"`
}

type QueryValidatorResponse

type QueryValidatorResponse struct {
	// validator defines the the validator info.
	Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}

QueryValidatorResponse is response type for the Query/Validator RPC method

func (*QueryValidatorResponse) Descriptor

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

func (*QueryValidatorResponse) GetValidator

func (m *QueryValidatorResponse) GetValidator() Validator

func (*QueryValidatorResponse) Marshal

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

func (*QueryValidatorResponse) MarshalTo

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

func (*QueryValidatorResponse) MarshalToSizedBuffer

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

func (*QueryValidatorResponse) ProtoMessage

func (*QueryValidatorResponse) ProtoMessage()

func (*QueryValidatorResponse) Reset

func (m *QueryValidatorResponse) Reset()

func (*QueryValidatorResponse) Size

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

func (*QueryValidatorResponse) String

func (m *QueryValidatorResponse) String() string

func (*QueryValidatorResponse) Unmarshal

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

func (*QueryValidatorResponse) XXX_DiscardUnknown

func (m *QueryValidatorResponse) XXX_DiscardUnknown()

func (*QueryValidatorResponse) XXX_Marshal

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

func (*QueryValidatorResponse) XXX_Merge

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

func (*QueryValidatorResponse) XXX_Size

func (m *QueryValidatorResponse) XXX_Size() int

func (*QueryValidatorResponse) XXX_Unmarshal

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

type QueryValidatorUnbondingDelegationsRequest

type QueryValidatorUnbondingDelegationsRequest struct {
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method

func (*QueryValidatorUnbondingDelegationsRequest) Descriptor

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

func (*QueryValidatorUnbondingDelegationsRequest) GetPagination

func (*QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr

func (m *QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr() string

func (*QueryValidatorUnbondingDelegationsRequest) Marshal

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

func (*QueryValidatorUnbondingDelegationsRequest) MarshalTo

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

func (*QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryValidatorUnbondingDelegationsRequest) Reset

func (*QueryValidatorUnbondingDelegationsRequest) Size

func (*QueryValidatorUnbondingDelegationsRequest) String

func (*QueryValidatorUnbondingDelegationsRequest) Unmarshal

func (*QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Merge

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Size

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Unmarshal

type QueryValidatorUnbondingDelegationsResp

type QueryValidatorUnbondingDelegationsResp struct {
	UnbondingResponses []QueryUnbondingDelegationResp `json:"unbonding_responses"`
	Total              uint64                         `json:"total"`
}

type QueryValidatorUnbondingDelegationsResponse

type QueryValidatorUnbondingDelegationsResponse struct {
	UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.

func (QueryValidatorUnbondingDelegationsResponse) Convert

func (q QueryValidatorUnbondingDelegationsResponse) Convert() interface{}

func (*QueryValidatorUnbondingDelegationsResponse) Descriptor

func (*QueryValidatorUnbondingDelegationsResponse) GetPagination

func (*QueryValidatorUnbondingDelegationsResponse) GetUnbondingResponses

func (*QueryValidatorUnbondingDelegationsResponse) Marshal

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

func (*QueryValidatorUnbondingDelegationsResponse) MarshalTo

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

func (*QueryValidatorUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryValidatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryValidatorUnbondingDelegationsResponse) Reset

func (*QueryValidatorUnbondingDelegationsResponse) Size

func (*QueryValidatorUnbondingDelegationsResponse) String

func (*QueryValidatorUnbondingDelegationsResponse) Unmarshal

func (*QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Merge

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Size

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Unmarshal

type QueryValidatorsRequest

type QueryValidatorsRequest struct {
	// status enables to query for validators matching a given status.
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorsRequest is request type for Query/Validators RPC method.

func (*QueryValidatorsRequest) Descriptor

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

func (*QueryValidatorsRequest) GetPagination

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

func (*QueryValidatorsRequest) GetStatus

func (m *QueryValidatorsRequest) GetStatus() string

func (*QueryValidatorsRequest) Marshal

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

func (*QueryValidatorsRequest) MarshalTo

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

func (*QueryValidatorsRequest) MarshalToSizedBuffer

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

func (*QueryValidatorsRequest) ProtoMessage

func (*QueryValidatorsRequest) ProtoMessage()

func (*QueryValidatorsRequest) Reset

func (m *QueryValidatorsRequest) Reset()

func (*QueryValidatorsRequest) Size

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

func (*QueryValidatorsRequest) String

func (m *QueryValidatorsRequest) String() string

func (*QueryValidatorsRequest) Unmarshal

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

func (*QueryValidatorsRequest) XXX_DiscardUnknown

func (m *QueryValidatorsRequest) XXX_DiscardUnknown()

func (*QueryValidatorsRequest) XXX_Marshal

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

func (*QueryValidatorsRequest) XXX_Merge

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

func (*QueryValidatorsRequest) XXX_Size

func (m *QueryValidatorsRequest) XXX_Size() int

func (*QueryValidatorsRequest) XXX_Unmarshal

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

type QueryValidatorsResp

type QueryValidatorsResp struct {
	Validators []QueryValidatorResp `json:"validators"`
	Total      uint64               `json:"total"`
}

type QueryValidatorsResponse

type QueryValidatorsResponse struct {
	// validators contains all the queried validators.
	Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorsResponse is response type for the Query/Validators RPC method

func (QueryValidatorsResponse) Convert

func (q QueryValidatorsResponse) Convert(cdc codec.Marshaler) interface{}

func (*QueryValidatorsResponse) Descriptor

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

func (*QueryValidatorsResponse) GetPagination

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

func (*QueryValidatorsResponse) GetValidators

func (m *QueryValidatorsResponse) GetValidators() []Validator

func (*QueryValidatorsResponse) Marshal

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

func (*QueryValidatorsResponse) MarshalTo

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

func (*QueryValidatorsResponse) MarshalToSizedBuffer

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

func (*QueryValidatorsResponse) ProtoMessage

func (*QueryValidatorsResponse) ProtoMessage()

func (*QueryValidatorsResponse) Reset

func (m *QueryValidatorsResponse) Reset()

func (*QueryValidatorsResponse) Size

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

func (*QueryValidatorsResponse) String

func (m *QueryValidatorsResponse) String() string

func (*QueryValidatorsResponse) Unmarshal

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

func (*QueryValidatorsResponse) XXX_DiscardUnknown

func (m *QueryValidatorsResponse) XXX_DiscardUnknown()

func (*QueryValidatorsResponse) XXX_Marshal

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

func (*QueryValidatorsResponse) XXX_Merge

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

func (*QueryValidatorsResponse) XXX_Size

func (m *QueryValidatorsResponse) XXX_Size() int

func (*QueryValidatorsResponse) XXX_Unmarshal

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

type Redelegation

type Redelegation struct {
	DelegatorAddress    string              `` /* 134-byte string literal not displayed */
	ValidatorSrcAddress string              `` /* 149-byte string literal not displayed */
	ValidatorDstAddress string              `` /* 149-byte string literal not displayed */
	Entries             []RedelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries"`
}

Redelegation contains the list of a particular delegator's redelegating bonds from a particular source validator to a particular destination validator.

func MustUnmarshalRED

func MustUnmarshalRED(cdc codec.BinaryMarshaler, value []byte) Redelegation

MustUnmarshalRED unmarshals a redelegation from a store value. Panics if fails.

func NewRedelegation

func NewRedelegation(
	delegatorAddr sdk.AccAddress, validatorSrcAddr, validatorDstAddr sdk.ValAddress,
	creationHeight int64, minTime time.Time, balance sdk.Int, sharesDst sdk.Dec,
) Redelegation

func UnmarshalRED

func UnmarshalRED(cdc codec.BinaryMarshaler, value []byte) (red Redelegation, err error)

UnmarshalRED unmarshals a redelegation from a store value

func (*Redelegation) AddEntry

func (red *Redelegation) AddEntry(creationHeight int64, minTime time.Time, balance sdk.Int, sharesDst sdk.Dec)

AddEntry - append entry to the unbonding delegation

func (*Redelegation) Descriptor

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

func (*Redelegation) Marshal

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

func (*Redelegation) MarshalTo

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

func (*Redelegation) MarshalToSizedBuffer

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

func (*Redelegation) ProtoMessage

func (*Redelegation) ProtoMessage()

func (*Redelegation) RemoveEntry

func (red *Redelegation) RemoveEntry(i int64)

RemoveEntry - remove entry at index i to the unbonding delegation

func (*Redelegation) Reset

func (m *Redelegation) Reset()

func (*Redelegation) Size

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

func (Redelegation) String

func (red Redelegation) String() string

String returns a human readable string representation of a Redelegation.

func (*Redelegation) Unmarshal

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

func (*Redelegation) XXX_DiscardUnknown

func (m *Redelegation) XXX_DiscardUnknown()

func (*Redelegation) XXX_Marshal

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

func (*Redelegation) XXX_Merge

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

func (*Redelegation) XXX_Size

func (m *Redelegation) XXX_Size() int

func (*Redelegation) XXX_Unmarshal

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

type RedelegationEntry

type RedelegationEntry struct {
	CreationHeight int64                      `` /* 127-byte string literal not displayed */
	CompletionTime time.Time                  `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"`
	InitialBalance plugchain_sdk_go_types.Int `` /* 173-byte string literal not displayed */
	SharesDst      plugchain_sdk_go_types.Dec `` /* 135-byte string literal not displayed */
}

RedelegationEntry defines a redelegation object with relevant metadata.

func NewRedelegationEntry

func NewRedelegationEntry(creationHeight int64, completionTime time.Time, balance sdk.Int, sharesDst sdk.Dec) RedelegationEntry

func (RedelegationEntry) Convert

func (r RedelegationEntry) Convert() interface{}

func (*RedelegationEntry) Descriptor

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

func (*RedelegationEntry) Equal

func (this *RedelegationEntry) Equal(that interface{}) bool

func (*RedelegationEntry) GetCompletionTime

func (m *RedelegationEntry) GetCompletionTime() time.Time

func (*RedelegationEntry) GetCreationHeight

func (m *RedelegationEntry) GetCreationHeight() int64

func (RedelegationEntry) IsMature

func (e RedelegationEntry) IsMature(currentTime time.Time) bool

IsMature - is the current entry mature

func (*RedelegationEntry) Marshal

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

func (*RedelegationEntry) MarshalTo

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

func (*RedelegationEntry) MarshalToSizedBuffer

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

func (*RedelegationEntry) ProtoMessage

func (*RedelegationEntry) ProtoMessage()

func (*RedelegationEntry) Reset

func (m *RedelegationEntry) Reset()

func (*RedelegationEntry) Size

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

func (RedelegationEntry) String

func (e RedelegationEntry) String() string

String implements the Stringer interface for a RedelegationEntry object.

func (*RedelegationEntry) Unmarshal

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

func (*RedelegationEntry) XXX_DiscardUnknown

func (m *RedelegationEntry) XXX_DiscardUnknown()

func (*RedelegationEntry) XXX_Marshal

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

func (*RedelegationEntry) XXX_Merge

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

func (*RedelegationEntry) XXX_Size

func (m *RedelegationEntry) XXX_Size() int

func (*RedelegationEntry) XXX_Unmarshal

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

type RedelegationEntryResponse

type RedelegationEntryResponse struct {
	RedelegationEntry RedelegationEntry          `protobuf:"bytes,1,opt,name=redelegation_entry,json=redelegationEntry,proto3" json:"redelegation_entry"`
	Balance           plugchain_sdk_go_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/xiaka53/plugchain-sdk-go/types.Int" json:"balance"`
}

RedelegationEntryResponse is equivalent to a RedelegationEntry except that it contains a balance in addition to shares which is more suitable for client responses.

func NewRedelegationEntryResponse

func NewRedelegationEntryResponse(
	creationHeight int64, completionTime time.Time, sharesDst sdk.Dec, initialBalance, balance sdk.Int) RedelegationEntryResponse

NewRedelegationEntryResponse creates a new RedelegationEntryResponse instance.

func (RedelegationEntryResponse) Convert

func (r RedelegationEntryResponse) Convert() interface{}

func (*RedelegationEntryResponse) Descriptor

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

func (*RedelegationEntryResponse) Equal

func (this *RedelegationEntryResponse) Equal(that interface{}) bool

func (*RedelegationEntryResponse) GetRedelegationEntry

func (m *RedelegationEntryResponse) GetRedelegationEntry() RedelegationEntry

func (*RedelegationEntryResponse) Marshal

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

func (*RedelegationEntryResponse) MarshalTo

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

func (*RedelegationEntryResponse) MarshalToSizedBuffer

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

func (*RedelegationEntryResponse) ProtoMessage

func (*RedelegationEntryResponse) ProtoMessage()

func (*RedelegationEntryResponse) Reset

func (m *RedelegationEntryResponse) Reset()

func (*RedelegationEntryResponse) Size

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

func (*RedelegationEntryResponse) String

func (m *RedelegationEntryResponse) String() string

func (*RedelegationEntryResponse) Unmarshal

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

func (*RedelegationEntryResponse) XXX_DiscardUnknown

func (m *RedelegationEntryResponse) XXX_DiscardUnknown()

func (*RedelegationEntryResponse) XXX_Marshal

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

func (*RedelegationEntryResponse) XXX_Merge

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

func (*RedelegationEntryResponse) XXX_Size

func (m *RedelegationEntryResponse) XXX_Size() int

func (*RedelegationEntryResponse) XXX_Unmarshal

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

type RedelegationResp

type RedelegationResp struct {
	Redelegation redelegation                `json:"redelegation"`
	Entries      []redelegationEntryResponse `json:"entries"`
}

type RedelegationResponse

type RedelegationResponse struct {
	Redelegation Redelegation                `protobuf:"bytes,1,opt,name=redelegation,proto3" json:"redelegation"`
	Entries      []RedelegationEntryResponse `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries"`
}

RedelegationResponse is equivalent to a Redelegation except that its entries contain a balance in addition to shares which is more suitable for client responses.

func NewRedelegationResponse

func NewRedelegationResponse(
	delegatorAddr sdk.AccAddress, validatorSrc, validatorDst sdk.ValAddress, entries []RedelegationEntryResponse,
) RedelegationResponse

NewRedelegationResponse crates a new RedelegationEntryResponse instance.

func (RedelegationResponse) Convert

func (r RedelegationResponse) Convert() interface{}

func (*RedelegationResponse) Descriptor

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

func (*RedelegationResponse) GetEntries

func (*RedelegationResponse) GetRedelegation

func (m *RedelegationResponse) GetRedelegation() Redelegation

func (*RedelegationResponse) Marshal

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

func (RedelegationResponse) MarshalJSON

func (r RedelegationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface. This is so we can achieve a flattened structure while embedding other types.

func (*RedelegationResponse) MarshalTo

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

func (*RedelegationResponse) MarshalToSizedBuffer

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

func (*RedelegationResponse) ProtoMessage

func (*RedelegationResponse) ProtoMessage()

func (*RedelegationResponse) Reset

func (m *RedelegationResponse) Reset()

func (*RedelegationResponse) Size

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

func (*RedelegationResponse) String

func (m *RedelegationResponse) String() string

func (*RedelegationResponse) Unmarshal

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

func (*RedelegationResponse) UnmarshalJSON

func (r *RedelegationResponse) UnmarshalJSON(bz []byte) error

UnmarshalJSON implements the json.Unmarshaler interface. This is so we can achieve a flattened structure while embedding other types.

func (*RedelegationResponse) XXX_DiscardUnknown

func (m *RedelegationResponse) XXX_DiscardUnknown()

func (*RedelegationResponse) XXX_Marshal

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

func (*RedelegationResponse) XXX_Merge

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

func (*RedelegationResponse) XXX_Size

func (m *RedelegationResponse) XXX_Size() int

func (*RedelegationResponse) XXX_Unmarshal

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

type RedelegationResponses

type RedelegationResponses []RedelegationResponse

RedelegationResponses are a collection of RedelegationResp

func (RedelegationResponses) String

func (r RedelegationResponses) String() (out string)

type Redelegations

type Redelegations []Redelegation

Redelegations are a collection of Redelegation

func (Redelegations) String

func (d Redelegations) String() (out string)

type UnbondingDelegation

type UnbondingDelegation struct {
	DelegatorAddress string                     `` /* 134-byte string literal not displayed */
	ValidatorAddress string                     `` /* 134-byte string literal not displayed */
	Entries          []UnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"`
}

UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.

func MustUnmarshalUBD

func MustUnmarshalUBD(cdc codec.BinaryMarshaler, value []byte) UnbondingDelegation

unmarshal a unbonding delegation from a store value

func NewUnbondingDelegation

func NewUnbondingDelegation(
	delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress,
	creationHeight int64, minTime time.Time, balance sdk.Int,
) UnbondingDelegation

NewUnbondingDelegation - create a new unbonding delegation object

func UnmarshalUBD

func UnmarshalUBD(cdc codec.BinaryMarshaler, value []byte) (ubd UnbondingDelegation, err error)

unmarshal a unbonding delegation from a store value

func (*UnbondingDelegation) AddEntry

func (ubd *UnbondingDelegation) AddEntry(creationHeight int64, minTime time.Time, balance sdk.Int)

AddEntry - append entry to the unbonding delegation

func (UnbondingDelegation) Convert

func (u UnbondingDelegation) Convert() interface{}

func (*UnbondingDelegation) Descriptor

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

func (*UnbondingDelegation) Marshal

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

func (*UnbondingDelegation) MarshalTo

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

func (*UnbondingDelegation) MarshalToSizedBuffer

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

func (*UnbondingDelegation) ProtoMessage

func (*UnbondingDelegation) ProtoMessage()

func (*UnbondingDelegation) RemoveEntry

func (ubd *UnbondingDelegation) RemoveEntry(i int64)

RemoveEntry - remove entry at index i to the unbonding delegation

func (*UnbondingDelegation) Reset

func (m *UnbondingDelegation) Reset()

func (*UnbondingDelegation) Size

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

func (UnbondingDelegation) String

func (ubd UnbondingDelegation) String() string

String returns a human readable string representation of an UnbondingDelegation.

func (*UnbondingDelegation) Unmarshal

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

func (*UnbondingDelegation) XXX_DiscardUnknown

func (m *UnbondingDelegation) XXX_DiscardUnknown()

func (*UnbondingDelegation) XXX_Marshal

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

func (*UnbondingDelegation) XXX_Merge

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

func (*UnbondingDelegation) XXX_Size

func (m *UnbondingDelegation) XXX_Size() int

func (*UnbondingDelegation) XXX_Unmarshal

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

type UnbondingDelegationEntry

type UnbondingDelegationEntry struct {
	CreationHeight int64                      `` /* 127-byte string literal not displayed */
	CompletionTime time.Time                  `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"`
	InitialBalance plugchain_sdk_go_types.Int `` /* 173-byte string literal not displayed */
	Balance        plugchain_sdk_go_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/xiaka53/plugchain-sdk-go/types.Int" json:"balance"`
}

UnbondingDelegationEntry defines an unbonding object with relevant metadata.

func NewUnbondingDelegationEntry

func NewUnbondingDelegationEntry(creationHeight int64, completionTime time.Time, balance sdk.Int) UnbondingDelegationEntry

func (UnbondingDelegationEntry) Convert

func (u UnbondingDelegationEntry) Convert() interface{}

func (*UnbondingDelegationEntry) Descriptor

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

func (*UnbondingDelegationEntry) Equal

func (this *UnbondingDelegationEntry) Equal(that interface{}) bool

func (*UnbondingDelegationEntry) GetCompletionTime

func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time

func (*UnbondingDelegationEntry) GetCreationHeight

func (m *UnbondingDelegationEntry) GetCreationHeight() int64

func (UnbondingDelegationEntry) IsMature

func (e UnbondingDelegationEntry) IsMature(currentTime time.Time) bool

IsMature - is the current entry mature

func (*UnbondingDelegationEntry) Marshal

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

func (*UnbondingDelegationEntry) MarshalTo

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

func (*UnbondingDelegationEntry) MarshalToSizedBuffer

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

func (*UnbondingDelegationEntry) ProtoMessage

func (*UnbondingDelegationEntry) ProtoMessage()

func (*UnbondingDelegationEntry) Reset

func (m *UnbondingDelegationEntry) Reset()

func (*UnbondingDelegationEntry) Size

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

func (UnbondingDelegationEntry) String

func (e UnbondingDelegationEntry) String() string

String implements the stringer interface for a UnbondingDelegationEntry.

func (*UnbondingDelegationEntry) Unmarshal

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

func (*UnbondingDelegationEntry) XXX_DiscardUnknown

func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()

func (*UnbondingDelegationEntry) XXX_Marshal

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

func (*UnbondingDelegationEntry) XXX_Merge

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

func (*UnbondingDelegationEntry) XXX_Size

func (m *UnbondingDelegationEntry) XXX_Size() int

func (*UnbondingDelegationEntry) XXX_Unmarshal

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

type UnbondingDelegations

type UnbondingDelegations []UnbondingDelegation

UnbondingDelegations is a collection of UnbondingDelegation

func (UnbondingDelegations) String

func (ubds UnbondingDelegations) String() (out string)

type UndelegateRequest

type UndelegateRequest struct {
	ValidatorAddr string      `json:"validator_address"`
	Amount        sdk.DecCoin `json:"amount"`
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BeginRedelegate

func (*UnimplementedMsgServer) CreateValidator

func (*UnimplementedMsgServer) Delegate

func (*UnimplementedMsgServer) EditValidator

func (*UnimplementedMsgServer) Undelegate

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Delegation

func (*UnimplementedQueryServer) DelegatorValidator

func (*UnimplementedQueryServer) DelegatorValidators

func (*UnimplementedQueryServer) HistoricalInfo

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Pool

func (*UnimplementedQueryServer) Redelegations

func (*UnimplementedQueryServer) UnbondingDelegation

func (*UnimplementedQueryServer) Validator

func (*UnimplementedQueryServer) Validators

type ValAddresses

type ValAddresses struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

ValAddresses defines a repeated set of validator addresses.

func (*ValAddresses) Descriptor

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

func (*ValAddresses) GetAddresses

func (m *ValAddresses) GetAddresses() []string

func (*ValAddresses) Marshal

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

func (*ValAddresses) MarshalTo

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

func (*ValAddresses) MarshalToSizedBuffer

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

func (*ValAddresses) ProtoMessage

func (*ValAddresses) ProtoMessage()

func (*ValAddresses) Reset

func (m *ValAddresses) Reset()

func (*ValAddresses) Size

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

func (*ValAddresses) String

func (this *ValAddresses) String() string

func (*ValAddresses) Unmarshal

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

func (*ValAddresses) XXX_DiscardUnknown

func (m *ValAddresses) XXX_DiscardUnknown()

func (*ValAddresses) XXX_Marshal

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

func (*ValAddresses) XXX_Merge

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

func (*ValAddresses) XXX_Size

func (m *ValAddresses) XXX_Size() int

func (*ValAddresses) XXX_Unmarshal

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

type Validator

type Validator struct {
	OperatorAddress   string                     `` /* 130-byte string literal not displayed */
	ConsensusPubkey   *types1.Any                `` /* 130-byte string literal not displayed */
	Jailed            bool                       `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed,omitempty"`
	Status            BondStatus                 `protobuf:"varint,4,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status,omitempty"`
	Tokens            plugchain_sdk_go_types.Int `` /* 126-byte string literal not displayed */
	DelegatorShares   plugchain_sdk_go_types.Dec `` /* 191-byte string literal not displayed */
	Description       Description                `protobuf:"bytes,7,opt,name=description,proto3" json:"description"`
	UnbondingHeight   int64                      `` /* 131-byte string literal not displayed */
	UnbondingTime     time.Time                  `protobuf:"bytes,9,opt,name=unbonding_time,json=unbondingTime,proto3,stdtime" json:"unbonding_time" yaml:"unbonding_time"`
	Commission        Commission                 `protobuf:"bytes,10,opt,name=commission,proto3" json:"commission"`
	MinSelfDelegation plugchain_sdk_go_types.Int `` /* 203-byte string literal not displayed */
}

Validator defines a validator, together with the total amount of the Validator's bond shares and their exchange rate to coins. Slashing results in a decrease in the exchange rate, allowing correct calculation of future undelegations without iterating over delegators. When coins are delegated to this validator, the validator is credited with a delegation whose number of bond shares is based on the amount of coins delegated divided by the current exchange rate. Voting power can be calculated as total bonded shares multiplied by exchange rate.

func (Validator) Convert

func (v Validator) Convert(cdc codec.Marshaler) interface{}

func (*Validator) Descriptor

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

func (Validator) GetPubKey

func (v Validator) GetPubKey(unpacker codectypes.AnyUnpacker) (pk crypto.PubKey, err error)

GetPubKey - Implements Validator.

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (Validator) String

func (v Validator) String() string

String implements the Stringer interface for a Validator object.

func (*Validator) Unmarshal

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

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

type ValidatorI

type ValidatorI interface {
	IsJailed() bool                                         // whether the validator is jailed
	GetMoniker() string                                     // moniker of the validator
	GetStatus() BondStatus                                  // status of the validator
	IsBonded() bool                                         // check if has a bonded status
	IsUnbonded() bool                                       // check if has status unbonded
	IsUnbonding() bool                                      // check if has status unbonding
	GetOperator() sdk.ValAddress                            // operator address to receive/return validators coins
	TmConsPubKey() (crypto.PubKey, error)                   // validation consensus pubkey
	GetConsAddr() (sdk.ConsAddress, error)                  // validation consensus address
	GetTokens() sdk.Int                                     // validation tokens
	GetBondedTokens() sdk.Int                               // validator bonded tokens
	GetConsensusPower() int64                               // validation power in tendermint
	GetCommission() sdk.Dec                                 // validator commission rate
	GetMinSelfDelegation() sdk.Int                          // validator minimum self delegation
	GetDelegatorShares() sdk.Dec                            // total outstanding delegator shares
	TokensFromShares(sdk.Dec) sdk.Dec                       // token worth of provided delegator shares
	TokensFromSharesTruncated(sdk.Dec) sdk.Dec              // token worth of provided delegator shares, truncated
	TokensFromSharesRoundUp(sdk.Dec) sdk.Dec                // token worth of provided delegator shares, rounded up
	SharesFromTokens(amt sdk.Int) (sdk.Dec, error)          // shares worth of delegator's bond
	SharesFromTokensTruncated(amt sdk.Int) (sdk.Dec, error) // truncated shares worth of delegator's bond
}

ValidatorI expected validator functions

Jump to

Keyboard shortcuts

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