types

package
v0.0.0-...-8b7ac03 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: LGPL-3.0 Imports: 32 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 (
	EventTypeRegisterRevenue      = "register_revenue"
	EventTypeCancelRevenue        = "cancel_revenue"
	EventTypeUpdateRevenue        = "update_revenue"
	EventTypeDistributeDevRevenue = "distribute_dev_revenue"

	AttributeKeyContract          = "contract"
	AttributeKeyWithdrawerAddress = "withdrawer_address"
)

revenue events

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

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

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

constants

View Source
const (
	TypeMsgRegisterRevenue = "register_revenue"
	TypeMsgCancelRevenue   = "cancel_revenue"
	TypeMsgUpdateRevenue   = "update_revenue"
)

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 (
	ErrInternalRevenue              = errorsmod.Register(ModuleName, 2, "internal revenue error")
	ErrRevenueDisabled              = errorsmod.Register(ModuleName, 3, "revenue module is disabled by governance")
	ErrRevenueAlreadyRegistered     = errorsmod.Register(ModuleName, 4, "revenue already exists for given contract")
	ErrRevenueNoContractDeployed    = errorsmod.Register(ModuleName, 5, "no contract deployed")
	ErrRevenueContractNotRegistered = errorsmod.Register(ModuleName, 6, "no revenue registered for contract")
	ErrRevenueDeployerIsNotEOA      = errorsmod.Register(ModuleName, 7, "no revenue registered for contract")
)

errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = 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 (
	KeyPrefixRevenue    = []byte{prefixRevenue}
	KeyPrefixDeployer   = []byte{prefixDeployer}
	KeyPrefixWithdrawer = []byte{prefixWithdrawer}
)

KVStore key prefixes

View Source
var (
	DefaultEnableRevenue   = true
	DefaultDeveloperShares = sdk.NewDecWithPrec(50, 2) // 50%
	// DefaultAddrDerivationCostCreate Cost for executing `crypto.CreateAddress` must be at least 36 gas for the
	// contained keccak256(word) operation
	DefaultAddrDerivationCostCreate = uint64(50)
)

Parameter store key

