Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func IntKey(intIndex int64) []byte
- 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 ServiceConfigUpdateActivationHeightKey(serviceConfigUpdate sharedtypes.ServiceConfigUpdate) []byte
- func ServiceConfigUpdateDeactivationHeightKey(serviceConfigUpdate sharedtypes.ServiceConfigUpdate) []byte
- func ServiceConfigUpdateKey(serviceConfigUpdate sharedtypes.ServiceConfigUpdate) []byte
- func StringKey(strIndex string) []byte
- func SupplierOperatorKey(supplierOperatorAddr string) []byte
- func SupplierOperatorServiceKey(supplierOperatorAddr string, serviceId string) []byte
- func SupplierServiceConfigUpdateKey(serviceConfigUpdate sharedtypes.ServiceConfigUpdate) []byte
- func ValidateMinStake(minStakeAny any) error
- func ValidateStakingFee(stakingFeeAny any) error
- type AccountKeeper
- type BankKeeper
- type EventSupplierServiceConfigActivated
- func (*EventSupplierServiceConfigActivated) Descriptor() ([]byte, []int)
- func (m *EventSupplierServiceConfigActivated) GetActivationHeight() int64
- func (m *EventSupplierServiceConfigActivated) GetSupplier() *types.Supplier
- func (m *EventSupplierServiceConfigActivated) Marshal() (dAtA []byte, err error)
- func (m *EventSupplierServiceConfigActivated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSupplierServiceConfigActivated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSupplierServiceConfigActivated) ProtoMessage()
- func (m *EventSupplierServiceConfigActivated) Reset()
- func (m *EventSupplierServiceConfigActivated) Size() (n int)
- func (m *EventSupplierServiceConfigActivated) String() string
- func (m *EventSupplierServiceConfigActivated) Unmarshal(dAtA []byte) error
- func (m *EventSupplierServiceConfigActivated) XXX_DiscardUnknown()
- func (m *EventSupplierServiceConfigActivated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSupplierServiceConfigActivated) XXX_Merge(src proto.Message)
- func (m *EventSupplierServiceConfigActivated) XXX_Size() int
- func (m *EventSupplierServiceConfigActivated) XXX_Unmarshal(b []byte) error
- type EventSupplierStaked
- func (*EventSupplierStaked) Descriptor() ([]byte, []int)
- func (m *EventSupplierStaked) GetSessionEndHeight() int64
- func (m *EventSupplierStaked) GetSupplier() *types.Supplier
- func (m *EventSupplierStaked) Marshal() (dAtA []byte, err error)
- func (m *EventSupplierStaked) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSupplierStaked) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSupplierStaked) ProtoMessage()
- func (m *EventSupplierStaked) Reset()
- func (m *EventSupplierStaked) Size() (n int)
- func (m *EventSupplierStaked) String() string
- func (m *EventSupplierStaked) Unmarshal(dAtA []byte) error
- func (m *EventSupplierStaked) XXX_DiscardUnknown()
- func (m *EventSupplierStaked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSupplierStaked) XXX_Merge(src proto.Message)
- func (m *EventSupplierStaked) XXX_Size() int
- func (m *EventSupplierStaked) XXX_Unmarshal(b []byte) error
- type EventSupplierUnbondingBegin
- func (*EventSupplierUnbondingBegin) Descriptor() ([]byte, []int)
- func (m *EventSupplierUnbondingBegin) GetReason() SupplierUnbondingReason
- func (m *EventSupplierUnbondingBegin) GetSessionEndHeight() int64
- func (m *EventSupplierUnbondingBegin) GetSupplier() *types.Supplier
- func (m *EventSupplierUnbondingBegin) GetUnbondingEndHeight() int64
- func (m *EventSupplierUnbondingBegin) Marshal() (dAtA []byte, err error)
- func (m *EventSupplierUnbondingBegin) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSupplierUnbondingBegin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSupplierUnbondingBegin) ProtoMessage()
- func (m *EventSupplierUnbondingBegin) Reset()
- func (m *EventSupplierUnbondingBegin) Size() (n int)
- func (m *EventSupplierUnbondingBegin) String() string
- func (m *EventSupplierUnbondingBegin) Unmarshal(dAtA []byte) error
- func (m *EventSupplierUnbondingBegin) XXX_DiscardUnknown()
- func (m *EventSupplierUnbondingBegin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSupplierUnbondingBegin) XXX_Merge(src proto.Message)
- func (m *EventSupplierUnbondingBegin) XXX_Size() int
- func (m *EventSupplierUnbondingBegin) XXX_Unmarshal(b []byte) error
- type EventSupplierUnbondingCanceled
- func (*EventSupplierUnbondingCanceled) Descriptor() ([]byte, []int)
- func (m *EventSupplierUnbondingCanceled) GetHeight() int64
- func (m *EventSupplierUnbondingCanceled) GetSessionEndHeight() int64
- func (m *EventSupplierUnbondingCanceled) GetSupplier() *types.Supplier
- func (m *EventSupplierUnbondingCanceled) Marshal() (dAtA []byte, err error)
- func (m *EventSupplierUnbondingCanceled) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSupplierUnbondingCanceled) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSupplierUnbondingCanceled) ProtoMessage()
- func (m *EventSupplierUnbondingCanceled) Reset()
- func (m *EventSupplierUnbondingCanceled) Size() (n int)
- func (m *EventSupplierUnbondingCanceled) String() string
- func (m *EventSupplierUnbondingCanceled) Unmarshal(dAtA []byte) error
- func (m *EventSupplierUnbondingCanceled) XXX_DiscardUnknown()
- func (m *EventSupplierUnbondingCanceled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSupplierUnbondingCanceled) XXX_Merge(src proto.Message)
- func (m *EventSupplierUnbondingCanceled) XXX_Size() int
- func (m *EventSupplierUnbondingCanceled) XXX_Unmarshal(b []byte) error
- type EventSupplierUnbondingEnd
- func (*EventSupplierUnbondingEnd) Descriptor() ([]byte, []int)
- func (m *EventSupplierUnbondingEnd) GetReason() SupplierUnbondingReason
- func (m *EventSupplierUnbondingEnd) GetSessionEndHeight() int64
- func (m *EventSupplierUnbondingEnd) GetSupplier() *types.Supplier
- func (m *EventSupplierUnbondingEnd) GetUnbondingEndHeight() int64
- func (m *EventSupplierUnbondingEnd) Marshal() (dAtA []byte, err error)
- func (m *EventSupplierUnbondingEnd) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSupplierUnbondingEnd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSupplierUnbondingEnd) ProtoMessage()
- func (m *EventSupplierUnbondingEnd) Reset()
- func (m *EventSupplierUnbondingEnd) Size() (n int)
- func (m *EventSupplierUnbondingEnd) String() string
- func (m *EventSupplierUnbondingEnd) Unmarshal(dAtA []byte) error
- func (m *EventSupplierUnbondingEnd) XXX_DiscardUnknown()
- func (m *EventSupplierUnbondingEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSupplierUnbondingEnd) XXX_Merge(src proto.Message)
- func (m *EventSupplierUnbondingEnd) XXX_Size() int
- func (m *EventSupplierUnbondingEnd) XXX_Unmarshal(b []byte) error
- 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) GetSupplier() *types1.Supplier
- 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) GetSupplier() *types1.Supplier
- 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 MsgUpdateParam
- func (*MsgUpdateParam) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParam) GetAsCoin() *types.Coin
- func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
- func (m *MsgUpdateParam) GetAuthority() string
- func (m *MsgUpdateParam) GetName() string
- func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParam) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParam) ProtoMessage()
- func (m *MsgUpdateParam) Reset()
- func (m *MsgUpdateParam) Size() (n int)
- func (m *MsgUpdateParam) String() string
- func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParam) ValidateBasic() error
- func (m *MsgUpdateParam) XXX_DiscardUnknown()
- func (m *MsgUpdateParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParam) XXX_Merge(src proto.Message)
- func (*MsgUpdateParam) XXX_OneofWrappers() []interface{}
- func (m *MsgUpdateParam) XXX_Size() int
- func (m *MsgUpdateParam) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamResponse
- func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamResponse) GetParams() *Params
- func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamResponse) ProtoMessage()
- func (m *MsgUpdateParamResponse) Reset()
- func (m *MsgUpdateParamResponse) Size() (n int)
- func (m *MsgUpdateParamResponse) String() string
- func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamResponse) XXX_Size() int
- func (m *MsgUpdateParamResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParam_AsCoin
- 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) GetMinStake() *types.Coin
- func (m *Params) GetStakingFee() *types.Coin
- 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) GetFilter() isQueryAllSuppliersRequest_Filter
- func (m *QueryAllSuppliersRequest) GetPagination() *query.PageRequest
- func (m *QueryAllSuppliersRequest) GetServiceId() string
- 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 (query *QueryAllSuppliersRequest) ValidateBasic() 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 (*QueryAllSuppliersRequest) XXX_OneofWrappers() []interface{}
- func (m *QueryAllSuppliersRequest) XXX_Size() int
- func (m *QueryAllSuppliersRequest) XXX_Unmarshal(b []byte) error
- type QueryAllSuppliersRequest_ServiceId
- 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 (query *QueryGetSupplierRequest) ValidateBasic() 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 SupplierUnbondingReason
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) StakeSupplier(ctx context.Context, req *MsgStakeSupplier) (*MsgStakeSupplierResponse, error)
- func (*UnimplementedMsgServer) UnstakeSupplier(ctx context.Context, req *MsgUnstakeSupplier) (*MsgUnstakeSupplierResponse, error)
- func (*UnimplementedMsgServer) UpdateParam(ctx context.Context, req *MsgUpdateParam) (*MsgUpdateParamResponse, 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 ( // SupplierOperatorKeyPrefix is the prefix to retrieve all Supplier SupplierOperatorKeyPrefix = "Supplier/operator_address/" // SupplierUnstakingHeightKeyPrefix is the prefix for indexing suppliers by their unstaking height SupplierUnstakingHeightKeyPrefix = "Supplier/unbonding_height/" // ServiceConfigUpdateKeyPrefix is the prefix for indexing service configs by service ID ServiceConfigUpdateKeyPrefix = "ServiceConfigUpdate/service_id/" // SupplierServiceConfigUpdateKeyPrefix is the prefix for indexing service configs by operator address SupplierServiceConfigUpdateKeyPrefix = "ServiceConfigUpdate/operator_address/" // ServiceConfigUpdateActivationHeightKeyPrefix is the prefix for indexing service configs by activation height ServiceConfigUpdateActivationHeightKeyPrefix = "ServiceConfigUpdate/activation_height/" // ServiceConfigUpdateDeactivationHeightKeyPrefix is the prefix for indexing service configs by deactivation height ServiceConfigUpdateDeactivationHeightKeyPrefix = "ServiceConfigUpdate/deactivation_height/" )
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") ErrSupplierIsUnstaking = sdkerrors.Register(ModuleName, 1105, "supplier is in unbonding period") ErrSupplierServiceNotFound = sdkerrors.Register(ModuleName, 1106, "service not found") ErrSupplierParamInvalid = sdkerrors.Register(ModuleName, 1107, "the provided param is invalid") ErrSupplierEmitEvent = sdkerrors.Register(ModuleName, 1108, "failed to emit event") ErrSupplierInvalidServiceId = sdkerrors.Register(ModuleName, 1109, "invalid service ID") )
x/supplier module sentinel errors
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeyMinStake = []byte("MinStake") ParamMinStake = "min_stake" // TODO_MAINNET_MIGRATION(@olshansk): Determine the default value. DefaultMinStake = cosmostypes.NewInt64Coin("upokt", 1000000) // 1 POKT KeyStakingFee = []byte("StakingFee") ParamStakingFee = "staking_fee" // TODO_MAINNET_MIGRATION(@olshansk): Determine the default value. DefaultStakingFee = cosmostypes.NewInt64Coin("upokt", 1) // 1 uPOKT )
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 Msg_serviceDesc = _Msg_serviceDesc
var ParamsKey = []byte("p_supplier")
var Query_serviceDesc = _Query_serviceDesc
var SupplierUnbondingReason_name = map[int32]string{
0: "SUPPLIER_UNBONDING_REASON_UNSPECIFIED",
1: "SUPPLIER_UNBONDING_REASON_VOLUNTARY",
2: "SUPPLIER_UNBONDING_REASON_BELOW_MIN_STAKE",
3: "SUPPLIER_UNBONDING_REASON_MIGRATION",
}
var SupplierUnbondingReason_value = map[string]int32{
"SUPPLIER_UNBONDING_REASON_UNSPECIFIED": 0,
"SUPPLIER_UNBONDING_REASON_VOLUNTARY": 1,
"SUPPLIER_UNBONDING_REASON_BELOW_MIN_STAKE": 2,
"SUPPLIER_UNBONDING_REASON_MIGRATION": 3,
}
Functions ¶
func IntKey ¶ added in v0.1.8
IntKey converts an integer value to a byte slice for use in store keys Appends a '/' separator to the end of the key for consistent prefix scanning
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 ServiceConfigUpdateActivationHeightKey ¶ added in v0.1.8
func ServiceConfigUpdateActivationHeightKey(serviceConfigUpdate sharedtypes.ServiceConfigUpdate) []byte
ServiceConfigUpdateActivationHeightKey returns the store key to retrieve a ServiceConfig from the index fields The key is composed of activation height, service ID, and supplier operator address
func ServiceConfigUpdateDeactivationHeightKey ¶ added in v0.1.8
func ServiceConfigUpdateDeactivationHeightKey(serviceConfigUpdate sharedtypes.ServiceConfigUpdate) []byte
ServiceConfigUpdateDeactivationHeightKey returns the store key to retrieve a ServiceConfig from the index fields The key is composed of deactivation height, service ID, supplier operator address, and activation height
func ServiceConfigUpdateKey ¶ added in v0.1.8
func ServiceConfigUpdateKey(serviceConfigUpdate sharedtypes.ServiceConfigUpdate) []byte
ServiceConfigUpdateKey returns the store key to retrieve a ServiceConfig from the index fields The key is composed of service ID, activation height, and supplier operator address This ordering allows efficient range queries for configurations by service ID and activation height
func StringKey ¶ added in v0.1.8
StringKey converts a string value to a byte slice for use in store keys Appends a '/' separator to the end of the key for consistent prefix scanning
func SupplierOperatorKey ¶ added in v0.0.6
SupplierOperatorKey returns the store key to retrieve a Supplier from the index fields
func SupplierOperatorServiceKey ¶ added in v0.1.9
SupplierOperatorServiceKey returns the store key to retrieve a Supplier from the index fields The key is composed of supplier operator address and service ID
func SupplierServiceConfigUpdateKey ¶ added in v0.1.8
func SupplierServiceConfigUpdateKey(serviceConfigUpdate sharedtypes.ServiceConfigUpdate) []byte
SupplierServiceConfigUpdateKey returns the store key to retrieve a ServiceConfig from the index fields The key is composed of supplier operator address, service ID, and activation height This ordering allows efficient range queries for configurations by supplier operator address and service ID
func ValidateMinStake ¶ added in v0.0.10
ValidateMinStake validates the MinStake param.
func ValidateStakingFee ¶ added in v0.0.12
ValidateStakingFee validates the StakingFee param.
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 EventSupplierServiceConfigActivated ¶ added in v0.0.14
type EventSupplierServiceConfigActivated struct {
// supplier contains the complete updated supplier information including the
// active service configurations in supplier.Services.
Supplier *types.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier"`
// activation_height indicates the block height at which the new service
// configurations became active.
ActivationHeight int64 `protobuf:"varint,2,opt,name=activation_height,json=activationHeight,proto3" json:"activation_height"`
}
EventSupplierServiceConfigActivated is emitted when a supplier service configuration becomes effective at a specific block height.
func (*EventSupplierServiceConfigActivated) Descriptor ¶ added in v0.0.14
func (*EventSupplierServiceConfigActivated) Descriptor() ([]byte, []int)
func (*EventSupplierServiceConfigActivated) GetActivationHeight ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) GetActivationHeight() int64
func (*EventSupplierServiceConfigActivated) GetSupplier ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) GetSupplier() *types.Supplier
func (*EventSupplierServiceConfigActivated) Marshal ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) Marshal() (dAtA []byte, err error)
func (*EventSupplierServiceConfigActivated) MarshalTo ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) MarshalTo(dAtA []byte) (int, error)
func (*EventSupplierServiceConfigActivated) MarshalToSizedBuffer ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSupplierServiceConfigActivated) ProtoMessage ¶ added in v0.0.14
func (*EventSupplierServiceConfigActivated) ProtoMessage()
func (*EventSupplierServiceConfigActivated) Reset ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) Reset()
func (*EventSupplierServiceConfigActivated) Size ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) Size() (n int)
func (*EventSupplierServiceConfigActivated) String ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) String() string
func (*EventSupplierServiceConfigActivated) Unmarshal ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) Unmarshal(dAtA []byte) error
func (*EventSupplierServiceConfigActivated) XXX_DiscardUnknown ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) XXX_DiscardUnknown()
func (*EventSupplierServiceConfigActivated) XXX_Marshal ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSupplierServiceConfigActivated) XXX_Merge ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) XXX_Merge(src proto.Message)
func (*EventSupplierServiceConfigActivated) XXX_Size ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) XXX_Size() int
func (*EventSupplierServiceConfigActivated) XXX_Unmarshal ¶ added in v0.0.14
func (m *EventSupplierServiceConfigActivated) XXX_Unmarshal(b []byte) error
type EventSupplierStaked ¶ added in v0.0.10
type EventSupplierStaked struct {
Supplier *types.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier"`
// The session end height of the last session in which the supplier was staked.
SessionEndHeight int64 `protobuf:"varint,2,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
}
EventSupplierStaked is emitted when a supplier stake message is committed onchain.
func (*EventSupplierStaked) Descriptor ¶ added in v0.0.10
func (*EventSupplierStaked) Descriptor() ([]byte, []int)
func (*EventSupplierStaked) GetSessionEndHeight ¶ added in v0.0.11
func (m *EventSupplierStaked) GetSessionEndHeight() int64
func (*EventSupplierStaked) GetSupplier ¶ added in v0.0.10
func (m *EventSupplierStaked) GetSupplier() *types.Supplier
func (*EventSupplierStaked) Marshal ¶ added in v0.0.10
func (m *EventSupplierStaked) Marshal() (dAtA []byte, err error)
func (*EventSupplierStaked) MarshalTo ¶ added in v0.0.10
func (m *EventSupplierStaked) MarshalTo(dAtA []byte) (int, error)
func (*EventSupplierStaked) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *EventSupplierStaked) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSupplierStaked) ProtoMessage ¶ added in v0.0.10
func (*EventSupplierStaked) ProtoMessage()
func (*EventSupplierStaked) Reset ¶ added in v0.0.10
func (m *EventSupplierStaked) Reset()
func (*EventSupplierStaked) Size ¶ added in v0.0.10
func (m *EventSupplierStaked) Size() (n int)
func (*EventSupplierStaked) String ¶ added in v0.0.10
func (m *EventSupplierStaked) String() string
func (*EventSupplierStaked) Unmarshal ¶ added in v0.0.10
func (m *EventSupplierStaked) Unmarshal(dAtA []byte) error
func (*EventSupplierStaked) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *EventSupplierStaked) XXX_DiscardUnknown()
func (*EventSupplierStaked) XXX_Marshal ¶ added in v0.0.10
func (m *EventSupplierStaked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSupplierStaked) XXX_Merge ¶ added in v0.0.10
func (m *EventSupplierStaked) XXX_Merge(src proto.Message)
func (*EventSupplierStaked) XXX_Size ¶ added in v0.0.10
func (m *EventSupplierStaked) XXX_Size() int
func (*EventSupplierStaked) XXX_Unmarshal ¶ added in v0.0.10
func (m *EventSupplierStaked) XXX_Unmarshal(b []byte) error
type EventSupplierUnbondingBegin ¶ added in v0.0.10
type EventSupplierUnbondingBegin struct {
Supplier *types.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier"`
Reason SupplierUnbondingReason `protobuf:"varint,2,opt,name=reason,proto3,enum=pocket.supplier.SupplierUnbondingReason" json:"reason"`
// The session end height of the last session in which the supplier unbonding began.
SessionEndHeight int64 `protobuf:"varint,3,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
// The height at which supplier unbonding will end.
UnbondingEndHeight int64 `protobuf:"varint,4,opt,name=unbonding_end_height,json=unbondingEndHeight,proto3" json:"unbonding_end_height"`
}
EventSupplierUnbondingBegin is emitted when an application unstake message is committed onchain, indicating that the supplier will now begin unbonding.
func (*EventSupplierUnbondingBegin) Descriptor ¶ added in v0.0.10
func (*EventSupplierUnbondingBegin) Descriptor() ([]byte, []int)
func (*EventSupplierUnbondingBegin) GetReason ¶ added in v0.0.11
func (m *EventSupplierUnbondingBegin) GetReason() SupplierUnbondingReason
func (*EventSupplierUnbondingBegin) GetSessionEndHeight ¶ added in v0.0.11
func (m *EventSupplierUnbondingBegin) GetSessionEndHeight() int64
func (*EventSupplierUnbondingBegin) GetSupplier ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) GetSupplier() *types.Supplier
func (*EventSupplierUnbondingBegin) GetUnbondingEndHeight ¶ added in v0.0.11
func (m *EventSupplierUnbondingBegin) GetUnbondingEndHeight() int64
func (*EventSupplierUnbondingBegin) Marshal ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) Marshal() (dAtA []byte, err error)
func (*EventSupplierUnbondingBegin) MarshalTo ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) MarshalTo(dAtA []byte) (int, error)
func (*EventSupplierUnbondingBegin) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSupplierUnbondingBegin) ProtoMessage ¶ added in v0.0.10
func (*EventSupplierUnbondingBegin) ProtoMessage()
func (*EventSupplierUnbondingBegin) Reset ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) Reset()
func (*EventSupplierUnbondingBegin) Size ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) Size() (n int)
func (*EventSupplierUnbondingBegin) String ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) String() string
func (*EventSupplierUnbondingBegin) Unmarshal ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) Unmarshal(dAtA []byte) error
func (*EventSupplierUnbondingBegin) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) XXX_DiscardUnknown()
func (*EventSupplierUnbondingBegin) XXX_Marshal ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSupplierUnbondingBegin) XXX_Merge ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) XXX_Merge(src proto.Message)
func (*EventSupplierUnbondingBegin) XXX_Size ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) XXX_Size() int
func (*EventSupplierUnbondingBegin) XXX_Unmarshal ¶ added in v0.0.10
func (m *EventSupplierUnbondingBegin) XXX_Unmarshal(b []byte) error
type EventSupplierUnbondingCanceled ¶ added in v0.0.11
type EventSupplierUnbondingCanceled struct {
Supplier *types.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier"`
// The exact height at which the supplier unbonding was canceled.
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height"`
// The session end height of the session in which the supplier unbonding was canceled.
SessionEndHeight int64 `protobuf:"varint,2,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
}
EventSupplierUnbondingCanceled is emitted when an supplier which was unbonding successfully (re-)stakes before the unbonding period has elapsed. An EventSupplierStaked event will also be emitted immediately after this event.
func (*EventSupplierUnbondingCanceled) Descriptor ¶ added in v0.0.11
func (*EventSupplierUnbondingCanceled) Descriptor() ([]byte, []int)
func (*EventSupplierUnbondingCanceled) GetHeight ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) GetHeight() int64
func (*EventSupplierUnbondingCanceled) GetSessionEndHeight ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) GetSessionEndHeight() int64
func (*EventSupplierUnbondingCanceled) GetSupplier ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) GetSupplier() *types.Supplier
func (*EventSupplierUnbondingCanceled) Marshal ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) Marshal() (dAtA []byte, err error)
func (*EventSupplierUnbondingCanceled) MarshalTo ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) MarshalTo(dAtA []byte) (int, error)
func (*EventSupplierUnbondingCanceled) MarshalToSizedBuffer ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSupplierUnbondingCanceled) ProtoMessage ¶ added in v0.0.11
func (*EventSupplierUnbondingCanceled) ProtoMessage()
func (*EventSupplierUnbondingCanceled) Reset ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) Reset()
func (*EventSupplierUnbondingCanceled) Size ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) Size() (n int)
func (*EventSupplierUnbondingCanceled) String ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) String() string
func (*EventSupplierUnbondingCanceled) Unmarshal ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) Unmarshal(dAtA []byte) error
func (*EventSupplierUnbondingCanceled) XXX_DiscardUnknown ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) XXX_DiscardUnknown()
func (*EventSupplierUnbondingCanceled) XXX_Marshal ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSupplierUnbondingCanceled) XXX_Merge ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) XXX_Merge(src proto.Message)
func (*EventSupplierUnbondingCanceled) XXX_Size ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) XXX_Size() int
func (*EventSupplierUnbondingCanceled) XXX_Unmarshal ¶ added in v0.0.11
func (m *EventSupplierUnbondingCanceled) XXX_Unmarshal(b []byte) error
type EventSupplierUnbondingEnd ¶ added in v0.0.10
type EventSupplierUnbondingEnd struct {
Supplier *types.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier"`
Reason SupplierUnbondingReason `protobuf:"varint,2,opt,name=reason,proto3,enum=pocket.supplier.SupplierUnbondingReason" json:"reason"`
// The session end height of the session in which the supplier unbonding endeded.
SessionEndHeight int64 `protobuf:"varint,3,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
// The height at which supplier unbonding will end.
UnbondingEndHeight int64 `protobuf:"varint,4,opt,name=unbonding_end_height,json=unbondingEndHeight,proto3" json:"unbonding_end_height"`
}
EventSupplierUnbondingEnd is emitted when an supplier has completed unbonding. The unbonding period is determined by the shared param, supplier_unbonding_period_sessions.
func (*EventSupplierUnbondingEnd) Descriptor ¶ added in v0.0.10
func (*EventSupplierUnbondingEnd) Descriptor() ([]byte, []int)
func (*EventSupplierUnbondingEnd) GetReason ¶ added in v0.0.11
func (m *EventSupplierUnbondingEnd) GetReason() SupplierUnbondingReason
func (*EventSupplierUnbondingEnd) GetSessionEndHeight ¶ added in v0.0.11
func (m *EventSupplierUnbondingEnd) GetSessionEndHeight() int64
func (*EventSupplierUnbondingEnd) GetSupplier ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) GetSupplier() *types.Supplier
func (*EventSupplierUnbondingEnd) GetUnbondingEndHeight ¶ added in v0.0.11
func (m *EventSupplierUnbondingEnd) GetUnbondingEndHeight() int64
func (*EventSupplierUnbondingEnd) Marshal ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) Marshal() (dAtA []byte, err error)
func (*EventSupplierUnbondingEnd) MarshalTo ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) MarshalTo(dAtA []byte) (int, error)
func (*EventSupplierUnbondingEnd) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSupplierUnbondingEnd) ProtoMessage ¶ added in v0.0.10
func (*EventSupplierUnbondingEnd) ProtoMessage()
func (*EventSupplierUnbondingEnd) Reset ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) Reset()
func (*EventSupplierUnbondingEnd) Size ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) Size() (n int)
func (*EventSupplierUnbondingEnd) String ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) String() string
func (*EventSupplierUnbondingEnd) Unmarshal ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) Unmarshal(dAtA []byte) error
func (*EventSupplierUnbondingEnd) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) XXX_DiscardUnknown()
func (*EventSupplierUnbondingEnd) XXX_Marshal ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSupplierUnbondingEnd) XXX_Merge ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) XXX_Merge(src proto.Message)
func (*EventSupplierUnbondingEnd) XXX_Size ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) XXX_Size() int
func (*EventSupplierUnbondingEnd) XXX_Unmarshal ¶ added in v0.0.10
func (m *EventSupplierUnbondingEnd) XXX_Unmarshal(b []byte) error
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)
UpdateParam(ctx context.Context, in *MsgUpdateParam, opts ...grpc.CallOption) (*MsgUpdateParamResponse, 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)
UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, 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 {
Supplier *types1.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"`
}
func (*MsgStakeSupplierResponse) Descriptor ¶ added in v0.0.3
func (*MsgStakeSupplierResponse) Descriptor() ([]byte, []int)
func (*MsgStakeSupplierResponse) GetSupplier ¶ added in v0.0.12
func (m *MsgStakeSupplierResponse) GetSupplier() *types1.Supplier
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 {
Supplier *types1.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"`
}
func (*MsgUnstakeSupplierResponse) Descriptor ¶ added in v0.0.3
func (*MsgUnstakeSupplierResponse) Descriptor() ([]byte, []int)
func (*MsgUnstakeSupplierResponse) GetSupplier ¶ added in v0.0.12
func (m *MsgUnstakeSupplierResponse) GetSupplier() *types1.Supplier
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 MsgUpdateParam ¶ added in v0.0.10
type MsgUpdateParam 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"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to AsType:
//
// *MsgUpdateParam_AsCoin
AsType isMsgUpdateParam_AsType `protobuf_oneof:"asType"`
}
MsgUpdateParam is the Msg/UpdateParam request type to update a single param.
func NewMsgUpdateParam ¶ added in v0.0.10
func NewMsgUpdateParam(authority string, name string, asType any) *MsgUpdateParam
func (*MsgUpdateParam) Descriptor ¶ added in v0.0.10
func (*MsgUpdateParam) Descriptor() ([]byte, []int)
func (*MsgUpdateParam) GetAsCoin ¶ added in v0.0.10
func (m *MsgUpdateParam) GetAsCoin() *types.Coin
func (*MsgUpdateParam) GetAsType ¶ added in v0.0.10
func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
func (*MsgUpdateParam) GetAuthority ¶ added in v0.0.10
func (m *MsgUpdateParam) GetAuthority() string
func (*MsgUpdateParam) GetName ¶ added in v0.0.10
func (m *MsgUpdateParam) GetName() string
func (*MsgUpdateParam) Marshal ¶ added in v0.0.10
func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParam) MarshalTo ¶ added in v0.0.10
func (m *MsgUpdateParam) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam) ProtoMessage ¶ added in v0.0.10
func (*MsgUpdateParam) ProtoMessage()
func (*MsgUpdateParam) Reset ¶ added in v0.0.10
func (m *MsgUpdateParam) Reset()
func (*MsgUpdateParam) Size ¶ added in v0.0.10
func (m *MsgUpdateParam) Size() (n int)
func (*MsgUpdateParam) String ¶ added in v0.0.10
func (m *MsgUpdateParam) String() string
func (*MsgUpdateParam) Unmarshal ¶ added in v0.0.10
func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error
func (*MsgUpdateParam) ValidateBasic ¶ added in v0.0.10
func (msg *MsgUpdateParam) ValidateBasic() error
ValidateBasic performs a basic validation of the MsgUpdateParam fields. It ensures: 1. The parameter name is supported. 2. The parameter type matches the expected type for a given parameter name. 3. The parameter value is valid (according to its respective validation function).
func (*MsgUpdateParam) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *MsgUpdateParam) XXX_DiscardUnknown()
func (*MsgUpdateParam) XXX_Marshal ¶ added in v0.0.10
func (m *MsgUpdateParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParam) XXX_Merge ¶ added in v0.0.10
func (m *MsgUpdateParam) XXX_Merge(src proto.Message)
func (*MsgUpdateParam) XXX_OneofWrappers ¶ added in v0.0.10
func (*MsgUpdateParam) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*MsgUpdateParam) XXX_Size ¶ added in v0.0.10
func (m *MsgUpdateParam) XXX_Size() int
func (*MsgUpdateParam) XXX_Unmarshal ¶ added in v0.0.10
func (m *MsgUpdateParam) XXX_Unmarshal(b []byte) error
type MsgUpdateParamResponse ¶ added in v0.0.10
type MsgUpdateParamResponse struct {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (*MsgUpdateParamResponse) Descriptor ¶ added in v0.0.10
func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamResponse) GetParams ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) GetParams() *Params
func (*MsgUpdateParamResponse) Marshal ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamResponse) MarshalTo ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamResponse) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamResponse) ProtoMessage ¶ added in v0.0.10
func (*MsgUpdateParamResponse) ProtoMessage()
func (*MsgUpdateParamResponse) Reset ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) Reset()
func (*MsgUpdateParamResponse) Size ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) Size() (n int)
func (*MsgUpdateParamResponse) String ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) String() string
func (*MsgUpdateParamResponse) Unmarshal ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamResponse) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamResponse) XXX_Marshal ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamResponse) XXX_Merge ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamResponse) XXX_Size ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) XXX_Size() int
func (*MsgUpdateParamResponse) XXX_Unmarshal ¶ added in v0.0.10
func (m *MsgUpdateParamResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParam_AsCoin ¶ added in v0.0.10
type MsgUpdateParam_AsCoin struct {
AsCoin *types.Coin `protobuf:"bytes,3,opt,name=as_coin,json=asCoin,proto3,oneof" json:"as_coin,omitempty"`
}
func (*MsgUpdateParam_AsCoin) MarshalTo ¶ added in v0.0.10
func (m *MsgUpdateParam_AsCoin) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsCoin) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *MsgUpdateParam_AsCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsCoin) Size ¶ added in v0.0.10
func (m *MsgUpdateParam_AsCoin) Size() (n int)
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 {
// min_stake is the minimum amount of uPOKT that a supplier must stake to be
// included in network sessions and remain staked.
MinStake *types.Coin `protobuf:"bytes,1,opt,name=min_stake,json=minStake,proto3" json:"min_stake" yaml:"min_stake"`
// staking_fee is the fee charged by the protocol for staking a supplier.
StakingFee *types.Coin `protobuf:"bytes,2,opt,name=staking_fee,json=stakingFee,proto3" json:"staking_fee" yaml:"staking_fee"`
}
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 NewParams ¶ added in v0.0.3
func NewParams( minStake *cosmostypes.Coin, stakingFee *cosmostypes.Coin, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶ added in v0.0.3
func (*Params) GetMinStake ¶ added in v0.0.10
func (*Params) GetStakingFee ¶ added in v0.0.12
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"`
// Types that are valid to be assigned to Filter:
// *QueryAllSuppliersRequest_ServiceId
Filter isQueryAllSuppliersRequest_Filter `protobuf_oneof:"filter"`
}
func (*QueryAllSuppliersRequest) Descriptor ¶ added in v0.0.3
func (*QueryAllSuppliersRequest) Descriptor() ([]byte, []int)
func (*QueryAllSuppliersRequest) GetFilter ¶ added in v0.0.12
func (m *QueryAllSuppliersRequest) GetFilter() isQueryAllSuppliersRequest_Filter
func (*QueryAllSuppliersRequest) GetPagination ¶ added in v0.0.3
func (m *QueryAllSuppliersRequest) GetPagination() *query.PageRequest
func (*QueryAllSuppliersRequest) GetServiceId ¶ added in v0.0.12
func (m *QueryAllSuppliersRequest) GetServiceId() string
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) ValidateBasic ¶ added in v0.0.12
func (query *QueryAllSuppliersRequest) ValidateBasic() error
ValidateBasic performs basic (non-state-dependant) validation on a QueryAllSuppliersRequest.
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_OneofWrappers ¶ added in v0.0.12
func (*QueryAllSuppliersRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
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 QueryAllSuppliersRequest_ServiceId ¶ added in v0.0.12
type QueryAllSuppliersRequest_ServiceId struct {
ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3,oneof" json:"service_id,omitempty"`
}
func (*QueryAllSuppliersRequest_ServiceId) MarshalTo ¶ added in v0.0.12
func (m *QueryAllSuppliersRequest_ServiceId) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllSuppliersRequest_ServiceId) MarshalToSizedBuffer ¶ added in v0.0.12
func (m *QueryAllSuppliersRequest_ServiceId) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllSuppliersRequest_ServiceId) Size ¶ added in v0.0.12
func (m *QueryAllSuppliersRequest_ServiceId) Size() (n int)
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) ValidateBasic ¶ added in v0.0.12
func (query *QueryGetSupplierRequest) ValidateBasic() error
ValidateBasic performs basic (non-state-dependant) validation on a QueryGetSupplierRequest.
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 SupplierUnbondingReason ¶ added in v0.0.11
type SupplierUnbondingReason int32
const ( SupplierUnbondingReason_SUPPLIER_UNBONDING_REASON_UNSPECIFIED SupplierUnbondingReason = 0 SupplierUnbondingReason_SUPPLIER_UNBONDING_REASON_VOLUNTARY SupplierUnbondingReason = 1 SupplierUnbondingReason_SUPPLIER_UNBONDING_REASON_BELOW_MIN_STAKE SupplierUnbondingReason = 2 SupplierUnbondingReason_SUPPLIER_UNBONDING_REASON_MIGRATION SupplierUnbondingReason = 3 )
func (SupplierUnbondingReason) EnumDescriptor ¶ added in v0.0.11
func (SupplierUnbondingReason) EnumDescriptor() ([]byte, []int)
func (SupplierUnbondingReason) String ¶ added in v0.0.11
func (x SupplierUnbondingReason) String() string
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) UpdateParam ¶ added in v0.0.10
func (*UnimplementedMsgServer) UpdateParam(ctx context.Context, req *MsgUpdateParam) (*MsgUpdateParamResponse, 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)