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 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)
- func SupplierOperatorKey(supplierOperatorAddr string) []byte
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSupplierList() []types.Supplier
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgStakeSupplier
- func (*MsgStakeSupplier) Descriptor() ([]byte, []int)
- func (m *MsgStakeSupplier) GetOperatorAddress() string
- func (m *MsgStakeSupplier) GetOwnerAddress() string
- func (m *MsgStakeSupplier) GetServices() []*types1.SupplierServiceConfig
- func (m *MsgStakeSupplier) GetSigner() string
- func (m *MsgStakeSupplier) GetStake() *types.Coin
- func (msg *MsgStakeSupplier) IsSigner(address string) bool
- func (m *MsgStakeSupplier) Marshal() (dAtA []byte, err error)
- func (m *MsgStakeSupplier) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStakeSupplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStakeSupplier) ProtoMessage()
- func (m *MsgStakeSupplier) Reset()
- func (m *MsgStakeSupplier) Size() (n int)
- func (m *MsgStakeSupplier) String() string
- func (m *MsgStakeSupplier) Unmarshal(dAtA []byte) error
- func (msg *MsgStakeSupplier) ValidateBasic() error
- func (m *MsgStakeSupplier) XXX_DiscardUnknown()
- func (m *MsgStakeSupplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStakeSupplier) XXX_Merge(src proto.Message)
- func (m *MsgStakeSupplier) XXX_Size() int
- func (m *MsgStakeSupplier) XXX_Unmarshal(b []byte) error
- type MsgStakeSupplierResponse
- func (*MsgStakeSupplierResponse) Descriptor() ([]byte, []int)
- func (m *MsgStakeSupplierResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStakeSupplierResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStakeSupplierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStakeSupplierResponse) ProtoMessage()
- func (m *MsgStakeSupplierResponse) Reset()
- func (m *MsgStakeSupplierResponse) Size() (n int)
- func (m *MsgStakeSupplierResponse) String() string
- func (m *MsgStakeSupplierResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStakeSupplierResponse) XXX_DiscardUnknown()
- func (m *MsgStakeSupplierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStakeSupplierResponse) XXX_Merge(src proto.Message)
- func (m *MsgStakeSupplierResponse) XXX_Size() int
- func (m *MsgStakeSupplierResponse) XXX_Unmarshal(b []byte) error
- type MsgUnstakeSupplier
- func (*MsgUnstakeSupplier) Descriptor() ([]byte, []int)
- func (m *MsgUnstakeSupplier) GetOperatorAddress() string
- func (m *MsgUnstakeSupplier) GetSigner() string
- func (m *MsgUnstakeSupplier) Marshal() (dAtA []byte, err error)
- func (m *MsgUnstakeSupplier) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnstakeSupplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnstakeSupplier) ProtoMessage()
- func (m *MsgUnstakeSupplier) Reset()
- func (m *MsgUnstakeSupplier) Size() (n int)
- func (m *MsgUnstakeSupplier) String() string
- func (m *MsgUnstakeSupplier) Unmarshal(dAtA []byte) error
- func (msg *MsgUnstakeSupplier) ValidateBasic() error
- func (m *MsgUnstakeSupplier) XXX_DiscardUnknown()
- func (m *MsgUnstakeSupplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnstakeSupplier) XXX_Merge(src proto.Message)
- func (m *MsgUnstakeSupplier) XXX_Size() int
- func (m *MsgUnstakeSupplier) XXX_Unmarshal(b []byte) error
- type MsgUnstakeSupplierResponse
- func (*MsgUnstakeSupplierResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnstakeSupplierResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnstakeSupplierResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnstakeSupplierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnstakeSupplierResponse) ProtoMessage()
- func (m *MsgUnstakeSupplierResponse) Reset()
- func (m *MsgUnstakeSupplierResponse) Size() (n int)
- func (m *MsgUnstakeSupplierResponse) String() string
- func (m *MsgUnstakeSupplierResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnstakeSupplierResponse) XXX_DiscardUnknown()
- func (m *MsgUnstakeSupplierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnstakeSupplierResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnstakeSupplierResponse) XXX_Size() int
- func (m *MsgUnstakeSupplierResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- 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 (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllSuppliersRequest
- func (*QueryAllSuppliersRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllSuppliersRequest) GetPagination() *query.PageRequest
- func (m *QueryAllSuppliersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllSuppliersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllSuppliersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllSuppliersRequest) ProtoMessage()
- func (m *QueryAllSuppliersRequest) Reset()
- func (m *QueryAllSuppliersRequest) Size() (n int)
- func (m *QueryAllSuppliersRequest) String() string
- func (m *QueryAllSuppliersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllSuppliersRequest) XXX_DiscardUnknown()
- func (m *QueryAllSuppliersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllSuppliersRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllSuppliersRequest) XXX_Size() int
- func (m *QueryAllSuppliersRequest) XXX_Unmarshal(b []byte) error
- type QueryAllSuppliersResponse
- func (*QueryAllSuppliersResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllSuppliersResponse) GetPagination() *query.PageResponse
- func (m *QueryAllSuppliersResponse) GetSupplier() []types.Supplier
- func (m *QueryAllSuppliersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllSuppliersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllSuppliersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllSuppliersResponse) ProtoMessage()
- func (m *QueryAllSuppliersResponse) Reset()
- func (m *QueryAllSuppliersResponse) Size() (n int)
- func (m *QueryAllSuppliersResponse) String() string
- func (m *QueryAllSuppliersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllSuppliersResponse) XXX_DiscardUnknown()
- func (m *QueryAllSuppliersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllSuppliersResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllSuppliersResponse) XXX_Size() int
- func (m *QueryAllSuppliersResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetSupplierRequest
- func (*QueryGetSupplierRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetSupplierRequest) GetOperatorAddress() string
- func (m *QueryGetSupplierRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSupplierRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSupplierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSupplierRequest) ProtoMessage()
- func (m *QueryGetSupplierRequest) Reset()
- func (m *QueryGetSupplierRequest) Size() (n int)
- func (m *QueryGetSupplierRequest) String() string
- func (m *QueryGetSupplierRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetSupplierRequest) XXX_DiscardUnknown()
- func (m *QueryGetSupplierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSupplierRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetSupplierRequest) XXX_Size() int
- func (m *QueryGetSupplierRequest) XXX_Unmarshal(b []byte) error
- type QueryGetSupplierResponse
- func (*QueryGetSupplierResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetSupplierResponse) GetSupplier() types.Supplier
- func (m *QueryGetSupplierResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSupplierResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSupplierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSupplierResponse) ProtoMessage()
- func (m *QueryGetSupplierResponse) Reset()
- func (m *QueryGetSupplierResponse) Size() (n int)
- func (m *QueryGetSupplierResponse) String() string
- func (m *QueryGetSupplierResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetSupplierResponse) XXX_DiscardUnknown()
- func (m *QueryGetSupplierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSupplierResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetSupplierResponse) XXX_Size() int
- func (m *QueryGetSupplierResponse) 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 ServiceKeeper
- type SessionKeeper
- type SharedKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) StakeSupplier(ctx context.Context, req *MsgStakeSupplier) (*MsgStakeSupplierResponse, error)
- func (*UnimplementedMsgServer) UnstakeSupplier(ctx context.Context, req *MsgUnstakeSupplier) (*MsgUnstakeSupplierResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllSuppliers(ctx context.Context, req *QueryAllSuppliersRequest) (*QueryAllSuppliersResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Supplier(ctx context.Context, req *QueryGetSupplierRequest) (*QueryGetSupplierResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "supplier" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_supplier" )
const (
// SupplierKeyOperatorPrefix is the prefix to retrieve all Supplier
SupplierKeyOperatorPrefix = "Supplier/operator_address/"
)
const TypeMsgStakeSupplier = "stake_supplier"
const TypeMsgUnstakeSupplier = "unstake_supplier"
Variables ¶
var ( ErrSupplierInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrSupplierInvalidStake = sdkerrors.Register(ModuleName, 1101, "invalid supplier stake") ErrSupplierInvalidAddress = sdkerrors.Register(ModuleName, 1102, "invalid address") ErrSupplierNotFound = sdkerrors.Register(ModuleName, 1103, "supplier not found") ErrSupplierInvalidServiceConfig = sdkerrors.Register(ModuleName, 1104, "invalid service config") ErrSupplierInvalidSessionStartHeight = sdkerrors.Register(ModuleName, 1105, "invalid session start height") ErrSupplierInvalidSessionId = sdkerrors.Register(ModuleName, 1106, "invalid session ID") ErrSupplierInvalidService = sdkerrors.Register(ModuleName, 1107, "invalid service in supplier") ErrSupplierInvalidSessionEndHeight = sdkerrors.Register(ModuleName, 1108, "invalid session ending height") ErrSupplierIsUnstaking = sdkerrors.Register(ModuleName, 1109, "supplier is in unbonding period") ErrSupplierParamsInvalid = sdkerrors.Register(ModuleName, 1110, "invalid supplier params") ErrSupplierServiceNotFound = sdkerrors.Register(ModuleName, 1111, "service not found") )
x/supplier module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( 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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ParamsKey = []byte("p_supplier")
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶ added in v0.0.3
func RegisterQueryHandler ¶ added in v0.0.3
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.0.3
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 ¶ added in v0.0.3
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 ¶ added in v0.0.3
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 ¶ added in v0.0.3
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SupplierOperatorKey ¶ added in v0.0.6
SupplierOperatorKey returns the store key to retrieve a Supplier from the index fields
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected interface for the Account module.
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected interface for the Bank module.
type GenesisState ¶ added in v0.0.3
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` SupplierList []types.Supplier `protobuf:"bytes,2,rep,name=supplierList,proto3" json:"supplierList"` }
GenesisState defines the supplier module's genesis state.
func DefaultGenesis ¶ added in v0.0.3
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶ added in v0.0.3
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶ added in v0.0.3
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSupplierList ¶ added in v0.0.3
func (m *GenesisState) GetSupplierList() []types.Supplier
func (*GenesisState) Marshal ¶ added in v0.0.3
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.0.3
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.0.3
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.0.3
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.0.3
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.0.3
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.0.3
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶ added in v0.0.3
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.0.3
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.0.3
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.0.3
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.0.3
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.0.3
type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) StakeSupplier(ctx context.Context, in *MsgStakeSupplier, opts ...grpc.CallOption) (*MsgStakeSupplierResponse, error) UnstakeSupplier(ctx context.Context, in *MsgUnstakeSupplier, opts ...grpc.CallOption) (*MsgUnstakeSupplierResponse, 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 ¶ added in v0.0.3
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶ added in v0.0.3
type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) StakeSupplier(context.Context, *MsgStakeSupplier) (*MsgStakeSupplierResponse, error) UnstakeSupplier(context.Context, *MsgUnstakeSupplier) (*MsgUnstakeSupplierResponse, error) }
MsgServer is the server API for Msg service.
type MsgStakeSupplier ¶ added in v0.0.3
type MsgStakeSupplier struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` OwnerAddress string `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` OperatorAddress string `protobuf:"bytes,3,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"` Stake *types.Coin `protobuf:"bytes,4,opt,name=stake,proto3" json:"stake,omitempty"` Services []*types1.SupplierServiceConfig `protobuf:"bytes,5,rep,name=services,proto3" json:"services,omitempty"` }
func NewMsgStakeSupplier ¶ added in v0.0.3
func NewMsgStakeSupplier( signerAddress string, ownerAddress string, supplierOperatorAddress string, stake sdk.Coin, services []*sharedtypes.SupplierServiceConfig, ) *MsgStakeSupplier
func (*MsgStakeSupplier) Descriptor ¶ added in v0.0.3
func (*MsgStakeSupplier) Descriptor() ([]byte, []int)
func (*MsgStakeSupplier) GetOperatorAddress ¶ added in v0.0.6
func (m *MsgStakeSupplier) GetOperatorAddress() string
func (*MsgStakeSupplier) GetOwnerAddress ¶ added in v0.0.6
func (m *MsgStakeSupplier) GetOwnerAddress() string
func (*MsgStakeSupplier) GetServices ¶ added in v0.0.3
func (m *MsgStakeSupplier) GetServices() []*types1.SupplierServiceConfig
func (*MsgStakeSupplier) GetSigner ¶ added in v0.0.6
func (m *MsgStakeSupplier) GetSigner() string
func (*MsgStakeSupplier) GetStake ¶ added in v0.0.3
func (m *MsgStakeSupplier) GetStake() *types.Coin
func (*MsgStakeSupplier) IsSigner ¶ added in v0.0.6
func (msg *MsgStakeSupplier) IsSigner(address string) bool
func (*MsgStakeSupplier) Marshal ¶ added in v0.0.3
func (m *MsgStakeSupplier) Marshal() (dAtA []byte, err error)
func (*MsgStakeSupplier) MarshalTo ¶ added in v0.0.3
func (m *MsgStakeSupplier) MarshalTo(dAtA []byte) (int, error)
func (*MsgStakeSupplier) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgStakeSupplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStakeSupplier) ProtoMessage ¶ added in v0.0.3
func (*MsgStakeSupplier) ProtoMessage()
func (*MsgStakeSupplier) Reset ¶ added in v0.0.3
func (m *MsgStakeSupplier) Reset()
func (*MsgStakeSupplier) Size ¶ added in v0.0.3
func (m *MsgStakeSupplier) Size() (n int)
func (*MsgStakeSupplier) String ¶ added in v0.0.3
func (m *MsgStakeSupplier) String() string
func (*MsgStakeSupplier) Unmarshal ¶ added in v0.0.3
func (m *MsgStakeSupplier) Unmarshal(dAtA []byte) error
func (*MsgStakeSupplier) ValidateBasic ¶ added in v0.0.3
func (msg *MsgStakeSupplier) ValidateBasic() error
func (*MsgStakeSupplier) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgStakeSupplier) XXX_DiscardUnknown()
func (*MsgStakeSupplier) XXX_Marshal ¶ added in v0.0.3
func (m *MsgStakeSupplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStakeSupplier) XXX_Merge ¶ added in v0.0.3
func (m *MsgStakeSupplier) XXX_Merge(src proto.Message)
func (*MsgStakeSupplier) XXX_Size ¶ added in v0.0.3
func (m *MsgStakeSupplier) XXX_Size() int
func (*MsgStakeSupplier) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgStakeSupplier) XXX_Unmarshal(b []byte) error
type MsgStakeSupplierResponse ¶ added in v0.0.3
type MsgStakeSupplierResponse struct { }
func (*MsgStakeSupplierResponse) Descriptor ¶ added in v0.0.3
func (*MsgStakeSupplierResponse) Descriptor() ([]byte, []int)
func (*MsgStakeSupplierResponse) Marshal ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) Marshal() (dAtA []byte, err error)
func (*MsgStakeSupplierResponse) MarshalTo ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStakeSupplierResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStakeSupplierResponse) ProtoMessage ¶ added in v0.0.3
func (*MsgStakeSupplierResponse) ProtoMessage()
func (*MsgStakeSupplierResponse) Reset ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) Reset()
func (*MsgStakeSupplierResponse) Size ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) Size() (n int)
func (*MsgStakeSupplierResponse) String ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) String() string
func (*MsgStakeSupplierResponse) Unmarshal ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) Unmarshal(dAtA []byte) error
func (*MsgStakeSupplierResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) XXX_DiscardUnknown()
func (*MsgStakeSupplierResponse) XXX_Marshal ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStakeSupplierResponse) XXX_Merge ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) XXX_Merge(src proto.Message)
func (*MsgStakeSupplierResponse) XXX_Size ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) XXX_Size() int
func (*MsgStakeSupplierResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgStakeSupplierResponse) XXX_Unmarshal(b []byte) error
type MsgUnstakeSupplier ¶ added in v0.0.3
type MsgUnstakeSupplier struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` OperatorAddress string `protobuf:"bytes,2,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"` }
func NewMsgUnstakeSupplier ¶ added in v0.0.3
func NewMsgUnstakeSupplier(signerAddress, operatorAddress string) *MsgUnstakeSupplier
func (*MsgUnstakeSupplier) Descriptor ¶ added in v0.0.3
func (*MsgUnstakeSupplier) Descriptor() ([]byte, []int)
func (*MsgUnstakeSupplier) GetOperatorAddress ¶ added in v0.0.6
func (m *MsgUnstakeSupplier) GetOperatorAddress() string
func (*MsgUnstakeSupplier) GetSigner ¶ added in v0.0.6
func (m *MsgUnstakeSupplier) GetSigner() string
func (*MsgUnstakeSupplier) Marshal ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) Marshal() (dAtA []byte, err error)
func (*MsgUnstakeSupplier) MarshalTo ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnstakeSupplier) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnstakeSupplier) ProtoMessage ¶ added in v0.0.3
func (*MsgUnstakeSupplier) ProtoMessage()
func (*MsgUnstakeSupplier) Reset ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) Reset()
func (*MsgUnstakeSupplier) Size ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) Size() (n int)
func (*MsgUnstakeSupplier) String ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) String() string
func (*MsgUnstakeSupplier) Unmarshal ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) Unmarshal(dAtA []byte) error
func (*MsgUnstakeSupplier) ValidateBasic ¶ added in v0.0.3
func (msg *MsgUnstakeSupplier) ValidateBasic() error
func (*MsgUnstakeSupplier) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) XXX_DiscardUnknown()
func (*MsgUnstakeSupplier) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnstakeSupplier) XXX_Merge ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) XXX_Merge(src proto.Message)
func (*MsgUnstakeSupplier) XXX_Size ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) XXX_Size() int
func (*MsgUnstakeSupplier) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUnstakeSupplier) XXX_Unmarshal(b []byte) error
type MsgUnstakeSupplierResponse ¶ added in v0.0.3
type MsgUnstakeSupplierResponse struct { }
func (*MsgUnstakeSupplierResponse) Descriptor ¶ added in v0.0.3
func (*MsgUnstakeSupplierResponse) Descriptor() ([]byte, []int)
func (*MsgUnstakeSupplierResponse) Marshal ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnstakeSupplierResponse) MarshalTo ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnstakeSupplierResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnstakeSupplierResponse) ProtoMessage ¶ added in v0.0.3
func (*MsgUnstakeSupplierResponse) ProtoMessage()
func (*MsgUnstakeSupplierResponse) Reset ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) Reset()
func (*MsgUnstakeSupplierResponse) Size ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) Size() (n int)
func (*MsgUnstakeSupplierResponse) String ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) String() string
func (*MsgUnstakeSupplierResponse) Unmarshal ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) Unmarshal(dAtA []byte) error
func (*MsgUnstakeSupplierResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) XXX_DiscardUnknown()
func (*MsgUnstakeSupplierResponse) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnstakeSupplierResponse) XXX_Merge ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) XXX_Merge(src proto.Message)
func (*MsgUnstakeSupplierResponse) XXX_Size ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) XXX_Size() int
func (*MsgUnstakeSupplierResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUnstakeSupplierResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶ added in v0.0.3
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/supplier parameters to update. // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶ added in v0.0.3
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v0.0.3
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.0.3
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶ added in v0.0.3
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.0.3
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.0.3
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v0.0.3
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.0.3
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v0.0.3
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.0.3
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.0.3
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.0.3
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.0.3
type Params struct { }
Params defines the parameters for the module.
func DefaultParams ¶ added in v0.0.3
func DefaultParams() Params
DefaultParams returns a default set of parameters
func (*Params) Descriptor ¶ added in v0.0.3
func (*Params) MarshalToSizedBuffer ¶ added in v0.0.3
func (*Params) ParamSetPairs ¶ added in v0.0.3
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶ added in v0.0.3
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.0.3
func (*Params) XXX_Unmarshal ¶ added in v0.0.3
type QueryAllSuppliersRequest ¶ added in v0.0.3
type QueryAllSuppliersRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllSuppliersRequest) Descriptor ¶ added in v0.0.3
func (*QueryAllSuppliersRequest) Descriptor() ([]byte, []int)
func (*QueryAllSuppliersRequest) GetPagination ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) GetPagination() *query.PageRequest
func (*QueryAllSuppliersRequest) Marshal ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllSuppliersRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllSuppliersRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllSuppliersRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryAllSuppliersRequest) ProtoMessage()
func (*QueryAllSuppliersRequest) Reset ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) Reset()
func (*QueryAllSuppliersRequest) Size ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) Size() (n int)
func (*QueryAllSuppliersRequest) String ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) String() string
func (*QueryAllSuppliersRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) Unmarshal(dAtA []byte) error
func (*QueryAllSuppliersRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) XXX_DiscardUnknown()
func (*QueryAllSuppliersRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllSuppliersRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) XXX_Merge(src proto.Message)
func (*QueryAllSuppliersRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) XXX_Size() int
func (*QueryAllSuppliersRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) XXX_Unmarshal(b []byte) error
type QueryAllSuppliersResponse ¶ added in v0.0.3
type QueryAllSuppliersResponse struct { Supplier []types.Supplier `protobuf:"bytes,1,rep,name=supplier,proto3" json:"supplier"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllSuppliersResponse) Descriptor ¶ added in v0.0.3
func (*QueryAllSuppliersResponse) Descriptor() ([]byte, []int)
func (*QueryAllSuppliersResponse) GetPagination ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) GetPagination() *query.PageResponse
func (*QueryAllSuppliersResponse) GetSupplier ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) GetSupplier() []types.Supplier
func (*QueryAllSuppliersResponse) Marshal ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllSuppliersResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllSuppliersResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllSuppliersResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryAllSuppliersResponse) ProtoMessage()
func (*QueryAllSuppliersResponse) Reset ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) Reset()
func (*QueryAllSuppliersResponse) Size ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) Size() (n int)
func (*QueryAllSuppliersResponse) String ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) String() string
func (*QueryAllSuppliersResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) Unmarshal(dAtA []byte) error
func (*QueryAllSuppliersResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) XXX_DiscardUnknown()
func (*QueryAllSuppliersResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllSuppliersResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) XXX_Merge(src proto.Message)
func (*QueryAllSuppliersResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) XXX_Size() int
func (*QueryAllSuppliersResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryAllSuppliersResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶ added in v0.0.3
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of Supplier items. Supplier(ctx context.Context, in *QueryGetSupplierRequest, opts ...grpc.CallOption) (*QueryGetSupplierResponse, error) AllSuppliers(ctx context.Context, in *QueryAllSuppliersRequest, opts ...grpc.CallOption) (*QueryAllSuppliersResponse, 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 ¶ added in v0.0.3
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryGetSupplierRequest ¶ added in v0.0.3
type QueryGetSupplierRequest struct {
OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
}
func (*QueryGetSupplierRequest) Descriptor ¶ added in v0.0.3
func (*QueryGetSupplierRequest) Descriptor() ([]byte, []int)
func (*QueryGetSupplierRequest) GetOperatorAddress ¶ added in v0.0.6
func (m *QueryGetSupplierRequest) GetOperatorAddress() string
func (*QueryGetSupplierRequest) Marshal ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetSupplierRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetSupplierRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetSupplierRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryGetSupplierRequest) ProtoMessage()
func (*QueryGetSupplierRequest) Reset ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) Reset()
func (*QueryGetSupplierRequest) Size ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) Size() (n int)
func (*QueryGetSupplierRequest) String ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) String() string
func (*QueryGetSupplierRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) Unmarshal(dAtA []byte) error
func (*QueryGetSupplierRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) XXX_DiscardUnknown()
func (*QueryGetSupplierRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetSupplierRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) XXX_Merge(src proto.Message)
func (*QueryGetSupplierRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) XXX_Size() int
func (*QueryGetSupplierRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryGetSupplierRequest) XXX_Unmarshal(b []byte) error
type QueryGetSupplierResponse ¶ added in v0.0.3
type QueryGetSupplierResponse struct {
Supplier types.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier"`
}
func (*QueryGetSupplierResponse) Descriptor ¶ added in v0.0.3
func (*QueryGetSupplierResponse) Descriptor() ([]byte, []int)
func (*QueryGetSupplierResponse) GetSupplier ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) GetSupplier() types.Supplier
func (*QueryGetSupplierResponse) Marshal ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetSupplierResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetSupplierResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetSupplierResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryGetSupplierResponse) ProtoMessage()
func (*QueryGetSupplierResponse) Reset ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) Reset()
func (*QueryGetSupplierResponse) Size ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) Size() (n int)
func (*QueryGetSupplierResponse) String ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) String() string
func (*QueryGetSupplierResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) Unmarshal(dAtA []byte) error
func (*QueryGetSupplierResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) XXX_DiscardUnknown()
func (*QueryGetSupplierResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetSupplierResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) XXX_Merge(src proto.Message)
func (*QueryGetSupplierResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) XXX_Size() int
func (*QueryGetSupplierResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryGetSupplierResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v0.0.3
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.0.3
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.0.3
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.0.3
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.0.3
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.0.3
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.0.3
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 ¶ added in v0.0.3
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.0.3
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.0.3
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.0.3
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.0.3
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.0.3
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.0.3
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of Supplier items. Supplier(context.Context, *QueryGetSupplierRequest) (*QueryGetSupplierResponse, error) AllSuppliers(context.Context, *QueryAllSuppliersRequest) (*QueryAllSuppliersResponse, error) }
QueryServer is the server API for Query service.
type ServiceKeeper ¶ added in v0.0.4
type ServiceKeeper interface {
GetService(ctx context.Context, serviceId string) (sharedtypes.Service, bool)
}
ServiceKeeper defines the expected interface for the Service module.
type SessionKeeper ¶ added in v0.0.6
type SessionKeeper interface {
GetSession(ctx context.Context, req *sessiontypes.QueryGetSessionRequest) (*sessiontypes.QueryGetSessionResponse, error)
}
SessionKeeper defines the expected interface for the Session module.
type SharedKeeper ¶ added in v0.0.5
type SharedKeeper interface {}
SharedKeeper defines the expected interface needed to retrieve shared information.
type UnimplementedMsgServer ¶ added in v0.0.3
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) StakeSupplier ¶ added in v0.0.3
func (*UnimplementedMsgServer) StakeSupplier(ctx context.Context, req *MsgStakeSupplier) (*MsgStakeSupplierResponse, error)
func (*UnimplementedMsgServer) UnstakeSupplier ¶ added in v0.0.3
func (*UnimplementedMsgServer) UnstakeSupplier(ctx context.Context, req *MsgUnstakeSupplier) (*MsgUnstakeSupplierResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.0.3
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v0.0.3
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllSuppliers ¶ added in v0.0.3
func (*UnimplementedQueryServer) AllSuppliers(ctx context.Context, req *QueryAllSuppliersRequest) (*QueryAllSuppliersResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.0.3
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Supplier ¶ added in v0.0.3
func (*UnimplementedQueryServer) Supplier(ctx context.Context, req *QueryGetSupplierRequest) (*QueryGetSupplierResponse, error)