types

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: LGPL-3.0 Imports: 30 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 (
	EventTypeRegisterFee = "register_fee"
	EventTypeCancelFee   = "cancel_fee"
	EventTypeUpdateFee   = "update_fee"

	AttributeKeyContract        = "contract"
	AttributeKeyWithdrawAddress = "withdraw_address"
)

fees events

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

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

	// RouterKey to be used for message routing
	RouterKey = ModuleName
)

constants

View Source
const (
	TypeMsgRegisterFee = "register_fee"
	TypeMsgCancelFee   = "cancel_fee"
	TypeMsgUpdateFee   = "update_fee"
)

Variables

View Source
var (
	ErrInvalidLengthFees        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFees          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFees = 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 (
	KeyPrefixFee           = []byte{prefixFee}
	KeyPrefixFeeWithdrawal = []byte{prefixFeeWithdrawal}
	KeyPrefixDeployerFees  = []byte{prefixDeployerFees}
)

KVStore key prefixes

View Source
var (
	DefaultEnableFees      = false
	DefaultDeveloperShares = sdk.NewDecWithPrec(50, 2) // 50%
	// Cost for executing `crypto.CreateAddress` must be at least 36 gas for the
	// contained keccak256(word) operation
	DefaultAddrDerivationCostCreate       = uint64(50)
	ParamStoreKeyEnableFees               = []byte("EnableFees")
	ParamStoreKeyDeveloperShares          = []byte("DeveloperShares")
	ParamStoreKeyAddrDerivationCostCreate = []byte("AddrDerivationCostCreate")
)

Parameter store key

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 (
	ErrInternalFee = sdkerrors.Register(ModuleName, 2, "internal fees error")
)

errors

ModuleCdc references the global fees 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/fees and defined at the application level.

Functions

func GetKeyPrefixDeployerFees

func GetKeyPrefixDeployerFees(deployerAddress sdk.AccAddress) []byte

GetKeyPrefixDeployerFees returns the KVStore key prefix for storing registered fee infos for a deployer

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register implementations

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 AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(moduleName string) sdk.AccAddress
}

AccountKeeper defines the expected interface needed to retrieve account info.

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type EVMKeeper

type EVMKeeper interface {
	EVMConfig(ctx sdk.Context) (*evmtypes.EVMConfig, error)
	GetParams(ctx sdk.Context) evmtypes.Params
	GetAccountWithoutBalance(ctx sdk.Context, addr common.Address) *statedb.Account
}

EVMKeeper defines the expected EVM keeper interface used on erc20

type Fee

type Fee struct {
	// hex address of registered contract
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// bech32 address of contract deployer
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// bech32 address of account receiving the transaction fees it defaults to
	// deployer_address
	WithdrawAddress string `protobuf:"bytes,3,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"`
}

Fee defines an instance that organizes fee distribution conditions for the owner of a given smart contract

func NewFee

func NewFee(contract common.Address, deployer, withdraw sdk.AccAddress) Fee

NewFee returns an instance of Fee

func (*Fee) Descriptor

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

func (*Fee) GetContractAddress

func (m *Fee) GetContractAddress() string

func (*Fee) GetDeployerAddress

func (m *Fee) GetDeployerAddress() string

func (*Fee) GetWithdrawAddress

func (m *Fee) GetWithdrawAddress() string

func (*Fee) Marshal

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

func (*Fee) MarshalTo

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

func (*Fee) MarshalToSizedBuffer

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

func (*Fee) ProtoMessage

func (*Fee) ProtoMessage()

func (*Fee) Reset

func (m *Fee) Reset()

func (*Fee) Size

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

func (*Fee) String

func (m *Fee) String() string

func (*Fee) Unmarshal

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

func (Fee) Validate

func (f Fee) Validate() error

Validate performs a stateless validation of a Fee

func (*Fee) XXX_DiscardUnknown

func (m *Fee) XXX_DiscardUnknown()

func (*Fee) XXX_Marshal

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

func (*Fee) XXX_Merge

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

