types

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "migrate"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey is the module name router key
	RouterKey = ModuleName
)
View Source
const (
	MigrateAccountSignaturePrefix = "MigrateAccount:"

	EventTypeMigrate = "migrate"
	AttributeKeyFrom = "from"
	AttributeKeyTo   = "to"

	EventTypeMigrateBankSend = "migrate_bank_send"

	EventTypeMigrateStakingDelegate   = "migrate_staking_delegate"
	EventTypeMigrateStakingUndelegate = "migrate_staking_undelegate"
	EventTypeMigrateStakingRedelegate = "migrate_staking_redelegate"
	EventTypeMigrateGovDeposit        = "migrate_gov_deposit"
	EventTypeMigrateGovVote           = "migrate_gov_vote"
	AttributeKeyValidatorAddr         = "validator_address"
	AttributeKeyValidatorSrcAddr      = "validator_src_address"
	AttributeKeyValidatorDstAddr      = "validator_dst_address"
	AttributeKeyProposalId            = "proposal_id"
	AttributeKeyVoteOption            = "vote_option"
)
View Source
const TypeMsgMigrateAccount = "migrate_account"

Variables

View Source
var (
	ErrInvalidSignature = sdkerrors.Register(ModuleName, 2, "invalid signature")
	ErrInvalidAddress   = sdkerrors.Register(ModuleName, 3, "invalid address")
	ErrAlreadyMigrate   = sdkerrors.Register(ModuleName, 4, "already migrate")
	ErrMigrateValidate  = sdkerrors.Register(ModuleName, 6, "migrate validate error")
	ErrMigrateExecute   = sdkerrors.Register(ModuleName, 7, "migrate execute error")
	ErrSameAccount      = sdkerrors.Register(ModuleName, 8, "same account")
	ErrInvalidPublicKey = sdkerrors.Register(ModuleName, 9, "invalid public key")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyPrefixMigratedRecord        = []byte{prefixMigratedRecord}
	KeyPrefixMigratedDirectionFrom = []byte{prefixMigratedDirectionFrom}
	KeyPrefixMigratedDirectionTo   = []byte{prefixMigratedDirectionTo}

	ValuePrefixMigrateFromFlag = []byte{0x1}
	ValuePrefixMigrateToFlag   = []byte{0x2}
)
View Source
var (
	ErrInvalidLengthMigrate        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMigrate          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMigrate = 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 ModuleCdc = codec.NewLegacyAmino()

ModuleCdc is the codec for the module

Functions

func GetMigratedDirectionFrom

func GetMigratedDirectionFrom(addr sdk.AccAddress) []byte

func GetMigratedDirectionTo

func GetMigratedDirectionTo(addr common.Address) []byte

func GetMigratedRecordKey

func GetMigratedRecordKey(addr []byte) []byte

GetMigratedRecordKey returns the following key format

func MigrateAccountSignatureHash

func MigrateAccountSignatureHash(from, to []byte) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

RegisterCodec registers concrete types on the Amino codec

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the interfaces for the proto stuff

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)
	IterateAccounts(ctx sdk.Context, cb func(account authtypes.AccountI) (stop bool))
}

AccountKeeper defines the expected account keeper methods

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper methods

type GenesisState

type GenesisState struct {
	MigrateRecords []MigrateRecord `protobuf:"bytes,1,rep,name=migrate_records,json=migrateRecords,proto3" json:"migrate_records"`
}

GenesisState defines the module's genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetMigrateRecords

func (m *GenesisState) GetMigrateRecords() []MigrateRecord

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type GovKeeper

type GovKeeper interface {
	GetDepositParams(ctx sdk.Context) govtypes.DepositParams
	GetVotingParams(ctx sdk.Context) govtypes.VotingParams

	ActiveProposalQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator
	InactiveProposalQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator

	GetDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress) (deposit govtypes.Deposit, found bool)
	GetVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) (vote govtypes.Vote, found bool)
}

type MigrateRecord

type MigrateRecord struct {
	From   string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To     string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Height int64  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}

func (*MigrateRecord) Descriptor

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

func (*MigrateRecord) GetFrom

func (m *MigrateRecord) GetFrom() string