View Source
var (
	ParamsKey                             = []byte("Params")
	ParamStoreKeyEnableRevenue            = []byte("EnableRevenue")
	ParamStoreKeyDeveloperShares          = []byte("DeveloperShares")
	ParamStoreKeyAddrDerivationCostCreate = []byte("AddrDerivationCostCreate")
)
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 (
	ErrInvalidLengthRevenue        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRevenue          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRevenue = 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 revenue contract for a deployer

func GetKeyPrefixWithdrawer

func GetKeyPrefixWithdrawer(withdrawerAddress sdk.AccAddress) []byte

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

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register implementations

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/revenue 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 (such as grpc.SendHeader, etc) 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

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

AccountKeeper defines the expected interface needed to retrieve account info.

type BankKeeper

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

BankKeeper defines the expected interface needed to retrieve account balances.

type EVMKeeper

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

EVMKeeper defines the expected EVM keeper interface used on erc20

type EventCancelRevenue

type EventCancelRevenue struct {
	// deployer_address is the bech32 address of message sender. It must be the same as the origin EOA
	// sending the transaction which deploys the contract
	DeployerAddress string `protobuf:"bytes,1,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// contract_address in hex format
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

EventCancelRevenue is an event emitted when a contract is unregistered from receiving tx fees.

func (*EventCancelRevenue) Descriptor

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

func (*EventCancelRevenue) GetContractAddress

func (m *EventCancelRevenue) GetContractAddress() string

func (*EventCancelRevenue) GetDeployerAddress

func (m *EventCancelRevenue) GetDeployerAddress() string

func (*EventCancelRevenue) Marshal

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

func (*EventCancelRevenue) MarshalTo

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

func (*EventCancelRevenue) MarshalToSizedBuffer

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

func (*EventCancelRevenue) ProtoMessage

func (*EventCancelRevenue) ProtoMessage()

func (*EventCancelRevenue) Reset

func (m *EventCancelRevenue) Reset()

func (*EventCancelRevenue) Size

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

func (*EventCancelRevenue) String

func (m *EventCancelRevenue) String() string

func (*EventCancelRevenue) Unmarshal

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

func (*EventCancelRevenue) XXX_DiscardUnknown

func (m *EventCancelRevenue) XXX_DiscardUnknown()

func (*EventCancelRevenue) XXX_Marshal

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

func (*EventCancelRevenue) XXX_Merge

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

func (*EventCancelRevenue) XXX_Size

func (m *EventCancelRevenue) XXX_Size() int

func (*EventCancelRevenue) XXX_Unmarshal

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

type EventDistributeRevenue

type EventDistributeRevenue struct {
	// sender is the address of message sender.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// contract address in hex format
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,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"`
	// amount of revenue distributed
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
}

EventDistributeRevenue is an event emitted when a contract receives a percentage of tx fees.

func (*EventDistributeRevenue) Descriptor

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

func (*EventDistributeRevenue) GetAmount

func (m *EventDistributeRevenue) GetAmount() string

func (*EventDistributeRevenue) GetContract

func (m *EventDistributeRevenue) GetContract() string

func (*EventDistributeRevenue) GetSender

func (m *EventDistributeRevenue) GetSender() string

func (*EventDistributeRevenue) GetWithdrawerAddress

func (m *EventDistributeRevenue) GetWithdrawerAddress() string

func (*EventDistributeRevenue) Marshal

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

func (*EventDistributeRevenue) MarshalTo

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

func (*EventDistributeRevenue) MarshalToSizedBuffer

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

func (*EventDistributeRevenue) ProtoMessage

func (*EventDistributeRevenue) ProtoMessage()

func (*EventDistributeRevenue) Reset

func (m *EventDistributeRevenue) Reset()

func (*EventDistributeRevenue) Size

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

func (*EventDistributeRevenue) String

func (m *EventDistributeRevenue) String() string

func (*EventDistributeRevenue) Unmarshal

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

func (*EventDistributeRevenue) XXX_DiscardUnknown

func (m *EventDistributeRevenue) XXX_DiscardUnknown()

func (*EventDistributeRevenue) XXX_Marshal

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

func (*EventDistributeRevenue) XXX_Merge

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

func (*EventDistributeRevenue) XXX_Size

func (m *EventDistributeRevenue) XXX_Size() int

func (*EventDistributeRevenue) XXX_Unmarshal

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

type EventRegisterRevenue

type EventRegisterRevenue struct {
	// deployer_address is the bech32 address of message sender. It must be the same as the origin EOA
	// sending the transaction which deploys the contract
	DeployerAddress string `protobuf:"bytes,1,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// contract_address in hex format
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// effective_withdrawer is the withdrawer address that is stored after the
	// revenue registration is completed. It defaults to the deployer address if
	// the withdrawer address in the msg is omitted. When omitted, the withdraw map
	// doesn't need to be set.
	EffectiveWithdrawer string `protobuf:"bytes,3,opt,name=effective_withdrawer,json=effectiveWithdrawer,proto3" json:"effective_withdrawer,omitempty"`
}

EventRegisterRevenue is an event emitted when a contract is registered to receive a percentage of tx fees.

func (*EventRegisterRevenue) Descriptor

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

func (*EventRegisterRevenue) GetContractAddress

func (m *EventRegisterRevenue) GetContractAddress() string

func (*EventRegisterRevenue) GetDeployerAddress

func (m *EventRegisterRevenue) GetDeployerAddress() string

func (*EventRegisterRevenue) GetEffectiveWithdrawer

func (m *EventRegisterRevenue) GetEffectiveWithdrawer() string

func (*EventRegisterRevenue) Marshal

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

func (*EventRegisterRevenue) MarshalTo

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

func (*EventRegisterRevenue) MarshalToSizedBuffer

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

func (*EventRegisterRevenue) ProtoMessage

func (*EventRegisterRevenue) ProtoMessage()

func (*EventRegisterRevenue) Reset

func (m *EventRegisterRevenue) Reset()

func (*EventRegisterRevenue) Size

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

func (*EventRegisterRevenue) String

func (m *EventRegisterRevenue) String() string

func (*EventRegisterRevenue) Unmarshal

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

func (*EventRegisterRevenue) XXX_DiscardUnknown

func (m *EventRegisterRevenue) XXX_DiscardUnknown()

func (*EventRegisterRevenue) XXX_Marshal

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

func (*EventRegisterRevenue) XXX_Merge

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

func (*EventRegisterRevenue) XXX_Size

func (m *EventRegisterRevenue) XXX_Size() int

func (*EventRegisterRevenue) XXX_Unmarshal

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

type EventUpdateRevenue

type EventUpdateRevenue struct {
	// contract_address in hex 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 as the origin EOA
	// sending the transaction which deploys the contract
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// 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"`
}

EventUpdateRevenue is an event emitted when a withdrawer address is updated for a contract.

func (*EventUpdateRevenue) Descriptor

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

func (*EventUpdateRevenue) GetContractAddress

func (m *EventUpdateRevenue) GetContractAddress() string

func (*EventUpdateRevenue) GetDeployerAddress

func (m *EventUpdateRevenue) GetDeployerAddress() string

func (*EventUpdateRevenue) GetWithdrawerAddress

func (m *EventUpdateRevenue) GetWithdrawerAddress() string

func (*EventUpdateRevenue) Marshal

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

func (*EventUpdateRevenue) MarshalTo

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

func (*EventUpdateRevenue) MarshalToSizedBuffer

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

func (*EventUpdateRevenue) ProtoMessage

func (*EventUpdateRevenue) ProtoMessage()

func (*EventUpdateRevenue) Reset

func (m *EventUpdateRevenue) Reset()

func (*EventUpdateRevenue) Size

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

func (*EventUpdateRevenue) String

func (m *EventUpdateRevenue) String() string

func (*EventUpdateRevenue) Unmarshal

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

func (*EventUpdateRevenue) XXX_DiscardUnknown

func (m *EventUpdateRevenue) XXX_DiscardUnknown()

func (*EventUpdateRevenue) XXX_Marshal

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

func (*EventUpdateRevenue) XXX_Merge

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

func (*EventUpdateRevenue) XXX_Size

func (m *EventUpdateRevenue) XXX_Size() int

func (*EventUpdateRevenue) XXX_Unmarshal

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

type GenesisState

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

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, revenues []Revenue) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRevenues

func (m *GenesisState) GetRevenues() []Revenue

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 LegacyParams

type LegacyParams = paramtypes.ParamSet

type MsgCancelRevenue

type MsgCancelRevenue struct {
	// contract_address in hex 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 as the origin EOA
	// sending the transaction which deploys the contract
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
}

MsgCancelRevenue defines a message that cancels a registered Revenue

func NewMsgCancelRevenue

func NewMsgCancelRevenue(
	contract common.Address,
	deployer sdk.AccAddress,
) *MsgCancelRevenue

NewMsgCancelRevenue creates new instance of MsgCancelRevenue.

func (*MsgCancelRevenue) Descriptor

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

func (*MsgCancelRevenue) GetContractAddress

func (m *MsgCancelRevenue) GetContractAddress() string

func (*MsgCancelRevenue) GetDeployerAddress

func (m *MsgCancelRevenue) GetDeployerAddress() string

func (*MsgCancelRevenue) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgCancelRevenue) GetSigners

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

GetSigners defines whose signature is required

func (*MsgCancelRevenue) Marshal

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

func (*MsgCancelRevenue) MarshalTo

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

func (*MsgCancelRevenue) MarshalToSizedBuffer

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

func (*MsgCancelRevenue) ProtoMessage

func (*MsgCancelRevenue) ProtoMessage()

func (*MsgCancelRevenue) Reset

func (m *MsgCancelRevenue) Reset()

func (MsgCancelRevenue) Route

func (msg MsgCancelRevenue) Route() string

Route returns the message route for a MsgCancelRevenue.

func (*MsgCancelRevenue) Size

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

func (*MsgCancelRevenue) String

func (m *MsgCancelRevenue) String() string

func (MsgCancelRevenue) Type

func (msg MsgCancelRevenue) Type() string

Type returns the message type for a MsgCancelRevenue.

func (*MsgCancelRevenue) Unmarshal

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

func (MsgCancelRevenue) ValidateBasic

func (msg MsgCancelRevenue) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgCancelRevenue) XXX_DiscardUnknown

func (m *MsgCancelRevenue) XXX_DiscardUnknown()

func (*MsgCancelRevenue) XXX_Marshal

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

func (*MsgCancelRevenue) XXX_Merge

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

func (*MsgCancelRevenue) XXX_Size

func (m *MsgCancelRevenue) XXX_Size() int

func (*MsgCancelRevenue) XXX_Unmarshal

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

type MsgCancelRevenueResponse

type MsgCancelRevenueResponse struct {
}

MsgCancelRevenueResponse defines the MsgCancelRevenue response type

func (*MsgCancelRevenueResponse) Descriptor

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

func (*MsgCancelRevenueResponse) Marshal

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

func (*MsgCancelRevenueResponse) MarshalTo

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

func (*MsgCancelRevenueResponse) MarshalToSizedBuffer

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

func (*MsgCancelRevenueResponse) ProtoMessage

func (*MsgCancelRevenueResponse) ProtoMessage()

func (*MsgCancelRevenueResponse) Reset

func (m *MsgCancelRevenueResponse) Reset()

func (*MsgCancelRevenueResponse) Size

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

func (*MsgCancelRevenueResponse) String

func (m *MsgCancelRevenueResponse) String() string

func (*MsgCancelRevenueResponse) Unmarshal

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

func (*MsgCancelRevenueResponse) XXX_DiscardUnknown

func (m *MsgCancelRevenueResponse) XXX_DiscardUnknown()

func (*MsgCancelRevenueResponse) XXX_Marshal

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

func (*MsgCancelRevenueResponse) XXX_Merge

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

func (*MsgCancelRevenueResponse) XXX_Size

func (m *MsgCancelRevenueResponse) XXX_Size() int

func (*MsgCancelRevenueResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// RegisterRevenue registers a new contract for receiving transaction fees
	RegisterRevenue(ctx context.Context, in *MsgRegisterRevenue, opts ...grpc.CallOption) (*MsgRegisterRevenueResponse, error)
	// UpdateRevenue updates the withdrawer address of a revenue
	UpdateRevenue(ctx context.Context, in *MsgUpdateRevenue, opts ...grpc.CallOption) (*MsgUpdateRevenueResponse, error)
	// CancelRevenue cancels a contract's fee registration and further receival
	// of transaction fees
	CancelRevenue(ctx context.Context, in *MsgCancelRevenue, opts ...grpc.CallOption) (*MsgCancelRevenueResponse, error)
	// UpdateParams defined a governance operation for updating the x/revenue module parameters.
	// The authority is hard-coded to the Cosmos SDK x/gov module account
	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 MsgRegisterRevenue

type MsgRegisterRevenue struct {
	// contract_address in hex 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 as the origin EOA
	// sending the transaction which deploys the contract
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// 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"`
	// nonces is an array of nonces from the address path, where the last nonce is the nonce
	// that determines the contract's address - it can be an EOA nonce or a
	// factory contract nonce
	Nonces []uint64 `protobuf:"varint,4,rep,packed,name=nonces,proto3" json:"nonces,omitempty"`
}

MsgRegisterRevenue defines a message that registers a Revenue

func NewMsgRegisterRevenue

func NewMsgRegisterRevenue(
	contract common.Address,
	deployer,
	withdrawer sdk.AccAddress,
	nonces []uint64,
) *MsgRegisterRevenue

NewMsgRegisterRevenue creates new instance of MsgRegisterRevenue

func (*MsgRegisterRevenue) Descriptor

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

func (*MsgRegisterRevenue) GetContractAddress

func (m *MsgRegisterRevenue) GetContractAddress() string

func (*MsgRegisterRevenue) GetDeployerAddress

func (m *MsgRegisterRevenue) GetDeployerAddress() string

func (*MsgRegisterRevenue) GetNonces

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

func (*MsgRegisterRevenue) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgRegisterRevenue) GetSigners

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

