Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckEGFProposalMsg(msgs []*codectypes.Any) (bool, sdk.Coins)
- func ExtractMsgTypeURL(msgs []*codectypes.Any) string
- func ParamsByMsgTypeKey(msgType 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 Config
- type EGFParams
- func (*EGFParams) Descriptor() ([]byte, []int)
- func (m *EGFParams) GetClaimRatio() string
- func (m *EGFParams) GetEgfDepositThreshold() types.Coin
- func (m *EGFParams) Marshal() (dAtA []byte, err error)
- func (m *EGFParams) MarshalTo(dAtA []byte) (int, error)
- func (m *EGFParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EGFParams) ProtoMessage()
- func (m *EGFParams) Reset()
- func (m *EGFParams) Size() (n int)
- func (m *EGFParams) String() string
- func (m *EGFParams) Unmarshal(dAtA []byte) error
- func (p *EGFParams) ValidateBasic() error
- func (m *EGFParams) XXX_DiscardUnknown()
- func (m *EGFParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EGFParams) XXX_Merge(src proto.Message)
- func (m *EGFParams) XXX_Size() int
- func (m *EGFParams) XXX_Unmarshal(b []byte) error
- type FXMetadata
- type MsgClient
- type MsgServer
- type MsgUpdateEGFParams
- func (*MsgUpdateEGFParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateEGFParams) GetAuthority() string
- func (m *MsgUpdateEGFParams) GetParams() EGFParams
- func (m *MsgUpdateEGFParams) GetSignBytes() []byte
- func (m *MsgUpdateEGFParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateEGFParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateEGFParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateEGFParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateEGFParams) ProtoMessage()
- func (m *MsgUpdateEGFParams) Reset()
- func (m *MsgUpdateEGFParams) Route() string
- func (m *MsgUpdateEGFParams) Size() (n int)
- func (m *MsgUpdateEGFParams) String() string
- func (m *MsgUpdateEGFParams) Type() string
- func (m *MsgUpdateEGFParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateEGFParams) ValidateBasic() error
- func (m *MsgUpdateEGFParams) XXX_DiscardUnknown()
- func (m *MsgUpdateEGFParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateEGFParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateEGFParams) XXX_Size() int
- func (m *MsgUpdateEGFParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateEGFParamsResponse
- func (*MsgUpdateEGFParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateEGFParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateEGFParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateEGFParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateEGFParamsResponse) ProtoMessage()
- func (m *MsgUpdateEGFParamsResponse) Reset()
- func (m *MsgUpdateEGFParamsResponse) Size() (n int)
- func (m *MsgUpdateEGFParamsResponse) String() string
- func (m *MsgUpdateEGFParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateEGFParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateEGFParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateEGFParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateEGFParamsResponse) XXX_Size() int
- func (m *MsgUpdateEGFParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) GetSignBytes() []byte
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func DefaultParams() *Params
- func EGFProposalParams(minDeposit []sdk.Coin, minInitialDeposit sdk.Coin, votingPeriod *time.Duration, ...) []*Params
- func EVMProposalParams(minDeposit []sdk.Coin, minInitialDeposit sdk.Coin, votingPeriod *time.Duration, ...) []*Params
- func Erc20ProposalParams(minDeposit []sdk.Coin, minInitialDeposit sdk.Coin, votingPeriod *time.Duration, ...) []*Params
- func NewParam(msgType string, minDeposit []sdk.Coin, minInitialDeposit sdk.Coin, ...) *Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMaxDepositPeriod() *time.Duration
- func (m *Params) GetMinDeposit() []types.Coin
- func (m *Params) GetMinInitialDeposit() types.Coin
- func (m *Params) GetMsgType() string
- func (m *Params) GetQuorum() string
- func (m *Params) GetThreshold() string
- func (m *Params) GetVetoThreshold() string
- func (m *Params) GetVotingPeriod() *time.Duration
- 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) ValidateBasic() 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 QueryClient
- type QueryEGFParamsRequest
- func (*QueryEGFParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryEGFParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEGFParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEGFParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEGFParamsRequest) ProtoMessage()
- func (m *QueryEGFParamsRequest) Reset()
- func (m *QueryEGFParamsRequest) Size() (n int)
- func (m *QueryEGFParamsRequest) String() string
- func (m *QueryEGFParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEGFParamsRequest) XXX_DiscardUnknown()
- func (m *QueryEGFParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEGFParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryEGFParamsRequest) XXX_Size() int
- func (m *QueryEGFParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryEGFParamsResponse
- func (*QueryEGFParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryEGFParamsResponse) GetParams() EGFParams
- func (m *QueryEGFParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEGFParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEGFParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEGFParamsResponse) ProtoMessage()
- func (m *QueryEGFParamsResponse) Reset()
- func (m *QueryEGFParamsResponse) Size() (n int)
- func (m *QueryEGFParamsResponse) String() string
- func (m *QueryEGFParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEGFParamsResponse) XXX_DiscardUnknown()
- func (m *QueryEGFParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEGFParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryEGFParamsResponse) XXX_Size() int
- func (m *QueryEGFParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) GetMsgType() string
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( TypeMsgUpdateParams = "fx_update_params" TypeMsgUpdateEGFParams = "fx_update_egf_params" )
Variables ¶
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") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
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 ErrInitialAmountTooLow = errorsmod.Register(govtypes.ModuleName, 16, "initial amount too low")
var ModuleCdc = codec.NewAminoCodec(codec.NewLegacyAmino())
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 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 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 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.
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 (*EGFParams) Descriptor ¶
func (*EGFParams) GetClaimRatio ¶
func (*EGFParams) GetEgfDepositThreshold ¶
func (*EGFParams) MarshalToSizedBuffer ¶
func (*EGFParams) ProtoMessage ¶
func (*EGFParams) ProtoMessage()
func (*EGFParams) ValidateBasic ¶
func (*EGFParams) XXX_DiscardUnknown ¶
func (m *EGFParams) XXX_DiscardUnknown()
func (*EGFParams) XXX_Marshal ¶
func (*EGFParams) XXX_Unmarshal ¶
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) 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 (*Params) Descriptor ¶
func (*Params) GetMaxDepositPeriod ¶
func (*Params) GetMinDeposit ¶
func (*Params) GetMinInitialDeposit ¶
func (*Params) GetMsgType ¶
func (*Params) GetThreshold ¶
func (*Params) GetVetoThreshold ¶
func (*Params) GetVotingPeriod ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ValidateBasic ¶
ValidateBasic performs basic validation on governance parameters.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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 ¶
type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) EGFParams(context.Context, *QueryEGFParamsRequest) (*QueryEGFParamsResponse, 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) UpdateEGFParams ¶
func (*UnimplementedMsgServer) UpdateEGFParams(ctx context.Context, req *MsgUpdateEGFParams) (*MsgUpdateEGFParamsResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) EGFParams ¶
func (*UnimplementedQueryServer) EGFParams(ctx context.Context, req *QueryEGFParamsRequest) (*QueryEGFParamsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)