Versions in this module Expand all Collapse all v5 v5.0.0 Aug 18, 2023 Changes in this version + const TypeMsgUpdateEGFParams + const TypeMsgUpdateParams + var DefaultClaimRatio = sdk.NewDecWithPrec(1, 1) + var DefaultEgfDepositThreshold = sdkmath.NewInt(10_000).Mul(sdkmath.NewInt(1e18)) + var DefaultEgfVotingPeriod = time.Hour * 24 * 14 + var DefaultErc20Quorum = sdk.NewDecWithPrec(25, 2) + var DefaultEvmQuorum = sdk.NewDecWithPrec(25, 2) + var DefaultEvmVotingPeriod = time.Hour * 24 * 2 + var DefaultMinInitialDeposit = sdkmath.NewInt(1000).Mul(sdkmath.NewInt(1e18)) + var ErrInitialAmountTooLow = errorsmod.Register(govtypes.ModuleName, 16, "initial amount too low") + var ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var FxBaseParamsKeyPrefix = []byte("0x90") + var FxEGFParamsKey = []byte("0x91") + var ModuleCdc = codec.NewAminoCodec(codec.NewLegacyAmino()) + 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 struct + MaxSummaryLen uint64 + MaxTitleLen uint64 + func DefaultConfig() Config + type EGFParams struct + ClaimRatio string + EgfDepositThreshold types.Coin + func DefaultEGFParams() *EGFParams + func NewEGFParam(egfDepositThreshold sdk.Coin, claimRatio string) *EGFParams + func (*EGFParams) Descriptor() ([]byte, []int) + func (*EGFParams) ProtoMessage() + 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 (m *EGFParams) Reset() + func (m *EGFParams) Size() (n int) + func (m *EGFParams) String() string + func (m *EGFParams) Unmarshal(dAtA []byte) 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 + func (p *EGFParams) ValidateBasic() error + type FXMetadata struct + Metadata string + Summary string + Title string + func NewFXMetadata(title, summary, metadata string) FXMetadata + func ParseFXMetadata(fxMDStr string) (fxMD FXMetadata, err error) + func (md FXMetadata) String() string + type MsgClient interface + UpdateEGFParams func(ctx context.Context, in *MsgUpdateEGFParams, opts ...grpc.CallOption) (*MsgUpdateEGFParamsResponse, error) + UpdateParams func(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgServer interface + UpdateEGFParams func(context.Context, *MsgUpdateEGFParams) (*MsgUpdateEGFParamsResponse, error) + UpdateParams func(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + type MsgUpdateEGFParams struct + Authority string + Params EGFParams + func NewMsgUpdateEGFParams(authority string, params EGFParams) *MsgUpdateEGFParams + func (*MsgUpdateEGFParams) Descriptor() ([]byte, []int) + func (*MsgUpdateEGFParams) ProtoMessage() + 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 (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 struct + func (*MsgUpdateEGFParamsResponse) Descriptor() ([]byte, []int) + func (*MsgUpdateEGFParamsResponse) ProtoMessage() + 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 (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 struct + Authority string + Params Params + func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams + func (*MsgUpdateParams) Descriptor() ([]byte, []int) + func (*MsgUpdateParams) ProtoMessage() + 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 (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 struct + func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) + func (*MsgUpdateParamsResponse) ProtoMessage() + 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 (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 struct + MaxDepositPeriod *time.Duration + MinDeposit []types.Coin + MinInitialDeposit types.Coin + MsgType string + Quorum string + Threshold string + VetoThreshold string + VotingPeriod *time.Duration + 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 (*Params) ProtoMessage() + 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 (m *Params) Reset() + func (m *Params) Size() (n int) + func (m *Params) String() string + func (m *Params) Unmarshal(dAtA []byte) 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 + func (p *Params) ValidateBasic() error + type QueryClient interface + EGFParams func(ctx context.Context, in *QueryEGFParamsRequest, opts ...grpc.CallOption) (*QueryEGFParamsResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryEGFParamsRequest struct + func (*QueryEGFParamsRequest) Descriptor() ([]byte, []int) + func (*QueryEGFParamsRequest) ProtoMessage() + 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 (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 struct + Params EGFParams + func (*QueryEGFParamsResponse) Descriptor() ([]byte, []int) + func (*QueryEGFParamsResponse) ProtoMessage() + 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 (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 struct + MsgType string + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + 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 (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 struct + Params Params + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + 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 (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 interface + EGFParams func(context.Context, *QueryEGFParamsRequest) (*QueryEGFParamsResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) UpdateEGFParams(ctx context.Context, req *MsgUpdateEGFParams) (*MsgUpdateEGFParamsResponse, error) + func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) EGFParams(ctx context.Context, req *QueryEGFParamsRequest) (*QueryEGFParamsResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) v5.0.0-rc0 Aug 8, 2023 Other modules containing this package github.com/functionx/fx-core/v2 github.com/functionx/fx-core/v3 github.com/functionx/fx-core/v4 github.com/functionx/fx-core/v6 github.com/functionx/fx-core/v7