func (*MigrateRecord) GetHeight

func (m *MigrateRecord) GetHeight() int64

func (*MigrateRecord) GetTo

func (m *MigrateRecord) GetTo() string

func (*MigrateRecord) Marshal

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

func (*MigrateRecord) MarshalTo

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

func (*MigrateRecord) MarshalToSizedBuffer

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

func (*MigrateRecord) ProtoMessage

func (*MigrateRecord) ProtoMessage()

func (*MigrateRecord) Reset

func (m *MigrateRecord) Reset()

func (*MigrateRecord) Size

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

func (*MigrateRecord) String

func (m *MigrateRecord) String() string

func (*MigrateRecord) Unmarshal

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

func (*MigrateRecord) XXX_DiscardUnknown

func (m *MigrateRecord) XXX_DiscardUnknown()

func (*MigrateRecord) XXX_Marshal

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

func (*MigrateRecord) XXX_Merge

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

func (*MigrateRecord) XXX_Size

func (m *MigrateRecord) XXX_Size() int

func (*MigrateRecord) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	MigrateAccount(ctx context.Context, in *MsgMigrateAccount, opts ...grpc.CallOption) (*MsgMigrateAccountResponse, 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 MsgMigrateAccount

type MsgMigrateAccount struct {
	From      string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To        string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}

func NewMsgMigrateAccount

func NewMsgMigrateAccount(from sdk.AccAddress, to common.Address, signature string) *MsgMigrateAccount

NewMsgMigrateAccount returns a new MsgMigrateAccount

func (*MsgMigrateAccount) Descriptor

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

func (*MsgMigrateAccount) GetFrom

func (m *MsgMigrateAccount) GetFrom() string

func (*MsgMigrateAccount) GetSignBytes

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

GetSignBytes encodes the message for signing

func (*MsgMigrateAccount) GetSignature

func (m *MsgMigrateAccount) GetSignature() string

func (*MsgMigrateAccount) GetSigners

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

GetSigners defines whose signature is required

func (*MsgMigrateAccount) GetTo

func (m *MsgMigrateAccount) GetTo() string

func (*MsgMigrateAccount) Marshal

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

func (*MsgMigrateAccount) MarshalTo

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

func (*MsgMigrateAccount) MarshalToSizedBuffer

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

func (*MsgMigrateAccount) ProtoMessage

func (*MsgMigrateAccount) ProtoMessage()

func (*MsgMigrateAccount) Reset

func (m *MsgMigrateAccount) Reset()

func (*MsgMigrateAccount) Route

func (m *MsgMigrateAccount) Route() string

Route should return the name of the module

func (*MsgMigrateAccount) Size

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

func (*MsgMigrateAccount) String

func (m *MsgMigrateAccount) String() string

func (*MsgMigrateAccount) Type

func (m *MsgMigrateAccount) Type() string

Type should return the action

func (*MsgMigrateAccount) Unmarshal

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

func (*MsgMigrateAccount) ValidateBasic

func (m *MsgMigrateAccount) ValidateBasic() error

ValidateBasic performs stateless checks

func (*MsgMigrateAccount) XXX_DiscardUnknown

func (m *MsgMigrateAccount) XXX_DiscardUnknown()

func (*MsgMigrateAccount) XXX_Marshal

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

func (*MsgMigrateAccount) XXX_Merge

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

func (*MsgMigrateAccount) XXX_Size

func (m *MsgMigrateAccount) XXX_Size() int

func (*MsgMigrateAccount) XXX_Unmarshal

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

type MsgMigrateAccountResponse

type MsgMigrateAccountResponse struct {
}

func (*MsgMigrateAccountResponse) Descriptor

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

func (*MsgMigrateAccountResponse) Marshal

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

func (*MsgMigrateAccountResponse) MarshalTo

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

func (*MsgMigrateAccountResponse) MarshalToSizedBuffer

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

func (*MsgMigrateAccountResponse) ProtoMessage

func (*MsgMigrateAccountResponse) ProtoMessage()

func (*MsgMigrateAccountResponse) Reset

func (m *MsgMigrateAccountResponse) Reset()

func (*MsgMigrateAccountResponse) Size

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

func (*MsgMigrateAccountResponse) String

func (m *MsgMigrateAccountResponse) String() string

func (*MsgMigrateAccountResponse) Unmarshal

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

func (*MsgMigrateAccountResponse) XXX_DiscardUnknown

func (m *MsgMigrateAccountResponse) XXX_DiscardUnknown()

func (*MsgMigrateAccountResponse) XXX_Marshal

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

func (*MsgMigrateAccountResponse) XXX_Merge

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

func (*MsgMigrateAccountResponse) XXX_Size

func (m *MsgMigrateAccountResponse) XXX_Size() int

func (*MsgMigrateAccountResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	MigrateAccount(context.Context, *MsgMigrateAccount) (*MsgMigrateAccountResponse, error)
}

MsgServer is the server API for Msg service.

type QueryClient

type QueryClient interface {
	// DenomTrace queries a denomination trace information.
	MigrateRecord(ctx context.Context, in *QueryMigrateRecordRequest, opts ...grpc.CallOption) (*QueryMigrateRecordResponse, error)
	MigrateCheckAccount(ctx context.Context, in *QueryMigrateCheckAccountRequest, opts ...grpc.CallOption) (*QueryMigrateCheckAccountResponse, 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 QueryMigrateCheckAccountRequest

type QueryMigrateCheckAccountRequest struct {
	// migrate from address
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// migrate to address
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
}

func (*QueryMigrateCheckAccountRequest) Descriptor

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

func (*QueryMigrateCheckAccountRequest) GetFrom

func (*QueryMigrateCheckAccountRequest) GetTo

func (*QueryMigrateCheckAccountRequest) Marshal

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

func (*QueryMigrateCheckAccountRequest) MarshalTo

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

func (*QueryMigrateCheckAccountRequest) MarshalToSizedBuffer

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

func (*QueryMigrateCheckAccountRequest) ProtoMessage

func (*QueryMigrateCheckAccountRequest) ProtoMessage()

func (*QueryMigrateCheckAccountRequest) Reset

func (*QueryMigrateCheckAccountRequest) Size

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

func (*QueryMigrateCheckAccountRequest) String

func (*QueryMigrateCheckAccountRequest) Unmarshal

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

func (*QueryMigrateCheckAccountRequest) XXX_DiscardUnknown

func (m *QueryMigrateCheckAccountRequest) XXX_DiscardUnknown()

func (*QueryMigrateCheckAccountRequest) XXX_Marshal

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

func (*QueryMigrateCheckAccountRequest) XXX_Merge

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

func (*QueryMigrateCheckAccountRequest) XXX_Size

func (m *QueryMigrateCheckAccountRequest) XXX_Size() int

func (*QueryMigrateCheckAccountRequest) XXX_Unmarshal

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

type QueryMigrateCheckAccountResponse

type QueryMigrateCheckAccountResponse struct {
}

func (*QueryMigrateCheckAccountResponse) Descriptor

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

func (*QueryMigrateCheckAccountResponse) Marshal

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

func (*QueryMigrateCheckAccountResponse) MarshalTo

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

func (*QueryMigrateCheckAccountResponse) MarshalToSizedBuffer

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

func (*QueryMigrateCheckAccountResponse) ProtoMessage

func (*QueryMigrateCheckAccountResponse) ProtoMessage()

func (*QueryMigrateCheckAccountResponse) Reset

func (*QueryMigrateCheckAccountResponse) Size

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

func (*QueryMigrateCheckAccountResponse) String

func (*QueryMigrateCheckAccountResponse) Unmarshal

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

func (*QueryMigrateCheckAccountResponse) XXX_DiscardUnknown

func (m *QueryMigrateCheckAccountResponse) XXX_DiscardUnknown()

func (*QueryMigrateCheckAccountResponse) XXX_Marshal

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

func (*QueryMigrateCheckAccountResponse) XXX_Merge

func (*QueryMigrateCheckAccountResponse) XXX_Size

func (m *QueryMigrateCheckAccountResponse) XXX_Size() int

func (*QueryMigrateCheckAccountResponse) XXX_Unmarshal

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

type QueryMigrateRecordRequest

type QueryMigrateRecordRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryMigrateRecordRequest) Descriptor

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

func (*QueryMigrateRecordRequest) GetAddress

func (m *QueryMigrateRecordRequest) GetAddress() string

func (*QueryMigrateRecordRequest) Marshal

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

func (*QueryMigrateRecordRequest) MarshalTo

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

func (*QueryMigrateRecordRequest) MarshalToSizedBuffer

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

func (*QueryMigrateRecordRequest) ProtoMessage

func (*QueryMigrateRecordRequest) ProtoMessage()

func (*QueryMigrateRecordRequest) Reset

func (m *QueryMigrateRecordRequest) Reset()

func (*QueryMigrateRecordRequest) Size

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

func (*QueryMigrateRecordRequest) String

func (m *QueryMigrateRecordRequest) String() string

func (*QueryMigrateRecordRequest) Unmarshal

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

func (*QueryMigrateRecordRequest) XXX_DiscardUnknown

func (m *QueryMigrateRecordRequest) XXX_DiscardUnknown()

func (*QueryMigrateRecordRequest) XXX_Marshal

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

func (*QueryMigrateRecordRequest) XXX_Merge

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

func (*QueryMigrateRecordRequest) XXX_Size

func (m *QueryMigrateRecordRequest) XXX_Size() int

func (*QueryMigrateRecordRequest) XXX_Unmarshal

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

type QueryMigrateRecordResponse

type QueryMigrateRecordResponse struct {
	// has migrate true-> migrated, false-> not migrated.
	Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
	// migrateRecord defines the the migrate record.
	MigrateRecord MigrateRecord `protobuf:"bytes,2,opt,name=migrateRecord,proto3" json:"migrateRecord"`
}

func (*QueryMigrateRecordResponse) Descriptor

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

func (*QueryMigrateRecordResponse) GetFound

func (m *QueryMigrateRecordResponse) GetFound() bool

func (*QueryMigrateRecordResponse) GetMigrateRecord

func (m *QueryMigrateRecordResponse) GetMigrateRecord() MigrateRecord

func (*QueryMigrateRecordResponse) Marshal

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

func (*QueryMigrateRecordResponse) MarshalTo

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

func (*QueryMigrateRecordResponse) MarshalToSizedBuffer

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

func (*QueryMigrateRecordResponse) ProtoMessage

func (*QueryMigrateRecordResponse) ProtoMessage()

func (*QueryMigrateRecordResponse) Reset

func (m *QueryMigrateRecordResponse) Reset()

func (*QueryMigrateRecordResponse) Size

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

func (*QueryMigrateRecordResponse) String

func (m *QueryMigrateRecordResponse) String() string

func (*QueryMigrateRecordResponse) Unmarshal

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

func (*QueryMigrateRecordResponse) XXX_DiscardUnknown

func (m *QueryMigrateRecordResponse) XXX_DiscardUnknown()

func (*QueryMigrateRecordResponse) XXX_Marshal

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

func (*QueryMigrateRecordResponse) XXX_Merge

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

func (*QueryMigrateRecordResponse) XXX_Size

func (m *QueryMigrateRecordResponse) XXX_Size() int

func (*QueryMigrateRecordResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// DenomTrace queries a denomination trace information.
	MigrateRecord(context.Context, *QueryMigrateRecordRequest) (*QueryMigrateRecordResponse, error)
	MigrateCheckAccount(context.Context, *QueryMigrateCheckAccountRequest) (*QueryMigrateCheckAccountResponse, error)
}

QueryServer is the server API for Query service.

type StakingKeeper

type StakingKeeper interface {
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []stakingtypes.Delegation)
	GetUnbondingDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (unbondingDelegations []stakingtypes.UnbondingDelegation)
	GetRedelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (redelegations []stakingtypes.Redelegation)
	GetUBDQueueTimeSlice(ctx sdk.Context, timestamp time.Time) (dvPairs []stakingtypes.DVPair)
	GetRedelegationQueueTimeSlice(ctx sdk.Context, timestamp time.Time) (dvvTriplets []stakingtypes.DVVTriplet)
}

StakingKeeper defines the expected staking keeper methods

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) MigrateAccount

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) MigrateCheckAccount

func (*UnimplementedQueryServer) MigrateRecord

Jump to

Keyboard shortcuts

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