Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AnteHandlerParamKey(index string) []byte
- func KeyPrefix(p string) []byte
- func NewProposalUpdateMaxVotingPower(title, description string, maxVotingPower string) gov.Content
- func NewProposalUpdateMinCommission(title, description string, minCommission string) gov.Content
- func NewProposalUpdateMinSelfDelegation(title, description string, minSelfDelegation string) gov.Content
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 AnteHandlerParam
- func (*AnteHandlerParam) Descriptor() ([]byte, []int)
- func (m *AnteHandlerParam) Marshal() (dAtA []byte, err error)
- func (m *AnteHandlerParam) MarshalTo(dAtA []byte) (int, error)
- func (m *AnteHandlerParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AnteHandlerParam) ProtoMessage()
- func (m *AnteHandlerParam) Reset()
- func (m *AnteHandlerParam) Size() (n int)
- func (m *AnteHandlerParam) String() string
- func (m *AnteHandlerParam) Unmarshal(dAtA []byte) error
- func (m *AnteHandlerParam) XXX_DiscardUnknown()
- func (m *AnteHandlerParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AnteHandlerParam) XXX_Merge(src proto.Message)
- func (m *AnteHandlerParam) XXX_Size() int
- func (m *AnteHandlerParam) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAnteHandlerParam() AnteHandlerParam
- 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 MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- 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 (p 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 ProposalUpdateMaxVotingPower
- func (*ProposalUpdateMaxVotingPower) Descriptor() ([]byte, []int)
- func (m *ProposalUpdateMaxVotingPower) GetDescription() string
- func (m *ProposalUpdateMaxVotingPower) GetMaxVotingPower() string
- func (m *ProposalUpdateMaxVotingPower) GetTitle() string
- func (m *ProposalUpdateMaxVotingPower) Marshal() (dAtA []byte, err error)
- func (m *ProposalUpdateMaxVotingPower) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalUpdateMaxVotingPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (sup *ProposalUpdateMaxVotingPower) ProposalRoute() string
- func (sup *ProposalUpdateMaxVotingPower) ProposalType() string
- func (*ProposalUpdateMaxVotingPower) ProtoMessage()
- func (m *ProposalUpdateMaxVotingPower) Reset()
- func (m *ProposalUpdateMaxVotingPower) Size() (n int)
- func (m *ProposalUpdateMaxVotingPower) String() string
- func (m *ProposalUpdateMaxVotingPower) Unmarshal(dAtA []byte) error
- func (sup *ProposalUpdateMaxVotingPower) ValidateBasic() error
- func (m *ProposalUpdateMaxVotingPower) XXX_DiscardUnknown()
- func (m *ProposalUpdateMaxVotingPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalUpdateMaxVotingPower) XXX_Merge(src proto.Message)
- func (m *ProposalUpdateMaxVotingPower) XXX_Size() int
- func (m *ProposalUpdateMaxVotingPower) XXX_Unmarshal(b []byte) error
- type ProposalUpdateMinCommission
- func (*ProposalUpdateMinCommission) Descriptor() ([]byte, []int)
- func (m *ProposalUpdateMinCommission) GetDescription() string
- func (m *ProposalUpdateMinCommission) GetMinCommission() string
- func (m *ProposalUpdateMinCommission) GetTitle() string
- func (m *ProposalUpdateMinCommission) Marshal() (dAtA []byte, err error)
- func (m *ProposalUpdateMinCommission) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalUpdateMinCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (sup *ProposalUpdateMinCommission) ProposalRoute() string
- func (sup *ProposalUpdateMinCommission) ProposalType() string
- func (*ProposalUpdateMinCommission) ProtoMessage()
- func (m *ProposalUpdateMinCommission) Reset()
- func (m *ProposalUpdateMinCommission) Size() (n int)
- func (m *ProposalUpdateMinCommission) String() string
- func (m *ProposalUpdateMinCommission) Unmarshal(dAtA []byte) error
- func (sup *ProposalUpdateMinCommission) ValidateBasic() error
- func (m *ProposalUpdateMinCommission) XXX_DiscardUnknown()
- func (m *ProposalUpdateMinCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalUpdateMinCommission) XXX_Merge(src proto.Message)
- func (m *ProposalUpdateMinCommission) XXX_Size() int
- func (m *ProposalUpdateMinCommission) XXX_Unmarshal(b []byte) error
- type ProposalUpdateMinSelfDelegation
- func (*ProposalUpdateMinSelfDelegation) Descriptor() ([]byte, []int)
- func (m *ProposalUpdateMinSelfDelegation) GetDescription() string
- func (m *ProposalUpdateMinSelfDelegation) GetMinSelfDelegation() string
- func (m *ProposalUpdateMinSelfDelegation) GetTitle() string
- func (m *ProposalUpdateMinSelfDelegation) Marshal() (dAtA []byte, err error)
- func (m *ProposalUpdateMinSelfDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalUpdateMinSelfDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (sup *ProposalUpdateMinSelfDelegation) ProposalRoute() string
- func (sup *ProposalUpdateMinSelfDelegation) ProposalType() string
- func (*ProposalUpdateMinSelfDelegation) ProtoMessage()
- func (m *ProposalUpdateMinSelfDelegation) Reset()
- func (m *ProposalUpdateMinSelfDelegation) Size() (n int)
- func (m *ProposalUpdateMinSelfDelegation) String() string
- func (m *ProposalUpdateMinSelfDelegation) Unmarshal(dAtA []byte) error
- func (sup *ProposalUpdateMinSelfDelegation) ValidateBasic() error
- func (m *ProposalUpdateMinSelfDelegation) XXX_DiscardUnknown()
- func (m *ProposalUpdateMinSelfDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalUpdateMinSelfDelegation) XXX_Merge(src proto.Message)
- func (m *ProposalUpdateMinSelfDelegation) XXX_Size() int
- func (m *ProposalUpdateMinSelfDelegation) XXX_Unmarshal(b []byte) error
- type QueryAllAnteHandlerParamRequest
- func (*QueryAllAnteHandlerParamRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllAnteHandlerParamRequest) GetPagination() *query.PageRequest
- func (m *QueryAllAnteHandlerParamRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllAnteHandlerParamRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllAnteHandlerParamRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllAnteHandlerParamRequest) ProtoMessage()
- func (m *QueryAllAnteHandlerParamRequest) Reset()
- func (m *QueryAllAnteHandlerParamRequest) Size() (n int)
- func (m *QueryAllAnteHandlerParamRequest) String() string
- func (m *QueryAllAnteHandlerParamRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllAnteHandlerParamRequest) XXX_DiscardUnknown()
- func (m *QueryAllAnteHandlerParamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllAnteHandlerParamRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllAnteHandlerParamRequest) XXX_Size() int
- func (m *QueryAllAnteHandlerParamRequest) XXX_Unmarshal(b []byte) error
- type QueryAllAnteHandlerParamResponse
- func (*QueryAllAnteHandlerParamResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllAnteHandlerParamResponse) GetAnteHandlerParam() []AnteHandlerParam
- func (m *QueryAllAnteHandlerParamResponse) GetPagination() *query.PageResponse
- func (m *QueryAllAnteHandlerParamResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllAnteHandlerParamResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllAnteHandlerParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllAnteHandlerParamResponse) ProtoMessage()
- func (m *QueryAllAnteHandlerParamResponse) Reset()
- func (m *QueryAllAnteHandlerParamResponse) Size() (n int)
- func (m *QueryAllAnteHandlerParamResponse) String() string
- func (m *QueryAllAnteHandlerParamResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllAnteHandlerParamResponse) XXX_DiscardUnknown()
- func (m *QueryAllAnteHandlerParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllAnteHandlerParamResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllAnteHandlerParamResponse) XXX_Size() int
- func (m *QueryAllAnteHandlerParamResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- 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 UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "parameter" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_parameter" // AnteHandlerParamKeyPrefix is the prefix to retrieve all AnteHandlerParam AnteHandlerParamKeyPrefix = "AnteHandlerParam/value/" AnteStoreKey = "ante-handler-param" )
const ( // Eden denom Elys = "uelys" // Eden denom Eden = "ueden" // Eden Boost denom EdenB = "uedenb" // Base currency BaseCurrency = "uusdc" // Atom denom ATOM = "uatom" // BaseDecimal BASE_DECIMAL = 6 // 52.1429 weeks WeeksPerYear = 52 // 365 days DaysPerYear = 365 // 8760 hours HoursPerYear = 8760 // Return ok RES_OK = uint64(200) )
const ( ProposalTypeUpdateMinCommissionRate string = "UpdateMinCommissionRate" ProposalTypeUpdateMaxVotingPower string = "UpdateMaxVotingPower" ProposalTypeUpdateMinSelfDelegation string = "UpdateMinSelfDelegation" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
Variables ¶
var ( ErrInvalidLengthAnteHandlerParam = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAnteHandlerParam = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAnteHandlerParam = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = 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 (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/parameter module sentinel errors
Functions ¶
func AnteHandlerParamKey ¶
AnteHandlerParamKey returns the store key to retrieve a AnteHandlerParam from the index fields
func NewProposalUpdateMaxVotingPower ¶
func NewProposalUpdateMaxVotingPower( title, description string, maxVotingPower string, ) gov.Content
NewProposalUpdateMaxVotingPower creates a new ProposalUpdateMaxVotingPower instance
func NewProposalUpdateMinCommission ¶
NewProposalUpdateMinCommission creates a new ProposalUpdateMinCommission instance
func NewProposalUpdateMinSelfDelegation ¶
func NewProposalUpdateMinSelfDelegation( title, description string, minSelfDelegation string, ) gov.Content
NewProposalUpdateMinSelfDelegation creates a new NewProposalUpdateMinSelfDelegation instance
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)
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 ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AnteHandlerParam ¶
type AnteHandlerParam struct { MinCommissionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 154-byte string literal not displayed */ MaxVotingPower github_com_cosmos_cosmos_sdk_types.Dec `` /* 145-byte string literal not displayed */ MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */ }
func (*AnteHandlerParam) Descriptor ¶
func (*AnteHandlerParam) Descriptor() ([]byte, []int)
func (*AnteHandlerParam) Marshal ¶
func (m *AnteHandlerParam) Marshal() (dAtA []byte, err error)
func (*AnteHandlerParam) MarshalToSizedBuffer ¶
func (m *AnteHandlerParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AnteHandlerParam) ProtoMessage ¶
func (*AnteHandlerParam) ProtoMessage()
func (*AnteHandlerParam) Reset ¶
func (m *AnteHandlerParam) Reset()
func (*AnteHandlerParam) Size ¶
func (m *AnteHandlerParam) Size() (n int)
func (*AnteHandlerParam) String ¶
func (m *AnteHandlerParam) String() string
func (*AnteHandlerParam) Unmarshal ¶
func (m *AnteHandlerParam) Unmarshal(dAtA []byte) error
func (*AnteHandlerParam) XXX_DiscardUnknown ¶
func (m *AnteHandlerParam) XXX_DiscardUnknown()
func (*AnteHandlerParam) XXX_Marshal ¶
func (m *AnteHandlerParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AnteHandlerParam) XXX_Merge ¶
func (m *AnteHandlerParam) XXX_Merge(src proto.Message)
func (*AnteHandlerParam) XXX_Size ¶
func (m *AnteHandlerParam) XXX_Size() int
func (*AnteHandlerParam) XXX_Unmarshal ¶
func (m *AnteHandlerParam) XXX_Unmarshal(b []byte) error
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` AnteHandlerParam AnteHandlerParam `protobuf:"bytes,2,opt,name=ante_handler_param,json=anteHandlerParam,proto3" json:"ante_handler_param"` }
GenesisState defines the parameter 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) GetAnteHandlerParam ¶ added in v0.10.0
func (m *GenesisState) GetAnteHandlerParam() AnteHandlerParam
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 MsgClient ¶
type MsgClient interface { }
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 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 ProposalUpdateMaxVotingPower ¶
type ProposalUpdateMaxVotingPower struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` MaxVotingPower string `protobuf:"bytes,3,opt,name=max_voting_power,json=maxVotingPower,proto3" json:"max_voting_power,omitempty"` }
func (*ProposalUpdateMaxVotingPower) Descriptor ¶
func (*ProposalUpdateMaxVotingPower) Descriptor() ([]byte, []int)
func (*ProposalUpdateMaxVotingPower) GetDescription ¶
func (m *ProposalUpdateMaxVotingPower) GetDescription() string
func (*ProposalUpdateMaxVotingPower) GetMaxVotingPower ¶
func (m *ProposalUpdateMaxVotingPower) GetMaxVotingPower() string
func (*ProposalUpdateMaxVotingPower) GetTitle ¶
func (m *ProposalUpdateMaxVotingPower) GetTitle() string
func (*ProposalUpdateMaxVotingPower) Marshal ¶
func (m *ProposalUpdateMaxVotingPower) Marshal() (dAtA []byte, err error)
func (*ProposalUpdateMaxVotingPower) MarshalTo ¶
func (m *ProposalUpdateMaxVotingPower) MarshalTo(dAtA []byte) (int, error)
func (*ProposalUpdateMaxVotingPower) MarshalToSizedBuffer ¶
func (m *ProposalUpdateMaxVotingPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProposalUpdateMaxVotingPower) ProposalRoute ¶
func (sup *ProposalUpdateMaxVotingPower) ProposalRoute() string
ProposalRoute gets the proposal's router key
func (*ProposalUpdateMaxVotingPower) ProposalType ¶
func (sup *ProposalUpdateMaxVotingPower) ProposalType() string
ProposalType is "SoftwareUpgrade"
func (*ProposalUpdateMaxVotingPower) ProtoMessage ¶
func (*ProposalUpdateMaxVotingPower) ProtoMessage()
func (*ProposalUpdateMaxVotingPower) Reset ¶
func (m *ProposalUpdateMaxVotingPower) Reset()
func (*ProposalUpdateMaxVotingPower) Size ¶
func (m *ProposalUpdateMaxVotingPower) Size() (n int)
func (*ProposalUpdateMaxVotingPower) String ¶
func (m *ProposalUpdateMaxVotingPower) String() string
func (*ProposalUpdateMaxVotingPower) Unmarshal ¶
func (m *ProposalUpdateMaxVotingPower) Unmarshal(dAtA []byte) error
func (*ProposalUpdateMaxVotingPower) ValidateBasic ¶
func (sup *ProposalUpdateMaxVotingPower) ValidateBasic() error
ValidateBasic validates the proposal
func (*ProposalUpdateMaxVotingPower) XXX_DiscardUnknown ¶
func (m *ProposalUpdateMaxVotingPower) XXX_DiscardUnknown()
func (*ProposalUpdateMaxVotingPower) XXX_Marshal ¶
func (m *ProposalUpdateMaxVotingPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalUpdateMaxVotingPower) XXX_Merge ¶
func (m *ProposalUpdateMaxVotingPower) XXX_Merge(src proto.Message)
func (*ProposalUpdateMaxVotingPower) XXX_Size ¶
func (m *ProposalUpdateMaxVotingPower) XXX_Size() int
func (*ProposalUpdateMaxVotingPower) XXX_Unmarshal ¶
func (m *ProposalUpdateMaxVotingPower) XXX_Unmarshal(b []byte) error
type ProposalUpdateMinCommission ¶
type ProposalUpdateMinCommission struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` MinCommission string `protobuf:"bytes,3,opt,name=min_commission,json=minCommission,proto3" json:"min_commission,omitempty"` }
func (*ProposalUpdateMinCommission) Descriptor ¶
func (*ProposalUpdateMinCommission) Descriptor() ([]byte, []int)
func (*ProposalUpdateMinCommission) GetDescription ¶
func (m *ProposalUpdateMinCommission) GetDescription() string
func (*ProposalUpdateMinCommission) GetMinCommission ¶
func (m *ProposalUpdateMinCommission) GetMinCommission() string
func (*ProposalUpdateMinCommission) GetTitle ¶
func (m *ProposalUpdateMinCommission) GetTitle() string
func (*ProposalUpdateMinCommission) Marshal ¶
func (m *ProposalUpdateMinCommission) Marshal() (dAtA []byte, err error)
func (*ProposalUpdateMinCommission) MarshalTo ¶
func (m *ProposalUpdateMinCommission) MarshalTo(dAtA []byte) (int, error)
func (*ProposalUpdateMinCommission) MarshalToSizedBuffer ¶
func (m *ProposalUpdateMinCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProposalUpdateMinCommission) ProposalRoute ¶
func (sup *ProposalUpdateMinCommission) ProposalRoute() string
ProposalRoute gets the proposal's router key
func (*ProposalUpdateMinCommission) ProposalType ¶
func (sup *ProposalUpdateMinCommission) ProposalType() string
ProposalType is "SoftwareUpgrade"
func (*ProposalUpdateMinCommission) ProtoMessage ¶
func (*ProposalUpdateMinCommission) ProtoMessage()
func (*ProposalUpdateMinCommission) Reset ¶
func (m *ProposalUpdateMinCommission) Reset()
func (*ProposalUpdateMinCommission) Size ¶
func (m *ProposalUpdateMinCommission) Size() (n int)
func (*ProposalUpdateMinCommission) String ¶
func (m *ProposalUpdateMinCommission) String() string
func (*ProposalUpdateMinCommission) Unmarshal ¶
func (m *ProposalUpdateMinCommission) Unmarshal(dAtA []byte) error
func (*ProposalUpdateMinCommission) ValidateBasic ¶
func (sup *ProposalUpdateMinCommission) ValidateBasic() error
ValidateBasic validates the proposal
func (*ProposalUpdateMinCommission) XXX_DiscardUnknown ¶
func (m *ProposalUpdateMinCommission) XXX_DiscardUnknown()
func (*ProposalUpdateMinCommission) XXX_Marshal ¶
func (m *ProposalUpdateMinCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalUpdateMinCommission) XXX_Merge ¶
func (m *ProposalUpdateMinCommission) XXX_Merge(src proto.Message)
func (*ProposalUpdateMinCommission) XXX_Size ¶
func (m *ProposalUpdateMinCommission) XXX_Size() int
func (*ProposalUpdateMinCommission) XXX_Unmarshal ¶
func (m *ProposalUpdateMinCommission) XXX_Unmarshal(b []byte) error
type ProposalUpdateMinSelfDelegation ¶
type ProposalUpdateMinSelfDelegation struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` MinSelfDelegation string `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"` }
func (*ProposalUpdateMinSelfDelegation) Descriptor ¶
func (*ProposalUpdateMinSelfDelegation) Descriptor() ([]byte, []int)
func (*ProposalUpdateMinSelfDelegation) GetDescription ¶
func (m *ProposalUpdateMinSelfDelegation) GetDescription() string
func (*ProposalUpdateMinSelfDelegation) GetMinSelfDelegation ¶
func (m *ProposalUpdateMinSelfDelegation) GetMinSelfDelegation() string
func (*ProposalUpdateMinSelfDelegation) GetTitle ¶
func (m *ProposalUpdateMinSelfDelegation) GetTitle() string
func (*ProposalUpdateMinSelfDelegation) Marshal ¶
func (m *ProposalUpdateMinSelfDelegation) Marshal() (dAtA []byte, err error)
func (*ProposalUpdateMinSelfDelegation) MarshalTo ¶
func (m *ProposalUpdateMinSelfDelegation) MarshalTo(dAtA []byte) (int, error)
func (*ProposalUpdateMinSelfDelegation) MarshalToSizedBuffer ¶
func (m *ProposalUpdateMinSelfDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProposalUpdateMinSelfDelegation) ProposalRoute ¶
func (sup *ProposalUpdateMinSelfDelegation) ProposalRoute() string
ProposalRoute gets the proposal's router key
func (*ProposalUpdateMinSelfDelegation) ProposalType ¶
func (sup *ProposalUpdateMinSelfDelegation) ProposalType() string
ProposalType is "SoftwareUpgrade"
func (*ProposalUpdateMinSelfDelegation) ProtoMessage ¶
func (*ProposalUpdateMinSelfDelegation) ProtoMessage()
func (*ProposalUpdateMinSelfDelegation) Reset ¶
func (m *ProposalUpdateMinSelfDelegation) Reset()
func (*ProposalUpdateMinSelfDelegation) Size ¶
func (m *ProposalUpdateMinSelfDelegation) Size() (n int)
func (*ProposalUpdateMinSelfDelegation) String ¶
func (m *ProposalUpdateMinSelfDelegation) String() string
func (*ProposalUpdateMinSelfDelegation) Unmarshal ¶
func (m *ProposalUpdateMinSelfDelegation) Unmarshal(dAtA []byte) error
func (*ProposalUpdateMinSelfDelegation) ValidateBasic ¶
func (sup *ProposalUpdateMinSelfDelegation) ValidateBasic() error
ValidateBasic validates the proposal
func (*ProposalUpdateMinSelfDelegation) XXX_DiscardUnknown ¶
func (m *ProposalUpdateMinSelfDelegation) XXX_DiscardUnknown()
func (*ProposalUpdateMinSelfDelegation) XXX_Marshal ¶
func (m *ProposalUpdateMinSelfDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalUpdateMinSelfDelegation) XXX_Merge ¶
func (m *ProposalUpdateMinSelfDelegation) XXX_Merge(src proto.Message)
func (*ProposalUpdateMinSelfDelegation) XXX_Size ¶
func (m *ProposalUpdateMinSelfDelegation) XXX_Size() int
func (*ProposalUpdateMinSelfDelegation) XXX_Unmarshal ¶
func (m *ProposalUpdateMinSelfDelegation) XXX_Unmarshal(b []byte) error
type QueryAllAnteHandlerParamRequest ¶
type QueryAllAnteHandlerParamRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllAnteHandlerParamRequest) Descriptor ¶
func (*QueryAllAnteHandlerParamRequest) Descriptor() ([]byte, []int)
func (*QueryAllAnteHandlerParamRequest) GetPagination ¶
func (m *QueryAllAnteHandlerParamRequest) GetPagination() *query.PageRequest
func (*QueryAllAnteHandlerParamRequest) Marshal ¶
func (m *QueryAllAnteHandlerParamRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllAnteHandlerParamRequest) MarshalTo ¶
func (m *QueryAllAnteHandlerParamRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllAnteHandlerParamRequest) MarshalToSizedBuffer ¶
func (m *QueryAllAnteHandlerParamRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllAnteHandlerParamRequest) ProtoMessage ¶
func (*QueryAllAnteHandlerParamRequest) ProtoMessage()
func (*QueryAllAnteHandlerParamRequest) Reset ¶
func (m *QueryAllAnteHandlerParamRequest) Reset()
func (*QueryAllAnteHandlerParamRequest) Size ¶
func (m *QueryAllAnteHandlerParamRequest) Size() (n int)
func (*QueryAllAnteHandlerParamRequest) String ¶
func (m *QueryAllAnteHandlerParamRequest) String() string
func (*QueryAllAnteHandlerParamRequest) Unmarshal ¶
func (m *QueryAllAnteHandlerParamRequest) Unmarshal(dAtA []byte) error
func (*QueryAllAnteHandlerParamRequest) XXX_DiscardUnknown ¶
func (m *QueryAllAnteHandlerParamRequest) XXX_DiscardUnknown()
func (*QueryAllAnteHandlerParamRequest) XXX_Marshal ¶
func (m *QueryAllAnteHandlerParamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllAnteHandlerParamRequest) XXX_Merge ¶
func (m *QueryAllAnteHandlerParamRequest) XXX_Merge(src proto.Message)
func (*QueryAllAnteHandlerParamRequest) XXX_Size ¶
func (m *QueryAllAnteHandlerParamRequest) XXX_Size() int
func (*QueryAllAnteHandlerParamRequest) XXX_Unmarshal ¶
func (m *QueryAllAnteHandlerParamRequest) XXX_Unmarshal(b []byte) error
type QueryAllAnteHandlerParamResponse ¶
type QueryAllAnteHandlerParamResponse struct { AnteHandlerParam []AnteHandlerParam `protobuf:"bytes,1,rep,name=ante_handler_param,json=anteHandlerParam,proto3" json:"ante_handler_param"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllAnteHandlerParamResponse) Descriptor ¶
func (*QueryAllAnteHandlerParamResponse) Descriptor() ([]byte, []int)
func (*QueryAllAnteHandlerParamResponse) GetAnteHandlerParam ¶
func (m *QueryAllAnteHandlerParamResponse) GetAnteHandlerParam() []AnteHandlerParam
func (*QueryAllAnteHandlerParamResponse) GetPagination ¶
func (m *QueryAllAnteHandlerParamResponse) GetPagination() *query.PageResponse
func (*QueryAllAnteHandlerParamResponse) Marshal ¶
func (m *QueryAllAnteHandlerParamResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllAnteHandlerParamResponse) MarshalTo ¶
func (m *QueryAllAnteHandlerParamResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllAnteHandlerParamResponse) MarshalToSizedBuffer ¶
func (m *QueryAllAnteHandlerParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllAnteHandlerParamResponse) ProtoMessage ¶
func (*QueryAllAnteHandlerParamResponse) ProtoMessage()
func (*QueryAllAnteHandlerParamResponse) Reset ¶
func (m *QueryAllAnteHandlerParamResponse) Reset()
func (*QueryAllAnteHandlerParamResponse) Size ¶
func (m *QueryAllAnteHandlerParamResponse) Size() (n int)
func (*QueryAllAnteHandlerParamResponse) String ¶
func (m *QueryAllAnteHandlerParamResponse) String() string
func (*QueryAllAnteHandlerParamResponse) Unmarshal ¶
func (m *QueryAllAnteHandlerParamResponse) Unmarshal(dAtA []byte) error
func (*QueryAllAnteHandlerParamResponse) XXX_DiscardUnknown ¶
func (m *QueryAllAnteHandlerParamResponse) XXX_DiscardUnknown()
func (*QueryAllAnteHandlerParamResponse) XXX_Marshal ¶
func (m *QueryAllAnteHandlerParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllAnteHandlerParamResponse) XXX_Merge ¶
func (m *QueryAllAnteHandlerParamResponse) XXX_Merge(src proto.Message)
func (*QueryAllAnteHandlerParamResponse) XXX_Size ¶
func (m *QueryAllAnteHandlerParamResponse) XXX_Size() int
func (*QueryAllAnteHandlerParamResponse) XXX_Unmarshal ¶
func (m *QueryAllAnteHandlerParamResponse) 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) AnteHandlerParamAll(ctx context.Context, in *QueryAllAnteHandlerParamRequest, opts ...grpc.CallOption) (*QueryAllAnteHandlerParamResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) AnteHandlerParamAll(context.Context, *QueryAllAnteHandlerParamRequest) (*QueryAllAnteHandlerParamResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AnteHandlerParamAll ¶
func (*UnimplementedQueryServer) AnteHandlerParamAll(ctx context.Context, req *QueryAllAnteHandlerParamRequest) (*QueryAllAnteHandlerParamResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)