types

package
v1.0.1-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "xfeemarket"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_xfeemarket"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

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 (
	ParamsKey             = collections.NewPrefix("p_xfeemarket")
	PrefixDenomMultiplier = []byte{0x01}

	EventTypeTipRefund = "tip_refund"
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrDenomNotFound = errorsmod.Register(ModuleName, 1100, "denom not found:")
)

x/xfeemarket module sentinel errors

Functions

func KeyDenomMultiplier

func KeyDenomMultiplier(denom string) []byte

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 {
	GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation

}

AccountKeeper defines the expected interface for the Account module.

type BankKeeper

type BankKeeper interface {
	SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins
	HasDenomMetaData(ctx context.Context, denom string) bool
}

BankKeeper defines the expected interface for the Bank module.

type DefaultFeemarketDenomResolver

type DefaultFeemarketDenomResolver struct{}

func (*DefaultFeemarketDenomResolver) ConvertToDenom

func (r *DefaultFeemarketDenomResolver) ConvertToDenom(_ sdk.Context, coin sdk.DecCoin, denom string) (sdk.DecCoin, error)

ConvertToDenom returns "coin.Amount denom" for all coins that are not the denom.

func (*DefaultFeemarketDenomResolver) ExtraDenoms

func (r *DefaultFeemarketDenomResolver) ExtraDenoms(_ sdk.Context) ([]string, error)

type DenomMultiplier

type DenomMultiplier struct {
	Denom      string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Multiplier string `protobuf:"bytes,2,opt,name=multiplier,proto3" json:"multiplier,omitempty"`
}

DenomMultiplier is a struct that contains the denom and the multiplier.

func (*DenomMultiplier) Descriptor

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

func (*DenomMultiplier) GetDenom

func (m *DenomMultiplier) GetDenom() string

func (*DenomMultiplier) GetMultiplier

func (m *DenomMultiplier) GetMultiplier() string

func (*DenomMultiplier) Marshal

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

func (*DenomMultiplier) MarshalTo

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

func (*DenomMultiplier) MarshalToSizedBuffer

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

func (*DenomMultiplier) ProtoMessage

func (*DenomMultiplier) ProtoMessage()

func (*DenomMultiplier) Reset

func (m *DenomMultiplier) Reset()

func (*DenomMultiplier) Size

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

func (*DenomMultiplier) String

func (m *DenomMultiplier) String() string

func (*DenomMultiplier) Unmarshal

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

func (DenomMultiplier) Validate

func (m DenomMultiplier) Validate() error

func (*DenomMultiplier) XXX_DiscardUnknown

func (m *DenomMultiplier) XXX_DiscardUnknown()

func (*DenomMultiplier) XXX_Marshal

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

func (*DenomMultiplier) XXX_Merge

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

func (*DenomMultiplier) XXX_Size

func (m *DenomMultiplier) XXX_Size() int

func (*DenomMultiplier) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params           Params            `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	DenomMultipliers []DenomMultiplier `protobuf:"bytes,2,rep,name=denom_multipliers,json=denomMultipliers,proto3" json:"denom_multipliers"`
}

GenesisState defines the xfeemarket module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDenomMultipliers

func (m *GenesisState) GetDenomMultipliers() []DenomMultiplier

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	UpsertFeeDenom(ctx context.Context, in *MsgUpsertFeeDenom, opts ...grpc.CallOption) (*MsgUpsertFeeDenomResponse, error)
	RemoveFeeDenom(ctx context.Context, in *MsgRemoveFeeDenom, opts ...grpc.CallOption) (*MsgRemoveFeeDenomResponse, 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 MsgRemoveFeeDenom

type MsgRemoveFeeDenom struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Denom     string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgRemoveFeeDenom

func NewMsgRemoveFeeDenom(creator string, denom string) *MsgRemoveFeeDenom

func (*MsgRemoveFeeDenom) Descriptor

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

func (*MsgRemoveFeeDenom) GetAuthority

func (m *MsgRemoveFeeDenom) GetAuthority() string

func (*MsgRemoveFeeDenom) GetDenom

func (m *MsgRemoveFeeDenom) GetDenom() string

func (*MsgRemoveFeeDenom) Marshal

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

func (*MsgRemoveFeeDenom) MarshalTo

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

func (*MsgRemoveFeeDenom) MarshalToSizedBuffer

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

func (*MsgRemoveFeeDenom) ProtoMessage

func (*MsgRemoveFeeDenom) ProtoMessage()

func (*MsgRemoveFeeDenom) Reset

func (m *MsgRemoveFeeDenom) Reset()

func (*MsgRemoveFeeDenom) Size

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

func (*MsgRemoveFeeDenom) String

func (m *MsgRemoveFeeDenom) String() string

func (*MsgRemoveFeeDenom) Unmarshal

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

func (MsgRemoveFeeDenom) Validate

func (m MsgRemoveFeeDenom) Validate() error

func (*MsgRemoveFeeDenom) XXX_DiscardUnknown

func (m *MsgRemoveFeeDenom) XXX_DiscardUnknown()

func (*MsgRemoveFeeDenom) XXX_Marshal

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

func (*MsgRemoveFeeDenom) XXX_Merge

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

func (*MsgRemoveFeeDenom) XXX_Size

func (m *MsgRemoveFeeDenom) XXX_Size() int

func (*MsgRemoveFeeDenom) XXX_Unmarshal

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

type MsgRemoveFeeDenomResponse

type MsgRemoveFeeDenomResponse struct {
}

func (*MsgRemoveFeeDenomResponse) Descriptor

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

func (*MsgRemoveFeeDenomResponse) Marshal

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

func (*MsgRemoveFeeDenomResponse) MarshalTo

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

func (*MsgRemoveFeeDenomResponse) MarshalToSizedBuffer

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

func (*MsgRemoveFeeDenomResponse) ProtoMessage

func (*MsgRemoveFeeDenomResponse) ProtoMessage()

func (*MsgRemoveFeeDenomResponse) Reset

func (m *MsgRemoveFeeDenomResponse) Reset()

func (*MsgRemoveFeeDenomResponse) Size

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

func (*MsgRemoveFeeDenomResponse) String

func (m *MsgRemoveFeeDenomResponse) String() string

func (*MsgRemoveFeeDenomResponse) Unmarshal

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

func (*MsgRemoveFeeDenomResponse) XXX_DiscardUnknown

func (m *MsgRemoveFeeDenomResponse) XXX_DiscardUnknown()

func (*MsgRemoveFeeDenomResponse) XXX_Marshal

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

func (*MsgRemoveFeeDenomResponse) XXX_Merge

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

func (*MsgRemoveFeeDenomResponse) XXX_Size

func (m *MsgRemoveFeeDenomResponse) XXX_Size() int

func (*MsgRemoveFeeDenomResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	UpsertFeeDenom(context.Context, *MsgUpsertFeeDenom) (*MsgUpsertFeeDenomResponse, error)
	RemoveFeeDenom(context.Context, *MsgRemoveFeeDenom) (*MsgRemoveFeeDenomResponse, error)
}

MsgServer is the server API for Msg service.

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

MsgUpdateParams is the Msg/UpdateParams request type.

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

type MsgUpsertFeeDenom struct {
	Authority  string                      `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Denom      string                      `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Multiplier cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=multiplier,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"multiplier"`
}

