types

package
v26.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 31 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 (
	EventTypeRegisterFeeShare = "register_feeshare"
	EventTypeCancelFeeShare   = "cancel_feeshare"
	EventTypeUpdateFeeShare   = "update_feeshare"

	EventTypePayoutFeeShare = "payout_feeshare"

	AttributeKeyContract          = "contract"
	AttributeKeyWithdrawerAddress = "withdrawer_address"
	AttributeWithdrawPayouts      = "payouts"
)
View Source
const (
	// module name
	ModuleName = "feeshare"

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

	// RouterKey to be used for message routing
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgRegisterFeeShare = "register_feeshare"
	TypeMsgCancelFeeShare   = "cancel_feeshare"
	TypeMsgUpdateFeeShare   = "update_feeshare"
)

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 (
	ErrFeeShareDisabled              = errorsmod.Register(ModuleName, 1, "feeshare module is disabled by governance")
	ErrFeeShareAlreadyRegistered     = errorsmod.Register(ModuleName, 2, "feeshare already exists for given contract")
	ErrFeeShareNoContractDeployed    = errorsmod.Register(ModuleName, 3, "no contract deployed")
	ErrFeeShareContractNotRegistered = errorsmod.Register(ModuleName, 4, "no feeshare registered for contract")
	ErrFeeSharePayment               = errorsmod.Register(ModuleName, 5, "feeshare payment error")
	ErrFeeShareInvalidWithdrawer     = errorsmod.Register(ModuleName, 6, "invalid withdrawer address")
)
View Source
var (
	ErrInvalidLengthFeeshare        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFeeshare          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFeeshare = 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 (
	KeyPrefixFeeShare   = []byte{prefixFeeShare}
	KeyPrefixDeployer   = []byte{prefixDeployer}
	KeyPrefixWithdrawer = []byte{prefixWithdrawer}
	ParamsKey           = []byte{prefixParams}
)

KVStore key prefixes

View Source
var (
	DefaultEnableFeeShare  = true
	DefaultDeveloperShares = sdk.NewDecWithPrec(50, 2) // 50%
	DefaultAllowedDenoms   = []string(nil)             // all allowed

	ParamStoreKeyEnableFeeShare  = []byte("EnableFeeShare")
	ParamStoreKeyDeveloperShares = []byte("DeveloperShares")
	ParamStoreKeyAllowedDenoms   = []byte("AllowedDenoms")
)

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

Functions

func GetKeyPrefixDeployer

func GetKeyPrefixDeployer(deployerAddress sdk.AccAddress) []byte

GetKeyPrefixDeployer returns the KVStore key prefix for storing registered feeshare contract for a deployer

func GetKeyPrefixWithdrawer

func GetKeyPrefixWithdrawer(withdrawerAddress sdk.AccAddress) []byte

GetKeyPrefixWithdrawer returns the KVStore key prefix for storing registered feeshare contract for a withdrawer

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

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 AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(moduleName string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, name string) acctypes.ModuleAccountI

	HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) (account acctypes.AccountI)
}

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 FeeShare

type FeeShare struct {
	// contract_address is the bech32 address of a registered contract in string
	// form
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// deployer_address is the bech32 address of message sender. It must be the
	// same as the contracts admin address.
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// withdrawer_address is the bech32 address of account receiving the
	// transaction fees.
	WithdrawerAddress string `protobuf:"bytes,3,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty"`
}

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

func NewFeeShare

func NewFeeShare(contract sdk.Address, deployer, withdrawer sdk.AccAddress) FeeShare

NewFeeShare returns an instance of FeeShare.

func (*FeeShare) Descriptor

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

func (FeeShare) GetContractAddr

func (fs FeeShare) GetContractAddr() sdk.Address

GetContractAddr returns the contract address

func (*FeeShare) GetContractAddress

func (m *FeeShare) GetContractAddress() string

func (FeeShare) GetDeployerAddr

func (fs FeeShare) GetDeployerAddr() sdk.AccAddress

GetDeployerAddr returns the contract deployer address

func (*FeeShare) GetDeployerAddress

func (m *FeeShare) GetDeployerAddress() string

func (FeeShare) GetWithdrawerAddr

func (fs FeeShare) GetWithdrawerAddr() sdk.AccAddress

GetWithdrawerAddr returns the account address to where the funds proceeding from the fees will be received.

func (*FeeShare) GetWithdrawerAddress

func (m *FeeShare) GetWithdrawerAddress() string

func (*FeeShare) Marshal

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

func (*FeeShare) MarshalTo

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

func (*FeeShare) MarshalToSizedBuffer

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

func (*FeeShare) ProtoMessage