func (*Fee) XXX_Size

func (m *Fee) XXX_Size() int

func (*Fee) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// module parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// active registered contracts for fee distribution
	Fees []Fee `protobuf:"bytes,2,rep,name=fees,proto3" json:"fees"`
}

GenesisState defines the module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

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

func NewGenesisState

func NewGenesisState(params Params, fees []Fee) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetFees

func (m *GenesisState) GetFees() []Fee

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 MsgCancelFee

type MsgCancelFee struct {
	// contract hex address
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// deployer bech32 address
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
}

MsgCancelFee defines a message that cancels a registered a Fee

func NewMsgCancelFee

func NewMsgCancelFee(
	contract common.Address,
	deployer sdk.AccAddress,
) *MsgCancelFee

NewMsgClawbackcreates new instance of MsgClawback. The dest_address may be nil - defaulting to the funder.

func (*MsgCancelFee) Descriptor

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

func (*MsgCancelFee) GetContractAddress

func (m *MsgCancelFee) GetContractAddress() string

func (*MsgCancelFee) GetDeployerAddress

func (m *MsgCancelFee) GetDeployerAddress() string

func (*MsgCancelFee) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgCancelFee) GetSigners

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

GetSigners defines whose signature is required

func (*MsgCancelFee) Marshal

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

func (*MsgCancelFee) MarshalTo

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

func (*MsgCancelFee) MarshalToSizedBuffer

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

func (*MsgCancelFee) ProtoMessage

func (*MsgCancelFee) ProtoMessage()

func (*MsgCancelFee) Reset

func (m *MsgCancelFee) Reset()

func (MsgCancelFee) Route

func (msg MsgCancelFee) Route() string

Route returns the message route for a MsgCancelFee.

func (*MsgCancelFee) Size

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

func (*MsgCancelFee) String

func (m *MsgCancelFee) String() string

func (MsgCancelFee) Type

func (msg MsgCancelFee) Type() string

Type returns the message type for a MsgCancelFee.

func (*MsgCancelFee) Unmarshal

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

func (MsgCancelFee) ValidateBasic

func (msg MsgCancelFee) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgCancelFee) XXX_DiscardUnknown

func (m *MsgCancelFee) XXX_DiscardUnknown()

func (*MsgCancelFee) XXX_Marshal

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

func (*MsgCancelFee) XXX_Merge

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

func (*MsgCancelFee) XXX_Size

func (m *MsgCancelFee) XXX_Size() int

func (*MsgCancelFee) XXX_Unmarshal

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

type MsgCancelFeeResponse

type MsgCancelFeeResponse struct {
}

MsgCancelFeeResponse defines the MsgCancelFee response type

func (*MsgCancelFeeResponse) Descriptor

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

func (*MsgCancelFeeResponse) Marshal

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

func (*MsgCancelFeeResponse) MarshalTo

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

func (*MsgCancelFeeResponse) MarshalToSizedBuffer

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

func (*MsgCancelFeeResponse) ProtoMessage

func (*MsgCancelFeeResponse) ProtoMessage()

func (*MsgCancelFeeResponse) Reset

func (m *MsgCancelFeeResponse) Reset()

func (*MsgCancelFeeResponse) Size

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

func (*MsgCancelFeeResponse) String

func (m *MsgCancelFeeResponse) String() string

func (*MsgCancelFeeResponse) Unmarshal

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

func (*MsgCancelFeeResponse) XXX_DiscardUnknown

func (m *MsgCancelFeeResponse) XXX_DiscardUnknown()

func (*MsgCancelFeeResponse) XXX_Marshal

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

func (*MsgCancelFeeResponse) XXX_Merge

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

func (*MsgCancelFeeResponse) XXX_Size

func (m *MsgCancelFeeResponse) XXX_Size() int

