Versions in this module Expand all Collapse all v5 v5.0.0 Aug 18, 2023 Changes in this version + const AttributeKeyAmount + const AttributeKeyFrom + const AttributeKeyOwner + const AttributeKeyPubKey + const AttributeKeyRecipient + const AttributeKeyShares + const AttributeKeySpender + const AttributeKeyTo + const AttributeResult + const EventTypeApproveShares + const EventTypeEditConsensusPubKey + const EventTypeEditedConsensusPubKey + const EventTypeEditingConsensusPubKey + const EventTypeGrantPrivilege + const EventTypeTransferShares + const GrantPrivilegeSignaturePrefix + const TypeMsgEditConsensusPubKey + const TypeMsgGrantPrivilege + var AllowanceKey = []byte + var ConsensusProcessKey = []byte + var ConsensusPubKey = []byte + var DisablePKBytes = [33]byte + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var GrantExpirationTime = time.Unix(253402300799, 0) + var ModuleCdc = codec.NewAminoCodec(codec.NewLegacyAmino()) + var ValidatorOperatorKey = []byte + func AddressFromConsensusProcessKey(key []byte) []byte + func AddressFromConsensusPubKey(key []byte) []byte + func GetAllowanceKey(valAddr sdk.ValAddress, owner, spender sdk.AccAddress) []byte + func GetConsensusProcessKey(process CProcess, addr sdk.ValAddress) []byte + func GetConsensusPubKey(addr sdk.ValAddress) []byte + func GetValidatorOperatorKey(addr sdk.ValAddress) []byte + func GrantPrivilegeSignatureData(val, from, to []byte) []byte + func ProtoAnyToAccountPubKey(any *codectypes.Any) (cryptotypes.PubKey, error) + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func ValidateGenesis(data *GenesisState) error + func ValidateGenesisStateAllowances(allowances []Allowance) error + func ValidateGenesisStateValidators(validators []stakingtypes.Validator) error + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + SetAccount func(ctx sdk.Context, acc authtypes.AccountI) + type Allowance struct + Allowance github_com_cosmos_cosmos_sdk_types.Int + OwnerAddress string + SpenderAddress string + ValidatorAddress string + func (*Allowance) Descriptor() ([]byte, []int) + func (*Allowance) ProtoMessage() + func (a Allowance) Validate() error + func (m *Allowance) GetOwnerAddress() string + func (m *Allowance) GetSpenderAddress() string + func (m *Allowance) GetValidatorAddress() string + func (m *Allowance) Marshal() (dAtA []byte, err error) + func (m *Allowance) MarshalTo(dAtA []byte) (int, error) + func (m *Allowance) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Allowance) Reset() + func (m *Allowance) Size() (n int) + func (m *Allowance) String() string + func (m *Allowance) Unmarshal(dAtA []byte) error + func (m *Allowance) XXX_DiscardUnknown() + func (m *Allowance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Allowance) XXX_Merge(src proto.Message) + func (m *Allowance) XXX_Size() int + func (m *Allowance) XXX_Unmarshal(b []byte) error + type Allowances []Allowance + func (a Allowances) Len() int + func (a Allowances) Less(i, j int) bool + func (a Allowances) Swap(i, j int) + type AuthzKeeper interface + DeleteGrant func(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, ...) error + GetAuthorization func(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, ...) (authz.Authorization, *time.Time) + GetAuthorizations func(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress) ([]authz.Authorization, error) + SaveGrant func(ctx sdk.Context, grantee, granter sdk.AccAddress, ...) error + type CProcess []byte + var ProcessEnd CProcess = []byte{ ... } + var ProcessStart CProcess = []byte{ ... } + type GenesisState struct + Allowances []Allowance + Delegations []types.Delegation + Exported bool + LastTotalPower github_com_cosmos_cosmos_sdk_types.Int + LastValidatorPowers []types.LastValidatorPower + Params types.Params + Redelegations []types.Redelegation + UnbondingDelegations []types.UnbondingDelegation + Validators []types.Validator + func DefaultGenesisState() *GenesisState + func NewGenesisState(params stakingtypes.Params, validators []stakingtypes.Validator, ...) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (g GenesisState) UnpackInterfaces(c codectypes.AnyUnpacker) error + func (m *GenesisState) GetAllowances() []Allowance + func (m *GenesisState) GetDelegations() []types.Delegation + func (m *GenesisState) GetExported() bool + func (m *GenesisState) GetLastValidatorPowers() []types.LastValidatorPower + func (m *GenesisState) GetParams() types.Params + func (m *GenesisState) GetRedelegations() []types.Redelegation + func (m *GenesisState) GetUnbondingDelegations() []types.UnbondingDelegation + func (m *GenesisState) GetValidators() []types.Validator + 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 (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 MsgClient interface + EditConsensusPubKey func(ctx context.Context, in *MsgEditConsensusPubKey, opts ...grpc.CallOption) (*MsgEditConsensusPubKeyResponse, error) + GrantPrivilege func(ctx context.Context, in *MsgGrantPrivilege, opts ...grpc.CallOption) (*MsgGrantPrivilegeResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgEditConsensusPubKey struct + From string + Pubkey *types.Any + ValidatorAddress string + func NewMsgEditConsensusPubKey(val sdk.ValAddress, from sdk.AccAddress, pubKey cryptotypes.PubKey) (*MsgEditConsensusPubKey, error) + func (*MsgEditConsensusPubKey) Descriptor() ([]byte, []int) + func (*MsgEditConsensusPubKey) ProtoMessage() + func (m *MsgEditConsensusPubKey) GetFrom() string + func (m *MsgEditConsensusPubKey) GetPubkey() *types.Any + func (m *MsgEditConsensusPubKey) GetSignBytes() []byte + func (m *MsgEditConsensusPubKey) GetSigners() []sdk.AccAddress + func (m *MsgEditConsensusPubKey) GetValidatorAddress() string + func (m *MsgEditConsensusPubKey) Marshal() (dAtA []byte, err error) + func (m *MsgEditConsensusPubKey) MarshalTo(dAtA []byte) (int, error) + func (m *MsgEditConsensusPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgEditConsensusPubKey) Reset() + func (m *MsgEditConsensusPubKey) Route() string + func (m *MsgEditConsensusPubKey) Size() (n int) + func (m *MsgEditConsensusPubKey) String() string + func (m *MsgEditConsensusPubKey) Type() string + func (m *MsgEditConsensusPubKey) Unmarshal(dAtA []byte) error + func (m *MsgEditConsensusPubKey) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (m *MsgEditConsensusPubKey) ValidateBasic() error + func (m *MsgEditConsensusPubKey) XXX_DiscardUnknown() + func (m *MsgEditConsensusPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgEditConsensusPubKey) XXX_Merge(src proto.Message) + func (m *MsgEditConsensusPubKey) XXX_Size() int + func (m *MsgEditConsensusPubKey) XXX_Unmarshal(b []byte) error + type MsgEditConsensusPubKeyResponse struct + func (*MsgEditConsensusPubKeyResponse) Descriptor() ([]byte, []int) + func (*MsgEditConsensusPubKeyResponse) ProtoMessage() + func (m *MsgEditConsensusPubKeyResponse) Marshal() (dAtA []byte, err error) + func (m *MsgEditConsensusPubKeyResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgEditConsensusPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgEditConsensusPubKeyResponse) Reset() + func (m *MsgEditConsensusPubKeyResponse) Size() (n int) + func (m *MsgEditConsensusPubKeyResponse) String() string + func (m *MsgEditConsensusPubKeyResponse) Unmarshal(dAtA []byte) error + func (m *MsgEditConsensusPubKeyResponse) XXX_DiscardUnknown() + func (m *MsgEditConsensusPubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgEditConsensusPubKeyResponse) XXX_Merge(src proto.Message) + func (m *MsgEditConsensusPubKeyResponse) XXX_Size() int + func (m *MsgEditConsensusPubKeyResponse) XXX_Unmarshal(b []byte) error + type MsgGrantPrivilege struct + FromAddress string + Signature string + ToPubkey *types.Any + ValidatorAddress string + func NewMsgGrantPrivilege(val sdk.ValAddress, from sdk.AccAddress, pubKey cryptotypes.PubKey, ...) (*MsgGrantPrivilege, error) + func (*MsgGrantPrivilege) Descriptor() ([]byte, []int) + func (*MsgGrantPrivilege) ProtoMessage() + func (m *MsgGrantPrivilege) GetFromAddress() string + func (m *MsgGrantPrivilege) GetSignBytes() []byte + func (m *MsgGrantPrivilege) GetSignature() string + func (m *MsgGrantPrivilege) GetSigners() []sdk.AccAddress + func (m *MsgGrantPrivilege) GetToPubkey() *types.Any + func (m *MsgGrantPrivilege) GetValidatorAddress() string + func (m *MsgGrantPrivilege) Marshal() (dAtA []byte, err error) + func (m *MsgGrantPrivilege) MarshalTo(dAtA []byte) (int, error) + func (m *MsgGrantPrivilege) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgGrantPrivilege) Reset() + func (m *MsgGrantPrivilege) Route() string + func (m *MsgGrantPrivilege) Size() (n int) + func (m *MsgGrantPrivilege) String() string + func (m *MsgGrantPrivilege) Type() string + func (m *MsgGrantPrivilege) Unmarshal(dAtA []byte) error + func (m *MsgGrantPrivilege) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (m *MsgGrantPrivilege) ValidateBasic() error + func (m *MsgGrantPrivilege) XXX_DiscardUnknown() + func (m *MsgGrantPrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgGrantPrivilege) XXX_Merge(src proto.Message) + func (m *MsgGrantPrivilege) XXX_Size() int + func (m *MsgGrantPrivilege) XXX_Unmarshal(b []byte) error + type MsgGrantPrivilegeResponse struct + func (*MsgGrantPrivilegeResponse) Descriptor() ([]byte, []int) + func (*MsgGrantPrivilegeResponse) ProtoMessage() + func (m *MsgGrantPrivilegeResponse) Marshal() (dAtA []byte, err error) + func (m *MsgGrantPrivilegeResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgGrantPrivilegeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgGrantPrivilegeResponse) Reset() + func (m *MsgGrantPrivilegeResponse) Size() (n int) + func (m *MsgGrantPrivilegeResponse) String() string + func (m *MsgGrantPrivilegeResponse) Unmarshal(dAtA []byte) error + func (m *MsgGrantPrivilegeResponse) XXX_DiscardUnknown() + func (m *MsgGrantPrivilegeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgGrantPrivilegeResponse) XXX_Merge(src proto.Message) + func (m *MsgGrantPrivilegeResponse) XXX_Size() int + func (m *MsgGrantPrivilegeResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + EditConsensusPubKey func(context.Context, *MsgEditConsensusPubKey) (*MsgEditConsensusPubKeyResponse, error) + GrantPrivilege func(context.Context, *MsgGrantPrivilege) (*MsgGrantPrivilegeResponse, error) + type SlashingKeeper interface + AddPubkey func(ctx sdk.Context, pubkey cryptotypes.PubKey) error + DeleteConsensusPubKey func(ctx sdk.Context, consAddr sdk.ConsAddress) + DeleteValidatorSigningInfo func(ctx sdk.Context, consAddr sdk.ConsAddress) + GetValidatorSigningInfo func(ctx sdk.Context, consAddr sdk.ConsAddress) (info slashingtypes.ValidatorSigningInfo, found bool) + SetValidatorSigningInfo func(ctx sdk.Context, consAddr sdk.ConsAddress, ...) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) EditConsensusPubKey(ctx context.Context, req *MsgEditConsensusPubKey) (*MsgEditConsensusPubKeyResponse, error) + func (*UnimplementedMsgServer) GrantPrivilege(ctx context.Context, req *MsgGrantPrivilege) (*MsgGrantPrivilegeResponse, error) v5.0.0-rc0 Aug 8, 2023 Other modules containing this package github.com/functionx/fx-core/v4 github.com/functionx/fx-core/v6 github.com/functionx/fx-core/v7