Versions in this module Expand all Collapse all v6 v6.0.0 Feb 24, 2023 Changes in this version + const DefaultIndex + const ModuleName + const RouterKey + const StoreKey + const TurnstileEventRegister + const TurnstileEventUpdate + var AminoCdc = codec.NewAminoCodec(amino) + var DefaultCSRShares = sdk.NewDecWithPrec(20, 2) + var DefaultEnableCSR = false + var ErrDuplicateSmartContracts = sdkerrors.Register(ModuleName, 1001, "There cannot be duplicate smart contracts") + var ErrIntOverflowCsr = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthCsr = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidParams = sdkerrors.Register(ModuleName, 1003, "The parameters for CSR are invalid") + var ErrInvalidSmartContractAddress = sdkerrors.Register(ModuleName, 1002, "There cannot be invalid smart contract addresses") + var ErrSmartContractSupply = sdkerrors.Register(ModuleName, 1000, "The supply of smart contracts must be greater than 0") + var ErrUnexpectedEndOfGroupCsr = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var KeyPrefixAddrs = []byte + var KeyPrefixCSR = []byte + var KeyPrefixContract = []byte + var ModuleAddress common.Address + var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) + var ParamStoreKeyCSRShares = []byte("CSRShares") + var ParamStoreKeyEnableCSR = []byte("EnableCSR") + var TurnstileKey = []byte("Turnstile") + 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 interface + GetSequence func(ctx sdk.Context, addr sdk.AccAddress) (uint64, error) + type BankKeeper interface + BurnCoins func(ctx sdk.Context, moduleName string, amt sdk.Coins) error + SendCoinsFromModuleToModule func(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error + type CSR struct + Contracts []string + Id uint64 + Revenue github_com_cosmos_cosmos_sdk_types.Int + Txs uint64 + func NewCSR(contracts []string, id uint64) CSR + func (*CSR) Descriptor() ([]byte, []int) + func (*CSR) ProtoMessage() + func (csr CSR) Validate() error + 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 (m *CSR) Reset() + func (m *CSR) Size() (n int) + func (m *CSR) String() string + func (m *CSR) Unmarshal(dAtA []byte) 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 interface + ApplyMessage func(ctx sdk.Context, msg core.Message, tracer vm.EVMLogger, commit bool) (*evmtypes.MsgEthereumTxResponse, error) + EstimateGas func(c context.Context, req *evmtypes.EthCallRequest) (*evmtypes.EstimateGasResponse, error) + GetAccount func(ctx sdk.Context, addr common.Address) *statedb.Account + GetParams func(ctx sdk.Context) evmtypes.Params + type GenesisState struct + Params Params + func DefaultGenesis() *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + 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 (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) 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 struct + CsrShares github_com_cosmos_cosmos_sdk_types.Dec + EnableCsr bool + func DefaultParams() Params + func NewParams(enableCSR bool, csrShares sdk.Dec) Params + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + 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 (m *Params) Reset() + func (m *Params) Size() (n int) + func (m *Params) String() string + func (m *Params) Unmarshal(dAtA []byte) 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 + func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs + func (p Params) Validate() error + type QueryCSRByContractRequest struct + Address string + func (*QueryCSRByContractRequest) Descriptor() ([]byte, []int) + func (*QueryCSRByContractRequest) ProtoMessage() + 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 (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 struct + Csr CSR + func (*QueryCSRByContractResponse) Descriptor() ([]byte, []int) + func (*QueryCSRByContractResponse) ProtoMessage() + 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 (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 struct + NftId uint64 + func (*QueryCSRByNFTRequest) Descriptor() ([]byte, []int) + func (*QueryCSRByNFTRequest) ProtoMessage() + 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 (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 struct + Csr CSR + func (*QueryCSRByNFTResponse) Descriptor() ([]byte, []int) + func (*QueryCSRByNFTResponse) ProtoMessage() + 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 (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 struct + Pagination *query.PageRequest + func (*QueryCSRsRequest) Descriptor() ([]byte, []int) + func (*QueryCSRsRequest) ProtoMessage() + 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 (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 struct + Csrs []CSR + Pagination *query.PageResponse + func (*QueryCSRsResponse) Descriptor() ([]byte, []int) + func (*QueryCSRsResponse) ProtoMessage() + 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 (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 interface + CSRByContract func(ctx context.Context, in *QueryCSRByContractRequest, opts ...grpc.CallOption) (*QueryCSRByContractResponse, error) + CSRByNFT func(ctx context.Context, in *QueryCSRByNFTRequest, opts ...grpc.CallOption) (*QueryCSRByNFTResponse, error) + CSRs func(ctx context.Context, in *QueryCSRsRequest, opts ...grpc.CallOption) (*QueryCSRsResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + Turnstile func(ctx context.Context, in *QueryTurnstileRequest, opts ...grpc.CallOption) (*QueryTurnstileResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryParamsRequest struct + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + 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 (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 struct + Params Params + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + 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 (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 interface + CSRByContract func(context.Context, *QueryCSRByContractRequest) (*QueryCSRByContractResponse, error) + CSRByNFT func(context.Context, *QueryCSRByNFTRequest) (*QueryCSRByNFTResponse, error) + CSRs func(context.Context, *QueryCSRsRequest) (*QueryCSRsResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + Turnstile func(context.Context, *QueryTurnstileRequest) (*QueryTurnstileResponse, error) + type QueryTurnstileRequest struct + func (*QueryTurnstileRequest) Descriptor() ([]byte, []int) + func (*QueryTurnstileRequest) ProtoMessage() + 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 (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 struct + Address string + func (*QueryTurnstileResponse) Descriptor() ([]byte, []int) + func (*QueryTurnstileResponse) ProtoMessage() + 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 (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 struct + Recipient common.Address + SmartContract common.Address + TokenId *big.Int + type UnimplementedQueryServer struct + 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 struct + SmartContract common.Address + TokenId *big.Int Other modules containing this package github.com/Canto-Network/Canto/v7