func (*MsgCancelFeeResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// RegisterFee registers a new contract for receiving transaction fees
	RegisterFee(ctx context.Context, in *MsgRegisterFee, opts ...grpc.CallOption) (*MsgRegisterFeeResponse, error)
	// CancelFee cancels a contract's fee registration and further receival of
	// transaction fees
	CancelFee(ctx context.Context, in *MsgCancelFee, opts ...grpc.CallOption) (*MsgCancelFeeResponse, error)
	// UpdateFee updates the withdraw address
	UpdateFee(ctx context.Context, in *MsgUpdateFee, opts ...grpc.CallOption) (*MsgUpdateFeeResponse, 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 MsgRegisterFee

type MsgRegisterFee struct {
	// contract hex address
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// bech32 address of message sender, must be the same as the origin EOA
	// sending the transaction which deploys the contract
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// bech32 address of account receiving the transaction fees
	WithdrawAddress string `protobuf:"bytes,3,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"`
	// array of nonces from the address path, where the last nonce is
	// the nonce that determines the contract's address - it can be an EOA nonce
	// or a factory contract nonce
	Nonces []uint64 `protobuf:"varint,4,rep,packed,name=nonces,proto3" json:"nonces,omitempty"`
}

MsgRegisterFee defines a message that registers a Fee

func NewMsgRegisterFee

func NewMsgRegisterFee(
	contract common.Address,
	deployer,
	withdrawal sdk.AccAddress,
	nonces []uint64,
) *MsgRegisterFee

NewMsgRegisterFee creates new instance of MsgRegisterFee

func (*MsgRegisterFee) Descriptor

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

func (*MsgRegisterFee) GetContractAddress

func (m *MsgRegisterFee) GetContractAddress() string

func (*MsgRegisterFee) GetDeployerAddress

func (m *MsgRegisterFee) GetDeployerAddress() string

func (*MsgRegisterFee) GetNonces

func (m *MsgRegisterFee) GetNonces() []uint64

func (*MsgRegisterFee) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgRegisterFee) GetSigners

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

GetSigners defines whose signature is required

func (*MsgRegisterFee) GetWithdrawAddress

func (m *MsgRegisterFee) GetWithdrawAddress() string

func (*MsgRegisterFee) Marshal

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

func (*MsgRegisterFee) MarshalTo

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

func (*MsgRegisterFee) MarshalToSizedBuffer

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

func (*MsgRegisterFee) ProtoMessage

func (*MsgRegisterFee) ProtoMessage()

func (*MsgRegisterFee) Reset

func (m *MsgRegisterFee) Reset()

func (MsgRegisterFee) Route

func (msg MsgRegisterFee) Route() string

Route returns the name of the module

func (*MsgRegisterFee) Size

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

func (*MsgRegisterFee) String

func (m *MsgRegisterFee) String() string

func (MsgRegisterFee) Type

func (msg MsgRegisterFee) Type() string

Type returns the the action

func (*MsgRegisterFee) Unmarshal

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

func (MsgRegisterFee) ValidateBasic

func (msg MsgRegisterFee) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgRegisterFee) XXX_DiscardUnknown

func (m *MsgRegisterFee) XXX_DiscardUnknown()

func (*MsgRegisterFee) XXX_Marshal

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

func (*MsgRegisterFee) XXX_Merge

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

func (*MsgRegisterFee) XXX_Size

func (m *MsgRegisterFee) XXX_Size() int

func (*MsgRegisterFee) XXX_Unmarshal

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

type MsgRegisterFeeResponse

type MsgRegisterFeeResponse struct {
}

MsgRegisterFeeResponse defines the MsgRegisterFee response type

func (*MsgRegisterFeeResponse) Descriptor

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

func (*MsgRegisterFeeResponse) Marshal

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

func (*MsgRegisterFeeResponse) MarshalTo

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

func (*MsgRegisterFeeResponse) MarshalToSizedBuffer

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

func (*MsgRegisterFeeResponse) ProtoMessage

func (*MsgRegisterFeeResponse) ProtoMessage()

func (*MsgRegisterFeeResponse) Reset

func (m *MsgRegisterFeeResponse) Reset()

func (*MsgRegisterFeeResponse) Size

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

