types

package
v2.0.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

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

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

constants

View Source
const (
	KeyPrefixFeeShare collections.Namespace = iota + 1
	KeyPrefixDeployer
	KeyPrefixWithdrawer
	KeyPrefixParams
)

KVStore key and mutli-index prefixes prefix bytes for the fees persistent store

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 (
	ErrInvalidLengthDevgas        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDevgas          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDevgas = fmt.Errorf("proto: unexpected end of group")
)
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")
)

errors

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = 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 (
	DefaultEnableFeeShare  = true
	DefaultDeveloperShares = math.LegacyNewDecWithPrec(50, 2) // 50%
	// DefaultAllowedDenoms   = []string(nil)             // all allowed
	DefaultAllowedDenoms = []string{} // 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 GrpcQueryServiceDesc

func GrpcQueryServiceDesc() grpc.ServiceDesc

GrpcQueryServiceDesc represents the query server's RPC service specification. This gives access to the service name and method names needed for stargate queries.

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 EventCancelDevGas

type EventCancelDevGas struct {
	// deployer is the addess of the account that registered the smart contract to
	// receive dev gas royalties.
	Deployer string `protobuf:"bytes,1,opt,name=deployer,proto3" json:"deployer,omitempty"`
	// Address of the smart contract. This identifies the specific contract
	// that will receive fee sharing payouts.
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
}

ABCI event emitted when a deployer cancels fee sharing for a contract, specifying the deployer and contract addresses.

func (*EventCancelDevGas) Descriptor

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

func (*EventCancelDevGas) GetContract

func (m *EventCancelDevGas) GetContract() string

func (*EventCancelDevGas) GetDeployer

func (m *EventCancelDevGas) GetDeployer() string

func (*EventCancelDevGas) Marshal

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

func (*EventCancelDevGas) MarshalTo

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

func (*EventCancelDevGas) MarshalToSizedBuffer

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

func (*EventCancelDevGas) ProtoMessage

func (*EventCancelDevGas) ProtoMessage()

func (*EventCancelDevGas) Reset

func (m *EventCancelDevGas) Reset()

func (*EventCancelDevGas) Size

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

func (*EventCancelDevGas) String

func (m *EventCancelDevGas) String() string

func (*EventCancelDevGas) Unmarshal

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

func (*EventCancelDevGas) XXX_DiscardUnknown

func (m *EventCancelDevGas) XXX_DiscardUnknown()

func (*EventCancelDevGas) XXX_Marshal

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

func (*EventCancelDevGas) XXX_Merge

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

func (*EventCancelDevGas) XXX_Size

func (m *EventCancelDevGas) XXX_Size() int

func (*EventCancelDevGas) XXX_Unmarshal

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

type EventPayoutDevGas

type EventPayoutDevGas struct {
	Payouts string `protobuf:"bytes,1,opt,name=payouts,proto3" json:"payouts,omitempty"`
}

ABCI event emitted when fee sharing payouts are made, containing details on the payouts in JSON format.

func (*EventPayoutDevGas) Descriptor

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

func (*EventPayoutDevGas) GetPayouts

func (m *EventPayoutDevGas) GetPayouts() string

func (*EventPayoutDevGas) Marshal

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

func (*EventPayoutDevGas) MarshalTo

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

func (*EventPayoutDevGas) MarshalToSizedBuffer

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

func (*EventPayoutDevGas) ProtoMessage

func (*EventPayoutDevGas) ProtoMessage()

func (*EventPayoutDevGas) Reset

func (m *EventPayoutDevGas) Reset()

func (*EventPayoutDevGas) Size

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

func (*EventPayoutDevGas) String

func (m *EventPayoutDevGas) String() string

func (*EventPayoutDevGas) Unmarshal

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

func (*EventPayoutDevGas) XXX_DiscardUnknown

func (m *EventPayoutDevGas) XXX_DiscardUnknown()

func (*EventPayoutDevGas) XXX_Marshal

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

func (*EventPayoutDevGas) XXX_Merge

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

func (*EventPayoutDevGas) XXX_Size

func (m *EventPayoutDevGas) XXX_Size() int

func (*EventPayoutDevGas) XXX_Unmarshal

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

type EventRegisterDevGas

type EventRegisterDevGas struct {
	// deployer is the addess of the account that registered the smart contract to
	// receive dev gas royalties.
	Deployer string `protobuf:"bytes,1,opt,name=deployer,proto3" json:"deployer,omitempty"`
	// Address of the smart contract. This identifies the specific contract
	// that will receive fee sharing payouts.
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	// The address that will receive the fee sharing payouts for the registered
	// contract. This could be the deployer address or a separate withdrawer
	// address specified.
	Withdrawer string `protobuf:"bytes,3,opt,name=withdrawer,proto3" json:"withdrawer,omitempty"`
}

ABCI event emitted when a deployer registers a contract to receive fee sharing payouts, specifying the deployer, contract, and withdrawer addresses.

func (*EventRegisterDevGas) Descriptor

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

func (*EventRegisterDevGas) GetContract

func (m *EventRegisterDevGas) GetContract() string

func (*EventRegisterDevGas) GetDeployer

func (m *EventRegisterDevGas) GetDeployer() string

func (*EventRegisterDevGas) GetWithdrawer

func (m *EventRegisterDevGas) GetWithdrawer() string

func (*EventRegisterDevGas) Marshal

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

func (*EventRegisterDevGas) MarshalTo

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

func (*EventRegisterDevGas) MarshalToSizedBuffer

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

func (*EventRegisterDevGas) ProtoMessage

func (*EventRegisterDevGas) ProtoMessage()

func (*EventRegisterDevGas) Reset

func (m *EventRegisterDevGas) Reset()

func (*EventRegisterDevGas) Size

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

func (*EventRegisterDevGas) String

func (m *EventRegisterDevGas) String() string

func (*EventRegisterDevGas) Unmarshal

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

func (*EventRegisterDevGas) XXX_DiscardUnknown

func (m *EventRegisterDevGas) XXX_DiscardUnknown()

func (*EventRegisterDevGas) XXX_Marshal

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

func (*EventRegisterDevGas) XXX_Merge

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

func (*EventRegisterDevGas) XXX_Size

func (m *EventRegisterDevGas) XXX_Size() int

func (*EventRegisterDevGas) XXX_Unmarshal

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

type EventUpdateDevGas

type EventUpdateDevGas struct {
	// deployer is the addess of the account that registered the smart contract to
	// receive dev gas royalties.
	Deployer string `protobuf:"bytes,1,opt,name=deployer,proto3" json:"deployer,omitempty"`
	// Address of the smart contract. This identifies the specific contract
	// that will receive fee sharing payouts.
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	// The address that will receive the fee sharing payouts for the registered
	// contract. This could be the deployer address or a separate withdrawer
	// address specified.
	Withdrawer string `protobuf:"bytes,3,opt,name=withdrawer,proto3" json:"withdrawer,omitempty"`
}

ABCI event emitted when a deployer updates the fee sharing registration for a contract, specifying updated deployer, contract, and/or withdrawer addresses.

func (*EventUpdateDevGas) Descriptor

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

func (*EventUpdateDevGas) GetContract

func (m *EventUpdateDevGas) GetContract() string

func (*EventUpdateDevGas) GetDeployer

func (m *EventUpdateDevGas) GetDeployer() string

func (*EventUpdateDevGas) GetWithdrawer

func (m *EventUpdateDevGas) GetWithdrawer() string

func (*EventUpdateDevGas) Marshal

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

func (*EventUpdateDevGas) MarshalTo

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

func (*EventUpdateDevGas) MarshalToSizedBuffer

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

func (*EventUpdateDevGas) ProtoMessage

func (*EventUpdateDevGas) ProtoMessage()

func (*EventUpdateDevGas) Reset

func (m *EventUpdateDevGas) Reset()

func (*EventUpdateDevGas) Size

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

func (*EventUpdateDevGas) String

func (m *EventUpdateDevGas) String() string

func (*EventUpdateDevGas) Unmarshal

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

func (*EventUpdateDevGas) XXX_DiscardUnknown

func (m *EventUpdateDevGas) XXX_DiscardUnknown()

func (*EventUpdateDevGas) XXX_Marshal

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

func (*EventUpdateDevGas) XXX_Merge

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

func (*EventUpdateDevGas) XXX_Size

func (m *EventUpdateDevGas) XXX_Size() int

func (*EventUpdateDevGas) XXX_Unmarshal

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

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 ModuleParams `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 ModuleParams, 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() ModuleParams

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 ModuleParams

type ModuleParams 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"`
}

