types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 36 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "customfee"

	// StoreKey is the default store key for fee
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the fee store.
	QuerierRoute = ModuleName

	// RouterKey is the message route for the fee module
	RouterKey = ModuleName
)
View Source
const BurningPool = "burning_pool"

pool to burn fee

View Source
const FeePrefix = 0x70

Variables

View Source
var (
	EventTypeBaseDenomSaved = "base_denom_price_saved"

	AttributeKeyPrice = "price"
	AttributeKeyDenom = "denom"
)

FEE module event types

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 (
	ErrInvalidLengthFee        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFee          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFee = 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 (
	PSKeyTxByteFee = []byte("TxByteFee")
	// coin transactions fees
	PSKeyCoinCreate      = []byte("CoinCreate")
	PSKeyCoinUpdate      = []byte("CoinUpdate")
	PSKeyCoinSend        = []byte("CoinSend")
	PSKeyCoinSendAdd     = []byte("CoinSendAdd")
	PSKeyCoinBuy         = []byte("CoinBuy")
	PSKeyCoinSell        = []byte("CoinSell")
	PSKeyCoinRedeemCheck = []byte("CoinRedeemCheck")
	PSKeyCoinBurn        = []byte("CoinCoinBurn")
	// special commission depends on coin symbol length
	PSKeyCoinCreateTicker3 = []byte("CoinCreateTicker3")
	PSKeyCoinCreateTicker4 = []byte("CoinCreateTicker4")
	PSKeyCoinCreateTicker5 = []byte("CoinCreateTicker5")
	PSKeyCoinCreateTicker6 = []byte("CoinCreateTicker6")
	PSKeyCoinCreateTicker7 = []byte("CoinCreateTicker7")
	// multisignature wallets
	PSKeyMultisigCreateWallet      = []byte("MultisigCreateWallet")
	PSKeyMultisigCreateTransaction = []byte("MultisigCreateTransaction")
	PSKeyMultisigSignTransaction   = []byte("MultisigSignTransaction")
	// nft
	PSKeyNftMintToken     = []byte("NftMintToken")
	PSKeyNftUpdateToken   = []byte("NftUpdateToken")
	PSKeyNftUpdateReserve = []byte("NftUpdateReserve")
	PSKeyNftSendToken     = []byte("NftSendToken")
	PSKeyNftBurnToken     = []byte("NftBurnToken")
	// swap
	PSKeySwapActivateChain   = []byte("SwapActivateChain")
	PSKeySwapDeactivateChain = []byte("SwapDeactivateChain")
	PSKeySwapInitialize      = []byte("SwapInitialize")
	PSKeySwapRedeem          = []byte("SwapRedeem")
	// validator operations
	PSKeyValidatorCreateValidator = []byte("ValidatorCreateValidator")
	PSKeyValidatorEditValidator   = []byte("ValidatorEditValidator")
	PSKeyValidatorDelegate        = []byte("ValidatorDelegate")
	PSKeyValidatorDelegateNFT     = []byte("ValidatorDelegateNFT")
	PSKeyValidatorRedelegate      = []byte("ValidatorRedelegate")
	PSKeyValidatorRedelegateNFT   = []byte("ValidatorRedelegateNFT")
	PSKeyValidatorUndelegate      = []byte("ValidatorUndelegate")
	PSKeyValidatorUndelegateNFT   = []byte("ValidatorUndelegateNFT")
	PSKeyValidatorSetOnline       = []byte("ValidatorSetOnline")
	PSKeyValidatorSetOffline      = []byte("ValidatorSetOffline")
	// commission burn factor
	PSKeyCommissionBurnFactor = []byte("CommissionBurnFactor")
	// oracle key
	PSKeyOracle = []byte("Oracle")
	// evm tx keys
	PSKeyEvmGasPrice = []byte("EvmGasPrice")
)

Parameter store keys.

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

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

View Source
var (
	PriceKeyPrefix = []byte{FeePrefix, 0x00} // key for store
)

Functions

func GetPriceKey

func GetPriceKey(denom, quote string) []byte

getCollectionID returns the collection ID concatenated from creator address denom hash and c.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers concrete implementations of specific interfaces.

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 added in v0.1.0

type AccountKeeper interface {
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}

type CalculateCommissionFunc added in v0.1.0

type CalculateCommissionFunc func(cdc codec.BinaryCodec, msgs []sdk.Msg, txBytesLen int64, delPrice sdk.Dec, params Params) (sdkmath.Int, error)

type CoinKeeper added in v0.1.0

type CoinKeeper interface {
	GetCoin(ctx sdk.Context, denom string) (coin cointypes.Coin, err error)
	BurnPoolCoins(ctx sdk.Context, poolName string, coins sdk.Coins) error
}

type CoinPrice

type CoinPrice struct {
	// denom defines the base currency (coin) denomination which is priced.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// quote defines the quote currency denomination in the pair (USD as the first example).
	Quote string `protobuf:"bytes,2,opt,name=quote,proto3" json:"quote,omitempty"`
	// price defines the coin price in quote currency.
	Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"`
	// updated_at defines the moment of the previous coin price update.
	UpdatedAt time.Time `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"`
}

CoinPrice defines the coin price.

func (*CoinPrice) Descriptor

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

func (*CoinPrice) Equal

func (this *CoinPrice) Equal(that interface{}) bool

func (*CoinPrice) Marshal

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

func (*CoinPrice) MarshalTo

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

func (*CoinPrice) MarshalToSizedBuffer

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

func (*CoinPrice) ProtoMessage

func (*CoinPrice) ProtoMessage()

func (*CoinPrice) Reset

func (m *CoinPrice) Reset()

func (*CoinPrice) Size

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

func (*CoinPrice) String

func (m *CoinPrice) String() string

func (*CoinPrice) Unmarshal

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

func (*CoinPrice) XXX_DiscardUnknown

func (m *CoinPrice) XXX_DiscardUnknown()

func (*CoinPrice) XXX_Marshal

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

func (*CoinPrice) XXX_Merge

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

func (*CoinPrice) XXX_Size

func (m *CoinPrice) XXX_Size() int

func (*CoinPrice) XXX_Unmarshal

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

type EventPayCommission

type EventPayCommission struct {
	Payer string                                   `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"`
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
	Burnt github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=burnt,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"burnt"`
}

EventPayCommission defines event emitted when any commission for a transaction is payed.

func (*EventPayCommission) Descriptor

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

func (*EventPayCommission) GetBurnt added in v0.1.0

func (*EventPayCommission) GetCoins

func (*EventPayCommission) GetPayer

func (m *EventPayCommission) GetPayer() string

func (*EventPayCommission) Marshal

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

func (*EventPayCommission) MarshalTo

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

func (*EventPayCommission) MarshalToSizedBuffer

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

func (*EventPayCommission) ProtoMessage

func (*EventPayCommission) ProtoMessage()

func (*EventPayCommission) Reset

func (m *EventPayCommission) Reset()

func (*EventPayCommission) Size

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

func (*EventPayCommission) String

func (m *EventPayCommission) String() string

func (*EventPayCommission) Unmarshal

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

func (*EventPayCommission) XXX_DiscardUnknown

func (m *EventPayCommission) XXX_DiscardUnknown()

func (*EventPayCommission) XXX_Marshal

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

func (*EventPayCommission) XXX_Merge

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

func (*EventPayCommission) XXX_Size

func (m *EventPayCommission) XXX_Size() int

func (*EventPayCommission) XXX_Unmarshal

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

type EventUpdateCoinPrices

type EventUpdateCoinPrices struct {
	Oracle string      `protobuf:"bytes,1,opt,name=oracle,proto3" json:"oracle,omitempty"`
	Prices []CoinPrice `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices"`
}

EventUpdateCoinPrices defines event emitted when coin prices are updated.

func (*EventUpdateCoinPrices) Descriptor

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

func (*EventUpdateCoinPrices) GetOracle

func (m *EventUpdateCoinPrices) GetOracle() string

func (*EventUpdateCoinPrices) GetPrices

func (m *EventUpdateCoinPrices) GetPrices() []CoinPrice

func (*EventUpdateCoinPrices) Marshal

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

func (*EventUpdateCoinPrices) MarshalTo

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

func (*EventUpdateCoinPrices) MarshalToSizedBuffer

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

func (*EventUpdateCoinPrices) ProtoMessage

func (*EventUpdateCoinPrices) ProtoMessage()

func (*EventUpdateCoinPrices) Reset

func (m *EventUpdateCoinPrices) Reset()

func (*EventUpdateCoinPrices) Size

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

func (*EventUpdateCoinPrices) String

func (m *EventUpdateCoinPrices) String() string

func (*EventUpdateCoinPrices) Unmarshal

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

func (*EventUpdateCoinPrices) XXX_DiscardUnknown

func (m *EventUpdateCoinPrices) XXX_DiscardUnknown()

func (*EventUpdateCoinPrices) XXX_Marshal

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

func (*EventUpdateCoinPrices) XXX_Merge

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

func (*EventUpdateCoinPrices) XXX_Size

func (m *EventUpdateCoinPrices) XXX_Size() int

func (*EventUpdateCoinPrices) XXX_Unmarshal

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

type FeeKeeper

type FeeKeeper interface {
	GetPrice(ctx sdk.Context, denom, quote string) (CoinPrice, error)
	GetModuleParams(ctx sdk.Context) Params
	AddTransientGasWanted(ctx sdk.Context, gasWanted uint64) (uint64, error)
}

type FeeMarketKeeper

type FeeMarketKeeper interface {
	GetBaseFee(ctx sdk.Context) *big.Int
	GetBaseFeeEnabled(ctx sdk.Context) bool
	GetParams(ctx sdk.Context) feemarkettypes.Params
	GetModuleParams(ctx sdk.Context) Params
	GetPrice(ctx sdk.Context, denom string, quote string) (CoinPrice, error)
	AddTransientGasWanted(ctx sdk.Context, gasWanted uint64) (uint64, error)
}

interface from ethermint evm module

type GenesisState

type GenesisState struct {
	// prices defines complete list of initial coin prices.
	Prices []CoinPrice `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices"`
	// params defines all the module's parameters.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

GenesisState defines the module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState(params Params, initialPrices []CoinPrice) 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) GetPrices

func (m *GenesisState) GetPrices() []CoinPrice

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

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 {
	// UpdateCoinPrices defines message for updating a coin prices.
	UpdateCoinPrices(ctx context.Context, in *MsgUpdateCoinPrices, opts ...grpc.CallOption) (*MsgUpdateCoinPricesResponse, 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 MsgServer

type MsgServer interface {
	// UpdateCoinPrices defines message for updating a coin prices.
	UpdateCoinPrices(context.Context, *MsgUpdateCoinPrices) (*MsgUpdateCoinPricesResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateCoinPrices

type MsgUpdateCoinPrices struct {
	// oracle defines address empowered to update coin prices.
	Oracle string `protobuf:"bytes,1,opt,name=oracle,proto3" json:"oracle,omitempty"`
	// prices defines the coin prices requested to update.
	Prices []CoinPrice `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices"`
}

MsgUpdateCoinPrices defines a SDK message for updating specified coin prices.

func NewMsgUpdateCoinPrices

func NewMsgUpdateCoinPrices(
	sender string,
	prices []CoinPrice,
) *MsgUpdateCoinPrices

NewMsgUpdateCoinPrices is a constructor function for MsgUpdateCoinPrices

func (*MsgUpdateCoinPrices) Descriptor

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

func (*MsgUpdateCoinPrices) GetOracle

func (m *MsgUpdateCoinPrices) GetOracle() string

func (*MsgUpdateCoinPrices) GetPrices

func (m *MsgUpdateCoinPrices) GetPrices() []CoinPrice

func (*MsgUpdateCoinPrices) GetSignBytes

func (m *MsgUpdateCoinPrices) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (*MsgUpdateCoinPrices) GetSigners

func (m *MsgUpdateCoinPrices) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgUpdateCoinPrices) Marshal

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

func (*MsgUpdateCoinPrices) MarshalTo

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

func (*MsgUpdateCoinPrices) MarshalToSizedBuffer

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

func (*MsgUpdateCoinPrices) ProtoMessage

func (*MsgUpdateCoinPrices) ProtoMessage()

func (*MsgUpdateCoinPrices) Reset

func (m *MsgUpdateCoinPrices) Reset()

func (*MsgUpdateCoinPrices) Route

func (m *MsgUpdateCoinPrices) Route() string

Route Implements Msg

func (*MsgUpdateCoinPrices) Size

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

func (*MsgUpdateCoinPrices) String

func (m *MsgUpdateCoinPrices) String() string

func (*MsgUpdateCoinPrices) Type

func (m *MsgUpdateCoinPrices) Type() string

Type Implements Msg

func (*MsgUpdateCoinPrices) Unmarshal

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

func (*MsgUpdateCoinPrices) ValidateBasic

func (m *MsgUpdateCoinPrices) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgUpdateCoinPrices) XXX_DiscardUnknown

func (m *MsgUpdateCoinPrices) XXX_DiscardUnknown()

func (*MsgUpdateCoinPrices) XXX_Marshal

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

func (*MsgUpdateCoinPrices) XXX_Merge

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

func (*MsgUpdateCoinPrices) XXX_Size

func (m *MsgUpdateCoinPrices) XXX_Size() int

func (*MsgUpdateCoinPrices) XXX_Unmarshal

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

type MsgUpdateCoinPricesResponse

type MsgUpdateCoinPricesResponse struct {
}

MsgUpdateCoinPricesResponse defines the Msg/UpdateCoinPrices response type.

func (*MsgUpdateCoinPricesResponse) Descriptor

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

func (*MsgUpdateCoinPricesResponse) Marshal

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

func (*MsgUpdateCoinPricesResponse) MarshalTo

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

func (*MsgUpdateCoinPricesResponse) MarshalToSizedBuffer

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

func (*MsgUpdateCoinPricesResponse) ProtoMessage

func (*MsgUpdateCoinPricesResponse) ProtoMessage()

func (*MsgUpdateCoinPricesResponse) Reset

func (m *MsgUpdateCoinPricesResponse) Reset()

func (*MsgUpdateCoinPricesResponse) Size

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

func (*MsgUpdateCoinPricesResponse) String

func (m *MsgUpdateCoinPricesResponse) String() string

func (*MsgUpdateCoinPricesResponse) Unmarshal

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

func (*MsgUpdateCoinPricesResponse) XXX_DiscardUnknown

func (m *MsgUpdateCoinPricesResponse) XXX_DiscardUnknown()

func (*MsgUpdateCoinPricesResponse) XXX_Marshal

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

func (*MsgUpdateCoinPricesResponse) XXX_Merge

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

func (*MsgUpdateCoinPricesResponse) XXX_Size

func (m *MsgUpdateCoinPricesResponse) XXX_Size() int

func (*MsgUpdateCoinPricesResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// tx common fee depends on raw transaction size in bytes
	TxByteFee github_com_cosmos_cosmos_sdk_types.Dec `` /* 130-byte string literal not displayed */
	// coin creation special fee depends on coin ticker length
	CoinCreateTicker3 github_com_cosmos_cosmos_sdk_types.Dec `` /* 156-byte string literal not displayed */
	CoinCreateTicker4 github_com_cosmos_cosmos_sdk_types.Dec `` /* 156-byte string literal not displayed */
	CoinCreateTicker5 github_com_cosmos_cosmos_sdk_types.Dec `` /* 156-byte string literal not displayed */
	CoinCreateTicker6 github_com_cosmos_cosmos_sdk_types.Dec `` /* 156-byte string literal not displayed */
	CoinCreateTicker7 github_com_cosmos_cosmos_sdk_types.Dec `` /* 156-byte string literal not displayed */
	// coin fees
	CoinCreate      github_com_cosmos_cosmos_sdk_types.Dec `` /* 132-byte string literal not displayed */
	CoinUpdate      github_com_cosmos_cosmos_sdk_types.Dec `` /* 132-byte string literal not displayed */
	CoinSend        github_com_cosmos_cosmos_sdk_types.Dec `` /* 126-byte string literal not displayed */
	CoinSendAdd     github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
	CoinBuy         github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,15,opt,name=coin_buy,json=coinBuy,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"coin_buy"`
	CoinSell        github_com_cosmos_cosmos_sdk_types.Dec `` /* 126-byte string literal not displayed */
	CoinRedeemCheck github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */
	CoinBurn        github_com_cosmos_cosmos_sdk_types.Dec `` /* 126-byte string literal not displayed */
	// multisig fees
	MultisigCreateWallet      github_com_cosmos_cosmos_sdk_types.Dec `` /* 164-byte string literal not displayed */
	MultisigCreateTransaction github_com_cosmos_cosmos_sdk_types.Dec `` /* 179-byte string literal not displayed */
	MultisigSignTransaction   github_com_cosmos_cosmos_sdk_types.Dec `` /* 173-byte string literal not displayed */
	// nft fees
	NftMintToken     github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
	NftUpdateToken   github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	NftUpdateReserve github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */
	NftSendToken     github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
	NftBurnToken     github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
	// swap fees
	SwapActivateChain   github_com_cosmos_cosmos_sdk_types.Dec `` /* 155-byte string literal not displayed */
	SwapDeactivateChain github_com_cosmos_cosmos_sdk_types.Dec `` /* 161-byte string literal not displayed */
	SwapInitialize      github_com_cosmos_cosmos_sdk_types.Dec `` /* 144-byte string literal not displayed */
	SwapRedeem          github_com_cosmos_cosmos_sdk_types.Dec `` /* 132-byte string literal not displayed */
	// validator fees
	ValidatorCreateValidator github_com_cosmos_cosmos_sdk_types.Dec `` /* 176-byte string literal not displayed */
	ValidatorEditValidator   github_com_cosmos_cosmos_sdk_types.Dec `` /* 170-byte string literal not displayed */
	ValidatorDelegate        github_com_cosmos_cosmos_sdk_types.Dec `` /* 153-byte string literal not displayed */
	ValidatorDelegateNFT     github_com_cosmos_cosmos_sdk_types.Dec `` /* 164-byte string literal not displayed */
	ValidatorRedelegate      github_com_cosmos_cosmos_sdk_types.Dec `` /* 159-byte string literal not displayed */
	ValidatorRedelegateNFT   github_com_cosmos_cosmos_sdk_types.Dec `` /* 170-byte string literal not displayed */
	ValidatorUndelegate      github_com_cosmos_cosmos_sdk_types.Dec `` /* 159-byte string literal not displayed */
	ValidatorUndelegateNFT   github_com_cosmos_cosmos_sdk_types.Dec `` /* 170-byte string literal not displayed */
	ValidatorSetOnline       github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	ValidatorSetOffline      github_com_cosmos_cosmos_sdk_types.Dec `` /* 161-byte string literal not displayed */
	// commission burn factor
	CommissionBurnFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 164-byte string literal not displayed */
	// evm tx commissions
	EvmGasPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
	// oracle defines address empowered to update coin prices.
	Oracle string `protobuf:"bytes,63,opt,name=oracle,proto3" json:"oracle,omitempty"`
}

Params defines transaction fees calculation constants for the entire application.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

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

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

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate

func (p *Params) Validate() error

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 QueryCalculateCommissionRequest added in v0.1.0

type QueryCalculateCommissionRequest struct {
	// Transaction bytes encoded in hex presentation
	TxBytes string `protobuf:"bytes,1,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
	// Coin denomination to calculate
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryCalculateCommissionRequest is request type for the Query/CalculateCommission RPC method.

func (*QueryCalculateCommissionRequest) Descriptor added in v0.1.0

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

func (*QueryCalculateCommissionRequest) GetDenom added in v0.1.0

func (*QueryCalculateCommissionRequest) GetTxBytes added in v0.1.0

func (m *QueryCalculateCommissionRequest) GetTxBytes() string

func (*QueryCalculateCommissionRequest) Marshal added in v0.1.0

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

func (*QueryCalculateCommissionRequest) MarshalTo added in v0.1.0

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

func (*QueryCalculateCommissionRequest) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryCalculateCommissionRequest) ProtoMessage added in v0.1.0

func (*QueryCalculateCommissionRequest) ProtoMessage()

func (*QueryCalculateCommissionRequest) Reset added in v0.1.0

func (*QueryCalculateCommissionRequest) Size added in v0.1.0

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

func (*QueryCalculateCommissionRequest) String added in v0.1.0

func (*QueryCalculateCommissionRequest) Unmarshal added in v0.1.0

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

func (*QueryCalculateCommissionRequest) XXX_DiscardUnknown added in v0.1.0

func (m *QueryCalculateCommissionRequest) XXX_DiscardUnknown()

func (*QueryCalculateCommissionRequest) XXX_Marshal added in v0.1.0

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

func (*QueryCalculateCommissionRequest) XXX_Merge added in v0.1.0

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

func (*QueryCalculateCommissionRequest) XXX_Size added in v0.1.0

func (m *QueryCalculateCommissionRequest) XXX_Size() int

func (*QueryCalculateCommissionRequest) XXX_Unmarshal added in v0.1.0

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

type QueryCalculateCommissionResponse added in v0.1.0

type QueryCalculateCommissionResponse struct {
	Commission cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=commission,proto3,customtype=cosmossdk.io/math.Int" json:"commission"`
}

func (*QueryCalculateCommissionResponse) Descriptor added in v0.1.0

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

func (*QueryCalculateCommissionResponse) Marshal added in v0.1.0

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

func (*QueryCalculateCommissionResponse) MarshalTo added in v0.1.0

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

func (*QueryCalculateCommissionResponse) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryCalculateCommissionResponse) ProtoMessage added in v0.1.0

func (*QueryCalculateCommissionResponse) ProtoMessage()

func (*QueryCalculateCommissionResponse) Reset added in v0.1.0

func (*QueryCalculateCommissionResponse) Size added in v0.1.0

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

func (*QueryCalculateCommissionResponse) String added in v0.1.0

func (*QueryCalculateCommissionResponse) Unmarshal added in v0.1.0

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

func (*QueryCalculateCommissionResponse) XXX_DiscardUnknown added in v0.1.0

func (m *QueryCalculateCommissionResponse) XXX_DiscardUnknown()

func (*QueryCalculateCommissionResponse) XXX_Marshal added in v0.1.0

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

func (*QueryCalculateCommissionResponse) XXX_Merge added in v0.1.0

func (*QueryCalculateCommissionResponse) XXX_Size added in v0.1.0

func (m *QueryCalculateCommissionResponse) XXX_Size() int

func (*QueryCalculateCommissionResponse) XXX_Unmarshal added in v0.1.0

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

type QueryClient

type QueryClient interface {
	// CoinPrices queries all available coin prices.
	CoinPrices(ctx context.Context, in *QueryCoinPricesRequest, opts ...grpc.CallOption) (*QueryCoinPricesResponse, error)
	// CoinPrice queries the specified coin price.
	CoinPrice(ctx context.Context, in *QueryCoinPriceRequest, opts ...grpc.CallOption) (*QueryCoinPriceResponse, error)
	// ModuleParams queries the module params.
	ModuleParams(ctx context.Context, in *QueryModuleParamsRequest, opts ...grpc.CallOption) (*QueryModuleParamsResponse, error)
	// Calculate transaction commission by tx bytes
	CalculateCommission(ctx context.Context, in *QueryCalculateCommissionRequest, opts ...grpc.CallOption) (*QueryCalculateCommissionResponse, 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 QueryCoinPriceRequest

type QueryCoinPriceRequest struct {
	// denom defines the base currency (coin) denomination which is priced.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// quote defines the quote currency denomination in the pair (USD as the first example).
	Quote string `protobuf:"bytes,2,opt,name=quote,proto3" json:"quote,omitempty"`
}

QueryCoinPriceRequest is request type for the Query/CoinPrice RPC method.

func (*QueryCoinPriceRequest) Descriptor

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

func (*QueryCoinPriceRequest) GetDenom

func (m *QueryCoinPriceRequest) GetDenom() string

func (*QueryCoinPriceRequest) GetQuote

func (m *QueryCoinPriceRequest) GetQuote() string

func (*QueryCoinPriceRequest) Marshal

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

func (*QueryCoinPriceRequest) MarshalTo

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

func (*QueryCoinPriceRequest) MarshalToSizedBuffer

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

func (*QueryCoinPriceRequest) ProtoMessage

func (*QueryCoinPriceRequest) ProtoMessage()

func (*QueryCoinPriceRequest) Reset

func (m *QueryCoinPriceRequest) Reset()

func (*QueryCoinPriceRequest) Size

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

func (*QueryCoinPriceRequest) String

func (m *QueryCoinPriceRequest) String() string

func (*QueryCoinPriceRequest) Unmarshal

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

func (*QueryCoinPriceRequest) XXX_DiscardUnknown

func (m *QueryCoinPriceRequest) XXX_DiscardUnknown()

func (*QueryCoinPriceRequest) XXX_Marshal

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

func (*QueryCoinPriceRequest) XXX_Merge

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

func (*QueryCoinPriceRequest) XXX_Size

func (m *QueryCoinPriceRequest) XXX_Size() int

func (*QueryCoinPriceRequest) XXX_Unmarshal

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

type QueryCoinPriceResponse

type QueryCoinPriceResponse struct {
	Price *CoinPrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
}

QueryCoinPriceResponse is response type for the Query/CoinPrice RPC method.

func (*QueryCoinPriceResponse) Descriptor

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

func (*QueryCoinPriceResponse) GetPrice

func (m *QueryCoinPriceResponse) GetPrice() *CoinPrice

func (*QueryCoinPriceResponse) Marshal

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

func (*QueryCoinPriceResponse) MarshalTo

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

func (*QueryCoinPriceResponse) MarshalToSizedBuffer

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

func (*QueryCoinPriceResponse) ProtoMessage

func (*QueryCoinPriceResponse) ProtoMessage()

func (*QueryCoinPriceResponse) Reset

func (m *QueryCoinPriceResponse) Reset()

func (*QueryCoinPriceResponse) Size

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

func (*QueryCoinPriceResponse) String

func (m *QueryCoinPriceResponse) String() string

func (*QueryCoinPriceResponse) Unmarshal

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

func (*QueryCoinPriceResponse) XXX_DiscardUnknown

func (m *QueryCoinPriceResponse) XXX_DiscardUnknown()

func (*QueryCoinPriceResponse) XXX_Marshal

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

func (*QueryCoinPriceResponse) XXX_Merge

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

func (*QueryCoinPriceResponse) XXX_Size

func (m *QueryCoinPriceResponse) XXX_Size() int

func (*QueryCoinPriceResponse) XXX_Unmarshal

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

type QueryCoinPricesRequest

type QueryCoinPricesRequest struct {
}

QueryCoinPricesRequest is request type for the Query/CoinPrices RPC method.

func (*QueryCoinPricesRequest) Descriptor

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

func (*QueryCoinPricesRequest) Marshal

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

func (*QueryCoinPricesRequest) MarshalTo

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

func (*QueryCoinPricesRequest) MarshalToSizedBuffer

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

func (*QueryCoinPricesRequest) ProtoMessage

func (*QueryCoinPricesRequest) ProtoMessage()

func (*QueryCoinPricesRequest) Reset

func (m *QueryCoinPricesRequest) Reset()

func (*QueryCoinPricesRequest) Size

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

func (*QueryCoinPricesRequest) String

func (m *QueryCoinPricesRequest) String() string

func (*QueryCoinPricesRequest) Unmarshal

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

func (*QueryCoinPricesRequest) XXX_DiscardUnknown

func (m *QueryCoinPricesRequest) XXX_DiscardUnknown()

func (*QueryCoinPricesRequest) XXX_Marshal

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

func (*QueryCoinPricesRequest) XXX_Merge

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

func (*QueryCoinPricesRequest) XXX_Size

func (m *QueryCoinPricesRequest) XXX_Size() int

func (*QueryCoinPricesRequest) XXX_Unmarshal

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

type QueryCoinPricesResponse

type QueryCoinPricesResponse struct {
	Prices []CoinPrice `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices"`
}

QueryCoinPricesResponse is response type for the Query/CoinPrices RPC method.

func (*QueryCoinPricesResponse) Descriptor

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

func (*QueryCoinPricesResponse) GetPrices

func (m *QueryCoinPricesResponse) GetPrices() []CoinPrice

func (*QueryCoinPricesResponse) Marshal

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

func (*QueryCoinPricesResponse) MarshalTo

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

func (*QueryCoinPricesResponse) MarshalToSizedBuffer

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

func (*QueryCoinPricesResponse) ProtoMessage

func (*QueryCoinPricesResponse) ProtoMessage()

func (*QueryCoinPricesResponse) Reset

func (m *QueryCoinPricesResponse) Reset()

func (*QueryCoinPricesResponse) Size

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

func (*QueryCoinPricesResponse) String

func (m *QueryCoinPricesResponse) String() string

func (*QueryCoinPricesResponse) Unmarshal

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

func (*QueryCoinPricesResponse) XXX_DiscardUnknown

func (m *QueryCoinPricesResponse) XXX_DiscardUnknown()

func (*QueryCoinPricesResponse) XXX_Marshal

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

func (*QueryCoinPricesResponse) XXX_Merge

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

func (*QueryCoinPricesResponse) XXX_Size

func (m *QueryCoinPricesResponse) XXX_Size() int

func (*QueryCoinPricesResponse) XXX_Unmarshal

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

type QueryModuleParamsRequest

type QueryModuleParamsRequest struct {
}

QueryModuleParamsRequest is request type for the Query/ModuleParams RPC method.

func (*QueryModuleParamsRequest) Descriptor

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

func (*QueryModuleParamsRequest) Marshal

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

func (*QueryModuleParamsRequest) MarshalTo

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

func (*QueryModuleParamsRequest) MarshalToSizedBuffer

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

func (*QueryModuleParamsRequest) ProtoMessage

func (*QueryModuleParamsRequest) ProtoMessage()

func (*QueryModuleParamsRequest) Reset

func (m *QueryModuleParamsRequest) Reset()

func (*QueryModuleParamsRequest) Size

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

func (*QueryModuleParamsRequest) String

func (m *QueryModuleParamsRequest) String() string

func (*QueryModuleParamsRequest) Unmarshal

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

func (*QueryModuleParamsRequest) XXX_DiscardUnknown

func (m *QueryModuleParamsRequest) XXX_DiscardUnknown()

func (*QueryModuleParamsRequest) XXX_Marshal

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

func (*QueryModuleParamsRequest) XXX_Merge

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

func (*QueryModuleParamsRequest) XXX_Size

func (m *QueryModuleParamsRequest) XXX_Size() int

func (*QueryModuleParamsRequest) XXX_Unmarshal

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

type QueryModuleParamsResponse

type QueryModuleParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryModuleParamsResponse is response type for the Query/ModuleParams RPC method.

func (*QueryModuleParamsResponse) Descriptor

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

func (*QueryModuleParamsResponse) GetParams

func (m *QueryModuleParamsResponse) GetParams() Params

func (*QueryModuleParamsResponse) Marshal

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

func (*QueryModuleParamsResponse) MarshalTo

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

func (*QueryModuleParamsResponse) MarshalToSizedBuffer

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

func (*QueryModuleParamsResponse) ProtoMessage

func (*QueryModuleParamsResponse) ProtoMessage()

func (*QueryModuleParamsResponse) Reset

func (m *QueryModuleParamsResponse) Reset()

func (*QueryModuleParamsResponse) Size

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

func (*QueryModuleParamsResponse) String

func (m *QueryModuleParamsResponse) String() string

func (*QueryModuleParamsResponse) Unmarshal

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

func (*QueryModuleParamsResponse) XXX_DiscardUnknown

func (m *QueryModuleParamsResponse) XXX_DiscardUnknown()

func (*QueryModuleParamsResponse) XXX_Marshal

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

func (*QueryModuleParamsResponse) XXX_Merge

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

func (*QueryModuleParamsResponse) XXX_Size

func (m *QueryModuleParamsResponse) XXX_Size() int

func (*QueryModuleParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// CoinPrices queries all available coin prices.
	CoinPrices(context.Context, *QueryCoinPricesRequest) (*QueryCoinPricesResponse, error)
	// CoinPrice queries the specified coin price.
	CoinPrice(context.Context, *QueryCoinPriceRequest) (*QueryCoinPriceResponse, error)
	// ModuleParams queries the module params.
	ModuleParams(context.Context, *QueryModuleParamsRequest) (*QueryModuleParamsResponse, error)
	// Calculate transaction commission by tx bytes
	CalculateCommission(context.Context, *QueryCalculateCommissionRequest) (*QueryCalculateCommissionResponse, 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) UpdateCoinPrices

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CalculateCommission added in v0.1.0

func (*UnimplementedQueryServer) CoinPrice

func (*UnimplementedQueryServer) CoinPrices

func (*UnimplementedQueryServer) ModuleParams

Jump to

Keyboard shortcuts

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