supplier

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Params_FullMethodName       = "/poktroll.supplier.Query/Params"
	Query_Supplier_FullMethodName     = "/poktroll.supplier.Query/Supplier"
	Query_AllSuppliers_FullMethodName = "/poktroll.supplier.Query/AllSuppliers"
)
View Source
const (
	Msg_UpdateParams_FullMethodName    = "/poktroll.supplier.Msg/UpdateParams"
	Msg_StakeSupplier_FullMethodName   = "/poktroll.supplier.Msg/StakeSupplier"
	Msg_UnstakeSupplier_FullMethodName = "/poktroll.supplier.Msg/UnstakeSupplier"
)

Variables

View Source
var File_poktroll_supplier_genesis_proto protoreflect.FileDescriptor
View Source
var File_poktroll_supplier_params_proto protoreflect.FileDescriptor
View Source
var File_poktroll_supplier_query_proto protoreflect.FileDescriptor
View Source
var File_poktroll_supplier_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "poktroll.supplier.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "StakeSupplier",
			Handler:    _Msg_StakeSupplier_Handler,
		},
		{
			MethodName: "UnstakeSupplier",
			Handler:    _Msg_UnstakeSupplier_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "poktroll/supplier/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "poktroll.supplier.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Supplier",
			Handler:    _Query_Supplier_Handler,
		},
		{
			MethodName: "AllSuppliers",
			Handler:    _Query_AllSuppliers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "poktroll/supplier/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer added in v0.0.3

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer added in v0.0.3

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type GenesisState

type GenesisState struct {

	// params defines all the parameters of the module.
	Params       *Params            `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	SupplierList []*shared.Supplier `protobuf:"bytes,2,rep,name=supplierList,proto3" json:"supplierList,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the supplier module's genesis state.

func (*GenesisState) Descriptor deprecated

func (*GenesisState) Descriptor() ([]byte, []int)

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetSupplierList

func (x *GenesisState) GetSupplierList() []*shared.Supplier

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient added in v0.0.3

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	StakeSupplier(ctx context.Context, in *MsgStakeSupplier, opts ...grpc.CallOption) (*MsgStakeSupplierResponse, error)
	UnstakeSupplier(ctx context.Context, in *MsgUnstakeSupplier, opts ...grpc.CallOption) (*MsgUnstakeSupplierResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Msg defines the Msg service.

func NewMsgClient added in v0.0.3

func NewMsgClient(cc grpc.ClientConnInterface) 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)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

Msg defines the Msg service.

type MsgStakeSupplier

type MsgStakeSupplier struct {
	Address  string                          `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`   // The Bech32 address of the supplier using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding
	Stake    *v1beta1.Coin                   `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"`       // The total amount of uPOKT the supplier has staked. Must be ≥ to the current amount that the supplier has staked (if any)
	Services []*shared.SupplierServiceConfig `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // The list of services this supplier is staked to provide service for
	// contains filtered or unexported fields
}

func (*MsgStakeSupplier) Descriptor deprecated

func (*MsgStakeSupplier) Descriptor() ([]byte, []int)

Deprecated: Use MsgStakeSupplier.ProtoReflect.Descriptor instead.

func (*MsgStakeSupplier) GetAddress

func (x *MsgStakeSupplier) GetAddress() string

func (*MsgStakeSupplier) GetServices

func (x *MsgStakeSupplier) GetServices() []*shared.SupplierServiceConfig

func (*MsgStakeSupplier) GetStake

func (x *MsgStakeSupplier) GetStake() *v1beta1.Coin

func (*MsgStakeSupplier) ProtoMessage

func (*MsgStakeSupplier) ProtoMessage()

func (*MsgStakeSupplier) ProtoReflect

func (x *MsgStakeSupplier) ProtoReflect() protoreflect.Message

func (*MsgStakeSupplier) Reset

func (x *MsgStakeSupplier) Reset()

func (*MsgStakeSupplier) String

func (x *MsgStakeSupplier) String() string

type MsgStakeSupplierResponse

type MsgStakeSupplierResponse struct {
	// contains filtered or unexported fields
}

func (*MsgStakeSupplierResponse) Descriptor deprecated

func (*MsgStakeSupplierResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgStakeSupplierResponse.ProtoReflect.Descriptor instead.

func (*MsgStakeSupplierResponse) ProtoMessage

func (*MsgStakeSupplierResponse) ProtoMessage()

func (*MsgStakeSupplierResponse) ProtoReflect

func (x *MsgStakeSupplierResponse) ProtoReflect() protoreflect.Message

func (*MsgStakeSupplierResponse) Reset

func (x *MsgStakeSupplierResponse) Reset()

func (*MsgStakeSupplierResponse) String

func (x *MsgStakeSupplierResponse) String() string

type MsgUnstakeSupplier

type MsgUnstakeSupplier struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the supplier using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding using cosmos' ScalarDescriptor to ensure deterministic deterministic encoding
	// contains filtered or unexported fields
}

func (*MsgUnstakeSupplier) Descriptor deprecated

func (*MsgUnstakeSupplier) Descriptor() ([]byte, []int)

Deprecated: Use MsgUnstakeSupplier.ProtoReflect.Descriptor instead.

func (*MsgUnstakeSupplier) GetAddress

func (x *MsgUnstakeSupplier) GetAddress() string

func (*MsgUnstakeSupplier) ProtoMessage

func (*MsgUnstakeSupplier) ProtoMessage()

func (*MsgUnstakeSupplier) ProtoReflect

func (x *MsgUnstakeSupplier) ProtoReflect() protoreflect.Message

func (*MsgUnstakeSupplier) Reset

func (x *MsgUnstakeSupplier) Reset()

func (*MsgUnstakeSupplier) String

func (x *MsgUnstakeSupplier) String() string

type MsgUnstakeSupplierResponse

type MsgUnstakeSupplierResponse struct {
	// contains filtered or unexported fields
}

func (*MsgUnstakeSupplierResponse) Descriptor deprecated

func (*MsgUnstakeSupplierResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUnstakeSupplierResponse.ProtoReflect.Descriptor instead.

func (*MsgUnstakeSupplierResponse) ProtoMessage

func (*MsgUnstakeSupplierResponse) ProtoMessage()

func (*MsgUnstakeSupplierResponse) ProtoReflect

func (*MsgUnstakeSupplierResponse) Reset

func (x *MsgUnstakeSupplierResponse) Reset()

func (*MsgUnstakeSupplierResponse) String

func (x *MsgUnstakeSupplierResponse) String() string

type MsgUpdateParams

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,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor deprecated

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor deprecated

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

type Params struct {
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

func (*Params) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryAllSuppliersRequest

type QueryAllSuppliersRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAllSuppliersRequest) Descriptor deprecated

func (*QueryAllSuppliersRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryAllSuppliersRequest.ProtoReflect.Descriptor instead.

func (*QueryAllSuppliersRequest) GetPagination

func (x *QueryAllSuppliersRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAllSuppliersRequest) ProtoMessage

func (*QueryAllSuppliersRequest) ProtoMessage()

func (*QueryAllSuppliersRequest) ProtoReflect

func (x *QueryAllSuppliersRequest) ProtoReflect() protoreflect.Message

func (*QueryAllSuppliersRequest) Reset

func (x *QueryAllSuppliersRequest) Reset()

func (*QueryAllSuppliersRequest) String

func (x *QueryAllSuppliersRequest) String() string

type QueryAllSuppliersResponse

type QueryAllSuppliersResponse struct {
	Supplier   []*shared.Supplier    `protobuf:"bytes,1,rep,name=supplier,proto3" json:"supplier,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAllSuppliersResponse) Descriptor deprecated

func (*QueryAllSuppliersResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryAllSuppliersResponse.ProtoReflect.Descriptor instead.

func (*QueryAllSuppliersResponse) GetPagination

func (x *QueryAllSuppliersResponse) GetPagination() *v1beta1.PageResponse

func (*QueryAllSuppliersResponse) GetSupplier

func (x *QueryAllSuppliersResponse) GetSupplier() []*shared.Supplier

func (*QueryAllSuppliersResponse) ProtoMessage

func (*QueryAllSuppliersResponse) ProtoMessage()

func (*QueryAllSuppliersResponse) ProtoReflect

func (*QueryAllSuppliersResponse) Reset

func (x *QueryAllSuppliersResponse) Reset()

func (*QueryAllSuppliersResponse) String

func (x *QueryAllSuppliersResponse) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Query defines the gRPC querier service.

func NewQueryClient added in v0.0.3

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryGetSupplierRequest

type QueryGetSupplierRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryGetSupplierRequest) Descriptor deprecated

func (*QueryGetSupplierRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGetSupplierRequest.ProtoReflect.Descriptor instead.

func (*QueryGetSupplierRequest) GetAddress

func (x *QueryGetSupplierRequest) GetAddress() string

func (*QueryGetSupplierRequest) ProtoMessage

func (*QueryGetSupplierRequest) ProtoMessage()

func (*QueryGetSupplierRequest) ProtoReflect

func (x *QueryGetSupplierRequest) ProtoReflect() protoreflect.Message

func (*QueryGetSupplierRequest) Reset

func (x *QueryGetSupplierRequest) Reset()

func (*QueryGetSupplierRequest) String

func (x *QueryGetSupplierRequest) String() string

type QueryGetSupplierResponse

type QueryGetSupplierResponse struct {
	Supplier *shared.Supplier `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryGetSupplierResponse) Descriptor deprecated

func (*QueryGetSupplierResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGetSupplierResponse.ProtoReflect.Descriptor instead.

func (*QueryGetSupplierResponse) GetSupplier

func (x *QueryGetSupplierResponse) GetSupplier() *shared.Supplier

func (*QueryGetSupplierResponse) ProtoMessage

func (*QueryGetSupplierResponse) ProtoMessage()

func (*QueryGetSupplierResponse) ProtoReflect

func (x *QueryGetSupplierResponse) ProtoReflect() protoreflect.Message

func (*QueryGetSupplierResponse) Reset

func (x *QueryGetSupplierResponse) Reset()

func (*QueryGetSupplierResponse) String

func (x *QueryGetSupplierResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

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)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

Query defines the gRPC querier service.

type UnimplementedMsgServer added in v0.0.3

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must 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) UpdateParams added in v0.0.3

type UnimplementedQueryServer added in v0.0.3

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must 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

type UnsafeMsgServer added in v0.0.3

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer added in v0.0.3

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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