ModuleParams defines the params for the devgas module

func DefaultParams

func DefaultParams() ModuleParams

func NewParams

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

NewParams creates a new Params object

func (*ModuleParams) Descriptor

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

func (*ModuleParams) GetAllowedDenoms

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

func (*ModuleParams) GetEnableFeeShare

func (m *ModuleParams) GetEnableFeeShare() bool

func (*ModuleParams) Marshal

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

func (*ModuleParams) MarshalTo

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

func (*ModuleParams) MarshalToSizedBuffer

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

func (*ModuleParams) ParamSetPairs

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

ParamSetPairs returns the parameter set pairs.

func (*ModuleParams) ProtoMessage

func (*ModuleParams) ProtoMessage()

func (*ModuleParams) Reset

func (m *ModuleParams) Reset()

func (ModuleParams) Sanitize

func (p ModuleParams) Sanitize() ModuleParams

func (*ModuleParams) Size

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

func (*ModuleParams) String

func (m *ModuleParams) String() string

func (*ModuleParams) Unmarshal

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

func (ModuleParams) Validate

func (p ModuleParams) Validate() error

func (*ModuleParams) XXX_DiscardUnknown

func (m *ModuleParams) XXX_DiscardUnknown()

func (*ModuleParams) XXX_Marshal

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

