Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func MorseClaimableAccountKey(address string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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
- type BankKeeper
- type EventImportMorseClaimableAccounts
- func (*EventImportMorseClaimableAccounts) Descriptor() ([]byte, []int)
- func (m *EventImportMorseClaimableAccounts) GetCreatedAtHeight() int64
- func (m *EventImportMorseClaimableAccounts) GetMorseAccountStateHash() []byte
- func (m *EventImportMorseClaimableAccounts) GetNumAccounts() uint64
- func (m *EventImportMorseClaimableAccounts) Marshal() (dAtA []byte, err error)
- func (m *EventImportMorseClaimableAccounts) MarshalTo(dAtA []byte) (int, error)
- func (m *EventImportMorseClaimableAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventImportMorseClaimableAccounts) ProtoMessage()
- func (m *EventImportMorseClaimableAccounts) Reset()
- func (m *EventImportMorseClaimableAccounts) Size() (n int)
- func (m *EventImportMorseClaimableAccounts) String() string
- func (m *EventImportMorseClaimableAccounts) Unmarshal(dAtA []byte) error
- func (m *EventImportMorseClaimableAccounts) XXX_DiscardUnknown()
- func (m *EventImportMorseClaimableAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventImportMorseClaimableAccounts) XXX_Merge(src proto.Message)
- func (m *EventImportMorseClaimableAccounts) XXX_Size() int
- func (m *EventImportMorseClaimableAccounts) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetMorseClaimableAccountList() []MorseClaimableAccount
- func (m *GenesisState) GetParams() Params
- 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 (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() 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 MorseAccount
- func (*MorseAccount) Descriptor() ([]byte, []int)
- func (m *MorseAccount) Marshal() (dAtA []byte, err error)
- func (m *MorseAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseAccount) ProtoMessage()
- func (m *MorseAccount) Reset()
- func (m *MorseAccount) Size() (n int)
- func (m *MorseAccount) String() string
- func (m *MorseAccount) Unmarshal(dAtA []byte) error
- func (m *MorseAccount) XXX_DiscardUnknown()
- func (m *MorseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseAccount) XXX_Merge(src proto.Message)
- func (*MorseAccount) XXX_MessageName() string
- func (m *MorseAccount) XXX_Size() int
- func (m *MorseAccount) XXX_Unmarshal(b []byte) error
- type MorseAccountState
- func (*MorseAccountState) Descriptor() ([]byte, []int)
- func (m *MorseAccountState) GetAccounts() []*MorseClaimableAccount
- func (m MorseAccountState) GetHash() ([]byte, error)
- func (m *MorseAccountState) Marshal() (dAtA []byte, err error)
- func (m *MorseAccountState) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseAccountState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseAccountState) ProtoMessage()
- func (m *MorseAccountState) Reset()
- func (m *MorseAccountState) Size() (n int)
- func (m *MorseAccountState) String() string
- func (m *MorseAccountState) Unmarshal(dAtA []byte) error
- func (m *MorseAccountState) XXX_DiscardUnknown()
- func (m *MorseAccountState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseAccountState) XXX_Merge(src proto.Message)
- func (m *MorseAccountState) XXX_Size() int
- func (m *MorseAccountState) XXX_Unmarshal(b []byte) error
- type MorseApplication
- func (*MorseApplication) Descriptor() ([]byte, []int)
- func (this *MorseApplication) Equal(that interface{}) bool
- func (m *MorseApplication) Marshal() (dAtA []byte, err error)
- func (m *MorseApplication) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseApplication) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseApplication) ProtoMessage()
- func (m *MorseApplication) Reset()
- func (m *MorseApplication) Size() (n int)
- func (m *MorseApplication) String() string
- func (m *MorseApplication) Unmarshal(dAtA []byte) error
- func (m *MorseApplication) XXX_DiscardUnknown()
- func (m *MorseApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseApplication) XXX_Merge(src proto.Message)
- func (m *MorseApplication) XXX_Size() int
- func (m *MorseApplication) XXX_Unmarshal(b []byte) error
- type MorseApplications
- func (*MorseApplications) Descriptor() ([]byte, []int)
- func (m *MorseApplications) GetApplications() []*MorseApplication
- func (m *MorseApplications) Marshal() (dAtA []byte, err error)
- func (m *MorseApplications) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseApplications) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseApplications) ProtoMessage()
- func (m *MorseApplications) Reset()
- func (m *MorseApplications) Size() (n int)
- func (m *MorseApplications) String() string
- func (m *MorseApplications) Unmarshal(dAtA []byte) error
- func (m *MorseApplications) XXX_DiscardUnknown()
- func (m *MorseApplications) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseApplications) XXX_Merge(src proto.Message)
- func (m *MorseApplications) XXX_Size() int
- func (m *MorseApplications) XXX_Unmarshal(b []byte) error
- type MorseAuth
- func (*MorseAuth) Descriptor() ([]byte, []int)
- func (m *MorseAuth) GetAccounts() []*MorseAuthAccount
- func (m *MorseAuth) Marshal() (dAtA []byte, err error)
- func (m *MorseAuth) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseAuth) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseAuth) ProtoMessage()
- func (m *MorseAuth) Reset()
- func (m *MorseAuth) Size() (n int)
- func (m *MorseAuth) String() string
- func (m *MorseAuth) Unmarshal(dAtA []byte) error
- func (m *MorseAuth) XXX_DiscardUnknown()
- func (m *MorseAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseAuth) XXX_Merge(src proto.Message)
- func (m *MorseAuth) XXX_Size() int
- func (m *MorseAuth) XXX_Unmarshal(b []byte) error
- type MorseAuthAccount
- func (*MorseAuthAccount) Descriptor() ([]byte, []int)
- func (m *MorseAuthAccount) GetType() string
- func (m *MorseAuthAccount) GetValue() *MorseAccount
- func (m *MorseAuthAccount) Marshal() (dAtA []byte, err error)
- func (m *MorseAuthAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseAuthAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseAuthAccount) ProtoMessage()
- func (m *MorseAuthAccount) Reset()
- func (m *MorseAuthAccount) Size() (n int)
- func (m *MorseAuthAccount) String() string
- func (m *MorseAuthAccount) Unmarshal(dAtA []byte) error
- func (m *MorseAuthAccount) XXX_DiscardUnknown()
- func (m *MorseAuthAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseAuthAccount) XXX_Merge(src proto.Message)
- func (m *MorseAuthAccount) XXX_Size() int
- func (m *MorseAuthAccount) XXX_Unmarshal(b []byte) error
- type MorseClaimableAccount
- func (*MorseClaimableAccount) Descriptor() ([]byte, []int)
- func (m *MorseClaimableAccount) GetApplicationStake() types.Coin
- func (m *MorseClaimableAccount) GetClaimedAtHeight() int64
- func (m *MorseClaimableAccount) GetMorseSrcAddress() string
- func (m *MorseClaimableAccount) GetPublicKey() crypto_ed25519.PublicKey
- func (m *MorseClaimableAccount) GetShannonDestAddress() string
- func (m *MorseClaimableAccount) GetSupplierStake() types.Coin
- func (m *MorseClaimableAccount) GetUnstakedBalance() types.Coin
- func (m *MorseClaimableAccount) Marshal() (dAtA []byte, err error)
- func (m *MorseClaimableAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseClaimableAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseClaimableAccount) ProtoMessage()
- func (m *MorseClaimableAccount) Reset()
- func (m *MorseClaimableAccount) Size() (n int)
- func (m *MorseClaimableAccount) String() string
- func (m *MorseClaimableAccount) Unmarshal(dAtA []byte) error
- func (m *MorseClaimableAccount) XXX_DiscardUnknown()
- func (m *MorseClaimableAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseClaimableAccount) XXX_Merge(src proto.Message)
- func (m *MorseClaimableAccount) XXX_Size() int
- func (m *MorseClaimableAccount) XXX_Unmarshal(b []byte) error
- type MorsePos
- func (*MorsePos) Descriptor() ([]byte, []int)
- func (m *MorsePos) GetValidators() []*MorseValidator
- func (m *MorsePos) Marshal() (dAtA []byte, err error)
- func (m *MorsePos) MarshalTo(dAtA []byte) (int, error)
- func (m *MorsePos) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorsePos) ProtoMessage()
- func (m *MorsePos) Reset()
- func (m *MorsePos) Size() (n int)
- func (m *MorsePos) String() string
- func (m *MorsePos) Unmarshal(dAtA []byte) error
- func (m *MorsePos) XXX_DiscardUnknown()
- func (m *MorsePos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorsePos) XXX_Merge(src proto.Message)
- func (m *MorsePos) XXX_Size() int
- func (m *MorsePos) XXX_Unmarshal(b []byte) error
- type MorsePublicKey
- func (*MorsePublicKey) Descriptor() ([]byte, []int)
- func (m *MorsePublicKey) GetValue() crypto_ed25519.PublicKey
- func (m *MorsePublicKey) Marshal() (dAtA []byte, err error)
- func (m *MorsePublicKey) MarshalTo(dAtA []byte) (int, error)
- func (m *MorsePublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorsePublicKey) ProtoMessage()
- func (m *MorsePublicKey) Reset()
- func (m *MorsePublicKey) Size() (n int)
- func (m *MorsePublicKey) String() string
- func (m *MorsePublicKey) Unmarshal(dAtA []byte) error
- func (m *MorsePublicKey) XXX_DiscardUnknown()
- func (m *MorsePublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorsePublicKey) XXX_Merge(src proto.Message)
- func (m *MorsePublicKey) XXX_Size() int
- func (m *MorsePublicKey) XXX_Unmarshal(b []byte) error
- type MorseStateExport
- func (*MorseStateExport) Descriptor() ([]byte, []int)
- func (m *MorseStateExport) GetAppHash() string
- func (m *MorseStateExport) GetAppState() *MorseTendermintAppState
- func (m *MorseStateExport) Marshal() (dAtA []byte, err error)
- func (m *MorseStateExport) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseStateExport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseStateExport) ProtoMessage()
- func (m *MorseStateExport) Reset()
- func (m *MorseStateExport) Size() (n int)
- func (m *MorseStateExport) String() string
- func (m *MorseStateExport) Unmarshal(dAtA []byte) error
- func (m *MorseStateExport) XXX_DiscardUnknown()
- func (m *MorseStateExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseStateExport) XXX_Merge(src proto.Message)
- func (m *MorseStateExport) XXX_Size() int
- func (m *MorseStateExport) XXX_Unmarshal(b []byte) error
- type MorseTendermintAppState
- func (*MorseTendermintAppState) Descriptor() ([]byte, []int)
- func (m *MorseTendermintAppState) GetApplication() *MorseApplications
- func (m *MorseTendermintAppState) GetAuth() *MorseAuth
- func (m *MorseTendermintAppState) GetPos() *MorsePos
- func (m *MorseTendermintAppState) Marshal() (dAtA []byte, err error)
- func (m *MorseTendermintAppState) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseTendermintAppState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseTendermintAppState) ProtoMessage()
- func (m *MorseTendermintAppState) Reset()
- func (m *MorseTendermintAppState) Size() (n int)
- func (m *MorseTendermintAppState) String() string
- func (m *MorseTendermintAppState) Unmarshal(dAtA []byte) error
- func (m *MorseTendermintAppState) XXX_DiscardUnknown()
- func (m *MorseTendermintAppState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseTendermintAppState) XXX_Merge(src proto.Message)
- func (m *MorseTendermintAppState) XXX_Size() int
- func (m *MorseTendermintAppState) XXX_Unmarshal(b []byte) error
- type MorseValidator
- func (*MorseValidator) Descriptor() ([]byte, []int)
- func (this *MorseValidator) Equal(that interface{}) bool
- func (m *MorseValidator) Marshal() (dAtA []byte, err error)
- func (m *MorseValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *MorseValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MorseValidator) ProtoMessage()
- func (m *MorseValidator) Reset()
- func (m *MorseValidator) Size() (n int)
- func (m *MorseValidator) String() string
- func (m *MorseValidator) Unmarshal(dAtA []byte) error
- func (m *MorseValidator) XXX_DiscardUnknown()
- func (m *MorseValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MorseValidator) XXX_Merge(src proto.Message)
- func (m *MorseValidator) XXX_Size() int
- func (m *MorseValidator) XXX_Unmarshal(b []byte) error
- type MsgClaimMorseAccount
- func (*MsgClaimMorseAccount) Descriptor() ([]byte, []int)
- func (m *MsgClaimMorseAccount) GetMorseSignature() string
- func (m *MsgClaimMorseAccount) GetMorseSrcAddress() string
- func (m *MsgClaimMorseAccount) GetShannonDestAddress() string
- func (m *MsgClaimMorseAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimMorseAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimMorseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimMorseAccount) ProtoMessage()
- func (m *MsgClaimMorseAccount) Reset()
- func (m *MsgClaimMorseAccount) Size() (n int)
- func (m *MsgClaimMorseAccount) String() string
- func (m *MsgClaimMorseAccount) Unmarshal(dAtA []byte) error
- func (msg *MsgClaimMorseAccount) ValidateBasic() error
- func (m *MsgClaimMorseAccount) XXX_DiscardUnknown()
- func (m *MsgClaimMorseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimMorseAccount) XXX_Merge(src proto.Message)
- func (m *MsgClaimMorseAccount) XXX_Size() int
- func (m *MsgClaimMorseAccount) XXX_Unmarshal(b []byte) error
- type MsgClaimMorseAccountResponse
- func (*MsgClaimMorseAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimMorseAccountResponse) GetClaimedAtHeight() int64
- func (m *MsgClaimMorseAccountResponse) GetClaimedBalance() types.Coin
- func (m *MsgClaimMorseAccountResponse) GetMorseSrcAddress() string
- func (m *MsgClaimMorseAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimMorseAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimMorseAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimMorseAccountResponse) ProtoMessage()
- func (m *MsgClaimMorseAccountResponse) Reset()
- func (m *MsgClaimMorseAccountResponse) Size() (n int)
- func (m *MsgClaimMorseAccountResponse) String() string
- func (m *MsgClaimMorseAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimMorseAccountResponse) XXX_DiscardUnknown()
- func (m *MsgClaimMorseAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimMorseAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimMorseAccountResponse) XXX_Size() int
- func (m *MsgClaimMorseAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgImportMorseClaimableAccounts
- func (*MsgImportMorseClaimableAccounts) Descriptor() ([]byte, []int)
- func (m *MsgImportMorseClaimableAccounts) GetAuthority() string
- func (m *MsgImportMorseClaimableAccounts) GetMorseAccountState() MorseAccountState
- func (m *MsgImportMorseClaimableAccounts) GetMorseAccountStateHash() []byte
- func (m *MsgImportMorseClaimableAccounts) Marshal() (dAtA []byte, err error)
- func (m *MsgImportMorseClaimableAccounts) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgImportMorseClaimableAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgImportMorseClaimableAccounts) ProtoMessage()
- func (m *MsgImportMorseClaimableAccounts) Reset()
- func (m *MsgImportMorseClaimableAccounts) Size() (n int)
- func (m *MsgImportMorseClaimableAccounts) String() string
- func (m *MsgImportMorseClaimableAccounts) Unmarshal(dAtA []byte) error
- func (msg *MsgImportMorseClaimableAccounts) ValidateBasic() error
- func (m *MsgImportMorseClaimableAccounts) XXX_DiscardUnknown()
- func (m *MsgImportMorseClaimableAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgImportMorseClaimableAccounts) XXX_Merge(src proto.Message)
- func (m *MsgImportMorseClaimableAccounts) XXX_Size() int
- func (m *MsgImportMorseClaimableAccounts) XXX_Unmarshal(b []byte) error
- type MsgImportMorseClaimableAccountsResponse
- func (*MsgImportMorseClaimableAccountsResponse) Descriptor() ([]byte, []int)
- func (m *MsgImportMorseClaimableAccountsResponse) GetNumAccounts() uint64
- func (m *MsgImportMorseClaimableAccountsResponse) GetStateHash() []byte
- func (m *MsgImportMorseClaimableAccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgImportMorseClaimableAccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgImportMorseClaimableAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgImportMorseClaimableAccountsResponse) ProtoMessage()
- func (m *MsgImportMorseClaimableAccountsResponse) Reset()
- func (m *MsgImportMorseClaimableAccountsResponse) Size() (n int)
- func (m *MsgImportMorseClaimableAccountsResponse) String() string
- func (m *MsgImportMorseClaimableAccountsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgImportMorseClaimableAccountsResponse) XXX_DiscardUnknown()
- func (m *MsgImportMorseClaimableAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgImportMorseClaimableAccountsResponse) XXX_Merge(src proto.Message)
- func (m *MsgImportMorseClaimableAccountsResponse) XXX_Size() int
- func (m *MsgImportMorseClaimableAccountsResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- 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) Size() (n int)
- func (m *MsgUpdateParams) String() 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 ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- 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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- 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) Validate() 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 QueryAllMorseClaimableAccountRequest
- func (*QueryAllMorseClaimableAccountRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllMorseClaimableAccountRequest) GetPagination() *query.PageRequest
- func (m *QueryAllMorseClaimableAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllMorseClaimableAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllMorseClaimableAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllMorseClaimableAccountRequest) ProtoMessage()
- func (m *QueryAllMorseClaimableAccountRequest) Reset()
- func (m *QueryAllMorseClaimableAccountRequest) Size() (n int)
- func (m *QueryAllMorseClaimableAccountRequest) String() string
- func (m *QueryAllMorseClaimableAccountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllMorseClaimableAccountRequest) XXX_DiscardUnknown()
- func (m *QueryAllMorseClaimableAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllMorseClaimableAccountRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllMorseClaimableAccountRequest) XXX_Size() int
- func (m *QueryAllMorseClaimableAccountRequest) XXX_Unmarshal(b []byte) error
- type QueryAllMorseClaimableAccountResponse
- func (*QueryAllMorseClaimableAccountResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllMorseClaimableAccountResponse) GetMorseClaimableAccount() []MorseClaimableAccount
- func (m *QueryAllMorseClaimableAccountResponse) GetPagination() *query.PageResponse
- func (m *QueryAllMorseClaimableAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllMorseClaimableAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllMorseClaimableAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllMorseClaimableAccountResponse) ProtoMessage()
- func (m *QueryAllMorseClaimableAccountResponse) Reset()
- func (m *QueryAllMorseClaimableAccountResponse) Size() (n int)
- func (m *QueryAllMorseClaimableAccountResponse) String() string
- func (m *QueryAllMorseClaimableAccountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllMorseClaimableAccountResponse) XXX_DiscardUnknown()
- func (m *QueryAllMorseClaimableAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllMorseClaimableAccountResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllMorseClaimableAccountResponse) XXX_Size() int
- func (m *QueryAllMorseClaimableAccountResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetMorseClaimableAccountRequest
- func (*QueryGetMorseClaimableAccountRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetMorseClaimableAccountRequest) GetAddress() string
- func (m *QueryGetMorseClaimableAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetMorseClaimableAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetMorseClaimableAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetMorseClaimableAccountRequest) ProtoMessage()
- func (m *QueryGetMorseClaimableAccountRequest) Reset()
- func (m *QueryGetMorseClaimableAccountRequest) Size() (n int)
- func (m *QueryGetMorseClaimableAccountRequest) String() string
- func (m *QueryGetMorseClaimableAccountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetMorseClaimableAccountRequest) XXX_DiscardUnknown()
- func (m *QueryGetMorseClaimableAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetMorseClaimableAccountRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetMorseClaimableAccountRequest) XXX_Size() int
- func (m *QueryGetMorseClaimableAccountRequest) XXX_Unmarshal(b []byte) error
- type QueryGetMorseClaimableAccountResponse
- func (*QueryGetMorseClaimableAccountResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetMorseClaimableAccountResponse) GetMorseClaimableAccount() MorseClaimableAccount
- func (m *QueryGetMorseClaimableAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetMorseClaimableAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetMorseClaimableAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetMorseClaimableAccountResponse) ProtoMessage()
- func (m *QueryGetMorseClaimableAccountResponse) Reset()
- func (m *QueryGetMorseClaimableAccountResponse) Size() (n int)
- func (m *QueryGetMorseClaimableAccountResponse) String() string
- func (m *QueryGetMorseClaimableAccountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetMorseClaimableAccountResponse) XXX_DiscardUnknown()
- func (m *QueryGetMorseClaimableAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetMorseClaimableAccountResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetMorseClaimableAccountResponse) XXX_Size() int
- func (m *QueryGetMorseClaimableAccountResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- 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
- func (*UnimplementedMsgServer) ClaimMorseAccount(ctx context.Context, req *MsgClaimMorseAccount) (*MsgClaimMorseAccountResponse, error)
- func (*UnimplementedMsgServer) ImportMorseClaimableAccounts(ctx context.Context, req *MsgImportMorseClaimableAccounts) (*MsgImportMorseClaimableAccountsResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) MorseClaimableAccount(ctx context.Context, req *QueryGetMorseClaimableAccountRequest) (*QueryGetMorseClaimableAccountResponse, error)
- func (*UnimplementedQueryServer) MorseClaimableAccountAll(ctx context.Context, req *QueryAllMorseClaimableAccountRequest) (*QueryAllMorseClaimableAccountResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "migration" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_migration" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const (
// MorseClaimableAccountKeyPrefix is the prefix to retrieve all MorseClaimableAccount
MorseClaimableAccountKeyPrefix = "MorseClaimableAccount/value/"
)
Variables ¶
var ( ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected x/gov module account as the only signer for migration state import messages") ErrMorseAccountState = sdkerrors.Register(ModuleName, 1101, "morse account state is invalid") )
x/migration module sentinel errors
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMorseOffchain = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMorseOffchain = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMorseOffchain = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMorseOnchain = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMorseOnchain = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMorseOnchain = fmt.Errorf("proto: unexpected end of group") )
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 Msg_serviceDesc = _Msg_serviceDesc
var (
ParamsKey = []byte("p_migration")
)
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func MorseClaimableAccountKey ¶
MorseClaimableAccountKey returns the store key to retrieve a MorseClaimableAccount from the index fields
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected interface for the Account module.
type BankKeeper ¶
BankKeeper defines the expected interface for the Bank module.
type EventImportMorseClaimableAccounts ¶
type EventImportMorseClaimableAccounts struct {
// The height (on Shannon) at which the MorseAccountState was created on-chain.
CreatedAtHeight int64 `protobuf:"varint,1,opt,name=created_at_height,json=createdAtHeight,proto3" json:"created_at_height"`
// The onchain computed sha256 hash of the entire MorseAccountState containing the MorseClaimableAccounts which were imported.
MorseAccountStateHash []byte `protobuf:"bytes,2,opt,name=morse_account_state_hash,json=morseAccountStateHash,proto3" json:"morse_account_state_hash"`
// Number of claimable accounts (EOAs) collected from Morse state export
// NOTE: Account balances include consolidated application and supplier actor stakes
NumAccounts uint64 `protobuf:"varint,3,opt,name=num_accounts,json=numAccounts,proto3" json:"num_accounts"`
}
EventImportMorseClaimableAccounts is emitted when the MorseClaimableAccounts are created on-chain.
func (*EventImportMorseClaimableAccounts) Descriptor ¶
func (*EventImportMorseClaimableAccounts) Descriptor() ([]byte, []int)
func (*EventImportMorseClaimableAccounts) GetCreatedAtHeight ¶
func (m *EventImportMorseClaimableAccounts) GetCreatedAtHeight() int64
func (*EventImportMorseClaimableAccounts) GetMorseAccountStateHash ¶
func (m *EventImportMorseClaimableAccounts) GetMorseAccountStateHash() []byte
func (*EventImportMorseClaimableAccounts) GetNumAccounts ¶
func (m *EventImportMorseClaimableAccounts) GetNumAccounts() uint64
func (*EventImportMorseClaimableAccounts) Marshal ¶
func (m *EventImportMorseClaimableAccounts) Marshal() (dAtA []byte, err error)
func (*EventImportMorseClaimableAccounts) MarshalTo ¶
func (m *EventImportMorseClaimableAccounts) MarshalTo(dAtA []byte) (int, error)
func (*EventImportMorseClaimableAccounts) MarshalToSizedBuffer ¶
func (m *EventImportMorseClaimableAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventImportMorseClaimableAccounts) ProtoMessage ¶
func (*EventImportMorseClaimableAccounts) ProtoMessage()
func (*EventImportMorseClaimableAccounts) Reset ¶
func (m *EventImportMorseClaimableAccounts) Reset()
func (*EventImportMorseClaimableAccounts) Size ¶
func (m *EventImportMorseClaimableAccounts) Size() (n int)
func (*EventImportMorseClaimableAccounts) String ¶
func (m *EventImportMorseClaimableAccounts) String() string
func (*EventImportMorseClaimableAccounts) Unmarshal ¶
func (m *EventImportMorseClaimableAccounts) Unmarshal(dAtA []byte) error
func (*EventImportMorseClaimableAccounts) XXX_DiscardUnknown ¶
func (m *EventImportMorseClaimableAccounts) XXX_DiscardUnknown()
func (*EventImportMorseClaimableAccounts) XXX_Marshal ¶
func (m *EventImportMorseClaimableAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventImportMorseClaimableAccounts) XXX_Merge ¶
func (m *EventImportMorseClaimableAccounts) XXX_Merge(src proto.Message)
func (*EventImportMorseClaimableAccounts) XXX_Size ¶
func (m *EventImportMorseClaimableAccounts) XXX_Size() int
func (*EventImportMorseClaimableAccounts) XXX_Unmarshal ¶
func (m *EventImportMorseClaimableAccounts) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
MorseClaimableAccountList []MorseClaimableAccount `protobuf:"bytes,2,rep,name=morseClaimableAccountList,proto3" json:"morseClaimableAccountList"`
}
GenesisState defines the migration module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetMorseClaimableAccountList ¶
func (m *GenesisState) GetMorseClaimableAccountList() []MorseClaimableAccount
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
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 MorseAccount ¶
type MorseAccount struct {
// A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key.
Address github_com_cometbft_cometbft_crypto.Address `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cometbft/cometbft/crypto.Address" json:"address"`
// The ed25519 public key of the account.
PubKey *MorsePublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"public_key" yaml:"public_key"`
// The account balance; this does not include any actor stakes.
Coins []types.Coin `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins"`
}
MorseAccount is an analog of the Morse ProtoBaseAccount type. It encapsulates the minimum information required to import accounts.
See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/auth/auth.proto#L14.
func (*MorseAccount) Descriptor ¶
func (*MorseAccount) Descriptor() ([]byte, []int)
func (*MorseAccount) Marshal ¶
func (m *MorseAccount) Marshal() (dAtA []byte, err error)
func (*MorseAccount) MarshalToSizedBuffer ¶
func (m *MorseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseAccount) ProtoMessage ¶
func (*MorseAccount) ProtoMessage()
func (*MorseAccount) Reset ¶
func (m *MorseAccount) Reset()
func (*MorseAccount) Size ¶
func (m *MorseAccount) Size() (n int)
func (*MorseAccount) String ¶
func (m *MorseAccount) String() string
func (*MorseAccount) Unmarshal ¶
func (m *MorseAccount) Unmarshal(dAtA []byte) error
func (*MorseAccount) XXX_DiscardUnknown ¶
func (m *MorseAccount) XXX_DiscardUnknown()
func (*MorseAccount) XXX_Marshal ¶
func (m *MorseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseAccount) XXX_Merge ¶
func (m *MorseAccount) XXX_Merge(src proto.Message)
func (*MorseAccount) XXX_MessageName ¶
func (*MorseAccount) XXX_MessageName() string
func (*MorseAccount) XXX_Size ¶
func (m *MorseAccount) XXX_Size() int
func (*MorseAccount) XXX_Unmarshal ¶
func (m *MorseAccount) XXX_Unmarshal(b []byte) error
type MorseAccountState ¶
type MorseAccountState struct {
Accounts []*MorseClaimableAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts" yaml:"accounts"`
}
MorseAccountState is the onchain representation of all account state to be migrated from Morse. It is NEVER persisted onchain but is a dependency of the MsgImportMorseClaimableAccount handler. It's main purpose is to expose the #GetHash() method for verifying the integrity of all MorseClaimableAccounts.
func (*MorseAccountState) Descriptor ¶
func (*MorseAccountState) Descriptor() ([]byte, []int)
func (*MorseAccountState) GetAccounts ¶
func (m *MorseAccountState) GetAccounts() []*MorseClaimableAccount
func (MorseAccountState) GetHash ¶
func (m MorseAccountState) GetHash() ([]byte, error)
GetHash calculates the sha256 hash of the MorseAccountState proto structure. It is intended to be used to verify the integrity of the MorseAccountState by network actors offchain.
func (*MorseAccountState) Marshal ¶
func (m *MorseAccountState) Marshal() (dAtA []byte, err error)
func (*MorseAccountState) MarshalTo ¶
func (m *MorseAccountState) MarshalTo(dAtA []byte) (int, error)
func (*MorseAccountState) MarshalToSizedBuffer ¶
func (m *MorseAccountState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseAccountState) ProtoMessage ¶
func (*MorseAccountState) ProtoMessage()
func (*MorseAccountState) Reset ¶
func (m *MorseAccountState) Reset()
func (*MorseAccountState) Size ¶
func (m *MorseAccountState) Size() (n int)
func (*MorseAccountState) String ¶
func (m *MorseAccountState) String() string
func (*MorseAccountState) Unmarshal ¶
func (m *MorseAccountState) Unmarshal(dAtA []byte) error
func (*MorseAccountState) XXX_DiscardUnknown ¶
func (m *MorseAccountState) XXX_DiscardUnknown()
func (*MorseAccountState) XXX_Marshal ¶
func (m *MorseAccountState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseAccountState) XXX_Merge ¶
func (m *MorseAccountState) XXX_Merge(src proto.Message)
func (*MorseAccountState) XXX_Size ¶
func (m *MorseAccountState) XXX_Size() int
func (*MorseAccountState) XXX_Unmarshal ¶
func (m *MorseAccountState) XXX_Unmarshal(b []byte) error
type MorseApplication ¶
type MorseApplication struct {
// Address is a binary representation of the address corresponding
// to a Morse application's ed25519 public key.
Address github_com_cometbft_cometbft_crypto.Address `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cometbft/cometbft/crypto.Address" json:"address" yaml:"address"`
// PublicKey is the binary representation of a Morse application's ed25519 public key.
PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key" yaml:"public_key"`
// TODO_MAINNET(@Olshansk): Should status and/or jailed be considered during the migration, and if so, how?
Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed" yaml:"jailed"`
Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status" yaml:"status"`
// The string representation of the BigInt amount of upokt.
StakedTokens string `protobuf:"bytes,6,opt,name=staked_tokens,json=stakedTokens,proto3" json:"tokens"`
}
MorseApplication is a subset of the Morse ProtoApplication type. It encapsulates the minimum information required to import Morse applications.
See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/apps/apps.proto#L16
func (*MorseApplication) Descriptor ¶
func (*MorseApplication) Descriptor() ([]byte, []int)
func (*MorseApplication) Equal ¶
func (this *MorseApplication) Equal(that interface{}) bool
func (*MorseApplication) Marshal ¶
func (m *MorseApplication) Marshal() (dAtA []byte, err error)
func (*MorseApplication) MarshalToSizedBuffer ¶
func (m *MorseApplication) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseApplication) ProtoMessage ¶
func (*MorseApplication) ProtoMessage()
func (*MorseApplication) Reset ¶
func (m *MorseApplication) Reset()
func (*MorseApplication) Size ¶
func (m *MorseApplication) Size() (n int)
func (*MorseApplication) String ¶
func (m *MorseApplication) String() string
func (*MorseApplication) Unmarshal ¶
func (m *MorseApplication) Unmarshal(dAtA []byte) error
func (*MorseApplication) XXX_DiscardUnknown ¶
func (m *MorseApplication) XXX_DiscardUnknown()
func (*MorseApplication) XXX_Marshal ¶
func (m *MorseApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseApplication) XXX_Merge ¶
func (m *MorseApplication) XXX_Merge(src proto.Message)
func (*MorseApplication) XXX_Size ¶
func (m *MorseApplication) XXX_Size() int
func (*MorseApplication) XXX_Unmarshal ¶
func (m *MorseApplication) XXX_Unmarshal(b []byte) error
type MorseApplications ¶
type MorseApplications struct {
Applications []*MorseApplication `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications"`
}
A wrapper around the list of MorseApplications, necessary in order to conform to the Morse genesis structure. It encapsulates the minimum information required to import Morse applications.
See: https://github.com/pokt-network/pocket-core/blob/staging/x/apps/types/genesis.go#L4
func (*MorseApplications) Descriptor ¶
func (*MorseApplications) Descriptor() ([]byte, []int)
func (*MorseApplications) GetApplications ¶
func (m *MorseApplications) GetApplications() []*MorseApplication
func (*MorseApplications) Marshal ¶
func (m *MorseApplications) Marshal() (dAtA []byte, err error)
func (*MorseApplications) MarshalTo ¶
func (m *MorseApplications) MarshalTo(dAtA []byte) (int, error)
func (*MorseApplications) MarshalToSizedBuffer ¶
func (m *MorseApplications) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseApplications) ProtoMessage ¶
func (*MorseApplications) ProtoMessage()
func (*MorseApplications) Reset ¶
func (m *MorseApplications) Reset()
func (*MorseApplications) Size ¶
func (m *MorseApplications) Size() (n int)
func (*MorseApplications) String ¶
func (m *MorseApplications) String() string
func (*MorseApplications) Unmarshal ¶
func (m *MorseApplications) Unmarshal(dAtA []byte) error
func (*MorseApplications) XXX_DiscardUnknown ¶
func (m *MorseApplications) XXX_DiscardUnknown()
func (*MorseApplications) XXX_Marshal ¶
func (m *MorseApplications) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseApplications) XXX_Merge ¶
func (m *MorseApplications) XXX_Merge(src proto.Message)
func (*MorseApplications) XXX_Size ¶
func (m *MorseApplications) XXX_Size() int
func (*MorseApplications) XXX_Unmarshal ¶
func (m *MorseApplications) XXX_Unmarshal(b []byte) error
type MorseAuth ¶
type MorseAuth struct {
Accounts []*MorseAuthAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"`
}
A wrapper around a list of MorseAuthAccount. It encapsulates the minimum information required to import Morse accounts.
See: https://github.com/pokt-network/pocket-core/blob/staging/x/auth/types/genesis.go#L9
func (*MorseAuth) Descriptor ¶
func (*MorseAuth) GetAccounts ¶
func (m *MorseAuth) GetAccounts() []*MorseAuthAccount
func (*MorseAuth) MarshalToSizedBuffer ¶
func (*MorseAuth) ProtoMessage ¶
func (*MorseAuth) ProtoMessage()
func (*MorseAuth) XXX_DiscardUnknown ¶
func (m *MorseAuth) XXX_DiscardUnknown()
func (*MorseAuth) XXX_Marshal ¶
func (*MorseAuth) XXX_Unmarshal ¶
type MorseAuthAccount ¶
type MorseAuthAccount struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type"`
Value *MorseAccount `protobuf:"bytes,2,opt,name=value,proto3" json:"value"`
}
MorseAccount: * Wraps MorseAuthAccount information to conform to Morse genesis structure * Represents only externally owned accounts (not module accounts) * Avoids pb.Any serialization since only external accounts needed for migration
func (*MorseAuthAccount) Descriptor ¶
func (*MorseAuthAccount) Descriptor() ([]byte, []int)
func (*MorseAuthAccount) GetType ¶
func (m *MorseAuthAccount) GetType() string
func (*MorseAuthAccount) GetValue ¶
func (m *MorseAuthAccount) GetValue() *MorseAccount
func (*MorseAuthAccount) Marshal ¶
func (m *MorseAuthAccount) Marshal() (dAtA []byte, err error)
func (*MorseAuthAccount) MarshalToSizedBuffer ¶
func (m *MorseAuthAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseAuthAccount) ProtoMessage ¶
func (*MorseAuthAccount) ProtoMessage()
func (*MorseAuthAccount) Reset ¶
func (m *MorseAuthAccount) Reset()
func (*MorseAuthAccount) Size ¶
func (m *MorseAuthAccount) Size() (n int)
func (*MorseAuthAccount) String ¶
func (m *MorseAuthAccount) String() string
func (*MorseAuthAccount) Unmarshal ¶
func (m *MorseAuthAccount) Unmarshal(dAtA []byte) error
func (*MorseAuthAccount) XXX_DiscardUnknown ¶
func (m *MorseAuthAccount) XXX_DiscardUnknown()
func (*MorseAuthAccount) XXX_Marshal ¶
func (m *MorseAuthAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseAuthAccount) XXX_Merge ¶
func (m *MorseAuthAccount) XXX_Merge(src proto.Message)
func (*MorseAuthAccount) XXX_Size ¶
func (m *MorseAuthAccount) XXX_Size() int
func (*MorseAuthAccount) XXX_Unmarshal ¶
func (m *MorseAuthAccount) XXX_Unmarshal(b []byte) error
type MorseClaimableAccount ¶
type MorseClaimableAccount struct {
// The bech32-encoded address of the Shannon account to which the claimed balance will be minted.
// This field is intended to remain empty until the account has been claimed.
ShannonDestAddress string `protobuf:"bytes,1,opt,name=shannon_dest_address,json=shannonDestAddress,proto3" json:"shannon_dest_address"`
// The hex-encoded address of the Morse account whose balance will be claimed.
MorseSrcAddress string `protobuf:"bytes,2,opt,name=morse_src_address,json=morseSrcAddress,proto3" json:"morse_src_address"`
// The ed25519 public key of the account.
PublicKey crypto_ed25519.PublicKey `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3,casttype=crypto/ed25519.PublicKey" json:"public_key,omitempty"`
// The unstaked upokt tokens (i.e. account balance) available for claiming.
UnstakedBalance types.Coin `protobuf:"bytes,5,opt,name=unstaked_balance,json=unstakedBalance,proto3" json:"unstaked_balance"`
// The staked tokens associated with a supplier actor which corresponds to this account address.
// DEV_NOTE: A few contextual notes related to Morse:
// - A Supplier is called a Servicer or Node (not a full node) in Morse
// - All Validators are Servicers, not all servicers are Validators
// - Automatically, the top 100 staked Servicers are validator
// - This only accounts for servicer stake balance transition
// TODO_MAINNET(@Olshansk): Develop a strategy for bootstrapping validators in Shannon by working with the cosmos ecosystem
SupplierStake types.Coin `protobuf:"bytes,6,opt,name=supplier_stake,json=supplierStake,proto3" json:"supplier_stake"`
// The staked tokens associated with an application actor which corresponds to this account address.
ApplicationStake types.Coin `protobuf:"bytes,7,opt,name=application_stake,json=applicationStake,proto3" json:"application_stake"`
// The Shannon height at which the account was claimed.
// This field is intended to remain empty until the account has been claimed.
ClaimedAtHeight int64 `protobuf:"varint,8,opt,name=claimed_at_height,json=claimedAtHeight,proto3" json:"claimed_at_height" yaml:"claimed_at_height"`
}
MorseClaimableAccount is the onchain (persisted) representation of a Morse account which is claimable as part of the Morse -> Shannon migration. They are intended to be created during MorseAccountState import (see: MsgImportMorseClaimableAccount). It is created ONLY ONCE and NEVER deleted (per morse_src_address per network / re-genesis). It is updated ONLY ONCE, when it is claimed (per morse_src_address per network / re-genesis).
func (*MorseClaimableAccount) Descriptor ¶
func (*MorseClaimableAccount) Descriptor() ([]byte, []int)
func (*MorseClaimableAccount) GetApplicationStake ¶
func (m *MorseClaimableAccount) GetApplicationStake() types.Coin
func (*MorseClaimableAccount) GetClaimedAtHeight ¶
func (m *MorseClaimableAccount) GetClaimedAtHeight() int64
func (*MorseClaimableAccount) GetMorseSrcAddress ¶
func (m *MorseClaimableAccount) GetMorseSrcAddress() string
func (*MorseClaimableAccount) GetPublicKey ¶
func (m *MorseClaimableAccount) GetPublicKey() crypto_ed25519.PublicKey
func (*MorseClaimableAccount) GetShannonDestAddress ¶
func (m *MorseClaimableAccount) GetShannonDestAddress() string
func (*MorseClaimableAccount) GetSupplierStake ¶
func (m *MorseClaimableAccount) GetSupplierStake() types.Coin
func (*MorseClaimableAccount) GetUnstakedBalance ¶
func (m *MorseClaimableAccount) GetUnstakedBalance() types.Coin
func (*MorseClaimableAccount) Marshal ¶
func (m *MorseClaimableAccount) Marshal() (dAtA []byte, err error)
func (*MorseClaimableAccount) MarshalTo ¶
func (m *MorseClaimableAccount) MarshalTo(dAtA []byte) (int, error)
func (*MorseClaimableAccount) MarshalToSizedBuffer ¶
func (m *MorseClaimableAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseClaimableAccount) ProtoMessage ¶
func (*MorseClaimableAccount) ProtoMessage()
func (*MorseClaimableAccount) Reset ¶
func (m *MorseClaimableAccount) Reset()
func (*MorseClaimableAccount) Size ¶
func (m *MorseClaimableAccount) Size() (n int)
func (*MorseClaimableAccount) String ¶
func (m *MorseClaimableAccount) String() string
func (*MorseClaimableAccount) Unmarshal ¶
func (m *MorseClaimableAccount) Unmarshal(dAtA []byte) error
func (*MorseClaimableAccount) XXX_DiscardUnknown ¶
func (m *MorseClaimableAccount) XXX_DiscardUnknown()
func (*MorseClaimableAccount) XXX_Marshal ¶
func (m *MorseClaimableAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseClaimableAccount) XXX_Merge ¶
func (m *MorseClaimableAccount) XXX_Merge(src proto.Message)
func (*MorseClaimableAccount) XXX_Size ¶
func (m *MorseClaimableAccount) XXX_Size() int
func (*MorseClaimableAccount) XXX_Unmarshal ¶
func (m *MorseClaimableAccount) XXX_Unmarshal(b []byte) error
type MorsePos ¶
type MorsePos struct {
Validators []*MorseValidator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
}
A wrapper around the list of Morse suppliers (aka "validators", "nodes", of "servicers"). It is necessary to conform to the Morse genesis structure.
See: https://github.com/pokt-network/pocket-core/blob/staging/x/nodes/types/genesis.go#L8
func (*MorsePos) Descriptor ¶
func (*MorsePos) GetValidators ¶
func (m *MorsePos) GetValidators() []*MorseValidator
func (*MorsePos) MarshalToSizedBuffer ¶
func (*MorsePos) ProtoMessage ¶
func (*MorsePos) ProtoMessage()
func (*MorsePos) XXX_DiscardUnknown ¶
func (m *MorsePos) XXX_DiscardUnknown()
func (*MorsePos) XXX_Marshal ¶
func (*MorsePos) XXX_Unmarshal ¶
type MorsePublicKey ¶
type MorsePublicKey struct {
Value crypto_ed25519.PublicKey `protobuf:"bytes,2,opt,name=value,proto3,casttype=crypto/ed25519.PublicKey" json:"value,omitempty"`
}
MorsePublicKey is required to conform to the encoding of the Morse state export. NB: All Morse account public keys will be ed25519 keys by definition.
func (*MorsePublicKey) Descriptor ¶
func (*MorsePublicKey) Descriptor() ([]byte, []int)
func (*MorsePublicKey) GetValue ¶
func (m *MorsePublicKey) GetValue() crypto_ed25519.PublicKey
func (*MorsePublicKey) Marshal ¶
func (m *MorsePublicKey) Marshal() (dAtA []byte, err error)
func (*MorsePublicKey) MarshalToSizedBuffer ¶
func (m *MorsePublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorsePublicKey) ProtoMessage ¶
func (*MorsePublicKey) ProtoMessage()
func (*MorsePublicKey) Reset ¶
func (m *MorsePublicKey) Reset()
func (*MorsePublicKey) Size ¶
func (m *MorsePublicKey) Size() (n int)
func (*MorsePublicKey) String ¶
func (m *MorsePublicKey) String() string
func (*MorsePublicKey) Unmarshal ¶
func (m *MorsePublicKey) Unmarshal(dAtA []byte) error
func (*MorsePublicKey) XXX_DiscardUnknown ¶
func (m *MorsePublicKey) XXX_DiscardUnknown()
func (*MorsePublicKey) XXX_Marshal ¶
func (m *MorsePublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorsePublicKey) XXX_Merge ¶
func (m *MorsePublicKey) XXX_Merge(src proto.Message)
func (*MorsePublicKey) XXX_Size ¶
func (m *MorsePublicKey) XXX_Size() int
func (*MorsePublicKey) XXX_Unmarshal ¶
func (m *MorsePublicKey) XXX_Unmarshal(b []byte) error
type MorseStateExport ¶
type MorseStateExport struct {
// app_hash is the Morse tendermint state hash.
AppHash string `protobuf:"bytes,1,opt,name=app_hash,json=appHash,proto3" json:"app_hash"`
// app_state is the entire Morse tendermint application state.
AppState *MorseTendermintAppState `protobuf:"bytes,2,opt,name=app_state,json=appState,proto3" json:"app_state"`
}
MorseStateExport is the data structure that is serialized and output when running:
$ pocket utils export-genesis-for-reset ...
func (*MorseStateExport) Descriptor ¶
func (*MorseStateExport) Descriptor() ([]byte, []int)
func (*MorseStateExport) GetAppHash ¶
func (m *MorseStateExport) GetAppHash() string
func (*MorseStateExport) GetAppState ¶
func (m *MorseStateExport) GetAppState() *MorseTendermintAppState
func (*MorseStateExport) Marshal ¶
func (m *MorseStateExport) Marshal() (dAtA []byte, err error)
func (*MorseStateExport) MarshalToSizedBuffer ¶
func (m *MorseStateExport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseStateExport) ProtoMessage ¶
func (*MorseStateExport) ProtoMessage()
func (*MorseStateExport) Reset ¶
func (m *MorseStateExport) Reset()
func (*MorseStateExport) Size ¶
func (m *MorseStateExport) Size() (n int)
func (*MorseStateExport) String ¶
func (m *MorseStateExport) String() string
func (*MorseStateExport) Unmarshal ¶
func (m *MorseStateExport) Unmarshal(dAtA []byte) error
func (*MorseStateExport) XXX_DiscardUnknown ¶
func (m *MorseStateExport) XXX_DiscardUnknown()
func (*MorseStateExport) XXX_Marshal ¶
func (m *MorseStateExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseStateExport) XXX_Merge ¶
func (m *MorseStateExport) XXX_Merge(src proto.Message)
func (*MorseStateExport) XXX_Size ¶
func (m *MorseStateExport) XXX_Size() int
func (*MorseStateExport) XXX_Unmarshal ¶
func (m *MorseStateExport) XXX_Unmarshal(b []byte) error
type MorseTendermintAppState ¶
type MorseTendermintAppState struct {
Application *MorseApplications `protobuf:"bytes,1,opt,name=application,proto3" json:"application"`
Auth *MorseAuth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth"`
Pos *MorsePos `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos"`
}
MorseTendermintAppState is the tendermint application state for the Morse tendermint application; not to be confused with the pokt protocol actor. It is constructed in Morse via `PocketCoreApp#ExportAppState()`.
func (*MorseTendermintAppState) Descriptor ¶
func (*MorseTendermintAppState) Descriptor() ([]byte, []int)
func (*MorseTendermintAppState) GetApplication ¶
func (m *MorseTendermintAppState) GetApplication() *MorseApplications
func (*MorseTendermintAppState) GetAuth ¶
func (m *MorseTendermintAppState) GetAuth() *MorseAuth
func (*MorseTendermintAppState) GetPos ¶
func (m *MorseTendermintAppState) GetPos() *MorsePos
func (*MorseTendermintAppState) Marshal ¶
func (m *MorseTendermintAppState) Marshal() (dAtA []byte, err error)
func (*MorseTendermintAppState) MarshalTo ¶
func (m *MorseTendermintAppState) MarshalTo(dAtA []byte) (int, error)
func (*MorseTendermintAppState) MarshalToSizedBuffer ¶
func (m *MorseTendermintAppState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseTendermintAppState) ProtoMessage ¶
func (*MorseTendermintAppState) ProtoMessage()
func (*MorseTendermintAppState) Reset ¶
func (m *MorseTendermintAppState) Reset()
func (*MorseTendermintAppState) Size ¶
func (m *MorseTendermintAppState) Size() (n int)
func (*MorseTendermintAppState) String ¶
func (m *MorseTendermintAppState) String() string
func (*MorseTendermintAppState) Unmarshal ¶
func (m *MorseTendermintAppState) Unmarshal(dAtA []byte) error
func (*MorseTendermintAppState) XXX_DiscardUnknown ¶
func (m *MorseTendermintAppState) XXX_DiscardUnknown()
func (*MorseTendermintAppState) XXX_Marshal ¶
func (m *MorseTendermintAppState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseTendermintAppState) XXX_Merge ¶
func (m *MorseTendermintAppState) XXX_Merge(src proto.Message)
func (*MorseTendermintAppState) XXX_Size ¶
func (m *MorseTendermintAppState) XXX_Size() int
func (*MorseTendermintAppState) XXX_Unmarshal ¶
func (m *MorseTendermintAppState) XXX_Unmarshal(b []byte) error
type MorseValidator ¶
type MorseValidator struct {
// A binary representation of the address corresponding to a Morse application's ed25519 public key.
Address github_com_cometbft_cometbft_crypto.Address `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cometbft/cometbft/crypto.Address" json:"address" yaml:"address"`
// The binary representation of a Morse application's ed25519 public key.
PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key" yaml:"public_key"`
// TODO_MAINNET(@Olshansk): Should status and/or jailed be considered during the migration, and if so, how?
Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed"`
Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status"`
// The string representation of the BigInt amount of upokt.
StakedTokens string `protobuf:"bytes,7,opt,name=staked_tokens,json=stakedTokens,proto3" json:"tokens"`
}
MorseValidator is a subset of the Morse ProtoValidator type. It encapsulates the minimum information required to import Morse suppliers (aka "servicers" or "validators").
See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/pos/types.proto#L16
func (*MorseValidator) Descriptor ¶
func (*MorseValidator) Descriptor() ([]byte, []int)
func (*MorseValidator) Equal ¶
func (this *MorseValidator) Equal(that interface{}) bool
func (*MorseValidator) Marshal ¶
func (m *MorseValidator) Marshal() (dAtA []byte, err error)
func (*MorseValidator) MarshalToSizedBuffer ¶
func (m *MorseValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MorseValidator) ProtoMessage ¶
func (*MorseValidator) ProtoMessage()
func (*MorseValidator) Reset ¶
func (m *MorseValidator) Reset()
func (*MorseValidator) Size ¶
func (m *MorseValidator) Size() (n int)
func (*MorseValidator) String ¶
func (m *MorseValidator) String() string
func (*MorseValidator) Unmarshal ¶
func (m *MorseValidator) Unmarshal(dAtA []byte) error
func (*MorseValidator) XXX_DiscardUnknown ¶
func (m *MorseValidator) XXX_DiscardUnknown()
func (*MorseValidator) XXX_Marshal ¶
func (m *MorseValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MorseValidator) XXX_Merge ¶
func (m *MorseValidator) XXX_Merge(src proto.Message)
func (*MorseValidator) XXX_Size ¶
func (m *MorseValidator) XXX_Size() int
func (*MorseValidator) XXX_Unmarshal ¶
func (m *MorseValidator) XXX_Unmarshal(b []byte) error
type MsgClaimMorseAccount ¶
type MsgClaimMorseAccount struct {
// The bech32-encoded address of the Shannon account to which the claimed balance will be minted.
ShannonDestAddress string `protobuf:"bytes,1,opt,name=shannon_dest_address,json=shannonDestAddress,proto3" json:"shannon_dest_address"`
// The hex-encoded address of the Morse account whose balance will be claimed.
// E.g.: 00f9900606fa3d5c9179fc0c8513078a53a2073e
MorseSrcAddress string `protobuf:"bytes,2,opt,name=morse_src_address,json=morseSrcAddress,proto3" json:"morse_src_address"`
// The hex-encoded signature, by the Morse account, of this message (where this field is nil).
// I.e.: morse_signature = private_key.sign(marshal(MsgClaimMorseAccount{morse_signature: nil, ...}))
MorseSignature string `protobuf:"bytes,3,opt,name=morse_signature,json=morseSignature,proto3" json:"morse_signature"`
}
MsgClaimMorseAccount is used to execute a claim (one-time minting of tokens on Shannon), of the balance of the given Morse account, according to the on-chain MorseClaimableAccounts, to the balance of the given Shannon account.
NOTE: - The Shannon account specified must be the message signer - Authz grants MAY be used to delegate claiming authority to other Shannon accounts
func NewMsgClaimMorseAccount ¶
func NewMsgClaimMorseAccount(shannonDestAddress string, morseSrcAddress string, morseSignature string) *MsgClaimMorseAccount
func (*MsgClaimMorseAccount) Descriptor ¶
func (*MsgClaimMorseAccount) Descriptor() ([]byte, []int)
func (*MsgClaimMorseAccount) GetMorseSignature ¶
func (m *MsgClaimMorseAccount) GetMorseSignature() string
func (*MsgClaimMorseAccount) GetMorseSrcAddress ¶
func (m *MsgClaimMorseAccount) GetMorseSrcAddress() string
func (*MsgClaimMorseAccount) GetShannonDestAddress ¶
func (m *MsgClaimMorseAccount) GetShannonDestAddress() string
func (*MsgClaimMorseAccount) Marshal ¶
func (m *MsgClaimMorseAccount) Marshal() (dAtA []byte, err error)
func (*MsgClaimMorseAccount) MarshalTo ¶
func (m *MsgClaimMorseAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimMorseAccount) MarshalToSizedBuffer ¶
func (m *MsgClaimMorseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimMorseAccount) ProtoMessage ¶
func (*MsgClaimMorseAccount) ProtoMessage()
func (*MsgClaimMorseAccount) Reset ¶
func (m *MsgClaimMorseAccount) Reset()
func (*MsgClaimMorseAccount) Size ¶
func (m *MsgClaimMorseAccount) Size() (n int)
func (*MsgClaimMorseAccount) String ¶
func (m *MsgClaimMorseAccount) String() string
func (*MsgClaimMorseAccount) Unmarshal ¶
func (m *MsgClaimMorseAccount) Unmarshal(dAtA []byte) error
func (*MsgClaimMorseAccount) ValidateBasic ¶
func (msg *MsgClaimMorseAccount) ValidateBasic() error
func (*MsgClaimMorseAccount) XXX_DiscardUnknown ¶
func (m *MsgClaimMorseAccount) XXX_DiscardUnknown()
func (*MsgClaimMorseAccount) XXX_Marshal ¶
func (m *MsgClaimMorseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimMorseAccount) XXX_Merge ¶
func (m *MsgClaimMorseAccount) XXX_Merge(src proto.Message)
func (*MsgClaimMorseAccount) XXX_Size ¶
func (m *MsgClaimMorseAccount) XXX_Size() int
func (*MsgClaimMorseAccount) XXX_Unmarshal ¶
func (m *MsgClaimMorseAccount) XXX_Unmarshal(b []byte) error
type MsgClaimMorseAccountResponse ¶
type MsgClaimMorseAccountResponse struct {
// The hex-encoded address of the Morse account whose balance will be claimed.
// E.g.: 00f9900606fa3d5c9179fc0c8513078a53a2073e
MorseSrcAddress string `protobuf:"bytes,1,opt,name=morse_src_address,json=morseSrcAddress,proto3" json:"morse_src_address"`
// The balance which was claimed.
ClaimedBalance types.Coin `protobuf:"bytes,2,opt,name=claimed_balance,json=claimedBalance,proto3" json:"claimed_balance"`
// The height (on Shannon) at which the claim was created.
ClaimedAtHeight int64 `protobuf:"varint,3,opt,name=claimed_at_height,json=claimedAtHeight,proto3" json:"claimed_at_height,omitempty"`
}
MsgClaimMorseAccountResponse is returned from MsgClaimMorseAccount. It indicates the morse_src_address of the account which was claimed, the total balance claimed, and the height at which the claim was committed.
func (*MsgClaimMorseAccountResponse) Descriptor ¶
func (*MsgClaimMorseAccountResponse) Descriptor() ([]byte, []int)
func (*MsgClaimMorseAccountResponse) GetClaimedAtHeight ¶
func (m *MsgClaimMorseAccountResponse) GetClaimedAtHeight() int64
func (*MsgClaimMorseAccountResponse) GetClaimedBalance ¶
func (m *MsgClaimMorseAccountResponse) GetClaimedBalance() types.Coin
func (*MsgClaimMorseAccountResponse) GetMorseSrcAddress ¶
func (m *MsgClaimMorseAccountResponse) GetMorseSrcAddress() string
func (*MsgClaimMorseAccountResponse) Marshal ¶
func (m *MsgClaimMorseAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimMorseAccountResponse) MarshalTo ¶
func (m *MsgClaimMorseAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimMorseAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimMorseAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimMorseAccountResponse) ProtoMessage ¶
func (*MsgClaimMorseAccountResponse) ProtoMessage()
func (*MsgClaimMorseAccountResponse) Reset ¶
func (m *MsgClaimMorseAccountResponse) Reset()
func (*MsgClaimMorseAccountResponse) Size ¶
func (m *MsgClaimMorseAccountResponse) Size() (n int)
func (*MsgClaimMorseAccountResponse) String ¶
func (m *MsgClaimMorseAccountResponse) String() string
func (*MsgClaimMorseAccountResponse) Unmarshal ¶
func (m *MsgClaimMorseAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimMorseAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimMorseAccountResponse) XXX_DiscardUnknown()
func (*MsgClaimMorseAccountResponse) XXX_Marshal ¶
func (m *MsgClaimMorseAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimMorseAccountResponse) XXX_Merge ¶
func (m *MsgClaimMorseAccountResponse) XXX_Merge(src proto.Message)
func (*MsgClaimMorseAccountResponse) XXX_Size ¶
func (m *MsgClaimMorseAccountResponse) XXX_Size() int
func (*MsgClaimMorseAccountResponse) XXX_Unmarshal ¶
func (m *MsgClaimMorseAccountResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
ImportMorseClaimableAccounts(ctx context.Context, in *MsgImportMorseClaimableAccounts, opts ...grpc.CallOption) (*MsgImportMorseClaimableAccountsResponse, error)
ClaimMorseAccount(ctx context.Context, in *MsgClaimMorseAccount, opts ...grpc.CallOption) (*MsgClaimMorseAccountResponse, 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 MsgImportMorseClaimableAccounts ¶
type MsgImportMorseClaimableAccounts struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// the account state derived from the Morse state export and the `poktrolld migrate collect-morse-accounts` command.
MorseAccountState MorseAccountState `protobuf:"bytes,2,opt,name=morse_account_state,json=morseAccountState,proto3" json:"morse_account_state"`
// Validates the morse_account_state sha256 hash:
// - Transaction fails if hash doesn't match on-chain computation
// - Off-chain social consensus should be reached off-chain before verification
//
// Verification can be done by comparing with locally derived Morse state like so:
// $ poktrolld migrate collect-morse-accounts $<(pocket util export-genesis-for-reset)
//
// Additional documentation:
// - pocket util export-genesis-for-migration --help
// - poktrolld migrate collect-morse-accounts --help
MorseAccountStateHash []byte `protobuf:"bytes,3,opt,name=morse_account_state_hash,json=morseAccountStateHash,proto3" json:"morse_account_state_hash"`
}
MsgImportMorseClaimableAccounts is used to create the on-chain MorseClaimableAccounts ONLY AND EXACTLY ONCE (per network / re-genesis).
func NewMsgImportMorseClaimableAccounts ¶
func NewMsgImportMorseClaimableAccounts( authority string, morseAccountState MorseAccountState, ) (*MsgImportMorseClaimableAccounts, error)
NewMsgImportMorseClaimableAccounts constructs a MsgImportMorseClaimableAccounts from the given authority and morseAccountState.
func (*MsgImportMorseClaimableAccounts) Descriptor ¶
func (*MsgImportMorseClaimableAccounts) Descriptor() ([]byte, []int)
func (*MsgImportMorseClaimableAccounts) GetAuthority ¶
func (m *MsgImportMorseClaimableAccounts) GetAuthority() string
func (*MsgImportMorseClaimableAccounts) GetMorseAccountState ¶
func (m *MsgImportMorseClaimableAccounts) GetMorseAccountState() MorseAccountState
func (*MsgImportMorseClaimableAccounts) GetMorseAccountStateHash ¶
func (m *MsgImportMorseClaimableAccounts) GetMorseAccountStateHash() []byte
func (*MsgImportMorseClaimableAccounts) Marshal ¶
func (m *MsgImportMorseClaimableAccounts) Marshal() (dAtA []byte, err error)
func (*MsgImportMorseClaimableAccounts) MarshalTo ¶
func (m *MsgImportMorseClaimableAccounts) MarshalTo(dAtA []byte) (int, error)
func (*MsgImportMorseClaimableAccounts) MarshalToSizedBuffer ¶
func (m *MsgImportMorseClaimableAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgImportMorseClaimableAccounts) ProtoMessage ¶
func (*MsgImportMorseClaimableAccounts) ProtoMessage()
func (*MsgImportMorseClaimableAccounts) Reset ¶
func (m *MsgImportMorseClaimableAccounts) Reset()
func (*MsgImportMorseClaimableAccounts) Size ¶
func (m *MsgImportMorseClaimableAccounts) Size() (n int)
func (*MsgImportMorseClaimableAccounts) String ¶
func (m *MsgImportMorseClaimableAccounts) String() string
func (*MsgImportMorseClaimableAccounts) Unmarshal ¶
func (m *MsgImportMorseClaimableAccounts) Unmarshal(dAtA []byte) error
func (*MsgImportMorseClaimableAccounts) ValidateBasic ¶
func (msg *MsgImportMorseClaimableAccounts) ValidateBasic() error
ValidateBasic ensures that: - The authority address is valid (i.e. well-formed). - The MorseAccountStateHash field hash matches computed hash of the MorseAccountState field.
func (*MsgImportMorseClaimableAccounts) XXX_DiscardUnknown ¶
func (m *MsgImportMorseClaimableAccounts) XXX_DiscardUnknown()
func (*MsgImportMorseClaimableAccounts) XXX_Marshal ¶
func (m *MsgImportMorseClaimableAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgImportMorseClaimableAccounts) XXX_Merge ¶
func (m *MsgImportMorseClaimableAccounts) XXX_Merge(src proto.Message)
func (*MsgImportMorseClaimableAccounts) XXX_Size ¶
func (m *MsgImportMorseClaimableAccounts) XXX_Size() int
func (*MsgImportMorseClaimableAccounts) XXX_Unmarshal ¶
func (m *MsgImportMorseClaimableAccounts) XXX_Unmarshal(b []byte) error
type MsgImportMorseClaimableAccountsResponse ¶
type MsgImportMorseClaimableAccountsResponse struct {
// On-chain computed sha256 hash of the morse_account_state provided in the corresponding MsgCreateMorseAccountState.
StateHash []byte `protobuf:"bytes,1,opt,name=state_hash,json=stateHash,proto3" json:"state_hash"`
// Number of claimable accounts (EOAs) collected from Morse state export.
NumAccounts uint64 `protobuf:"varint,2,opt,name=num_accounts,json=numAccounts,proto3" json:"num_accounts"`
}
MsgImportMorseClaimableAccountsResponse is returned from MsgImportMorseClaimableAccounts. It indicates the canonical hash of the imported MorseAccountState, and the number of claimable accounts which were imported.
func (*MsgImportMorseClaimableAccountsResponse) Descriptor ¶
func (*MsgImportMorseClaimableAccountsResponse) Descriptor() ([]byte, []int)
func (*MsgImportMorseClaimableAccountsResponse) GetNumAccounts ¶
func (m *MsgImportMorseClaimableAccountsResponse) GetNumAccounts() uint64
func (*MsgImportMorseClaimableAccountsResponse) GetStateHash ¶
func (m *MsgImportMorseClaimableAccountsResponse) GetStateHash() []byte
func (*MsgImportMorseClaimableAccountsResponse) Marshal ¶
func (m *MsgImportMorseClaimableAccountsResponse) Marshal() (dAtA []byte, err error)
func (*MsgImportMorseClaimableAccountsResponse) MarshalTo ¶
func (m *MsgImportMorseClaimableAccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgImportMorseClaimableAccountsResponse) MarshalToSizedBuffer ¶
func (m *MsgImportMorseClaimableAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgImportMorseClaimableAccountsResponse) ProtoMessage ¶
func (*MsgImportMorseClaimableAccountsResponse) ProtoMessage()
func (*MsgImportMorseClaimableAccountsResponse) Reset ¶
func (m *MsgImportMorseClaimableAccountsResponse) Reset()
func (*MsgImportMorseClaimableAccountsResponse) Size ¶
func (m *MsgImportMorseClaimableAccountsResponse) Size() (n int)
func (*MsgImportMorseClaimableAccountsResponse) String ¶
func (m *MsgImportMorseClaimableAccountsResponse) String() string
func (*MsgImportMorseClaimableAccountsResponse) Unmarshal ¶
func (m *MsgImportMorseClaimableAccountsResponse) Unmarshal(dAtA []byte) error
func (*MsgImportMorseClaimableAccountsResponse) XXX_DiscardUnknown ¶
func (m *MsgImportMorseClaimableAccountsResponse) XXX_DiscardUnknown()
func (*MsgImportMorseClaimableAccountsResponse) XXX_Marshal ¶
func (m *MsgImportMorseClaimableAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgImportMorseClaimableAccountsResponse) XXX_Merge ¶
func (m *MsgImportMorseClaimableAccountsResponse) XXX_Merge(src proto.Message)
func (*MsgImportMorseClaimableAccountsResponse) XXX_Size ¶
func (m *MsgImportMorseClaimableAccountsResponse) XXX_Size() int
func (*MsgImportMorseClaimableAccountsResponse) XXX_Unmarshal ¶
func (m *MsgImportMorseClaimableAccountsResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
ImportMorseClaimableAccounts(context.Context, *MsgImportMorseClaimableAccounts) (*MsgImportMorseClaimableAccountsResponse, error)
ClaimMorseAccount(context.Context, *MsgClaimMorseAccount) (*MsgClaimMorseAccountResponse, error)
}
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
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 (*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) 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) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
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 ParamSubspace ¶
type ParamSubspace interface {
Get(context.Context, []byte, interface{})
Set(context.Context, []byte, interface{})
}
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct {
}
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllMorseClaimableAccountRequest ¶
type QueryAllMorseClaimableAccountRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllMorseClaimableAccountRequest) Descriptor ¶
func (*QueryAllMorseClaimableAccountRequest) Descriptor() ([]byte, []int)
func (*QueryAllMorseClaimableAccountRequest) GetPagination ¶
func (m *QueryAllMorseClaimableAccountRequest) GetPagination() *query.PageRequest
func (*QueryAllMorseClaimableAccountRequest) Marshal ¶
func (m *QueryAllMorseClaimableAccountRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllMorseClaimableAccountRequest) MarshalTo ¶
func (m *QueryAllMorseClaimableAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllMorseClaimableAccountRequest) MarshalToSizedBuffer ¶
func (m *QueryAllMorseClaimableAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllMorseClaimableAccountRequest) ProtoMessage ¶
func (*QueryAllMorseClaimableAccountRequest) ProtoMessage()
func (*QueryAllMorseClaimableAccountRequest) Reset ¶
func (m *QueryAllMorseClaimableAccountRequest) Reset()
func (*QueryAllMorseClaimableAccountRequest) Size ¶
func (m *QueryAllMorseClaimableAccountRequest) Size() (n int)
func (*QueryAllMorseClaimableAccountRequest) String ¶
func (m *QueryAllMorseClaimableAccountRequest) String() string
func (*QueryAllMorseClaimableAccountRequest) Unmarshal ¶
func (m *QueryAllMorseClaimableAccountRequest) Unmarshal(dAtA []byte) error
func (*QueryAllMorseClaimableAccountRequest) XXX_DiscardUnknown ¶
func (m *QueryAllMorseClaimableAccountRequest) XXX_DiscardUnknown()
func (*QueryAllMorseClaimableAccountRequest) XXX_Marshal ¶
func (m *QueryAllMorseClaimableAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllMorseClaimableAccountRequest) XXX_Merge ¶
func (m *QueryAllMorseClaimableAccountRequest) XXX_Merge(src proto.Message)
func (*QueryAllMorseClaimableAccountRequest) XXX_Size ¶
func (m *QueryAllMorseClaimableAccountRequest) XXX_Size() int
func (*QueryAllMorseClaimableAccountRequest) XXX_Unmarshal ¶
func (m *QueryAllMorseClaimableAccountRequest) XXX_Unmarshal(b []byte) error
type QueryAllMorseClaimableAccountResponse ¶
type QueryAllMorseClaimableAccountResponse struct {
MorseClaimableAccount []MorseClaimableAccount `protobuf:"bytes,1,rep,name=morseClaimableAccount,proto3" json:"morseClaimableAccount"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllMorseClaimableAccountResponse) Descriptor ¶
func (*QueryAllMorseClaimableAccountResponse) Descriptor() ([]byte, []int)
func (*QueryAllMorseClaimableAccountResponse) GetMorseClaimableAccount ¶
func (m *QueryAllMorseClaimableAccountResponse) GetMorseClaimableAccount() []MorseClaimableAccount
func (*QueryAllMorseClaimableAccountResponse) GetPagination ¶
func (m *QueryAllMorseClaimableAccountResponse) GetPagination() *query.PageResponse
func (*QueryAllMorseClaimableAccountResponse) Marshal ¶
func (m *QueryAllMorseClaimableAccountResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllMorseClaimableAccountResponse) MarshalTo ¶
func (m *QueryAllMorseClaimableAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllMorseClaimableAccountResponse) MarshalToSizedBuffer ¶
func (m *QueryAllMorseClaimableAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllMorseClaimableAccountResponse) ProtoMessage ¶
func (*QueryAllMorseClaimableAccountResponse) ProtoMessage()
func (*QueryAllMorseClaimableAccountResponse) Reset ¶
func (m *QueryAllMorseClaimableAccountResponse) Reset()
func (*QueryAllMorseClaimableAccountResponse) Size ¶
func (m *QueryAllMorseClaimableAccountResponse) Size() (n int)
func (*QueryAllMorseClaimableAccountResponse) String ¶
func (m *QueryAllMorseClaimableAccountResponse) String() string
func (*QueryAllMorseClaimableAccountResponse) Unmarshal ¶
func (m *QueryAllMorseClaimableAccountResponse) Unmarshal(dAtA []byte) error
func (*QueryAllMorseClaimableAccountResponse) XXX_DiscardUnknown ¶
func (m *QueryAllMorseClaimableAccountResponse) XXX_DiscardUnknown()
func (*QueryAllMorseClaimableAccountResponse) XXX_Marshal ¶
func (m *QueryAllMorseClaimableAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllMorseClaimableAccountResponse) XXX_Merge ¶
func (m *QueryAllMorseClaimableAccountResponse) XXX_Merge(src proto.Message)
func (*QueryAllMorseClaimableAccountResponse) XXX_Size ¶
func (m *QueryAllMorseClaimableAccountResponse) XXX_Size() int
func (*QueryAllMorseClaimableAccountResponse) XXX_Unmarshal ¶
func (m *QueryAllMorseClaimableAccountResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// Queries a list of MorseClaimableAccount items.
MorseClaimableAccount(ctx context.Context, in *QueryGetMorseClaimableAccountRequest, opts ...grpc.CallOption) (*QueryGetMorseClaimableAccountResponse, error)
MorseClaimableAccountAll(ctx context.Context, in *QueryAllMorseClaimableAccountRequest, opts ...grpc.CallOption) (*QueryAllMorseClaimableAccountResponse, 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 QueryGetMorseClaimableAccountRequest ¶
type QueryGetMorseClaimableAccountRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryGetMorseClaimableAccountRequest) Descriptor ¶
func (*QueryGetMorseClaimableAccountRequest) Descriptor() ([]byte, []int)
func (*QueryGetMorseClaimableAccountRequest) GetAddress ¶
func (m *QueryGetMorseClaimableAccountRequest) GetAddress() string
func (*QueryGetMorseClaimableAccountRequest) Marshal ¶
func (m *QueryGetMorseClaimableAccountRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetMorseClaimableAccountRequest) MarshalTo ¶
func (m *QueryGetMorseClaimableAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetMorseClaimableAccountRequest) MarshalToSizedBuffer ¶
func (m *QueryGetMorseClaimableAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetMorseClaimableAccountRequest) ProtoMessage ¶
func (*QueryGetMorseClaimableAccountRequest) ProtoMessage()
func (*QueryGetMorseClaimableAccountRequest) Reset ¶
func (m *QueryGetMorseClaimableAccountRequest) Reset()
func (*QueryGetMorseClaimableAccountRequest) Size ¶
func (m *QueryGetMorseClaimableAccountRequest) Size() (n int)
func (*QueryGetMorseClaimableAccountRequest) String ¶
func (m *QueryGetMorseClaimableAccountRequest) String() string
func (*QueryGetMorseClaimableAccountRequest) Unmarshal ¶
func (m *QueryGetMorseClaimableAccountRequest) Unmarshal(dAtA []byte) error
func (*QueryGetMorseClaimableAccountRequest) XXX_DiscardUnknown ¶
func (m *QueryGetMorseClaimableAccountRequest) XXX_DiscardUnknown()
func (*QueryGetMorseClaimableAccountRequest) XXX_Marshal ¶
func (m *QueryGetMorseClaimableAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetMorseClaimableAccountRequest) XXX_Merge ¶
func (m *QueryGetMorseClaimableAccountRequest) XXX_Merge(src proto.Message)
func (*QueryGetMorseClaimableAccountRequest) XXX_Size ¶
func (m *QueryGetMorseClaimableAccountRequest) XXX_Size() int
func (*QueryGetMorseClaimableAccountRequest) XXX_Unmarshal ¶
func (m *QueryGetMorseClaimableAccountRequest) XXX_Unmarshal(b []byte) error
type QueryGetMorseClaimableAccountResponse ¶
type QueryGetMorseClaimableAccountResponse struct {
MorseClaimableAccount MorseClaimableAccount `protobuf:"bytes,1,opt,name=morseClaimableAccount,proto3" json:"morseClaimableAccount"`
}
func (*QueryGetMorseClaimableAccountResponse) Descriptor ¶
func (*QueryGetMorseClaimableAccountResponse) Descriptor() ([]byte, []int)
func (*QueryGetMorseClaimableAccountResponse) GetMorseClaimableAccount ¶
func (m *QueryGetMorseClaimableAccountResponse) GetMorseClaimableAccount() MorseClaimableAccount
func (*QueryGetMorseClaimableAccountResponse) Marshal ¶
func (m *QueryGetMorseClaimableAccountResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetMorseClaimableAccountResponse) MarshalTo ¶
func (m *QueryGetMorseClaimableAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetMorseClaimableAccountResponse) MarshalToSizedBuffer ¶
func (m *QueryGetMorseClaimableAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetMorseClaimableAccountResponse) ProtoMessage ¶
func (*QueryGetMorseClaimableAccountResponse) ProtoMessage()
func (*QueryGetMorseClaimableAccountResponse) Reset ¶
func (m *QueryGetMorseClaimableAccountResponse) Reset()
func (*QueryGetMorseClaimableAccountResponse) Size ¶
func (m *QueryGetMorseClaimableAccountResponse) Size() (n int)
func (*QueryGetMorseClaimableAccountResponse) String ¶
func (m *QueryGetMorseClaimableAccountResponse) String() string
func (*QueryGetMorseClaimableAccountResponse) Unmarshal ¶
func (m *QueryGetMorseClaimableAccountResponse) Unmarshal(dAtA []byte) error
func (*QueryGetMorseClaimableAccountResponse) XXX_DiscardUnknown ¶
func (m *QueryGetMorseClaimableAccountResponse) XXX_DiscardUnknown()
func (*QueryGetMorseClaimableAccountResponse) XXX_Marshal ¶
func (m *QueryGetMorseClaimableAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetMorseClaimableAccountResponse) XXX_Merge ¶
func (m *QueryGetMorseClaimableAccountResponse) XXX_Merge(src proto.Message)
func (*QueryGetMorseClaimableAccountResponse) XXX_Size ¶
func (m *QueryGetMorseClaimableAccountResponse) XXX_Size() int
func (*QueryGetMorseClaimableAccountResponse) XXX_Unmarshal ¶
func (m *QueryGetMorseClaimableAccountResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct {
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
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 holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is response type for the Query/Params 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 {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// Queries a list of MorseClaimableAccount items.
MorseClaimableAccount(context.Context, *QueryGetMorseClaimableAccountRequest) (*QueryGetMorseClaimableAccountResponse, error)
MorseClaimableAccountAll(context.Context, *QueryAllMorseClaimableAccountRequest) (*QueryAllMorseClaimableAccountResponse, 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) ClaimMorseAccount ¶
func (*UnimplementedMsgServer) ClaimMorseAccount(ctx context.Context, req *MsgClaimMorseAccount) (*MsgClaimMorseAccountResponse, error)
func (*UnimplementedMsgServer) ImportMorseClaimableAccounts ¶
func (*UnimplementedMsgServer) ImportMorseClaimableAccounts(ctx context.Context, req *MsgImportMorseClaimableAccounts) (*MsgImportMorseClaimableAccountsResponse, 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) MorseClaimableAccount ¶
func (*UnimplementedQueryServer) MorseClaimableAccount(ctx context.Context, req *QueryGetMorseClaimableAccountRequest) (*QueryGetMorseClaimableAccountResponse, error)
func (*UnimplementedQueryServer) MorseClaimableAccountAll ¶
func (*UnimplementedQueryServer) MorseClaimableAccountAll(ctx context.Context, req *QueryAllMorseClaimableAccountRequest) (*QueryAllMorseClaimableAccountResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Source Files
¶
- codec.go
- errors.go
- event.pb.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- key_morse_claimable_account.go
- keys.go
- message_claim_morse_account.go
- message_import_morse_claimable_accounts.go
- morse_account_state.go
- morse_offchain.pb.go
- morse_onchain.pb.go
- msg_update_params.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- tx.pb.go
- types.go