func (*MsgRegisterFeeResponse) String

func (m *MsgRegisterFeeResponse) String() string

func (*MsgRegisterFeeResponse) Unmarshal

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

func (*MsgRegisterFeeResponse) XXX_DiscardUnknown

func (m *MsgRegisterFeeResponse) XXX_DiscardUnknown()

func (*MsgRegisterFeeResponse) XXX_Marshal

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

func (*MsgRegisterFeeResponse) XXX_Merge

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

func (*MsgRegisterFeeResponse) XXX_Size

func (m *MsgRegisterFeeResponse) XXX_Size() int

func (*MsgRegisterFeeResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterFee registers a new contract for receiving transaction fees
	RegisterFee(context.Context, *MsgRegisterFee) (*MsgRegisterFeeResponse, error)
	// CancelFee cancels a contract's fee registration and further receival of
	// transaction fees
	CancelFee(context.Context, *MsgCancelFee) (*MsgCancelFeeResponse, error)
	// UpdateFee updates the withdraw address
	UpdateFee(context.Context, *MsgUpdateFee) (*MsgUpdateFeeResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateFee

type MsgUpdateFee struct {
	// contract hex address
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// deployer bech32 address
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// new withdraw bech32 address for receiving the transaction fees
	WithdrawAddress string `protobuf:"bytes,3,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"`
}

MsgUpdateFee defines a message that updates the withdraw address for a registered Fee

func NewMsgUpdateFee

func NewMsgUpdateFee(
	contract common.Address,
	deployer,
	withdraw sdk.AccAddress,
) *MsgUpdateFee

NewMsgUpdateFee creates new instance of MsgUpdateFee

func (*MsgUpdateFee) Descriptor

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

func (*MsgUpdateFee) GetContractAddress

func (m *MsgUpdateFee) GetContractAddress() string

func (*MsgUpdateFee) GetDeployerAddress

func (m *MsgUpdateFee) GetDeployerAddress() string

func (*MsgUpdateFee) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgUpdateFee) GetSigners

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

GetSigners defines whose signature is required

func (*MsgUpdateFee) GetWithdrawAddress

func (m *MsgUpdateFee) GetWithdrawAddress() string

func (*MsgUpdateFee) Marshal

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

func (*MsgUpdateFee) MarshalTo

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

func (*MsgUpdateFee) MarshalToSizedBuffer

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

func (*MsgUpdateFee) ProtoMessage

func (*MsgUpdateFee) ProtoMessage()

func (*MsgUpdateFee) Reset

func (m *MsgUpdateFee) Reset()

func (MsgUpdateFee) Route

func (msg MsgUpdateFee) Route() string

Route returns the name of the module

func (*MsgUpdateFee) Size

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

func (*MsgUpdateFee) String

func (m *MsgUpdateFee) String() string

func (MsgUpdateFee) Type

func (msg MsgUpdateFee) Type() string

Type returns the the action

func (*MsgUpdateFee) Unmarshal

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

func (MsgUpdateFee) ValidateBasic

func (msg MsgUpdateFee) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgUpdateFee) XXX_DiscardUnknown

func (m *MsgUpdateFee) XXX_DiscardUnknown()

func (*MsgUpdateFee) XXX_Marshal

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

func (*MsgUpdateFee) XXX_Merge

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

func (*MsgUpdateFee) XXX_Size

func (m *MsgUpdateFee) XXX_Size() int

func (*MsgUpdateFee) XXX_Unmarshal

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

type MsgUpdateFeeResponse

type MsgUpdateFeeResponse struct {
}

MsgUpdateFeeResponse defines the MsgUpdateFee response type

func (*MsgUpdateFeeResponse) Descriptor

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

func (*MsgUpdateFeeResponse) Marshal

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

func (*MsgUpdateFeeResponse) MarshalTo

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

func (*MsgUpdateFeeResponse) MarshalToSizedBuffer

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

func (*MsgUpdateFeeResponse) ProtoMessage