func (*FeeShare) ProtoMessage()

func (*FeeShare) Reset

func (m *FeeShare) Reset()

func (*FeeShare) Size

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

func (*FeeShare) String

func (m *FeeShare) String() string

func (*FeeShare) Unmarshal

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

func (FeeShare) Validate

func (fs FeeShare) Validate() error

Validate performs a stateless validation of a FeeShare

func (*FeeShare) XXX_DiscardUnknown

func (m *FeeShare) XXX_DiscardUnknown()

func (*FeeShare) XXX_Marshal

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

func (*FeeShare) XXX_Merge

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

func (*FeeShare) XXX_Size

func (m *FeeShare) XXX_Size() int

func (*FeeShare) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params are the feeshare module parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// FeeShare is a slice of active registered contracts for fee distribution
	FeeShare []FeeShare `protobuf:"bytes,2,rep,name=fee_share,json=feeShare,proto3" json:"fee_share"`
}

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, feeshare []FeeShare) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetFeeShare

func (m *GenesisState) GetFeeShare() []FeeShare

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 MsgCancelFeeShare

type MsgCancelFeeShare struct {
	// contract_address in bech32 format
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// deployer_address is the bech32 address of message sender. It must be the
	// same the contract's admin address
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
}

MsgCancelFeeShare defines a message that cancels a registered FeeShare

func NewMsgCancelFeeShare

func NewMsgCancelFeeShare(
	contract sdk.Address,
	deployer sdk.AccAddress,
) *MsgCancelFeeShare

NewMsgCancelFeeShare creates new instance of MsgCancelFeeShare.

func (*MsgCancelFeeShare) Descriptor

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

func (*MsgCancelFeeShare) GetContractAddress

func (m *MsgCancelFeeShare) GetContractAddress() string

func (*MsgCancelFeeShare) GetDeployerAddress

func (m *MsgCancelFeeShare) GetDeployerAddress() string

func (*MsgCancelFeeShare) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgCancelFeeShare) GetSigners

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

GetSigners defines whose signature is required

func (*MsgCancelFeeShare) Marshal

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

func (*MsgCancelFeeShare) MarshalTo

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

func (*MsgCancelFeeShare) MarshalToSizedBuffer

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

func (*MsgCancelFeeShare) ProtoMessage

func (*MsgCancelFeeShare) ProtoMessage()

func (*MsgCancelFeeShare) Reset

func (m *MsgCancelFeeShare) Reset()

func (MsgCancelFeeShare) Route

func (msg MsgCancelFeeShare) Route() string

Route returns the message route for a MsgCancelFeeShare.

func (*MsgCancelFeeShare) Size

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

func (*MsgCancelFeeShare) String

func (m *MsgCancelFeeShare) String() string

func (MsgCancelFeeShare) Type

func (msg MsgCancelFeeShare) Type() string

Type returns the message type for a MsgCancelFeeShare.

func (*MsgCancelFeeShare) Unmarshal

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

func (MsgCancelFeeShare) ValidateBasic

func (msg MsgCancelFeeShare) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgCancelFeeShare) XXX_DiscardUnknown

func (m *MsgCancelFeeShare) XXX_DiscardUnknown()

func (*MsgCancelFeeShare) XXX_Marshal

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

func (*MsgCancelFeeShare) XXX_Merge

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

func (*MsgCancelFeeShare) XXX_Size

func (m *MsgCancelFeeShare) XXX_Size() int

func (*MsgCancelFeeShare) XXX_Unmarshal

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

type MsgCancelFeeShareResponse

type MsgCancelFeeShareResponse struct {
}

MsgCancelFeeShareResponse defines the MsgCancelFeeShare response type

func (*MsgCancelFeeShareResponse) Descriptor

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

func (*MsgCancelFeeShareResponse) Marshal

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

func (*MsgCancelFeeShareResponse) MarshalTo

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

func (*MsgCancelFeeShareResponse) MarshalToSizedBuffer

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

func (*MsgCancelFeeShareResponse) ProtoMessage

func (*MsgCancelFeeShareResponse) ProtoMessage()

func (*MsgCancelFeeShareResponse) Reset

func (m *MsgCancelFeeShareResponse) Reset()

func (*MsgCancelFeeShareResponse) Size

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

func (*MsgCancelFeeShareResponse) String

func (m *MsgCancelFeeShareResponse) String() string

func (*MsgCancelFeeShareResponse) Unmarshal

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

func (*MsgCancelFeeShareResponse) XXX_DiscardUnknown

func (m *MsgCancelFeeShareResponse) XXX_DiscardUnknown()

func (*MsgCancelFeeShareResponse) XXX_Marshal

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

