Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefixGasEstimate(network string) []byte
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type BankKeeper
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)
- func (m *Contract) Marshal() (dAtA []byte, err error)
- func (m *Contract) MarshalTo(dAtA []byte) (int, error)
- func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Contract) ProtoMessage()
- func (m *Contract) Reset()
- func (m *Contract) Size() (n int)
- func (m *Contract) String() string
- func (m *Contract) Unmarshal(dAtA []byte) error
- func (m *Contract) XXX_DiscardUnknown()
- func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Contract) XXX_Merge(src proto.Message)
- func (m *Contract) XXX_Size() int
- func (m *Contract) XXX_Unmarshal(b []byte) error
- type GasEstimate
- func (*GasEstimate) Descriptor() ([]byte, []int)
- func (m *GasEstimate) Marshal() (dAtA []byte, err error)
- func (m *GasEstimate) MarshalTo(dAtA []byte) (int, error)
- func (m *GasEstimate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GasEstimate) ProtoMessage()
- func (m *GasEstimate) Reset()
- func (m *GasEstimate) Size() (n int)
- func (m *GasEstimate) String() string
- func (m *GasEstimate) Unmarshal(dAtA []byte) error
- func (m *GasEstimate) XXX_DiscardUnknown()
- func (m *GasEstimate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GasEstimate) XXX_Merge(src proto.Message)
- func (m *GasEstimate) XXX_Size() int
- func (m *GasEstimate) XXX_Unmarshal(b []byte) error
- type GasEstimateRequest
- func (*GasEstimateRequest) Descriptor() ([]byte, []int)
- func (m *GasEstimateRequest) GetNetwork() string
- func (m *GasEstimateRequest) Marshal() (dAtA []byte, err error)
- func (m *GasEstimateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GasEstimateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GasEstimateRequest) ProtoMessage()
- func (m *GasEstimateRequest) Reset()
- func (m *GasEstimateRequest) Size() (n int)
- func (m *GasEstimateRequest) String() string
- func (m *GasEstimateRequest) Unmarshal(dAtA []byte) error
- func (m *GasEstimateRequest) XXX_DiscardUnknown()
- func (m *GasEstimateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GasEstimateRequest) XXX_Merge(src proto.Message)
- func (m *GasEstimateRequest) XXX_Size() int
- func (m *GasEstimateRequest) XXX_Unmarshal(b []byte) error
- type GasEstimateResponse
- func (*GasEstimateResponse) Descriptor() ([]byte, []int)
- func (m *GasEstimateResponse) GetGasEstimate() int64
- func (m *GasEstimateResponse) Marshal() (dAtA []byte, err error)
- func (m *GasEstimateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GasEstimateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GasEstimateResponse) ProtoMessage()
- func (m *GasEstimateResponse) Reset()
- func (m *GasEstimateResponse) Size() (n int)
- func (m *GasEstimateResponse) String() string
- func (m *GasEstimateResponse) Unmarshal(dAtA []byte) error
- func (m *GasEstimateResponse) XXX_DiscardUnknown()
- func (m *GasEstimateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GasEstimateResponse) XXX_Merge(src proto.Message)
- func (m *GasEstimateResponse) XXX_Size() int
- func (m *GasEstimateResponse) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type IBCTransferKeeper
- type MsgClient
- type MsgServer
- type MsgSetParams
- func (*MsgSetParams) Descriptor() ([]byte, []int)
- func (msg MsgSetParams) GetSigners() []sdk.AccAddress
- func (m *MsgSetParams) Marshal() (dAtA []byte, err error)
- func (m *MsgSetParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetParams) ProtoMessage()
- func (m *MsgSetParams) Reset()
- func (m *MsgSetParams) Size() (n int)
- func (m *MsgSetParams) String() string
- func (msg MsgSetParams) Type() string
- func (m *MsgSetParams) Unmarshal(dAtA []byte) error
- func (msg MsgSetParams) ValidateBasic() error
- func (m *MsgSetParams) XXX_DiscardUnknown()
- func (m *MsgSetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetParams) XXX_Merge(src proto.Message)
- func (m *MsgSetParams) XXX_Size() int
- func (m *MsgSetParams) XXX_Unmarshal(b []byte) error
- type MsgSetParamsResponse
- func (*MsgSetParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetParamsResponse) ProtoMessage()
- func (m *MsgSetParamsResponse) Reset()
- func (m *MsgSetParamsResponse) Size() (n int)
- func (m *MsgSetParamsResponse) String() string
- func (m *MsgSetParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetParamsResponse) XXX_DiscardUnknown()
- func (m *MsgSetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetParamsResponse) XXX_Size() int
- func (m *MsgSetParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type ParamsRequest
- func (*ParamsRequest) Descriptor() ([]byte, []int)
- func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsRequest) ProtoMessage()
- func (m *ParamsRequest) Reset()
- func (m *ParamsRequest) Size() (n int)
- func (m *ParamsRequest) String() string
- func (m *ParamsRequest) Unmarshal(dAtA []byte) error
- func (m *ParamsRequest) XXX_DiscardUnknown()
- func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsRequest) XXX_Merge(src proto.Message)
- func (m *ParamsRequest) XXX_Size() int
- func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
- type ParamsResponse
- func (*ParamsResponse) Descriptor() ([]byte, []int)
- func (m *ParamsResponse) GetParams() Params
- func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsResponse) ProtoMessage()
- func (m *ParamsResponse) Reset()
- func (m *ParamsResponse) Size() (n int)
- func (m *ParamsResponse) String() string
- func (m *ParamsResponse) Unmarshal(dAtA []byte) error
- func (m *ParamsResponse) XXX_DiscardUnknown()
- func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsResponse) XXX_Merge(src proto.Message)
- func (m *ParamsResponse) XXX_Size() int
- func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName is the name of the gasestimate module ModuleName = "gasestimate" // StoreKey is the string store representation StoreKey = ModuleName // RouterKey is the message route RouterKey = ModuleName // QuerierRoute is the query router key for the gasestimate module QuerierRoute = ModuleName )
Variables ¶
var ( ErrInvalidDestinationChain = errors.Register(ModuleName, 1, "invalid destination chain") ErrEncodeInjVoteExt = errors.Register(ModuleName, 2, "failed to encode injected vote extension tx") ErrNoCommitInfo = errors.Register(ModuleName, 3, "no commit info") )
var ( ErrInvalidLengthGasestimate = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGasestimate = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGasestimate = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ParamsKey = []byte{0x01} GasEstimateKey = []byte{0x02} )
KVStore key prefixes
var ( DefaultGasLimit = "1000000" DefaultGasAdjustment = "1.5" DefaultContractRegistry = []*Contract{ { Address: "0x5BB3E85f91D08fe92a3D123EE35050b763D6E6A7", Network: "Ethereum", }, { Address: "0x5BB3E85f91D08fe92a3D123EE35050b763D6E6A7", Network: "Arbitrum", }, } )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/gasestimate module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/staking and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func KeyPrefixGasEstimate ¶
KeyPrefixGasEstimates is the prefix for the gas estimates
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the x/gasestimate interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/gasestimate interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 BankKeeper ¶
type BankKeeper interface { GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool) SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata) SendCoinsFromAccountToModule( ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins, ) error SendCoinsFromModuleToAccount( ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins, ) error }
type Contract ¶
type Contract struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` }
Contract defines a contract that we
func (*Contract) Descriptor ¶
func (*Contract) MarshalToSizedBuffer ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) XXX_DiscardUnknown ¶
func (m *Contract) XXX_DiscardUnknown()
func (*Contract) XXX_Marshal ¶
func (*Contract) XXX_Unmarshal ¶
type GasEstimate ¶
type GasEstimate struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` GasEstimate int64 `protobuf:"varint,2,opt,name=gas_estimate,json=gasEstimate,proto3" json:"gas_estimate,omitempty"` }
GasEstimate is the gas estimate for a given network.
func (*GasEstimate) Descriptor ¶
func (*GasEstimate) Descriptor() ([]byte, []int)
func (*GasEstimate) Marshal ¶
func (m *GasEstimate) Marshal() (dAtA []byte, err error)
func (*GasEstimate) MarshalToSizedBuffer ¶
func (m *GasEstimate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GasEstimate) ProtoMessage ¶
func (*GasEstimate) ProtoMessage()
func (*GasEstimate) Reset ¶
func (m *GasEstimate) Reset()
func (*GasEstimate) Size ¶
func (m *GasEstimate) Size() (n int)
func (*GasEstimate) String ¶
func (m *GasEstimate) String() string
func (*GasEstimate) Unmarshal ¶
func (m *GasEstimate) Unmarshal(dAtA []byte) error
func (*GasEstimate) XXX_DiscardUnknown ¶
func (m *GasEstimate) XXX_DiscardUnknown()
func (*GasEstimate) XXX_Marshal ¶
func (m *GasEstimate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GasEstimate) XXX_Merge ¶
func (m *GasEstimate) XXX_Merge(src proto.Message)
func (*GasEstimate) XXX_Size ¶
func (m *GasEstimate) XXX_Size() int
func (*GasEstimate) XXX_Unmarshal ¶
func (m *GasEstimate) XXX_Unmarshal(b []byte) error
type GasEstimateRequest ¶
type GasEstimateRequest struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
}
GasEstimateRequest is the request type for the Query/GasEstimate RPC method.
func (*GasEstimateRequest) Descriptor ¶
func (*GasEstimateRequest) Descriptor() ([]byte, []int)
func (*GasEstimateRequest) GetNetwork ¶
func (m *GasEstimateRequest) GetNetwork() string
func (*GasEstimateRequest) Marshal ¶
func (m *GasEstimateRequest) Marshal() (dAtA []byte, err error)
func (*GasEstimateRequest) MarshalTo ¶
func (m *GasEstimateRequest) MarshalTo(dAtA []byte) (int, error)
func (*GasEstimateRequest) MarshalToSizedBuffer ¶
func (m *GasEstimateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GasEstimateRequest) ProtoMessage ¶
func (*GasEstimateRequest) ProtoMessage()
func (*GasEstimateRequest) Reset ¶
func (m *GasEstimateRequest) Reset()
func (*GasEstimateRequest) Size ¶
func (m *GasEstimateRequest) Size() (n int)
func (*GasEstimateRequest) String ¶
func (m *GasEstimateRequest) String() string
func (*GasEstimateRequest) Unmarshal ¶
func (m *GasEstimateRequest) Unmarshal(dAtA []byte) error
func (*GasEstimateRequest) XXX_DiscardUnknown ¶
func (m *GasEstimateRequest) XXX_DiscardUnknown()
func (*GasEstimateRequest) XXX_Marshal ¶
func (m *GasEstimateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GasEstimateRequest) XXX_Merge ¶
func (m *GasEstimateRequest) XXX_Merge(src proto.Message)
func (*GasEstimateRequest) XXX_Size ¶
func (m *GasEstimateRequest) XXX_Size() int
func (*GasEstimateRequest) XXX_Unmarshal ¶
func (m *GasEstimateRequest) XXX_Unmarshal(b []byte) error
type GasEstimateResponse ¶
type GasEstimateResponse struct {
GasEstimate int64 `protobuf:"varint,1,opt,name=gas_estimate,json=gasEstimate,proto3" json:"gas_estimate,omitempty"`
}
GasEstimateResponse is the response type for the Query/GasEstimate RPC method.
func (*GasEstimateResponse) Descriptor ¶
func (*GasEstimateResponse) Descriptor() ([]byte, []int)
func (*GasEstimateResponse) GetGasEstimate ¶
func (m *GasEstimateResponse) GetGasEstimate() int64
func (*GasEstimateResponse) Marshal ¶
func (m *GasEstimateResponse) Marshal() (dAtA []byte, err error)
func (*GasEstimateResponse) MarshalTo ¶
func (m *GasEstimateResponse) MarshalTo(dAtA []byte) (int, error)
func (*GasEstimateResponse) MarshalToSizedBuffer ¶
func (m *GasEstimateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GasEstimateResponse) ProtoMessage ¶
func (*GasEstimateResponse) ProtoMessage()
func (*GasEstimateResponse) Reset ¶
func (m *GasEstimateResponse) Reset()
func (*GasEstimateResponse) Size ¶
func (m *GasEstimateResponse) Size() (n int)
func (*GasEstimateResponse) String ¶
func (m *GasEstimateResponse) String() string
func (*GasEstimateResponse) Unmarshal ¶
func (m *GasEstimateResponse) Unmarshal(dAtA []byte) error
func (*GasEstimateResponse) XXX_DiscardUnknown ¶
func (m *GasEstimateResponse) XXX_DiscardUnknown()
func (*GasEstimateResponse) XXX_Marshal ¶
func (m *GasEstimateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GasEstimateResponse) XXX_Merge ¶
func (m *GasEstimateResponse) XXX_Merge(src proto.Message)
func (*GasEstimateResponse) XXX_Size ¶
func (m *GasEstimateResponse) XXX_Size() int
func (*GasEstimateResponse) XXX_Unmarshal ¶
func (m *GasEstimateResponse) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState represents the genesis state of the gasestimate module.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState( params Params, ) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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) 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 IBCTransferKeeper ¶
type IBCTransferKeeper interface {
Transfer(goCtx context.Context, msg *ibctransfertypes.MsgTransfer) (*ibctransfertypes.MsgTransferResponse, error)
}
type MsgClient ¶
type MsgClient interface { // SetParams sets the parameters for the gasestimate module. SetParams(ctx context.Context, in *MsgSetParams, opts ...grpc.CallOption) (*MsgSetParamsResponse, 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 { // SetParams sets the parameters for the gasestimate module. SetParams(context.Context, *MsgSetParams) (*MsgSetParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetParams ¶
type MsgSetParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the gasestimate parameters to update. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` }
MsgSetParams defines the SetParams message type.
func NewMsgSetParams ¶
func NewMsgSetParams( contractRegistry []*Contract, govAddress string, gasLimit string, gasAdjustment string, ) *MsgSetParams
func (*MsgSetParams) Descriptor ¶
func (*MsgSetParams) Descriptor() ([]byte, []int)
func (MsgSetParams) GetSigners ¶
func (msg MsgSetParams) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgSetParams) Marshal ¶
func (m *MsgSetParams) Marshal() (dAtA []byte, err error)
func (*MsgSetParams) MarshalToSizedBuffer ¶
func (m *MsgSetParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetParams) ProtoMessage ¶
func (*MsgSetParams) ProtoMessage()
func (*MsgSetParams) Reset ¶
func (m *MsgSetParams) Reset()
func (*MsgSetParams) Size ¶
func (m *MsgSetParams) Size() (n int)
func (*MsgSetParams) String ¶
func (m *MsgSetParams) String() string
func (MsgSetParams) Type ¶
func (msg MsgSetParams) Type() string
Type implements LegacyMsg interface
func (*MsgSetParams) Unmarshal ¶
func (m *MsgSetParams) Unmarshal(dAtA []byte) error
func (MsgSetParams) ValidateBasic ¶
func (msg MsgSetParams) ValidateBasic() error
ValidateBasic Implements sdk.Msg
func (*MsgSetParams) XXX_DiscardUnknown ¶
func (m *MsgSetParams) XXX_DiscardUnknown()
func (*MsgSetParams) XXX_Marshal ¶
func (m *MsgSetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetParams) XXX_Merge ¶
func (m *MsgSetParams) XXX_Merge(src proto.Message)
func (*MsgSetParams) XXX_Size ¶
func (m *MsgSetParams) XXX_Size() int
func (*MsgSetParams) XXX_Unmarshal ¶
func (m *MsgSetParams) XXX_Unmarshal(b []byte) error
type MsgSetParamsResponse ¶
type MsgSetParamsResponse struct { }
MsgSetParamsResponse defines the SetParams response type.
func (*MsgSetParamsResponse) Descriptor ¶
func (*MsgSetParamsResponse) Descriptor() ([]byte, []int)
func (*MsgSetParamsResponse) Marshal ¶
func (m *MsgSetParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetParamsResponse) MarshalTo ¶
func (m *MsgSetParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgSetParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetParamsResponse) ProtoMessage ¶
func (*MsgSetParamsResponse) ProtoMessage()
func (*MsgSetParamsResponse) Reset ¶
func (m *MsgSetParamsResponse) Reset()
func (*MsgSetParamsResponse) Size ¶
func (m *MsgSetParamsResponse) Size() (n int)
func (*MsgSetParamsResponse) String ¶
func (m *MsgSetParamsResponse) String() string
func (*MsgSetParamsResponse) Unmarshal ¶
func (m *MsgSetParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgSetParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgSetParamsResponse) XXX_DiscardUnknown()
func (*MsgSetParamsResponse) XXX_Marshal ¶
func (m *MsgSetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetParamsResponse) XXX_Merge ¶
func (m *MsgSetParamsResponse) XXX_Merge(src proto.Message)
func (*MsgSetParamsResponse) XXX_Size ¶
func (m *MsgSetParamsResponse) XXX_Size() int
func (*MsgSetParamsResponse) XXX_Unmarshal ¶
func (m *MsgSetParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // The contracts we'll send gasestimate messages to. ContractRegistry []*Contract `protobuf:"bytes,1,rep,name=contract_registry,json=contractRegistry,proto3" json:"contract_registry,omitempty"` // The gas limit for the gasestimate messages. E.x., "1000000" GasLimit string `protobuf:"bytes,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // The gas adjustment multiplier for the gasestimate messages. E.x., "1.5" GasAdjustment string `protobuf:"bytes,3,opt,name=gas_adjustment,json=gasAdjustment,proto3" json:"gas_adjustment,omitempty"` }
Params defines the parameters for the gasestimate module.
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ParamsRequest ¶
type ParamsRequest struct { }
ParamsRequest is the request type for the Query/Params RPC method.
func (*ParamsRequest) Descriptor ¶
func (*ParamsRequest) Descriptor() ([]byte, []int)
func (*ParamsRequest) Marshal ¶
func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
func (*ParamsRequest) MarshalToSizedBuffer ¶
func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsRequest) ProtoMessage ¶
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) Reset ¶
func (m *ParamsRequest) Reset()
func (*ParamsRequest) Size ¶
func (m *ParamsRequest) Size() (n int)
func (*ParamsRequest) String ¶
func (m *ParamsRequest) String() string
func (*ParamsRequest) Unmarshal ¶
func (m *ParamsRequest) Unmarshal(dAtA []byte) error
func (*ParamsRequest) XXX_DiscardUnknown ¶
func (m *ParamsRequest) XXX_DiscardUnknown()
func (*ParamsRequest) XXX_Marshal ¶
func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsRequest) XXX_Merge ¶
func (m *ParamsRequest) XXX_Merge(src proto.Message)
func (*ParamsRequest) XXX_Size ¶
func (m *ParamsRequest) XXX_Size() int
func (*ParamsRequest) XXX_Unmarshal ¶
func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
type ParamsResponse ¶
type ParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
ParamsResponse is the response type for the Query/Params RPC method.
func (*ParamsResponse) Descriptor ¶
func (*ParamsResponse) Descriptor() ([]byte, []int)
func (*ParamsResponse) GetParams ¶
func (m *ParamsResponse) GetParams() Params
func (*ParamsResponse) Marshal ¶
func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
func (*ParamsResponse) MarshalToSizedBuffer ¶
func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsResponse) ProtoMessage ¶
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) Reset ¶
func (m *ParamsResponse) Reset()
func (*ParamsResponse) Size ¶
func (m *ParamsResponse) Size() (n int)
func (*ParamsResponse) String ¶
func (m *ParamsResponse) String() string
func (*ParamsResponse) Unmarshal ¶
func (m *ParamsResponse) Unmarshal(dAtA []byte) error
func (*ParamsResponse) XXX_DiscardUnknown ¶
func (m *ParamsResponse) XXX_DiscardUnknown()
func (*ParamsResponse) XXX_Marshal ¶
func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsResponse) XXX_Merge ¶
func (m *ParamsResponse) XXX_Merge(src proto.Message)
func (*ParamsResponse) XXX_Size ¶
func (m *ParamsResponse) XXX_Size() int
func (*ParamsResponse) XXX_Unmarshal ¶
func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries all parameters. Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) // GasEstimate queries the gas estimate for a given network. GasEstimate(ctx context.Context, in *GasEstimateRequest, opts ...grpc.CallOption) (*GasEstimateResponse, 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 QueryServer ¶
type QueryServer interface { // Params queries all parameters. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) // GasEstimate queries the gas estimate for a given network. GasEstimate(context.Context, *GasEstimateRequest) (*GasEstimateResponse, 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) SetParams ¶
func (*UnimplementedMsgServer) SetParams(ctx context.Context, req *MsgSetParams) (*MsgSetParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GasEstimate ¶
func (*UnimplementedQueryServer) GasEstimate(ctx context.Context, req *GasEstimateRequest) (*GasEstimateResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)