assetsv1

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 18 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 (
	Msg_RegisterAsset_FullMethodName   = "/milkyway.assets.v1.Msg/RegisterAsset"
	Msg_DeregisterAsset_FullMethodName = "/milkyway.assets.v1.Msg/DeregisterAsset"
)
View Source
const (
	Query_Assets_FullMethodName = "/milkyway.assets.v1.Query/Assets"
	Query_Asset_FullMethodName  = "/milkyway.assets.v1.Query/Asset"
)

Variables

View Source
var File_milkyway_assets_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_milkyway_assets_v1_messages_proto protoreflect.FileDescriptor
View Source
var File_milkyway_assets_v1_models_proto protoreflect.FileDescriptor
View Source
var File_milkyway_assets_v1_query_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "milkyway.assets.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterAsset",
			Handler:    _Msg_RegisterAsset_Handler,
		},
		{
			MethodName: "DeregisterAsset",
			Handler:    _Msg_DeregisterAsset_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "milkyway/assets/v1/messages.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: "milkyway.assets.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Assets",
			Handler:    _Query_Assets_Handler,
		},
		{
			MethodName: "Asset",
			Handler:    _Query_Asset_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "milkyway/assets/v1/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

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Asset

type Asset struct {

	// Denom is the denomination of the asset.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// Ticker is the ticker of the asset.
	Ticker string `protobuf:"bytes,2,opt,name=ticker,proto3" json:"ticker,omitempty"`
	// Exponent represents power of 10 exponent that one must
	// raise the denom to in order to equal the given ticker.
	// 1 ticker = 10^exponent denom
	Exponent uint32 `protobuf:"varint,3,opt,name=exponent,proto3" json:"exponent,omitempty"`
	// contains filtered or unexported fields
}

Asset represents an asset that can be registered on the chain.

func (*Asset) Descriptor deprecated

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

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetDenom

func (x *Asset) GetDenom() string

func (*Asset) GetExponent

func (x *Asset) GetExponent() uint32

func (*Asset) GetTicker

func (x *Asset) GetTicker() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

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

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type GenesisState

type GenesisState struct {

	// Assets defines the registered assets.
	Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAssets

func (x *GenesisState) GetAssets() []*Asset

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

type MsgClient interface {
	// RegisterAsset defines the operation for registering an asset.
	RegisterAsset(ctx context.Context, in *MsgRegisterAsset, opts ...grpc.CallOption) (*MsgRegisterAssetResponse, error)
	// DeregisterAsset defines the operation for de-registering an asset with
	// its denomination.
	DeregisterAsset(ctx context.Context, in *MsgDeregisterAsset, opts ...grpc.CallOption) (*MsgDeregisterAssetResponse, 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 services module's gRPC message service.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgDeregisterAsset

type MsgDeregisterAsset 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"`
	// Denom represents the denomination of the token associated with the asset.
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// contains filtered or unexported fields
}

MsgDeregisterAsset defines the message structure for the DeregisterAsset gRPC service method. It allows the authority to de-register an asset with the token denomination.

func (*MsgDeregisterAsset) Descriptor deprecated

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

Deprecated: Use MsgDeregisterAsset.ProtoReflect.Descriptor instead.

func (*MsgDeregisterAsset) GetAuthority

func (x *MsgDeregisterAsset) GetAuthority() string

func (*MsgDeregisterAsset) GetDenom

func (x *MsgDeregisterAsset) GetDenom() string

func (*MsgDeregisterAsset) ProtoMessage

func (*MsgDeregisterAsset) ProtoMessage()

func (*MsgDeregisterAsset) ProtoReflect

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

func (*MsgDeregisterAsset) Reset

func (x *MsgDeregisterAsset) Reset()

func (*MsgDeregisterAsset) String

func (x *MsgDeregisterAsset) String() string

type MsgDeregisterAssetResponse

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

MsgRegisterAssetResponse is the return value of MsgDeregisterAsset.

func (*MsgDeregisterAssetResponse) Descriptor deprecated

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

Deprecated: Use MsgDeregisterAssetResponse.ProtoReflect.Descriptor instead.

func (*MsgDeregisterAssetResponse) ProtoMessage

func (*MsgDeregisterAssetResponse) ProtoMessage()

func (*MsgDeregisterAssetResponse) ProtoReflect

func (*MsgDeregisterAssetResponse) Reset

func (x *MsgDeregisterAssetResponse) Reset()

func (*MsgDeregisterAssetResponse) String

func (x *MsgDeregisterAssetResponse) String() string

type MsgRegisterAsset

type MsgRegisterAsset 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"`
	// Asset represents the asset to be registered.
	Asset *Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	// contains filtered or unexported fields
}

MsgRegisterAsset defines the message structure for the RegisterAsset gRPC service method. It allows the authority to register an asset.

func (*MsgRegisterAsset) Descriptor deprecated

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

Deprecated: Use MsgRegisterAsset.ProtoReflect.Descriptor instead.

func (*MsgRegisterAsset) GetAsset

func (x *MsgRegisterAsset) GetAsset() *Asset

func (*MsgRegisterAsset) GetAuthority

func (x *MsgRegisterAsset) GetAuthority() string

func (*MsgRegisterAsset) ProtoMessage

func (*MsgRegisterAsset) ProtoMessage()

func (*MsgRegisterAsset) ProtoReflect

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

func (*MsgRegisterAsset) Reset

func (x *MsgRegisterAsset) Reset()

func (*MsgRegisterAsset) String

func (x *MsgRegisterAsset) String() string

type MsgRegisterAssetResponse

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

MsgRegisterAssetResponse is the return value of MsgRegisterAsset.

func (*MsgRegisterAssetResponse) Descriptor deprecated

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

Deprecated: Use MsgRegisterAssetResponse.ProtoReflect.Descriptor instead.

func (*MsgRegisterAssetResponse) ProtoMessage

func (*MsgRegisterAssetResponse) ProtoMessage()

func (*MsgRegisterAssetResponse) ProtoReflect

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

func (*MsgRegisterAssetResponse) Reset

func (x *MsgRegisterAssetResponse) Reset()

func (*MsgRegisterAssetResponse) String

func (x *MsgRegisterAssetResponse) String() string

type MsgServer

type MsgServer interface {
	// RegisterAsset defines the operation for registering an asset.
	RegisterAsset(context.Context, *MsgRegisterAsset) (*MsgRegisterAssetResponse, error)
	// DeregisterAsset defines the operation for de-registering an asset with
	// its denomination.
	DeregisterAsset(context.Context, *MsgDeregisterAsset) (*MsgDeregisterAssetResponse, 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 services module's gRPC message service.

type QueryAssetRequest

type QueryAssetRequest struct {

	// Denom is the token denomination for which the ticker is to be queried.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// contains filtered or unexported fields
}

QueryAssetRequest is the request type for the Query/Asset RPC method.

func (*QueryAssetRequest) Descriptor deprecated

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

Deprecated: Use QueryAssetRequest.ProtoReflect.Descriptor instead.

func (*QueryAssetRequest) GetDenom

func (x *QueryAssetRequest) GetDenom() string

func (*QueryAssetRequest) ProtoMessage

func (*QueryAssetRequest) ProtoMessage()

func (*QueryAssetRequest) ProtoReflect

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

func (*QueryAssetRequest) Reset

func (x *QueryAssetRequest) Reset()

func (*QueryAssetRequest) String

func (x *QueryAssetRequest) String() string

type QueryAssetResponse

type QueryAssetResponse struct {

	// Asset is the asset associated with the token denomination.
	Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// contains filtered or unexported fields
}

QueryAssetResponse is the response type for the Query/Asset RPC method.

func (*QueryAssetResponse) Descriptor deprecated

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

Deprecated: Use QueryAssetResponse.ProtoReflect.Descriptor instead.

func (*QueryAssetResponse) GetAsset

func (x *QueryAssetResponse) GetAsset() *Asset

func (*QueryAssetResponse) ProtoMessage

func (*QueryAssetResponse) ProtoMessage()

func (*QueryAssetResponse) ProtoReflect

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

func (*QueryAssetResponse) Reset

func (x *QueryAssetResponse) Reset()

func (*QueryAssetResponse) String

func (x *QueryAssetResponse) String() string

type QueryAssetsRequest

type QueryAssetsRequest struct {

	// Ticker defines an optional filter parameter to query assets with the given
	// ticker.
	Ticker string `protobuf:"bytes,1,opt,name=ticker,proto3" json:"ticker,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAssetsRequest is the request type for the Query/Assets RPC method.

func (*QueryAssetsRequest) Descriptor deprecated

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

Deprecated: Use QueryAssetsRequest.ProtoReflect.Descriptor instead.

func (*QueryAssetsRequest) GetPagination

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

func (*QueryAssetsRequest) GetTicker

func (x *QueryAssetsRequest) GetTicker() string

func (*QueryAssetsRequest) ProtoMessage

func (*QueryAssetsRequest) ProtoMessage()

func (*QueryAssetsRequest) ProtoReflect

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

func (*QueryAssetsRequest) Reset

func (x *QueryAssetsRequest) Reset()

func (*QueryAssetsRequest) String

func (x *QueryAssetsRequest) String() string

type QueryAssetsResponse

type QueryAssetsResponse struct {

	// Assets represents all the assets registered.
	Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	// Pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAssetsResponse is the response type for the Query/Assets RPC method.

func (*QueryAssetsResponse) Descriptor deprecated

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

Deprecated: Use QueryAssetsResponse.ProtoReflect.Descriptor instead.

func (*QueryAssetsResponse) GetAssets

func (x *QueryAssetsResponse) GetAssets() []*Asset

func (*QueryAssetsResponse) GetPagination

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

func (*QueryAssetsResponse) ProtoMessage

func (*QueryAssetsResponse) ProtoMessage()

func (*QueryAssetsResponse) ProtoReflect

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

func (*QueryAssetsResponse) Reset

func (x *QueryAssetsResponse) Reset()

func (*QueryAssetsResponse) String

func (x *QueryAssetsResponse) String() string

type QueryClient

type QueryClient interface {
	// Assets defined a gRPC query method that returns all assets registered.
	Assets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, error)
	// Asset defines a gRPC query method that returns the asset associated with
	// the given token denomination.
	Asset(ctx context.Context, in *QueryAssetRequest, opts ...grpc.CallOption) (*QueryAssetResponse, 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

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryServer

type QueryServer interface {
	// Assets defined a gRPC query method that returns all assets registered.
	Assets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error)
	// Asset defines a gRPC query method that returns the asset associated with
	// the given token denomination.
	Asset(context.Context, *QueryAssetRequest) (*QueryAssetResponse, 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

type UnimplementedMsgServer struct{}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMsgServer) DeregisterAsset

func (UnimplementedMsgServer) RegisterAsset

type UnimplementedQueryServer

type UnimplementedQueryServer struct{}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedQueryServer) Asset

func (UnimplementedQueryServer) Assets

type UnsafeMsgServer

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

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.

Jump to

Keyboard shortcuts

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