Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateEnableCSR(i interface{}) error
- func ValidateShares(i interface{}) error
- type AccountKeeper
- type BankKeeper
- type CSR
- func (*CSR) Descriptor() ([]byte, []int)
- func (m *CSR) GetContracts() []string
- func (m *CSR) GetId() uint64
- func (m *CSR) GetTxs() uint64
- func (m *CSR) Marshal() (dAtA []byte, err error)
- func (m *CSR) MarshalTo(dAtA []byte) (int, error)
- func (m *CSR) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CSR) ProtoMessage()
- func (m *CSR) Reset()
- func (m *CSR) Size() (n int)
- func (m *CSR) String() string
- func (m *CSR) Unmarshal(dAtA []byte) error
- func (csr CSR) Validate() error
- func (m *CSR) XXX_DiscardUnknown()
- func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CSR) XXX_Merge(src proto.Message)
- func (m *CSR) XXX_Size() int
- func (m *CSR) XXX_Unmarshal(b []byte) error
- type EVMKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEnableCsr() bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryCSRByContractRequest
- func (*QueryCSRByContractRequest) Descriptor() ([]byte, []int)
- func (m *QueryCSRByContractRequest) GetAddress() string
- func (m *QueryCSRByContractRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCSRByContractRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCSRByContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCSRByContractRequest) ProtoMessage()
- func (m *QueryCSRByContractRequest) Reset()
- func (m *QueryCSRByContractRequest) Size() (n int)
- func (m *QueryCSRByContractRequest) String() string
- func (m *QueryCSRByContractRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCSRByContractRequest) XXX_DiscardUnknown()
- func (m *QueryCSRByContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCSRByContractRequest) XXX_Merge(src proto.Message)
- func (m *QueryCSRByContractRequest) XXX_Size() int
- func (m *QueryCSRByContractRequest) XXX_Unmarshal(b []byte) error
- type QueryCSRByContractResponse
- func (*QueryCSRByContractResponse) Descriptor() ([]byte, []int)
- func (m *QueryCSRByContractResponse) GetCsr() CSR
- func (m *QueryCSRByContractResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCSRByContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCSRByContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCSRByContractResponse) ProtoMessage()
- func (m *QueryCSRByContractResponse) Reset()
- func (m *QueryCSRByContractResponse) Size() (n int)
- func (m *QueryCSRByContractResponse) String() string
- func (m *QueryCSRByContractResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCSRByContractResponse) XXX_DiscardUnknown()
- func (m *QueryCSRByContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCSRByContractResponse) XXX_Merge(src proto.Message)
- func (m *QueryCSRByContractResponse) XXX_Size() int
- func (m *QueryCSRByContractResponse) XXX_Unmarshal(b []byte) error
- type QueryCSRByNFTRequest
- func (*QueryCSRByNFTRequest) Descriptor() ([]byte, []int)
- func (m *QueryCSRByNFTRequest) GetNftId() uint64
- func (m *QueryCSRByNFTRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCSRByNFTRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCSRByNFTRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCSRByNFTRequest) ProtoMessage()
- func (m *QueryCSRByNFTRequest) Reset()
- func (m *QueryCSRByNFTRequest) Size() (n int)
- func (m *QueryCSRByNFTRequest) String() string
- func (m *QueryCSRByNFTRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCSRByNFTRequest) XXX_DiscardUnknown()
- func (m *QueryCSRByNFTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCSRByNFTRequest) XXX_Merge(src proto.Message)
- func (m *QueryCSRByNFTRequest) XXX_Size() int
- func (m *QueryCSRByNFTRequest) XXX_Unmarshal(b []byte) error
- type QueryCSRByNFTResponse
- func (*QueryCSRByNFTResponse) Descriptor() ([]byte, []int)
- func (m *QueryCSRByNFTResponse) GetCsr() CSR
- func (m *QueryCSRByNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCSRByNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCSRByNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCSRByNFTResponse) ProtoMessage()
- func (m *QueryCSRByNFTResponse) Reset()
- func (m *QueryCSRByNFTResponse) Size() (n int)
- func (m *QueryCSRByNFTResponse) String() string
- func (m *QueryCSRByNFTResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCSRByNFTResponse) XXX_DiscardUnknown()
- func (m *QueryCSRByNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCSRByNFTResponse) XXX_Merge(src proto.Message)
- func (m *QueryCSRByNFTResponse) XXX_Size() int
- func (m *QueryCSRByNFTResponse) XXX_Unmarshal(b []byte) error
- type QueryCSRsRequest
- func (*QueryCSRsRequest) Descriptor() ([]byte, []int)
- func (m *QueryCSRsRequest) GetPagination() *query.PageRequest
- func (m *QueryCSRsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCSRsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCSRsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCSRsRequest) ProtoMessage()
- func (m *QueryCSRsRequest) Reset()
- func (m *QueryCSRsRequest) Size() (n int)
- func (m *QueryCSRsRequest) String() string
- func (m *QueryCSRsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCSRsRequest) XXX_DiscardUnknown()
- func (m *QueryCSRsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCSRsRequest) XXX_Merge(src proto.Message)
- func (m *QueryCSRsRequest) XXX_Size() int
- func (m *QueryCSRsRequest) XXX_Unmarshal(b []byte) error
- type QueryCSRsResponse
- func (*QueryCSRsResponse) Descriptor() ([]byte, []int)
- func (m *QueryCSRsResponse) GetCsrs() []CSR
- func (m *QueryCSRsResponse) GetPagination() *query.PageResponse
- func (m *QueryCSRsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCSRsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCSRsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCSRsResponse) ProtoMessage()
- func (m *QueryCSRsResponse) Reset()
- func (m *QueryCSRsResponse) Size() (n int)
- func (m *QueryCSRsResponse) String() string
- func (m *QueryCSRsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCSRsResponse) XXX_DiscardUnknown()
- func (m *QueryCSRsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCSRsResponse) XXX_Merge(src proto.Message)
- func (m *QueryCSRsResponse) XXX_Size() int
- func (m *QueryCSRsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryTurnstileRequest
- func (*QueryTurnstileRequest) Descriptor() ([]byte, []int)
- func (m *QueryTurnstileRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTurnstileRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTurnstileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTurnstileRequest) ProtoMessage()
- func (m *QueryTurnstileRequest) Reset()
- func (m *QueryTurnstileRequest) Size() (n int)
- func (m *QueryTurnstileRequest) String() string
- func (m *QueryTurnstileRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTurnstileRequest) XXX_DiscardUnknown()
- func (m *QueryTurnstileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTurnstileRequest) XXX_Merge(src proto.Message)
- func (m *QueryTurnstileRequest) XXX_Size() int
- func (m *QueryTurnstileRequest) XXX_Unmarshal(b []byte) error
- type QueryTurnstileResponse
- func (*QueryTurnstileResponse) Descriptor() ([]byte, []int)
- func (m *QueryTurnstileResponse) GetAddress() string
- func (m *QueryTurnstileResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTurnstileResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTurnstileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTurnstileResponse) ProtoMessage()
- func (m *QueryTurnstileResponse) Reset()
- func (m *QueryTurnstileResponse) Size() (n int)
- func (m *QueryTurnstileResponse) String() string
- func (m *QueryTurnstileResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTurnstileResponse) XXX_DiscardUnknown()
- func (m *QueryTurnstileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTurnstileResponse) XXX_Merge(src proto.Message)
- func (m *QueryTurnstileResponse) XXX_Size() int
- func (m *QueryTurnstileResponse) XXX_Unmarshal(b []byte) error
- type RegisterCSREvent
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CSRByContract(ctx context.Context, req *QueryCSRByContractRequest) (*QueryCSRByContractResponse, error)
- func (*UnimplementedQueryServer) CSRByNFT(ctx context.Context, req *QueryCSRByNFTRequest) (*QueryCSRByNFTResponse, error)
- func (*UnimplementedQueryServer) CSRs(ctx context.Context, req *QueryCSRsRequest) (*QueryCSRsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Turnstile(ctx context.Context, req *QueryTurnstileRequest) (*QueryTurnstileResponse, error)
- type UpdateCSREvent
Constants ¶
const ( TurnstileEventRegister = "Register" TurnstileEventUpdate = "Assign" )
const ( // ModuleName defines the module name ModuleName = "csr" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) AminoCdc = codec.NewAminoCodec(amino) )
var ( ErrInvalidLengthCsr = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCsr = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCsr = fmt.Errorf("proto: unexpected end of group") )
var ( ErrSmartContractSupply = sdkerrors.Register(ModuleName, 1000, "The supply of smart contracts must be greater than 0") ErrDuplicateSmartContracts = sdkerrors.Register(ModuleName, 1001, "There cannot be duplicate smart contracts") ErrInvalidSmartContractAddress = sdkerrors.Register(ModuleName, 1002, "There cannot be invalid smart contract addresses") ErrInvalidParams = sdkerrors.Register(ModuleName, 1003, "The parameters for CSR are invalid") )
CSR module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeyPrefixCSR = []byte{prefixCSR} KeyPrefixContract = []byte{prefixContract} KeyPrefixAddrs = []byte{prefixAddrs} )
KVStore key prefixes
var ( DefaultEnableCSR = false ParamStoreKeyEnableCSR = []byte("EnableCSR") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ModuleAddress common.Address
ModuleAcct will be the account from which all contracts are deployed from
var TurnstileKey = []byte("Turnstile")
key for turnstile address once deployed
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
register interfaces for the AminoCodec
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
register csr msg types for Amino Codec in adherence to EIP-712 signing conventions
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
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 ¶
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 ¶
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 ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateEnableCSR ¶
func ValidateEnableCSR(i interface{}) error
Validates the boolean which enables CSR
func ValidateShares ¶
func ValidateShares(i interface{}) error
Validates the CSR share dec that is inputted
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected interface needed to retrieve account info.
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to send tx fees from the fee collector module to the CSR module for distribution.
type CSR ¶
type CSR struct { // Contracts is the list of all EVM address that are registered to this pool (EVM addresses) 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 big.Int Revenue github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=revenue,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"revenue"` }
The CSR struct is a wrapper to all of the metadata associated with a given CST NFT
func (*CSR) Descriptor ¶
func (*CSR) GetContracts ¶
func (*CSR) ProtoMessage ¶
func (*CSR) ProtoMessage()
func (CSR) Validate ¶
Validate performs stateless validation of a CSR object. This will check if there are duplicate smart contracts entered in the CSR, whether each smart contract is a valid eth address and check if the number of contracts is greater than 1.
func (*CSR) XXX_DiscardUnknown ¶
func (m *CSR) XXX_DiscardUnknown()
func (*CSR) XXX_Unmarshal ¶
type EVMKeeper ¶
type EVMKeeper interface { ApplyMessage(ctx sdk.Context, msg core.Message, tracer vm.EVMLogger, commit bool) (*evmtypes.MsgEthereumTxResponse, error) EstimateGas(c context.Context, req *evmtypes.EthCallRequest) (*evmtypes.EstimateGasResponse, error) GetAccount(ctx sdk.Context, addr common.Address) *statedb.Account GetParams(ctx sdk.Context) evmtypes.Params }
EVMKeeper defines the expected EVM keeper interface used to make EVM deployments and txs from the module account.
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"` }
GenesisState defines the csr module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
By default, there should be no CSRs on genesis because the CSR turnstile and NFT smart contracts have not been deployed yet. Checks if params are valid.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
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"` CsrShares github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */ }
Params holds parameters for the csr module
func (*Params) Descriptor ¶
func (*Params) GetEnableCsr ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryCSRByContractRequest ¶
type QueryCSRByContractRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
QueryCSRByContractRequest is the request type for the Query/CSRByContract RPC method.
func (*QueryCSRByContractRequest) Descriptor ¶
func (*QueryCSRByContractRequest) Descriptor() ([]byte, []int)
func (*QueryCSRByContractRequest) GetAddress ¶
func (m *QueryCSRByContractRequest) GetAddress() string
func (*QueryCSRByContractRequest) Marshal ¶
func (m *QueryCSRByContractRequest) Marshal() (dAtA []byte, err error)
func (*QueryCSRByContractRequest) MarshalTo ¶
func (m *QueryCSRByContractRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCSRByContractRequest) MarshalToSizedBuffer ¶
func (m *QueryCSRByContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCSRByContractRequest) ProtoMessage ¶
func (*QueryCSRByContractRequest) ProtoMessage()
func (*QueryCSRByContractRequest) Reset ¶
func (m *QueryCSRByContractRequest) Reset()
func (*QueryCSRByContractRequest) Size ¶
func (m *QueryCSRByContractRequest) Size() (n int)
func (*QueryCSRByContractRequest) String ¶
func (m *QueryCSRByContractRequest) String() string
func (*QueryCSRByContractRequest) Unmarshal ¶
func (m *QueryCSRByContractRequest) Unmarshal(dAtA []byte) error
func (*QueryCSRByContractRequest) XXX_DiscardUnknown ¶
func (m *QueryCSRByContractRequest) XXX_DiscardUnknown()
func (*QueryCSRByContractRequest) XXX_Marshal ¶
func (m *QueryCSRByContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCSRByContractRequest) XXX_Merge ¶
func (m *QueryCSRByContractRequest) XXX_Merge(src proto.Message)
func (*QueryCSRByContractRequest) XXX_Size ¶
func (m *QueryCSRByContractRequest) XXX_Size() int
func (*QueryCSRByContractRequest) XXX_Unmarshal ¶
func (m *QueryCSRByContractRequest) XXX_Unmarshal(b []byte) error
type QueryCSRByContractResponse ¶
type QueryCSRByContractResponse struct { // csr object queried by smart contract address Csr CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr"` }
QueryCSRByContractResponse is the response type for the Query/CSRByContract RPC method.
func (*QueryCSRByContractResponse) Descriptor ¶
func (*QueryCSRByContractResponse) Descriptor() ([]byte, []int)
func (*QueryCSRByContractResponse) GetCsr ¶
func (m *QueryCSRByContractResponse) GetCsr() CSR
func (*QueryCSRByContractResponse) Marshal ¶
func (m *QueryCSRByContractResponse) Marshal() (dAtA []byte, err error)
func (*QueryCSRByContractResponse) MarshalTo ¶
func (m *QueryCSRByContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCSRByContractResponse) MarshalToSizedBuffer ¶
func (m *QueryCSRByContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCSRByContractResponse) ProtoMessage ¶
func (*QueryCSRByContractResponse) ProtoMessage()
func (*QueryCSRByContractResponse) Reset ¶
func (m *QueryCSRByContractResponse) Reset()
func (*QueryCSRByContractResponse) Size ¶
func (m *QueryCSRByContractResponse) Size() (n int)
func (*QueryCSRByContractResponse) String ¶
func (m *QueryCSRByContractResponse) String() string
func (*QueryCSRByContractResponse) Unmarshal ¶
func (m *QueryCSRByContractResponse) Unmarshal(dAtA []byte) error
func (*QueryCSRByContractResponse) XXX_DiscardUnknown ¶
func (m *QueryCSRByContractResponse) XXX_DiscardUnknown()
func (*QueryCSRByContractResponse) XXX_Marshal ¶
func (m *QueryCSRByContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCSRByContractResponse) XXX_Merge ¶
func (m *QueryCSRByContractResponse) XXX_Merge(src proto.Message)
func (*QueryCSRByContractResponse) XXX_Size ¶
func (m *QueryCSRByContractResponse) XXX_Size() int
func (*QueryCSRByContractResponse) XXX_Unmarshal ¶
func (m *QueryCSRByContractResponse) XXX_Unmarshal(b []byte) error
type QueryCSRByNFTRequest ¶
type QueryCSRByNFTRequest struct {
NftId uint64 `protobuf:"varint,1,opt,name=nftId,proto3" json:"nftId,omitempty"`
}
QueryCSRByNFTRequest is the request type for the Query/CSRByNFT RPC method.
func (*QueryCSRByNFTRequest) Descriptor ¶
func (*QueryCSRByNFTRequest) Descriptor() ([]byte, []int)
func (*QueryCSRByNFTRequest) GetNftId ¶
func (m *QueryCSRByNFTRequest) GetNftId() uint64
func (*QueryCSRByNFTRequest) Marshal ¶
func (m *QueryCSRByNFTRequest) Marshal() (dAtA []byte, err error)
func (*QueryCSRByNFTRequest) MarshalTo ¶
func (m *QueryCSRByNFTRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCSRByNFTRequest) MarshalToSizedBuffer ¶
func (m *QueryCSRByNFTRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCSRByNFTRequest) ProtoMessage ¶
func (*QueryCSRByNFTRequest) ProtoMessage()
func (*QueryCSRByNFTRequest) Reset ¶
func (m *QueryCSRByNFTRequest) Reset()
func (*QueryCSRByNFTRequest) Size ¶
func (m *QueryCSRByNFTRequest) Size() (n int)
func (*QueryCSRByNFTRequest) String ¶
func (m *QueryCSRByNFTRequest) String() string
func (*QueryCSRByNFTRequest) Unmarshal ¶
func (m *QueryCSRByNFTRequest) Unmarshal(dAtA []byte) error
func (*QueryCSRByNFTRequest) XXX_DiscardUnknown ¶
func (m *QueryCSRByNFTRequest) XXX_DiscardUnknown()
func (*QueryCSRByNFTRequest) XXX_Marshal ¶
func (m *QueryCSRByNFTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCSRByNFTRequest) XXX_Merge ¶
func (m *QueryCSRByNFTRequest) XXX_Merge(src proto.Message)
func (*QueryCSRByNFTRequest) XXX_Size ¶
func (m *QueryCSRByNFTRequest) XXX_Size() int
func (*QueryCSRByNFTRequest) XXX_Unmarshal ¶
func (m *QueryCSRByNFTRequest) XXX_Unmarshal(b []byte) error
type QueryCSRByNFTResponse ¶
type QueryCSRByNFTResponse struct { // csr object queried by nft id Csr CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr"` }
QueryCSRByNFTResponse is the response type for the Query/CSRByNFT RPC method.
func (*QueryCSRByNFTResponse) Descriptor ¶
func (*QueryCSRByNFTResponse) Descriptor() ([]byte, []int)
func (*QueryCSRByNFTResponse) GetCsr ¶
func (m *QueryCSRByNFTResponse) GetCsr() CSR
func (*QueryCSRByNFTResponse) Marshal ¶
func (m *QueryCSRByNFTResponse) Marshal() (dAtA []byte, err error)
func (*QueryCSRByNFTResponse) MarshalTo ¶
func (m *QueryCSRByNFTResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCSRByNFTResponse) MarshalToSizedBuffer ¶
func (m *QueryCSRByNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCSRByNFTResponse) ProtoMessage ¶
func (*QueryCSRByNFTResponse) ProtoMessage()
func (*QueryCSRByNFTResponse) Reset ¶
func (m *QueryCSRByNFTResponse) Reset()
func (*QueryCSRByNFTResponse) Size ¶
func (m *QueryCSRByNFTResponse) Size() (n int)
func (*QueryCSRByNFTResponse) String ¶
func (m *QueryCSRByNFTResponse) String() string
func (*QueryCSRByNFTResponse) Unmarshal ¶
func (m *QueryCSRByNFTResponse) Unmarshal(dAtA []byte) error
func (*QueryCSRByNFTResponse) XXX_DiscardUnknown ¶
func (m *QueryCSRByNFTResponse) XXX_DiscardUnknown()
func (*QueryCSRByNFTResponse) XXX_Marshal ¶
func (m *QueryCSRByNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCSRByNFTResponse) XXX_Merge ¶
func (m *QueryCSRByNFTResponse) XXX_Merge(src proto.Message)
func (*QueryCSRByNFTResponse) XXX_Size ¶
func (m *QueryCSRByNFTResponse) XXX_Size() int
func (*QueryCSRByNFTResponse) XXX_Unmarshal ¶
func (m *QueryCSRByNFTResponse) XXX_Unmarshal(b []byte) error
type QueryCSRsRequest ¶
type QueryCSRsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCSRsRequest is the request type for the Query/CSRs RPC method.
func (*QueryCSRsRequest) Descriptor ¶
func (*QueryCSRsRequest) Descriptor() ([]byte, []int)
func (*QueryCSRsRequest) GetPagination ¶
func (m *QueryCSRsRequest) GetPagination() *query.PageRequest
func (*QueryCSRsRequest) Marshal ¶
func (m *QueryCSRsRequest) Marshal() (dAtA []byte, err error)
func (*QueryCSRsRequest) MarshalToSizedBuffer ¶
func (m *QueryCSRsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCSRsRequest) ProtoMessage ¶
func (*QueryCSRsRequest) ProtoMessage()
func (*QueryCSRsRequest) Reset ¶
func (m *QueryCSRsRequest) Reset()
func (*QueryCSRsRequest) Size ¶
func (m *QueryCSRsRequest) Size() (n int)
func (*QueryCSRsRequest) String ¶
func (m *QueryCSRsRequest) String() string
func (*QueryCSRsRequest) Unmarshal ¶
func (m *QueryCSRsRequest) Unmarshal(dAtA []byte) error
func (*QueryCSRsRequest) XXX_DiscardUnknown ¶
func (m *QueryCSRsRequest) XXX_DiscardUnknown()
func (*QueryCSRsRequest) XXX_Marshal ¶
func (m *QueryCSRsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCSRsRequest) XXX_Merge ¶
func (m *QueryCSRsRequest) XXX_Merge(src proto.Message)
func (*QueryCSRsRequest) XXX_Size ¶
func (m *QueryCSRsRequest) XXX_Size() int
func (*QueryCSRsRequest) XXX_Unmarshal ¶
func (m *QueryCSRsRequest) XXX_Unmarshal(b []byte) error
type QueryCSRsResponse ¶
type QueryCSRsResponse struct { Csrs []CSR `protobuf:"bytes,1,rep,name=csrs,proto3" json:"csrs"` // pagination for response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCSRsResponse is the response type for the Query/CSRs RPC method.
func (*QueryCSRsResponse) Descriptor ¶
func (*QueryCSRsResponse) Descriptor() ([]byte, []int)
func (*QueryCSRsResponse) GetCsrs ¶
func (m *QueryCSRsResponse) GetCsrs() []CSR
func (*QueryCSRsResponse) GetPagination ¶
func (m *QueryCSRsResponse) GetPagination() *query.PageResponse
func (*QueryCSRsResponse) Marshal ¶
func (m *QueryCSRsResponse) Marshal() (dAtA []byte, err error)
func (*QueryCSRsResponse) MarshalTo ¶
func (m *QueryCSRsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCSRsResponse) MarshalToSizedBuffer ¶
func (m *QueryCSRsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCSRsResponse) ProtoMessage ¶
func (*QueryCSRsResponse) ProtoMessage()
func (*QueryCSRsResponse) Reset ¶
func (m *QueryCSRsResponse) Reset()
func (*QueryCSRsResponse) Size ¶
func (m *QueryCSRsResponse) Size() (n int)
func (*QueryCSRsResponse) String ¶
func (m *QueryCSRsResponse) String() string
func (*QueryCSRsResponse) Unmarshal ¶
func (m *QueryCSRsResponse) Unmarshal(dAtA []byte) error
func (*QueryCSRsResponse) XXX_DiscardUnknown ¶
func (m *QueryCSRsResponse) XXX_DiscardUnknown()
func (*QueryCSRsResponse) XXX_Marshal ¶
func (m *QueryCSRsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCSRsResponse) XXX_Merge ¶
func (m *QueryCSRsResponse) XXX_Merge(src proto.Message)
func (*QueryCSRsResponse) XXX_Size ¶
func (m *QueryCSRsResponse) XXX_Size() int
func (*QueryCSRsResponse) XXX_Unmarshal ¶
func (m *QueryCSRsResponse) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
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) }
QueryServer is the server API for Query service.
type QueryTurnstileRequest ¶
type QueryTurnstileRequest struct { }
QueryTurnstileRequest is the request type for the Query/Turnstile RPC method.
func (*QueryTurnstileRequest) Descriptor ¶
func (*QueryTurnstileRequest) Descriptor() ([]byte, []int)
func (*QueryTurnstileRequest) Marshal ¶
func (m *QueryTurnstileRequest) Marshal() (dAtA []byte, err error)
func (*QueryTurnstileRequest) MarshalTo ¶
func (m *QueryTurnstileRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTurnstileRequest) MarshalToSizedBuffer ¶
func (m *QueryTurnstileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTurnstileRequest) ProtoMessage ¶
func (*QueryTurnstileRequest) ProtoMessage()
func (*QueryTurnstileRequest) Reset ¶
func (m *QueryTurnstileRequest) Reset()
func (*QueryTurnstileRequest) Size ¶
func (m *QueryTurnstileRequest) Size() (n int)
func (*QueryTurnstileRequest) String ¶
func (m *QueryTurnstileRequest) String() string
func (*QueryTurnstileRequest) Unmarshal ¶
func (m *QueryTurnstileRequest) Unmarshal(dAtA []byte) error
func (*QueryTurnstileRequest) XXX_DiscardUnknown ¶
func (m *QueryTurnstileRequest) XXX_DiscardUnknown()
func (*QueryTurnstileRequest) XXX_Marshal ¶
func (m *QueryTurnstileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTurnstileRequest) XXX_Merge ¶
func (m *QueryTurnstileRequest) XXX_Merge(src proto.Message)
func (*QueryTurnstileRequest) XXX_Size ¶
func (m *QueryTurnstileRequest) XXX_Size() int
func (*QueryTurnstileRequest) XXX_Unmarshal ¶
func (m *QueryTurnstileRequest) XXX_Unmarshal(b []byte) error
type QueryTurnstileResponse ¶
type QueryTurnstileResponse struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
QueryTurnstileResponse is the response type for the Query/Turnstile RPC method.
func (*QueryTurnstileResponse) Descriptor ¶
func (*QueryTurnstileResponse) Descriptor() ([]byte, []int)
func (*QueryTurnstileResponse) GetAddress ¶
func (m *QueryTurnstileResponse) GetAddress() string
func (*QueryTurnstileResponse) Marshal ¶
func (m *QueryTurnstileResponse) Marshal() (dAtA []byte, err error)
func (*QueryTurnstileResponse) MarshalTo ¶
func (m *QueryTurnstileResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTurnstileResponse) MarshalToSizedBuffer ¶
func (m *QueryTurnstileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTurnstileResponse) ProtoMessage ¶
func (*QueryTurnstileResponse) ProtoMessage()
func (*QueryTurnstileResponse) Reset ¶
func (m *QueryTurnstileResponse) Reset()
func (*QueryTurnstileResponse) Size ¶
func (m *QueryTurnstileResponse) Size() (n int)
func (*QueryTurnstileResponse) String ¶
func (m *QueryTurnstileResponse) String() string
func (*QueryTurnstileResponse) Unmarshal ¶
func (m *QueryTurnstileResponse) Unmarshal(dAtA []byte) error
func (*QueryTurnstileResponse) XXX_DiscardUnknown ¶
func (m *QueryTurnstileResponse) XXX_DiscardUnknown()
func (*QueryTurnstileResponse) XXX_Marshal ¶
func (m *QueryTurnstileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTurnstileResponse) XXX_Merge ¶
func (m *QueryTurnstileResponse) XXX_Merge(src proto.Message)
func (*QueryTurnstileResponse) XXX_Size ¶
func (m *QueryTurnstileResponse) XXX_Size() int
func (*QueryTurnstileResponse) XXX_Unmarshal ¶
func (m *QueryTurnstileResponse) XXX_Unmarshal(b []byte) error
type RegisterCSREvent ¶
type RegisterCSREvent struct { SmartContract common.Address Recipient common.Address TokenId *big.Int }
Register Event that is emitted from the Turnstile Smart Contract
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CSRByContract ¶
func (*UnimplementedQueryServer) CSRByContract(ctx context.Context, req *QueryCSRByContractRequest) (*QueryCSRByContractResponse, error)
func (*UnimplementedQueryServer) CSRByNFT ¶
func (*UnimplementedQueryServer) CSRByNFT(ctx context.Context, req *QueryCSRByNFTRequest) (*QueryCSRByNFTResponse, error)
func (*UnimplementedQueryServer) CSRs ¶
func (*UnimplementedQueryServer) CSRs(ctx context.Context, req *QueryCSRsRequest) (*QueryCSRsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Turnstile ¶
func (*UnimplementedQueryServer) Turnstile(ctx context.Context, req *QueryTurnstileRequest) (*QueryTurnstileResponse, error)