func (*MsgUpdateFeeResponse) ProtoMessage()

func (*MsgUpdateFeeResponse) Reset

func (m *MsgUpdateFeeResponse) Reset()

func (*MsgUpdateFeeResponse) Size

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

func (*MsgUpdateFeeResponse) String

func (m *MsgUpdateFeeResponse) String() string

func (*MsgUpdateFeeResponse) Unmarshal

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

func (*MsgUpdateFeeResponse) XXX_DiscardUnknown

func (m *MsgUpdateFeeResponse) XXX_DiscardUnknown()

func (*MsgUpdateFeeResponse) XXX_Marshal

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

func (*MsgUpdateFeeResponse) XXX_Merge

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

func (*MsgUpdateFeeResponse) XXX_Size

func (m *MsgUpdateFeeResponse) XXX_Size() int

func (*MsgUpdateFeeResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// parameter to enable fees
	EnableFees bool `protobuf:"varint,1,opt,name=enable_fees,json=enableFees,proto3" json:"enable_fees,omitempty"`
	// developer_shares defines the proportion of the transaction fees to be
	// distributed to the registered contract owner
	DeveloperShares github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	// addr_derivation_cost_create defines the cost of address derivation for
	// verifying the contract deployer at fee registration
	AddrDerivationCostCreate uint64 `` /* 138-byte string literal not displayed */
}

Params defines the fees module params

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(
	enableFees bool,
	developerShares sdk.Dec,
	addrDerivationCostCreate uint64,
) Params

NewParams creates a new Params object

func (*Params) Descriptor

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

func (*Params) GetAddrDerivationCostCreate

func (m *Params) GetAddrDerivationCostCreate() uint64

func (*Params) GetEnableFees

func (m *Params) GetEnableFees() 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) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

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) Validate

