types

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeMsgUpdateParams    = "fx_update_params"
	TypeMsgUpdateEGFParams = "fx_update_egf_params"
)

Variables

View Source
var (
	DefaultMinInitialDeposit   = sdkmath.NewInt(1000).Mul(sdkmath.NewInt(1e18))
	DefaultEgfDepositThreshold = sdkmath.NewInt(10_000).Mul(sdkmath.NewInt(1e18))
	DefaultClaimRatio          = sdk.NewDecWithPrec(1, 1)  // 10%
	DefaultErc20Quorum         = sdk.NewDecWithPrec(25, 2) // 25%
	DefaultEvmQuorum           = sdk.NewDecWithPrec(25, 2) // 25%
	DefaultEgfVotingPeriod     = time.Hour * 24 * 14       // Default egf period for deposits & voting  14 days
	DefaultEvmVotingPeriod     = time.Hour * 24 * 2        // Default evm period for deposits & voting  2 days

	// FxBaseParamsKeyPrefix is the key to query all base params
	FxBaseParamsKeyPrefix = []byte("0x90")
	// FxEGFParamsKey is the key to query all EGF params
	FxEGFParamsKey = []byte("0x91")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ErrInitialAmountTooLow = errorsmod.Register(govtypes.ModuleName, 16, "initial amount too low")

ModuleCdc is the codec for the module

Functions

func CheckEGFProposalMsg

func CheckEGFProposalMsg(msgs []*codectypes.Any) (bool, sdk.Coins)

func ExtractMsgTypeURL

func ExtractMsgTypeURL(msgs []*codectypes.Any) string

func ParamsByMsgTypeKey

func ParamsByMsgTypeKey(msgType string) []byte

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register implementations

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the Amino codec

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 Config

type Config struct {
	// MaxTitleLen defines the maximum proposal title length.
	MaxTitleLen uint64
	// MaxSummaryLen defines the maximum proposal summary length.
	MaxSummaryLen uint64
	// Config cosmos gov config
	govtypes.Config
}

Config is a config struct used for intialising the gov module to avoid using globals.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default config for gov.

type EGFParams

type EGFParams struct {
	EgfDepositThreshold types.Coin `protobuf:"bytes,1,opt,name=egf_deposit_threshold,json=egfDepositThreshold,proto3" json:"egf_deposit_threshold,omitempty"`
	ClaimRatio          string     `protobuf:"bytes,2,opt,name=claim_ratio,json=claimRatio,proto3" json:"claim_ratio,omitempty"`
}

func DefaultEGFParams

func DefaultEGFParams() *EGFParams

func NewEGFParam

func NewEGFParam(egfDepositThreshold sdk.Coin, claimRatio string) *EGFParams

func (*EGFParams) Descriptor

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

func (*EGFParams) GetClaimRatio

func (m *EGFParams) GetClaimRatio() string

func (*EGFParams) GetEgfDepositThreshold

func (m *EGFParams) GetEgfDepositThreshold() types.Coin

func (*EGFParams) Marshal

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

func (*EGFParams) MarshalTo

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

func (*EGFParams) MarshalToSizedBuffer

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

func (*EGFParams) ProtoMessage

func (*EGFParams) ProtoMessage()

func (*EGFParams) Reset

func (m *EGFParams) Reset()

func (*EGFParams) Size

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

func (*EGFParams) String

func (m *EGFParams) String() string

func (*EGFParams) Unmarshal

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

func (*EGFParams) ValidateBasic

func (p *EGFParams) ValidateBasic() error

func (*EGFParams) XXX_DiscardUnknown

func (m *EGFParams) XXX_DiscardUnknown()

func (*EGFParams) XXX_Marshal

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

func (*EGFParams) XXX_Merge

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

func (*EGFParams) XXX_Size

func (m *EGFParams) XXX_Size() int

func (*EGFParams) XXX_Unmarshal

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

type FXMetadata

type FXMetadata struct {
	Title    string `json:"title"`
	Summary  string `json:"summary"`
	Metadata string `json:"metadata"`
}

func NewFXMetadata

func NewFXMetadata(title, summary, metadata string) FXMetadata

func ParseFXMetadata

func ParseFXMetadata(fxMDStr string) (fxMD FXMetadata, err error)

func (FXMetadata) String

func (md FXMetadata) String() string

type MsgClient

type MsgClient interface {
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	UpdateEGFParams(ctx context.Context, in *MsgUpdateEGFParams, opts ...grpc.CallOption) (*MsgUpdateEGFParamsResponse, 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 {
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	UpdateEGFParams(context.Context, *MsgUpdateEGFParams) (*MsgUpdateEGFParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateEGFParams

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

MsgUpdateBaseParams is the Msg/UpdateParams request type.

func NewMsgUpdateEGFParams

func NewMsgUpdateEGFParams(authority string, params EGFParams) *MsgUpdateEGFParams

func (*MsgUpdateEGFParams) Descriptor

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

func (*MsgUpdateEGFParams) GetAuthority

func (m *MsgUpdateEGFParams) GetAuthority() string

func (*MsgUpdateEGFParams) GetParams

func (m *MsgUpdateEGFParams) GetParams() EGFParams

func (*MsgUpdateEGFParams) GetSignBytes

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

GetSignBytes returns the raw bytes for a MsgUpdateParams message that the expected signer needs to sign.

func (*MsgUpdateEGFParams) GetSigners

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

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateEGFParams) Marshal

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

func (*MsgUpdateEGFParams) MarshalTo

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

func (*MsgUpdateEGFParams) MarshalToSizedBuffer

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

func (*MsgUpdateEGFParams) ProtoMessage

func (*MsgUpdateEGFParams) ProtoMessage()

func (*MsgUpdateEGFParams) Reset

func (m *MsgUpdateEGFParams) Reset()

func (*MsgUpdateEGFParams) Route

func (m *MsgUpdateEGFParams) Route() string

Route returns the MsgUpdateParams message route.

func (*MsgUpdateEGFParams) Size

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

func (*MsgUpdateEGFParams) String

func (m *MsgUpdateEGFParams) String() string

func (*MsgUpdateEGFParams) Type

func (m *MsgUpdateEGFParams) Type() string

Type returns the MsgUpdateParams message type.

func (*MsgUpdateEGFParams) Unmarshal

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

func (*MsgUpdateEGFParams) ValidateBasic

func (m *MsgUpdateEGFParams) ValidateBasic() error

func (*MsgUpdateEGFParams) XXX_DiscardUnknown

func (m *MsgUpdateEGFParams) XXX_DiscardUnknown()

func (*MsgUpdateEGFParams) XXX_Marshal

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

func (*MsgUpdateEGFParams) XXX_Merge

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

func (*MsgUpdateEGFParams) XXX_Size

func (m *MsgUpdateEGFParams) XXX_Size() int

func (*MsgUpdateEGFParams) XXX_Unmarshal

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

type MsgUpdateEGFParamsResponse

type MsgUpdateEGFParamsResponse struct {
}

MsgUpdateBaseParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateEGFParamsResponse) Descriptor

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

func (*MsgUpdateEGFParamsResponse) Marshal

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

func (*MsgUpdateEGFParamsResponse) MarshalTo

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

func (*MsgUpdateEGFParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateEGFParamsResponse) ProtoMessage

func (*MsgUpdateEGFParamsResponse) ProtoMessage()

func (*MsgUpdateEGFParamsResponse) Reset

func (m *MsgUpdateEGFParamsResponse) Reset()

func (*MsgUpdateEGFParamsResponse) Size

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

func (*MsgUpdateEGFParamsResponse) String

func (m *MsgUpdateEGFParamsResponse) String() string

func (*MsgUpdateEGFParamsResponse) Unmarshal

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

func (*MsgUpdateEGFParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateEGFParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateEGFParamsResponse) XXX_Marshal

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

func (*MsgUpdateEGFParamsResponse) XXX_Merge

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

func (*MsgUpdateEGFParamsResponse) XXX_Size

func (m *MsgUpdateEGFParamsResponse) XXX_Size() int

func (*MsgUpdateEGFParamsResponse) XXX_Unmarshal

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

type MsgUpdateParams

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

MsgUpdateParams is the Msg/UpdateParams request type.

func NewMsgUpdateParams

func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes

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

GetSignBytes returns the raw bytes for a MsgUpdateParams message that the expected signer needs to sign.

func (*MsgUpdateParams) GetSigners

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

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Route

func (m *MsgUpdateParams) Route() string

Route returns the MsgUpdateParams message route.

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type

func (m *MsgUpdateParams) Type() string

Type returns the MsgUpdateParams message type.

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (m *MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type Params

type Params struct {
	MsgType           string         `protobuf:"bytes,1,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"`
	MinDeposit        []types.Coin   `protobuf:"bytes,2,rep,name=min_deposit,json=minDeposit,proto3" json:"min_deposit,omitempty"`
	MinInitialDeposit types.Coin     `protobuf:"bytes,3,opt,name=min_initial_deposit,json=minInitialDeposit,proto3" json:"min_initial_deposit,omitempty"`
	VotingPeriod      *time.Duration `protobuf:"bytes,4,opt,name=voting_period,json=votingPeriod,proto3,stdduration" json:"voting_period,omitempty"`
	Quorum            string         `protobuf:"bytes,5,opt,name=quorum,proto3" json:"quorum,omitempty"`
	MaxDepositPeriod  *time.Duration `protobuf:"bytes,6,opt,name=max_deposit_period,json=maxDepositPeriod,proto3,stdduration" json:"max_deposit_period,omitempty"`
	Threshold         string         `protobuf:"bytes,7,opt,name=threshold,proto3" json:"threshold,omitempty"`
	VetoThreshold     string         `protobuf:"bytes,8,opt,name=veto_threshold,json=vetoThreshold,proto3" json:"veto_threshold,omitempty"`
}

Params defines the fx x/gov module params

func DefaultParams

func DefaultParams() *Params

func EGFProposalParams

func EGFProposalParams(minDeposit []sdk.Coin, minInitialDeposit sdk.Coin, votingPeriod *time.Duration, quorum string,
	maxDepositPeriod *time.Duration, threshold string, vetoThreshold string,
) []*Params

EGFProposalParams register default egf parameters

func EVMProposalParams

func EVMProposalParams(minDeposit []sdk.Coin, minInitialDeposit sdk.Coin, votingPeriod *time.Duration, quorum string, maxDepositPeriod *time.Duration, threshold string, vetoThreshold string) []*Params

EVMProposalParams register default evm parameters

func Erc20ProposalParams

func Erc20ProposalParams(minDeposit []sdk.Coin, minInitialDeposit sdk.Coin, votingPeriod *time.Duration, quorum string,
	maxDepositPeriod *time.Duration, threshold string, vetoThreshold string,
) []*Params

Erc20ProposalParams register default erc20 parameters

func NewParam

func NewParam(msgType string, minDeposit []sdk.Coin, minInitialDeposit sdk.Coin, votingPeriod *time.Duration,
	quorum string, maxDepositPeriod *time.Duration, threshold string, vetoThreshold string,
) *Params

func (*Params) Descriptor

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

func (*Params) GetMaxDepositPeriod

func (m *Params) GetMaxDepositPeriod() *time.Duration

func (*Params) GetMinDeposit

func (m *Params) GetMinDeposit() []types.Coin

func (*Params) GetMinInitialDeposit

func (m *Params) GetMinInitialDeposit() types.Coin

func (*Params) GetMsgType

func (m *Params) GetMsgType() string

func (*Params) GetQuorum

func (m *Params) GetQuorum() string

func (*Params) GetThreshold

func (m *Params) GetThreshold() string

func (*Params) GetVetoThreshold

func (m *Params) GetVetoThreshold() string

func (*Params) GetVotingPeriod

func (m *Params) GetVotingPeriod() *time.Duration

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) ValidateBasic

func (p *Params) ValidateBasic() error

ValidateBasic performs basic validation on governance parameters.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	EGFParams(ctx context.Context, in *QueryEGFParamsRequest, opts ...grpc.CallOption) (*QueryEGFParamsResponse, 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 QueryEGFParamsRequest

type QueryEGFParamsRequest struct {
}

QueryEGFParamsRequest is the request type for the Query/EGFParams RPC method.

func (*QueryEGFParamsRequest) Descriptor

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

func (*QueryEGFParamsRequest) Marshal

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

func (*QueryEGFParamsRequest) MarshalTo

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

func (*QueryEGFParamsRequest) MarshalToSizedBuffer

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

func (*QueryEGFParamsRequest) ProtoMessage

func (*QueryEGFParamsRequest) ProtoMessage()

func (*QueryEGFParamsRequest) Reset

func (m *QueryEGFParamsRequest) Reset()

func (*QueryEGFParamsRequest) Size

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

func (*QueryEGFParamsRequest) String

func (m *QueryEGFParamsRequest) String() string

func (*QueryEGFParamsRequest) Unmarshal

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

func (*QueryEGFParamsRequest) XXX_DiscardUnknown

func (m *QueryEGFParamsRequest) XXX_DiscardUnknown()

func (*QueryEGFParamsRequest) XXX_Marshal

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

func (*QueryEGFParamsRequest) XXX_Merge

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

func (*QueryEGFParamsRequest) XXX_Size

func (m *QueryEGFParamsRequest) XXX_Size() int

func (*QueryEGFParamsRequest) XXX_Unmarshal

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

type QueryEGFParamsResponse

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

QueryEGFParamsResponse is the response type for the Query/EGFParams RPC method.

func (*QueryEGFParamsResponse) Descriptor

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

func (*QueryEGFParamsResponse) GetParams

func (m *QueryEGFParamsResponse) GetParams() EGFParams

func (*QueryEGFParamsResponse) Marshal

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

func (*QueryEGFParamsResponse) MarshalTo

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

func (*QueryEGFParamsResponse) MarshalToSizedBuffer

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

func (*QueryEGFParamsResponse) ProtoMessage

func (*QueryEGFParamsResponse) ProtoMessage()

func (*QueryEGFParamsResponse) Reset

func (m *QueryEGFParamsResponse) Reset()

func (*QueryEGFParamsResponse) Size

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

func (*QueryEGFParamsResponse) String

func (m *QueryEGFParamsResponse) String() string

func (*QueryEGFParamsResponse) Unmarshal

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

func (*QueryEGFParamsResponse) XXX_DiscardUnknown

func (m *QueryEGFParamsResponse) XXX_DiscardUnknown()

func (*QueryEGFParamsResponse) XXX_Marshal

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

func (*QueryEGFParamsResponse) XXX_Merge

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

func (*QueryEGFParamsResponse) XXX_Size

func (m *QueryEGFParamsResponse) XXX_Size() int

func (*QueryEGFParamsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
	MsgType string `protobuf:"bytes,1,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"`
}

QueryBaseParamsRequest is the request type for the Query/BaseParams RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) GetMsgType

func (m *QueryParamsRequest) GetMsgType() string

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

QueryBaseParamsResponse is the response type for the Query/BaseParams RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateEGFParams

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) EGFParams

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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