csrv1

package
v8.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.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.

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

Index

Constants

View Source
const (
	Query_Params_FullMethodName        = "/canto.csr.v1.Query/Params"
	Query_CSRs_FullMethodName          = "/canto.csr.v1.Query/CSRs"
	Query_CSRByNFT_FullMethodName      = "/canto.csr.v1.Query/CSRByNFT"
	Query_CSRByContract_FullMethodName = "/canto.csr.v1.Query/CSRByContract"
	Query_Turnstile_FullMethodName     = "/canto.csr.v1.Query/Turnstile"
)
View Source
const (
	Msg_UpdateParams_FullMethodName = "/canto.csr.v1.Msg/UpdateParams"
)

Variables

View Source
var File_canto_csr_v1_csr_proto protoreflect.FileDescriptor
View Source
var File_canto_csr_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_canto_csr_v1_params_proto protoreflect.FileDescriptor
View Source
var File_canto_csr_v1_query_proto protoreflect.FileDescriptor
View Source
var File_canto_csr_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "canto.csr.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "canto/csr/v1/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: "canto.csr.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "CSRs",
			Handler:    _Query_CSRs_Handler,
		},
		{
			MethodName: "CSRByNFT",
			Handler:    _Query_CSRByNFT_Handler,
		},
		{
			MethodName: "CSRByContract",
			Handler:    _Query_CSRByContract_Handler,
		},
		{
			MethodName: "Turnstile",
			Handler:    _Query_Turnstile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "canto/csr/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 CSR

type CSR struct {

	// Contracts is the list of all EVM address that are registered to this NFT
	Contracts []string `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts,omitempty"`
	// The NFT id which this CSR corresponds to
	Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// The total number of transactions for this CSR NFT
	Txs uint64 `protobuf:"varint,3,opt,name=txs,proto3" json:"txs,omitempty"`
	// The cumulative revenue for this CSR NFT -> represented as a sdk.Int
	Revenue string `protobuf:"bytes,4,opt,name=revenue,proto3" json:"revenue,omitempty"`
	// contains filtered or unexported fields
}

The CSR struct is a wrapper to all of the metadata associated with a given CST NFT

func (*CSR) Descriptor deprecated

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

Deprecated: Use CSR.ProtoReflect.Descriptor instead.

func (*CSR) GetContracts

func (x *CSR) GetContracts() []string

func (*CSR) GetId

func (x *CSR) GetId() uint64

func (*CSR) GetRevenue

func (x *CSR) GetRevenue() string

func (*CSR) GetTxs

func (x *CSR) GetTxs() uint64

func (*CSR) ProtoMessage

func (*CSR) ProtoMessage()

func (*CSR) ProtoReflect

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

func (*CSR) Reset

func (x *CSR) Reset()

func (*CSR) String

func (x *CSR) String() string

type GenesisState

type GenesisState struct {

	// params defines all of the parameters of the module
	Params           *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Csrs             []*CSR  `protobuf:"bytes,2,rep,name=csrs,proto3" json:"csrs,omitempty"`
	TurnstileAddress string  `protobuf:"bytes,3,opt,name=turnstile_address,json=turnstileAddress,proto3" json:"turnstile_address,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the csr module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetCsrs

func (x *GenesisState) GetCsrs() []*CSR

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetTurnstileAddress

func (x *GenesisState) GetTurnstileAddress() string

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 {
	// UpdateParams updates the parameters of the x/csr module.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	// UpdateParams updates the parameters of the x/csr module.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

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

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/csr 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
}

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.

Since: cosmos-sdk 0.47

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 {

	// boolean to enable the csr module
	EnableCsr bool `protobuf:"varint,1,opt,name=enable_csr,json=enableCsr,proto3" json:"enable_csr,omitempty"`
	// decimal to determine the transaction fee split between network operators
	// (validators) and CSR
	CsrShares string `protobuf:"bytes,2,opt,name=csr_shares,json=csrShares,proto3" json:"csr_shares,omitempty"`
	// contains filtered or unexported fields
}

Params holds parameters for the csr module

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetCsrShares

func (x *Params) GetCsrShares() string

func (*Params) GetEnableCsr

func (x *Params) GetEnableCsr() bool

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 QueryCSRByContractRequest

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

QueryCSRByContractRequest is the request type for the Query/CSRByContract RPC method.

func (*QueryCSRByContractRequest) Descriptor deprecated

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

Deprecated: Use QueryCSRByContractRequest.ProtoReflect.Descriptor instead.

func (*QueryCSRByContractRequest) GetAddress

func (x *QueryCSRByContractRequest) GetAddress() string

func (*QueryCSRByContractRequest) ProtoMessage

func (*QueryCSRByContractRequest) ProtoMessage()

func (*QueryCSRByContractRequest) ProtoReflect

func (*QueryCSRByContractRequest) Reset

func (x *QueryCSRByContractRequest) Reset()

func (*QueryCSRByContractRequest) String

func (x *QueryCSRByContractRequest) String() string

type QueryCSRByContractResponse

type QueryCSRByContractResponse struct {

	// csr object queried by smart contract address
	Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
	// contains filtered or unexported fields
}

QueryCSRByContractResponse is the response type for the Query/CSRByContract RPC method.

func (*QueryCSRByContractResponse) Descriptor deprecated

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

Deprecated: Use QueryCSRByContractResponse.ProtoReflect.Descriptor instead.

func (*QueryCSRByContractResponse) GetCsr

func (x *QueryCSRByContractResponse) GetCsr() *CSR

func (*QueryCSRByContractResponse) ProtoMessage

func (*QueryCSRByContractResponse) ProtoMessage()

func (*QueryCSRByContractResponse) ProtoReflect

func (*QueryCSRByContractResponse) Reset

func (x *QueryCSRByContractResponse) Reset()

func (*QueryCSRByContractResponse) String

func (x *QueryCSRByContractResponse) String() string

type QueryCSRByNFTRequest

type QueryCSRByNFTRequest struct {
	NftId uint64 `protobuf:"varint,1,opt,name=nftId,proto3" json:"nftId,omitempty"`
	// contains filtered or unexported fields
}

QueryCSRByNFTRequest is the request type for the Query/CSRByNFT RPC method.

func (*QueryCSRByNFTRequest) Descriptor deprecated

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

Deprecated: Use QueryCSRByNFTRequest.ProtoReflect.Descriptor instead.

func (*QueryCSRByNFTRequest) GetNftId

func (x *QueryCSRByNFTRequest) GetNftId() uint64

func (*QueryCSRByNFTRequest) ProtoMessage

func (*QueryCSRByNFTRequest) ProtoMessage()

func (*QueryCSRByNFTRequest) ProtoReflect

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

func (*QueryCSRByNFTRequest) Reset

func (x *QueryCSRByNFTRequest) Reset()

func (*QueryCSRByNFTRequest) String

func (x *QueryCSRByNFTRequest) String() string

type QueryCSRByNFTResponse

type QueryCSRByNFTResponse struct {

	// csr object queried by nft id
	Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
	// contains filtered or unexported fields
}

QueryCSRByNFTResponse is the response type for the Query/CSRByNFT RPC method.

func (*QueryCSRByNFTResponse) Descriptor deprecated

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

Deprecated: Use QueryCSRByNFTResponse.ProtoReflect.Descriptor instead.

func (*QueryCSRByNFTResponse) GetCsr

func (x *QueryCSRByNFTResponse) GetCsr() *CSR

func (*QueryCSRByNFTResponse) ProtoMessage

func (*QueryCSRByNFTResponse) ProtoMessage()

func (*QueryCSRByNFTResponse) ProtoReflect

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

func (*QueryCSRByNFTResponse) Reset

func (x *QueryCSRByNFTResponse) Reset()

func (*QueryCSRByNFTResponse) String

func (x *QueryCSRByNFTResponse) String() string

type QueryCSRsRequest

type QueryCSRsRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryCSRsRequest is the request type for the Query/CSRs RPC method.

func (*QueryCSRsRequest) Descriptor deprecated

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

Deprecated: Use QueryCSRsRequest.ProtoReflect.Descriptor instead.

func (*QueryCSRsRequest) GetPagination

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

func (*QueryCSRsRequest) ProtoMessage

func (*QueryCSRsRequest) ProtoMessage()

func (*QueryCSRsRequest) ProtoReflect

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

func (*QueryCSRsRequest) Reset

func (x *QueryCSRsRequest) Reset()

func (*QueryCSRsRequest) String

func (x *QueryCSRsRequest) String() string

type QueryCSRsResponse

type QueryCSRsResponse struct {
	Csrs []*CSR `protobuf:"bytes,1,rep,name=csrs,proto3" json:"csrs,omitempty"`
	// pagination for response
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryCSRsResponse is the response type for the Query/CSRs RPC method.

func (*QueryCSRsResponse) Descriptor deprecated

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

Deprecated: Use QueryCSRsResponse.ProtoReflect.Descriptor instead.

func (*QueryCSRsResponse) GetCsrs

func (x *QueryCSRsResponse) GetCsrs() []*CSR

func (*QueryCSRsResponse) GetPagination

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

func (*QueryCSRsResponse) ProtoMessage

func (*QueryCSRsResponse) ProtoMessage()

func (*QueryCSRsResponse) ProtoReflect

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

func (*QueryCSRsResponse) Reset

func (x *QueryCSRsResponse) Reset()

func (*QueryCSRsResponse) String

func (x *QueryCSRsResponse) String() string

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// query all registered CSRs
	CSRs(ctx context.Context, in *QueryCSRsRequest, opts ...grpc.CallOption) (*QueryCSRsResponse, error)
	// query a specific CSR by the nftId
	CSRByNFT(ctx context.Context, in *QueryCSRByNFTRequest, opts ...grpc.CallOption) (*QueryCSRByNFTResponse, error)
	// query a CSR by smart contract address
	CSRByContract(ctx context.Context, in *QueryCSRByContractRequest, opts ...grpc.CallOption) (*QueryCSRByContractResponse, error)
	// query the turnstile address
	Turnstile(ctx context.Context, in *QueryTurnstileRequest, opts ...grpc.CallOption) (*QueryTurnstileResponse, 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.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryParamsRequest

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

QueryParamsRequest is the 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 the 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

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// query all registered CSRs
	CSRs(context.Context, *QueryCSRsRequest) (*QueryCSRsResponse, error)
	// query a specific CSR by the nftId
	CSRByNFT(context.Context, *QueryCSRByNFTRequest) (*QueryCSRByNFTResponse, error)
	// query a CSR by smart contract address
	CSRByContract(context.Context, *QueryCSRByContractRequest) (*QueryCSRByContractResponse, error)
	// query the turnstile address
	Turnstile(context.Context, *QueryTurnstileRequest) (*QueryTurnstileResponse, error)
	// contains filtered or unexported methods
}

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

type QueryTurnstileRequest

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

QueryTurnstileRequest is the request type for the Query/Turnstile RPC method.

func (*QueryTurnstileRequest) Descriptor deprecated

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

Deprecated: Use QueryTurnstileRequest.ProtoReflect.Descriptor instead.

func (*QueryTurnstileRequest) ProtoMessage

func (*QueryTurnstileRequest) ProtoMessage()

func (*QueryTurnstileRequest) ProtoReflect

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

func (*QueryTurnstileRequest) Reset

func (x *QueryTurnstileRequest) Reset()

func (*QueryTurnstileRequest) String

func (x *QueryTurnstileRequest) String() string

type QueryTurnstileResponse

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

QueryTurnstileResponse is the response type for the Query/Turnstile RPC method.

func (*QueryTurnstileResponse) Descriptor deprecated

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

Deprecated: Use QueryTurnstileResponse.ProtoReflect.Descriptor instead.

func (*QueryTurnstileResponse) GetAddress

func (x *QueryTurnstileResponse) GetAddress() string

func (*QueryTurnstileResponse) ProtoMessage

func (*QueryTurnstileResponse) ProtoMessage()

func (*QueryTurnstileResponse) ProtoReflect

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

func (*QueryTurnstileResponse) Reset

func (x *QueryTurnstileResponse) Reset()

func (*QueryTurnstileResponse) String

func (x *QueryTurnstileResponse) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) CSRByNFT

func (UnimplementedQueryServer) CSRs

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Turnstile

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