GetSigners defines whose signature is required

func (*MsgRegisterRevenue) GetWithdrawerAddress

func (m *MsgRegisterRevenue) GetWithdrawerAddress() string

func (*MsgRegisterRevenue) Marshal

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

func (*MsgRegisterRevenue) MarshalTo

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

func (*MsgRegisterRevenue) MarshalToSizedBuffer

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

func (*MsgRegisterRevenue) ProtoMessage

func (*MsgRegisterRevenue) ProtoMessage()

func (*MsgRegisterRevenue) Reset

func (m *MsgRegisterRevenue) Reset()

func (MsgRegisterRevenue) Route

func (msg MsgRegisterRevenue) Route() string

Route returns the name of the module

func (*MsgRegisterRevenue) Size

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

func (*MsgRegisterRevenue) String

func (m *MsgRegisterRevenue) String() string

func (MsgRegisterRevenue) Type

func (msg MsgRegisterRevenue) Type() string

Type returns the the action

func (*MsgRegisterRevenue) Unmarshal

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

func (MsgRegisterRevenue) ValidateBasic

func (msg MsgRegisterRevenue) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgRegisterRevenue) XXX_DiscardUnknown

func (m *MsgRegisterRevenue) XXX_DiscardUnknown()

func (*MsgRegisterRevenue) XXX_Marshal

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

func (*MsgRegisterRevenue) XXX_Merge

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

func (*MsgRegisterRevenue) XXX_Size

func (m *MsgRegisterRevenue) XXX_Size() int

func (*MsgRegisterRevenue) XXX_Unmarshal

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

type MsgRegisterRevenueResponse

type MsgRegisterRevenueResponse struct {
}

MsgRegisterRevenueResponse defines the MsgRegisterRevenue response type

func (*MsgRegisterRevenueResponse) Descriptor

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

func (*MsgRegisterRevenueResponse) Marshal

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

func (*MsgRegisterRevenueResponse) MarshalTo

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

func (*MsgRegisterRevenueResponse) MarshalToSizedBuffer

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

func (*MsgRegisterRevenueResponse) ProtoMessage

func (*MsgRegisterRevenueResponse) ProtoMessage()

func (*MsgRegisterRevenueResponse) Reset

func (m *MsgRegisterRevenueResponse) Reset()

func (*MsgRegisterRevenueResponse) Size

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

func (*MsgRegisterRevenueResponse) String

func (m *MsgRegisterRevenueResponse) String() string

func (*MsgRegisterRevenueResponse) Unmarshal

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

func (*MsgRegisterRevenueResponse) XXX_DiscardUnknown

func (m *MsgRegisterRevenueResponse) XXX_DiscardUnknown()

func (*MsgRegisterRevenueResponse) XXX_Marshal

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

func (*MsgRegisterRevenueResponse) XXX_Merge

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

func (*MsgRegisterRevenueResponse) XXX_Size

func (m *MsgRegisterRevenueResponse) XXX_Size() int

func (*MsgRegisterRevenueResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterRevenue registers a new contract for receiving transaction fees
	RegisterRevenue(context.Context, *MsgRegisterRevenue) (*MsgRegisterRevenueResponse, error)
	// UpdateRevenue updates the withdrawer address of a revenue
	UpdateRevenue(context.Context, *MsgUpdateRevenue) (*MsgUpdateRevenueResponse, error)
	// CancelRevenue cancels a contract's fee registration and further receival
	// of transaction fees
	CancelRevenue(context.Context, *MsgCancelRevenue) (*MsgCancelRevenueResponse, error)
	// UpdateParams defined a governance operation for updating the x/revenue module parameters.
	// The authority is hard-coded to the Cosmos SDK x/gov module account
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/revenue parameters to update.
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams defines a Msg for updating the x/revenue module parameters.

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 of 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.

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 MsgUpdateRevenue

type MsgUpdateRevenue struct {
	// contract_address in hex 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 as the origin EOA
	// sending the transaction which deploys the contract
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// 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"`
}

MsgUpdateRevenue defines a message that updates the withdrawer address for a registered Revenue

func NewMsgUpdateRevenue

func NewMsgUpdateRevenue(
	contract common.Address,
	deployer,
	withdraw sdk.AccAddress,
) *MsgUpdateRevenue

NewMsgUpdateRevenue creates new instance of MsgUpdateRevenue

func (*MsgUpdateRevenue) Descriptor

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

func (*MsgUpdateRevenue) GetContractAddress

func (m *MsgUpdateRevenue) GetContractAddress() string

func (*MsgUpdateRevenue) GetDeployerAddress

func (m *MsgUpdateRevenue) GetDeployerAddress() string

func (*MsgUpdateRevenue) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgUpdateRevenue) GetSigners

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

