Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func IsGridnode(voterAddr string) bool
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error
- func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type Delegation
- func (*Delegation) Descriptor() ([]byte, []int)
- func (m *Delegation) GetAmount() int64
- func (m *Delegation) GetDelegatorAddress() string
- func (m *Delegation) Marshal() (dAtA []byte, err error)
- func (m *Delegation) MarshalTo(dAtA []byte) (int, error)
- func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Delegation) ProtoMessage()
- func (m *Delegation) Reset()
- func (m *Delegation) Size() (n int)
- func (m *Delegation) String() string
- func (m *Delegation) Unmarshal(dAtA []byte) error
- func (m *Delegation) XXX_DiscardUnknown()
- func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Delegation) XXX_Merge(src proto.Message)
- func (m *Delegation) XXX_Size() int
- func (m *Delegation) XXX_Unmarshal(b []byte) error
- type DelegationData
- type DelegationInfo
- func (*DelegationInfo) Descriptor() ([]byte, []int)
- func (m *DelegationInfo) GetAccount() string
- func (m *DelegationInfo) GetDelegatedAmount() int64
- func (m *DelegationInfo) GetPublicKey() string
- func (m *DelegationInfo) GetUnbondingEntries() []*SimpleUnbondingEntry
- func (m *DelegationInfo) Marshal() (dAtA []byte, err error)
- func (m *DelegationInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegationInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegationInfo) ProtoMessage()
- func (m *DelegationInfo) Reset()
- func (m *DelegationInfo) Size() (n int)
- func (m *DelegationInfo) String() string
- func (m *DelegationInfo) Unmarshal(dAtA []byte) error
- func (m *DelegationInfo) XXX_DiscardUnknown()
- func (m *DelegationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegationInfo) XXX_Merge(src proto.Message)
- func (m *DelegationInfo) XXX_Size() int
- func (m *DelegationInfo) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GovKeeper
- type Gridnode
- type HedgehogData
- type MsgClient
- type MsgGridnodeDelegate
- func (*MsgGridnodeDelegate) Descriptor() ([]byte, []int)
- func (m *MsgGridnodeDelegate) GetAmount() int64
- func (m *MsgGridnodeDelegate) GetDelegatorAddress() string
- func (msg MsgGridnodeDelegate) GetSignBytes() []byte
- func (msg MsgGridnodeDelegate) GetSigners() []sdk.AccAddress
- func (m *MsgGridnodeDelegate) GetTimestamp() int64
- func (m *MsgGridnodeDelegate) GetUniqueId() string
- func (m *MsgGridnodeDelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgGridnodeDelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGridnodeDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGridnodeDelegate) ProtoMessage()
- func (m *MsgGridnodeDelegate) Reset()
- func (msg *MsgGridnodeDelegate) Route() string
- func (m *MsgGridnodeDelegate) Size() (n int)
- func (m *MsgGridnodeDelegate) String() string
- func (msg *MsgGridnodeDelegate) Type() string
- func (m *MsgGridnodeDelegate) Unmarshal(dAtA []byte) error
- func (msg MsgGridnodeDelegate) ValidateBasic() error
- func (m *MsgGridnodeDelegate) XXX_DiscardUnknown()
- func (m *MsgGridnodeDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGridnodeDelegate) XXX_Merge(src proto.Message)
- func (m *MsgGridnodeDelegate) XXX_Size() int
- func (m *MsgGridnodeDelegate) XXX_Unmarshal(b []byte) error
- type MsgGridnodeDelegateResponse
- func (*MsgGridnodeDelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgGridnodeDelegateResponse) GetStatus() string
- func (m *MsgGridnodeDelegateResponse) GetTxHash() string
- func (m *MsgGridnodeDelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGridnodeDelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGridnodeDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGridnodeDelegateResponse) ProtoMessage()
- func (m *MsgGridnodeDelegateResponse) Reset()
- func (m *MsgGridnodeDelegateResponse) Size() (n int)
- func (m *MsgGridnodeDelegateResponse) String() string
- func (m *MsgGridnodeDelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGridnodeDelegateResponse) XXX_DiscardUnknown()
- func (m *MsgGridnodeDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGridnodeDelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgGridnodeDelegateResponse) XXX_Size() int
- func (m *MsgGridnodeDelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgGridnodeUndelegate
- func (*MsgGridnodeUndelegate) Descriptor() ([]byte, []int)
- func (m *MsgGridnodeUndelegate) GetAmount() int64
- func (m *MsgGridnodeUndelegate) GetDelegatorAddress() string
- func (msg MsgGridnodeUndelegate) GetSignBytes() []byte
- func (msg MsgGridnodeUndelegate) GetSigners() []sdk.AccAddress
- func (m *MsgGridnodeUndelegate) GetTimestamp() int64
- func (m *MsgGridnodeUndelegate) GetUniqueId() string
- func (m *MsgGridnodeUndelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgGridnodeUndelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGridnodeUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGridnodeUndelegate) ProtoMessage()
- func (m *MsgGridnodeUndelegate) Reset()
- func (msg *MsgGridnodeUndelegate) Route() string
- func (m *MsgGridnodeUndelegate) Size() (n int)
- func (m *MsgGridnodeUndelegate) String() string
- func (msg *MsgGridnodeUndelegate) Type() string
- func (m *MsgGridnodeUndelegate) Unmarshal(dAtA []byte) error
- func (msg MsgGridnodeUndelegate) ValidateBasic() error
- func (m *MsgGridnodeUndelegate) XXX_DiscardUnknown()
- func (m *MsgGridnodeUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGridnodeUndelegate) XXX_Merge(src proto.Message)
- func (m *MsgGridnodeUndelegate) XXX_Size() int
- func (m *MsgGridnodeUndelegate) XXX_Unmarshal(b []byte) error
- type MsgGridnodeUndelegateResponse
- func (*MsgGridnodeUndelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgGridnodeUndelegateResponse) GetStatus() string
- func (m *MsgGridnodeUndelegateResponse) GetTxHash() string
- func (m *MsgGridnodeUndelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGridnodeUndelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGridnodeUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGridnodeUndelegateResponse) ProtoMessage()
- func (m *MsgGridnodeUndelegateResponse) Reset()
- func (m *MsgGridnodeUndelegateResponse) Size() (n int)
- func (m *MsgGridnodeUndelegateResponse) String() string
- func (m *MsgGridnodeUndelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGridnodeUndelegateResponse) XXX_DiscardUnknown()
- func (m *MsgGridnodeUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGridnodeUndelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgGridnodeUndelegateResponse) XXX_Size() int
- func (m *MsgGridnodeUndelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllDelegationsRequest
- func (*QueryAllDelegationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllDelegationsRequest) GetPagination() *query.PageRequest
- func (m *QueryAllDelegationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDelegationsRequest) ProtoMessage()
- func (m *QueryAllDelegationsRequest) Reset()
- func (m *QueryAllDelegationsRequest) Size() (n int)
- func (m *QueryAllDelegationsRequest) String() string
- func (m *QueryAllDelegationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllDelegationsRequest) XXX_DiscardUnknown()
- func (m *QueryAllDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDelegationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllDelegationsRequest) XXX_Size() int
- func (m *QueryAllDelegationsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllDelegationsResponse
- func (*QueryAllDelegationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllDelegationsResponse) GetChainId() string
- func (m *QueryAllDelegationsResponse) GetDelegations() []*DelegationInfo
- func (m *QueryAllDelegationsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllDelegationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDelegationsResponse) ProtoMessage()
- func (m *QueryAllDelegationsResponse) Reset()
- func (m *QueryAllDelegationsResponse) Size() (n int)
- func (m *QueryAllDelegationsResponse) String() string
- func (m *QueryAllDelegationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllDelegationsResponse) XXX_DiscardUnknown()
- func (m *QueryAllDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDelegationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllDelegationsResponse) XXX_Size() int
- func (m *QueryAllDelegationsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDelegatedAmountRequest
- func (*QueryDelegatedAmountRequest) Descriptor() ([]byte, []int)
- func (m *QueryDelegatedAmountRequest) GetDelegatorAddress() string
- func (m *QueryDelegatedAmountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatedAmountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatedAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatedAmountRequest) ProtoMessage()
- func (m *QueryDelegatedAmountRequest) Reset()
- func (m *QueryDelegatedAmountRequest) Size() (n int)
- func (m *QueryDelegatedAmountRequest) String() string
- func (m *QueryDelegatedAmountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatedAmountRequest) XXX_DiscardUnknown()
- func (m *QueryDelegatedAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatedAmountRequest) XXX_Merge(src proto.Message)
- func (m *QueryDelegatedAmountRequest) XXX_Size() int
- func (m *QueryDelegatedAmountRequest) XXX_Unmarshal(b []byte) error
- type QueryDelegatedAmountResponse
- func (*QueryDelegatedAmountResponse) Descriptor() ([]byte, []int)
- func (m *QueryDelegatedAmountResponse) GetAmount() int64
- func (m *QueryDelegatedAmountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatedAmountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatedAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatedAmountResponse) ProtoMessage()
- func (m *QueryDelegatedAmountResponse) Reset()
- func (m *QueryDelegatedAmountResponse) Size() (n int)
- func (m *QueryDelegatedAmountResponse) String() string
- func (m *QueryDelegatedAmountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatedAmountResponse) XXX_DiscardUnknown()
- func (m *QueryDelegatedAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatedAmountResponse) XXX_Merge(src proto.Message)
- func (m *QueryDelegatedAmountResponse) XXX_Size() int
- func (m *QueryDelegatedAmountResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryUnbondingEntriesRequest
- func (*QueryUnbondingEntriesRequest) Descriptor() ([]byte, []int)
- func (m *QueryUnbondingEntriesRequest) GetBondingAccountAddress() string
- func (m *QueryUnbondingEntriesRequest) GetPagination() *query.PageRequest
- func (m *QueryUnbondingEntriesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUnbondingEntriesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUnbondingEntriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUnbondingEntriesRequest) ProtoMessage()
- func (m *QueryUnbondingEntriesRequest) Reset()
- func (m *QueryUnbondingEntriesRequest) Size() (n int)
- func (m *QueryUnbondingEntriesRequest) String() string
- func (m *QueryUnbondingEntriesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUnbondingEntriesRequest) XXX_DiscardUnknown()
- func (m *QueryUnbondingEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUnbondingEntriesRequest) XXX_Merge(src proto.Message)
- func (m *QueryUnbondingEntriesRequest) XXX_Size() int
- func (m *QueryUnbondingEntriesRequest) XXX_Unmarshal(b []byte) error
- type QueryUnbondingEntriesResponse
- func (*QueryUnbondingEntriesResponse) Descriptor() ([]byte, []int)
- func (m *QueryUnbondingEntriesResponse) GetPagination() *query.PageResponse
- func (m *QueryUnbondingEntriesResponse) GetUnbondingEntries() []*UnbondingEntry
- func (m *QueryUnbondingEntriesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUnbondingEntriesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUnbondingEntriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUnbondingEntriesResponse) ProtoMessage()
- func (m *QueryUnbondingEntriesResponse) Reset()
- func (m *QueryUnbondingEntriesResponse) Size() (n int)
- func (m *QueryUnbondingEntriesResponse) String() string
- func (m *QueryUnbondingEntriesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUnbondingEntriesResponse) XXX_DiscardUnknown()
- func (m *QueryUnbondingEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUnbondingEntriesResponse) XXX_Merge(src proto.Message)
- func (m *QueryUnbondingEntriesResponse) XXX_Size() int
- func (m *QueryUnbondingEntriesResponse) XXX_Unmarshal(b []byte) error
- type SimpleUnbondingEntry
- func (*SimpleUnbondingEntry) Descriptor() ([]byte, []int)
- func (m *SimpleUnbondingEntry) GetAmount() int64
- func (m *SimpleUnbondingEntry) GetCompletionTime() int64
- func (m *SimpleUnbondingEntry) Marshal() (dAtA []byte, err error)
- func (m *SimpleUnbondingEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *SimpleUnbondingEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SimpleUnbondingEntry) ProtoMessage()
- func (m *SimpleUnbondingEntry) Reset()
- func (m *SimpleUnbondingEntry) Size() (n int)
- func (m *SimpleUnbondingEntry) String() string
- func (m *SimpleUnbondingEntry) Unmarshal(dAtA []byte) error
- func (m *SimpleUnbondingEntry) XXX_DiscardUnknown()
- func (m *SimpleUnbondingEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SimpleUnbondingEntry) XXX_Merge(src proto.Message)
- func (m *SimpleUnbondingEntry) XXX_Size() int
- func (m *SimpleUnbondingEntry) XXX_Unmarshal(b []byte) error
- type UnbondingEntry
- func (*UnbondingEntry) Descriptor() ([]byte, []int)
- func (m *UnbondingEntry) GetAccount() string
- func (m *UnbondingEntry) GetAmount() int64
- func (m *UnbondingEntry) GetCompletionTime() int64
- func (m *UnbondingEntry) Marshal() (dAtA []byte, err error)
- func (m *UnbondingEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *UnbondingEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnbondingEntry) ProtoMessage()
- func (m *UnbondingEntry) Reset()
- func (m *UnbondingEntry) Size() (n int)
- func (m *UnbondingEntry) String() string
- func (m *UnbondingEntry) Unmarshal(dAtA []byte) error
- func (m *UnbondingEntry) XXX_DiscardUnknown()
- func (m *UnbondingEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnbondingEntry) XXX_Merge(src proto.Message)
- func (m *UnbondingEntry) XXX_Size() int
- func (m *UnbondingEntry) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) DelegateTokens(ctx context.Context, req *MsgGridnodeDelegate) (*MsgGridnodeDelegateResponse, error)
- func (*UnimplementedMsgServer) UndelegateTokens(ctx context.Context, req *MsgGridnodeUndelegate) (*MsgGridnodeUndelegateResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllDelegations(ctx context.Context, req *QueryAllDelegationsRequest) (*QueryAllDelegationsResponse, error)
- func (*UnimplementedQueryServer) DelegatedAmount(ctx context.Context, req *QueryDelegatedAmountRequest) (*QueryDelegatedAmountResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) UnbondingEntries(ctx context.Context, req *QueryUnbondingEntriesRequest) (*QueryUnbondingEntriesResponse, error)
Constants ¶
const ( // Define constants for your module's message types and routes TypeMsgDelegate = "delegategridnode" TypeMsgUndelegate = "undelegategridnode" )
const ( // ModuleName defines the module name ModuleName = "gridnode" // ModuleAccountName defines the module account name ModuleAccountName = "module_account_gridnode" // StoreKey defines the primary module store key StoreKey = ModuleName ParamsKey = ModuleName + "/ParamsKey" // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_gridnode" PramsMemKey = "mem_gridnode_params" )
const ( EventTypeDelegate = "delegate" EventTypeUndelegate = "undelegate" AttributeKeyDelegator = "delegator" AttributeKeyAmount = "amount" EventTypeCompleteUnbond = "complete_unbond" EventTypeUnbond = "unbond" AttributeKeyCompletionTime = "completion_time" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ErrAmountExceedsDelagation = errors.Register(ModuleName, 1101, "amount exceeds delegated amount")
var ErrInsufficientFunds = errors.Register(ModuleName, 1100, "insufficient funds")
var ErrOverUnbond = errors.Register(ModuleName, 1102, "attempting to unbond more than the delegated amount")
var ErrUnknownRequest = errors.Register(ModuleName, 101, "unknown request")
Functions ¶
func IsGridnode ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the interfaces types with the interface registry.
func RegisterMsgHandler ¶
RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMsgHandlerClient ¶
RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.
func RegisterMsgHandlerFromEndpoint ¶
func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMsgHandlerServer ¶
RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI SetAccount(ctx context.Context, acc sdk.AccountI) }
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin }
BankKeeper defines the expected interface needed to retrieve account balances.
type Delegation ¶
type Delegation struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*Delegation) Descriptor ¶
func (*Delegation) Descriptor() ([]byte, []int)
func (*Delegation) GetAmount ¶
func (m *Delegation) GetAmount() int64
func (*Delegation) GetDelegatorAddress ¶
func (m *Delegation) GetDelegatorAddress() string
func (*Delegation) Marshal ¶
func (m *Delegation) Marshal() (dAtA []byte, err 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 (m *Delegation) String() string
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 DelegationData ¶
type DelegationInfo ¶
type DelegationInfo struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` DelegatedAmount int64 `protobuf:"varint,2,opt,name=delegated_amount,json=delegatedAmount,proto3" json:"delegated_amount,omitempty"` UnbondingEntries []*SimpleUnbondingEntry `protobuf:"bytes,3,rep,name=unbonding_entries,json=unbondingEntries,proto3" json:"unbonding_entries,omitempty"` PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` }
func (*DelegationInfo) Descriptor ¶
func (*DelegationInfo) Descriptor() ([]byte, []int)
func (*DelegationInfo) GetAccount ¶
func (m *DelegationInfo) GetAccount() string
func (*DelegationInfo) GetDelegatedAmount ¶
func (m *DelegationInfo) GetDelegatedAmount() int64
func (*DelegationInfo) GetPublicKey ¶
func (m *DelegationInfo) GetPublicKey() string
func (*DelegationInfo) GetUnbondingEntries ¶
func (m *DelegationInfo) GetUnbondingEntries() []*SimpleUnbondingEntry
func (*DelegationInfo) Marshal ¶
func (m *DelegationInfo) Marshal() (dAtA []byte, err error)
func (*DelegationInfo) MarshalToSizedBuffer ¶
func (m *DelegationInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegationInfo) ProtoMessage ¶
func (*DelegationInfo) ProtoMessage()
func (*DelegationInfo) Reset ¶
func (m *DelegationInfo) Reset()
func (*DelegationInfo) Size ¶
func (m *DelegationInfo) Size() (n int)
func (*DelegationInfo) String ¶
func (m *DelegationInfo) String() string
func (*DelegationInfo) Unmarshal ¶
func (m *DelegationInfo) Unmarshal(dAtA []byte) error
func (*DelegationInfo) XXX_DiscardUnknown ¶
func (m *DelegationInfo) XXX_DiscardUnknown()
func (*DelegationInfo) XXX_Marshal ¶
func (m *DelegationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegationInfo) XXX_Merge ¶
func (m *DelegationInfo) XXX_Merge(src proto.Message)
func (*DelegationInfo) XXX_Size ¶
func (m *DelegationInfo) XXX_Size() int
func (*DelegationInfo) XXX_Unmarshal ¶
func (m *DelegationInfo) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState defines the gridnode module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type GovKeeper ¶
type GovKeeper interface { // Methods from the x/gov module you want to access AddVote(ctx context.Context, proposalID uint64, voterAddr sdk.AccAddress, option govtypes.VoteOption) (govtypes.Vote, error) }
Expected interface for the x/gov keeper
type Gridnode ¶
type Gridnode struct { ID string // This is the gridnode-id from Hedgehog Owner sdk.AccAddress // This is the owner of the gridnode }
type HedgehogData ¶
type HedgehogData struct {
Active bool `json:"active"`
}
type MsgClient ¶
type MsgClient interface { DelegateTokens(ctx context.Context, in *MsgGridnodeDelegate, opts ...grpc.CallOption) (*MsgGridnodeDelegateResponse, error) UndelegateTokens(ctx context.Context, in *MsgGridnodeUndelegate, opts ...grpc.CallOption) (*MsgGridnodeUndelegateResponse, error) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgGridnodeDelegate ¶
type MsgGridnodeDelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` UniqueId string `protobuf:"bytes,4,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` }
MsgGridnodeDelegate is the request type for the Msg/DelegateTokens RPC method.
func NewMsgDelegateGridnode ¶
func NewMsgDelegateGridnode(delegatorAddress string, amount int64) *MsgGridnodeDelegate
func (*MsgGridnodeDelegate) Descriptor ¶
func (*MsgGridnodeDelegate) Descriptor() ([]byte, []int)
func (*MsgGridnodeDelegate) GetAmount ¶
func (m *MsgGridnodeDelegate) GetAmount() int64
func (*MsgGridnodeDelegate) GetDelegatorAddress ¶
func (m *MsgGridnodeDelegate) GetDelegatorAddress() string
func (MsgGridnodeDelegate) GetSignBytes ¶
func (msg MsgGridnodeDelegate) GetSignBytes() []byte
func (MsgGridnodeDelegate) GetSigners ¶
func (msg MsgGridnodeDelegate) GetSigners() []sdk.AccAddress
func (*MsgGridnodeDelegate) GetTimestamp ¶
func (m *MsgGridnodeDelegate) GetTimestamp() int64
func (*MsgGridnodeDelegate) GetUniqueId ¶
func (m *MsgGridnodeDelegate) GetUniqueId() string
func (*MsgGridnodeDelegate) Marshal ¶
func (m *MsgGridnodeDelegate) Marshal() (dAtA []byte, err error)
func (*MsgGridnodeDelegate) MarshalTo ¶
func (m *MsgGridnodeDelegate) MarshalTo(dAtA []byte) (int, error)
func (*MsgGridnodeDelegate) MarshalToSizedBuffer ¶
func (m *MsgGridnodeDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGridnodeDelegate) ProtoMessage ¶
func (*MsgGridnodeDelegate) ProtoMessage()
func (*MsgGridnodeDelegate) Reset ¶
func (m *MsgGridnodeDelegate) Reset()
func (*MsgGridnodeDelegate) Route ¶
func (msg *MsgGridnodeDelegate) Route() string
Implementing the sdk.Msg interface
func (*MsgGridnodeDelegate) Size ¶
func (m *MsgGridnodeDelegate) Size() (n int)
func (*MsgGridnodeDelegate) String ¶
func (m *MsgGridnodeDelegate) String() string
func (*MsgGridnodeDelegate) Type ¶
func (msg *MsgGridnodeDelegate) Type() string
func (*MsgGridnodeDelegate) Unmarshal ¶
func (m *MsgGridnodeDelegate) Unmarshal(dAtA []byte) error
func (MsgGridnodeDelegate) ValidateBasic ¶
func (msg MsgGridnodeDelegate) ValidateBasic() error
func (*MsgGridnodeDelegate) XXX_DiscardUnknown ¶
func (m *MsgGridnodeDelegate) XXX_DiscardUnknown()
func (*MsgGridnodeDelegate) XXX_Marshal ¶
func (m *MsgGridnodeDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGridnodeDelegate) XXX_Merge ¶
func (m *MsgGridnodeDelegate) XXX_Merge(src proto.Message)
func (*MsgGridnodeDelegate) XXX_Size ¶
func (m *MsgGridnodeDelegate) XXX_Size() int
func (*MsgGridnodeDelegate) XXX_Unmarshal ¶
func (m *MsgGridnodeDelegate) XXX_Unmarshal(b []byte) error
type MsgGridnodeDelegateResponse ¶
type MsgGridnodeDelegateResponse struct { TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` }
MsgGridnodeDelegateResponse is the response type for the Msg/DelegateTokens RPC method.
func (*MsgGridnodeDelegateResponse) Descriptor ¶
func (*MsgGridnodeDelegateResponse) Descriptor() ([]byte, []int)
func (*MsgGridnodeDelegateResponse) GetStatus ¶
func (m *MsgGridnodeDelegateResponse) GetStatus() string
func (*MsgGridnodeDelegateResponse) GetTxHash ¶
func (m *MsgGridnodeDelegateResponse) GetTxHash() string
func (*MsgGridnodeDelegateResponse) Marshal ¶
func (m *MsgGridnodeDelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgGridnodeDelegateResponse) MarshalTo ¶
func (m *MsgGridnodeDelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGridnodeDelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgGridnodeDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGridnodeDelegateResponse) ProtoMessage ¶
func (*MsgGridnodeDelegateResponse) ProtoMessage()
func (*MsgGridnodeDelegateResponse) Reset ¶
func (m *MsgGridnodeDelegateResponse) Reset()
func (*MsgGridnodeDelegateResponse) Size ¶
func (m *MsgGridnodeDelegateResponse) Size() (n int)
func (*MsgGridnodeDelegateResponse) String ¶
func (m *MsgGridnodeDelegateResponse) String() string
func (*MsgGridnodeDelegateResponse) Unmarshal ¶
func (m *MsgGridnodeDelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgGridnodeDelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgGridnodeDelegateResponse) XXX_DiscardUnknown()
func (*MsgGridnodeDelegateResponse) XXX_Marshal ¶
func (m *MsgGridnodeDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGridnodeDelegateResponse) XXX_Merge ¶
func (m *MsgGridnodeDelegateResponse) XXX_Merge(src proto.Message)
func (*MsgGridnodeDelegateResponse) XXX_Size ¶
func (m *MsgGridnodeDelegateResponse) XXX_Size() int
func (*MsgGridnodeDelegateResponse) XXX_Unmarshal ¶
func (m *MsgGridnodeDelegateResponse) XXX_Unmarshal(b []byte) error
type MsgGridnodeUndelegate ¶
type MsgGridnodeUndelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` UniqueId string `protobuf:"bytes,4,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` }
func NewMsgUndelegateGridnode ¶
func NewMsgUndelegateGridnode(delegatorAddress string, amount int64) *MsgGridnodeUndelegate
func (*MsgGridnodeUndelegate) Descriptor ¶
func (*MsgGridnodeUndelegate) Descriptor() ([]byte, []int)
func (*MsgGridnodeUndelegate) GetAmount ¶
func (m *MsgGridnodeUndelegate) GetAmount() int64
func (*MsgGridnodeUndelegate) GetDelegatorAddress ¶
func (m *MsgGridnodeUndelegate) GetDelegatorAddress() string
func (MsgGridnodeUndelegate) GetSignBytes ¶
func (msg MsgGridnodeUndelegate) GetSignBytes() []byte
func (MsgGridnodeUndelegate) GetSigners ¶
func (msg MsgGridnodeUndelegate) GetSigners() []sdk.AccAddress
func (*MsgGridnodeUndelegate) GetTimestamp ¶
func (m *MsgGridnodeUndelegate) GetTimestamp() int64
func (*MsgGridnodeUndelegate) GetUniqueId ¶
func (m *MsgGridnodeUndelegate) GetUniqueId() string
func (*MsgGridnodeUndelegate) Marshal ¶
func (m *MsgGridnodeUndelegate) Marshal() (dAtA []byte, err error)
func (*MsgGridnodeUndelegate) MarshalTo ¶
func (m *MsgGridnodeUndelegate) MarshalTo(dAtA []byte) (int, error)
func (*MsgGridnodeUndelegate) MarshalToSizedBuffer ¶
func (m *MsgGridnodeUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGridnodeUndelegate) ProtoMessage ¶
func (*MsgGridnodeUndelegate) ProtoMessage()
func (*MsgGridnodeUndelegate) Reset ¶
func (m *MsgGridnodeUndelegate) Reset()
func (*MsgGridnodeUndelegate) Route ¶
func (msg *MsgGridnodeUndelegate) Route() string
func (*MsgGridnodeUndelegate) Size ¶
func (m *MsgGridnodeUndelegate) Size() (n int)
func (*MsgGridnodeUndelegate) String ¶
func (m *MsgGridnodeUndelegate) String() string
func (*MsgGridnodeUndelegate) Type ¶
func (msg *MsgGridnodeUndelegate) Type() string
func (*MsgGridnodeUndelegate) Unmarshal ¶
func (m *MsgGridnodeUndelegate) Unmarshal(dAtA []byte) error
func (MsgGridnodeUndelegate) ValidateBasic ¶
func (msg MsgGridnodeUndelegate) ValidateBasic() error
func (*MsgGridnodeUndelegate) XXX_DiscardUnknown ¶
func (m *MsgGridnodeUndelegate) XXX_DiscardUnknown()
func (*MsgGridnodeUndelegate) XXX_Marshal ¶
func (m *MsgGridnodeUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGridnodeUndelegate) XXX_Merge ¶
func (m *MsgGridnodeUndelegate) XXX_Merge(src proto.Message)
func (*MsgGridnodeUndelegate) XXX_Size ¶
func (m *MsgGridnodeUndelegate) XXX_Size() int
func (*MsgGridnodeUndelegate) XXX_Unmarshal ¶
func (m *MsgGridnodeUndelegate) XXX_Unmarshal(b []byte) error
type MsgGridnodeUndelegateResponse ¶
type MsgGridnodeUndelegateResponse struct { TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` }
func (*MsgGridnodeUndelegateResponse) Descriptor ¶
func (*MsgGridnodeUndelegateResponse) Descriptor() ([]byte, []int)
func (*MsgGridnodeUndelegateResponse) GetStatus ¶
func (m *MsgGridnodeUndelegateResponse) GetStatus() string
func (*MsgGridnodeUndelegateResponse) GetTxHash ¶
func (m *MsgGridnodeUndelegateResponse) GetTxHash() string
func (*MsgGridnodeUndelegateResponse) Marshal ¶
func (m *MsgGridnodeUndelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgGridnodeUndelegateResponse) MarshalTo ¶
func (m *MsgGridnodeUndelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGridnodeUndelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgGridnodeUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGridnodeUndelegateResponse) ProtoMessage ¶
func (*MsgGridnodeUndelegateResponse) ProtoMessage()
func (*MsgGridnodeUndelegateResponse) Reset ¶
func (m *MsgGridnodeUndelegateResponse) Reset()
func (*MsgGridnodeUndelegateResponse) Size ¶
func (m *MsgGridnodeUndelegateResponse) Size() (n int)
func (*MsgGridnodeUndelegateResponse) String ¶
func (m *MsgGridnodeUndelegateResponse) String() string
func (*MsgGridnodeUndelegateResponse) Unmarshal ¶
func (m *MsgGridnodeUndelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgGridnodeUndelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgGridnodeUndelegateResponse) XXX_DiscardUnknown()
func (*MsgGridnodeUndelegateResponse) XXX_Marshal ¶
func (m *MsgGridnodeUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGridnodeUndelegateResponse) XXX_Merge ¶
func (m *MsgGridnodeUndelegateResponse) XXX_Merge(src proto.Message)
func (*MsgGridnodeUndelegateResponse) XXX_Size ¶
func (m *MsgGridnodeUndelegateResponse) XXX_Size() int
func (*MsgGridnodeUndelegateResponse) XXX_Unmarshal ¶
func (m *MsgGridnodeUndelegateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { DelegateTokens(context.Context, *MsgGridnodeDelegate) (*MsgGridnodeDelegateResponse, error) UndelegateTokens(context.Context, *MsgGridnodeUndelegate) (*MsgGridnodeUndelegateResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the module parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { Get(context.Context, []byte, interface{}) Set(context.Context, []byte, interface{}) }
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllDelegationsRequest ¶
type QueryAllDelegationsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllDelegationsRequest) Descriptor ¶
func (*QueryAllDelegationsRequest) Descriptor() ([]byte, []int)
func (*QueryAllDelegationsRequest) GetPagination ¶
func (m *QueryAllDelegationsRequest) GetPagination() *query.PageRequest
func (*QueryAllDelegationsRequest) Marshal ¶
func (m *QueryAllDelegationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllDelegationsRequest) MarshalTo ¶
func (m *QueryAllDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDelegationsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDelegationsRequest) ProtoMessage ¶
func (*QueryAllDelegationsRequest) ProtoMessage()
func (*QueryAllDelegationsRequest) Reset ¶
func (m *QueryAllDelegationsRequest) Reset()
func (*QueryAllDelegationsRequest) Size ¶
func (m *QueryAllDelegationsRequest) Size() (n int)
func (*QueryAllDelegationsRequest) String ¶
func (m *QueryAllDelegationsRequest) String() string
func (*QueryAllDelegationsRequest) Unmarshal ¶
func (m *QueryAllDelegationsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllDelegationsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllDelegationsRequest) XXX_DiscardUnknown()
func (*QueryAllDelegationsRequest) XXX_Marshal ¶
func (m *QueryAllDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDelegationsRequest) XXX_Merge ¶
func (m *QueryAllDelegationsRequest) XXX_Merge(src proto.Message)
func (*QueryAllDelegationsRequest) XXX_Size ¶
func (m *QueryAllDelegationsRequest) XXX_Size() int
func (*QueryAllDelegationsRequest) XXX_Unmarshal ¶
func (m *QueryAllDelegationsRequest) XXX_Unmarshal(b []byte) error
type QueryAllDelegationsResponse ¶
type QueryAllDelegationsResponse struct { Delegations []*DelegationInfo `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` }
func (*QueryAllDelegationsResponse) Descriptor ¶
func (*QueryAllDelegationsResponse) Descriptor() ([]byte, []int)
func (*QueryAllDelegationsResponse) GetChainId ¶
func (m *QueryAllDelegationsResponse) GetChainId() string
func (*QueryAllDelegationsResponse) GetDelegations ¶
func (m *QueryAllDelegationsResponse) GetDelegations() []*DelegationInfo
func (*QueryAllDelegationsResponse) GetPagination ¶
func (m *QueryAllDelegationsResponse) GetPagination() *query.PageResponse
func (*QueryAllDelegationsResponse) Marshal ¶
func (m *QueryAllDelegationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllDelegationsResponse) MarshalTo ¶
func (m *QueryAllDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDelegationsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDelegationsResponse) ProtoMessage ¶
func (*QueryAllDelegationsResponse) ProtoMessage()
func (*QueryAllDelegationsResponse) Reset ¶
func (m *QueryAllDelegationsResponse) Reset()
func (*QueryAllDelegationsResponse) Size ¶
func (m *QueryAllDelegationsResponse) Size() (n int)
func (*QueryAllDelegationsResponse) String ¶
func (m *QueryAllDelegationsResponse) String() string
func (*QueryAllDelegationsResponse) Unmarshal ¶
func (m *QueryAllDelegationsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllDelegationsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllDelegationsResponse) XXX_DiscardUnknown()
func (*QueryAllDelegationsResponse) XXX_Marshal ¶
func (m *QueryAllDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDelegationsResponse) XXX_Merge ¶
func (m *QueryAllDelegationsResponse) XXX_Merge(src proto.Message)
func (*QueryAllDelegationsResponse) XXX_Size ¶
func (m *QueryAllDelegationsResponse) XXX_Size() int
func (*QueryAllDelegationsResponse) XXX_Unmarshal ¶
func (m *QueryAllDelegationsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // DelegatedAmount queries the amount delegated by a specific account. DelegatedAmount(ctx context.Context, in *QueryDelegatedAmountRequest, opts ...grpc.CallOption) (*QueryDelegatedAmountResponse, error) UnbondingEntries(ctx context.Context, in *QueryUnbondingEntriesRequest, opts ...grpc.CallOption) (*QueryUnbondingEntriesResponse, error) AllDelegations(ctx context.Context, in *QueryAllDelegationsRequest, opts ...grpc.CallOption) (*QueryAllDelegationsResponse, 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 QueryDelegatedAmountRequest ¶
type QueryDelegatedAmountRequest struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}
QueryDelegatedAmountRequest is the request type for the Query/DelegatedAmount RPC method.
func (*QueryDelegatedAmountRequest) Descriptor ¶
func (*QueryDelegatedAmountRequest) Descriptor() ([]byte, []int)
func (*QueryDelegatedAmountRequest) GetDelegatorAddress ¶
func (m *QueryDelegatedAmountRequest) GetDelegatorAddress() string
func (*QueryDelegatedAmountRequest) Marshal ¶
func (m *QueryDelegatedAmountRequest) Marshal() (dAtA []byte, err error)
func (*QueryDelegatedAmountRequest) MarshalTo ¶
func (m *QueryDelegatedAmountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatedAmountRequest) MarshalToSizedBuffer ¶
func (m *QueryDelegatedAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatedAmountRequest) ProtoMessage ¶
func (*QueryDelegatedAmountRequest) ProtoMessage()
func (*QueryDelegatedAmountRequest) Reset ¶
func (m *QueryDelegatedAmountRequest) Reset()
func (*QueryDelegatedAmountRequest) Size ¶
func (m *QueryDelegatedAmountRequest) Size() (n int)
func (*QueryDelegatedAmountRequest) String ¶
func (m *QueryDelegatedAmountRequest) String() string
func (*QueryDelegatedAmountRequest) Unmarshal ¶
func (m *QueryDelegatedAmountRequest) Unmarshal(dAtA []byte) error
func (*QueryDelegatedAmountRequest) XXX_DiscardUnknown ¶
func (m *QueryDelegatedAmountRequest) XXX_DiscardUnknown()
func (*QueryDelegatedAmountRequest) XXX_Marshal ¶
func (m *QueryDelegatedAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatedAmountRequest) XXX_Merge ¶
func (m *QueryDelegatedAmountRequest) XXX_Merge(src proto.Message)
func (*QueryDelegatedAmountRequest) XXX_Size ¶
func (m *QueryDelegatedAmountRequest) XXX_Size() int
func (*QueryDelegatedAmountRequest) XXX_Unmarshal ¶
func (m *QueryDelegatedAmountRequest) XXX_Unmarshal(b []byte) error
type QueryDelegatedAmountResponse ¶
type QueryDelegatedAmountResponse struct {
Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
}
QueryDelegatedAmountResponse is the response type for the Query/DelegatedAmount RPC method.
func (*QueryDelegatedAmountResponse) Descriptor ¶
func (*QueryDelegatedAmountResponse) Descriptor() ([]byte, []int)
func (*QueryDelegatedAmountResponse) GetAmount ¶
func (m *QueryDelegatedAmountResponse) GetAmount() int64
func (*QueryDelegatedAmountResponse) Marshal ¶
func (m *QueryDelegatedAmountResponse) Marshal() (dAtA []byte, err error)
func (*QueryDelegatedAmountResponse) MarshalTo ¶
func (m *QueryDelegatedAmountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatedAmountResponse) MarshalToSizedBuffer ¶
func (m *QueryDelegatedAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatedAmountResponse) ProtoMessage ¶
func (*QueryDelegatedAmountResponse) ProtoMessage()
func (*QueryDelegatedAmountResponse) Reset ¶
func (m *QueryDelegatedAmountResponse) Reset()
func (*QueryDelegatedAmountResponse) Size ¶
func (m *QueryDelegatedAmountResponse) Size() (n int)
func (*QueryDelegatedAmountResponse) String ¶
func (m *QueryDelegatedAmountResponse) String() string
func (*QueryDelegatedAmountResponse) Unmarshal ¶
func (m *QueryDelegatedAmountResponse) Unmarshal(dAtA []byte) error
func (*QueryDelegatedAmountResponse) XXX_DiscardUnknown ¶
func (m *QueryDelegatedAmountResponse) XXX_DiscardUnknown()
func (*QueryDelegatedAmountResponse) XXX_Marshal ¶
func (m *QueryDelegatedAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatedAmountResponse) XXX_Merge ¶
func (m *QueryDelegatedAmountResponse) XXX_Merge(src proto.Message)
func (*QueryDelegatedAmountResponse) XXX_Size ¶
func (m *QueryDelegatedAmountResponse) XXX_Size() int
func (*QueryDelegatedAmountResponse) XXX_Unmarshal ¶
func (m *QueryDelegatedAmountResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // DelegatedAmount queries the amount delegated by a specific account. DelegatedAmount(context.Context, *QueryDelegatedAmountRequest) (*QueryDelegatedAmountResponse, error) UnbondingEntries(context.Context, *QueryUnbondingEntriesRequest) (*QueryUnbondingEntriesResponse, error) AllDelegations(context.Context, *QueryAllDelegationsRequest) (*QueryAllDelegationsResponse, error) }
QueryServer is the server API for Query service.
type QueryUnbondingEntriesRequest ¶
type QueryUnbondingEntriesRequest struct { BondingAccountAddress string `` /* 126-byte string literal not displayed */ Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryUnbondingEntriesRequest is the request type for the Query/UnbondingEntries RPC method.
func (*QueryUnbondingEntriesRequest) Descriptor ¶
func (*QueryUnbondingEntriesRequest) Descriptor() ([]byte, []int)
func (*QueryUnbondingEntriesRequest) GetBondingAccountAddress ¶
func (m *QueryUnbondingEntriesRequest) GetBondingAccountAddress() string
func (*QueryUnbondingEntriesRequest) GetPagination ¶
func (m *QueryUnbondingEntriesRequest) GetPagination() *query.PageRequest
func (*QueryUnbondingEntriesRequest) Marshal ¶
func (m *QueryUnbondingEntriesRequest) Marshal() (dAtA []byte, err error)
func (*QueryUnbondingEntriesRequest) MarshalTo ¶
func (m *QueryUnbondingEntriesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUnbondingEntriesRequest) MarshalToSizedBuffer ¶
func (m *QueryUnbondingEntriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUnbondingEntriesRequest) ProtoMessage ¶
func (*QueryUnbondingEntriesRequest) ProtoMessage()
func (*QueryUnbondingEntriesRequest) Reset ¶
func (m *QueryUnbondingEntriesRequest) Reset()
func (*QueryUnbondingEntriesRequest) Size ¶
func (m *QueryUnbondingEntriesRequest) Size() (n int)
func (*QueryUnbondingEntriesRequest) String ¶
func (m *QueryUnbondingEntriesRequest) String() string
func (*QueryUnbondingEntriesRequest) Unmarshal ¶
func (m *QueryUnbondingEntriesRequest) Unmarshal(dAtA []byte) error
func (*QueryUnbondingEntriesRequest) XXX_DiscardUnknown ¶
func (m *QueryUnbondingEntriesRequest) XXX_DiscardUnknown()
func (*QueryUnbondingEntriesRequest) XXX_Marshal ¶
func (m *QueryUnbondingEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUnbondingEntriesRequest) XXX_Merge ¶
func (m *QueryUnbondingEntriesRequest) XXX_Merge(src proto.Message)
func (*QueryUnbondingEntriesRequest) XXX_Size ¶
func (m *QueryUnbondingEntriesRequest) XXX_Size() int
func (*QueryUnbondingEntriesRequest) XXX_Unmarshal ¶
func (m *QueryUnbondingEntriesRequest) XXX_Unmarshal(b []byte) error
type QueryUnbondingEntriesResponse ¶
type QueryUnbondingEntriesResponse struct { UnbondingEntries []*UnbondingEntry `protobuf:"bytes,1,rep,name=unbonding_entries,json=unbondingEntries,proto3" json:"unbonding_entries,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryUnbondingEntriesResponse is the response type for the Query/UnbondingEntries RPC method.
func (*QueryUnbondingEntriesResponse) Descriptor ¶
func (*QueryUnbondingEntriesResponse) Descriptor() ([]byte, []int)
func (*QueryUnbondingEntriesResponse) GetPagination ¶
func (m *QueryUnbondingEntriesResponse) GetPagination() *query.PageResponse
func (*QueryUnbondingEntriesResponse) GetUnbondingEntries ¶
func (m *QueryUnbondingEntriesResponse) GetUnbondingEntries() []*UnbondingEntry
func (*QueryUnbondingEntriesResponse) Marshal ¶
func (m *QueryUnbondingEntriesResponse) Marshal() (dAtA []byte, err error)
func (*QueryUnbondingEntriesResponse) MarshalTo ¶
func (m *QueryUnbondingEntriesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryUnbondingEntriesResponse) MarshalToSizedBuffer ¶
func (m *QueryUnbondingEntriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUnbondingEntriesResponse) ProtoMessage ¶
func (*QueryUnbondingEntriesResponse) ProtoMessage()
func (*QueryUnbondingEntriesResponse) Reset ¶
func (m *QueryUnbondingEntriesResponse) Reset()
func (*QueryUnbondingEntriesResponse) Size ¶
func (m *QueryUnbondingEntriesResponse) Size() (n int)
func (*QueryUnbondingEntriesResponse) String ¶
func (m *QueryUnbondingEntriesResponse) String() string
func (*QueryUnbondingEntriesResponse) Unmarshal ¶
func (m *QueryUnbondingEntriesResponse) Unmarshal(dAtA []byte) error
func (*QueryUnbondingEntriesResponse) XXX_DiscardUnknown ¶
func (m *QueryUnbondingEntriesResponse) XXX_DiscardUnknown()
func (*QueryUnbondingEntriesResponse) XXX_Marshal ¶
func (m *QueryUnbondingEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUnbondingEntriesResponse) XXX_Merge ¶
func (m *QueryUnbondingEntriesResponse) XXX_Merge(src proto.Message)
func (*QueryUnbondingEntriesResponse) XXX_Size ¶
func (m *QueryUnbondingEntriesResponse) XXX_Size() int
func (*QueryUnbondingEntriesResponse) XXX_Unmarshal ¶
func (m *QueryUnbondingEntriesResponse) XXX_Unmarshal(b []byte) error
type SimpleUnbondingEntry ¶
type SimpleUnbondingEntry struct { Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` CompletionTime int64 `protobuf:"varint,2,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"` }
func (*SimpleUnbondingEntry) Descriptor ¶
func (*SimpleUnbondingEntry) Descriptor() ([]byte, []int)
func (*SimpleUnbondingEntry) GetAmount ¶
func (m *SimpleUnbondingEntry) GetAmount() int64
func (*SimpleUnbondingEntry) GetCompletionTime ¶
func (m *SimpleUnbondingEntry) GetCompletionTime() int64
func (*SimpleUnbondingEntry) Marshal ¶
func (m *SimpleUnbondingEntry) Marshal() (dAtA []byte, err error)
func (*SimpleUnbondingEntry) MarshalTo ¶
func (m *SimpleUnbondingEntry) MarshalTo(dAtA []byte) (int, error)
func (*SimpleUnbondingEntry) MarshalToSizedBuffer ¶
func (m *SimpleUnbondingEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SimpleUnbondingEntry) ProtoMessage ¶
func (*SimpleUnbondingEntry) ProtoMessage()
func (*SimpleUnbondingEntry) Reset ¶
func (m *SimpleUnbondingEntry) Reset()
func (*SimpleUnbondingEntry) Size ¶
func (m *SimpleUnbondingEntry) Size() (n int)
func (*SimpleUnbondingEntry) String ¶
func (m *SimpleUnbondingEntry) String() string
func (*SimpleUnbondingEntry) Unmarshal ¶
func (m *SimpleUnbondingEntry) Unmarshal(dAtA []byte) error
func (*SimpleUnbondingEntry) XXX_DiscardUnknown ¶
func (m *SimpleUnbondingEntry) XXX_DiscardUnknown()
func (*SimpleUnbondingEntry) XXX_Marshal ¶
func (m *SimpleUnbondingEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SimpleUnbondingEntry) XXX_Merge ¶
func (m *SimpleUnbondingEntry) XXX_Merge(src proto.Message)
func (*SimpleUnbondingEntry) XXX_Size ¶
func (m *SimpleUnbondingEntry) XXX_Size() int
func (*SimpleUnbondingEntry) XXX_Unmarshal ¶
func (m *SimpleUnbondingEntry) XXX_Unmarshal(b []byte) error
type UnbondingEntry ¶
type UnbondingEntry struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` CompletionTime int64 `protobuf:"varint,3,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"` }
func (*UnbondingEntry) Descriptor ¶
func (*UnbondingEntry) Descriptor() ([]byte, []int)
func (*UnbondingEntry) GetAccount ¶
func (m *UnbondingEntry) GetAccount() string
func (*UnbondingEntry) GetAmount ¶
func (m *UnbondingEntry) GetAmount() int64
func (*UnbondingEntry) GetCompletionTime ¶
func (m *UnbondingEntry) GetCompletionTime() int64
func (*UnbondingEntry) Marshal ¶
func (m *UnbondingEntry) Marshal() (dAtA []byte, err error)
func (*UnbondingEntry) MarshalToSizedBuffer ¶
func (m *UnbondingEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnbondingEntry) ProtoMessage ¶
func (*UnbondingEntry) ProtoMessage()
func (*UnbondingEntry) Reset ¶
func (m *UnbondingEntry) Reset()
func (*UnbondingEntry) Size ¶
func (m *UnbondingEntry) Size() (n int)
func (*UnbondingEntry) String ¶
func (m *UnbondingEntry) String() string
func (*UnbondingEntry) Unmarshal ¶
func (m *UnbondingEntry) Unmarshal(dAtA []byte) error
func (*UnbondingEntry) XXX_DiscardUnknown ¶
func (m *UnbondingEntry) XXX_DiscardUnknown()
func (*UnbondingEntry) XXX_Marshal ¶
func (m *UnbondingEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnbondingEntry) XXX_Merge ¶
func (m *UnbondingEntry) XXX_Merge(src proto.Message)
func (*UnbondingEntry) XXX_Size ¶
func (m *UnbondingEntry) XXX_Size() int
func (*UnbondingEntry) XXX_Unmarshal ¶
func (m *UnbondingEntry) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) DelegateTokens ¶
func (*UnimplementedMsgServer) DelegateTokens(ctx context.Context, req *MsgGridnodeDelegate) (*MsgGridnodeDelegateResponse, error)
func (*UnimplementedMsgServer) UndelegateTokens ¶
func (*UnimplementedMsgServer) UndelegateTokens(ctx context.Context, req *MsgGridnodeUndelegate) (*MsgGridnodeUndelegateResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllDelegations ¶
func (*UnimplementedQueryServer) AllDelegations(ctx context.Context, req *QueryAllDelegationsRequest) (*QueryAllDelegationsResponse, error)
func (*UnimplementedQueryServer) DelegatedAmount ¶
func (*UnimplementedQueryServer) DelegatedAmount(ctx context.Context, req *QueryDelegatedAmountRequest) (*QueryDelegatedAmountResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) UnbondingEntries ¶
func (*UnimplementedQueryServer) UnbondingEntries(ctx context.Context, req *QueryUnbondingEntriesRequest) (*QueryUnbondingEntriesResponse, error)