types

package
v6.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 27 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 = "txfees"

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

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	ProposalTypeUpdateFeeToken = "UpdateFeeToken"
)

Variables

View Source
var (
	ErrNoBaseDenom     = sdkerrors.Register(ModuleName, 1, "no base denom was set")
	ErrTooManyFeeCoins = sdkerrors.Register(ModuleName, 2, "too many fee coins. only accepts fees in one denom")
	ErrInvalidFeeToken = sdkerrors.Register(ModuleName, 3, "invalid fee token")
)

x/txfees module errors

View Source
var (
	ErrInvalidLengthFeetoken        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFeetoken          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFeetoken = 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 (
	ErrInvalidLengthGov        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGov          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	BaseDenomKey         = []byte("base_denom")
	FeeTokensStorePrefix = []byte("fee_tokens")
)
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 DefaultHighGasTxThreshold = uint64(1 * 1000 * 1000)
View Source
var DefaultMaxGasWantedPerTx = uint64(25 * 1000 * 1000)
View Source
var DefaultMinGasPriceForArbitrageTx = sdk.ZeroDec()

TODO: Bump after next minor version. (in 6.2+)

View Source
var DefaultMinGasPriceForHighGasTx = sdk.ZeroDec()
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 FeeToken

type FeeToken struct {
	Denom  string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	PoolID uint64 `protobuf:"varint,2,opt,name=poolID,proto3" json:"poolID,omitempty" yaml:"pool_id"`
}

FeeToken is a struct that specifies a coin denom, and pool ID pair. This marks the token as eligible for use as a tx fee asset in Osmosis. Its price in osmo is derived through looking at the provided pool ID. The pool ID must have osmo as one of its assets.

func (*FeeToken) Descriptor

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

func (*FeeToken) Equal

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

func (*FeeToken) GetDenom

func (m *FeeToken) GetDenom() string

func (*FeeToken) GetPoolID

func (m *FeeToken) GetPoolID() uint64

func (*FeeToken) Marshal

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

func (*FeeToken) MarshalTo

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

func (*FeeToken) MarshalToSizedBuffer

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

func (*FeeToken) ProtoMessage

func (*FeeToken) ProtoMessage()

func (*FeeToken) Reset

func (m *FeeToken) Reset()

func (*FeeToken) Size

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

func (*FeeToken) String

func (m *FeeToken) String() string

func (*FeeToken) Unmarshal

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

func (*FeeToken) XXX_DiscardUnknown

func (m *FeeToken) XXX_DiscardUnknown()

func (*FeeToken) XXX_Marshal

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

func (*FeeToken) XXX_Merge

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

func (*FeeToken) XXX_Size

func (m *FeeToken) XXX_Size() int

func (*FeeToken) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Basedenom string     `protobuf:"bytes,1,opt,name=basedenom,proto3" json:"basedenom,omitempty"`
	Feetokens []FeeToken `protobuf:"bytes,2,rep,name=feetokens,proto3" json:"feetokens"`
}

GenesisState defines the txfees module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default txfee genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBasedenom

func (m *GenesisState) GetBasedenom() string

func (*GenesisState) GetFeetokens

func (m *GenesisState) GetFeetokens() []FeeToken

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. It does not verify that the corresponding pool IDs actually exist. This is done in InitGenesis

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 MempoolFeeOptions

type MempoolFeeOptions struct {
	MaxGasWantedPerTx         uint64
	MinGasPriceForArbitrageTx sdk.Dec
	HighGasTxThreshold        uint64
	MinGasPriceForHighGasTx   sdk.Dec
}

func NewDefaultMempoolFeeOptions

func NewDefaultMempoolFeeOptions() MempoolFeeOptions

func NewMempoolFeeOptions

func NewMempoolFeeOptions(opts servertypes.AppOptions) MempoolFeeOptions

type QueryBaseDenomRequest

type QueryBaseDenomRequest struct {
}

func (*QueryBaseDenomRequest) Descriptor

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

func (*QueryBaseDenomRequest) Marshal

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

func (*QueryBaseDenomRequest) MarshalTo

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

func (*QueryBaseDenomRequest) MarshalToSizedBuffer

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