func (*ModuleParams) XXX_Merge

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

func (*ModuleParams) XXX_Size

func (m *ModuleParams) XXX_Size() int

func (*ModuleParams) XXX_Unmarshal

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

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 QueryClient

type QueryClient interface {
	// FeeShares retrieves all FeeShares that a deployer has
	// registered
	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 module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// FeeSharesByWithdrawer retrieves all FeeShares with a given withdrawer
	// address
	FeeSharesByWithdrawer(ctx context.Context, in *QueryFeeSharesByWithdrawerRequest, opts ...grpc.CallOption) (*QueryFeeSharesByWithdrawerResponse, 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 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 QueryFeeSharesByWithdrawerRequest

type QueryFeeSharesByWithdrawerRequest struct {
	// withdrawer_address in bech32 format
	WithdrawerAddress string `protobuf:"bytes,1,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty"`
}

QueryFeeSharesByWithdrawerRequest is the request type for the Query/FeeSharesByWithdrawer RPC method.

func (*QueryFeeSharesByWithdrawerRequest) Descriptor

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

func (*QueryFeeSharesByWithdrawerRequest) GetWithdrawerAddress

func (m *QueryFeeSharesByWithdrawerRequest) GetWithdrawerAddress() string

func (*QueryFeeSharesByWithdrawerRequest) Marshal

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

func (*QueryFeeSharesByWithdrawerRequest) MarshalTo

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

func (*QueryFeeSharesByWithdrawerRequest) MarshalToSizedBuffer

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

func (*QueryFeeSharesByWithdrawerRequest) ProtoMessage

func (*QueryFeeSharesByWithdrawerRequest) ProtoMessage()

func (*QueryFeeSharesByWithdrawerRequest) Reset

func (*QueryFeeSharesByWithdrawerRequest) Size

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

func (*QueryFeeSharesByWithdrawerRequest) String

func (*QueryFeeSharesByWithdrawerRequest) Unmarshal

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

func (QueryFeeSharesByWithdrawerRequest) ValidateBasic

func (q QueryFeeSharesByWithdrawerRequest) ValidateBasic() error

ValidateBasic runs stateless checks on the query requests

func (*QueryFeeSharesByWithdrawerRequest) XXX_DiscardUnknown

func (m *QueryFeeSharesByWithdrawerRequest) XXX_DiscardUnknown()

func (*QueryFeeSharesByWithdrawerRequest) XXX_Marshal

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

func (*QueryFeeSharesByWithdrawerRequest) XXX_Merge

func (*QueryFeeSharesByWithdrawerRequest) XXX_Size

func (m *QueryFeeSharesByWithdrawerRequest) XXX_Size() int

func (*QueryFeeSharesByWithdrawerRequest) XXX_Unmarshal

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

type QueryFeeSharesByWithdrawerResponse

type QueryFeeSharesByWithdrawerResponse struct {
	Feeshare []FeeShare `protobuf:"bytes,1,rep,name=feeshare,proto3" json:"feeshare"`
}

QueryFeeSharesByWithdrawerResponse is the response type for the Query/FeeSharesByWithdrawer RPC method.

func (*QueryFeeSharesByWithdrawerResponse) Descriptor

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

func (*QueryFeeSharesByWithdrawerResponse) GetFeeshare

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

func (*QueryFeeSharesByWithdrawerResponse) Marshal

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

func (*QueryFeeSharesByWithdrawerResponse) MarshalTo

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

func (*QueryFeeSharesByWithdrawerResponse) MarshalToSizedBuffer

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

func (*QueryFeeSharesByWithdrawerResponse) ProtoMessage

func (*QueryFeeSharesByWithdrawerResponse) ProtoMessage()

func (*QueryFeeSharesByWithdrawerResponse) Reset

func (*QueryFeeSharesByWithdrawerResponse) Size

func (*QueryFeeSharesByWithdrawerResponse) String

func (*QueryFeeSharesByWithdrawerResponse) Unmarshal

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

func (*QueryFeeSharesByWithdrawerResponse) XXX_DiscardUnknown

func (m *QueryFeeSharesByWithdrawerResponse) XXX_DiscardUnknown()

func (*QueryFeeSharesByWithdrawerResponse) XXX_Marshal

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

func (*QueryFeeSharesByWithdrawerResponse) XXX_Merge

func (*QueryFeeSharesByWithdrawerResponse) XXX_Size

func (*QueryFeeSharesByWithdrawerResponse) XXX_Unmarshal

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

type QueryFeeSharesRequest

type QueryFeeSharesRequest struct {
	// TODO feat(devgas): re-implement the paginated version
	// TODO feat(colletions): add automatic pagination generation
	Deployer string `protobuf:"bytes,1,opt,name=deployer,proto3" json:"deployer,omitempty"`
}

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

func (*QueryFeeSharesRequest) Descriptor

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

func (*QueryFeeSharesRequest) GetDeployer

func (m *QueryFeeSharesRequest) GetDeployer() string

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

func (q QueryFeeSharesRequest) ValidateBasic() error

ValidateBasic runs stateless checks on the query requests

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 the slice of all stored Reveneue for the deployer
	Feeshare []FeeShare `protobuf:"bytes,1,rep,name=feeshare,proto3" json:"feeshare"`
}

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) 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 ModuleParams `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() ModuleParams

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 FeeShares that a deployer has
	// registered
	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 module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// FeeSharesByWithdrawer retrieves all FeeShares with a given withdrawer
	// address
	FeeSharesByWithdrawer(context.Context, *QueryFeeSharesByWithdrawerRequest) (*QueryFeeSharesByWithdrawerResponse, 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) 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) FeeShare

func (*UnimplementedQueryServer) FeeShares

func (*UnimplementedQueryServer) Params

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