Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- 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 BankKeeper
- 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 MsgClient
- type MsgServer
- type MsgUpdateBrokerAddress
- func (*MsgUpdateBrokerAddress) Descriptor() ([]byte, []int)
- func (m *MsgUpdateBrokerAddress) GetBrokerAddress() string
- func (m *MsgUpdateBrokerAddress) GetCreator() string
- func (msg *MsgUpdateBrokerAddress) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateBrokerAddress) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateBrokerAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateBrokerAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateBrokerAddress) ProtoMessage()
- func (m *MsgUpdateBrokerAddress) Reset()
- func (m *MsgUpdateBrokerAddress) Size() (n int)
- func (m *MsgUpdateBrokerAddress) String() string
- func (m *MsgUpdateBrokerAddress) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateBrokerAddress) ValidateBasic() error
- func (m *MsgUpdateBrokerAddress) XXX_DiscardUnknown()
- func (m *MsgUpdateBrokerAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateBrokerAddress) XXX_Merge(src proto.Message)
- func (m *MsgUpdateBrokerAddress) XXX_Size() int
- func (m *MsgUpdateBrokerAddress) XXX_Unmarshal(b []byte) error
- type MsgUpdateBrokerAddressResponse
- func (*MsgUpdateBrokerAddressResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateBrokerAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateBrokerAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateBrokerAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateBrokerAddressResponse) ProtoMessage()
- func (m *MsgUpdateBrokerAddressResponse) Reset()
- func (m *MsgUpdateBrokerAddressResponse) Size() (n int)
- func (m *MsgUpdateBrokerAddressResponse) String() string
- func (m *MsgUpdateBrokerAddressResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateBrokerAddressResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateBrokerAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateBrokerAddressResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateBrokerAddressResponse) XXX_Size() int
- func (m *MsgUpdateBrokerAddressResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateMaxVotingPower
- func (*MsgUpdateMaxVotingPower) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMaxVotingPower) GetCreator() string
- func (m *MsgUpdateMaxVotingPower) GetMaxVotingPower() string
- func (msg *MsgUpdateMaxVotingPower) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateMaxVotingPower) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMaxVotingPower) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMaxVotingPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMaxVotingPower) ProtoMessage()
- func (m *MsgUpdateMaxVotingPower) Reset()
- func (m *MsgUpdateMaxVotingPower) Size() (n int)
- func (m *MsgUpdateMaxVotingPower) String() string
- func (m *MsgUpdateMaxVotingPower) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateMaxVotingPower) ValidateBasic() error
- func (m *MsgUpdateMaxVotingPower) XXX_DiscardUnknown()
- func (m *MsgUpdateMaxVotingPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMaxVotingPower) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMaxVotingPower) XXX_Size() int
- func (m *MsgUpdateMaxVotingPower) XXX_Unmarshal(b []byte) error
- type MsgUpdateMaxVotingPowerResponse
- func (*MsgUpdateMaxVotingPowerResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMaxVotingPowerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMaxVotingPowerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMaxVotingPowerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMaxVotingPowerResponse) ProtoMessage()
- func (m *MsgUpdateMaxVotingPowerResponse) Reset()
- func (m *MsgUpdateMaxVotingPowerResponse) Size() (n int)
- func (m *MsgUpdateMaxVotingPowerResponse) String() string
- func (m *MsgUpdateMaxVotingPowerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_Size() int
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateMinCommission
- func (*MsgUpdateMinCommission) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMinCommission) GetCreator() string
- func (m *MsgUpdateMinCommission) GetMinCommission() string
- func (msg *MsgUpdateMinCommission) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateMinCommission) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMinCommission) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMinCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMinCommission) ProtoMessage()
- func (m *MsgUpdateMinCommission) Reset()
- func (m *MsgUpdateMinCommission) Size() (n int)
- func (m *MsgUpdateMinCommission) String() string
- func (m *MsgUpdateMinCommission) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateMinCommission) ValidateBasic() error
- func (m *MsgUpdateMinCommission) XXX_DiscardUnknown()
- func (m *MsgUpdateMinCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMinCommission) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMinCommission) XXX_Size() int
- func (m *MsgUpdateMinCommission) XXX_Unmarshal(b []byte) error
- type MsgUpdateMinCommissionResponse
- func (*MsgUpdateMinCommissionResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMinCommissionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMinCommissionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMinCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMinCommissionResponse) ProtoMessage()
- func (m *MsgUpdateMinCommissionResponse) Reset()
- func (m *MsgUpdateMinCommissionResponse) Size() (n int)
- func (m *MsgUpdateMinCommissionResponse) String() string
- func (m *MsgUpdateMinCommissionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMinCommissionResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMinCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMinCommissionResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMinCommissionResponse) XXX_Size() int
- func (m *MsgUpdateMinCommissionResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateMinSelfDelegation
- func (*MsgUpdateMinSelfDelegation) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMinSelfDelegation) GetCreator() string
- func (m *MsgUpdateMinSelfDelegation) GetMinSelfDelegation() string
- func (msg *MsgUpdateMinSelfDelegation) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateMinSelfDelegation) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMinSelfDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMinSelfDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMinSelfDelegation) ProtoMessage()
- func (m *MsgUpdateMinSelfDelegation) Reset()
- func (m *MsgUpdateMinSelfDelegation) Size() (n int)
- func (m *MsgUpdateMinSelfDelegation) String() string
- func (m *MsgUpdateMinSelfDelegation) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateMinSelfDelegation) ValidateBasic() error
- func (m *MsgUpdateMinSelfDelegation) XXX_DiscardUnknown()
- func (m *MsgUpdateMinSelfDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMinSelfDelegation) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMinSelfDelegation) XXX_Size() int
- func (m *MsgUpdateMinSelfDelegation) XXX_Unmarshal(b []byte) error
- type MsgUpdateMinSelfDelegationResponse
- func (*MsgUpdateMinSelfDelegationResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMinSelfDelegationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMinSelfDelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMinSelfDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMinSelfDelegationResponse) ProtoMessage()
- func (m *MsgUpdateMinSelfDelegationResponse) Reset()
- func (m *MsgUpdateMinSelfDelegationResponse) Size() (n int)
- func (m *MsgUpdateMinSelfDelegationResponse) String() string
- func (m *MsgUpdateMinSelfDelegationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_Size() int
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetBrokerAddress() string
- 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 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
- func (*UnimplementedMsgServer) UpdateBrokerAddress(ctx context.Context, req *MsgUpdateBrokerAddress) (*MsgUpdateBrokerAddressResponse, error)
- func (*UnimplementedMsgServer) UpdateMaxVotingPower(ctx context.Context, req *MsgUpdateMaxVotingPower) (*MsgUpdateMaxVotingPowerResponse, error)
- func (*UnimplementedMsgServer) UpdateMinCommission(ctx context.Context, req *MsgUpdateMinCommission) (*MsgUpdateMinCommissionResponse, error)
- func (*UnimplementedMsgServer) UpdateMinSelfDelegation(ctx context.Context, req *MsgUpdateMinSelfDelegation) (*MsgUpdateMinSelfDelegationResponse, error)
- 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" // ParamsKey is the prefix to retrieve all Params ParamsKey = "Params/value/" )
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 // 3.154e+7 per year SecondsPerYear = 3.154e+7 // One day seconds SecondsPerDay = 86400 // Days per year DaysPerYear = 365 // Weeks per year WeeksPerYear = 52 // Days per week DaysPerWeek = 7 // Return ok RES_OK = uint64(200) )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidMinCommissionRate = sdkerrors.Register(ModuleName, 1101, "invalid min commission rate") ErrInvalidMaxVotingPower = sdkerrors.Register(ModuleName, 1102, "invalid max voting power") ErrInvalidMinSelfDelegation = sdkerrors.Register(ModuleName, 1103, "invalid min self delegation") ErrInvalidBrokerAddress = sdkerrors.Register(ModuleName, 1104, "invalid broker address") )
x/parameter module sentinel errors
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 ( KeyMinCommissionRate = []byte("MinCommissionRate") KeyMaxVotingPower = []byte("MaxVotingPower") KeyMinSelfDelegation = []byte("MinSelfDelegation") KeyBrokerAddress = []byte("BrokerAddress") )
Parameter keys
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
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 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"`
}
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) 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 { UpdateMinCommission(ctx context.Context, in *MsgUpdateMinCommission, opts ...grpc.CallOption) (*MsgUpdateMinCommissionResponse, error) UpdateMaxVotingPower(ctx context.Context, in *MsgUpdateMaxVotingPower, opts ...grpc.CallOption) (*MsgUpdateMaxVotingPowerResponse, error) UpdateMinSelfDelegation(ctx context.Context, in *MsgUpdateMinSelfDelegation, opts ...grpc.CallOption) (*MsgUpdateMinSelfDelegationResponse, error) UpdateBrokerAddress(ctx context.Context, in *MsgUpdateBrokerAddress, opts ...grpc.CallOption) (*MsgUpdateBrokerAddressResponse, 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 MsgServer ¶
type MsgServer interface { UpdateMinCommission(context.Context, *MsgUpdateMinCommission) (*MsgUpdateMinCommissionResponse, error) UpdateMaxVotingPower(context.Context, *MsgUpdateMaxVotingPower) (*MsgUpdateMaxVotingPowerResponse, error) UpdateMinSelfDelegation(context.Context, *MsgUpdateMinSelfDelegation) (*MsgUpdateMinSelfDelegationResponse, error) UpdateBrokerAddress(context.Context, *MsgUpdateBrokerAddress) (*MsgUpdateBrokerAddressResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateBrokerAddress ¶ added in v0.19.0
type MsgUpdateBrokerAddress struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` BrokerAddress string `protobuf:"bytes,3,opt,name=broker_address,json=brokerAddress,proto3" json:"broker_address,omitempty"` }
func NewMsgUpdateBrokerAddress ¶ added in v0.19.0
func NewMsgUpdateBrokerAddress(creator string, brokerAddress string) *MsgUpdateBrokerAddress
func (*MsgUpdateBrokerAddress) Descriptor ¶ added in v0.19.0
func (*MsgUpdateBrokerAddress) Descriptor() ([]byte, []int)
func (*MsgUpdateBrokerAddress) GetBrokerAddress ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) GetBrokerAddress() string
func (*MsgUpdateBrokerAddress) GetCreator ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) GetCreator() string
func (*MsgUpdateBrokerAddress) GetSigners ¶ added in v0.19.0
func (msg *MsgUpdateBrokerAddress) GetSigners() []sdk.AccAddress
func (*MsgUpdateBrokerAddress) Marshal ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) Marshal() (dAtA []byte, err error)
func (*MsgUpdateBrokerAddress) MarshalTo ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateBrokerAddress) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateBrokerAddress) ProtoMessage ¶ added in v0.19.0
func (*MsgUpdateBrokerAddress) ProtoMessage()
func (*MsgUpdateBrokerAddress) Reset ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) Reset()
func (*MsgUpdateBrokerAddress) Size ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) Size() (n int)
func (*MsgUpdateBrokerAddress) String ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) String() string
func (*MsgUpdateBrokerAddress) Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) Unmarshal(dAtA []byte) error
func (*MsgUpdateBrokerAddress) ValidateBasic ¶ added in v0.19.0
func (msg *MsgUpdateBrokerAddress) ValidateBasic() error
func (*MsgUpdateBrokerAddress) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) XXX_DiscardUnknown()
func (*MsgUpdateBrokerAddress) XXX_Marshal ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateBrokerAddress) XXX_Merge ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) XXX_Merge(src proto.Message)
func (*MsgUpdateBrokerAddress) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) XXX_Size() int
func (*MsgUpdateBrokerAddress) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddress) XXX_Unmarshal(b []byte) error
type MsgUpdateBrokerAddressResponse ¶ added in v0.19.0
type MsgUpdateBrokerAddressResponse struct { }
func (*MsgUpdateBrokerAddressResponse) Descriptor ¶ added in v0.19.0
func (*MsgUpdateBrokerAddressResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateBrokerAddressResponse) Marshal ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateBrokerAddressResponse) MarshalTo ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateBrokerAddressResponse) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateBrokerAddressResponse) ProtoMessage ¶ added in v0.19.0
func (*MsgUpdateBrokerAddressResponse) ProtoMessage()
func (*MsgUpdateBrokerAddressResponse) Reset ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) Reset()
func (*MsgUpdateBrokerAddressResponse) Size ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) Size() (n int)
func (*MsgUpdateBrokerAddressResponse) String ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) String() string
func (*MsgUpdateBrokerAddressResponse) Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateBrokerAddressResponse) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) XXX_DiscardUnknown()
func (*MsgUpdateBrokerAddressResponse) XXX_Marshal ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateBrokerAddressResponse) XXX_Merge ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateBrokerAddressResponse) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) XXX_Size() int
func (*MsgUpdateBrokerAddressResponse) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateBrokerAddressResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateMaxVotingPower ¶ added in v0.19.0
type MsgUpdateMaxVotingPower struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` MaxVotingPower string `protobuf:"bytes,3,opt,name=max_voting_power,json=maxVotingPower,proto3" json:"max_voting_power,omitempty"` }
func NewMsgUpdateMaxVotingPower ¶ added in v0.19.0
func NewMsgUpdateMaxVotingPower(creator string, maxVotingPower string) *MsgUpdateMaxVotingPower
func (*MsgUpdateMaxVotingPower) Descriptor ¶ added in v0.19.0
func (*MsgUpdateMaxVotingPower) Descriptor() ([]byte, []int)
func (*MsgUpdateMaxVotingPower) GetCreator ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) GetCreator() string
func (*MsgUpdateMaxVotingPower) GetMaxVotingPower ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) GetMaxVotingPower() string
func (*MsgUpdateMaxVotingPower) GetSigners ¶ added in v0.19.0
func (msg *MsgUpdateMaxVotingPower) GetSigners() []sdk.AccAddress
func (*MsgUpdateMaxVotingPower) Marshal ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMaxVotingPower) MarshalTo ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMaxVotingPower) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMaxVotingPower) ProtoMessage ¶ added in v0.19.0
func (*MsgUpdateMaxVotingPower) ProtoMessage()
func (*MsgUpdateMaxVotingPower) Reset ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) Reset()
func (*MsgUpdateMaxVotingPower) Size ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) Size() (n int)
func (*MsgUpdateMaxVotingPower) String ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) String() string
func (*MsgUpdateMaxVotingPower) Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) Unmarshal(dAtA []byte) error
func (*MsgUpdateMaxVotingPower) ValidateBasic ¶ added in v0.19.0
func (msg *MsgUpdateMaxVotingPower) ValidateBasic() error
func (*MsgUpdateMaxVotingPower) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) XXX_DiscardUnknown()
func (*MsgUpdateMaxVotingPower) XXX_Marshal ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMaxVotingPower) XXX_Merge ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) XXX_Merge(src proto.Message)
func (*MsgUpdateMaxVotingPower) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) XXX_Size() int
func (*MsgUpdateMaxVotingPower) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPower) XXX_Unmarshal(b []byte) error
type MsgUpdateMaxVotingPowerResponse ¶ added in v0.19.0
type MsgUpdateMaxVotingPowerResponse struct { }
func (*MsgUpdateMaxVotingPowerResponse) Descriptor ¶ added in v0.19.0
func (*MsgUpdateMaxVotingPowerResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateMaxVotingPowerResponse) Marshal ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMaxVotingPowerResponse) MarshalTo ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMaxVotingPowerResponse) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMaxVotingPowerResponse) ProtoMessage ¶ added in v0.19.0
func (*MsgUpdateMaxVotingPowerResponse) ProtoMessage()
func (*MsgUpdateMaxVotingPowerResponse) Reset ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) Reset()
func (*MsgUpdateMaxVotingPowerResponse) Size ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) Size() (n int)
func (*MsgUpdateMaxVotingPowerResponse) String ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) String() string
func (*MsgUpdateMaxVotingPowerResponse) Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateMaxVotingPowerResponse) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) XXX_DiscardUnknown()
func (*MsgUpdateMaxVotingPowerResponse) XXX_Marshal ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMaxVotingPowerResponse) XXX_Merge ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateMaxVotingPowerResponse) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) XXX_Size() int
func (*MsgUpdateMaxVotingPowerResponse) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateMinCommission ¶ added in v0.19.0
type MsgUpdateMinCommission struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` MinCommission string `protobuf:"bytes,2,opt,name=min_commission,json=minCommission,proto3" json:"min_commission,omitempty"` }
func NewMsgExitPool ¶ added in v0.19.0
func NewMsgExitPool(creator string, minCommission string) *MsgUpdateMinCommission
func (*MsgUpdateMinCommission) Descriptor ¶ added in v0.19.0
func (*MsgUpdateMinCommission) Descriptor() ([]byte, []int)
func (*MsgUpdateMinCommission) GetCreator ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) GetCreator() string
func (*MsgUpdateMinCommission) GetMinCommission ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) GetMinCommission() string
func (*MsgUpdateMinCommission) GetSigners ¶ added in v0.19.0
func (msg *MsgUpdateMinCommission) GetSigners() []sdk.AccAddress
func (*MsgUpdateMinCommission) Marshal ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMinCommission) MarshalTo ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMinCommission) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMinCommission) ProtoMessage ¶ added in v0.19.0
func (*MsgUpdateMinCommission) ProtoMessage()
func (*MsgUpdateMinCommission) Reset ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) Reset()
func (*MsgUpdateMinCommission) Size ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) Size() (n int)
func (*MsgUpdateMinCommission) String ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) String() string
func (*MsgUpdateMinCommission) Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) Unmarshal(dAtA []byte) error
func (*MsgUpdateMinCommission) ValidateBasic ¶ added in v0.19.0
func (msg *MsgUpdateMinCommission) ValidateBasic() error
func (*MsgUpdateMinCommission) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) XXX_DiscardUnknown()
func (*MsgUpdateMinCommission) XXX_Marshal ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMinCommission) XXX_Merge ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) XXX_Merge(src proto.Message)
func (*MsgUpdateMinCommission) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) XXX_Size() int
func (*MsgUpdateMinCommission) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMinCommission) XXX_Unmarshal(b []byte) error
type MsgUpdateMinCommissionResponse ¶ added in v0.19.0
type MsgUpdateMinCommissionResponse struct { }
func (*MsgUpdateMinCommissionResponse) Descriptor ¶ added in v0.19.0
func (*MsgUpdateMinCommissionResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateMinCommissionResponse) Marshal ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMinCommissionResponse) MarshalTo ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMinCommissionResponse) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMinCommissionResponse) ProtoMessage ¶ added in v0.19.0
func (*MsgUpdateMinCommissionResponse) ProtoMessage()
func (*MsgUpdateMinCommissionResponse) Reset ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) Reset()
func (*MsgUpdateMinCommissionResponse) Size ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) Size() (n int)
func (*MsgUpdateMinCommissionResponse) String ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) String() string
func (*MsgUpdateMinCommissionResponse) Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateMinCommissionResponse) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) XXX_DiscardUnknown()
func (*MsgUpdateMinCommissionResponse) XXX_Marshal ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMinCommissionResponse) XXX_Merge ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateMinCommissionResponse) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) XXX_Size() int
func (*MsgUpdateMinCommissionResponse) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMinCommissionResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateMinSelfDelegation ¶ added in v0.19.0
type MsgUpdateMinSelfDelegation struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` MinSelfDelegation string `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"` }
func NewMsgUpdateMinSelfDelegation ¶ added in v0.19.0
func NewMsgUpdateMinSelfDelegation(creator string, minSelfDelegation string) *MsgUpdateMinSelfDelegation
func (*MsgUpdateMinSelfDelegation) Descriptor ¶ added in v0.19.0
func (*MsgUpdateMinSelfDelegation) Descriptor() ([]byte, []int)
func (*MsgUpdateMinSelfDelegation) GetCreator ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) GetCreator() string
func (*MsgUpdateMinSelfDelegation) GetMinSelfDelegation ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) GetMinSelfDelegation() string
func (*MsgUpdateMinSelfDelegation) GetSigners ¶ added in v0.19.0
func (msg *MsgUpdateMinSelfDelegation) GetSigners() []sdk.AccAddress
func (*MsgUpdateMinSelfDelegation) Marshal ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMinSelfDelegation) MarshalTo ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMinSelfDelegation) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMinSelfDelegation) ProtoMessage ¶ added in v0.19.0
func (*MsgUpdateMinSelfDelegation) ProtoMessage()
func (*MsgUpdateMinSelfDelegation) Reset ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) Reset()
func (*MsgUpdateMinSelfDelegation) Size ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) Size() (n int)
func (*MsgUpdateMinSelfDelegation) String ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) String() string
func (*MsgUpdateMinSelfDelegation) Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) Unmarshal(dAtA []byte) error
func (*MsgUpdateMinSelfDelegation) ValidateBasic ¶ added in v0.19.0
func (msg *MsgUpdateMinSelfDelegation) ValidateBasic() error
func (*MsgUpdateMinSelfDelegation) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) XXX_DiscardUnknown()
func (*MsgUpdateMinSelfDelegation) XXX_Marshal ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMinSelfDelegation) XXX_Merge ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) XXX_Merge(src proto.Message)
func (*MsgUpdateMinSelfDelegation) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) XXX_Size() int
func (*MsgUpdateMinSelfDelegation) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegation) XXX_Unmarshal(b []byte) error
type MsgUpdateMinSelfDelegationResponse ¶ added in v0.19.0
type MsgUpdateMinSelfDelegationResponse struct { }
func (*MsgUpdateMinSelfDelegationResponse) Descriptor ¶ added in v0.19.0
func (*MsgUpdateMinSelfDelegationResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateMinSelfDelegationResponse) Marshal ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMinSelfDelegationResponse) MarshalTo ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMinSelfDelegationResponse) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMinSelfDelegationResponse) ProtoMessage ¶ added in v0.19.0
func (*MsgUpdateMinSelfDelegationResponse) ProtoMessage()
func (*MsgUpdateMinSelfDelegationResponse) Reset ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) Reset()
func (*MsgUpdateMinSelfDelegationResponse) Size ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) Size() (n int)
func (*MsgUpdateMinSelfDelegationResponse) String ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) String() string
func (*MsgUpdateMinSelfDelegationResponse) Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateMinSelfDelegationResponse) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) XXX_DiscardUnknown()
func (*MsgUpdateMinSelfDelegationResponse) XXX_Marshal ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMinSelfDelegationResponse) XXX_Merge ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateMinSelfDelegationResponse) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) XXX_Size() int
func (*MsgUpdateMinSelfDelegationResponse) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params 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 */ BrokerAddress string `protobuf:"bytes,4,opt,name=broker_address,json=brokerAddress,proto3" json:"broker_address,omitempty"` }
Params defines the parameters for the module.
func NewParams ¶
func NewParams(minCommissionRate sdk.Dec, maxVotingPower sdk.Dec, minSelfDelegation sdk.Int, brokerAddress string) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetBrokerAddress ¶ added in v0.19.0
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 QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateBrokerAddress ¶ added in v0.19.0
func (*UnimplementedMsgServer) UpdateBrokerAddress(ctx context.Context, req *MsgUpdateBrokerAddress) (*MsgUpdateBrokerAddressResponse, error)
func (*UnimplementedMsgServer) UpdateMaxVotingPower ¶ added in v0.19.0
func (*UnimplementedMsgServer) UpdateMaxVotingPower(ctx context.Context, req *MsgUpdateMaxVotingPower) (*MsgUpdateMaxVotingPowerResponse, error)
func (*UnimplementedMsgServer) UpdateMinCommission ¶ added in v0.19.0
func (*UnimplementedMsgServer) UpdateMinCommission(ctx context.Context, req *MsgUpdateMinCommission) (*MsgUpdateMinCommissionResponse, error)
func (*UnimplementedMsgServer) UpdateMinSelfDelegation ¶ added in v0.19.0
func (*UnimplementedMsgServer) UpdateMinSelfDelegation(ctx context.Context, req *MsgUpdateMinSelfDelegation) (*MsgUpdateMinSelfDelegationResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)