GetSigners defines whose signature is required

func (*MsgUpdateRevenue) GetWithdrawerAddress

func (m *MsgUpdateRevenue) GetWithdrawerAddress() string

func (*MsgUpdateRevenue) Marshal

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

func (*MsgUpdateRevenue) MarshalTo

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

func (*MsgUpdateRevenue) MarshalToSizedBuffer

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

func (*MsgUpdateRevenue) ProtoMessage

func (*MsgUpdateRevenue) ProtoMessage()

func (*MsgUpdateRevenue) Reset

func (m *MsgUpdateRevenue) Reset()

func (MsgUpdateRevenue) Route

func (msg MsgUpdateRevenue) Route() string

Route returns the name of the module

func (*MsgUpdateRevenue) Size

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

func (*MsgUpdateRevenue) String

func (m *MsgUpdateRevenue) String() string

func (MsgUpdateRevenue) Type

func (msg MsgUpdateRevenue) Type() string

Type returns the the action

func (*MsgUpdateRevenue) Unmarshal

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

func (MsgUpdateRevenue) ValidateBasic

func (msg MsgUpdateRevenue) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgUpdateRevenue) XXX_DiscardUnknown

func (m *MsgUpdateRevenue) XXX_DiscardUnknown()

func (*MsgUpdateRevenue) XXX_Marshal

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

func (*MsgUpdateRevenue) XXX_Merge

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

func (*MsgUpdateRevenue) XXX_Size

func (m *MsgUpdateRevenue) XXX_Size() int

func (*MsgUpdateRevenue) XXX_Unmarshal

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

type MsgUpdateRevenueResponse

type MsgUpdateRevenueResponse struct {
}

MsgUpdateRevenueResponse defines the MsgUpdateRevenue response type

func (*MsgUpdateRevenueResponse) Descriptor

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

func (*MsgUpdateRevenueResponse) Marshal

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

func (*MsgUpdateRevenueResponse) MarshalTo

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

func (*MsgUpdateRevenueResponse) MarshalToSizedBuffer

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

func (*MsgUpdateRevenueResponse) ProtoMessage

func (*MsgUpdateRevenueResponse) ProtoMessage()

func (*MsgUpdateRevenueResponse) Reset

func (m *MsgUpdateRevenueResponse) Reset()

func (*MsgUpdateRevenueResponse) Size

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

func (*MsgUpdateRevenueResponse) String

func (m *MsgUpdateRevenueResponse) String() string

func (*MsgUpdateRevenueResponse) Unmarshal

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

func (*MsgUpdateRevenueResponse) XXX_DiscardUnknown

func (m *MsgUpdateRevenueResponse) XXX_DiscardUnknown()

func (*MsgUpdateRevenueResponse) XXX_Marshal

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

func (*MsgUpdateRevenueResponse) XXX_Merge

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

func (*MsgUpdateRevenueResponse) XXX_Size

func (m *MsgUpdateRevenueResponse) XXX_Size() int

func (*MsgUpdateRevenueResponse) XXX_Unmarshal

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

type Params

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

Params defines the revenue module params

func DefaultParams

func DefaultParams() Params

func NewParams

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

NewParams creates a new Params object

func (*Params) Descriptor

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

func (*Params) GetAddrDerivationCostCreate

func (m *Params) GetAddrDerivationCostCreate() uint64

func (*Params) GetEnableRevenue