func (p Params) Validate() 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 {
	// Fees retrieves all registered contracts for fee distribution
	Fees(ctx context.Context, in *QueryFeesRequest, opts ...grpc.CallOption) (*QueryFeesResponse, error)
	// Fee retrieves a registered contract for fee distribution for a given
	// address
	Fee(ctx context.Context, in *QueryFeeRequest, opts ...grpc.CallOption) (*QueryFeeResponse, error)
	// Params retrieves the fees module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// DeployerFees retrieves all contracts that a given deployer has registered
	// for fee distribution
	DeployerFees(ctx context.Context, in *QueryDeployerFeesRequest, opts ...grpc.CallOption) (*QueryDeployerFeesResponse, 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 QueryDeployerFeesRequest

type QueryDeployerFeesRequest struct {
	// deployer bech32 address
	DeployerAddress string `protobuf:"bytes,1,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDeployerFeesRequest is the request type for the Query/DeployerFees RPC method.

func (*QueryDeployerFeesRequest) Descriptor

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

func (*QueryDeployerFeesRequest) GetDeployerAddress

func (m *QueryDeployerFeesRequest) GetDeployerAddress() string

func (*QueryDeployerFeesRequest) GetPagination

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

func (*QueryDeployerFeesRequest) Marshal

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

func (*QueryDeployerFeesRequest) MarshalTo

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

func (*QueryDeployerFeesRequest) MarshalToSizedBuffer

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

func (*QueryDeployerFeesRequest) ProtoMessage

func (*QueryDeployerFeesRequest) ProtoMessage()

func (*QueryDeployerFeesRequest) Reset

func (m *QueryDeployerFeesRequest) Reset()

func (*QueryDeployerFeesRequest) Size

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

func (*QueryDeployerFeesRequest) String

func (m *QueryDeployerFeesRequest) String() string

func (*QueryDeployerFeesRequest) Unmarshal

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

func (*QueryDeployerFeesRequest) XXX_DiscardUnknown

func (m *QueryDeployerFeesRequest) XXX_DiscardUnknown()

func (*QueryDeployerFeesRequest) XXX_Marshal

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

func (*QueryDeployerFeesRequest) XXX_Merge

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

func (*QueryDeployerFeesRequest) XXX_Size

func (m *QueryDeployerFeesRequest) XXX_Size() int

func (*QueryDeployerFeesRequest) XXX_Unmarshal

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

type QueryDeployerFeesResponse

type QueryDeployerFeesResponse struct {
	Fees []Fee `protobuf:"bytes,1,rep,name=fees,proto3" json:"fees"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDeployerFeesResponse is the response type for the Query/DeployerFees RPC method.

func (*QueryDeployerFeesResponse) Descriptor

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

func (*QueryDeployerFeesResponse) GetFees

func (m *QueryDeployerFeesResponse) GetFees() []Fee

func (*QueryDeployerFeesResponse) GetPagination

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

func (*QueryDeployerFeesResponse) Marshal

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

func (*QueryDeployerFeesResponse) MarshalTo

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

func (*QueryDeployerFeesResponse) MarshalToSizedBuffer

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

func (*QueryDeployerFeesResponse) ProtoMessage

func (*QueryDeployerFeesResponse) ProtoMessage()

func (*QueryDeployerFeesResponse) Reset

func (m *QueryDeployerFeesResponse) Reset()

func (*QueryDeployerFeesResponse) Size

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

func (*QueryDeployerFeesResponse) String

func (m *QueryDeployerFeesResponse) String() string

func (*QueryDeployerFeesResponse) Unmarshal

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

func (*QueryDeployerFeesResponse) XXX_DiscardUnknown

func (m *QueryDeployerFeesResponse) XXX_DiscardUnknown()

func (*QueryDeployerFeesResponse) XXX_Marshal

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

func (*QueryDeployerFeesResponse) XXX_Merge

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

func (*QueryDeployerFeesResponse) XXX_Size

func (m *QueryDeployerFeesResponse) XXX_Size() int

func (*QueryDeployerFeesResponse) XXX_Unmarshal

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

type QueryFeeRequest

type QueryFeeRequest struct {
	// contract identifier is the hex contract address of a contract
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

QueryFeeRequest is the request type for the Query/Fee RPC method.

func (*QueryFeeRequest) Descriptor

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

func (*QueryFeeRequest) GetContractAddress

func (m *QueryFeeRequest) GetContractAddress() string

func (*QueryFeeRequest) Marshal

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

func (*QueryFeeRequest) MarshalTo

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

func (*QueryFeeRequest) MarshalToSizedBuffer

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

func (*QueryFeeRequest) ProtoMessage

func (*QueryFeeRequest) ProtoMessage()

func (*QueryFeeRequest) Reset

func (m *QueryFeeRequest) Reset()

func (*QueryFeeRequest) Size

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

func (*QueryFeeRequest) String

func (m *QueryFeeRequest) String() string

func (*QueryFeeRequest) Unmarshal

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

func (*QueryFeeRequest) XXX_DiscardUnknown

func (m *QueryFeeRequest) XXX_DiscardUnknown()

func (*QueryFeeRequest) XXX_Marshal

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

func (*QueryFeeRequest) XXX_Merge

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

func (*QueryFeeRequest) XXX_Size

func (m *QueryFeeRequest) XXX_Size() int

func (*QueryFeeRequest) XXX_Unmarshal

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

type QueryFeeResponse

type QueryFeeResponse struct {
	Fee Fee `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee"`
}

QueryFeeResponse is the response type for the Query/Fee RPC method.

func (*QueryFeeResponse) Descriptor

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

func (*QueryFeeResponse) GetFee

func (m *QueryFeeResponse) GetFee() Fee

func (*QueryFeeResponse) Marshal

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

func (*QueryFeeResponse) MarshalTo

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

func (*QueryFeeResponse) MarshalToSizedBuffer

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

func (*QueryFeeResponse) ProtoMessage

func (*QueryFeeResponse) ProtoMessage()

func (*QueryFeeResponse) Reset

func (m *QueryFeeResponse) Reset()

func (*QueryFeeResponse) Size

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

func (*QueryFeeResponse) String

func (m *QueryFeeResponse) String() string

func (*QueryFeeResponse) Unmarshal

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

func (*QueryFeeResponse) XXX_DiscardUnknown

func (m *QueryFeeResponse) XXX_DiscardUnknown()

func (*QueryFeeResponse) XXX_Marshal

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

func (*QueryFeeResponse) XXX_Merge

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

func (*QueryFeeResponse) XXX_Size

func (m *QueryFeeResponse) XXX_Size() int

func (*QueryFeeResponse) XXX_Unmarshal

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

type QueryFeesRequest

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

QueryFeesRequest is the request type for the Query/Fees RPC method.

func (*QueryFeesRequest) Descriptor

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

func (*QueryFeesRequest) GetPagination

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

func (*QueryFeesRequest) Marshal

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

func (*QueryFeesRequest) MarshalTo

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

func (*QueryFeesRequest) MarshalToSizedBuffer

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

func (*QueryFeesRequest) ProtoMessage

func (*QueryFeesRequest) ProtoMessage()

func (*QueryFeesRequest) Reset

func (m *QueryFeesRequest) Reset()

func (*QueryFeesRequest) Size

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

func (*QueryFeesRequest) String

func (m *QueryFeesRequest) String() string

func (*QueryFeesRequest) Unmarshal

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

func (*QueryFeesRequest) XXX_DiscardUnknown

func (m *QueryFeesRequest) XXX_DiscardUnknown()

func (*QueryFeesRequest) XXX_Marshal

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

func (*QueryFeesRequest) XXX_Merge

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

func (*QueryFeesRequest) XXX_Size

func (m *QueryFeesRequest) XXX_Size() int

func (*QueryFeesRequest) XXX_Unmarshal

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

type QueryFeesResponse

type QueryFeesResponse struct {
	Fees []Fee `protobuf:"bytes,1,rep,name=fees,proto3" json:"fees"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryFeesResponse is the response type for the Query/Fees RPC method.

func (*QueryFeesResponse) Descriptor

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

func (*QueryFeesResponse) GetFees

func (m *QueryFeesResponse) GetFees() []Fee

func (*QueryFeesResponse) GetPagination

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

func (*QueryFeesResponse) Marshal

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

func (*QueryFeesResponse) MarshalTo

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

func (*QueryFeesResponse) MarshalToSizedBuffer

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

func (*QueryFeesResponse) ProtoMessage

func (*QueryFeesResponse) ProtoMessage()

func (*QueryFeesResponse) Reset

func (m *QueryFeesResponse) Reset()

func (*QueryFeesResponse) Size

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

func (*QueryFeesResponse) String

func (m *QueryFeesResponse) String() string

func (*QueryFeesResponse) Unmarshal

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

func (*QueryFeesResponse) XXX_DiscardUnknown

func (m *QueryFeesResponse) XXX_DiscardUnknown()

func (*QueryFeesResponse) XXX_Marshal

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

func (*QueryFeesResponse) XXX_Merge

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

func (*QueryFeesResponse) XXX_Size

func (m *QueryFeesResponse) XXX_Size() int

func (*QueryFeesResponse) XXX_Unmarshal

func (m *QueryFeesResponse) 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 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 {
	// Fees retrieves all registered contracts for fee distribution
	Fees(context.Context, *QueryFeesRequest) (*QueryFeesResponse, error)
	// Fee retrieves a registered contract for fee distribution for a given
	// address
	Fee(context.Context, *QueryFeeRequest) (*QueryFeeResponse, error)
	// Params retrieves the fees module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// DeployerFees retrieves all contracts that a given deployer has registered
	// for fee distribution
	DeployerFees(context.Context, *QueryDeployerFeesRequest) (*QueryDeployerFeesResponse, 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) CancelFee

func (*UnimplementedMsgServer) RegisterFee

func (*UnimplementedMsgServer) UpdateFee

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DeployerFees

func (*UnimplementedQueryServer) Fee

func (*UnimplementedQueryServer) Fees

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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