func NewMsgUpsertFeeDenom

func NewMsgUpsertFeeDenom(creator string, denom string, multiplier string) *MsgUpsertFeeDenom

func (*MsgUpsertFeeDenom) Descriptor

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

func (*MsgUpsertFeeDenom) GetAuthority

func (m *MsgUpsertFeeDenom) GetAuthority() string

func (*MsgUpsertFeeDenom) GetDenom

func (m *MsgUpsertFeeDenom) GetDenom() string

func (*MsgUpsertFeeDenom) Marshal

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

func (*MsgUpsertFeeDenom) MarshalTo

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

func (*MsgUpsertFeeDenom) MarshalToSizedBuffer

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

func (*MsgUpsertFeeDenom) ProtoMessage

func (*MsgUpsertFeeDenom) ProtoMessage()

func (*MsgUpsertFeeDenom) Reset

func (m *MsgUpsertFeeDenom) Reset()

func (*MsgUpsertFeeDenom) Size

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

func (*MsgUpsertFeeDenom) String

func (m *MsgUpsertFeeDenom) String() string

func (*MsgUpsertFeeDenom) Unmarshal

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

func (MsgUpsertFeeDenom) Validate

func (m MsgUpsertFeeDenom) Validate() error

func (*MsgUpsertFeeDenom) XXX_DiscardUnknown

func (m *MsgUpsertFeeDenom) XXX_DiscardUnknown()

func (*MsgUpsertFeeDenom) XXX_Marshal

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

func (*MsgUpsertFeeDenom) XXX_Merge

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

func (*MsgUpsertFeeDenom) XXX_Size

func (m *MsgUpsertFeeDenom) XXX_Size() int

func (*MsgUpsertFeeDenom) XXX_Unmarshal

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

type MsgUpsertFeeDenomResponse

type MsgUpsertFeeDenomResponse struct {
}

func (*MsgUpsertFeeDenomResponse) Descriptor

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

func (*MsgUpsertFeeDenomResponse) Marshal

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

func (*MsgUpsertFeeDenomResponse) MarshalTo

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

func (*MsgUpsertFeeDenomResponse) MarshalToSizedBuffer

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

func (*MsgUpsertFeeDenomResponse) ProtoMessage

func (*MsgUpsertFeeDenomResponse) ProtoMessage()

func (*MsgUpsertFeeDenomResponse) Reset

func (m *MsgUpsertFeeDenomResponse) Reset()

func (*MsgUpsertFeeDenomResponse) Size

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

func (*MsgUpsertFeeDenomResponse) String

func (m *MsgUpsertFeeDenomResponse) String() string

func (*MsgUpsertFeeDenomResponse) Unmarshal

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

func (*MsgUpsertFeeDenomResponse) XXX_DiscardUnknown

func (m *MsgUpsertFeeDenomResponse) XXX_DiscardUnknown()

func (*MsgUpsertFeeDenomResponse) XXX_Marshal

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

func (*MsgUpsertFeeDenomResponse) XXX_Merge

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

func (*MsgUpsertFeeDenomResponse) XXX_Size

func (m *MsgUpsertFeeDenomResponse) XXX_Size() int

func (*MsgUpsertFeeDenomResponse) XXX_Unmarshal

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

type ParamSubspace

type ParamSubspace interface {
	Get(context.Context, []byte, interface{})
	Set(context.Context, []byte, interface{})
}

ParamSubspace defines the expected Subspace interface for parameters.

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams() Params

NewParams creates a new Params instance.

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) 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

Validate validates the set of params.

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 {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is 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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) RemoveFeeDenom

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpsertFeeDenom

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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