func (*MsgCancelFeeShareResponse) XXX_Merge

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

func (*MsgCancelFeeShareResponse) XXX_Size

func (m *MsgCancelFeeShareResponse) XXX_Size() int

func (*MsgCancelFeeShareResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// RegisterFeeShare registers a new contract for receiving transaction fees
	RegisterFeeShare(ctx context.Context, in *MsgRegisterFeeShare, opts ...grpc.CallOption) (*MsgRegisterFeeShareResponse, error)
	// UpdateFeeShare updates the withdrawer address of a FeeShare
	UpdateFeeShare(ctx context.Context, in *MsgUpdateFeeShare, opts ...grpc.CallOption) (*MsgUpdateFeeShareResponse, error)
	// CancelFeeShare cancels a contract's fee registration and further receival
	// of transaction fees
	CancelFeeShare(ctx context.Context, in *MsgCancelFeeShare, opts ...grpc.CallOption) (*MsgCancelFeeShareResponse, 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 MsgRegisterFeeShare

type MsgRegisterFeeShare struct {
	// contract_address in bech32 format
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// deployer_address is the bech32 address of message sender. It must be the
	// same the contract's admin address
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// withdrawer_address is the bech32 address of account receiving the
	// transaction fees
	WithdrawerAddress string `protobuf:"bytes,3,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty"`
}

MsgRegisterFeeShare defines a message that registers a FeeShare

func NewMsgRegisterFeeShare

func NewMsgRegisterFeeShare(
	contract sdk.Address,
	deployer,
	withdrawer sdk.AccAddress,
) *MsgRegisterFeeShare

NewMsgRegisterFeeShare creates new instance of MsgRegisterFeeShare

func (*MsgRegisterFeeShare) Descriptor

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

func (*MsgRegisterFeeShare) GetContractAddress

func (m *MsgRegisterFeeShare) GetContractAddress() string

func (*MsgRegisterFeeShare) GetDeployerAddress

func (m *MsgRegisterFeeShare) GetDeployerAddress() string

func (*MsgRegisterFeeShare) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgRegisterFeeShare) GetSigners

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

GetSigners defines whose signature is required

func (*MsgRegisterFeeShare) GetWithdrawerAddress

func (m *MsgRegisterFeeShare) GetWithdrawerAddress() string

func (*MsgRegisterFeeShare) Marshal

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

func (*MsgRegisterFeeShare) MarshalTo

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

func (*MsgRegisterFeeShare) MarshalToSizedBuffer

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

func (*MsgRegisterFeeShare) ProtoMessage

func (*MsgRegisterFeeShare) ProtoMessage()

func (*MsgRegisterFeeShare) Reset

func (m *MsgRegisterFeeShare) Reset()

func (MsgRegisterFeeShare) Route

func (msg MsgRegisterFeeShare) Route() string

Route returns the name of the module

func (*MsgRegisterFeeShare) Size

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

func (*MsgRegisterFeeShare) String

func (m *MsgRegisterFeeShare) String() string

func (MsgRegisterFeeShare) Type

func (msg MsgRegisterFeeShare) Type() string

Type returns the the action

func (*MsgRegisterFeeShare) Unmarshal

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

func (MsgRegisterFeeShare) ValidateBasic

func (msg MsgRegisterFeeShare) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgRegisterFeeShare) XXX_DiscardUnknown

func (m *MsgRegisterFeeShare) XXX_DiscardUnknown()

func (*MsgRegisterFeeShare) XXX_Marshal

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

func (*MsgRegisterFeeShare) XXX_Merge

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

func (*MsgRegisterFeeShare) XXX_Size

func (m *MsgRegisterFeeShare) XXX_Size() int

func (*MsgRegisterFeeShare) XXX_Unmarshal

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

type MsgRegisterFeeShareResponse

type MsgRegisterFeeShareResponse struct {
}

MsgRegisterFeeShareResponse defines the MsgRegisterFeeShare response type

func (*MsgRegisterFeeShareResponse) Descriptor

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

func (*MsgRegisterFeeShareResponse) Marshal

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

func (*MsgRegisterFeeShareResponse) MarshalTo

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

func (*MsgRegisterFeeShareResponse) MarshalToSizedBuffer

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

func (*MsgRegisterFeeShareResponse) ProtoMessage

func (*MsgRegisterFeeShareResponse) ProtoMessage()

func (*MsgRegisterFeeShareResponse) Reset

func (m *MsgRegisterFeeShareResponse) Reset()

func (*MsgRegisterFeeShareResponse) Size

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

func (*MsgRegisterFeeShareResponse) String

func (m *MsgRegisterFeeShareResponse) String() string

