types

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 33 Imported by: 4

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
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/"
)
View Source
const TypeMsgStakeSupplier = "stake_supplier"
View Source
const TypeMsgUnstakeSupplier = "unstake_supplier"

Variables

View Source
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

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
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
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var ParamsKey = []byte("p_supplier")
View Source
var Query_serviceDesc = _Query_serviceDesc
View Source
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",
}
View Source
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

func IntKey(intIndex int64) []byte

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 KeyPrefix

func KeyPrefix(p string) []byte

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.0.3

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

func StringKey(strIndex string) []byte

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

func SupplierOperatorKey(supplierOperatorAddr string) []byte

SupplierOperatorKey returns the store key to retrieve a Supplier from the index fields

func SupplierOperatorServiceKey added in v0.1.9

func SupplierOperatorServiceKey(supplierOperatorAddr string, serviceId string) []byte

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

func ValidateMinStake(minStakeAny any) error

ValidateMinStake validates the MinStake param.

func ValidateStakingFee added in v0.0.12

func ValidateStakingFee(stakingFeeAny any) error

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 (*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 (*EventSupplierServiceConfigActivated) Size added in v0.0.14

func (*EventSupplierServiceConfigActivated) String added in v0.0.14

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 (*EventSupplierServiceConfigActivated) XXX_Size added in v0.0.14

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 (*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 (*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 (*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) Descriptor() ([]byte, []int)

func (*Params) Equal added in v0.0.3

func (this *Params) Equal(that interface{}) bool

func (*Params) GetMinStake added in v0.0.10

func (m *Params) GetMinStake() *types.Coin

func (*Params) GetStakingFee added in v0.0.12

func (m *Params) GetStakingFee() *types.Coin

func (*Params) Marshal added in v0.0.3

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v0.0.3

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v0.0.3

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

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) Reset added in v0.0.3

func (m *Params) Reset()

func (*Params) Size added in v0.0.3

func (m *Params) Size() (n int)

func (*Params) String added in v0.0.3

func (m *Params) String() string

func (*Params) Unmarshal added in v0.0.3

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate added in v0.0.3

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown added in v0.0.3

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.0.3

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge added in v0.0.3

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size added in v0.0.3

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.0.3

func (m *Params) XXX_Unmarshal(b []byte) error

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

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 {
	GetParams(ctx context.Context) sharedtypes.Params
	GetSessionEndHeight(ctx context.Context, queryHeight int64) int64
}

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) UnstakeSupplier added in v0.0.3

func (*UnimplementedMsgServer) UpdateParam added in v0.0.10

func (*UnimplementedMsgServer) UpdateParams added in v0.0.3

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) Params added in v0.0.3

func (*UnimplementedQueryServer) Supplier added in v0.0.3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL