types

package
v23.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// module name
	ModuleName = "feepay"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey to be used for message routing
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgRegisterFeePayContract          = "register_feepay_contract"
	TypeMsgUnregisterFeePayContract        = "unregister_feepay_contract"
	TypeMsgFundFeePayContract              = "fund_feepay_contract"
	TypeMsgUpdateFeePayContractWalletLimit = "update_feepay_contract_wallet_limit"
	TypeMsgUpdateParams                    = "msg_update_params"
)

Variables

View Source
var (

	// ModuleCdc references the global erc20 module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding.
	//
	// The actual codec used for serialization should be provided to modules/erc20 and
	// defined at the application level.
	ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())

	// AminoCdc is a amino codec created to support amino JSON compatible msgs.
	AminoCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ErrContractNotEnoughFunds   = errorsmod.Register(ModuleName, 1, "contract does not have enough funds")
	ErrWalletExceededUsageLimit = errorsmod.Register(ModuleName, 2, "wallet exceeded usage limit")
	ErrInvalidWalletLimit       = errorsmod.Register(ModuleName, 3, "invalid wallet limit; must be between 0 and 1,000,000")
	ErrInvalidJunoFundAmount    = errorsmod.Register(ModuleName, 4, "fee pay contracts only accept juno funds")
	ErrFeePayDisabled           = errorsmod.Register(ModuleName, 5, "the FeePay module is disabled")
	ErrDeductFees               = errorsmod.Register(ModuleName, 6, "error deducting fees")
)
View Source
var (
	ErrInvalidLengthFeepay        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFeepay          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFeepay = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ParamsKey = []byte{prefixParamsKey}

Functions

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register implementations

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/FeeShare interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization and EIP-712 compatibility.

func RegisterMsgHandler

func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.

func RegisterMsgHandlerFromEndpoint

func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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)

Types

type FeePayContract

type FeePayContract struct {
	// The address of the contract.
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// The ledger balance of the contract.
	Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// The number of times a wallet may interact with the contract.
	WalletLimit uint64 `protobuf:"varint,3,opt,name=wallet_limit,json=walletLimit,proto3" json:"wallet_limit,omitempty"`
}

This defines the address, balance, and wallet limit of a fee pay contract.

func (*FeePayContract) Descriptor

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

func (*FeePayContract) GetBalance

func (m *FeePayContract) GetBalance() uint64

func (*FeePayContract) GetContractAddress

func (m *FeePayContract) GetContractAddress() string

func (*FeePayContract) GetWalletLimit

func (m *FeePayContract) GetWalletLimit() uint64

func (*FeePayContract) Marshal

func (m *FeePayContract) Marshal() (dAtA []byte, err error)

func (*FeePayContract) MarshalTo

func (m *FeePayContract) MarshalTo(dAtA []byte) (int, error)

func (*FeePayContract) MarshalToSizedBuffer

func (m *FeePayContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeePayContract) ProtoMessage

func (*FeePayContract) ProtoMessage()

func (*FeePayContract) Reset

func (m *FeePayContract) Reset()

func (*FeePayContract) Size

func (m *FeePayContract) Size() (n int)

func (*FeePayContract) String

func (m *FeePayContract) String() string

func (*FeePayContract) Unmarshal

func (m *FeePayContract) Unmarshal(dAtA []byte) error

func (*FeePayContract) XXX_DiscardUnknown

func (m *FeePayContract) XXX_DiscardUnknown()

func (*FeePayContract) XXX_Marshal

func (m *FeePayContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeePayContract) XXX_Merge

func (m *FeePayContract) XXX_Merge(src proto.Message)

func (*FeePayContract) XXX_Size

func (m *FeePayContract) XXX_Size() int

func (*FeePayContract) XXX_Unmarshal

func (m *FeePayContract) XXX_Unmarshal(b []byte) error

type FeePayWalletUsage

type FeePayWalletUsage struct {
	// The contract address.
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// The wallet address.
	WalletAddress string `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	// The number of uses corresponding to a wallet.
	Uses uint64 `protobuf:"varint,3,opt,name=uses,proto3" json:"uses,omitempty"`
}

This object is used to store the number of times a wallet has interacted with a contract.

func (*FeePayWalletUsage) Descriptor

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

func (*FeePayWalletUsage) GetContractAddress

func (m *FeePayWalletUsage) GetContractAddress() string

func (*FeePayWalletUsage) GetUses

func (m *FeePayWalletUsage) GetUses() uint64

func (*FeePayWalletUsage) GetWalletAddress

func (m *FeePayWalletUsage) GetWalletAddress() string

func (*FeePayWalletUsage) Marshal

func (m *FeePayWalletUsage) Marshal() (dAtA []byte, err error)

func (*FeePayWalletUsage) MarshalTo

func (m *FeePayWalletUsage) MarshalTo(dAtA []byte) (int, error)

func (*FeePayWalletUsage) MarshalToSizedBuffer

func (m *FeePayWalletUsage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeePayWalletUsage) ProtoMessage

func (*FeePayWalletUsage) ProtoMessage()

func (*FeePayWalletUsage) Reset

func (m *FeePayWalletUsage) Reset()

func (*FeePayWalletUsage) Size

func (m *FeePayWalletUsage) Size() (n int)

func (*FeePayWalletUsage) String

func (m *FeePayWalletUsage) String() string

func (*FeePayWalletUsage) Unmarshal

func (m *FeePayWalletUsage) Unmarshal(dAtA []byte) error

func (*FeePayWalletUsage) XXX_DiscardUnknown

func (m *FeePayWalletUsage) XXX_DiscardUnknown()

func (*FeePayWalletUsage) XXX_Marshal

func (m *FeePayWalletUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeePayWalletUsage) XXX_Merge

func (m *FeePayWalletUsage) XXX_Merge(src proto.Message)

func (*FeePayWalletUsage) XXX_Size

func (m *FeePayWalletUsage) XXX_Size() int

func (*FeePayWalletUsage) XXX_Unmarshal

func (m *FeePayWalletUsage) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// params are the feepay module parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// fee_pay_contracts are the feepay module contracts
	FeePayContracts []FeePayContract `protobuf:"bytes,2,rep,name=fee_pay_contracts,json=feePayContracts,proto3" json:"fee_pay_contracts"`
}

GenesisState defines the module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState sets default genesis state with empty accounts and default params and chain config values.

func NewGenesisState

func NewGenesisState(params Params, feePayContracts []FeePayContract) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetFeePayContracts

func (m *GenesisState) GetFeePayContracts() []FeePayContract

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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

Validate performs basic genesis state validation returning an error upon any failure.

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 MsgClient

type MsgClient interface {
	// RegisterFeeShare registers a new contract for receiving transaction fees
	RegisterFeePayContract(ctx context.Context, in *MsgRegisterFeePayContract, opts ...grpc.CallOption) (*MsgRegisterFeePayContractResponse, error)
	// UnregisterFeeShare unregisters a contract for receiving transaction fees
	UnregisterFeePayContract(ctx context.Context, in *MsgUnregisterFeePayContract, opts ...grpc.CallOption) (*MsgUnregisterFeePayContractResponse, error)
	// Fund a fee pay contract
	FundFeePayContract(ctx context.Context, in *MsgFundFeePayContract, opts ...grpc.CallOption) (*MsgFundFeePayContractResponse, error)
	// Update a fee pay contract wallet limit
	UpdateFeePayContractWalletLimit(ctx context.Context, in *MsgUpdateFeePayContractWalletLimit, opts ...grpc.CallOption) (*MsgUpdateFeePayContractWalletLimitResponse, error)
	// Update the params of the module through gov v1 type.
	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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgFundFeePayContract

type MsgFundFeePayContract struct {
	// The wallet address of the sender.
	SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	// The fee pay contract to fund.
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// The coins to fund the contract with.
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

The message to fund a fee pay contract

func (*MsgFundFeePayContract) Descriptor

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

func (*MsgFundFeePayContract) GetAmount

func (*MsgFundFeePayContract) GetContractAddress

func (m *MsgFundFeePayContract) GetContractAddress() string

func (*MsgFundFeePayContract) GetSenderAddress

func (m *MsgFundFeePayContract) GetSenderAddress() string

func (*MsgFundFeePayContract) GetSignBytes

func (msg *MsgFundFeePayContract) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgFundFeePayContract) GetSigners

func (msg MsgFundFeePayContract) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgFundFeePayContract) Marshal

func (m *MsgFundFeePayContract) Marshal() (dAtA []byte, err error)

func (*MsgFundFeePayContract) MarshalTo

func (m *MsgFundFeePayContract) MarshalTo(dAtA []byte) (int, error)

func (*MsgFundFeePayContract) MarshalToSizedBuffer

func (m *MsgFundFeePayContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFundFeePayContract) ProtoMessage

func (*MsgFundFeePayContract) ProtoMessage()

func (*MsgFundFeePayContract) Reset

func (m *MsgFundFeePayContract) Reset()

func (MsgFundFeePayContract) Route

func (msg MsgFundFeePayContract) Route() string

Route returns the name of the module

func (*MsgFundFeePayContract) Size

func (m *MsgFundFeePayContract) Size() (n int)

func (*MsgFundFeePayContract) String

func (m *MsgFundFeePayContract) String() string

func (MsgFundFeePayContract) Type

func (msg MsgFundFeePayContract) Type() string

Type returns the the action

func (*MsgFundFeePayContract) Unmarshal

func (m *MsgFundFeePayContract) Unmarshal(dAtA []byte) error

func (MsgFundFeePayContract) ValidateBasic

func (msg MsgFundFeePayContract) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgFundFeePayContract) XXX_DiscardUnknown

func (m *MsgFundFeePayContract) XXX_DiscardUnknown()

func (*MsgFundFeePayContract) XXX_Marshal

func (m *MsgFundFeePayContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFundFeePayContract) XXX_Merge

func (m *MsgFundFeePayContract) XXX_Merge(src proto.Message)

func (*MsgFundFeePayContract) XXX_Size

func (m *MsgFundFeePayContract) XXX_Size() int

func (*MsgFundFeePayContract) XXX_Unmarshal

func (m *MsgFundFeePayContract) XXX_Unmarshal(b []byte) error

type MsgFundFeePayContractResponse

type MsgFundFeePayContractResponse struct {
}

The response message for funding a fee pay contract.

func (*MsgFundFeePayContractResponse) Descriptor

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

func (*MsgFundFeePayContractResponse) Marshal

func (m *MsgFundFeePayContractResponse) Marshal() (dAtA []byte, err error)

func (*MsgFundFeePayContractResponse) MarshalTo

func (m *MsgFundFeePayContractResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgFundFeePayContractResponse) MarshalToSizedBuffer

func (m *MsgFundFeePayContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFundFeePayContractResponse) ProtoMessage

func (*MsgFundFeePayContractResponse) ProtoMessage()

func (*MsgFundFeePayContractResponse) Reset

func (m *MsgFundFeePayContractResponse) Reset()

func (*MsgFundFeePayContractResponse) Size

func (m *MsgFundFeePayContractResponse) Size() (n int)

func (*MsgFundFeePayContractResponse) String

func (*MsgFundFeePayContractResponse) Unmarshal

func (m *MsgFundFeePayContractResponse) Unmarshal(dAtA []byte) error

func (*MsgFundFeePayContractResponse) XXX_DiscardUnknown

func (m *MsgFundFeePayContractResponse) XXX_DiscardUnknown()

func (*MsgFundFeePayContractResponse) XXX_Marshal

func (m *MsgFundFeePayContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFundFeePayContractResponse) XXX_Merge

func (m *MsgFundFeePayContractResponse) XXX_Merge(src proto.Message)

func (*MsgFundFeePayContractResponse) XXX_Size

func (m *MsgFundFeePayContractResponse) XXX_Size() int

func (*MsgFundFeePayContractResponse) XXX_Unmarshal

func (m *MsgFundFeePayContractResponse) XXX_Unmarshal(b []byte) error

type MsgRegisterFeePayContract

type MsgRegisterFeePayContract struct {
	// The wallet address of the sender.
	SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	// The fee pay contract to register.
	FeePayContract *FeePayContract `protobuf:"bytes,2,opt,name=fee_pay_contract,json=feePayContract,proto3" json:"fee_pay_contract,omitempty"`
}

The message to register a fee pay contract.

func (*MsgRegisterFeePayContract) Descriptor

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

func (*MsgRegisterFeePayContract) GetFeePayContract

func (m *MsgRegisterFeePayContract) GetFeePayContract() *FeePayContract

func (*MsgRegisterFeePayContract) GetSenderAddress

func (m *MsgRegisterFeePayContract) GetSenderAddress() string

func (*MsgRegisterFeePayContract) GetSignBytes

func (msg *MsgRegisterFeePayContract) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgRegisterFeePayContract) GetSigners

func (msg MsgRegisterFeePayContract) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgRegisterFeePayContract) Marshal

func (m *MsgRegisterFeePayContract) Marshal() (dAtA []byte, err error)

func (*MsgRegisterFeePayContract) MarshalTo

func (m *MsgRegisterFeePayContract) MarshalTo(dAtA []byte) (int, error)

func (*MsgRegisterFeePayContract) MarshalToSizedBuffer

func (m *MsgRegisterFeePayContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRegisterFeePayContract) ProtoMessage

func (*MsgRegisterFeePayContract) ProtoMessage()

func (*MsgRegisterFeePayContract) Reset

func (m *MsgRegisterFeePayContract) Reset()

func (MsgRegisterFeePayContract) Route

func (msg MsgRegisterFeePayContract) Route() string

Route returns the name of the module

func (*MsgRegisterFeePayContract) Size

func (m *MsgRegisterFeePayContract) Size() (n int)

func (*MsgRegisterFeePayContract) String

func (m *MsgRegisterFeePayContract) String() string

func (MsgRegisterFeePayContract) Type

func (msg MsgRegisterFeePayContract) Type() string

Type returns the the action

func (*MsgRegisterFeePayContract) Unmarshal

func (m *MsgRegisterFeePayContract) Unmarshal(dAtA []byte) error

func (MsgRegisterFeePayContract) ValidateBasic

func (msg MsgRegisterFeePayContract) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgRegisterFeePayContract) XXX_DiscardUnknown

func (m *MsgRegisterFeePayContract) XXX_DiscardUnknown()

func (*MsgRegisterFeePayContract) XXX_Marshal

func (m *MsgRegisterFeePayContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRegisterFeePayContract) XXX_Merge

func (m *MsgRegisterFeePayContract) XXX_Merge(src proto.Message)

func (*MsgRegisterFeePayContract) XXX_Size

func (m *MsgRegisterFeePayContract) XXX_Size() int

func (*MsgRegisterFeePayContract) XXX_Unmarshal

func (m *MsgRegisterFeePayContract) XXX_Unmarshal(b []byte) error

type MsgRegisterFeePayContractResponse

type MsgRegisterFeePayContractResponse struct {
}

The response message for registering a fee pay contract.

func (*MsgRegisterFeePayContractResponse) Descriptor

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

func (*MsgRegisterFeePayContractResponse) Marshal

func (m *MsgRegisterFeePayContractResponse) Marshal() (dAtA []byte, err error)

func (*MsgRegisterFeePayContractResponse) MarshalTo

func (m *MsgRegisterFeePayContractResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRegisterFeePayContractResponse) MarshalToSizedBuffer

func (m *MsgRegisterFeePayContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRegisterFeePayContractResponse) ProtoMessage

func (*MsgRegisterFeePayContractResponse) ProtoMessage()

func (*MsgRegisterFeePayContractResponse) Reset

func (*MsgRegisterFeePayContractResponse) Size

func (m *MsgRegisterFeePayContractResponse) Size() (n int)

func (*MsgRegisterFeePayContractResponse) String

func (*MsgRegisterFeePayContractResponse) Unmarshal

func (m *MsgRegisterFeePayContractResponse) Unmarshal(dAtA []byte) error

func (*MsgRegisterFeePayContractResponse) XXX_DiscardUnknown

func (m *MsgRegisterFeePayContractResponse) XXX_DiscardUnknown()

func (*MsgRegisterFeePayContractResponse) XXX_Marshal

func (m *MsgRegisterFeePayContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRegisterFeePayContractResponse) XXX_Merge

func (*MsgRegisterFeePayContractResponse) XXX_Size

func (m *MsgRegisterFeePayContractResponse) XXX_Size() int

func (*MsgRegisterFeePayContractResponse) XXX_Unmarshal

func (m *MsgRegisterFeePayContractResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// RegisterFeeShare registers a new contract for receiving transaction fees
	RegisterFeePayContract(context.Context, *MsgRegisterFeePayContract) (*MsgRegisterFeePayContractResponse, error)
	// UnregisterFeeShare unregisters a contract for receiving transaction fees
	UnregisterFeePayContract(context.Context, *MsgUnregisterFeePayContract) (*MsgUnregisterFeePayContractResponse, error)
	// Fund a fee pay contract
	FundFeePayContract(context.Context, *MsgFundFeePayContract) (*MsgFundFeePayContractResponse, error)
	// Update a fee pay contract wallet limit
	UpdateFeePayContractWalletLimit(context.Context, *MsgUpdateFeePayContractWalletLimit) (*MsgUpdateFeePayContractWalletLimitResponse, error)
	// Update the params of the module through gov v1 type.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUnregisterFeePayContract

type MsgUnregisterFeePayContract struct {
	// The wallet address of the sender.
	SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	// The fee pay contract address.
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

The message to unregister a fee pay contract.

func (*MsgUnregisterFeePayContract) Descriptor

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

func (*MsgUnregisterFeePayContract) GetContractAddress

func (m *MsgUnregisterFeePayContract) GetContractAddress() string

func (*MsgUnregisterFeePayContract) GetSenderAddress

func (m *MsgUnregisterFeePayContract) GetSenderAddress() string

func (*MsgUnregisterFeePayContract) GetSignBytes

func (msg *MsgUnregisterFeePayContract) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgUnregisterFeePayContract) GetSigners

func (msg MsgUnregisterFeePayContract) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgUnregisterFeePayContract) Marshal

func (m *MsgUnregisterFeePayContract) Marshal() (dAtA []byte, err error)

func (*MsgUnregisterFeePayContract) MarshalTo

func (m *MsgUnregisterFeePayContract) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnregisterFeePayContract) MarshalToSizedBuffer

func (m *MsgUnregisterFeePayContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnregisterFeePayContract) ProtoMessage

func (*MsgUnregisterFeePayContract) ProtoMessage()

func (*MsgUnregisterFeePayContract) Reset

func (m *MsgUnregisterFeePayContract) Reset()

func (MsgUnregisterFeePayContract) Route

func (msg MsgUnregisterFeePayContract) Route() string

Route returns the name of the module

func (*MsgUnregisterFeePayContract) Size

func (m *MsgUnregisterFeePayContract) Size() (n int)

func (*MsgUnregisterFeePayContract) String

func (m *MsgUnregisterFeePayContract) String() string

func (MsgUnregisterFeePayContract) Type

Type returns the the action

func (*MsgUnregisterFeePayContract) Unmarshal

func (m *MsgUnregisterFeePayContract) Unmarshal(dAtA []byte) error

func (MsgUnregisterFeePayContract) ValidateBasic

func (msg MsgUnregisterFeePayContract) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgUnregisterFeePayContract) XXX_DiscardUnknown

func (m *MsgUnregisterFeePayContract) XXX_DiscardUnknown()

func (*MsgUnregisterFeePayContract) XXX_Marshal

func (m *MsgUnregisterFeePayContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUnregisterFeePayContract) XXX_Merge

func (m *MsgUnregisterFeePayContract) XXX_Merge(src proto.Message)

func (*MsgUnregisterFeePayContract) XXX_Size

func (m *MsgUnregisterFeePayContract) XXX_Size() int

func (*MsgUnregisterFeePayContract) XXX_Unmarshal

func (m *MsgUnregisterFeePayContract) XXX_Unmarshal(b []byte) error

type MsgUnregisterFeePayContractResponse

type MsgUnregisterFeePayContractResponse struct {
}

The response message for unregistering a fee pay contract.

func (*MsgUnregisterFeePayContractResponse) Descriptor

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

func (*MsgUnregisterFeePayContractResponse) Marshal

func (m *MsgUnregisterFeePayContractResponse) Marshal() (dAtA []byte, err error)

func (*MsgUnregisterFeePayContractResponse) MarshalTo

func (m *MsgUnregisterFeePayContractResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnregisterFeePayContractResponse) MarshalToSizedBuffer

func (m *MsgUnregisterFeePayContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnregisterFeePayContractResponse) ProtoMessage

func (*MsgUnregisterFeePayContractResponse) ProtoMessage()

func (*MsgUnregisterFeePayContractResponse) Reset

func (*MsgUnregisterFeePayContractResponse) Size

func (*MsgUnregisterFeePayContractResponse) String

func (*MsgUnregisterFeePayContractResponse) Unmarshal

func (m *MsgUnregisterFeePayContractResponse) Unmarshal(dAtA []byte) error

func (*MsgUnregisterFeePayContractResponse) XXX_DiscardUnknown

func (m *MsgUnregisterFeePayContractResponse) XXX_DiscardUnknown()

func (*MsgUnregisterFeePayContractResponse) XXX_Marshal

func (m *MsgUnregisterFeePayContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUnregisterFeePayContractResponse) XXX_Merge

func (*MsgUnregisterFeePayContractResponse) XXX_Size

func (*MsgUnregisterFeePayContractResponse) XXX_Unmarshal

func (m *MsgUnregisterFeePayContractResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateFeePayContractWalletLimit

type MsgUpdateFeePayContractWalletLimit struct {
	// The wallet address of the sender.
	SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
	// The fee pay contract to fund.
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// The new wallet limit.
	WalletLimit uint64 `protobuf:"varint,3,opt,name=wallet_limit,json=walletLimit,proto3" json:"wallet_limit,omitempty"`
}

The message to update a fee pay contract wallet limit.

func (*MsgUpdateFeePayContractWalletLimit) Descriptor

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

func (*MsgUpdateFeePayContractWalletLimit) GetContractAddress

func (m *MsgUpdateFeePayContractWalletLimit) GetContractAddress() string

func (*MsgUpdateFeePayContractWalletLimit) GetSenderAddress

func (m *MsgUpdateFeePayContractWalletLimit) GetSenderAddress() string

func (*MsgUpdateFeePayContractWalletLimit) GetSignBytes

func (msg *MsgUpdateFeePayContractWalletLimit) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgUpdateFeePayContractWalletLimit) GetSigners

GetSigners defines whose signature is required

func (*MsgUpdateFeePayContractWalletLimit) GetWalletLimit

func (m *MsgUpdateFeePayContractWalletLimit) GetWalletLimit() uint64

func (*MsgUpdateFeePayContractWalletLimit) Marshal

func (m *MsgUpdateFeePayContractWalletLimit) Marshal() (dAtA []byte, err error)

func (*MsgUpdateFeePayContractWalletLimit) MarshalTo

func (m *MsgUpdateFeePayContractWalletLimit) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateFeePayContractWalletLimit) MarshalToSizedBuffer

func (m *MsgUpdateFeePayContractWalletLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateFeePayContractWalletLimit) ProtoMessage

func (*MsgUpdateFeePayContractWalletLimit) ProtoMessage()

func (*MsgUpdateFeePayContractWalletLimit) Reset

func (MsgUpdateFeePayContractWalletLimit) Route

Route returns the name of the module

func (*MsgUpdateFeePayContractWalletLimit) Size

func (*MsgUpdateFeePayContractWalletLimit) String

func (MsgUpdateFeePayContractWalletLimit) Type

Type returns the the action

func (*MsgUpdateFeePayContractWalletLimit) Unmarshal

func (m *MsgUpdateFeePayContractWalletLimit) Unmarshal(dAtA []byte) error

func (MsgUpdateFeePayContractWalletLimit) ValidateBasic

func (msg MsgUpdateFeePayContractWalletLimit) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgUpdateFeePayContractWalletLimit) XXX_DiscardUnknown

func (m *MsgUpdateFeePayContractWalletLimit) XXX_DiscardUnknown()

func (*MsgUpdateFeePayContractWalletLimit) XXX_Marshal

func (m *MsgUpdateFeePayContractWalletLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateFeePayContractWalletLimit) XXX_Merge

func (*MsgUpdateFeePayContractWalletLimit) XXX_Size

func (*MsgUpdateFeePayContractWalletLimit) XXX_Unmarshal

func (m *MsgUpdateFeePayContractWalletLimit) XXX_Unmarshal(b []byte) error

type MsgUpdateFeePayContractWalletLimitResponse

type MsgUpdateFeePayContractWalletLimitResponse struct {
}

The response message for updating a fee pay contract wallet limit.

func (*MsgUpdateFeePayContractWalletLimitResponse) Descriptor

func (*MsgUpdateFeePayContractWalletLimitResponse) Marshal

func (m *MsgUpdateFeePayContractWalletLimitResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateFeePayContractWalletLimitResponse) MarshalTo

func (m *MsgUpdateFeePayContractWalletLimitResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateFeePayContractWalletLimitResponse) MarshalToSizedBuffer

func (m *MsgUpdateFeePayContractWalletLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateFeePayContractWalletLimitResponse) ProtoMessage

func (*MsgUpdateFeePayContractWalletLimitResponse) Reset

func (*MsgUpdateFeePayContractWalletLimitResponse) Size

func (*MsgUpdateFeePayContractWalletLimitResponse) String

func (*MsgUpdateFeePayContractWalletLimitResponse) Unmarshal

func (*MsgUpdateFeePayContractWalletLimitResponse) XXX_DiscardUnknown

func (m *MsgUpdateFeePayContractWalletLimitResponse) XXX_DiscardUnknown()

func (*MsgUpdateFeePayContractWalletLimitResponse) XXX_Marshal

func (m *MsgUpdateFeePayContractWalletLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateFeePayContractWalletLimitResponse) XXX_Merge

func (*MsgUpdateFeePayContractWalletLimitResponse) XXX_Size

func (*MsgUpdateFeePayContractWalletLimitResponse) XXX_Unmarshal

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/feepay parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes

func (msg MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners

func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route

func (msg MsgUpdateParams) Route() string

Route returns the name of the module

func (*MsgUpdateParams) Size

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type

func (msg MsgUpdateParams) Type() string

Type returns the the action

func (*MsgUpdateParams) Unmarshal

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	// enable_feepay defines a parameter to enable the feepay module
	EnableFeepay bool `protobuf:"varint,1,opt,name=enable_feepay,json=enableFeepay,proto3" json:"enable_feepay,omitempty"`
}

Params defines the feepay module params

func (*Params) Descriptor

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

func (*Params) GetEnableFeepay

func (m *Params) GetEnableFeepay() bool

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// FeePayContract queries a single fee pay contract by address
	FeePayContract(ctx context.Context, in *QueryFeePayContract, opts ...grpc.CallOption) (*QueryFeePayContractResponse, error)
	// Retrieve all fee pay contracts
	FeePayContracts(ctx context.Context, in *QueryFeePayContracts, opts ...grpc.CallOption) (*QueryFeePayContractsResponse, error)
	// Retrieve the number of uses on a fee pay contract by wallet
	FeePayContractUses(ctx context.Context, in *QueryFeePayContractUses, opts ...grpc.CallOption) (*QueryFeePayContractUsesResponse, error)
	// Query if sender is eligible for fee pay contract interaction
	FeePayWalletIsEligible(ctx context.Context, in *QueryFeePayWalletIsEligible, opts ...grpc.CallOption) (*QueryFeePayWalletIsEligibleResponse, error)
	// Params retrieves the FeePay module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryFeePayContract

type QueryFeePayContract struct {
	// contract_address defines the address of the fee pay contract
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

QueryFeePayContract retrieves a single fee pay contract

func (*QueryFeePayContract) Descriptor

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

func (*QueryFeePayContract) GetContractAddress

func (m *QueryFeePayContract) GetContractAddress() string

func (*QueryFeePayContract) Marshal

func (m *QueryFeePayContract) Marshal() (dAtA []byte, err error)

func (*QueryFeePayContract) MarshalTo

func (m *QueryFeePayContract) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeePayContract) MarshalToSizedBuffer

func (m *QueryFeePayContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeePayContract) ProtoMessage

func (*QueryFeePayContract) ProtoMessage()

func (*QueryFeePayContract) Reset

func (m *QueryFeePayContract) Reset()

func (*QueryFeePayContract) Size

func (m *QueryFeePayContract) Size() (n int)

func (*QueryFeePayContract) String

func (m *QueryFeePayContract) String() string

func (*QueryFeePayContract) Unmarshal

func (m *QueryFeePayContract) Unmarshal(dAtA []byte) error

func (*QueryFeePayContract) XXX_DiscardUnknown

func (m *QueryFeePayContract) XXX_DiscardUnknown()

func (*QueryFeePayContract) XXX_Marshal

func (m *QueryFeePayContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeePayContract) XXX_Merge

func (m *QueryFeePayContract) XXX_Merge(src proto.Message)

func (*QueryFeePayContract) XXX_Size

func (m *QueryFeePayContract) XXX_Size() int

func (*QueryFeePayContract) XXX_Unmarshal

func (m *QueryFeePayContract) XXX_Unmarshal(b []byte) error

type QueryFeePayContractResponse

type QueryFeePayContractResponse struct {
	// contract defines the fee pay contract
	FeePayContract *FeePayContract `protobuf:"bytes,1,opt,name=fee_pay_contract,json=feePayContract,proto3" json:"fee_pay_contract,omitempty"`
}

QueryFeePayContractResponse defines the response for retrieving a single fee pay contract

func (*QueryFeePayContractResponse) Descriptor

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

func (*QueryFeePayContractResponse) GetFeePayContract

func (m *QueryFeePayContractResponse) GetFeePayContract() *FeePayContract

func (*QueryFeePayContractResponse) Marshal

func (m *QueryFeePayContractResponse) Marshal() (dAtA []byte, err error)

func (*QueryFeePayContractResponse) MarshalTo

func (m *QueryFeePayContractResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeePayContractResponse) MarshalToSizedBuffer

func (m *QueryFeePayContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeePayContractResponse) ProtoMessage

func (*QueryFeePayContractResponse) ProtoMessage()

func (*QueryFeePayContractResponse) Reset

func (m *QueryFeePayContractResponse) Reset()

func (*QueryFeePayContractResponse) Size

func (m *QueryFeePayContractResponse) Size() (n int)

func (*QueryFeePayContractResponse) String

func (m *QueryFeePayContractResponse) String() string

func (*QueryFeePayContractResponse) Unmarshal

func (m *QueryFeePayContractResponse) Unmarshal(dAtA []byte) error

func (*QueryFeePayContractResponse) XXX_DiscardUnknown

func (m *QueryFeePayContractResponse) XXX_DiscardUnknown()

func (*QueryFeePayContractResponse) XXX_Marshal

func (m *QueryFeePayContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeePayContractResponse) XXX_Merge

func (m *QueryFeePayContractResponse) XXX_Merge(src proto.Message)

func (*QueryFeePayContractResponse) XXX_Size

func (m *QueryFeePayContractResponse) XXX_Size() int

func (*QueryFeePayContractResponse) XXX_Unmarshal

func (m *QueryFeePayContractResponse) XXX_Unmarshal(b []byte) error

type QueryFeePayContractUses

type QueryFeePayContractUses struct {
	// The contract address.
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// The wallet address.
	WalletAddress string `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
}

Message for querying the number of uses on a fee pay contract by wallet

func (*QueryFeePayContractUses) Descriptor

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

func (*QueryFeePayContractUses) GetContractAddress

func (m *QueryFeePayContractUses) GetContractAddress() string

func (*QueryFeePayContractUses) GetWalletAddress

func (m *QueryFeePayContractUses) GetWalletAddress() string

func (*QueryFeePayContractUses) Marshal

func (m *QueryFeePayContractUses) Marshal() (dAtA []byte, err error)

func (*QueryFeePayContractUses) MarshalTo

func (m *QueryFeePayContractUses) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeePayContractUses) MarshalToSizedBuffer

func (m *QueryFeePayContractUses) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeePayContractUses) ProtoMessage

func (*QueryFeePayContractUses) ProtoMessage()

func (*QueryFeePayContractUses) Reset

func (m *QueryFeePayContractUses) Reset()

func (*QueryFeePayContractUses) Size

func (m *QueryFeePayContractUses) Size() (n int)

func (*QueryFeePayContractUses) String

func (m *QueryFeePayContractUses) String() string

func (*QueryFeePayContractUses) Unmarshal

func (m *QueryFeePayContractUses) Unmarshal(dAtA []byte) error

func (*QueryFeePayContractUses) XXX_DiscardUnknown

func (m *QueryFeePayContractUses) XXX_DiscardUnknown()

func (*QueryFeePayContractUses) XXX_Marshal

func (m *QueryFeePayContractUses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeePayContractUses) XXX_Merge

func (m *QueryFeePayContractUses) XXX_Merge(src proto.Message)

func (*QueryFeePayContractUses) XXX_Size

func (m *QueryFeePayContractUses) XXX_Size() int

func (*QueryFeePayContractUses) XXX_Unmarshal

func (m *QueryFeePayContractUses) XXX_Unmarshal(b []byte) error

type QueryFeePayContractUsesResponse

type QueryFeePayContractUsesResponse struct {
	// The number of uses on the fee pay contract by wallet
	Uses uint64 `protobuf:"varint,1,opt,name=uses,proto3" json:"uses,omitempty"`
}

The response for querying the number of uses on a fee pay contract by wallet

func (*QueryFeePayContractUsesResponse) Descriptor

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

func (*QueryFeePayContractUsesResponse) GetUses

func (*QueryFeePayContractUsesResponse) Marshal

func (m *QueryFeePayContractUsesResponse) Marshal() (dAtA []byte, err error)

func (*QueryFeePayContractUsesResponse) MarshalTo

func (m *QueryFeePayContractUsesResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeePayContractUsesResponse) MarshalToSizedBuffer

func (m *QueryFeePayContractUsesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeePayContractUsesResponse) ProtoMessage

func (*QueryFeePayContractUsesResponse) ProtoMessage()

func (*QueryFeePayContractUsesResponse) Reset

func (*QueryFeePayContractUsesResponse) Size

func (m *QueryFeePayContractUsesResponse) Size() (n int)

func (*QueryFeePayContractUsesResponse) String

func (*QueryFeePayContractUsesResponse) Unmarshal

func (m *QueryFeePayContractUsesResponse) Unmarshal(dAtA []byte) error

func (*QueryFeePayContractUsesResponse) XXX_DiscardUnknown

func (m *QueryFeePayContractUsesResponse) XXX_DiscardUnknown()

func (*QueryFeePayContractUsesResponse) XXX_Marshal

func (m *QueryFeePayContractUsesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeePayContractUsesResponse) XXX_Merge

func (m *QueryFeePayContractUsesResponse) XXX_Merge(src proto.Message)

func (*QueryFeePayContractUsesResponse) XXX_Size

func (m *QueryFeePayContractUsesResponse) XXX_Size() int

func (*QueryFeePayContractUsesResponse) XXX_Unmarshal

func (m *QueryFeePayContractUsesResponse) XXX_Unmarshal(b []byte) error

type QueryFeePayContracts

type QueryFeePayContracts struct {
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

Message for querying a list of fee pay contracts

func (*QueryFeePayContracts) Descriptor

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

func (*QueryFeePayContracts) GetPagination

func (m *QueryFeePayContracts) GetPagination() *query.PageRequest

func (*QueryFeePayContracts) Marshal

func (m *QueryFeePayContracts) Marshal() (dAtA []byte, err error)

func (*QueryFeePayContracts) MarshalTo

func (m *QueryFeePayContracts) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeePayContracts) MarshalToSizedBuffer

func (m *QueryFeePayContracts) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeePayContracts) ProtoMessage

func (*QueryFeePayContracts) ProtoMessage()

func (*QueryFeePayContracts) Reset

func (m *QueryFeePayContracts) Reset()

func (*QueryFeePayContracts) Size

func (m *QueryFeePayContracts) Size() (n int)

func (*QueryFeePayContracts) String

func (m *QueryFeePayContracts) String() string

func (*QueryFeePayContracts) Unmarshal

func (m *QueryFeePayContracts) Unmarshal(dAtA []byte) error

func (*QueryFeePayContracts) XXX_DiscardUnknown

func (m *QueryFeePayContracts) XXX_DiscardUnknown()

func (*QueryFeePayContracts) XXX_Marshal

func (m *QueryFeePayContracts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeePayContracts) XXX_Merge

func (m *QueryFeePayContracts) XXX_Merge(src proto.Message)

func (*QueryFeePayContracts) XXX_Size

func (m *QueryFeePayContracts) XXX_Size() int

func (*QueryFeePayContracts) XXX_Unmarshal

func (m *QueryFeePayContracts) XXX_Unmarshal(b []byte) error

type QueryFeePayContractsResponse

type QueryFeePayContractsResponse struct {
	// A slice of all the stored fee pay contracts
	FeePayContracts []FeePayContract `protobuf:"bytes,1,rep,name=fee_pay_contracts,json=feePayContracts,proto3" json:"fee_pay_contracts"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

The response for querying all fee pay contracts

func (*QueryFeePayContractsResponse) Descriptor

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

func (*QueryFeePayContractsResponse) GetFeePayContracts

func (m *QueryFeePayContractsResponse) GetFeePayContracts() []FeePayContract

func (*QueryFeePayContractsResponse) GetPagination

func (m *QueryFeePayContractsResponse) GetPagination() *query.PageResponse

func (*QueryFeePayContractsResponse) Marshal

func (m *QueryFeePayContractsResponse) Marshal() (dAtA []byte, err error)

func (*QueryFeePayContractsResponse) MarshalTo

func (m *QueryFeePayContractsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeePayContractsResponse) MarshalToSizedBuffer

func (m *QueryFeePayContractsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeePayContractsResponse) ProtoMessage

func (*QueryFeePayContractsResponse) ProtoMessage()

func (*QueryFeePayContractsResponse) Reset

func (m *QueryFeePayContractsResponse) Reset()

func (*QueryFeePayContractsResponse) Size

func (m *QueryFeePayContractsResponse) Size() (n int)

func (*QueryFeePayContractsResponse) String

func (*QueryFeePayContractsResponse) Unmarshal

func (m *QueryFeePayContractsResponse) Unmarshal(dAtA []byte) error

func (*QueryFeePayContractsResponse) XXX_DiscardUnknown

func (m *QueryFeePayContractsResponse) XXX_DiscardUnknown()

func (*QueryFeePayContractsResponse) XXX_Marshal

func (m *QueryFeePayContractsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeePayContractsResponse) XXX_Merge

func (m *QueryFeePayContractsResponse) XXX_Merge(src proto.Message)

func (*QueryFeePayContractsResponse) XXX_Size

func (m *QueryFeePayContractsResponse) XXX_Size() int

func (*QueryFeePayContractsResponse) XXX_Unmarshal

func (m *QueryFeePayContractsResponse) XXX_Unmarshal(b []byte) error

type QueryFeePayWalletIsEligible

type QueryFeePayWalletIsEligible struct {
	// The contract address.
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// The wallet address.
	WalletAddress string `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
}

Message for querying if a wallet is eligible for fee pay contract interactions

func (*QueryFeePayWalletIsEligible) Descriptor

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

func (*QueryFeePayWalletIsEligible) GetContractAddress

func (m *QueryFeePayWalletIsEligible) GetContractAddress() string

func (*QueryFeePayWalletIsEligible) GetWalletAddress

func (m *QueryFeePayWalletIsEligible) GetWalletAddress() string

func (*QueryFeePayWalletIsEligible) Marshal

func (m *QueryFeePayWalletIsEligible) Marshal() (dAtA []byte, err error)

func (*QueryFeePayWalletIsEligible) MarshalTo

func (m *QueryFeePayWalletIsEligible) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeePayWalletIsEligible) MarshalToSizedBuffer

func (m *QueryFeePayWalletIsEligible) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeePayWalletIsEligible) ProtoMessage

func (*QueryFeePayWalletIsEligible) ProtoMessage()

func (*QueryFeePayWalletIsEligible) Reset

func (m *QueryFeePayWalletIsEligible) Reset()

func (*QueryFeePayWalletIsEligible) Size

func (m *QueryFeePayWalletIsEligible) Size() (n int)

func (*QueryFeePayWalletIsEligible) String

func (m *QueryFeePayWalletIsEligible) String() string

func (*QueryFeePayWalletIsEligible) Unmarshal

func (m *QueryFeePayWalletIsEligible) Unmarshal(dAtA []byte) error

func (*QueryFeePayWalletIsEligible) XXX_DiscardUnknown

func (m *QueryFeePayWalletIsEligible) XXX_DiscardUnknown()

func (*QueryFeePayWalletIsEligible) XXX_Marshal

func (m *QueryFeePayWalletIsEligible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeePayWalletIsEligible) XXX_Merge

func (m *QueryFeePayWalletIsEligible) XXX_Merge(src proto.Message)

func (*QueryFeePayWalletIsEligible) XXX_Size

func (m *QueryFeePayWalletIsEligible) XXX_Size() int

func (*QueryFeePayWalletIsEligible) XXX_Unmarshal

func (m *QueryFeePayWalletIsEligible) XXX_Unmarshal(b []byte) error

type QueryFeePayWalletIsEligibleResponse

type QueryFeePayWalletIsEligibleResponse struct {
	// The eligibility of the wallet for fee pay contract interactions
	Eligible bool `protobuf:"varint,1,opt,name=eligible,proto3" json:"eligible,omitempty"`
}

The response for querying if a wallet is eligible for fee pay contract interactions

func (*QueryFeePayWalletIsEligibleResponse) Descriptor

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

func (*QueryFeePayWalletIsEligibleResponse) GetEligible

func (m *QueryFeePayWalletIsEligibleResponse) GetEligible() bool

func (*QueryFeePayWalletIsEligibleResponse) Marshal

func (m *QueryFeePayWalletIsEligibleResponse) Marshal() (dAtA []byte, err error)

func (*QueryFeePayWalletIsEligibleResponse) MarshalTo

func (m *QueryFeePayWalletIsEligibleResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeePayWalletIsEligibleResponse) MarshalToSizedBuffer

func (m *QueryFeePayWalletIsEligibleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeePayWalletIsEligibleResponse) ProtoMessage

func (*QueryFeePayWalletIsEligibleResponse) ProtoMessage()

func (*QueryFeePayWalletIsEligibleResponse) Reset

func (*QueryFeePayWalletIsEligibleResponse) Size

func (*QueryFeePayWalletIsEligibleResponse) String

func (*QueryFeePayWalletIsEligibleResponse) Unmarshal

func (m *QueryFeePayWalletIsEligibleResponse) Unmarshal(dAtA []byte) error

func (*QueryFeePayWalletIsEligibleResponse) XXX_DiscardUnknown

func (m *QueryFeePayWalletIsEligibleResponse) XXX_DiscardUnknown()

func (*QueryFeePayWalletIsEligibleResponse) XXX_Marshal

func (m *QueryFeePayWalletIsEligibleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeePayWalletIsEligibleResponse) XXX_Merge

func (*QueryFeePayWalletIsEligibleResponse) XXX_Size

func (*QueryFeePayWalletIsEligibleResponse) XXX_Unmarshal

func (m *QueryFeePayWalletIsEligibleResponse) XXX_Unmarshal(b []byte) error

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 is the returned Feepay parameter
	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 {
	// FeePayContract queries a single fee pay contract by address
	FeePayContract(context.Context, *QueryFeePayContract) (*QueryFeePayContractResponse, error)
	// Retrieve all fee pay contracts
	FeePayContracts(context.Context, *QueryFeePayContracts) (*QueryFeePayContractsResponse, error)
	// Retrieve the number of uses on a fee pay contract by wallet
	FeePayContractUses(context.Context, *QueryFeePayContractUses) (*QueryFeePayContractUsesResponse, error)
	// Query if sender is eligible for fee pay contract interaction
	FeePayWalletIsEligible(context.Context, *QueryFeePayWalletIsEligible) (*QueryFeePayWalletIsEligibleResponse, error)
	// Params retrieves the FeePay module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) FundFeePayContract

func (*UnimplementedMsgServer) RegisterFeePayContract

func (*UnimplementedMsgServer) UnregisterFeePayContract

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) FeePayContract

func (*UnimplementedQueryServer) FeePayContractUses

func (*UnimplementedQueryServer) FeePayContracts

func (*UnimplementedQueryServer) FeePayWalletIsEligible

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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