Versions in this module Expand all Collapse all v5 v5.0.0 Aug 18, 2023 Changes in this version + const AttributeKeyFrom + const AttributeKeyProposalId + const AttributeKeyTo + const AttributeKeyValidatorAddr + const AttributeKeyValidatorDstAddr + const AttributeKeyValidatorSrcAddr + const AttributeKeyVoteOption + const EventTypeMigrate + const EventTypeMigrateBankSend + const EventTypeMigrateGovDeposit + const EventTypeMigrateGovVote + const EventTypeMigrateStakingDelegate + const EventTypeMigrateStakingRedelegate + const EventTypeMigrateStakingUndelegate + const MigrateAccountSignaturePrefix + const ModuleName + const RouterKey + const StoreKey + const TypeMsgMigrateAccount + var ErrAlreadyMigrate = errorsmod.Register(ModuleName, 4, "already migrate") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowMigrate = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidAddress = errorsmod.Register(ModuleName, 3, "invalid address") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthMigrate = 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 ErrInvalidPublicKey = errorsmod.Register(ModuleName, 9, "invalid public key") + var ErrMigrateExecute = errorsmod.Register(ModuleName, 7, "migrate execute error") + var ErrMigrateValidate = errorsmod.Register(ModuleName, 6, "migrate validate error") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupMigrate = 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 KeyPrefixMigratedDirectionFrom = []byte + var KeyPrefixMigratedDirectionTo = []byte + var KeyPrefixMigratedRecord = []byte + var ModuleCdc = codec.NewAminoCodec(codec.NewLegacyAmino()) + var ValuePrefixMigrateFromFlag = []byte + var ValuePrefixMigrateToFlag = []byte + func GetMigratedDirectionFrom(addr sdk.AccAddress) []byte + func GetMigratedDirectionTo(addr common.Address) []byte + func GetMigratedRecordKey(addr []byte) []byte + func MigrateAccountSignatureHash(from, to []byte) []byte + func RegisterInterfaces(registry types.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 AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + IterateAccounts func(ctx sdk.Context, cb func(account authtypes.AccountI) (stop bool)) + SetAccount func(ctx sdk.Context, acc authtypes.AccountI) + type BankKeeper interface + GetAllBalances func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + SendCoins func(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error + type GenesisState struct + MigrateRecords []MigrateRecord + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (m *GenesisState) GetMigrateRecords() []MigrateRecord + 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 GovKeeper interface + ActiveProposalQueueIterator func(ctx sdk.Context, endTime time.Time) sdk.Iterator + GetDeposit func(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) (deposit govv1.Deposit, found bool) + GetDepositParams func(ctx sdk.Context) govv1.DepositParams + GetVote func(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) (vote govv1.Vote, found bool) + GetVotingParams func(ctx sdk.Context) govv1.VotingParams + InactiveProposalQueueIterator func(ctx sdk.Context, endTime time.Time) sdk.Iterator + type MigrateRecord struct + From string + Height int64 + To string + func (*MigrateRecord) Descriptor() ([]byte, []int) + func (*MigrateRecord) ProtoMessage() + func (m *MigrateRecord) GetFrom() string + func (m *MigrateRecord) GetHeight() int64 + func (m *MigrateRecord) GetTo() string + func (m *MigrateRecord) Marshal() (dAtA []byte, err error) + func (m *MigrateRecord) MarshalTo(dAtA []byte) (int, error) + func (m *MigrateRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MigrateRecord) Reset() + func (m *MigrateRecord) Size() (n int) + func (m *MigrateRecord) String() string + func (m *MigrateRecord) Unmarshal(dAtA []byte) error + func (m *MigrateRecord) XXX_DiscardUnknown() + func (m *MigrateRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MigrateRecord) XXX_Merge(src proto.Message) + func (m *MigrateRecord) XXX_Size() int + func (m *MigrateRecord) XXX_Unmarshal(b []byte) error + type MsgClient interface + MigrateAccount func(ctx context.Context, in *MsgMigrateAccount, opts ...grpc.CallOption) (*MsgMigrateAccountResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgMigrateAccount struct + From string + Signature string + To string + func NewMsgMigrateAccount(from sdk.AccAddress, to common.Address, signature string) *MsgMigrateAccount + func (*MsgMigrateAccount) Descriptor() ([]byte, []int) + func (*MsgMigrateAccount) ProtoMessage() + func (m *MsgMigrateAccount) GetFrom() string + func (m *MsgMigrateAccount) GetSignBytes() []byte + func (m *MsgMigrateAccount) GetSignature() string + func (m *MsgMigrateAccount) GetSigners() []sdk.AccAddress + func (m *MsgMigrateAccount) GetTo() string + func (m *MsgMigrateAccount) Marshal() (dAtA []byte, err error) + func (m *MsgMigrateAccount) MarshalTo(dAtA []byte) (int, error) + func (m *MsgMigrateAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgMigrateAccount) Reset() + func (m *MsgMigrateAccount) Route() string + func (m *MsgMigrateAccount) Size() (n int) + func (m *MsgMigrateAccount) String() string + func (m *MsgMigrateAccount) Type() string + func (m *MsgMigrateAccount) Unmarshal(dAtA []byte) error + func (m *MsgMigrateAccount) ValidateBasic() error + func (m *MsgMigrateAccount) XXX_DiscardUnknown() + func (m *MsgMigrateAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgMigrateAccount) XXX_Merge(src proto.Message) + func (m *MsgMigrateAccount) XXX_Size() int + func (m *MsgMigrateAccount) XXX_Unmarshal(b []byte) error + type MsgMigrateAccountResponse struct + func (*MsgMigrateAccountResponse) Descriptor() ([]byte, []int) + func (*MsgMigrateAccountResponse) ProtoMessage() + func (m *MsgMigrateAccountResponse) Marshal() (dAtA []byte, err error) + func (m *MsgMigrateAccountResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgMigrateAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgMigrateAccountResponse) Reset() + func (m *MsgMigrateAccountResponse) Size() (n int) + func (m *MsgMigrateAccountResponse) String() string + func (m *MsgMigrateAccountResponse) Unmarshal(dAtA []byte) error + func (m *MsgMigrateAccountResponse) XXX_DiscardUnknown() + func (m *MsgMigrateAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgMigrateAccountResponse) XXX_Merge(src proto.Message) + func (m *MsgMigrateAccountResponse) XXX_Size() int + func (m *MsgMigrateAccountResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + MigrateAccount func(context.Context, *MsgMigrateAccount) (*MsgMigrateAccountResponse, error) + type QueryClient interface + MigrateCheckAccount func(ctx context.Context, in *QueryMigrateCheckAccountRequest, ...) (*QueryMigrateCheckAccountResponse, error) + MigrateRecord func(ctx context.Context, in *QueryMigrateRecordRequest, opts ...grpc.CallOption) (*QueryMigrateRecordResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryMigrateCheckAccountRequest struct + From string + To string + func (*QueryMigrateCheckAccountRequest) Descriptor() ([]byte, []int) + func (*QueryMigrateCheckAccountRequest) ProtoMessage() + func (m *QueryMigrateCheckAccountRequest) GetFrom() string + func (m *QueryMigrateCheckAccountRequest) GetTo() string + func (m *QueryMigrateCheckAccountRequest) Marshal() (dAtA []byte, err error) + func (m *QueryMigrateCheckAccountRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryMigrateCheckAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryMigrateCheckAccountRequest) Reset() + func (m *QueryMigrateCheckAccountRequest) Size() (n int) + func (m *QueryMigrateCheckAccountRequest) String() string + func (m *QueryMigrateCheckAccountRequest) Unmarshal(dAtA []byte) error + func (m *QueryMigrateCheckAccountRequest) XXX_DiscardUnknown() + func (m *QueryMigrateCheckAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryMigrateCheckAccountRequest) XXX_Merge(src proto.Message) + func (m *QueryMigrateCheckAccountRequest) XXX_Size() int + func (m *QueryMigrateCheckAccountRequest) XXX_Unmarshal(b []byte) error + type QueryMigrateCheckAccountResponse struct + func (*QueryMigrateCheckAccountResponse) Descriptor() ([]byte, []int) + func (*QueryMigrateCheckAccountResponse) ProtoMessage() + func (m *QueryMigrateCheckAccountResponse) Marshal() (dAtA []byte, err error) + func (m *QueryMigrateCheckAccountResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryMigrateCheckAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryMigrateCheckAccountResponse) Reset() + func (m *QueryMigrateCheckAccountResponse) Size() (n int) + func (m *QueryMigrateCheckAccountResponse) String() string + func (m *QueryMigrateCheckAccountResponse) Unmarshal(dAtA []byte) error + func (m *QueryMigrateCheckAccountResponse) XXX_DiscardUnknown() + func (m *QueryMigrateCheckAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryMigrateCheckAccountResponse) XXX_Merge(src proto.Message) + func (m *QueryMigrateCheckAccountResponse) XXX_Size() int + func (m *QueryMigrateCheckAccountResponse) XXX_Unmarshal(b []byte) error + type QueryMigrateRecordRequest struct + Address string + func (*QueryMigrateRecordRequest) Descriptor() ([]byte, []int) + func (*QueryMigrateRecordRequest) ProtoMessage() + func (m *QueryMigrateRecordRequest) GetAddress() string + func (m *QueryMigrateRecordRequest) Marshal() (dAtA []byte, err error) + func (m *QueryMigrateRecordRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryMigrateRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryMigrateRecordRequest) Reset() + func (m *QueryMigrateRecordRequest) Size() (n int) + func (m *QueryMigrateRecordRequest) String() string + func (m *QueryMigrateRecordRequest) Unmarshal(dAtA []byte) error + func (m *QueryMigrateRecordRequest) XXX_DiscardUnknown() + func (m *QueryMigrateRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryMigrateRecordRequest) XXX_Merge(src proto.Message) + func (m *QueryMigrateRecordRequest) XXX_Size() int + func (m *QueryMigrateRecordRequest) XXX_Unmarshal(b []byte) error + type QueryMigrateRecordResponse struct + Found bool + MigrateRecord MigrateRecord + func (*QueryMigrateRecordResponse) Descriptor() ([]byte, []int) + func (*QueryMigrateRecordResponse) ProtoMessage() + func (m *QueryMigrateRecordResponse) GetFound() bool + func (m *QueryMigrateRecordResponse) GetMigrateRecord() MigrateRecord + func (m *QueryMigrateRecordResponse) Marshal() (dAtA []byte, err error) + func (m *QueryMigrateRecordResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryMigrateRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryMigrateRecordResponse) Reset() + func (m *QueryMigrateRecordResponse) Size() (n int) + func (m *QueryMigrateRecordResponse) String() string + func (m *QueryMigrateRecordResponse) Unmarshal(dAtA []byte) error + func (m *QueryMigrateRecordResponse) XXX_DiscardUnknown() + func (m *QueryMigrateRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryMigrateRecordResponse) XXX_Merge(src proto.Message) + func (m *QueryMigrateRecordResponse) XXX_Size() int + func (m *QueryMigrateRecordResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + MigrateCheckAccount func(context.Context, *QueryMigrateCheckAccountRequest) (*QueryMigrateCheckAccountResponse, error) + MigrateRecord func(context.Context, *QueryMigrateRecordRequest) (*QueryMigrateRecordResponse, error) + type StakingKeeper interface + GetDelegatorDelegations func(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []stakingtypes.Delegation) + GetRedelegationQueueTimeSlice func(ctx sdk.Context, timestamp time.Time) (dvvTriplets []stakingtypes.DVVTriplet) + GetRedelegations func(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (redelegations []stakingtypes.Redelegation) + GetUBDQueueTimeSlice func(ctx sdk.Context, timestamp time.Time) (dvPairs []stakingtypes.DVPair) + GetUnbondingDelegations func(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (unbondingDelegations []stakingtypes.UnbondingDelegation) + GetValidator func(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) MigrateAccount(ctx context.Context, req *MsgMigrateAccount) (*MsgMigrateAccountResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) MigrateCheckAccount(ctx context.Context, req *QueryMigrateCheckAccountRequest) (*QueryMigrateCheckAccountResponse, error) + func (*UnimplementedQueryServer) MigrateRecord(ctx context.Context, req *QueryMigrateRecordRequest) (*QueryMigrateRecordResponse, error) v5.0.0-rc0 Aug 8, 2023 Other modules containing this package github.com/functionx/fx-core 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