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 RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 ClockContract
- func (*ClockContract) Descriptor() ([]byte, []int)
- func (m *ClockContract) GetContractAddress() string
- func (m *ClockContract) GetIsJailed() bool
- func (m *ClockContract) Marshal() (dAtA []byte, err error)
- func (m *ClockContract) MarshalTo(dAtA []byte) (int, error)
- func (m *ClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClockContract) ProtoMessage()
- func (m *ClockContract) Reset()
- func (m *ClockContract) Size() (n int)
- func (m *ClockContract) String() string
- func (m *ClockContract) Unmarshal(dAtA []byte) error
- func (m *ClockContract) XXX_DiscardUnknown()
- func (m *ClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClockContract) XXX_Merge(src proto.Message)
- func (m *ClockContract) XXX_Size() int
- func (m *ClockContract) 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 (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 MsgRegisterClockContract
- func (*MsgRegisterClockContract) Descriptor() ([]byte, []int)
- func (m *MsgRegisterClockContract) GetContractAddress() string
- func (m *MsgRegisterClockContract) GetSenderAddress() string
- func (msg *MsgRegisterClockContract) GetSignBytes() []byte
- func (msg MsgRegisterClockContract) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterClockContract) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterClockContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterClockContract) ProtoMessage()
- func (m *MsgRegisterClockContract) Reset()
- func (msg MsgRegisterClockContract) Route() string
- func (m *MsgRegisterClockContract) Size() (n int)
- func (m *MsgRegisterClockContract) String() string
- func (msg MsgRegisterClockContract) Type() string
- func (m *MsgRegisterClockContract) Unmarshal(dAtA []byte) error
- func (msg MsgRegisterClockContract) ValidateBasic() error
- func (m *MsgRegisterClockContract) XXX_DiscardUnknown()
- func (m *MsgRegisterClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterClockContract) XXX_Merge(src proto.Message)
- func (m *MsgRegisterClockContract) XXX_Size() int
- func (m *MsgRegisterClockContract) XXX_Unmarshal(b []byte) error
- type MsgRegisterClockContractResponse
- func (*MsgRegisterClockContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterClockContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterClockContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterClockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterClockContractResponse) ProtoMessage()
- func (m *MsgRegisterClockContractResponse) Reset()
- func (m *MsgRegisterClockContractResponse) Size() (n int)
- func (m *MsgRegisterClockContractResponse) String() string
- func (m *MsgRegisterClockContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterClockContractResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterClockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterClockContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterClockContractResponse) XXX_Size() int
- func (m *MsgRegisterClockContractResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUnjailClockContract
- func (*MsgUnjailClockContract) Descriptor() ([]byte, []int)
- func (m *MsgUnjailClockContract) GetContractAddress() string
- func (m *MsgUnjailClockContract) GetSenderAddress() string
- func (msg *MsgUnjailClockContract) GetSignBytes() []byte
- func (msg MsgUnjailClockContract) GetSigners() []sdk.AccAddress
- func (m *MsgUnjailClockContract) Marshal() (dAtA []byte, err error)
- func (m *MsgUnjailClockContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnjailClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnjailClockContract) ProtoMessage()
- func (m *MsgUnjailClockContract) Reset()
- func (msg MsgUnjailClockContract) Route() string
- func (m *MsgUnjailClockContract) Size() (n int)
- func (m *MsgUnjailClockContract) String() string
- func (msg MsgUnjailClockContract) Type() string
- func (m *MsgUnjailClockContract) Unmarshal(dAtA []byte) error
- func (msg MsgUnjailClockContract) ValidateBasic() error
- func (m *MsgUnjailClockContract) XXX_DiscardUnknown()
- func (m *MsgUnjailClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnjailClockContract) XXX_Merge(src proto.Message)
- func (m *MsgUnjailClockContract) XXX_Size() int
- func (m *MsgUnjailClockContract) XXX_Unmarshal(b []byte) error
- type MsgUnjailClockContractResponse
- func (*MsgUnjailClockContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnjailClockContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnjailClockContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnjailClockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnjailClockContractResponse) ProtoMessage()
- func (m *MsgUnjailClockContractResponse) Reset()
- func (m *MsgUnjailClockContractResponse) Size() (n int)
- func (m *MsgUnjailClockContractResponse) String() string
- func (m *MsgUnjailClockContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnjailClockContractResponse) XXX_DiscardUnknown()
- func (m *MsgUnjailClockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnjailClockContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnjailClockContractResponse) XXX_Size() int
- func (m *MsgUnjailClockContractResponse) XXX_Unmarshal(b []byte) error
- type MsgUnregisterClockContract
- func (*MsgUnregisterClockContract) Descriptor() ([]byte, []int)
- func (m *MsgUnregisterClockContract) GetContractAddress() string
- func (m *MsgUnregisterClockContract) GetSenderAddress() string
- func (msg *MsgUnregisterClockContract) GetSignBytes() []byte
- func (msg MsgUnregisterClockContract) GetSigners() []sdk.AccAddress
- func (m *MsgUnregisterClockContract) Marshal() (dAtA []byte, err error)
- func (m *MsgUnregisterClockContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnregisterClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnregisterClockContract) ProtoMessage()
- func (m *MsgUnregisterClockContract) Reset()
- func (msg MsgUnregisterClockContract) Route() string
- func (m *MsgUnregisterClockContract) Size() (n int)
- func (m *MsgUnregisterClockContract) String() string
- func (msg MsgUnregisterClockContract) Type() string
- func (m *MsgUnregisterClockContract) Unmarshal(dAtA []byte) error
- func (msg MsgUnregisterClockContract) ValidateBasic() error
- func (m *MsgUnregisterClockContract) XXX_DiscardUnknown()
- func (m *MsgUnregisterClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnregisterClockContract) XXX_Merge(src proto.Message)
- func (m *MsgUnregisterClockContract) XXX_Size() int
- func (m *MsgUnregisterClockContract) XXX_Unmarshal(b []byte) error
- type MsgUnregisterClockContractResponse
- func (*MsgUnregisterClockContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnregisterClockContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnregisterClockContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnregisterClockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnregisterClockContractResponse) ProtoMessage()
- func (m *MsgUnregisterClockContractResponse) Reset()
- func (m *MsgUnregisterClockContractResponse) Size() (n int)
- func (m *MsgUnregisterClockContractResponse) String() string
- func (m *MsgUnregisterClockContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnregisterClockContractResponse) XXX_DiscardUnknown()
- func (m *MsgUnregisterClockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnregisterClockContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnregisterClockContractResponse) XXX_Size() int
- func (m *MsgUnregisterClockContractResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (msg MsgUpdateParams) GetSignBytes() []byte
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- 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 (msg MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() 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 Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetContractGasLimit() uint64
- 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 (*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 QueryClient
- type QueryClockContract
- func (*QueryClockContract) Descriptor() ([]byte, []int)
- func (m *QueryClockContract) GetContractAddress() string
- func (m *QueryClockContract) Marshal() (dAtA []byte, err error)
- func (m *QueryClockContract) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClockContract) ProtoMessage()
- func (m *QueryClockContract) Reset()
- func (m *QueryClockContract) Size() (n int)
- func (m *QueryClockContract) String() string
- func (m *QueryClockContract) Unmarshal(dAtA []byte) error
- func (m *QueryClockContract) XXX_DiscardUnknown()
- func (m *QueryClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClockContract) XXX_Merge(src proto.Message)
- func (m *QueryClockContract) XXX_Size() int
- func (m *QueryClockContract) XXX_Unmarshal(b []byte) error
- type QueryClockContractResponse
- func (*QueryClockContractResponse) Descriptor() ([]byte, []int)
- func (m *QueryClockContractResponse) GetClockContract() ClockContract
- func (m *QueryClockContractResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClockContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClockContractResponse) ProtoMessage()
- func (m *QueryClockContractResponse) Reset()
- func (m *QueryClockContractResponse) Size() (n int)
- func (m *QueryClockContractResponse) String() string
- func (m *QueryClockContractResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClockContractResponse) XXX_DiscardUnknown()
- func (m *QueryClockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClockContractResponse) XXX_Merge(src proto.Message)
- func (m *QueryClockContractResponse) XXX_Size() int
- func (m *QueryClockContractResponse) XXX_Unmarshal(b []byte) error
- type QueryClockContracts
- func (*QueryClockContracts) Descriptor() ([]byte, []int)
- func (m *QueryClockContracts) GetPagination() *query.PageRequest
- func (m *QueryClockContracts) Marshal() (dAtA []byte, err error)
- func (m *QueryClockContracts) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClockContracts) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClockContracts) ProtoMessage()
- func (m *QueryClockContracts) Reset()
- func (m *QueryClockContracts) Size() (n int)
- func (m *QueryClockContracts) String() string
- func (m *QueryClockContracts) Unmarshal(dAtA []byte) error
- func (m *QueryClockContracts) XXX_DiscardUnknown()
- func (m *QueryClockContracts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClockContracts) XXX_Merge(src proto.Message)
- func (m *QueryClockContracts) XXX_Size() int
- func (m *QueryClockContracts) XXX_Unmarshal(b []byte) error
- type QueryClockContractsResponse
- func (*QueryClockContractsResponse) Descriptor() ([]byte, []int)
- func (m *QueryClockContractsResponse) GetClockContracts() []ClockContract
- func (m *QueryClockContractsResponse) GetPagination() *query.PageResponse
- func (m *QueryClockContractsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClockContractsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClockContractsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClockContractsResponse) ProtoMessage()
- func (m *QueryClockContractsResponse) Reset()
- func (m *QueryClockContractsResponse) Size() (n int)
- func (m *QueryClockContractsResponse) String() string
- func (m *QueryClockContractsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClockContractsResponse) XXX_DiscardUnknown()
- func (m *QueryClockContractsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClockContractsResponse) XXX_Merge(src proto.Message)
- func (m *QueryClockContractsResponse) XXX_Size() int
- func (m *QueryClockContractsResponse) 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 UnimplementedMsgServer
- func (*UnimplementedMsgServer) RegisterClockContract(ctx context.Context, req *MsgRegisterClockContract) (*MsgRegisterClockContractResponse, error)
- func (*UnimplementedMsgServer) UnjailClockContract(ctx context.Context, req *MsgUnjailClockContract) (*MsgUnjailClockContractResponse, error)
- func (*UnimplementedMsgServer) UnregisterClockContract(ctx context.Context, req *MsgUnregisterClockContract) (*MsgUnregisterClockContractResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ClockContract(ctx context.Context, req *QueryClockContract) (*QueryClockContractResponse, error)
- func (*UnimplementedQueryServer) ClockContracts(ctx context.Context, req *QueryClockContracts) (*QueryClockContractsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( ModuleName = "clock" RouterKey = ModuleName StoreKey = ModuleName QuerierRoute = ModuleName )
const ( TypeMsgRegisterFeePayContract = "register_clock_contract" TypeMsgUnregisterFeePayContract = "unregister_clock_contract" TypeMsgUnjailFeePayContract = "unjail_clock_contract" TypeMsgUpdateParams = "update_clock_params" )
== MsgUpdateParams ==
const (
// Sudo Message called on the contracts
EndBlockSudoMessage = `{"clock_end_block":{}}`
)
Variables ¶
var ( ErrInvalidLengthClock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClock = fmt.Errorf("proto: unexpected end of group") )
var ( ErrContractJailed = errorsmod.Register(ModuleName, 1, "contract is jailed") ErrContractNotJailed = errorsmod.Register(ModuleName, 2, "contract is not jailed") ErrContractAlreadyJailed = errorsmod.Register(ModuleName, 3, "contract is already jailed") )
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 ( 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 (
AminoCdc = codec.NewAminoCodec(amino)
)
var ParamsKey = []byte{0x00}
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec
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 ClockContract ¶
type ClockContract struct { // The address of the contract. ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // The jail status of the contract. IsJailed bool `protobuf:"varint,2,opt,name=is_jailed,json=isJailed,proto3" json:"is_jailed,omitempty"` }
This object is used to store the contract address and the jail status of the contract.
func (*ClockContract) Descriptor ¶
func (*ClockContract) Descriptor() ([]byte, []int)
func (*ClockContract) GetContractAddress ¶
func (m *ClockContract) GetContractAddress() string
func (*ClockContract) GetIsJailed ¶
func (m *ClockContract) GetIsJailed() bool
func (*ClockContract) Marshal ¶
func (m *ClockContract) Marshal() (dAtA []byte, err error)
func (*ClockContract) MarshalToSizedBuffer ¶
func (m *ClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClockContract) ProtoMessage ¶
func (*ClockContract) ProtoMessage()
func (*ClockContract) Reset ¶
func (m *ClockContract) Reset()
func (*ClockContract) Size ¶
func (m *ClockContract) Size() (n int)
func (*ClockContract) String ¶
func (m *ClockContract) String() string
func (*ClockContract) Unmarshal ¶
func (m *ClockContract) Unmarshal(dAtA []byte) error
func (*ClockContract) XXX_DiscardUnknown ¶
func (m *ClockContract) XXX_DiscardUnknown()
func (*ClockContract) XXX_Marshal ¶
func (m *ClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClockContract) XXX_Merge ¶
func (m *ClockContract) XXX_Merge(src proto.Message)
func (*ClockContract) XXX_Size ¶
func (m *ClockContract) XXX_Size() int
func (*ClockContract) XXX_Unmarshal ¶
func (m *ClockContract) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // Params of this module Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
GenesisState - initial state of module
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) 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 { // RegisterClockContract defines the endpoint for // registering a new clock contract. RegisterClockContract(ctx context.Context, in *MsgRegisterClockContract, opts ...grpc.CallOption) (*MsgRegisterClockContractResponse, error) // UnregisterClockContract defines the endpoint for // unregistering a clock contract. UnregisterClockContract(ctx context.Context, in *MsgUnregisterClockContract, opts ...grpc.CallOption) (*MsgUnregisterClockContractResponse, error) // UnjailClockContract defines the endpoint for // unjailing a clock contract. UnjailClockContract(ctx context.Context, in *MsgUnjailClockContract, opts ...grpc.CallOption) (*MsgUnjailClockContractResponse, error) // UpdateParams defines a governance operation for updating the x/clock module // parameters. The authority is hard-coded to the x/gov module account. // // Since: cosmos-sdk 0.47 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 MsgRegisterClockContract ¶
type MsgRegisterClockContract struct { // The address of the sender. SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` // The address of the contract to register. ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` }
MsgRegisterClockContract is the Msg/RegisterClockContract request type.
func (*MsgRegisterClockContract) Descriptor ¶
func (*MsgRegisterClockContract) Descriptor() ([]byte, []int)
func (*MsgRegisterClockContract) GetContractAddress ¶
func (m *MsgRegisterClockContract) GetContractAddress() string
func (*MsgRegisterClockContract) GetSenderAddress ¶
func (m *MsgRegisterClockContract) GetSenderAddress() string
func (*MsgRegisterClockContract) GetSignBytes ¶
func (msg *MsgRegisterClockContract) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgRegisterClockContract) GetSigners ¶
func (msg MsgRegisterClockContract) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgRegisterClockContract) Marshal ¶
func (m *MsgRegisterClockContract) Marshal() (dAtA []byte, err error)
func (*MsgRegisterClockContract) MarshalTo ¶
func (m *MsgRegisterClockContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterClockContract) MarshalToSizedBuffer ¶
func (m *MsgRegisterClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterClockContract) ProtoMessage ¶
func (*MsgRegisterClockContract) ProtoMessage()
func (*MsgRegisterClockContract) Reset ¶
func (m *MsgRegisterClockContract) Reset()
func (MsgRegisterClockContract) Route ¶
func (msg MsgRegisterClockContract) Route() string
Route returns the name of the module
func (*MsgRegisterClockContract) Size ¶
func (m *MsgRegisterClockContract) Size() (n int)
func (*MsgRegisterClockContract) String ¶
func (m *MsgRegisterClockContract) String() string
func (MsgRegisterClockContract) Type ¶
func (msg MsgRegisterClockContract) Type() string
Type returns the the action
func (*MsgRegisterClockContract) Unmarshal ¶
func (m *MsgRegisterClockContract) Unmarshal(dAtA []byte) error
func (MsgRegisterClockContract) ValidateBasic ¶
func (msg MsgRegisterClockContract) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgRegisterClockContract) XXX_DiscardUnknown ¶
func (m *MsgRegisterClockContract) XXX_DiscardUnknown()
func (*MsgRegisterClockContract) XXX_Marshal ¶
func (m *MsgRegisterClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterClockContract) XXX_Merge ¶
func (m *MsgRegisterClockContract) XXX_Merge(src proto.Message)
func (*MsgRegisterClockContract) XXX_Size ¶
func (m *MsgRegisterClockContract) XXX_Size() int
func (*MsgRegisterClockContract) XXX_Unmarshal ¶
func (m *MsgRegisterClockContract) XXX_Unmarshal(b []byte) error
type MsgRegisterClockContractResponse ¶
type MsgRegisterClockContractResponse struct { }
MsgRegisterClockContractResponse defines the response structure for executing a MsgRegisterClockContract message.
func (*MsgRegisterClockContractResponse) Descriptor ¶
func (*MsgRegisterClockContractResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterClockContractResponse) Marshal ¶
func (m *MsgRegisterClockContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterClockContractResponse) MarshalTo ¶
func (m *MsgRegisterClockContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterClockContractResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterClockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterClockContractResponse) ProtoMessage ¶
func (*MsgRegisterClockContractResponse) ProtoMessage()
func (*MsgRegisterClockContractResponse) Reset ¶
func (m *MsgRegisterClockContractResponse) Reset()
func (*MsgRegisterClockContractResponse) Size ¶
func (m *MsgRegisterClockContractResponse) Size() (n int)
func (*MsgRegisterClockContractResponse) String ¶
func (m *MsgRegisterClockContractResponse) String() string
func (*MsgRegisterClockContractResponse) Unmarshal ¶
func (m *MsgRegisterClockContractResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterClockContractResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterClockContractResponse) XXX_DiscardUnknown()
func (*MsgRegisterClockContractResponse) XXX_Marshal ¶
func (m *MsgRegisterClockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterClockContractResponse) XXX_Merge ¶
func (m *MsgRegisterClockContractResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterClockContractResponse) XXX_Size ¶
func (m *MsgRegisterClockContractResponse) XXX_Size() int
func (*MsgRegisterClockContractResponse) XXX_Unmarshal ¶
func (m *MsgRegisterClockContractResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // RegisterClockContract defines the endpoint for // registering a new clock contract. RegisterClockContract(context.Context, *MsgRegisterClockContract) (*MsgRegisterClockContractResponse, error) // UnregisterClockContract defines the endpoint for // unregistering a clock contract. UnregisterClockContract(context.Context, *MsgUnregisterClockContract) (*MsgUnregisterClockContractResponse, error) // UnjailClockContract defines the endpoint for // unjailing a clock contract. UnjailClockContract(context.Context, *MsgUnjailClockContract) (*MsgUnjailClockContractResponse, error) // UpdateParams defines a governance operation for updating the x/clock module // parameters. The authority is hard-coded to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUnjailClockContract ¶
type MsgUnjailClockContract struct { // The address of the sender. SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` // The address of the contract to unjail. ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` }
MsgUnjailClockContract is the Msg/UnjailClockContract request type.
func (*MsgUnjailClockContract) Descriptor ¶
func (*MsgUnjailClockContract) Descriptor() ([]byte, []int)
func (*MsgUnjailClockContract) GetContractAddress ¶
func (m *MsgUnjailClockContract) GetContractAddress() string
func (*MsgUnjailClockContract) GetSenderAddress ¶
func (m *MsgUnjailClockContract) GetSenderAddress() string
func (*MsgUnjailClockContract) GetSignBytes ¶
func (msg *MsgUnjailClockContract) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgUnjailClockContract) GetSigners ¶
func (msg MsgUnjailClockContract) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgUnjailClockContract) Marshal ¶
func (m *MsgUnjailClockContract) Marshal() (dAtA []byte, err error)
func (*MsgUnjailClockContract) MarshalTo ¶
func (m *MsgUnjailClockContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnjailClockContract) MarshalToSizedBuffer ¶
func (m *MsgUnjailClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnjailClockContract) ProtoMessage ¶
func (*MsgUnjailClockContract) ProtoMessage()
func (*MsgUnjailClockContract) Reset ¶
func (m *MsgUnjailClockContract) Reset()
func (MsgUnjailClockContract) Route ¶
func (msg MsgUnjailClockContract) Route() string
Route returns the name of the module
func (*MsgUnjailClockContract) Size ¶
func (m *MsgUnjailClockContract) Size() (n int)
func (*MsgUnjailClockContract) String ¶
func (m *MsgUnjailClockContract) String() string
func (MsgUnjailClockContract) Type ¶
func (msg MsgUnjailClockContract) Type() string
Type returns the the action
func (*MsgUnjailClockContract) Unmarshal ¶
func (m *MsgUnjailClockContract) Unmarshal(dAtA []byte) error
func (MsgUnjailClockContract) ValidateBasic ¶
func (msg MsgUnjailClockContract) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgUnjailClockContract) XXX_DiscardUnknown ¶
func (m *MsgUnjailClockContract) XXX_DiscardUnknown()
func (*MsgUnjailClockContract) XXX_Marshal ¶
func (m *MsgUnjailClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnjailClockContract) XXX_Merge ¶
func (m *MsgUnjailClockContract) XXX_Merge(src proto.Message)
func (*MsgUnjailClockContract) XXX_Size ¶
func (m *MsgUnjailClockContract) XXX_Size() int
func (*MsgUnjailClockContract) XXX_Unmarshal ¶
func (m *MsgUnjailClockContract) XXX_Unmarshal(b []byte) error
type MsgUnjailClockContractResponse ¶
type MsgUnjailClockContractResponse struct { }
MsgUnjailClockContractResponse defines the response structure for executing a MsgUnjailClockContract message.
func (*MsgUnjailClockContractResponse) Descriptor ¶
func (*MsgUnjailClockContractResponse) Descriptor() ([]byte, []int)
func (*MsgUnjailClockContractResponse) Marshal ¶
func (m *MsgUnjailClockContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnjailClockContractResponse) MarshalTo ¶
func (m *MsgUnjailClockContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnjailClockContractResponse) MarshalToSizedBuffer ¶
func (m *MsgUnjailClockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnjailClockContractResponse) ProtoMessage ¶
func (*MsgUnjailClockContractResponse) ProtoMessage()
func (*MsgUnjailClockContractResponse) Reset ¶
func (m *MsgUnjailClockContractResponse) Reset()
func (*MsgUnjailClockContractResponse) Size ¶
func (m *MsgUnjailClockContractResponse) Size() (n int)
func (*MsgUnjailClockContractResponse) String ¶
func (m *MsgUnjailClockContractResponse) String() string
func (*MsgUnjailClockContractResponse) Unmarshal ¶
func (m *MsgUnjailClockContractResponse) Unmarshal(dAtA []byte) error
func (*MsgUnjailClockContractResponse) XXX_DiscardUnknown ¶
func (m *MsgUnjailClockContractResponse) XXX_DiscardUnknown()
func (*MsgUnjailClockContractResponse) XXX_Marshal ¶
func (m *MsgUnjailClockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnjailClockContractResponse) XXX_Merge ¶
func (m *MsgUnjailClockContractResponse) XXX_Merge(src proto.Message)
func (*MsgUnjailClockContractResponse) XXX_Size ¶
func (m *MsgUnjailClockContractResponse) XXX_Size() int
func (*MsgUnjailClockContractResponse) XXX_Unmarshal ¶
func (m *MsgUnjailClockContractResponse) XXX_Unmarshal(b []byte) error
type MsgUnregisterClockContract ¶
type MsgUnregisterClockContract struct { // The address of the sender. SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` // The address of the contract to unregister. ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` }
MsgUnregisterClockContract is the Msg/UnregisterClockContract request type.
func (*MsgUnregisterClockContract) Descriptor ¶
func (*MsgUnregisterClockContract) Descriptor() ([]byte, []int)
func (*MsgUnregisterClockContract) GetContractAddress ¶
func (m *MsgUnregisterClockContract) GetContractAddress() string
func (*MsgUnregisterClockContract) GetSenderAddress ¶
func (m *MsgUnregisterClockContract) GetSenderAddress() string
func (*MsgUnregisterClockContract) GetSignBytes ¶
func (msg *MsgUnregisterClockContract) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgUnregisterClockContract) GetSigners ¶
func (msg MsgUnregisterClockContract) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgUnregisterClockContract) Marshal ¶
func (m *MsgUnregisterClockContract) Marshal() (dAtA []byte, err error)
func (*MsgUnregisterClockContract) MarshalTo ¶
func (m *MsgUnregisterClockContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnregisterClockContract) MarshalToSizedBuffer ¶
func (m *MsgUnregisterClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnregisterClockContract) ProtoMessage ¶
func (*MsgUnregisterClockContract) ProtoMessage()
func (*MsgUnregisterClockContract) Reset ¶
func (m *MsgUnregisterClockContract) Reset()
func (MsgUnregisterClockContract) Route ¶
func (msg MsgUnregisterClockContract) Route() string
Route returns the name of the module
func (*MsgUnregisterClockContract) Size ¶
func (m *MsgUnregisterClockContract) Size() (n int)
func (*MsgUnregisterClockContract) String ¶
func (m *MsgUnregisterClockContract) String() string
func (MsgUnregisterClockContract) Type ¶
func (msg MsgUnregisterClockContract) Type() string
Type returns the the action
func (*MsgUnregisterClockContract) Unmarshal ¶
func (m *MsgUnregisterClockContract) Unmarshal(dAtA []byte) error
func (MsgUnregisterClockContract) ValidateBasic ¶
func (msg MsgUnregisterClockContract) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgUnregisterClockContract) XXX_DiscardUnknown ¶
func (m *MsgUnregisterClockContract) XXX_DiscardUnknown()
func (*MsgUnregisterClockContract) XXX_Marshal ¶
func (m *MsgUnregisterClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnregisterClockContract) XXX_Merge ¶
func (m *MsgUnregisterClockContract) XXX_Merge(src proto.Message)
func (*MsgUnregisterClockContract) XXX_Size ¶
func (m *MsgUnregisterClockContract) XXX_Size() int
func (*MsgUnregisterClockContract) XXX_Unmarshal ¶
func (m *MsgUnregisterClockContract) XXX_Unmarshal(b []byte) error
type MsgUnregisterClockContractResponse ¶
type MsgUnregisterClockContractResponse struct { }
MsgUnregisterClockContractResponse defines the response structure for executing a MsgUnregisterClockContract message.
func (*MsgUnregisterClockContractResponse) Descriptor ¶
func (*MsgUnregisterClockContractResponse) Descriptor() ([]byte, []int)
func (*MsgUnregisterClockContractResponse) Marshal ¶
func (m *MsgUnregisterClockContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnregisterClockContractResponse) MarshalTo ¶
func (m *MsgUnregisterClockContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnregisterClockContractResponse) MarshalToSizedBuffer ¶
func (m *MsgUnregisterClockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnregisterClockContractResponse) ProtoMessage ¶
func (*MsgUnregisterClockContractResponse) ProtoMessage()
func (*MsgUnregisterClockContractResponse) Reset ¶
func (m *MsgUnregisterClockContractResponse) Reset()
func (*MsgUnregisterClockContractResponse) Size ¶
func (m *MsgUnregisterClockContractResponse) Size() (n int)
func (*MsgUnregisterClockContractResponse) String ¶
func (m *MsgUnregisterClockContractResponse) String() string
func (*MsgUnregisterClockContractResponse) Unmarshal ¶
func (m *MsgUnregisterClockContractResponse) Unmarshal(dAtA []byte) error
func (*MsgUnregisterClockContractResponse) XXX_DiscardUnknown ¶
func (m *MsgUnregisterClockContractResponse) XXX_DiscardUnknown()
func (*MsgUnregisterClockContractResponse) XXX_Marshal ¶
func (m *MsgUnregisterClockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnregisterClockContractResponse) XXX_Merge ¶
func (m *MsgUnregisterClockContractResponse) XXX_Merge(src proto.Message)
func (*MsgUnregisterClockContractResponse) XXX_Size ¶
func (m *MsgUnregisterClockContractResponse) XXX_Size() int
func (*MsgUnregisterClockContractResponse) XXX_Unmarshal ¶
func (m *MsgUnregisterClockContractResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/clock 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.
Since: cosmos-sdk 0.47
func NewMsgUpdateParams ¶
func NewMsgUpdateParams( sender sdk.Address, contractGasLimit uint64, ) *MsgUpdateParams
NewMsgUpdateParams creates new instance of MsgUpdateParams
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) GetSignBytes ¶
func (msg MsgUpdateParams) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgUpdateParams) GetSigners ¶
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (MsgUpdateParams) Route ¶
func (msg MsgUpdateParams) Route() string
Route returns the name of the module
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (msg *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // contract_gas_limit defines the maximum amount of gas that can be used by a contract. ContractGasLimit uint64 `` /* 138-byte string literal not displayed */ }
Params defines the set of module parameters.
func (*Params) Descriptor ¶
func (*Params) GetContractGasLimit ¶
func (*Params) MarshalToSizedBuffer ¶
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 { // ClockContracts ClockContracts(ctx context.Context, in *QueryClockContracts, opts ...grpc.CallOption) (*QueryClockContractsResponse, error) // ClockContract ClockContract(ctx context.Context, in *QueryClockContract, opts ...grpc.CallOption) (*QueryClockContractResponse, error) // Params 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 QueryClockContract ¶
type QueryClockContract struct { // contract_address is the address of the contract to query. ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` }
QueryClockContract is the request type to get a single contract.
func (*QueryClockContract) Descriptor ¶
func (*QueryClockContract) Descriptor() ([]byte, []int)
func (*QueryClockContract) GetContractAddress ¶
func (m *QueryClockContract) GetContractAddress() string
func (*QueryClockContract) Marshal ¶
func (m *QueryClockContract) Marshal() (dAtA []byte, err error)
func (*QueryClockContract) MarshalTo ¶
func (m *QueryClockContract) MarshalTo(dAtA []byte) (int, error)
func (*QueryClockContract) MarshalToSizedBuffer ¶
func (m *QueryClockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClockContract) ProtoMessage ¶
func (*QueryClockContract) ProtoMessage()
func (*QueryClockContract) Reset ¶
func (m *QueryClockContract) Reset()
func (*QueryClockContract) Size ¶
func (m *QueryClockContract) Size() (n int)
func (*QueryClockContract) String ¶
func (m *QueryClockContract) String() string
func (*QueryClockContract) Unmarshal ¶
func (m *QueryClockContract) Unmarshal(dAtA []byte) error
func (*QueryClockContract) XXX_DiscardUnknown ¶
func (m *QueryClockContract) XXX_DiscardUnknown()
func (*QueryClockContract) XXX_Marshal ¶
func (m *QueryClockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClockContract) XXX_Merge ¶
func (m *QueryClockContract) XXX_Merge(src proto.Message)
func (*QueryClockContract) XXX_Size ¶
func (m *QueryClockContract) XXX_Size() int
func (*QueryClockContract) XXX_Unmarshal ¶
func (m *QueryClockContract) XXX_Unmarshal(b []byte) error
type QueryClockContractResponse ¶
type QueryClockContractResponse struct { // contract is the clock contract. ClockContract ClockContract `protobuf:"bytes,1,opt,name=clock_contract,json=clockContract,proto3" json:"clock_contract"` }
QueryClockContractResponse is the response type for the Query/ClockContract RPC method.
func (*QueryClockContractResponse) Descriptor ¶
func (*QueryClockContractResponse) Descriptor() ([]byte, []int)
func (*QueryClockContractResponse) GetClockContract ¶
func (m *QueryClockContractResponse) GetClockContract() ClockContract
func (*QueryClockContractResponse) Marshal ¶
func (m *QueryClockContractResponse) Marshal() (dAtA []byte, err error)
func (*QueryClockContractResponse) MarshalTo ¶
func (m *QueryClockContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClockContractResponse) MarshalToSizedBuffer ¶
func (m *QueryClockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClockContractResponse) ProtoMessage ¶
func (*QueryClockContractResponse) ProtoMessage()
func (*QueryClockContractResponse) Reset ¶
func (m *QueryClockContractResponse) Reset()
func (*QueryClockContractResponse) Size ¶
func (m *QueryClockContractResponse) Size() (n int)
func (*QueryClockContractResponse) String ¶
func (m *QueryClockContractResponse) String() string
func (*QueryClockContractResponse) Unmarshal ¶
func (m *QueryClockContractResponse) Unmarshal(dAtA []byte) error
func (*QueryClockContractResponse) XXX_DiscardUnknown ¶
func (m *QueryClockContractResponse) XXX_DiscardUnknown()
func (*QueryClockContractResponse) XXX_Marshal ¶
func (m *QueryClockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClockContractResponse) XXX_Merge ¶
func (m *QueryClockContractResponse) XXX_Merge(src proto.Message)
func (*QueryClockContractResponse) XXX_Size ¶
func (m *QueryClockContractResponse) XXX_Size() int
func (*QueryClockContractResponse) XXX_Unmarshal ¶
func (m *QueryClockContractResponse) XXX_Unmarshal(b []byte) error
type QueryClockContracts ¶
type QueryClockContracts struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClockContracts is the request type to get all contracts.
func (*QueryClockContracts) Descriptor ¶
func (*QueryClockContracts) Descriptor() ([]byte, []int)
func (*QueryClockContracts) GetPagination ¶
func (m *QueryClockContracts) GetPagination() *query.PageRequest
func (*QueryClockContracts) Marshal ¶
func (m *QueryClockContracts) Marshal() (dAtA []byte, err error)
func (*QueryClockContracts) MarshalTo ¶
func (m *QueryClockContracts) MarshalTo(dAtA []byte) (int, error)
func (*QueryClockContracts) MarshalToSizedBuffer ¶
func (m *QueryClockContracts) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClockContracts) ProtoMessage ¶
func (*QueryClockContracts) ProtoMessage()
func (*QueryClockContracts) Reset ¶
func (m *QueryClockContracts) Reset()
func (*QueryClockContracts) Size ¶
func (m *QueryClockContracts) Size() (n int)
func (*QueryClockContracts) String ¶
func (m *QueryClockContracts) String() string
func (*QueryClockContracts) Unmarshal ¶
func (m *QueryClockContracts) Unmarshal(dAtA []byte) error
func (*QueryClockContracts) XXX_DiscardUnknown ¶
func (m *QueryClockContracts) XXX_DiscardUnknown()
func (*QueryClockContracts) XXX_Marshal ¶
func (m *QueryClockContracts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClockContracts) XXX_Merge ¶
func (m *QueryClockContracts) XXX_Merge(src proto.Message)
func (*QueryClockContracts) XXX_Size ¶
func (m *QueryClockContracts) XXX_Size() int
func (*QueryClockContracts) XXX_Unmarshal ¶
func (m *QueryClockContracts) XXX_Unmarshal(b []byte) error
type QueryClockContractsResponse ¶
type QueryClockContractsResponse struct { // clock_contracts are the clock contracts. ClockContracts []ClockContract `protobuf:"bytes,1,rep,name=clock_contracts,json=clockContracts,proto3" json:"clock_contracts"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClockContractsResponse is the response type for the Query/ClockContracts RPC method.
func (*QueryClockContractsResponse) Descriptor ¶
func (*QueryClockContractsResponse) Descriptor() ([]byte, []int)
func (*QueryClockContractsResponse) GetClockContracts ¶
func (m *QueryClockContractsResponse) GetClockContracts() []ClockContract
func (*QueryClockContractsResponse) GetPagination ¶
func (m *QueryClockContractsResponse) GetPagination() *query.PageResponse
func (*QueryClockContractsResponse) Marshal ¶
func (m *QueryClockContractsResponse) Marshal() (dAtA []byte, err error)
func (*QueryClockContractsResponse) MarshalTo ¶
func (m *QueryClockContractsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClockContractsResponse) MarshalToSizedBuffer ¶
func (m *QueryClockContractsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClockContractsResponse) ProtoMessage ¶
func (*QueryClockContractsResponse) ProtoMessage()
func (*QueryClockContractsResponse) Reset ¶
func (m *QueryClockContractsResponse) Reset()
func (*QueryClockContractsResponse) Size ¶
func (m *QueryClockContractsResponse) Size() (n int)
func (*QueryClockContractsResponse) String ¶
func (m *QueryClockContractsResponse) String() string
func (*QueryClockContractsResponse) Unmarshal ¶
func (m *QueryClockContractsResponse) Unmarshal(dAtA []byte) error
func (*QueryClockContractsResponse) XXX_DiscardUnknown ¶
func (m *QueryClockContractsResponse) XXX_DiscardUnknown()
func (*QueryClockContractsResponse) XXX_Marshal ¶
func (m *QueryClockContractsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClockContractsResponse) XXX_Merge ¶
func (m *QueryClockContractsResponse) XXX_Merge(src proto.Message)
func (*QueryClockContractsResponse) XXX_Size ¶
func (m *QueryClockContractsResponse) XXX_Size() int
func (*QueryClockContractsResponse) XXX_Unmarshal ¶
func (m *QueryClockContractsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParams is the request type to get all module params.
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 *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
}
QueryClockContractsResponse is the response type for the Query/ClockContracts 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 { // ClockContracts ClockContracts(context.Context, *QueryClockContracts) (*QueryClockContractsResponse, error) // ClockContract ClockContract(context.Context, *QueryClockContract) (*QueryClockContractResponse, error) // Params 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) RegisterClockContract ¶
func (*UnimplementedMsgServer) RegisterClockContract(ctx context.Context, req *MsgRegisterClockContract) (*MsgRegisterClockContractResponse, error)
func (*UnimplementedMsgServer) UnjailClockContract ¶
func (*UnimplementedMsgServer) UnjailClockContract(ctx context.Context, req *MsgUnjailClockContract) (*MsgUnjailClockContractResponse, error)
func (*UnimplementedMsgServer) UnregisterClockContract ¶
func (*UnimplementedMsgServer) UnregisterClockContract(ctx context.Context, req *MsgUnregisterClockContract) (*MsgUnregisterClockContractResponse, 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) ClockContract ¶
func (*UnimplementedQueryServer) ClockContract(ctx context.Context, req *QueryClockContract) (*QueryClockContractResponse, error)
func (*UnimplementedQueryServer) ClockContracts ¶
func (*UnimplementedQueryServer) ClockContracts(ctx context.Context, req *QueryClockContracts) (*QueryClockContractsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)