func (m *Params) GetEnableRevenue() bool

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) 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 {
	// Revenues retrieves all registered revenues
	Revenues(ctx context.Context, in *QueryRevenuesRequest, opts ...grpc.CallOption) (*QueryRevenuesResponse, error)
	// Revenue retrieves a registered revenue for a given contract address
	Revenue(ctx context.Context, in *QueryRevenueRequest, opts ...grpc.CallOption) (*QueryRevenueResponse, error)
	// Params retrieves the revenue module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// DeployerRevenues retrieves all revenues that a given deployer has
	// registered
	DeployerRevenues(ctx context.Context, in *QueryDeployerRevenuesRequest, opts ...grpc.CallOption) (*QueryDeployerRevenuesResponse, error)
	// WithdrawerRevenues retrieves all revenues with a given withdrawer
	// address
	WithdrawerRevenues(ctx context.Context, in *QueryWithdrawerRevenuesRequest, opts ...grpc.CallOption) (*QueryWithdrawerRevenuesResponse, 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 QueryDeployerRevenuesRequest

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

QueryDeployerRevenuesRequest is the request type for the Query/DeployerRevenues RPC method.

func (*QueryDeployerRevenuesRequest) Descriptor

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

func (*QueryDeployerRevenuesRequest) GetDeployerAddress

func (m *QueryDeployerRevenuesRequest) GetDeployerAddress() string

func (*QueryDeployerRevenuesRequest) GetPagination

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

func (*QueryDeployerRevenuesRequest) Marshal

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

func (*QueryDeployerRevenuesRequest) MarshalTo

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

func (*QueryDeployerRevenuesRequest) MarshalToSizedBuffer

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

func (*QueryDeployerRevenuesRequest) ProtoMessage

func (*QueryDeployerRevenuesRequest) ProtoMessage()

func (*QueryDeployerRevenuesRequest) Reset

func (m *QueryDeployerRevenuesRequest) Reset()

func (*QueryDeployerRevenuesRequest) Size

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

func (*QueryDeployerRevenuesRequest) String

func (*QueryDeployerRevenuesRequest) Unmarshal

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

func (*QueryDeployerRevenuesRequest) XXX_DiscardUnknown

func (m *QueryDeployerRevenuesRequest) XXX_DiscardUnknown()

func (*QueryDeployerRevenuesRequest) XXX_Marshal

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

func (*QueryDeployerRevenuesRequest) XXX_Merge

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

func (*QueryDeployerRevenuesRequest) XXX_Size

func (m *QueryDeployerRevenuesRequest) XXX_Size() int

func (*QueryDeployerRevenuesRequest) XXX_Unmarshal

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

type QueryDeployerRevenuesResponse

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

QueryDeployerRevenuesResponse is the response type for the Query/DeployerRevenues RPC method.

func (*QueryDeployerRevenuesResponse) Descriptor

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

func (*QueryDeployerRevenuesResponse) GetContractAddresses

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

func (*QueryDeployerRevenuesResponse) GetPagination

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

func (*QueryDeployerRevenuesResponse) Marshal

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

func (*QueryDeployerRevenuesResponse) MarshalTo

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

func (*QueryDeployerRevenuesResponse) MarshalToSizedBuffer

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

func (*QueryDeployerRevenuesResponse) ProtoMessage

func (*QueryDeployerRevenuesResponse) ProtoMessage()

func (*QueryDeployerRevenuesResponse) Reset

func (m *QueryDeployerRevenuesResponse) Reset()

func (*QueryDeployerRevenuesResponse) Size

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

func (*QueryDeployerRevenuesResponse) String

func (*QueryDeployerRevenuesResponse) Unmarshal

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

func (*QueryDeployerRevenuesResponse) XXX_DiscardUnknown

func (m *QueryDeployerRevenuesResponse) XXX_DiscardUnknown()

func (*QueryDeployerRevenuesResponse) XXX_Marshal

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

func (*QueryDeployerRevenuesResponse) XXX_Merge

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

func (*QueryDeployerRevenuesResponse) XXX_Size

func (m *QueryDeployerRevenuesResponse) XXX_Size() int

func (*QueryDeployerRevenuesResponse) XXX_Unmarshal

func (m *QueryDeployerRevenuesResponse) 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 revenue 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 QueryRevenueRequest

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

QueryRevenueRequest is the request type for the Query/Revenue RPC method.

func (*QueryRevenueRequest) Descriptor

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

func (*QueryRevenueRequest) GetContractAddress

func (m *QueryRevenueRequest) GetContractAddress() string

func (*QueryRevenueRequest) Marshal

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

func (*QueryRevenueRequest) MarshalTo

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

func (*QueryRevenueRequest) MarshalToSizedBuffer

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

func (*QueryRevenueRequest) ProtoMessage

func (*QueryRevenueRequest) ProtoMessage()

func (*QueryRevenueRequest) Reset

func (m *QueryRevenueRequest) Reset()

func (*QueryRevenueRequest) Size

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

func (*QueryRevenueRequest) String

func (m *QueryRevenueRequest) String() string

func (*QueryRevenueRequest) Unmarshal

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

func (*QueryRevenueRequest) XXX_DiscardUnknown

func (m *QueryRevenueRequest) XXX_DiscardUnknown()

func (*QueryRevenueRequest) XXX_Marshal

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

func (*QueryRevenueRequest) XXX_Merge

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

func (*QueryRevenueRequest) XXX_Size

func (m *QueryRevenueRequest) XXX_Size() int

func (*QueryRevenueRequest) XXX_Unmarshal

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

type QueryRevenueResponse

type QueryRevenueResponse struct {
	// revenue is a stored Reveneue for the queried contract
	Revenue Revenue `protobuf:"bytes,1,opt,name=revenue,proto3" json:"revenue"`
}

QueryRevenueResponse is the response type for the Query/Revenue RPC method.

func (*QueryRevenueResponse) Descriptor

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

func (*QueryRevenueResponse) GetRevenue

func (m *QueryRevenueResponse) GetRevenue() Revenue

func (*QueryRevenueResponse) Marshal

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

func (*QueryRevenueResponse) MarshalTo

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

func (*QueryRevenueResponse) MarshalToSizedBuffer

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

func (*QueryRevenueResponse) ProtoMessage

func (*QueryRevenueResponse) ProtoMessage()

func (*QueryRevenueResponse) Reset

func (m *QueryRevenueResponse) Reset()

func (*QueryRevenueResponse) Size

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

func (*QueryRevenueResponse) String

func (m *QueryRevenueResponse) String() string

func (*QueryRevenueResponse) Unmarshal

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

func (*QueryRevenueResponse) XXX_DiscardUnknown

func (m *QueryRevenueResponse) XXX_DiscardUnknown()

func (*QueryRevenueResponse) XXX_Marshal

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

func (*QueryRevenueResponse) XXX_Merge

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

func (*QueryRevenueResponse) XXX_Size

func (m *QueryRevenueResponse) XXX_Size() int

func (*QueryRevenueResponse) XXX_Unmarshal

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

type QueryRevenuesRequest

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

QueryRevenuesRequest is the request type for the Query/Revenues RPC method.

func (*QueryRevenuesRequest) Descriptor

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

func (*QueryRevenuesRequest) GetPagination

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

func (*QueryRevenuesRequest) Marshal

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

func (*QueryRevenuesRequest) MarshalTo

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

func (*QueryRevenuesRequest) MarshalToSizedBuffer

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

func (*QueryRevenuesRequest) ProtoMessage

func (*QueryRevenuesRequest) ProtoMessage()

func (*QueryRevenuesRequest) Reset

func (m *QueryRevenuesRequest) Reset()

func (*QueryRevenuesRequest) Size

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

func (*QueryRevenuesRequest) String

func (m *QueryRevenuesRequest) String() string

func (*QueryRevenuesRequest) Unmarshal

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

func (*QueryRevenuesRequest) XXX_DiscardUnknown

func (m *QueryRevenuesRequest) XXX_DiscardUnknown()

func (*QueryRevenuesRequest) XXX_Marshal

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

func (*QueryRevenuesRequest) XXX_Merge

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

func (*QueryRevenuesRequest) XXX_Size

func (m *QueryRevenuesRequest) XXX_Size() int

func (*QueryRevenuesRequest) XXX_Unmarshal

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

type QueryRevenuesResponse

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

QueryRevenuesResponse is the response type for the Query/Revenues RPC method.

func (*QueryRevenuesResponse) Descriptor

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

func (*QueryRevenuesResponse) GetPagination

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

func (*QueryRevenuesResponse) GetRevenues

func (m *QueryRevenuesResponse) GetRevenues() []Revenue

func (*QueryRevenuesResponse) Marshal

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

func (*QueryRevenuesResponse) MarshalTo

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

func (*QueryRevenuesResponse) MarshalToSizedBuffer

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

func (*QueryRevenuesResponse) ProtoMessage

func (*QueryRevenuesResponse) ProtoMessage()

func (*QueryRevenuesResponse) Reset

func (m *QueryRevenuesResponse) Reset()

func (*QueryRevenuesResponse) Size

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

func (*QueryRevenuesResponse) String

func (m *QueryRevenuesResponse) String() string

func (*QueryRevenuesResponse) Unmarshal

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

func (*QueryRevenuesResponse) XXX_DiscardUnknown

func (m *QueryRevenuesResponse) XXX_DiscardUnknown()

func (*QueryRevenuesResponse) XXX_Marshal

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

func (*QueryRevenuesResponse) XXX_Merge

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

func (*QueryRevenuesResponse) XXX_Size

func (m *QueryRevenuesResponse) XXX_Size() int

func (*QueryRevenuesResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Revenues retrieves all registered revenues
	Revenues(context.Context, *QueryRevenuesRequest) (*QueryRevenuesResponse, error)
	// Revenue retrieves a registered revenue for a given contract address
	Revenue(context.Context, *QueryRevenueRequest) (*QueryRevenueResponse, error)
	// Params retrieves the revenue module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// DeployerRevenues retrieves all revenues that a given deployer has
	// registered
	DeployerRevenues(context.Context, *QueryDeployerRevenuesRequest) (*QueryDeployerRevenuesResponse, error)
	// WithdrawerRevenues retrieves all revenues with a given withdrawer
	// address
	WithdrawerRevenues(context.Context, *QueryWithdrawerRevenuesRequest) (*QueryWithdrawerRevenuesResponse, error)
}

QueryServer is the server API for Query service.

type QueryWithdrawerRevenuesRequest

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

QueryWithdrawerRevenuesRequest is the request type for the Query/WithdrawerRevenues RPC method.

func (*QueryWithdrawerRevenuesRequest) Descriptor

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

func (*QueryWithdrawerRevenuesRequest) GetPagination

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

func (*QueryWithdrawerRevenuesRequest) GetWithdrawerAddress

func (m *QueryWithdrawerRevenuesRequest) GetWithdrawerAddress() string

func (*QueryWithdrawerRevenuesRequest) Marshal

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

func (*QueryWithdrawerRevenuesRequest) MarshalTo

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

func (*QueryWithdrawerRevenuesRequest) MarshalToSizedBuffer

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

func (*QueryWithdrawerRevenuesRequest) ProtoMessage

func (*QueryWithdrawerRevenuesRequest) ProtoMessage()

func (*QueryWithdrawerRevenuesRequest) Reset

func (m *QueryWithdrawerRevenuesRequest) Reset()

func (*QueryWithdrawerRevenuesRequest) Size

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

func (*QueryWithdrawerRevenuesRequest) String

func (*QueryWithdrawerRevenuesRequest) Unmarshal

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

func (*QueryWithdrawerRevenuesRequest) XXX_DiscardUnknown

func (m *QueryWithdrawerRevenuesRequest) XXX_DiscardUnknown()

func (*QueryWithdrawerRevenuesRequest) XXX_Marshal

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

func (*QueryWithdrawerRevenuesRequest) XXX_Merge

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

func (*QueryWithdrawerRevenuesRequest) XXX_Size

func (m *QueryWithdrawerRevenuesRequest) XXX_Size() int

func (*QueryWithdrawerRevenuesRequest) XXX_Unmarshal

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

type QueryWithdrawerRevenuesResponse

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

QueryWithdrawerRevenuesResponse is the response type for the Query/WithdrawerRevenues RPC method.

func (*QueryWithdrawerRevenuesResponse) Descriptor

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

func (*QueryWithdrawerRevenuesResponse) GetContractAddresses

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

func (*QueryWithdrawerRevenuesResponse) GetPagination

func (*QueryWithdrawerRevenuesResponse) Marshal

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

func (*QueryWithdrawerRevenuesResponse) MarshalTo

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

func (*QueryWithdrawerRevenuesResponse) MarshalToSizedBuffer

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

func (*QueryWithdrawerRevenuesResponse) ProtoMessage

func (*QueryWithdrawerRevenuesResponse) ProtoMessage()

func (*QueryWithdrawerRevenuesResponse) Reset

func (*QueryWithdrawerRevenuesResponse) Size

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

func (*QueryWithdrawerRevenuesResponse) String

func (*QueryWithdrawerRevenuesResponse) Unmarshal

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

func (*QueryWithdrawerRevenuesResponse) XXX_DiscardUnknown

func (m *QueryWithdrawerRevenuesResponse) XXX_DiscardUnknown()

func (*QueryWithdrawerRevenuesResponse) XXX_Marshal

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

func (*QueryWithdrawerRevenuesResponse) XXX_Merge

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

func (*QueryWithdrawerRevenuesResponse) XXX_Size

func (m *QueryWithdrawerRevenuesResponse) XXX_Size() int

func (*QueryWithdrawerRevenuesResponse) XXX_Unmarshal

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

type Revenue

type Revenue struct {
	// contract_address is the hex address of a registered contract
	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 origin EOA
	// sending the transaction which deploys the contract
	DeployerAddress string `protobuf:"bytes,2,opt,name=deployer_address,json=deployerAddress,proto3" json:"deployer_address,omitempty"`
	// withdrawer_address is the bech32 address of account receiving the transaction fees it defaults to
	// deployer_address
	WithdrawerAddress string `protobuf:"bytes,3,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty"`
}

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

func NewRevenue

func NewRevenue(contract common.Address, deployer, withdrawer sdk.AccAddress) Revenue

NewRevenue returns an instance of Revenue. If the provided withdrawer address is empty, it sets the value to an empty string.

func (*Revenue) Descriptor

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

func (Revenue) GetContractAddr

func (fs Revenue) GetContractAddr() common.Address

GetContractAddr returns the contract address

func (*Revenue) GetContractAddress

func (m *Revenue) GetContractAddress() string

func (Revenue) GetDeployerAddr

func (fs Revenue) GetDeployerAddr() sdk.AccAddress

GetDeployerAddr returns the contract deployer address

func (*Revenue) GetDeployerAddress

func (m *Revenue) GetDeployerAddress() string

func (Revenue) GetWithdrawerAddr

func (fs Revenue) GetWithdrawerAddr() sdk.AccAddress

GetWithdrawerAddr returns the account address to where the funds proceeding from the fees will be received. If the withdraw address is not defined, it defaults to the deployer address.

func (*Revenue) GetWithdrawerAddress

func (m *Revenue) GetWithdrawerAddress() string

func (*Revenue) Marshal

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

func (*Revenue) MarshalTo

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

func (*Revenue) MarshalToSizedBuffer

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

func (*Revenue) ProtoMessage

func (*Revenue) ProtoMessage()

func (*Revenue) Reset

func (m *Revenue) Reset()

func (*Revenue) Size

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

func (*Revenue) String

func (m *Revenue) String() string

func (*Revenue) Unmarshal

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

func (Revenue) Validate

func (fs Revenue) Validate() error

Validate performs a stateless validation of a Revenue

func (*Revenue) XXX_DiscardUnknown

func (m *Revenue) XXX_DiscardUnknown()

func (*Revenue) XXX_Marshal

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

func (*Revenue) XXX_Merge

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

func (*Revenue) XXX_Size

func (m *Revenue) XXX_Size() int

func (*Revenue) XXX_Unmarshal

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

type Subspace

type Subspace interface {
	GetParamSetIfExists(ctx sdk.Context, ps LegacyParams)
	WithKeyTable(table paramtypes.KeyTable) paramtypes.Subspace
}

Subspace defines an interface that implements the legacy Cosmos SDK x/params Subspace type. NOTE: This is used solely for migration of the Cosmos SDK x/params managed parameters.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CancelRevenue

func (*UnimplementedMsgServer) RegisterRevenue

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpdateRevenue

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DeployerRevenues

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Revenue

func (*UnimplementedQueryServer) Revenues

func (*UnimplementedQueryServer) WithdrawerRevenues

Jump to

Keyboard shortcuts

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