Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type Bitcannaid
- func (*Bitcannaid) Descriptor() ([]byte, []int)
- func (m *Bitcannaid) GetAddress() string
- func (m *Bitcannaid) GetBcnaid() string
- func (m *Bitcannaid) GetCreator() string
- func (m *Bitcannaid) GetId() uint64
- func (m *Bitcannaid) Marshal() (dAtA []byte, err error)
- func (m *Bitcannaid) MarshalTo(dAtA []byte) (int, error)
- func (m *Bitcannaid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bitcannaid) ProtoMessage()
- func (m *Bitcannaid) Reset()
- func (m *Bitcannaid) Size() (n int)
- func (m *Bitcannaid) String() string
- func (m *Bitcannaid) Unmarshal(dAtA []byte) error
- func (m *Bitcannaid) XXX_DiscardUnknown()
- func (m *Bitcannaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bitcannaid) XXX_Merge(src proto.Message)
- func (m *Bitcannaid) XXX_Size() int
- func (m *Bitcannaid) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBitcannaidCount() uint64
- func (m *GenesisState) GetBitcannaidList() []Bitcannaid
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSupplychainCount() uint64
- func (m *GenesisState) GetSupplychainList() []Supplychain
- 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 MsgCreateBitcannaid
- func (*MsgCreateBitcannaid) Descriptor() ([]byte, []int)
- func (m *MsgCreateBitcannaid) GetAddress() string
- func (m *MsgCreateBitcannaid) GetBcnaid() string
- func (m *MsgCreateBitcannaid) GetCreator() string
- func (msg *MsgCreateBitcannaid) GetSignBytes() []byte
- func (msg *MsgCreateBitcannaid) GetSigners() []sdk.AccAddress
- func (m *MsgCreateBitcannaid) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBitcannaid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBitcannaid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBitcannaid) ProtoMessage()
- func (m *MsgCreateBitcannaid) Reset()
- func (msg *MsgCreateBitcannaid) Route() string
- func (m *MsgCreateBitcannaid) Size() (n int)
- func (m *MsgCreateBitcannaid) String() string
- func (msg *MsgCreateBitcannaid) Type() string
- func (m *MsgCreateBitcannaid) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateBitcannaid) ValidateBasic() error
- func (m *MsgCreateBitcannaid) XXX_DiscardUnknown()
- func (m *MsgCreateBitcannaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBitcannaid) XXX_Merge(src proto.Message)
- func (m *MsgCreateBitcannaid) XXX_Size() int
- func (m *MsgCreateBitcannaid) XXX_Unmarshal(b []byte) error
- type MsgCreateBitcannaidResponse
- func (*MsgCreateBitcannaidResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateBitcannaidResponse) GetId() uint64
- func (m *MsgCreateBitcannaidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBitcannaidResponse) ProtoMessage()
- func (m *MsgCreateBitcannaidResponse) Reset()
- func (m *MsgCreateBitcannaidResponse) Size() (n int)
- func (m *MsgCreateBitcannaidResponse) String() string
- func (m *MsgCreateBitcannaidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateBitcannaidResponse) XXX_DiscardUnknown()
- func (m *MsgCreateBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBitcannaidResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateBitcannaidResponse) XXX_Size() int
- func (m *MsgCreateBitcannaidResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateSupplychain
- func (*MsgCreateSupplychain) Descriptor() ([]byte, []int)
- func (m *MsgCreateSupplychain) GetCreator() string
- func (m *MsgCreateSupplychain) GetInfo() string
- func (m *MsgCreateSupplychain) GetProduct() string
- func (msg *MsgCreateSupplychain) GetSignBytes() []byte
- func (msg *MsgCreateSupplychain) GetSigners() []sdk.AccAddress
- func (m *MsgCreateSupplychain) GetSupplyextra() string
- func (m *MsgCreateSupplychain) GetSupplyinfo() string
- func (m *MsgCreateSupplychain) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSupplychain) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSupplychain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSupplychain) ProtoMessage()
- func (m *MsgCreateSupplychain) Reset()
- func (msg *MsgCreateSupplychain) Route() string
- func (m *MsgCreateSupplychain) Size() (n int)
- func (m *MsgCreateSupplychain) String() string
- func (msg *MsgCreateSupplychain) Type() string
- func (m *MsgCreateSupplychain) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateSupplychain) ValidateBasic() error
- func (m *MsgCreateSupplychain) XXX_DiscardUnknown()
- func (m *MsgCreateSupplychain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSupplychain) XXX_Merge(src proto.Message)
- func (m *MsgCreateSupplychain) XXX_Size() int
- func (m *MsgCreateSupplychain) XXX_Unmarshal(b []byte) error
- type MsgCreateSupplychainResponse
- func (*MsgCreateSupplychainResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateSupplychainResponse) GetId() uint64
- func (m *MsgCreateSupplychainResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSupplychainResponse) ProtoMessage()
- func (m *MsgCreateSupplychainResponse) Reset()
- func (m *MsgCreateSupplychainResponse) Size() (n int)
- func (m *MsgCreateSupplychainResponse) String() string
- func (m *MsgCreateSupplychainResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateSupplychainResponse) XXX_DiscardUnknown()
- func (m *MsgCreateSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSupplychainResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateSupplychainResponse) XXX_Size() int
- func (m *MsgCreateSupplychainResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteBitcannaid
- func (*MsgDeleteBitcannaid) Descriptor() ([]byte, []int)
- func (m *MsgDeleteBitcannaid) GetCreator() string
- func (m *MsgDeleteBitcannaid) GetId() uint64
- func (msg *MsgDeleteBitcannaid) GetSignBytes() []byte
- func (msg *MsgDeleteBitcannaid) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteBitcannaid) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteBitcannaid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteBitcannaid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteBitcannaid) ProtoMessage()
- func (m *MsgDeleteBitcannaid) Reset()
- func (msg *MsgDeleteBitcannaid) Route() string
- func (m *MsgDeleteBitcannaid) Size() (n int)
- func (m *MsgDeleteBitcannaid) String() string
- func (msg *MsgDeleteBitcannaid) Type() string
- func (m *MsgDeleteBitcannaid) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteBitcannaid) ValidateBasic() error
- func (m *MsgDeleteBitcannaid) XXX_DiscardUnknown()
- func (m *MsgDeleteBitcannaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteBitcannaid) XXX_Merge(src proto.Message)
- func (m *MsgDeleteBitcannaid) XXX_Size() int
- func (m *MsgDeleteBitcannaid) XXX_Unmarshal(b []byte) error
- type MsgDeleteBitcannaidResponse
- func (*MsgDeleteBitcannaidResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteBitcannaidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteBitcannaidResponse) ProtoMessage()
- func (m *MsgDeleteBitcannaidResponse) Reset()
- func (m *MsgDeleteBitcannaidResponse) Size() (n int)
- func (m *MsgDeleteBitcannaidResponse) String() string
- func (m *MsgDeleteBitcannaidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteBitcannaidResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteBitcannaidResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteBitcannaidResponse) XXX_Size() int
- func (m *MsgDeleteBitcannaidResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteSupplychain
- func (*MsgDeleteSupplychain) Descriptor() ([]byte, []int)
- func (m *MsgDeleteSupplychain) GetCreator() string
- func (m *MsgDeleteSupplychain) GetId() uint64
- func (msg *MsgDeleteSupplychain) GetSignBytes() []byte
- func (msg *MsgDeleteSupplychain) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteSupplychain) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteSupplychain) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteSupplychain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteSupplychain) ProtoMessage()
- func (m *MsgDeleteSupplychain) Reset()
- func (msg *MsgDeleteSupplychain) Route() string
- func (m *MsgDeleteSupplychain) Size() (n int)
- func (m *MsgDeleteSupplychain) String() string
- func (msg *MsgDeleteSupplychain) Type() string
- func (m *MsgDeleteSupplychain) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteSupplychain) ValidateBasic() error
- func (m *MsgDeleteSupplychain) XXX_DiscardUnknown()
- func (m *MsgDeleteSupplychain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteSupplychain) XXX_Merge(src proto.Message)
- func (m *MsgDeleteSupplychain) XXX_Size() int
- func (m *MsgDeleteSupplychain) XXX_Unmarshal(b []byte) error
- type MsgDeleteSupplychainResponse
- func (*MsgDeleteSupplychainResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteSupplychainResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteSupplychainResponse) ProtoMessage()
- func (m *MsgDeleteSupplychainResponse) Reset()
- func (m *MsgDeleteSupplychainResponse) Size() (n int)
- func (m *MsgDeleteSupplychainResponse) String() string
- func (m *MsgDeleteSupplychainResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteSupplychainResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteSupplychainResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteSupplychainResponse) XXX_Size() int
- func (m *MsgDeleteSupplychainResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateBitcannaid
- func (*MsgUpdateBitcannaid) Descriptor() ([]byte, []int)
- func (m *MsgUpdateBitcannaid) GetAddress() string
- func (m *MsgUpdateBitcannaid) GetBcnaid() string
- func (m *MsgUpdateBitcannaid) GetCreator() string
- func (m *MsgUpdateBitcannaid) GetId() uint64
- func (msg *MsgUpdateBitcannaid) GetSignBytes() []byte
- func (msg *MsgUpdateBitcannaid) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateBitcannaid) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateBitcannaid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateBitcannaid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateBitcannaid) ProtoMessage()
- func (m *MsgUpdateBitcannaid) Reset()
- func (msg *MsgUpdateBitcannaid) Route() string
- func (m *MsgUpdateBitcannaid) Size() (n int)
- func (m *MsgUpdateBitcannaid) String() string
- func (msg *MsgUpdateBitcannaid) Type() string
- func (m *MsgUpdateBitcannaid) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateBitcannaid) ValidateBasic() error
- func (m *MsgUpdateBitcannaid) XXX_DiscardUnknown()
- func (m *MsgUpdateBitcannaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateBitcannaid) XXX_Merge(src proto.Message)
- func (m *MsgUpdateBitcannaid) XXX_Size() int
- func (m *MsgUpdateBitcannaid) XXX_Unmarshal(b []byte) error
- type MsgUpdateBitcannaidResponse
- func (*MsgUpdateBitcannaidResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateBitcannaidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateBitcannaidResponse) ProtoMessage()
- func (m *MsgUpdateBitcannaidResponse) Reset()
- func (m *MsgUpdateBitcannaidResponse) Size() (n int)
- func (m *MsgUpdateBitcannaidResponse) String() string
- func (m *MsgUpdateBitcannaidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateBitcannaidResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateBitcannaidResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateBitcannaidResponse) XXX_Size() int
- func (m *MsgUpdateBitcannaidResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateSupplychain
- func (*MsgUpdateSupplychain) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSupplychain) GetCreator() string
- func (m *MsgUpdateSupplychain) GetId() uint64
- func (m *MsgUpdateSupplychain) GetInfo() string
- func (m *MsgUpdateSupplychain) GetProduct() string
- func (msg *MsgUpdateSupplychain) GetSignBytes() []byte
- func (msg *MsgUpdateSupplychain) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateSupplychain) GetSupplyextra() string
- func (m *MsgUpdateSupplychain) GetSupplyinfo() string
- func (m *MsgUpdateSupplychain) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSupplychain) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSupplychain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSupplychain) ProtoMessage()
- func (m *MsgUpdateSupplychain) Reset()
- func (msg *MsgUpdateSupplychain) Route() string
- func (m *MsgUpdateSupplychain) Size() (n int)
- func (m *MsgUpdateSupplychain) String() string
- func (msg *MsgUpdateSupplychain) Type() string
- func (m *MsgUpdateSupplychain) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateSupplychain) ValidateBasic() error
- func (m *MsgUpdateSupplychain) XXX_DiscardUnknown()
- func (m *MsgUpdateSupplychain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSupplychain) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSupplychain) XXX_Size() int
- func (m *MsgUpdateSupplychain) XXX_Unmarshal(b []byte) error
- type MsgUpdateSupplychainResponse
- func (*MsgUpdateSupplychainResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSupplychainResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSupplychainResponse) ProtoMessage()
- func (m *MsgUpdateSupplychainResponse) Reset()
- func (m *MsgUpdateSupplychainResponse) Size() (n int)
- func (m *MsgUpdateSupplychainResponse) String() string
- func (m *MsgUpdateSupplychainResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSupplychainResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSupplychainResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSupplychainResponse) XXX_Size() int
- func (m *MsgUpdateSupplychainResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllBitcannaidRequest
- func (*QueryAllBitcannaidRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllBitcannaidRequest) GetPagination() *query.PageRequest
- func (m *QueryAllBitcannaidRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBitcannaidRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBitcannaidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBitcannaidRequest) ProtoMessage()
- func (m *QueryAllBitcannaidRequest) Reset()
- func (m *QueryAllBitcannaidRequest) Size() (n int)
- func (m *QueryAllBitcannaidRequest) String() string
- func (m *QueryAllBitcannaidRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllBitcannaidRequest) XXX_DiscardUnknown()
- func (m *QueryAllBitcannaidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBitcannaidRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllBitcannaidRequest) XXX_Size() int
- func (m *QueryAllBitcannaidRequest) XXX_Unmarshal(b []byte) error
- type QueryAllBitcannaidResponse
- func (*QueryAllBitcannaidResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllBitcannaidResponse) GetBitcannaid() []Bitcannaid
- func (m *QueryAllBitcannaidResponse) GetPagination() *query.PageResponse
- func (m *QueryAllBitcannaidResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBitcannaidResponse) ProtoMessage()
- func (m *QueryAllBitcannaidResponse) Reset()
- func (m *QueryAllBitcannaidResponse) Size() (n int)
- func (m *QueryAllBitcannaidResponse) String() string
- func (m *QueryAllBitcannaidResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllBitcannaidResponse) XXX_DiscardUnknown()
- func (m *QueryAllBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBitcannaidResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllBitcannaidResponse) XXX_Size() int
- func (m *QueryAllBitcannaidResponse) XXX_Unmarshal(b []byte) error
- type QueryAllSupplychainRequest
- func (*QueryAllSupplychainRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllSupplychainRequest) GetPagination() *query.PageRequest
- func (m *QueryAllSupplychainRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllSupplychainRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllSupplychainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllSupplychainRequest) ProtoMessage()
- func (m *QueryAllSupplychainRequest) Reset()
- func (m *QueryAllSupplychainRequest) Size() (n int)
- func (m *QueryAllSupplychainRequest) String() string
- func (m *QueryAllSupplychainRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllSupplychainRequest) XXX_DiscardUnknown()
- func (m *QueryAllSupplychainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllSupplychainRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllSupplychainRequest) XXX_Size() int
- func (m *QueryAllSupplychainRequest) XXX_Unmarshal(b []byte) error
- type QueryAllSupplychainResponse
- func (*QueryAllSupplychainResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllSupplychainResponse) GetPagination() *query.PageResponse
- func (m *QueryAllSupplychainResponse) GetSupplychain() []Supplychain
- func (m *QueryAllSupplychainResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllSupplychainResponse) ProtoMessage()
- func (m *QueryAllSupplychainResponse) Reset()
- func (m *QueryAllSupplychainResponse) Size() (n int)
- func (m *QueryAllSupplychainResponse) String() string
- func (m *QueryAllSupplychainResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllSupplychainResponse) XXX_DiscardUnknown()
- func (m *QueryAllSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllSupplychainResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllSupplychainResponse) XXX_Size() int
- func (m *QueryAllSupplychainResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetBitcannaidRequest
- func (*QueryGetBitcannaidRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetBitcannaidRequest) GetId() uint64
- func (m *QueryGetBitcannaidRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBitcannaidRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBitcannaidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBitcannaidRequest) ProtoMessage()
- func (m *QueryGetBitcannaidRequest) Reset()
- func (m *QueryGetBitcannaidRequest) Size() (n int)
- func (m *QueryGetBitcannaidRequest) String() string
- func (m *QueryGetBitcannaidRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetBitcannaidRequest) XXX_DiscardUnknown()
- func (m *QueryGetBitcannaidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBitcannaidRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetBitcannaidRequest) XXX_Size() int
- func (m *QueryGetBitcannaidRequest) XXX_Unmarshal(b []byte) error
- type QueryGetBitcannaidResponse
- func (*QueryGetBitcannaidResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetBitcannaidResponse) GetBitcannaid() Bitcannaid
- func (m *QueryGetBitcannaidResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBitcannaidResponse) ProtoMessage()
- func (m *QueryGetBitcannaidResponse) Reset()
- func (m *QueryGetBitcannaidResponse) Size() (n int)
- func (m *QueryGetBitcannaidResponse) String() string
- func (m *QueryGetBitcannaidResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetBitcannaidResponse) XXX_DiscardUnknown()
- func (m *QueryGetBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBitcannaidResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetBitcannaidResponse) XXX_Size() int
- func (m *QueryGetBitcannaidResponse) XXX_Unmarshal(b []byte) error
- type QueryGetSupplychainRequest
- func (*QueryGetSupplychainRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetSupplychainRequest) GetId() uint64
- func (m *QueryGetSupplychainRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSupplychainRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSupplychainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSupplychainRequest) ProtoMessage()
- func (m *QueryGetSupplychainRequest) Reset()
- func (m *QueryGetSupplychainRequest) Size() (n int)
- func (m *QueryGetSupplychainRequest) String() string
- func (m *QueryGetSupplychainRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetSupplychainRequest) XXX_DiscardUnknown()
- func (m *QueryGetSupplychainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSupplychainRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetSupplychainRequest) XXX_Size() int
- func (m *QueryGetSupplychainRequest) XXX_Unmarshal(b []byte) error
- type QueryGetSupplychainResponse
- func (*QueryGetSupplychainResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetSupplychainResponse) GetSupplychain() Supplychain
- func (m *QueryGetSupplychainResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSupplychainResponse) ProtoMessage()
- func (m *QueryGetSupplychainResponse) Reset()
- func (m *QueryGetSupplychainResponse) Size() (n int)
- func (m *QueryGetSupplychainResponse) String() string
- func (m *QueryGetSupplychainResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetSupplychainResponse) XXX_DiscardUnknown()
- func (m *QueryGetSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSupplychainResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetSupplychainResponse) XXX_Size() int
- func (m *QueryGetSupplychainResponse) 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 Supplychain
- func (*Supplychain) Descriptor() ([]byte, []int)
- func (m *Supplychain) GetCreator() string
- func (m *Supplychain) GetId() uint64
- func (m *Supplychain) GetInfo() string
- func (m *Supplychain) GetProduct() string
- func (m *Supplychain) GetSupplyextra() string
- func (m *Supplychain) GetSupplyinfo() string
- func (m *Supplychain) Marshal() (dAtA []byte, err error)
- func (m *Supplychain) MarshalTo(dAtA []byte) (int, error)
- func (m *Supplychain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Supplychain) ProtoMessage()
- func (m *Supplychain) Reset()
- func (m *Supplychain) Size() (n int)
- func (m *Supplychain) String() string
- func (m *Supplychain) Unmarshal(dAtA []byte) error
- func (m *Supplychain) XXX_DiscardUnknown()
- func (m *Supplychain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Supplychain) XXX_Merge(src proto.Message)
- func (m *Supplychain) XXX_Size() int
- func (m *Supplychain) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateBitcannaid(ctx context.Context, req *MsgCreateBitcannaid) (*MsgCreateBitcannaidResponse, error)
- func (*UnimplementedMsgServer) CreateSupplychain(ctx context.Context, req *MsgCreateSupplychain) (*MsgCreateSupplychainResponse, error)
- func (*UnimplementedMsgServer) DeleteBitcannaid(ctx context.Context, req *MsgDeleteBitcannaid) (*MsgDeleteBitcannaidResponse, error)
- func (*UnimplementedMsgServer) DeleteSupplychain(ctx context.Context, req *MsgDeleteSupplychain) (*MsgDeleteSupplychainResponse, error)
- func (*UnimplementedMsgServer) UpdateBitcannaid(ctx context.Context, req *MsgUpdateBitcannaid) (*MsgUpdateBitcannaidResponse, error)
- func (*UnimplementedMsgServer) UpdateSupplychain(ctx context.Context, req *MsgUpdateSupplychain) (*MsgUpdateSupplychainResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Bitcannaid(ctx context.Context, req *QueryGetBitcannaidRequest) (*QueryGetBitcannaidResponse, error)
- func (*UnimplementedQueryServer) BitcannaidAll(ctx context.Context, req *QueryAllBitcannaidRequest) (*QueryAllBitcannaidResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Supplychain(ctx context.Context, req *QueryGetSupplychainRequest) (*QueryGetSupplychainResponse, error)
- func (*UnimplementedQueryServer) SupplychainAll(ctx context.Context, req *QueryAllSupplychainRequest) (*QueryAllSupplychainResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "bcna" // 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_bcna" )
const ( BitcannaidKey = "Bitcannaid-value-" BitcannaidCountKey = "Bitcannaid-count-" )
const ( SupplychainKey = "Supplychain-value-" SupplychainCountKey = "Supplychain-count-" )
const ( TypeMsgCreateBitcannaid = "create_bitcannaid" TypeMsgUpdateBitcannaid = "update_bitcannaid" TypeMsgDeleteBitcannaid = "delete_bitcannaid" )
const ( TypeMsgCreateSupplychain = "create_supplychain" TypeMsgUpdateSupplychain = "update_supplychain" TypeMsgDeleteSupplychain = "delete_supplychain" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrInvalidLengthBitcannaid = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBitcannaid = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBitcannaid = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSupplychain = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSupplychain = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSupplychain = 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 (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/bcna module sentinel errors
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type Bitcannaid ¶
type Bitcannaid struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Bcnaid string `protobuf:"bytes,2,opt,name=bcnaid,proto3" json:"bcnaid,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` }
func (*Bitcannaid) Descriptor ¶
func (*Bitcannaid) Descriptor() ([]byte, []int)
func (*Bitcannaid) GetAddress ¶
func (m *Bitcannaid) GetAddress() string
func (*Bitcannaid) GetBcnaid ¶
func (m *Bitcannaid) GetBcnaid() string
func (*Bitcannaid) GetCreator ¶
func (m *Bitcannaid) GetCreator() string
func (*Bitcannaid) GetId ¶
func (m *Bitcannaid) GetId() uint64
func (*Bitcannaid) Marshal ¶
func (m *Bitcannaid) Marshal() (dAtA []byte, err error)
func (*Bitcannaid) MarshalToSizedBuffer ¶
func (m *Bitcannaid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Bitcannaid) ProtoMessage ¶
func (*Bitcannaid) ProtoMessage()
func (*Bitcannaid) Reset ¶
func (m *Bitcannaid) Reset()
func (*Bitcannaid) Size ¶
func (m *Bitcannaid) Size() (n int)
func (*Bitcannaid) String ¶
func (m *Bitcannaid) String() string
func (*Bitcannaid) Unmarshal ¶
func (m *Bitcannaid) Unmarshal(dAtA []byte) error
func (*Bitcannaid) XXX_DiscardUnknown ¶
func (m *Bitcannaid) XXX_DiscardUnknown()
func (*Bitcannaid) XXX_Marshal ¶
func (m *Bitcannaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Bitcannaid) XXX_Merge ¶
func (m *Bitcannaid) XXX_Merge(src proto.Message)
func (*Bitcannaid) XXX_Size ¶
func (m *Bitcannaid) XXX_Size() int
func (*Bitcannaid) XXX_Unmarshal ¶
func (m *Bitcannaid) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` BitcannaidList []Bitcannaid `protobuf:"bytes,2,rep,name=bitcannaidList,proto3" json:"bitcannaidList"` BitcannaidCount uint64 `protobuf:"varint,3,opt,name=bitcannaidCount,proto3" json:"bitcannaidCount,omitempty"` SupplychainList []Supplychain `protobuf:"bytes,4,rep,name=supplychainList,proto3" json:"supplychainList"` SupplychainCount uint64 `protobuf:"varint,5,opt,name=supplychainCount,proto3" json:"supplychainCount,omitempty"` }
GenesisState defines the bcna 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) GetBitcannaidCount ¶
func (m *GenesisState) GetBitcannaidCount() uint64
func (*GenesisState) GetBitcannaidList ¶
func (m *GenesisState) GetBitcannaidList() []Bitcannaid
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSupplychainCount ¶
func (m *GenesisState) GetSupplychainCount() uint64
func (*GenesisState) GetSupplychainList ¶
func (m *GenesisState) GetSupplychainList() []Supplychain
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 { CreateBitcannaid(ctx context.Context, in *MsgCreateBitcannaid, opts ...grpc.CallOption) (*MsgCreateBitcannaidResponse, error) UpdateBitcannaid(ctx context.Context, in *MsgUpdateBitcannaid, opts ...grpc.CallOption) (*MsgUpdateBitcannaidResponse, error) DeleteBitcannaid(ctx context.Context, in *MsgDeleteBitcannaid, opts ...grpc.CallOption) (*MsgDeleteBitcannaidResponse, error) CreateSupplychain(ctx context.Context, in *MsgCreateSupplychain, opts ...grpc.CallOption) (*MsgCreateSupplychainResponse, error) UpdateSupplychain(ctx context.Context, in *MsgUpdateSupplychain, opts ...grpc.CallOption) (*MsgUpdateSupplychainResponse, error) DeleteSupplychain(ctx context.Context, in *MsgDeleteSupplychain, opts ...grpc.CallOption) (*MsgDeleteSupplychainResponse, 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 MsgCreateBitcannaid ¶
type MsgCreateBitcannaid struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Bcnaid string `protobuf:"bytes,2,opt,name=bcnaid,proto3" json:"bcnaid,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` }
func NewMsgCreateBitcannaid ¶
func NewMsgCreateBitcannaid(creator string, bcnaid string, address string) *MsgCreateBitcannaid
func (*MsgCreateBitcannaid) Descriptor ¶
func (*MsgCreateBitcannaid) Descriptor() ([]byte, []int)
func (*MsgCreateBitcannaid) GetAddress ¶
func (m *MsgCreateBitcannaid) GetAddress() string
func (*MsgCreateBitcannaid) GetBcnaid ¶
func (m *MsgCreateBitcannaid) GetBcnaid() string
func (*MsgCreateBitcannaid) GetCreator ¶
func (m *MsgCreateBitcannaid) GetCreator() string
func (*MsgCreateBitcannaid) GetSignBytes ¶
func (msg *MsgCreateBitcannaid) GetSignBytes() []byte
func (*MsgCreateBitcannaid) GetSigners ¶
func (msg *MsgCreateBitcannaid) GetSigners() []sdk.AccAddress
func (*MsgCreateBitcannaid) Marshal ¶
func (m *MsgCreateBitcannaid) Marshal() (dAtA []byte, err error)
func (*MsgCreateBitcannaid) MarshalTo ¶
func (m *MsgCreateBitcannaid) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBitcannaid) MarshalToSizedBuffer ¶
func (m *MsgCreateBitcannaid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBitcannaid) ProtoMessage ¶
func (*MsgCreateBitcannaid) ProtoMessage()
func (*MsgCreateBitcannaid) Reset ¶
func (m *MsgCreateBitcannaid) Reset()
func (*MsgCreateBitcannaid) Route ¶
func (msg *MsgCreateBitcannaid) Route() string
func (*MsgCreateBitcannaid) Size ¶
func (m *MsgCreateBitcannaid) Size() (n int)
func (*MsgCreateBitcannaid) String ¶
func (m *MsgCreateBitcannaid) String() string
func (*MsgCreateBitcannaid) Type ¶
func (msg *MsgCreateBitcannaid) Type() string
func (*MsgCreateBitcannaid) Unmarshal ¶
func (m *MsgCreateBitcannaid) Unmarshal(dAtA []byte) error
func (*MsgCreateBitcannaid) ValidateBasic ¶
func (msg *MsgCreateBitcannaid) ValidateBasic() error
func (*MsgCreateBitcannaid) XXX_DiscardUnknown ¶
func (m *MsgCreateBitcannaid) XXX_DiscardUnknown()
func (*MsgCreateBitcannaid) XXX_Marshal ¶
func (m *MsgCreateBitcannaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBitcannaid) XXX_Merge ¶
func (m *MsgCreateBitcannaid) XXX_Merge(src proto.Message)
func (*MsgCreateBitcannaid) XXX_Size ¶
func (m *MsgCreateBitcannaid) XXX_Size() int
func (*MsgCreateBitcannaid) XXX_Unmarshal ¶
func (m *MsgCreateBitcannaid) XXX_Unmarshal(b []byte) error
type MsgCreateBitcannaidResponse ¶
type MsgCreateBitcannaidResponse struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*MsgCreateBitcannaidResponse) Descriptor ¶
func (*MsgCreateBitcannaidResponse) Descriptor() ([]byte, []int)
func (*MsgCreateBitcannaidResponse) GetId ¶
func (m *MsgCreateBitcannaidResponse) GetId() uint64
func (*MsgCreateBitcannaidResponse) Marshal ¶
func (m *MsgCreateBitcannaidResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateBitcannaidResponse) MarshalTo ¶
func (m *MsgCreateBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBitcannaidResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBitcannaidResponse) ProtoMessage ¶
func (*MsgCreateBitcannaidResponse) ProtoMessage()
func (*MsgCreateBitcannaidResponse) Reset ¶
func (m *MsgCreateBitcannaidResponse) Reset()
func (*MsgCreateBitcannaidResponse) Size ¶
func (m *MsgCreateBitcannaidResponse) Size() (n int)
func (*MsgCreateBitcannaidResponse) String ¶
func (m *MsgCreateBitcannaidResponse) String() string
func (*MsgCreateBitcannaidResponse) Unmarshal ¶
func (m *MsgCreateBitcannaidResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateBitcannaidResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateBitcannaidResponse) XXX_DiscardUnknown()
func (*MsgCreateBitcannaidResponse) XXX_Marshal ¶
func (m *MsgCreateBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBitcannaidResponse) XXX_Merge ¶
func (m *MsgCreateBitcannaidResponse) XXX_Merge(src proto.Message)
func (*MsgCreateBitcannaidResponse) XXX_Size ¶
func (m *MsgCreateBitcannaidResponse) XXX_Size() int
func (*MsgCreateBitcannaidResponse) XXX_Unmarshal ¶
func (m *MsgCreateBitcannaidResponse) XXX_Unmarshal(b []byte) error
type MsgCreateSupplychain ¶
type MsgCreateSupplychain struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Product string `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"` Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` Supplyinfo string `protobuf:"bytes,4,opt,name=supplyinfo,proto3" json:"supplyinfo,omitempty"` Supplyextra string `protobuf:"bytes,5,opt,name=supplyextra,proto3" json:"supplyextra,omitempty"` }
func NewMsgCreateSupplychain ¶
func (*MsgCreateSupplychain) Descriptor ¶
func (*MsgCreateSupplychain) Descriptor() ([]byte, []int)
func (*MsgCreateSupplychain) GetCreator ¶
func (m *MsgCreateSupplychain) GetCreator() string
func (*MsgCreateSupplychain) GetInfo ¶
func (m *MsgCreateSupplychain) GetInfo() string
func (*MsgCreateSupplychain) GetProduct ¶
func (m *MsgCreateSupplychain) GetProduct() string
func (*MsgCreateSupplychain) GetSignBytes ¶
func (msg *MsgCreateSupplychain) GetSignBytes() []byte
func (*MsgCreateSupplychain) GetSigners ¶
func (msg *MsgCreateSupplychain) GetSigners() []sdk.AccAddress
func (*MsgCreateSupplychain) GetSupplyextra ¶
func (m *MsgCreateSupplychain) GetSupplyextra() string
func (*MsgCreateSupplychain) GetSupplyinfo ¶
func (m *MsgCreateSupplychain) GetSupplyinfo() string
func (*MsgCreateSupplychain) Marshal ¶
func (m *MsgCreateSupplychain) Marshal() (dAtA []byte, err error)
func (*MsgCreateSupplychain) MarshalTo ¶
func (m *MsgCreateSupplychain) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSupplychain) MarshalToSizedBuffer ¶
func (m *MsgCreateSupplychain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSupplychain) ProtoMessage ¶
func (*MsgCreateSupplychain) ProtoMessage()
func (*MsgCreateSupplychain) Reset ¶
func (m *MsgCreateSupplychain) Reset()
func (*MsgCreateSupplychain) Route ¶
func (msg *MsgCreateSupplychain) Route() string
func (*MsgCreateSupplychain) Size ¶
func (m *MsgCreateSupplychain) Size() (n int)
func (*MsgCreateSupplychain) String ¶
func (m *MsgCreateSupplychain) String() string
func (*MsgCreateSupplychain) Type ¶
func (msg *MsgCreateSupplychain) Type() string
func (*MsgCreateSupplychain) Unmarshal ¶
func (m *MsgCreateSupplychain) Unmarshal(dAtA []byte) error
func (*MsgCreateSupplychain) ValidateBasic ¶
func (msg *MsgCreateSupplychain) ValidateBasic() error
func (*MsgCreateSupplychain) XXX_DiscardUnknown ¶
func (m *MsgCreateSupplychain) XXX_DiscardUnknown()
func (*MsgCreateSupplychain) XXX_Marshal ¶
func (m *MsgCreateSupplychain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSupplychain) XXX_Merge ¶
func (m *MsgCreateSupplychain) XXX_Merge(src proto.Message)
func (*MsgCreateSupplychain) XXX_Size ¶
func (m *MsgCreateSupplychain) XXX_Size() int
func (*MsgCreateSupplychain) XXX_Unmarshal ¶
func (m *MsgCreateSupplychain) XXX_Unmarshal(b []byte) error
type MsgCreateSupplychainResponse ¶
type MsgCreateSupplychainResponse struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*MsgCreateSupplychainResponse) Descriptor ¶
func (*MsgCreateSupplychainResponse) Descriptor() ([]byte, []int)
func (*MsgCreateSupplychainResponse) GetId ¶
func (m *MsgCreateSupplychainResponse) GetId() uint64
func (*MsgCreateSupplychainResponse) Marshal ¶
func (m *MsgCreateSupplychainResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateSupplychainResponse) MarshalTo ¶
func (m *MsgCreateSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSupplychainResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSupplychainResponse) ProtoMessage ¶
func (*MsgCreateSupplychainResponse) ProtoMessage()
func (*MsgCreateSupplychainResponse) Reset ¶
func (m *MsgCreateSupplychainResponse) Reset()
func (*MsgCreateSupplychainResponse) Size ¶
func (m *MsgCreateSupplychainResponse) Size() (n int)
func (*MsgCreateSupplychainResponse) String ¶
func (m *MsgCreateSupplychainResponse) String() string
func (*MsgCreateSupplychainResponse) Unmarshal ¶
func (m *MsgCreateSupplychainResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateSupplychainResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateSupplychainResponse) XXX_DiscardUnknown()
func (*MsgCreateSupplychainResponse) XXX_Marshal ¶
func (m *MsgCreateSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSupplychainResponse) XXX_Merge ¶
func (m *MsgCreateSupplychainResponse) XXX_Merge(src proto.Message)
func (*MsgCreateSupplychainResponse) XXX_Size ¶
func (m *MsgCreateSupplychainResponse) XXX_Size() int
func (*MsgCreateSupplychainResponse) XXX_Unmarshal ¶
func (m *MsgCreateSupplychainResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteBitcannaid ¶
type MsgDeleteBitcannaid struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` }
func NewMsgDeleteBitcannaid ¶
func NewMsgDeleteBitcannaid(creator string, id uint64) *MsgDeleteBitcannaid
func (*MsgDeleteBitcannaid) Descriptor ¶
func (*MsgDeleteBitcannaid) Descriptor() ([]byte, []int)
func (*MsgDeleteBitcannaid) GetCreator ¶
func (m *MsgDeleteBitcannaid) GetCreator() string
func (*MsgDeleteBitcannaid) GetId ¶
func (m *MsgDeleteBitcannaid) GetId() uint64
func (*MsgDeleteBitcannaid) GetSignBytes ¶
func (msg *MsgDeleteBitcannaid) GetSignBytes() []byte
func (*MsgDeleteBitcannaid) GetSigners ¶
func (msg *MsgDeleteBitcannaid) GetSigners() []sdk.AccAddress
func (*MsgDeleteBitcannaid) Marshal ¶
func (m *MsgDeleteBitcannaid) Marshal() (dAtA []byte, err error)
func (*MsgDeleteBitcannaid) MarshalTo ¶
func (m *MsgDeleteBitcannaid) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteBitcannaid) MarshalToSizedBuffer ¶
func (m *MsgDeleteBitcannaid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteBitcannaid) ProtoMessage ¶
func (*MsgDeleteBitcannaid) ProtoMessage()
func (*MsgDeleteBitcannaid) Reset ¶
func (m *MsgDeleteBitcannaid) Reset()
func (*MsgDeleteBitcannaid) Route ¶
func (msg *MsgDeleteBitcannaid) Route() string
func (*MsgDeleteBitcannaid) Size ¶
func (m *MsgDeleteBitcannaid) Size() (n int)
func (*MsgDeleteBitcannaid) String ¶
func (m *MsgDeleteBitcannaid) String() string
func (*MsgDeleteBitcannaid) Type ¶
func (msg *MsgDeleteBitcannaid) Type() string
func (*MsgDeleteBitcannaid) Unmarshal ¶
func (m *MsgDeleteBitcannaid) Unmarshal(dAtA []byte) error
func (*MsgDeleteBitcannaid) ValidateBasic ¶
func (msg *MsgDeleteBitcannaid) ValidateBasic() error
func (*MsgDeleteBitcannaid) XXX_DiscardUnknown ¶
func (m *MsgDeleteBitcannaid) XXX_DiscardUnknown()
func (*MsgDeleteBitcannaid) XXX_Marshal ¶
func (m *MsgDeleteBitcannaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteBitcannaid) XXX_Merge ¶
func (m *MsgDeleteBitcannaid) XXX_Merge(src proto.Message)
func (*MsgDeleteBitcannaid) XXX_Size ¶
func (m *MsgDeleteBitcannaid) XXX_Size() int
func (*MsgDeleteBitcannaid) XXX_Unmarshal ¶
func (m *MsgDeleteBitcannaid) XXX_Unmarshal(b []byte) error
type MsgDeleteBitcannaidResponse ¶
type MsgDeleteBitcannaidResponse struct { }
func (*MsgDeleteBitcannaidResponse) Descriptor ¶
func (*MsgDeleteBitcannaidResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteBitcannaidResponse) Marshal ¶
func (m *MsgDeleteBitcannaidResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteBitcannaidResponse) MarshalTo ¶
func (m *MsgDeleteBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteBitcannaidResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteBitcannaidResponse) ProtoMessage ¶
func (*MsgDeleteBitcannaidResponse) ProtoMessage()
func (*MsgDeleteBitcannaidResponse) Reset ¶
func (m *MsgDeleteBitcannaidResponse) Reset()
func (*MsgDeleteBitcannaidResponse) Size ¶
func (m *MsgDeleteBitcannaidResponse) Size() (n int)
func (*MsgDeleteBitcannaidResponse) String ¶
func (m *MsgDeleteBitcannaidResponse) String() string
func (*MsgDeleteBitcannaidResponse) Unmarshal ¶
func (m *MsgDeleteBitcannaidResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteBitcannaidResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteBitcannaidResponse) XXX_DiscardUnknown()
func (*MsgDeleteBitcannaidResponse) XXX_Marshal ¶
func (m *MsgDeleteBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteBitcannaidResponse) XXX_Merge ¶
func (m *MsgDeleteBitcannaidResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteBitcannaidResponse) XXX_Size ¶
func (m *MsgDeleteBitcannaidResponse) XXX_Size() int
func (*MsgDeleteBitcannaidResponse) XXX_Unmarshal ¶
func (m *MsgDeleteBitcannaidResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteSupplychain ¶
type MsgDeleteSupplychain struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` }
func NewMsgDeleteSupplychain ¶
func NewMsgDeleteSupplychain(creator string, id uint64) *MsgDeleteSupplychain
func (*MsgDeleteSupplychain) Descriptor ¶
func (*MsgDeleteSupplychain) Descriptor() ([]byte, []int)
func (*MsgDeleteSupplychain) GetCreator ¶
func (m *MsgDeleteSupplychain) GetCreator() string
func (*MsgDeleteSupplychain) GetId ¶
func (m *MsgDeleteSupplychain) GetId() uint64
func (*MsgDeleteSupplychain) GetSignBytes ¶
func (msg *MsgDeleteSupplychain) GetSignBytes() []byte
func (*MsgDeleteSupplychain) GetSigners ¶
func (msg *MsgDeleteSupplychain) GetSigners() []sdk.AccAddress
func (*MsgDeleteSupplychain) Marshal ¶
func (m *MsgDeleteSupplychain) Marshal() (dAtA []byte, err error)
func (*MsgDeleteSupplychain) MarshalTo ¶
func (m *MsgDeleteSupplychain) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteSupplychain) MarshalToSizedBuffer ¶
func (m *MsgDeleteSupplychain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteSupplychain) ProtoMessage ¶
func (*MsgDeleteSupplychain) ProtoMessage()
func (*MsgDeleteSupplychain) Reset ¶
func (m *MsgDeleteSupplychain) Reset()
func (*MsgDeleteSupplychain) Route ¶
func (msg *MsgDeleteSupplychain) Route() string
func (*MsgDeleteSupplychain) Size ¶
func (m *MsgDeleteSupplychain) Size() (n int)
func (*MsgDeleteSupplychain) String ¶
func (m *MsgDeleteSupplychain) String() string
func (*MsgDeleteSupplychain) Type ¶
func (msg *MsgDeleteSupplychain) Type() string
func (*MsgDeleteSupplychain) Unmarshal ¶
func (m *MsgDeleteSupplychain) Unmarshal(dAtA []byte) error
func (*MsgDeleteSupplychain) ValidateBasic ¶
func (msg *MsgDeleteSupplychain) ValidateBasic() error
func (*MsgDeleteSupplychain) XXX_DiscardUnknown ¶
func (m *MsgDeleteSupplychain) XXX_DiscardUnknown()
func (*MsgDeleteSupplychain) XXX_Marshal ¶
func (m *MsgDeleteSupplychain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteSupplychain) XXX_Merge ¶
func (m *MsgDeleteSupplychain) XXX_Merge(src proto.Message)
func (*MsgDeleteSupplychain) XXX_Size ¶
func (m *MsgDeleteSupplychain) XXX_Size() int
func (*MsgDeleteSupplychain) XXX_Unmarshal ¶
func (m *MsgDeleteSupplychain) XXX_Unmarshal(b []byte) error
type MsgDeleteSupplychainResponse ¶
type MsgDeleteSupplychainResponse struct { }
func (*MsgDeleteSupplychainResponse) Descriptor ¶
func (*MsgDeleteSupplychainResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteSupplychainResponse) Marshal ¶
func (m *MsgDeleteSupplychainResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteSupplychainResponse) MarshalTo ¶
func (m *MsgDeleteSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteSupplychainResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteSupplychainResponse) ProtoMessage ¶
func (*MsgDeleteSupplychainResponse) ProtoMessage()
func (*MsgDeleteSupplychainResponse) Reset ¶
func (m *MsgDeleteSupplychainResponse) Reset()
func (*MsgDeleteSupplychainResponse) Size ¶
func (m *MsgDeleteSupplychainResponse) Size() (n int)
func (*MsgDeleteSupplychainResponse) String ¶
func (m *MsgDeleteSupplychainResponse) String() string
func (*MsgDeleteSupplychainResponse) Unmarshal ¶
func (m *MsgDeleteSupplychainResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteSupplychainResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteSupplychainResponse) XXX_DiscardUnknown()
func (*MsgDeleteSupplychainResponse) XXX_Marshal ¶
func (m *MsgDeleteSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteSupplychainResponse) XXX_Merge ¶
func (m *MsgDeleteSupplychainResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteSupplychainResponse) XXX_Size ¶
func (m *MsgDeleteSupplychainResponse) XXX_Size() int
func (*MsgDeleteSupplychainResponse) XXX_Unmarshal ¶
func (m *MsgDeleteSupplychainResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateBitcannaid(context.Context, *MsgCreateBitcannaid) (*MsgCreateBitcannaidResponse, error) UpdateBitcannaid(context.Context, *MsgUpdateBitcannaid) (*MsgUpdateBitcannaidResponse, error) DeleteBitcannaid(context.Context, *MsgDeleteBitcannaid) (*MsgDeleteBitcannaidResponse, error) CreateSupplychain(context.Context, *MsgCreateSupplychain) (*MsgCreateSupplychainResponse, error) UpdateSupplychain(context.Context, *MsgUpdateSupplychain) (*MsgUpdateSupplychainResponse, error) DeleteSupplychain(context.Context, *MsgDeleteSupplychain) (*MsgDeleteSupplychainResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateBitcannaid ¶
type MsgUpdateBitcannaid struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Bcnaid string `protobuf:"bytes,3,opt,name=bcnaid,proto3" json:"bcnaid,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` }
func NewMsgUpdateBitcannaid ¶
func NewMsgUpdateBitcannaid(creator string, id uint64, bcnaid string, address string) *MsgUpdateBitcannaid
func (*MsgUpdateBitcannaid) Descriptor ¶
func (*MsgUpdateBitcannaid) Descriptor() ([]byte, []int)
func (*MsgUpdateBitcannaid) GetAddress ¶
func (m *MsgUpdateBitcannaid) GetAddress() string
func (*MsgUpdateBitcannaid) GetBcnaid ¶
func (m *MsgUpdateBitcannaid) GetBcnaid() string
func (*MsgUpdateBitcannaid) GetCreator ¶
func (m *MsgUpdateBitcannaid) GetCreator() string
func (*MsgUpdateBitcannaid) GetId ¶
func (m *MsgUpdateBitcannaid) GetId() uint64
func (*MsgUpdateBitcannaid) GetSignBytes ¶
func (msg *MsgUpdateBitcannaid) GetSignBytes() []byte
func (*MsgUpdateBitcannaid) GetSigners ¶
func (msg *MsgUpdateBitcannaid) GetSigners() []sdk.AccAddress
func (*MsgUpdateBitcannaid) Marshal ¶
func (m *MsgUpdateBitcannaid) Marshal() (dAtA []byte, err error)
func (*MsgUpdateBitcannaid) MarshalTo ¶
func (m *MsgUpdateBitcannaid) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateBitcannaid) MarshalToSizedBuffer ¶
func (m *MsgUpdateBitcannaid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateBitcannaid) ProtoMessage ¶
func (*MsgUpdateBitcannaid) ProtoMessage()
func (*MsgUpdateBitcannaid) Reset ¶
func (m *MsgUpdateBitcannaid) Reset()
func (*MsgUpdateBitcannaid) Route ¶
func (msg *MsgUpdateBitcannaid) Route() string
func (*MsgUpdateBitcannaid) Size ¶
func (m *MsgUpdateBitcannaid) Size() (n int)
func (*MsgUpdateBitcannaid) String ¶
func (m *MsgUpdateBitcannaid) String() string
func (*MsgUpdateBitcannaid) Type ¶
func (msg *MsgUpdateBitcannaid) Type() string
func (*MsgUpdateBitcannaid) Unmarshal ¶
func (m *MsgUpdateBitcannaid) Unmarshal(dAtA []byte) error
func (*MsgUpdateBitcannaid) ValidateBasic ¶
func (msg *MsgUpdateBitcannaid) ValidateBasic() error
func (*MsgUpdateBitcannaid) XXX_DiscardUnknown ¶
func (m *MsgUpdateBitcannaid) XXX_DiscardUnknown()
func (*MsgUpdateBitcannaid) XXX_Marshal ¶
func (m *MsgUpdateBitcannaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateBitcannaid) XXX_Merge ¶
func (m *MsgUpdateBitcannaid) XXX_Merge(src proto.Message)
func (*MsgUpdateBitcannaid) XXX_Size ¶
func (m *MsgUpdateBitcannaid) XXX_Size() int
func (*MsgUpdateBitcannaid) XXX_Unmarshal ¶
func (m *MsgUpdateBitcannaid) XXX_Unmarshal(b []byte) error
type MsgUpdateBitcannaidResponse ¶
type MsgUpdateBitcannaidResponse struct { }
func (*MsgUpdateBitcannaidResponse) Descriptor ¶
func (*MsgUpdateBitcannaidResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateBitcannaidResponse) Marshal ¶
func (m *MsgUpdateBitcannaidResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateBitcannaidResponse) MarshalTo ¶
func (m *MsgUpdateBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateBitcannaidResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateBitcannaidResponse) ProtoMessage ¶
func (*MsgUpdateBitcannaidResponse) ProtoMessage()
func (*MsgUpdateBitcannaidResponse) Reset ¶
func (m *MsgUpdateBitcannaidResponse) Reset()
func (*MsgUpdateBitcannaidResponse) Size ¶
func (m *MsgUpdateBitcannaidResponse) Size() (n int)
func (*MsgUpdateBitcannaidResponse) String ¶
func (m *MsgUpdateBitcannaidResponse) String() string
func (*MsgUpdateBitcannaidResponse) Unmarshal ¶
func (m *MsgUpdateBitcannaidResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateBitcannaidResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateBitcannaidResponse) XXX_DiscardUnknown()
func (*MsgUpdateBitcannaidResponse) XXX_Marshal ¶
func (m *MsgUpdateBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateBitcannaidResponse) XXX_Merge ¶
func (m *MsgUpdateBitcannaidResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateBitcannaidResponse) XXX_Size ¶
func (m *MsgUpdateBitcannaidResponse) XXX_Size() int
func (*MsgUpdateBitcannaidResponse) XXX_Unmarshal ¶
func (m *MsgUpdateBitcannaidResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateSupplychain ¶
type MsgUpdateSupplychain struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Product string `protobuf:"bytes,3,opt,name=product,proto3" json:"product,omitempty"` Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` Supplyinfo string `protobuf:"bytes,5,opt,name=supplyinfo,proto3" json:"supplyinfo,omitempty"` Supplyextra string `protobuf:"bytes,6,opt,name=supplyextra,proto3" json:"supplyextra,omitempty"` }
func NewMsgUpdateSupplychain ¶
func (*MsgUpdateSupplychain) Descriptor ¶
func (*MsgUpdateSupplychain) Descriptor() ([]byte, []int)
func (*MsgUpdateSupplychain) GetCreator ¶
func (m *MsgUpdateSupplychain) GetCreator() string
func (*MsgUpdateSupplychain) GetId ¶
func (m *MsgUpdateSupplychain) GetId() uint64
func (*MsgUpdateSupplychain) GetInfo ¶
func (m *MsgUpdateSupplychain) GetInfo() string
func (*MsgUpdateSupplychain) GetProduct ¶
func (m *MsgUpdateSupplychain) GetProduct() string
func (*MsgUpdateSupplychain) GetSignBytes ¶
func (msg *MsgUpdateSupplychain) GetSignBytes() []byte
func (*MsgUpdateSupplychain) GetSigners ¶
func (msg *MsgUpdateSupplychain) GetSigners() []sdk.AccAddress
func (*MsgUpdateSupplychain) GetSupplyextra ¶
func (m *MsgUpdateSupplychain) GetSupplyextra() string
func (*MsgUpdateSupplychain) GetSupplyinfo ¶
func (m *MsgUpdateSupplychain) GetSupplyinfo() string
func (*MsgUpdateSupplychain) Marshal ¶
func (m *MsgUpdateSupplychain) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSupplychain) MarshalTo ¶
func (m *MsgUpdateSupplychain) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSupplychain) MarshalToSizedBuffer ¶
func (m *MsgUpdateSupplychain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSupplychain) ProtoMessage ¶
func (*MsgUpdateSupplychain) ProtoMessage()
func (*MsgUpdateSupplychain) Reset ¶
func (m *MsgUpdateSupplychain) Reset()
func (*MsgUpdateSupplychain) Route ¶
func (msg *MsgUpdateSupplychain) Route() string
func (*MsgUpdateSupplychain) Size ¶
func (m *MsgUpdateSupplychain) Size() (n int)
func (*MsgUpdateSupplychain) String ¶
func (m *MsgUpdateSupplychain) String() string
func (*MsgUpdateSupplychain) Type ¶
func (msg *MsgUpdateSupplychain) Type() string
func (*MsgUpdateSupplychain) Unmarshal ¶
func (m *MsgUpdateSupplychain) Unmarshal(dAtA []byte) error
func (*MsgUpdateSupplychain) ValidateBasic ¶
func (msg *MsgUpdateSupplychain) ValidateBasic() error
func (*MsgUpdateSupplychain) XXX_DiscardUnknown ¶
func (m *MsgUpdateSupplychain) XXX_DiscardUnknown()
func (*MsgUpdateSupplychain) XXX_Marshal ¶
func (m *MsgUpdateSupplychain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSupplychain) XXX_Merge ¶
func (m *MsgUpdateSupplychain) XXX_Merge(src proto.Message)
func (*MsgUpdateSupplychain) XXX_Size ¶
func (m *MsgUpdateSupplychain) XXX_Size() int
func (*MsgUpdateSupplychain) XXX_Unmarshal ¶
func (m *MsgUpdateSupplychain) XXX_Unmarshal(b []byte) error
type MsgUpdateSupplychainResponse ¶
type MsgUpdateSupplychainResponse struct { }
func (*MsgUpdateSupplychainResponse) Descriptor ¶
func (*MsgUpdateSupplychainResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateSupplychainResponse) Marshal ¶
func (m *MsgUpdateSupplychainResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSupplychainResponse) MarshalTo ¶
func (m *MsgUpdateSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSupplychainResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSupplychainResponse) ProtoMessage ¶
func (*MsgUpdateSupplychainResponse) ProtoMessage()
func (*MsgUpdateSupplychainResponse) Reset ¶
func (m *MsgUpdateSupplychainResponse) Reset()
func (*MsgUpdateSupplychainResponse) Size ¶
func (m *MsgUpdateSupplychainResponse) Size() (n int)
func (*MsgUpdateSupplychainResponse) String ¶
func (m *MsgUpdateSupplychainResponse) String() string
func (*MsgUpdateSupplychainResponse) Unmarshal ¶
func (m *MsgUpdateSupplychainResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateSupplychainResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateSupplychainResponse) XXX_DiscardUnknown()
func (*MsgUpdateSupplychainResponse) XXX_Marshal ¶
func (m *MsgUpdateSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSupplychainResponse) XXX_Merge ¶
func (m *MsgUpdateSupplychainResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateSupplychainResponse) XXX_Size ¶
func (m *MsgUpdateSupplychainResponse) XXX_Size() int
func (*MsgUpdateSupplychainResponse) XXX_Unmarshal ¶
func (m *MsgUpdateSupplychainResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllBitcannaidRequest ¶
type QueryAllBitcannaidRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllBitcannaidRequest) Descriptor ¶
func (*QueryAllBitcannaidRequest) Descriptor() ([]byte, []int)
func (*QueryAllBitcannaidRequest) GetPagination ¶
func (m *QueryAllBitcannaidRequest) GetPagination() *query.PageRequest
func (*QueryAllBitcannaidRequest) Marshal ¶
func (m *QueryAllBitcannaidRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllBitcannaidRequest) MarshalTo ¶
func (m *QueryAllBitcannaidRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBitcannaidRequest) MarshalToSizedBuffer ¶
func (m *QueryAllBitcannaidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBitcannaidRequest) ProtoMessage ¶
func (*QueryAllBitcannaidRequest) ProtoMessage()
func (*QueryAllBitcannaidRequest) Reset ¶
func (m *QueryAllBitcannaidRequest) Reset()
func (*QueryAllBitcannaidRequest) Size ¶
func (m *QueryAllBitcannaidRequest) Size() (n int)
func (*QueryAllBitcannaidRequest) String ¶
func (m *QueryAllBitcannaidRequest) String() string
func (*QueryAllBitcannaidRequest) Unmarshal ¶
func (m *QueryAllBitcannaidRequest) Unmarshal(dAtA []byte) error
func (*QueryAllBitcannaidRequest) XXX_DiscardUnknown ¶
func (m *QueryAllBitcannaidRequest) XXX_DiscardUnknown()
func (*QueryAllBitcannaidRequest) XXX_Marshal ¶
func (m *QueryAllBitcannaidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBitcannaidRequest) XXX_Merge ¶
func (m *QueryAllBitcannaidRequest) XXX_Merge(src proto.Message)
func (*QueryAllBitcannaidRequest) XXX_Size ¶
func (m *QueryAllBitcannaidRequest) XXX_Size() int
func (*QueryAllBitcannaidRequest) XXX_Unmarshal ¶
func (m *QueryAllBitcannaidRequest) XXX_Unmarshal(b []byte) error
type QueryAllBitcannaidResponse ¶
type QueryAllBitcannaidResponse struct { Bitcannaid []Bitcannaid `protobuf:"bytes,1,rep,name=Bitcannaid,proto3" json:"Bitcannaid"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllBitcannaidResponse) Descriptor ¶
func (*QueryAllBitcannaidResponse) Descriptor() ([]byte, []int)
func (*QueryAllBitcannaidResponse) GetBitcannaid ¶
func (m *QueryAllBitcannaidResponse) GetBitcannaid() []Bitcannaid
func (*QueryAllBitcannaidResponse) GetPagination ¶
func (m *QueryAllBitcannaidResponse) GetPagination() *query.PageResponse
func (*QueryAllBitcannaidResponse) Marshal ¶
func (m *QueryAllBitcannaidResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllBitcannaidResponse) MarshalTo ¶
func (m *QueryAllBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBitcannaidResponse) MarshalToSizedBuffer ¶
func (m *QueryAllBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBitcannaidResponse) ProtoMessage ¶
func (*QueryAllBitcannaidResponse) ProtoMessage()
func (*QueryAllBitcannaidResponse) Reset ¶
func (m *QueryAllBitcannaidResponse) Reset()
func (*QueryAllBitcannaidResponse) Size ¶
func (m *QueryAllBitcannaidResponse) Size() (n int)
func (*QueryAllBitcannaidResponse) String ¶
func (m *QueryAllBitcannaidResponse) String() string
func (*QueryAllBitcannaidResponse) Unmarshal ¶
func (m *QueryAllBitcannaidResponse) Unmarshal(dAtA []byte) error
func (*QueryAllBitcannaidResponse) XXX_DiscardUnknown ¶
func (m *QueryAllBitcannaidResponse) XXX_DiscardUnknown()
func (*QueryAllBitcannaidResponse) XXX_Marshal ¶
func (m *QueryAllBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBitcannaidResponse) XXX_Merge ¶
func (m *QueryAllBitcannaidResponse) XXX_Merge(src proto.Message)
func (*QueryAllBitcannaidResponse) XXX_Size ¶
func (m *QueryAllBitcannaidResponse) XXX_Size() int
func (*QueryAllBitcannaidResponse) XXX_Unmarshal ¶
func (m *QueryAllBitcannaidResponse) XXX_Unmarshal(b []byte) error
type QueryAllSupplychainRequest ¶
type QueryAllSupplychainRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllSupplychainRequest) Descriptor ¶
func (*QueryAllSupplychainRequest) Descriptor() ([]byte, []int)
func (*QueryAllSupplychainRequest) GetPagination ¶
func (m *QueryAllSupplychainRequest) GetPagination() *query.PageRequest
func (*QueryAllSupplychainRequest) Marshal ¶
func (m *QueryAllSupplychainRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllSupplychainRequest) MarshalTo ¶
func (m *QueryAllSupplychainRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllSupplychainRequest) MarshalToSizedBuffer ¶
func (m *QueryAllSupplychainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllSupplychainRequest) ProtoMessage ¶
func (*QueryAllSupplychainRequest) ProtoMessage()
func (*QueryAllSupplychainRequest) Reset ¶
func (m *QueryAllSupplychainRequest) Reset()
func (*QueryAllSupplychainRequest) Size ¶
func (m *QueryAllSupplychainRequest) Size() (n int)
func (*QueryAllSupplychainRequest) String ¶
func (m *QueryAllSupplychainRequest) String() string
func (*QueryAllSupplychainRequest) Unmarshal ¶
func (m *QueryAllSupplychainRequest) Unmarshal(dAtA []byte) error
func (*QueryAllSupplychainRequest) XXX_DiscardUnknown ¶
func (m *QueryAllSupplychainRequest) XXX_DiscardUnknown()
func (*QueryAllSupplychainRequest) XXX_Marshal ¶
func (m *QueryAllSupplychainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllSupplychainRequest) XXX_Merge ¶
func (m *QueryAllSupplychainRequest) XXX_Merge(src proto.Message)
func (*QueryAllSupplychainRequest) XXX_Size ¶
func (m *QueryAllSupplychainRequest) XXX_Size() int
func (*QueryAllSupplychainRequest) XXX_Unmarshal ¶
func (m *QueryAllSupplychainRequest) XXX_Unmarshal(b []byte) error
type QueryAllSupplychainResponse ¶
type QueryAllSupplychainResponse struct { Supplychain []Supplychain `protobuf:"bytes,1,rep,name=Supplychain,proto3" json:"Supplychain"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllSupplychainResponse) Descriptor ¶
func (*QueryAllSupplychainResponse) Descriptor() ([]byte, []int)
func (*QueryAllSupplychainResponse) GetPagination ¶
func (m *QueryAllSupplychainResponse) GetPagination() *query.PageResponse
func (*QueryAllSupplychainResponse) GetSupplychain ¶
func (m *QueryAllSupplychainResponse) GetSupplychain() []Supplychain
func (*QueryAllSupplychainResponse) Marshal ¶
func (m *QueryAllSupplychainResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllSupplychainResponse) MarshalTo ¶
func (m *QueryAllSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllSupplychainResponse) MarshalToSizedBuffer ¶
func (m *QueryAllSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllSupplychainResponse) ProtoMessage ¶
func (*QueryAllSupplychainResponse) ProtoMessage()
func (*QueryAllSupplychainResponse) Reset ¶
func (m *QueryAllSupplychainResponse) Reset()
func (*QueryAllSupplychainResponse) Size ¶
func (m *QueryAllSupplychainResponse) Size() (n int)
func (*QueryAllSupplychainResponse) String ¶
func (m *QueryAllSupplychainResponse) String() string
func (*QueryAllSupplychainResponse) Unmarshal ¶
func (m *QueryAllSupplychainResponse) Unmarshal(dAtA []byte) error
func (*QueryAllSupplychainResponse) XXX_DiscardUnknown ¶
func (m *QueryAllSupplychainResponse) XXX_DiscardUnknown()
func (*QueryAllSupplychainResponse) XXX_Marshal ¶
func (m *QueryAllSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllSupplychainResponse) XXX_Merge ¶
func (m *QueryAllSupplychainResponse) XXX_Merge(src proto.Message)
func (*QueryAllSupplychainResponse) XXX_Size ¶
func (m *QueryAllSupplychainResponse) XXX_Size() int
func (*QueryAllSupplychainResponse) XXX_Unmarshal ¶
func (m *QueryAllSupplychainResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a Bitcannaid by id. Bitcannaid(ctx context.Context, in *QueryGetBitcannaidRequest, opts ...grpc.CallOption) (*QueryGetBitcannaidResponse, error) // Queries a list of Bitcannaid items. BitcannaidAll(ctx context.Context, in *QueryAllBitcannaidRequest, opts ...grpc.CallOption) (*QueryAllBitcannaidResponse, error) // Queries a Supplychain by id. Supplychain(ctx context.Context, in *QueryGetSupplychainRequest, opts ...grpc.CallOption) (*QueryGetSupplychainResponse, error) // Queries a list of Supplychain items. SupplychainAll(ctx context.Context, in *QueryAllSupplychainRequest, opts ...grpc.CallOption) (*QueryAllSupplychainResponse, 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 QueryGetBitcannaidRequest ¶
type QueryGetBitcannaidRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetBitcannaidRequest) Descriptor ¶
func (*QueryGetBitcannaidRequest) Descriptor() ([]byte, []int)
func (*QueryGetBitcannaidRequest) GetId ¶
func (m *QueryGetBitcannaidRequest) GetId() uint64
func (*QueryGetBitcannaidRequest) Marshal ¶
func (m *QueryGetBitcannaidRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetBitcannaidRequest) MarshalTo ¶
func (m *QueryGetBitcannaidRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBitcannaidRequest) MarshalToSizedBuffer ¶
func (m *QueryGetBitcannaidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBitcannaidRequest) ProtoMessage ¶
func (*QueryGetBitcannaidRequest) ProtoMessage()
func (*QueryGetBitcannaidRequest) Reset ¶
func (m *QueryGetBitcannaidRequest) Reset()
func (*QueryGetBitcannaidRequest) Size ¶
func (m *QueryGetBitcannaidRequest) Size() (n int)
func (*QueryGetBitcannaidRequest) String ¶
func (m *QueryGetBitcannaidRequest) String() string
func (*QueryGetBitcannaidRequest) Unmarshal ¶
func (m *QueryGetBitcannaidRequest) Unmarshal(dAtA []byte) error
func (*QueryGetBitcannaidRequest) XXX_DiscardUnknown ¶
func (m *QueryGetBitcannaidRequest) XXX_DiscardUnknown()
func (*QueryGetBitcannaidRequest) XXX_Marshal ¶
func (m *QueryGetBitcannaidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBitcannaidRequest) XXX_Merge ¶
func (m *QueryGetBitcannaidRequest) XXX_Merge(src proto.Message)
func (*QueryGetBitcannaidRequest) XXX_Size ¶
func (m *QueryGetBitcannaidRequest) XXX_Size() int
func (*QueryGetBitcannaidRequest) XXX_Unmarshal ¶
func (m *QueryGetBitcannaidRequest) XXX_Unmarshal(b []byte) error
type QueryGetBitcannaidResponse ¶
type QueryGetBitcannaidResponse struct {
Bitcannaid Bitcannaid `protobuf:"bytes,1,opt,name=Bitcannaid,proto3" json:"Bitcannaid"`
}
func (*QueryGetBitcannaidResponse) Descriptor ¶
func (*QueryGetBitcannaidResponse) Descriptor() ([]byte, []int)
func (*QueryGetBitcannaidResponse) GetBitcannaid ¶
func (m *QueryGetBitcannaidResponse) GetBitcannaid() Bitcannaid
func (*QueryGetBitcannaidResponse) Marshal ¶
func (m *QueryGetBitcannaidResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetBitcannaidResponse) MarshalTo ¶
func (m *QueryGetBitcannaidResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBitcannaidResponse) MarshalToSizedBuffer ¶
func (m *QueryGetBitcannaidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBitcannaidResponse) ProtoMessage ¶
func (*QueryGetBitcannaidResponse) ProtoMessage()
func (*QueryGetBitcannaidResponse) Reset ¶
func (m *QueryGetBitcannaidResponse) Reset()
func (*QueryGetBitcannaidResponse) Size ¶
func (m *QueryGetBitcannaidResponse) Size() (n int)
func (*QueryGetBitcannaidResponse) String ¶
func (m *QueryGetBitcannaidResponse) String() string
func (*QueryGetBitcannaidResponse) Unmarshal ¶
func (m *QueryGetBitcannaidResponse) Unmarshal(dAtA []byte) error
func (*QueryGetBitcannaidResponse) XXX_DiscardUnknown ¶
func (m *QueryGetBitcannaidResponse) XXX_DiscardUnknown()
func (*QueryGetBitcannaidResponse) XXX_Marshal ¶
func (m *QueryGetBitcannaidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBitcannaidResponse) XXX_Merge ¶
func (m *QueryGetBitcannaidResponse) XXX_Merge(src proto.Message)
func (*QueryGetBitcannaidResponse) XXX_Size ¶
func (m *QueryGetBitcannaidResponse) XXX_Size() int
func (*QueryGetBitcannaidResponse) XXX_Unmarshal ¶
func (m *QueryGetBitcannaidResponse) XXX_Unmarshal(b []byte) error
type QueryGetSupplychainRequest ¶
type QueryGetSupplychainRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetSupplychainRequest) Descriptor ¶
func (*QueryGetSupplychainRequest) Descriptor() ([]byte, []int)
func (*QueryGetSupplychainRequest) GetId ¶
func (m *QueryGetSupplychainRequest) GetId() uint64
func (*QueryGetSupplychainRequest) Marshal ¶
func (m *QueryGetSupplychainRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetSupplychainRequest) MarshalTo ¶
func (m *QueryGetSupplychainRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetSupplychainRequest) MarshalToSizedBuffer ¶
func (m *QueryGetSupplychainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetSupplychainRequest) ProtoMessage ¶
func (*QueryGetSupplychainRequest) ProtoMessage()
func (*QueryGetSupplychainRequest) Reset ¶
func (m *QueryGetSupplychainRequest) Reset()
func (*QueryGetSupplychainRequest) Size ¶
func (m *QueryGetSupplychainRequest) Size() (n int)
func (*QueryGetSupplychainRequest) String ¶
func (m *QueryGetSupplychainRequest) String() string
func (*QueryGetSupplychainRequest) Unmarshal ¶
func (m *QueryGetSupplychainRequest) Unmarshal(dAtA []byte) error
func (*QueryGetSupplychainRequest) XXX_DiscardUnknown ¶
func (m *QueryGetSupplychainRequest) XXX_DiscardUnknown()
func (*QueryGetSupplychainRequest) XXX_Marshal ¶
func (m *QueryGetSupplychainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetSupplychainRequest) XXX_Merge ¶
func (m *QueryGetSupplychainRequest) XXX_Merge(src proto.Message)
func (*QueryGetSupplychainRequest) XXX_Size ¶
func (m *QueryGetSupplychainRequest) XXX_Size() int
func (*QueryGetSupplychainRequest) XXX_Unmarshal ¶
func (m *QueryGetSupplychainRequest) XXX_Unmarshal(b []byte) error
type QueryGetSupplychainResponse ¶
type QueryGetSupplychainResponse struct {
Supplychain Supplychain `protobuf:"bytes,1,opt,name=Supplychain,proto3" json:"Supplychain"`
}
func (*QueryGetSupplychainResponse) Descriptor ¶
func (*QueryGetSupplychainResponse) Descriptor() ([]byte, []int)
func (*QueryGetSupplychainResponse) GetSupplychain ¶
func (m *QueryGetSupplychainResponse) GetSupplychain() Supplychain
func (*QueryGetSupplychainResponse) Marshal ¶
func (m *QueryGetSupplychainResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetSupplychainResponse) MarshalTo ¶
func (m *QueryGetSupplychainResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetSupplychainResponse) MarshalToSizedBuffer ¶
func (m *QueryGetSupplychainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetSupplychainResponse) ProtoMessage ¶
func (*QueryGetSupplychainResponse) ProtoMessage()
func (*QueryGetSupplychainResponse) Reset ¶
func (m *QueryGetSupplychainResponse) Reset()
func (*QueryGetSupplychainResponse) Size ¶
func (m *QueryGetSupplychainResponse) Size() (n int)
func (*QueryGetSupplychainResponse) String ¶
func (m *QueryGetSupplychainResponse) String() string
func (*QueryGetSupplychainResponse) Unmarshal ¶
func (m *QueryGetSupplychainResponse) Unmarshal(dAtA []byte) error
func (*QueryGetSupplychainResponse) XXX_DiscardUnknown ¶
func (m *QueryGetSupplychainResponse) XXX_DiscardUnknown()
func (*QueryGetSupplychainResponse) XXX_Marshal ¶
func (m *QueryGetSupplychainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetSupplychainResponse) XXX_Merge ¶
func (m *QueryGetSupplychainResponse) XXX_Merge(src proto.Message)
func (*QueryGetSupplychainResponse) XXX_Size ¶
func (m *QueryGetSupplychainResponse) XXX_Size() int
func (*QueryGetSupplychainResponse) XXX_Unmarshal ¶
func (m *QueryGetSupplychainResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a Bitcannaid by id. Bitcannaid(context.Context, *QueryGetBitcannaidRequest) (*QueryGetBitcannaidResponse, error) // Queries a list of Bitcannaid items. BitcannaidAll(context.Context, *QueryAllBitcannaidRequest) (*QueryAllBitcannaidResponse, error) // Queries a Supplychain by id. Supplychain(context.Context, *QueryGetSupplychainRequest) (*QueryGetSupplychainResponse, error) // Queries a list of Supplychain items. SupplychainAll(context.Context, *QueryAllSupplychainRequest) (*QueryAllSupplychainResponse, error) }
QueryServer is the server API for Query service.
type Supplychain ¶
type Supplychain struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Product string `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"` Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` Supplyinfo string `protobuf:"bytes,4,opt,name=supplyinfo,proto3" json:"supplyinfo,omitempty"` Supplyextra string `protobuf:"bytes,5,opt,name=supplyextra,proto3" json:"supplyextra,omitempty"` Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` }
func (*Supplychain) Descriptor ¶
func (*Supplychain) Descriptor() ([]byte, []int)
func (*Supplychain) GetCreator ¶
func (m *Supplychain) GetCreator() string
func (*Supplychain) GetId ¶
func (m *Supplychain) GetId() uint64
func (*Supplychain) GetInfo ¶
func (m *Supplychain) GetInfo() string
func (*Supplychain) GetProduct ¶
func (m *Supplychain) GetProduct() string
func (*Supplychain) GetSupplyextra ¶
func (m *Supplychain) GetSupplyextra() string
func (*Supplychain) GetSupplyinfo ¶
func (m *Supplychain) GetSupplyinfo() string
func (*Supplychain) Marshal ¶
func (m *Supplychain) Marshal() (dAtA []byte, err error)
func (*Supplychain) MarshalToSizedBuffer ¶
func (m *Supplychain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Supplychain) ProtoMessage ¶
func (*Supplychain) ProtoMessage()
func (*Supplychain) Reset ¶
func (m *Supplychain) Reset()
func (*Supplychain) Size ¶
func (m *Supplychain) Size() (n int)
func (*Supplychain) String ¶
func (m *Supplychain) String() string
func (*Supplychain) Unmarshal ¶
func (m *Supplychain) Unmarshal(dAtA []byte) error
func (*Supplychain) XXX_DiscardUnknown ¶
func (m *Supplychain) XXX_DiscardUnknown()
func (*Supplychain) XXX_Marshal ¶
func (m *Supplychain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Supplychain) XXX_Merge ¶
func (m *Supplychain) XXX_Merge(src proto.Message)
func (*Supplychain) XXX_Size ¶
func (m *Supplychain) XXX_Size() int
func (*Supplychain) XXX_Unmarshal ¶
func (m *Supplychain) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateBitcannaid ¶
func (*UnimplementedMsgServer) CreateBitcannaid(ctx context.Context, req *MsgCreateBitcannaid) (*MsgCreateBitcannaidResponse, error)
func (*UnimplementedMsgServer) CreateSupplychain ¶
func (*UnimplementedMsgServer) CreateSupplychain(ctx context.Context, req *MsgCreateSupplychain) (*MsgCreateSupplychainResponse, error)
func (*UnimplementedMsgServer) DeleteBitcannaid ¶
func (*UnimplementedMsgServer) DeleteBitcannaid(ctx context.Context, req *MsgDeleteBitcannaid) (*MsgDeleteBitcannaidResponse, error)
func (*UnimplementedMsgServer) DeleteSupplychain ¶
func (*UnimplementedMsgServer) DeleteSupplychain(ctx context.Context, req *MsgDeleteSupplychain) (*MsgDeleteSupplychainResponse, error)
func (*UnimplementedMsgServer) UpdateBitcannaid ¶
func (*UnimplementedMsgServer) UpdateBitcannaid(ctx context.Context, req *MsgUpdateBitcannaid) (*MsgUpdateBitcannaidResponse, error)
func (*UnimplementedMsgServer) UpdateSupplychain ¶
func (*UnimplementedMsgServer) UpdateSupplychain(ctx context.Context, req *MsgUpdateSupplychain) (*MsgUpdateSupplychainResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Bitcannaid ¶
func (*UnimplementedQueryServer) Bitcannaid(ctx context.Context, req *QueryGetBitcannaidRequest) (*QueryGetBitcannaidResponse, error)
func (*UnimplementedQueryServer) BitcannaidAll ¶
func (*UnimplementedQueryServer) BitcannaidAll(ctx context.Context, req *QueryAllBitcannaidRequest) (*QueryAllBitcannaidResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Supplychain ¶
func (*UnimplementedQueryServer) Supplychain(ctx context.Context, req *QueryGetSupplychainRequest) (*QueryGetSupplychainResponse, error)
func (*UnimplementedQueryServer) SupplychainAll ¶
func (*UnimplementedQueryServer) SupplychainAll(ctx context.Context, req *QueryAllSupplychainRequest) (*QueryAllSupplychainResponse, error)