func (*QueryBaseDenomRequest) ProtoMessage

func (*QueryBaseDenomRequest) ProtoMessage()

func (*QueryBaseDenomRequest) Reset

func (m *QueryBaseDenomRequest) Reset()

func (*QueryBaseDenomRequest) Size

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

func (*QueryBaseDenomRequest) String

func (m *QueryBaseDenomRequest) String() string

func (*QueryBaseDenomRequest) Unmarshal

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

func (*QueryBaseDenomRequest) XXX_DiscardUnknown

func (m *QueryBaseDenomRequest) XXX_DiscardUnknown()

func (*QueryBaseDenomRequest) XXX_Marshal

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

func (*QueryBaseDenomRequest) XXX_Merge

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

func (*QueryBaseDenomRequest) XXX_Size

func (m *QueryBaseDenomRequest) XXX_Size() int

func (*QueryBaseDenomRequest) XXX_Unmarshal

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

type QueryBaseDenomResponse

type QueryBaseDenomResponse struct {
	BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"`
}

func (*QueryBaseDenomResponse) Descriptor

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

func (*QueryBaseDenomResponse) GetBaseDenom

func (m *QueryBaseDenomResponse) GetBaseDenom() string

func (*QueryBaseDenomResponse) Marshal

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

func (*QueryBaseDenomResponse) MarshalTo

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

func (*QueryBaseDenomResponse) MarshalToSizedBuffer

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

func (*QueryBaseDenomResponse) ProtoMessage

func (*QueryBaseDenomResponse) ProtoMessage()

func (*QueryBaseDenomResponse) Reset

func (m *QueryBaseDenomResponse) Reset()

func (*QueryBaseDenomResponse) Size

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

func (*QueryBaseDenomResponse) String

func (m *QueryBaseDenomResponse) String() string

func (*QueryBaseDenomResponse) Unmarshal

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

func (*QueryBaseDenomResponse) XXX_DiscardUnknown

func (m *QueryBaseDenomResponse) XXX_DiscardUnknown()

func (*QueryBaseDenomResponse) XXX_Marshal

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

func (*QueryBaseDenomResponse) XXX_Merge

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

func (*QueryBaseDenomResponse) XXX_Size

func (m *QueryBaseDenomResponse) XXX_Size() int