func (*MsgRegisterFeeShareResponse) Unmarshal

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

func (*MsgRegisterFeeShareResponse) XXX_DiscardUnknown

func (m *MsgRegisterFeeShareResponse) XXX_DiscardUnknown()

func (*MsgRegisterFeeShareResponse) XXX_Marshal

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

func (*MsgRegisterFeeShareResponse) XXX_Merge

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

func (*MsgRegisterFeeShareResponse) XXX_Size

func (m *MsgRegisterFeeShareResponse) XXX_Size() int

func (*MsgRegisterFeeShareResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterFeeShare registers a new contract for receiving transaction fees
	RegisterFeeShare(context.Context, *MsgRegisterFeeShare) (*MsgRegisterFeeShareResponse, error)
	// UpdateFeeShare updates the withdrawer address of a FeeShare
	UpdateFeeShare(context.Context, *MsgUpdateFeeShare) (*MsgUpdateFeeShareResponse, error)
	// CancelFeeShare cancels a contract's fee registration and further receival
	// of transaction fees
	CancelFeeShare(context.Context, *MsgCancelFeeShare) (*MsgCancelFeeShareResponse, 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 MsgUpdateFeeShare

type MsgUpdateFeeShare struct {
	// contract_address in bech32 format
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// deployer_address is the bech32 address of message sender. It must be the
	// same the contract's admin address
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// withdrawer_address is the bech32 address of account receiving the
	// transaction fees
	WithdrawerAddress string `protobuf:"bytes,3,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty"`
}

MsgUpdateFeeShare defines a message that updates the withdrawer address for a registered FeeShare

func NewMsgUpdateFeeShare

func NewMsgUpdateFeeShare(
	contract sdk.Address,
	deployer,
	withdraw sdk.AccAddress,
) *MsgUpdateFeeShare

NewMsgUpdateFeeShare creates new instance of MsgUpdateFeeShare

func (*MsgUpdateFeeShare) Descriptor

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

func (*MsgUpdateFeeShare) GetContractAddress

func (m *MsgUpdateFeeShare) GetContractAddress() string

func (*MsgUpdateFeeShare) GetDeployerAddress

func (m *MsgUpdateFeeShare) GetDeployerAddress() string

func (*MsgUpdateFeeShare) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgUpdateFeeShare) GetSigners

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

GetSigners defines whose signature is required

func (*MsgUpdateFeeShare) GetWithdrawerAddress

func (m *MsgUpdateFeeShare) GetWithdrawerAddress() string

func (*MsgUpdateFeeShare) Marshal

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

func (*MsgUpdateFeeShare) MarshalTo

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

func (*MsgUpdateFeeShare) MarshalToSizedBuffer

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

func (*MsgUpdateFeeShare) ProtoMessage

func (*MsgUpdateFeeShare) ProtoMessage()

func (*MsgUpdateFeeShare) Reset

func (m *MsgUpdateFeeShare) Reset()

func (MsgUpdateFeeShare) Route

func (msg MsgUpdateFeeShare) Route() string

Route returns the name of the module

func (*MsgUpdateFeeShare) Size

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

func (*MsgUpdateFeeShare) String

func (m *MsgUpdateFeeShare) String() string

func (MsgUpdateFeeShare) Type

func (msg MsgUpdateFeeShare) Type() string

Type returns the the action

func (*MsgUpdateFeeShare) Unmarshal

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

func (MsgUpdateFeeShare) ValidateBasic

func (msg MsgUpdateFeeShare) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgUpdateFeeShare) XXX_DiscardUnknown

func (m *MsgUpdateFeeShare) XXX_DiscardUnknown()

func (*MsgUpdateFeeShare) XXX_Marshal

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

func (*MsgUpdateFeeShare) XXX_Merge

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

func (*MsgUpdateFeeShare) XXX_Size

func (m *MsgUpdateFeeShare) XXX_Size() int

func (*MsgUpdateFeeShare) XXX_Unmarshal

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

type MsgUpdateFeeShareResponse

type MsgUpdateFeeShareResponse struct {
}

MsgUpdateFeeShareResponse defines the MsgUpdateFeeShare response type

func (*MsgUpdateFeeShareResponse) Descriptor

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

func (*MsgUpdateFeeShareResponse) Marshal

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

func (*MsgUpdateFeeShareResponse) MarshalTo

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

func (*MsgUpdateFeeShareResponse) MarshalToSizedBuffer

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

func (*MsgUpdateFeeShareResponse) ProtoMessage

func (*MsgUpdateFeeShareResponse) ProtoMessage()

func (*MsgUpdateFeeShareResponse) Reset

