Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetStoreKey(name, addr string) []byte
- 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 BankKeeper
- type ChainInfo
- func (*ChainInfo) Descriptor() ([]byte, []int)
- func (this *ChainInfo) Equal(that interface{}) bool
- func (m *ChainInfo) GetCanonicalIbcClient() string
- func (m *ChainInfo) GetChainName() string
- func (m *ChainInfo) GetExpiration() int64
- func (m *ChainInfo) GetFee() []types.Coin
- func (m *ChainInfo) GetOwner() string
- func (m *ChainInfo) GetSeed() []string
- func (m *ChainInfo) GetSourceCodeUrl() string
- func (m *ChainInfo) GetVersion() *VersionInfo
- func (m *ChainInfo) Marshal() (dAtA []byte, err error)
- func (m *ChainInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainInfo) ProtoMessage()
- func (m *ChainInfo) Reset()
- func (m *ChainInfo) Size() (n int)
- func (m *ChainInfo) String() string
- func (m *ChainInfo) Unmarshal(dAtA []byte) error
- func (c *ChainInfo) Update(newInfo ChainInfo)
- func (c ChainInfo) ValidateBasic() error
- func (m *ChainInfo) XXX_DiscardUnknown()
- func (m *ChainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainInfo) XXX_Merge(src proto.Message)
- func (m *ChainInfo) XXX_Size() int
- func (m *ChainInfo) XXX_Unmarshal(b []byte) error
- type DistributionKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetFee() []types.Coin
- func (m *GenesisState) GetInfos() []ChainInfo
- 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 MsgRegisterChainName
- func (*MsgRegisterChainName) Descriptor() ([]byte, []int)
- func (m *MsgRegisterChainName) GetCanonicalIbcClient() string
- func (m *MsgRegisterChainName) GetChainName() string
- func (m *MsgRegisterChainName) GetOwner() string
- func (m *MsgRegisterChainName) GetSeed() []string
- func (m *MsgRegisterChainName) GetSignBytes() []byte
- func (m *MsgRegisterChainName) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterChainName) GetSourceCodeUrl() string
- func (m *MsgRegisterChainName) GetVersion() *VersionInfo
- func (m *MsgRegisterChainName) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterChainName) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterChainName) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterChainName) ProtoMessage()
- func (m *MsgRegisterChainName) Reset()
- func (m *MsgRegisterChainName) Route() string
- func (m *MsgRegisterChainName) Size() (n int)
- func (m *MsgRegisterChainName) String() string
- func (m *MsgRegisterChainName) Type() string
- func (m *MsgRegisterChainName) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterChainName) ValidateBasic() error
- func (m *MsgRegisterChainName) XXX_DiscardUnknown()
- func (m *MsgRegisterChainName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterChainName) XXX_Merge(src proto.Message)
- func (m *MsgRegisterChainName) XXX_Size() int
- func (m *MsgRegisterChainName) XXX_Unmarshal(b []byte) error
- type MsgRegisterChainNameResponse
- func (*MsgRegisterChainNameResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterChainNameResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterChainNameResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterChainNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterChainNameResponse) ProtoMessage()
- func (m *MsgRegisterChainNameResponse) Reset()
- func (m *MsgRegisterChainNameResponse) Size() (n int)
- func (m *MsgRegisterChainNameResponse) String() string
- func (m *MsgRegisterChainNameResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterChainNameResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterChainNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterChainNameResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterChainNameResponse) XXX_Size() int
- func (m *MsgRegisterChainNameResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateChainInfo
- func (*MsgUpdateChainInfo) Descriptor() ([]byte, []int)
- func (m *MsgUpdateChainInfo) GetCanonicalIbcClient() string
- func (m *MsgUpdateChainInfo) GetChainName() string
- func (m *MsgUpdateChainInfo) GetOwner() string
- func (m *MsgUpdateChainInfo) GetSeed() []string
- func (m *MsgUpdateChainInfo) GetSignBytes() []byte
- func (m *MsgUpdateChainInfo) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateChainInfo) GetSourceCodeUrl() string
- func (m *MsgUpdateChainInfo) GetVersion() *VersionInfo
- func (m *MsgUpdateChainInfo) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateChainInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateChainInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateChainInfo) ProtoMessage()
- func (m *MsgUpdateChainInfo) Reset()
- func (m *MsgUpdateChainInfo) Route() string
- func (m *MsgUpdateChainInfo) Size() (n int)
- func (m *MsgUpdateChainInfo) String() string
- func (m *MsgUpdateChainInfo) Type() string
- func (m *MsgUpdateChainInfo) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateChainInfo) ValidateBasic() error
- func (m *MsgUpdateChainInfo) XXX_DiscardUnknown()
- func (m *MsgUpdateChainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateChainInfo) XXX_Merge(src proto.Message)
- func (m *MsgUpdateChainInfo) XXX_Size() int
- func (m *MsgUpdateChainInfo) XXX_Unmarshal(b []byte) error
- type MsgUpdateChainInfoResponse
- func (*MsgUpdateChainInfoResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateChainInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateChainInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateChainInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateChainInfoResponse) ProtoMessage()
- func (m *MsgUpdateChainInfoResponse) Reset()
- func (m *MsgUpdateChainInfoResponse) Size() (n int)
- func (m *MsgUpdateChainInfoResponse) String() string
- func (m *MsgUpdateChainInfoResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateChainInfoResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateChainInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateChainInfoResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateChainInfoResponse) XXX_Size() int
- func (m *MsgUpdateChainInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryChainInfoRequest
- func (*QueryChainInfoRequest) Descriptor() ([]byte, []int)
- func (this *QueryChainInfoRequest) Equal(that interface{}) bool
- func (m *QueryChainInfoRequest) GetChainName() string
- func (m *QueryChainInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryChainInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryChainInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryChainInfoRequest) ProtoMessage()
- func (m *QueryChainInfoRequest) Reset()
- func (m *QueryChainInfoRequest) Size() (n int)
- func (m *QueryChainInfoRequest) String() string
- func (m *QueryChainInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryChainInfoRequest) XXX_DiscardUnknown()
- func (m *QueryChainInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryChainInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryChainInfoRequest) XXX_Size() int
- func (m *QueryChainInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryChainInfoResponse
- func (*QueryChainInfoResponse) Descriptor() ([]byte, []int)
- func (this *QueryChainInfoResponse) Equal(that interface{}) bool
- func (m *QueryChainInfoResponse) GetInfo() ChainInfo
- func (m *QueryChainInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryChainInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryChainInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryChainInfoResponse) ProtoMessage()
- func (m *QueryChainInfoResponse) Reset()
- func (m *QueryChainInfoResponse) Size() (n int)
- func (m *QueryChainInfoResponse) String() string
- func (m *QueryChainInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryChainInfoResponse) XXX_DiscardUnknown()
- func (m *QueryChainInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryChainInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryChainInfoResponse) XXX_Size() int
- func (m *QueryChainInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type VersionInfo
- func (*VersionInfo) Descriptor() ([]byte, []int)
- func (this *VersionInfo) Equal(that interface{}) bool
- func (m *VersionInfo) GetGenesisHash() string
- func (m *VersionInfo) GetSourceCommitHash() string
- func (m *VersionInfo) GetVersion() int64
- func (m *VersionInfo) Marshal() (dAtA []byte, err error)
- func (m *VersionInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *VersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VersionInfo) ProtoMessage()
- func (m *VersionInfo) Reset()
- func (m *VersionInfo) Size() (n int)
- func (m *VersionInfo) String() string
- func (m *VersionInfo) Unmarshal(dAtA []byte) error
- func (m *VersionInfo) XXX_DiscardUnknown()
- func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VersionInfo) XXX_Merge(src proto.Message)
- func (m *VersionInfo) XXX_Size() int
- func (m *VersionInfo) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "cns" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_capability" )
const ( TypeMsgRegisterChainName = "register_name" TypeMsgUpdateChainInfo = "update_info" )
const DefaultDenom = sdk.DefaultBondDenom
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrInvalidLengthCns = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCns = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCns = fmt.Errorf("proto: unexpected end of group") )
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 ( // Keys for store prefixes CnsKey = []byte{0x01} // prefix for each key )
var DefaultFee = func(denom string) sdk.Coin { return sdk.NewCoin(denom, sdk.NewInt(100000)) }
var (
ErrChainAlreadyExists = sdkerrors.Register(ModuleName, 2, "chain name is already registered")
)
x/cns module sentinel errors
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetStoreKey ¶
TODO(sahith) Is using owner and addr for key an overkill??
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 BankKeeper ¶
type ChainInfo ¶
type ChainInfo struct { ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` Expiration int64 `protobuf:"varint,2,opt,name=expiration,proto3" json:"expiration,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` CanonicalIbcClient string `protobuf:"bytes,4,opt,name=canonical_ibc_client,json=canonicalIbcClient,proto3" json:"canonical_ibc_client,omitempty"` Seed []string `protobuf:"bytes,5,rep,name=seed,proto3" json:"seed,omitempty"` SourceCodeUrl string `protobuf:"bytes,6,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"` Version *VersionInfo `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"` Fee []types.Coin `protobuf:"bytes,8,rep,name=fee,proto3" json:"fee"` }
TODO(sahith): Add json and yaml flags
func (*ChainInfo) Descriptor ¶
func (*ChainInfo) GetCanonicalIbcClient ¶
func (*ChainInfo) GetChainName ¶
func (*ChainInfo) GetExpiration ¶
func (*ChainInfo) GetSourceCodeUrl ¶
func (*ChainInfo) GetVersion ¶
func (m *ChainInfo) GetVersion() *VersionInfo
func (*ChainInfo) MarshalToSizedBuffer ¶
func (*ChainInfo) ProtoMessage ¶
func (*ChainInfo) ProtoMessage()
func (ChainInfo) ValidateBasic ¶
func (*ChainInfo) XXX_DiscardUnknown ¶
func (m *ChainInfo) XXX_DiscardUnknown()
func (*ChainInfo) XXX_Marshal ¶
func (*ChainInfo) XXX_Unmarshal ¶
type DistributionKeeper ¶
type GenesisState ¶
type GenesisState struct { Fee []types.Coin `protobuf:"bytes,1,rep,name=fee,proto3" json:"fee"` Infos []ChainInfo `protobuf:"bytes,2,rep,name=infos,proto3" json:"infos"` }
GenesisState defines the capability module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetFee ¶
func (m *GenesisState) GetFee() []types.Coin
func (*GenesisState) GetInfos ¶
func (m *GenesisState) GetInfos() []ChainInfo
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 { RegisterChainName(ctx context.Context, in *MsgRegisterChainName, opts ...grpc.CallOption) (*MsgRegisterChainNameResponse, error) UpdateChainInfo(ctx context.Context, in *MsgUpdateChainInfo, opts ...grpc.CallOption) (*MsgUpdateChainInfoResponse, 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 MsgRegisterChainName ¶
type MsgRegisterChainName struct { ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Seed []string `protobuf:"bytes,3,rep,name=seed,proto3" json:"seed,omitempty"` SourceCodeUrl string `protobuf:"bytes,4,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"` CanonicalIbcClient string `protobuf:"bytes,5,opt,name=canonical_ibc_client,json=canonicalIbcClient,proto3" json:"canonical_ibc_client,omitempty"` Version *VersionInfo `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` }
func NewMsgRegisterChainName ¶
func NewMsgRegisterChainName(name, owner, seeds, sourceCodeUrl, ibcClient, commitHash, genesisHash string, version int64) *MsgRegisterChainName
func (*MsgRegisterChainName) Descriptor ¶
func (*MsgRegisterChainName) Descriptor() ([]byte, []int)
func (*MsgRegisterChainName) GetCanonicalIbcClient ¶
func (m *MsgRegisterChainName) GetCanonicalIbcClient() string
func (*MsgRegisterChainName) GetChainName ¶
func (m *MsgRegisterChainName) GetChainName() string
func (*MsgRegisterChainName) GetOwner ¶
func (m *MsgRegisterChainName) GetOwner() string
func (*MsgRegisterChainName) GetSeed ¶
func (m *MsgRegisterChainName) GetSeed() []string
func (*MsgRegisterChainName) GetSignBytes ¶
func (m *MsgRegisterChainName) GetSignBytes() []byte
func (*MsgRegisterChainName) GetSigners ¶
func (m *MsgRegisterChainName) GetSigners() []sdk.AccAddress
func (*MsgRegisterChainName) GetSourceCodeUrl ¶
func (m *MsgRegisterChainName) GetSourceCodeUrl() string
func (*MsgRegisterChainName) GetVersion ¶
func (m *MsgRegisterChainName) GetVersion() *VersionInfo
func (*MsgRegisterChainName) Marshal ¶
func (m *MsgRegisterChainName) Marshal() (dAtA []byte, err error)
func (*MsgRegisterChainName) MarshalTo ¶
func (m *MsgRegisterChainName) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterChainName) MarshalToSizedBuffer ¶
func (m *MsgRegisterChainName) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterChainName) ProtoMessage ¶
func (*MsgRegisterChainName) ProtoMessage()
func (*MsgRegisterChainName) Reset ¶
func (m *MsgRegisterChainName) Reset()
func (*MsgRegisterChainName) Route ¶
func (m *MsgRegisterChainName) Route() string
func (*MsgRegisterChainName) Size ¶
func (m *MsgRegisterChainName) Size() (n int)
func (*MsgRegisterChainName) String ¶
func (m *MsgRegisterChainName) String() string
func (*MsgRegisterChainName) Type ¶
func (m *MsgRegisterChainName) Type() string
func (*MsgRegisterChainName) Unmarshal ¶
func (m *MsgRegisterChainName) Unmarshal(dAtA []byte) error
func (*MsgRegisterChainName) ValidateBasic ¶
func (m *MsgRegisterChainName) ValidateBasic() error
func (*MsgRegisterChainName) XXX_DiscardUnknown ¶
func (m *MsgRegisterChainName) XXX_DiscardUnknown()
func (*MsgRegisterChainName) XXX_Marshal ¶
func (m *MsgRegisterChainName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterChainName) XXX_Merge ¶
func (m *MsgRegisterChainName) XXX_Merge(src proto.Message)
func (*MsgRegisterChainName) XXX_Size ¶
func (m *MsgRegisterChainName) XXX_Size() int
func (*MsgRegisterChainName) XXX_Unmarshal ¶
func (m *MsgRegisterChainName) XXX_Unmarshal(b []byte) error
type MsgRegisterChainNameResponse ¶
type MsgRegisterChainNameResponse struct { }
func (*MsgRegisterChainNameResponse) Descriptor ¶
func (*MsgRegisterChainNameResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterChainNameResponse) Marshal ¶
func (m *MsgRegisterChainNameResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterChainNameResponse) MarshalTo ¶
func (m *MsgRegisterChainNameResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterChainNameResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterChainNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterChainNameResponse) ProtoMessage ¶
func (*MsgRegisterChainNameResponse) ProtoMessage()
func (*MsgRegisterChainNameResponse) Reset ¶
func (m *MsgRegisterChainNameResponse) Reset()
func (*MsgRegisterChainNameResponse) Size ¶
func (m *MsgRegisterChainNameResponse) Size() (n int)
func (*MsgRegisterChainNameResponse) String ¶
func (m *MsgRegisterChainNameResponse) String() string
func (*MsgRegisterChainNameResponse) Unmarshal ¶
func (m *MsgRegisterChainNameResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterChainNameResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterChainNameResponse) XXX_DiscardUnknown()
func (*MsgRegisterChainNameResponse) XXX_Marshal ¶
func (m *MsgRegisterChainNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterChainNameResponse) XXX_Merge ¶
func (m *MsgRegisterChainNameResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterChainNameResponse) XXX_Size ¶
func (m *MsgRegisterChainNameResponse) XXX_Size() int
func (*MsgRegisterChainNameResponse) XXX_Unmarshal ¶
func (m *MsgRegisterChainNameResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { RegisterChainName(context.Context, *MsgRegisterChainName) (*MsgRegisterChainNameResponse, error) UpdateChainInfo(context.Context, *MsgUpdateChainInfo) (*MsgUpdateChainInfoResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateChainInfo ¶
type MsgUpdateChainInfo struct { ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Seed []string `protobuf:"bytes,3,rep,name=seed,proto3" json:"seed,omitempty"` SourceCodeUrl string `protobuf:"bytes,4,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"` CanonicalIbcClient string `protobuf:"bytes,5,opt,name=canonical_ibc_client,json=canonicalIbcClient,proto3" json:"canonical_ibc_client,omitempty"` Version *VersionInfo `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` }
func NewMsgUpdateChainInfo ¶
func NewMsgUpdateChainInfo(name, owner, seeds, sourceCodeUrl, ibcClient, commitHash, genesisHash string, version int64) *MsgUpdateChainInfo
func (*MsgUpdateChainInfo) Descriptor ¶
func (*MsgUpdateChainInfo) Descriptor() ([]byte, []int)
func (*MsgUpdateChainInfo) GetCanonicalIbcClient ¶
func (m *MsgUpdateChainInfo) GetCanonicalIbcClient() string
func (*MsgUpdateChainInfo) GetChainName ¶
func (m *MsgUpdateChainInfo) GetChainName() string
func (*MsgUpdateChainInfo) GetOwner ¶
func (m *MsgUpdateChainInfo) GetOwner() string
func (*MsgUpdateChainInfo) GetSeed ¶
func (m *MsgUpdateChainInfo) GetSeed() []string
func (*MsgUpdateChainInfo) GetSignBytes ¶
func (m *MsgUpdateChainInfo) GetSignBytes() []byte
func (*MsgUpdateChainInfo) GetSigners ¶
func (m *MsgUpdateChainInfo) GetSigners() []sdk.AccAddress
func (*MsgUpdateChainInfo) GetSourceCodeUrl ¶
func (m *MsgUpdateChainInfo) GetSourceCodeUrl() string
func (*MsgUpdateChainInfo) GetVersion ¶
func (m *MsgUpdateChainInfo) GetVersion() *VersionInfo
func (*MsgUpdateChainInfo) Marshal ¶
func (m *MsgUpdateChainInfo) Marshal() (dAtA []byte, err error)
func (*MsgUpdateChainInfo) MarshalTo ¶
func (m *MsgUpdateChainInfo) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateChainInfo) MarshalToSizedBuffer ¶
func (m *MsgUpdateChainInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateChainInfo) ProtoMessage ¶
func (*MsgUpdateChainInfo) ProtoMessage()
func (*MsgUpdateChainInfo) Reset ¶
func (m *MsgUpdateChainInfo) Reset()
func (*MsgUpdateChainInfo) Route ¶
func (m *MsgUpdateChainInfo) Route() string
func (*MsgUpdateChainInfo) Size ¶
func (m *MsgUpdateChainInfo) Size() (n int)
func (*MsgUpdateChainInfo) String ¶
func (m *MsgUpdateChainInfo) String() string
func (*MsgUpdateChainInfo) Type ¶
func (m *MsgUpdateChainInfo) Type() string
func (*MsgUpdateChainInfo) Unmarshal ¶
func (m *MsgUpdateChainInfo) Unmarshal(dAtA []byte) error
func (*MsgUpdateChainInfo) ValidateBasic ¶
func (m *MsgUpdateChainInfo) ValidateBasic() error
func (*MsgUpdateChainInfo) XXX_DiscardUnknown ¶
func (m *MsgUpdateChainInfo) XXX_DiscardUnknown()
func (*MsgUpdateChainInfo) XXX_Marshal ¶
func (m *MsgUpdateChainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateChainInfo) XXX_Merge ¶
func (m *MsgUpdateChainInfo) XXX_Merge(src proto.Message)
func (*MsgUpdateChainInfo) XXX_Size ¶
func (m *MsgUpdateChainInfo) XXX_Size() int
func (*MsgUpdateChainInfo) XXX_Unmarshal ¶
func (m *MsgUpdateChainInfo) XXX_Unmarshal(b []byte) error
type MsgUpdateChainInfoResponse ¶
type MsgUpdateChainInfoResponse struct { }
func (*MsgUpdateChainInfoResponse) Descriptor ¶
func (*MsgUpdateChainInfoResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateChainInfoResponse) Marshal ¶
func (m *MsgUpdateChainInfoResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateChainInfoResponse) MarshalTo ¶
func (m *MsgUpdateChainInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateChainInfoResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateChainInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateChainInfoResponse) ProtoMessage ¶
func (*MsgUpdateChainInfoResponse) ProtoMessage()
func (*MsgUpdateChainInfoResponse) Reset ¶
func (m *MsgUpdateChainInfoResponse) Reset()
func (*MsgUpdateChainInfoResponse) Size ¶
func (m *MsgUpdateChainInfoResponse) Size() (n int)
func (*MsgUpdateChainInfoResponse) String ¶
func (m *MsgUpdateChainInfoResponse) String() string
func (*MsgUpdateChainInfoResponse) Unmarshal ¶
func (m *MsgUpdateChainInfoResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateChainInfoResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateChainInfoResponse) XXX_DiscardUnknown()
func (*MsgUpdateChainInfoResponse) XXX_Marshal ¶
func (m *MsgUpdateChainInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateChainInfoResponse) XXX_Merge ¶
func (m *MsgUpdateChainInfoResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateChainInfoResponse) XXX_Size ¶
func (m *MsgUpdateChainInfoResponse) XXX_Size() int
func (*MsgUpdateChainInfoResponse) XXX_Unmarshal ¶
func (m *MsgUpdateChainInfoResponse) XXX_Unmarshal(b []byte) error
type QueryChainInfoRequest ¶
type QueryChainInfoRequest struct {
ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
}
func (*QueryChainInfoRequest) Descriptor ¶
func (*QueryChainInfoRequest) Descriptor() ([]byte, []int)
func (*QueryChainInfoRequest) Equal ¶
func (this *QueryChainInfoRequest) Equal(that interface{}) bool
func (*QueryChainInfoRequest) GetChainName ¶
func (m *QueryChainInfoRequest) GetChainName() string
func (*QueryChainInfoRequest) Marshal ¶
func (m *QueryChainInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryChainInfoRequest) MarshalTo ¶
func (m *QueryChainInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryChainInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryChainInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryChainInfoRequest) ProtoMessage ¶
func (*QueryChainInfoRequest) ProtoMessage()
func (*QueryChainInfoRequest) Reset ¶
func (m *QueryChainInfoRequest) Reset()
func (*QueryChainInfoRequest) Size ¶
func (m *QueryChainInfoRequest) Size() (n int)
func (*QueryChainInfoRequest) String ¶
func (m *QueryChainInfoRequest) String() string
func (*QueryChainInfoRequest) Unmarshal ¶
func (m *QueryChainInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryChainInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryChainInfoRequest) XXX_DiscardUnknown()
func (*QueryChainInfoRequest) XXX_Marshal ¶
func (m *QueryChainInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryChainInfoRequest) XXX_Merge ¶
func (m *QueryChainInfoRequest) XXX_Merge(src proto.Message)
func (*QueryChainInfoRequest) XXX_Size ¶
func (m *QueryChainInfoRequest) XXX_Size() int
func (*QueryChainInfoRequest) XXX_Unmarshal ¶
func (m *QueryChainInfoRequest) XXX_Unmarshal(b []byte) error
type QueryChainInfoResponse ¶
type QueryChainInfoResponse struct {
Info ChainInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
}
func (*QueryChainInfoResponse) Descriptor ¶
func (*QueryChainInfoResponse) Descriptor() ([]byte, []int)
func (*QueryChainInfoResponse) Equal ¶
func (this *QueryChainInfoResponse) Equal(that interface{}) bool
func (*QueryChainInfoResponse) GetInfo ¶
func (m *QueryChainInfoResponse) GetInfo() ChainInfo
func (*QueryChainInfoResponse) Marshal ¶
func (m *QueryChainInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryChainInfoResponse) MarshalTo ¶
func (m *QueryChainInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryChainInfoResponse) MarshalToSizedBuffer ¶
func (m *QueryChainInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryChainInfoResponse) ProtoMessage ¶
func (*QueryChainInfoResponse) ProtoMessage()
func (*QueryChainInfoResponse) Reset ¶
func (m *QueryChainInfoResponse) Reset()
func (*QueryChainInfoResponse) Size ¶
func (m *QueryChainInfoResponse) Size() (n int)
func (*QueryChainInfoResponse) String ¶
func (m *QueryChainInfoResponse) String() string
func (*QueryChainInfoResponse) Unmarshal ¶
func (m *QueryChainInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryChainInfoResponse) XXX_DiscardUnknown ¶
func (m *QueryChainInfoResponse) XXX_DiscardUnknown()
func (*QueryChainInfoResponse) XXX_Marshal ¶
func (m *QueryChainInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryChainInfoResponse) XXX_Merge ¶
func (m *QueryChainInfoResponse) XXX_Merge(src proto.Message)
func (*QueryChainInfoResponse) XXX_Size ¶
func (m *QueryChainInfoResponse) XXX_Size() int
func (*QueryChainInfoResponse) XXX_Unmarshal ¶
func (m *QueryChainInfoResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
QueryChainInfo(ctx context.Context, in *QueryChainInfoRequest, opts ...grpc.CallOption) (*QueryChainInfoResponse, 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 QueryServer ¶
type QueryServer interface {
QueryChainInfo(context.Context, *QueryChainInfoRequest) (*QueryChainInfoResponse, 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) RegisterChainName ¶
func (*UnimplementedMsgServer) RegisterChainName(ctx context.Context, req *MsgRegisterChainName) (*MsgRegisterChainNameResponse, error)
func (*UnimplementedMsgServer) UpdateChainInfo ¶
func (*UnimplementedMsgServer) UpdateChainInfo(ctx context.Context, req *MsgUpdateChainInfo) (*MsgUpdateChainInfoResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) QueryChainInfo ¶
func (*UnimplementedQueryServer) QueryChainInfo(ctx context.Context, req *QueryChainInfoRequest) (*QueryChainInfoResponse, error)
type VersionInfo ¶
type VersionInfo struct { Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` SourceCommitHash string `protobuf:"bytes,2,opt,name=source_commit_hash,json=sourceCommitHash,proto3" json:"source_commit_hash,omitempty"` GenesisHash string `protobuf:"bytes,3,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty"` }
func (*VersionInfo) Descriptor ¶
func (*VersionInfo) Descriptor() ([]byte, []int)
func (*VersionInfo) Equal ¶
func (this *VersionInfo) Equal(that interface{}) bool
func (*VersionInfo) GetGenesisHash ¶
func (m *VersionInfo) GetGenesisHash() string
func (*VersionInfo) GetSourceCommitHash ¶
func (m *VersionInfo) GetSourceCommitHash() string
func (*VersionInfo) GetVersion ¶
func (m *VersionInfo) GetVersion() int64
func (*VersionInfo) Marshal ¶
func (m *VersionInfo) Marshal() (dAtA []byte, err error)
func (*VersionInfo) MarshalToSizedBuffer ¶
func (m *VersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VersionInfo) ProtoMessage ¶
func (*VersionInfo) ProtoMessage()
func (*VersionInfo) Reset ¶
func (m *VersionInfo) Reset()
func (*VersionInfo) Size ¶
func (m *VersionInfo) Size() (n int)
func (*VersionInfo) String ¶
func (m *VersionInfo) String() string
func (*VersionInfo) Unmarshal ¶
func (m *VersionInfo) Unmarshal(dAtA []byte) error
func (*VersionInfo) XXX_DiscardUnknown ¶
func (m *VersionInfo) XXX_DiscardUnknown()
func (*VersionInfo) XXX_Marshal ¶
func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionInfo) XXX_Merge ¶
func (m *VersionInfo) XXX_Merge(src proto.Message)
func (*VersionInfo) XXX_Size ¶
func (m *VersionInfo) XXX_Size() int
func (*VersionInfo) XXX_Unmarshal ¶
func (m *VersionInfo) XXX_Unmarshal(b []byte) error