func (*QueryBaseDenomResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// FeeTokens returns a list of all the whitelisted fee tokens and their
	// corresponding pools It does not include the BaseDenom, which has its own
	// query endpoint
	FeeTokens(ctx context.Context, in *QueryFeeTokensRequest, opts ...grpc.CallOption) (*QueryFeeTokensResponse, error)
	DenomPoolId(ctx context.Context, in *QueryDenomPoolIdRequest, opts ...grpc.CallOption) (*QueryDenomPoolIdResponse, error)
	BaseDenom(ctx context.Context, in *QueryBaseDenomRequest, opts ...grpc.CallOption) (*QueryBaseDenomResponse, 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 QueryDenomPoolIdRequest

type QueryDenomPoolIdRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
}

func (*QueryDenomPoolIdRequest) Descriptor

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

func (*QueryDenomPoolIdRequest) GetDenom

func (m *QueryDenomPoolIdRequest) GetDenom() string

func (*QueryDenomPoolIdRequest) Marshal

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

func (*QueryDenomPoolIdRequest) MarshalTo

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

func (*QueryDenomPoolIdRequest) MarshalToSizedBuffer

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

func (*QueryDenomPoolIdRequest) ProtoMessage

func (*QueryDenomPoolIdRequest) ProtoMessage()

func (*QueryDenomPoolIdRequest) Reset

func (m *QueryDenomPoolIdRequest) Reset()

func (*QueryDenomPoolIdRequest) Size

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

func (*QueryDenomPoolIdRequest) String

func (m *QueryDenomPoolIdRequest) String() string

func (*QueryDenomPoolIdRequest) Unmarshal

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

func (*QueryDenomPoolIdRequest) XXX_DiscardUnknown

func (m *QueryDenomPoolIdRequest) XXX_DiscardUnknown()

func (*QueryDenomPoolIdRequest) XXX_Marshal

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

func (*QueryDenomPoolIdRequest) XXX_Merge

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

func (*QueryDenomPoolIdRequest) XXX_Size

func (m *QueryDenomPoolIdRequest) XXX_Size() int

func (*QueryDenomPoolIdRequest) XXX_Unmarshal

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

type QueryDenomPoolIdResponse

type QueryDenomPoolIdResponse struct {
	PoolID uint64 `protobuf:"varint,1,opt,name=poolID,proto3" json:"poolID,omitempty" yaml:"pool_id"`
}

func (*QueryDenomPoolIdResponse) Descriptor

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

func (*QueryDenomPoolIdResponse) GetPoolID

func (m *QueryDenomPoolIdResponse) GetPoolID() uint64

func (*QueryDenomPoolIdResponse) Marshal

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

func (*QueryDenomPoolIdResponse) MarshalTo

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

func (*QueryDenomPoolIdResponse) MarshalToSizedBuffer

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

func (*QueryDenomPoolIdResponse) ProtoMessage

func (*QueryDenomPoolIdResponse) ProtoMessage()

func (*QueryDenomPoolIdResponse) Reset

func (m *QueryDenomPoolIdResponse) Reset()

func (*QueryDenomPoolIdResponse) Size

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

func (*QueryDenomPoolIdResponse) String

func (m *QueryDenomPoolIdResponse) String() string

func (*QueryDenomPoolIdResponse) Unmarshal

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

func (*QueryDenomPoolIdResponse) XXX_DiscardUnknown

func (m *QueryDenomPoolIdResponse) XXX_DiscardUnknown()

func (*QueryDenomPoolIdResponse) XXX_Marshal

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

func (*QueryDenomPoolIdResponse) XXX_Merge

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

func (*QueryDenomPoolIdResponse) XXX_Size

func (m *QueryDenomPoolIdResponse) XXX_Size() int

func (*QueryDenomPoolIdResponse) XXX_Unmarshal

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

type QueryFeeTokensRequest

type QueryFeeTokensRequest struct {
}

func (*QueryFeeTokensRequest) Descriptor

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

func (*QueryFeeTokensRequest) Marshal

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

func (*QueryFeeTokensRequest) MarshalTo

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

func (*QueryFeeTokensRequest) MarshalToSizedBuffer

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

func (*QueryFeeTokensRequest) ProtoMessage

func (*QueryFeeTokensRequest) ProtoMessage()

func (*QueryFeeTokensRequest) Reset

func (m *QueryFeeTokensRequest) Reset()

func (*QueryFeeTokensRequest) Size

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

func (*QueryFeeTokensRequest) String

func (m *QueryFeeTokensRequest) String() string

func (*QueryFeeTokensRequest) Unmarshal

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

func (*QueryFeeTokensRequest) XXX_DiscardUnknown

func (m *QueryFeeTokensRequest) XXX_DiscardUnknown()

func (*QueryFeeTokensRequest) XXX_Marshal

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

func (*QueryFeeTokensRequest) XXX_Merge

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

func (*QueryFeeTokensRequest) XXX_Size

func (m *QueryFeeTokensRequest) XXX_Size() int

func (*QueryFeeTokensRequest) XXX_Unmarshal

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

type QueryFeeTokensResponse

type QueryFeeTokensResponse struct {
	FeeTokens []FeeToken `protobuf:"bytes,1,rep,name=fee_tokens,json=feeTokens,proto3" json:"fee_tokens" yaml:"fee_tokens"`
}

func (*QueryFeeTokensResponse) Descriptor

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

func (*QueryFeeTokensResponse) GetFeeTokens

func (m *QueryFeeTokensResponse) GetFeeTokens() []FeeToken

func (*QueryFeeTokensResponse) Marshal

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

func (*QueryFeeTokensResponse) MarshalTo

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

func (*QueryFeeTokensResponse) MarshalToSizedBuffer

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

func (*QueryFeeTokensResponse) ProtoMessage

func (*QueryFeeTokensResponse) ProtoMessage()

func (*QueryFeeTokensResponse) Reset

func (m *QueryFeeTokensResponse) Reset()

func (*QueryFeeTokensResponse) Size

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

func (*QueryFeeTokensResponse) String

func (m *QueryFeeTokensResponse) String() string

func (*QueryFeeTokensResponse) Unmarshal

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

func (*QueryFeeTokensResponse) XXX_DiscardUnknown

func (m *QueryFeeTokensResponse) XXX_DiscardUnknown()

func (*QueryFeeTokensResponse) XXX_Marshal

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

func (*QueryFeeTokensResponse) XXX_Merge

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

func (*QueryFeeTokensResponse) XXX_Size

func (m *QueryFeeTokensResponse) XXX_Size() int

func (*QueryFeeTokensResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// FeeTokens returns a list of all the whitelisted fee tokens and their
	// corresponding pools It does not include the BaseDenom, which has its own
	// query endpoint
	FeeTokens(context.Context, *QueryFeeTokensRequest) (*QueryFeeTokensResponse, error)
	DenomPoolId(context.Context, *QueryDenomPoolIdRequest) (*QueryDenomPoolIdResponse, error)
	BaseDenom(context.Context, *QueryBaseDenomRequest) (*QueryBaseDenomResponse, error)
}

QueryServer is the server API for Query service.

type SpotPriceCalculator

type SpotPriceCalculator interface {
	CalculateSpotPrice(ctx sdk.Context, poolId uint64, tokenInDenom, tokenOutDenom string) (sdk.Dec, error)
}

SpotPriceCalculator defines the contract that must be fulfilled by a spot price calculator The x/gamm keeper is expected to satisfy this interface

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) BaseDenom