func (m *MsgUpdateFeeShareResponse) Reset()

func (*MsgUpdateFeeShareResponse) Size

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

func (*MsgUpdateFeeShareResponse) String

func (m *MsgUpdateFeeShareResponse) String() string

func (*MsgUpdateFeeShareResponse) Unmarshal

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

func (*MsgUpdateFeeShareResponse) XXX_DiscardUnknown

func (m *MsgUpdateFeeShareResponse) XXX_DiscardUnknown()

func (*MsgUpdateFeeShareResponse) XXX_Marshal

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

func (*MsgUpdateFeeShareResponse) XXX_Merge

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

func (*MsgUpdateFeeShareResponse) XXX_Size

func (m *MsgUpdateFeeShareResponse) XXX_Size() int

func (*MsgUpdateFeeShareResponse) XXX_Unmarshal

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

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/feeshare 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 (m MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners

func (m *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) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (m *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_feeshare defines a parameter to enable the feeshare module
	EnableFeeShare bool `protobuf:"varint,1,opt,name=enable_fee_share,json=enableFeeShare,proto3" json:"enable_fee_share,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 */
	// allowed_denoms defines the list of denoms that are allowed to be paid to
	// the contract withdraw addresses. If said denom is not in the list, the fees
	// will ONLY be sent to the community pool.
	// If this list is empty, all denoms are allowed.
	AllowedDenoms []string `protobuf:"bytes,3,rep,name=allowed_denoms,json=allowedDenoms,proto3" json:"allowed_denoms,omitempty"`
}

Params defines the feeshare module params

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(
	enableFeeShare bool,
	developerShares sdk.Dec,
	allowedDenoms []string,
) Params

NewParams creates a new Params object

func (*Params) Descriptor

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

func (*Params) GetAllowedDenoms

func (m *Params) GetAllowedDenoms() []string

func (*Params) GetEnableFeeShare

func (m *Params) GetEnableFeeShare() 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 {
	// FeeShares retrieves all registered FeeShares
	FeeShares(ctx context.Context, in *QueryFeeSharesRequest, opts ...grpc.CallOption) (*QueryFeeSharesResponse, error)
	// FeeShare retrieves a registered FeeShare for a given contract address
	FeeShare(ctx context.Context, in *QueryFeeShareRequest, opts ...grpc.CallOption) (*QueryFeeShareResponse, error)
	// Params retrieves the FeeShare module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// DeployerFeeShares retrieves all FeeShares that a given deployer has
	// registered
	DeployerFeeShares(ctx context.Context, in *QueryDeployerFeeSharesRequest, opts ...grpc.CallOption) (*QueryDeployerFeeSharesResponse, error)
	// WithdrawerFeeShares retrieves all FeeShares with a given withdrawer
	// address
	WithdrawerFeeShares(ctx context.Context, in *QueryWithdrawerFeeSharesRequest, opts ...grpc.CallOption) (*QueryWithdrawerFeeSharesResponse, 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 QueryDeployerFeeSharesRequest

type QueryDeployerFeeSharesRequest struct {
	// deployer_address in bech32 format
	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"`
}

QueryDeployerFeeSharesRequest is the request type for the Query/DeployerFeeShares RPC method.

func (*QueryDeployerFeeSharesRequest) Descriptor

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

func (*QueryDeployerFeeSharesRequest) GetDeployerAddress

func (m *QueryDeployerFeeSharesRequest) GetDeployerAddress() string

func (*QueryDeployerFeeSharesRequest) GetPagination

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

func (*QueryDeployerFeeSharesRequest) Marshal

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

func (*QueryDeployerFeeSharesRequest) MarshalTo

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

func (*QueryDeployerFeeSharesRequest) MarshalToSizedBuffer

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

func (*QueryDeployerFeeSharesRequest) ProtoMessage

func (*QueryDeployerFeeSharesRequest) ProtoMessage()

func (*QueryDeployerFeeSharesRequest) Reset

func (m *QueryDeployerFeeSharesRequest) Reset()

func (*QueryDeployerFeeSharesRequest) Size

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

func (*QueryDeployerFeeSharesRequest) String

func (*QueryDeployerFeeSharesRequest) Unmarshal

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

func (QueryDeployerFeeSharesRequest) ValidateBasic

func (q QueryDeployerFeeSharesRequest) ValidateBasic() error

ValidateBasic runs stateless checks on the query requests

func (*QueryDeployerFeeSharesRequest) XXX_DiscardUnknown

func (m *QueryDeployerFeeSharesRequest) XXX_DiscardUnknown()

func (*QueryDeployerFeeSharesRequest) XXX_Marshal

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

func (*QueryDeployerFeeSharesRequest) XXX_Merge

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

func (*QueryDeployerFeeSharesRequest) XXX_Size

func (m *QueryDeployerFeeSharesRequest) XXX_Size() int

func (*QueryDeployerFeeSharesRequest) XXX_Unmarshal

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

type QueryDeployerFeeSharesResponse

type QueryDeployerFeeSharesResponse struct {
	// contract_addresses is the slice of registered contract addresses for a
	// deployer
	ContractAddresses []string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDeployerFeeSharesResponse is the response type for the Query/DeployerFeeShares RPC method.

func (*QueryDeployerFeeSharesResponse) Descriptor

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

func (*QueryDeployerFeeSharesResponse) GetContractAddresses

func (m *QueryDeployerFeeSharesResponse) GetContractAddresses() []string

func (*QueryDeployerFeeSharesResponse) GetPagination

func (*QueryDeployerFeeSharesResponse) Marshal

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

func (*QueryDeployerFeeSharesResponse) MarshalTo

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

func (*QueryDeployerFeeSharesResponse) MarshalToSizedBuffer

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

func (*QueryDeployerFeeSharesResponse) ProtoMessage

func (*QueryDeployerFeeSharesResponse) ProtoMessage()

func (*QueryDeployerFeeSharesResponse) Reset

func (m *QueryDeployerFeeSharesResponse) Reset()

func (*QueryDeployerFeeSharesResponse) Size

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

func (*QueryDeployerFeeSharesResponse) String

func (*QueryDeployerFeeSharesResponse) Unmarshal

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

func (*QueryDeployerFeeSharesResponse) XXX_DiscardUnknown

func (m *QueryDeployerFeeSharesResponse) XXX_DiscardUnknown()

func (*QueryDeployerFeeSharesResponse) XXX_Marshal

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

func (*QueryDeployerFeeSharesResponse) XXX_Merge

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

func (*QueryDeployerFeeSharesResponse) XXX_Size

func (m *QueryDeployerFeeSharesResponse) XXX_Size() int

func (*QueryDeployerFeeSharesResponse) XXX_Unmarshal

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

type QueryFeeShareRequest

type QueryFeeShareRequest struct {
	// contract_address of a registered contract in bech32 format
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

QueryFeeShareRequest is the request type for the Query/FeeShare RPC method.

func (*QueryFeeShareRequest) Descriptor

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

func (*QueryFeeShareRequest) GetContractAddress

func (m *QueryFeeShareRequest) GetContractAddress() string

func (*QueryFeeShareRequest) Marshal

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

func (*QueryFeeShareRequest) MarshalTo

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

func (*QueryFeeShareRequest) MarshalToSizedBuffer

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

func (*QueryFeeShareRequest) ProtoMessage

func (*QueryFeeShareRequest) ProtoMessage()

func (*QueryFeeShareRequest) Reset

func (m *QueryFeeShareRequest) Reset()

func (*QueryFeeShareRequest) Size

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

func (*QueryFeeShareRequest) String

func (m *QueryFeeShareRequest) String() string

func (*QueryFeeShareRequest) Unmarshal

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

func (QueryFeeShareRequest) ValidateBasic

func (q QueryFeeShareRequest) ValidateBasic() error

ValidateBasic runs stateless checks on the query requests

func (*QueryFeeShareRequest) XXX_DiscardUnknown

func (m *QueryFeeShareRequest) XXX_DiscardUnknown()

func (*QueryFeeShareRequest) XXX_Marshal

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

func (*QueryFeeShareRequest) XXX_Merge

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

func (*QueryFeeShareRequest) XXX_Size

func (m *QueryFeeShareRequest) XXX_Size() int

func (*QueryFeeShareRequest) XXX_Unmarshal

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

type QueryFeeShareResponse

type QueryFeeShareResponse struct {
	// FeeShare is a stored Reveneue for the queried contract
	Feeshare FeeShare `protobuf:"bytes,1,opt,name=feeshare,proto3" json:"feeshare"`
}

QueryFeeShareResponse is the response type for the Query/FeeShare RPC method.

func (*QueryFeeShareResponse) Descriptor

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

func (*QueryFeeShareResponse) GetFeeshare

func (m *QueryFeeShareResponse) GetFeeshare() FeeShare

func (*QueryFeeShareResponse) Marshal

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

func (*QueryFeeShareResponse) MarshalTo

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

func (*QueryFeeShareResponse) MarshalToSizedBuffer

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

func (*QueryFeeShareResponse) ProtoMessage

func (*QueryFeeShareResponse) ProtoMessage()

func (*QueryFeeShareResponse) Reset

func (m *QueryFeeShareResponse) Reset()

func (*QueryFeeShareResponse) Size

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

func (*QueryFeeShareResponse) String

func (m *QueryFeeShareResponse) String() string

func (*QueryFeeShareResponse) Unmarshal

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

func (*QueryFeeShareResponse) XXX_DiscardUnknown

func (m *QueryFeeShareResponse) XXX_DiscardUnknown()

func (*QueryFeeShareResponse) XXX_Marshal

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

func (*QueryFeeShareResponse) XXX_Merge

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

func (*QueryFeeShareResponse) XXX_Size

func (m *QueryFeeShareResponse) XXX_Size() int

func (*QueryFeeShareResponse) XXX_Unmarshal

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

type QueryFeeSharesRequest

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

QueryFeeSharesRequest is the request type for the Query/FeeShares RPC method.

func (*QueryFeeSharesRequest) Descriptor

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

func (*QueryFeeSharesRequest) GetPagination

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

func (*QueryFeeSharesRequest) Marshal

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

func (*QueryFeeSharesRequest) MarshalTo

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

func (*QueryFeeSharesRequest) MarshalToSizedBuffer

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

func (*QueryFeeSharesRequest) ProtoMessage

func (*QueryFeeSharesRequest) ProtoMessage()

func (*QueryFeeSharesRequest) Reset

func (m *QueryFeeSharesRequest) Reset()

func (*QueryFeeSharesRequest) Size

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

func (*QueryFeeSharesRequest) String

func (m *QueryFeeSharesRequest) String() string

func (*QueryFeeSharesRequest) Unmarshal

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

func (*QueryFeeSharesRequest) XXX_DiscardUnknown

func (m *QueryFeeSharesRequest) XXX_DiscardUnknown()

func (*QueryFeeSharesRequest) XXX_Marshal

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

func (*QueryFeeSharesRequest) XXX_Merge

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

func (*QueryFeeSharesRequest) XXX_Size

func (m *QueryFeeSharesRequest) XXX_Size() int

func (*QueryFeeSharesRequest) XXX_Unmarshal

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

type QueryFeeSharesResponse

type QueryFeeSharesResponse struct {
	// FeeShare is a slice of all stored Reveneue
	Feeshare []FeeShare `protobuf:"bytes,1,rep,name=feeshare,proto3" json:"feeshare"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryFeeSharesResponse is the response type for the Query/FeeShares RPC method.

func (*QueryFeeSharesResponse) Descriptor

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

func (*QueryFeeSharesResponse) GetFeeshare

func (m *QueryFeeSharesResponse) GetFeeshare() []FeeShare

func (*QueryFeeSharesResponse) GetPagination

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

func (*QueryFeeSharesResponse) Marshal

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

func (*QueryFeeSharesResponse) MarshalTo

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

func (*QueryFeeSharesResponse) MarshalToSizedBuffer

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

func (*QueryFeeSharesResponse) ProtoMessage

func (*QueryFeeSharesResponse) ProtoMessage()

func (*QueryFeeSharesResponse) Reset

func (m *QueryFeeSharesResponse) Reset()

func (*QueryFeeSharesResponse) Size

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

func (*QueryFeeSharesResponse) String

func (m *QueryFeeSharesResponse) String() string

func (*QueryFeeSharesResponse) Unmarshal

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

func (*QueryFeeSharesResponse) XXX_DiscardUnknown

func (m *QueryFeeSharesResponse) XXX_DiscardUnknown()

func (*QueryFeeSharesResponse) XXX_Marshal

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

func (*QueryFeeSharesResponse) XXX_Merge

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

func (*QueryFeeSharesResponse) XXX_Size

func (m *QueryFeeSharesResponse) XXX_Size() int

func (*QueryFeeSharesResponse) XXX_Unmarshal

func (m *QueryFeeSharesResponse) 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 FeeShare 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 {
	// FeeShares retrieves all registered FeeShares
	FeeShares(context.Context, *QueryFeeSharesRequest) (*QueryFeeSharesResponse, error)
	// FeeShare retrieves a registered FeeShare for a given contract address
	FeeShare(context.Context, *QueryFeeShareRequest) (*QueryFeeShareResponse, error)
	// Params retrieves the FeeShare module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// DeployerFeeShares retrieves all FeeShares that a given deployer has
	// registered
	DeployerFeeShares(context.Context, *QueryDeployerFeeSharesRequest) (*QueryDeployerFeeSharesResponse, error)
	// WithdrawerFeeShares retrieves all FeeShares with a given withdrawer
	// address
	WithdrawerFeeShares(context.Context, *QueryWithdrawerFeeSharesRequest) (*QueryWithdrawerFeeSharesResponse, error)
}

QueryServer is the server API for Query service.

type QueryWithdrawerFeeSharesRequest

type QueryWithdrawerFeeSharesRequest struct {
	// withdrawer_address in bech32 format
	WithdrawerAddress string `protobuf:"bytes,1,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryWithdrawerFeeSharesRequest is the request type for the Query/WithdrawerFeeShares RPC method.

func (*QueryWithdrawerFeeSharesRequest) Descriptor

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

func (*QueryWithdrawerFeeSharesRequest) GetPagination

func (*QueryWithdrawerFeeSharesRequest) GetWithdrawerAddress

func (m *QueryWithdrawerFeeSharesRequest) GetWithdrawerAddress() string

func (*QueryWithdrawerFeeSharesRequest) Marshal

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

func (*QueryWithdrawerFeeSharesRequest) MarshalTo

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

func (*QueryWithdrawerFeeSharesRequest) MarshalToSizedBuffer

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

func (*QueryWithdrawerFeeSharesRequest) ProtoMessage

func (*QueryWithdrawerFeeSharesRequest) ProtoMessage()

func (*QueryWithdrawerFeeSharesRequest) Reset

func (*QueryWithdrawerFeeSharesRequest) Size

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

func (*QueryWithdrawerFeeSharesRequest) String

func (*QueryWithdrawerFeeSharesRequest) Unmarshal

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

func (QueryWithdrawerFeeSharesRequest) ValidateBasic

func (q QueryWithdrawerFeeSharesRequest) ValidateBasic() error

ValidateBasic runs stateless checks on the query requests

func (*QueryWithdrawerFeeSharesRequest) XXX_DiscardUnknown

func (m *QueryWithdrawerFeeSharesRequest) XXX_DiscardUnknown()

func (*QueryWithdrawerFeeSharesRequest) XXX_Marshal

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

func (*QueryWithdrawerFeeSharesRequest) XXX_Merge

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

func (*QueryWithdrawerFeeSharesRequest) XXX_Size

func (m *QueryWithdrawerFeeSharesRequest) XXX_Size() int

func (*QueryWithdrawerFeeSharesRequest) XXX_Unmarshal

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

type QueryWithdrawerFeeSharesResponse

type QueryWithdrawerFeeSharesResponse struct {
	// contract_addresses is the slice of registered contract addresses for a
	// withdrawer
	ContractAddresses []string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryWithdrawerFeeSharesResponse is the response type for the Query/WithdrawerFeeShares RPC method.

func (*QueryWithdrawerFeeSharesResponse) Descriptor

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

func (*QueryWithdrawerFeeSharesResponse) GetContractAddresses

func (m *QueryWithdrawerFeeSharesResponse) GetContractAddresses() []string

func (*QueryWithdrawerFeeSharesResponse) GetPagination

func (*QueryWithdrawerFeeSharesResponse) Marshal

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

func (*QueryWithdrawerFeeSharesResponse) MarshalTo

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

func (*QueryWithdrawerFeeSharesResponse) MarshalToSizedBuffer

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

func (*QueryWithdrawerFeeSharesResponse) ProtoMessage

func (*QueryWithdrawerFeeSharesResponse) ProtoMessage()

func (*QueryWithdrawerFeeSharesResponse) Reset

func (*QueryWithdrawerFeeSharesResponse) Size

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

func (*QueryWithdrawerFeeSharesResponse) String

func (*QueryWithdrawerFeeSharesResponse) Unmarshal

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

func (*QueryWithdrawerFeeSharesResponse) XXX_DiscardUnknown

func (m *QueryWithdrawerFeeSharesResponse) XXX_DiscardUnknown()

func (*QueryWithdrawerFeeSharesResponse) XXX_Marshal

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

func (*QueryWithdrawerFeeSharesResponse) XXX_Merge

func (*QueryWithdrawerFeeSharesResponse) XXX_Size

func (m *QueryWithdrawerFeeSharesResponse) XXX_Size() int

func (*QueryWithdrawerFeeSharesResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CancelFeeShare

func (*UnimplementedMsgServer) RegisterFeeShare

func (*UnimplementedMsgServer) UpdateFeeShare

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DeployerFeeShares

func (*UnimplementedQueryServer) FeeShare

func (*UnimplementedQueryServer) FeeShares

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) WithdrawerFeeShares

type WasmKeeper

type WasmKeeper interface {
	GetContractInfo(ctx sdk.Context, contractAddr sdk.AccAddress) (wasmtypes.ContractInfo, error)
}

WasmKeeper defines the expected interface needed to retrieve cosmwasm contracts.

Jump to

Keyboard shortcuts

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