func (*UnimplementedQueryServer) DenomPoolId

func (*UnimplementedQueryServer) FeeTokens

type UpdateFeeTokenProposal

type UpdateFeeTokenProposal struct {
	Title       string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	Feetoken    FeeToken `protobuf:"bytes,3,opt,name=feetoken,proto3" json:"feetoken" yaml:"fee_token"`
}

UpdateFeeTokenProposal is a gov Content type for adding a new whitelisted fee token. It must specify a denom along with gamm pool ID to use as a spot price calculator. It can be used to add a new denom to the whitelist It can also be used to update the Pool to associate with the denom. If Pool ID is set to 0, it will remove the denom from the whitelisted set.

func NewUpdateFeeTokenProposal

func NewUpdateFeeTokenProposal(title, description string, feeToken FeeToken) UpdateFeeTokenProposal

func (*UpdateFeeTokenProposal) Descriptor

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

func (*UpdateFeeTokenProposal) Equal

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

func (*UpdateFeeTokenProposal) GetDescription

func (p *UpdateFeeTokenProposal) GetDescription() string

func (*UpdateFeeTokenProposal) GetTitle

func (p *UpdateFeeTokenProposal) GetTitle() string

func (*UpdateFeeTokenProposal) Marshal

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

func (*UpdateFeeTokenProposal) MarshalTo

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

func (*UpdateFeeTokenProposal) MarshalToSizedBuffer

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

func (*UpdateFeeTokenProposal) ProposalRoute

func (p *UpdateFeeTokenProposal) ProposalRoute() string

func (*UpdateFeeTokenProposal) ProposalType

func (p *UpdateFeeTokenProposal) ProposalType() string

func (*UpdateFeeTokenProposal) ProtoMessage

func (*UpdateFeeTokenProposal) ProtoMessage()

func (*UpdateFeeTokenProposal) Reset

func (m *UpdateFeeTokenProposal) Reset()

func (*UpdateFeeTokenProposal) Size

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

func (UpdateFeeTokenProposal) String

func (p UpdateFeeTokenProposal) String() string

func (*UpdateFeeTokenProposal) Unmarshal

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

func (*UpdateFeeTokenProposal) ValidateBasic

func (p *UpdateFeeTokenProposal) ValidateBasic() error

func (*UpdateFeeTokenProposal) XXX_DiscardUnknown

func (m *UpdateFeeTokenProposal) XXX_DiscardUnknown()

func (*UpdateFeeTokenProposal) XXX_Marshal

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

func (*UpdateFeeTokenProposal) XXX_Merge

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

func (*UpdateFeeTokenProposal) XXX_Size

func (m *UpdateFeeTokenProposal) XXX_Size() int

func (*UpdateFeeTokenProposal) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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