Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type EventImportMorseClaimableAccounts
- func (*EventImportMorseClaimableAccounts) Descriptor() ([]byte, []int)deprecated
- func (x *EventImportMorseClaimableAccounts) GetCreatedAtHeight() int64
- func (x *EventImportMorseClaimableAccounts) GetMorseAccountStateHash() []byte
- func (x *EventImportMorseClaimableAccounts) GetNumAccounts() uint64
- func (*EventImportMorseClaimableAccounts) ProtoMessage()
- func (x *EventImportMorseClaimableAccounts) ProtoReflect() protoreflect.Message
- func (x *EventImportMorseClaimableAccounts) Reset()
- func (x *EventImportMorseClaimableAccounts) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetMorseClaimableAccountList() []*MorseClaimableAccount
- func (x *GenesisState) GetParams() *Params
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MorseAccount
- func (*MorseAccount) Descriptor() ([]byte, []int)deprecated
- func (x *MorseAccount) GetAddress() []byte
- func (x *MorseAccount) GetCoins() []*v1beta1.Coin
- func (x *MorseAccount) GetPubKey() *MorsePublicKey
- func (*MorseAccount) ProtoMessage()
- func (x *MorseAccount) ProtoReflect() protoreflect.Message
- func (x *MorseAccount) Reset()
- func (x *MorseAccount) String() string
- type MorseAccountState
- func (*MorseAccountState) Descriptor() ([]byte, []int)deprecated
- func (x *MorseAccountState) GetAccounts() []*MorseClaimableAccount
- func (*MorseAccountState) ProtoMessage()
- func (x *MorseAccountState) ProtoReflect() protoreflect.Message
- func (x *MorseAccountState) Reset()
- func (x *MorseAccountState) String() string
- type MorseApplication
- func (*MorseApplication) Descriptor() ([]byte, []int)deprecated
- func (x *MorseApplication) GetAddress() []byte
- func (x *MorseApplication) GetJailed() bool
- func (x *MorseApplication) GetPublicKey() []byte
- func (x *MorseApplication) GetStakedTokens() string
- func (x *MorseApplication) GetStatus() int32
- func (*MorseApplication) ProtoMessage()
- func (x *MorseApplication) ProtoReflect() protoreflect.Message
- func (x *MorseApplication) Reset()
- func (x *MorseApplication) String() string
- type MorseApplications
- func (*MorseApplications) Descriptor() ([]byte, []int)deprecated
- func (x *MorseApplications) GetApplications() []*MorseApplication
- func (*MorseApplications) ProtoMessage()
- func (x *MorseApplications) ProtoReflect() protoreflect.Message
- func (x *MorseApplications) Reset()
- func (x *MorseApplications) String() string
- type MorseAuth
- type MorseAuthAccount
- func (*MorseAuthAccount) Descriptor() ([]byte, []int)deprecated
- func (x *MorseAuthAccount) GetType_() string
- func (x *MorseAuthAccount) GetValue() *MorseAccount
- func (*MorseAuthAccount) ProtoMessage()
- func (x *MorseAuthAccount) ProtoReflect() protoreflect.Message
- func (x *MorseAuthAccount) Reset()
- func (x *MorseAuthAccount) String() string
- type MorseClaimableAccount
- func (*MorseClaimableAccount) Descriptor() ([]byte, []int)deprecated
- func (x *MorseClaimableAccount) GetApplicationStake() *v1beta1.Coin
- func (x *MorseClaimableAccount) GetClaimedAtHeight() int64
- func (x *MorseClaimableAccount) GetMorseSrcAddress() string
- func (x *MorseClaimableAccount) GetPublicKey() []byte
- func (x *MorseClaimableAccount) GetShannonDestAddress() string
- func (x *MorseClaimableAccount) GetSupplierStake() *v1beta1.Coin
- func (x *MorseClaimableAccount) GetUnstakedBalance() *v1beta1.Coin
- func (*MorseClaimableAccount) ProtoMessage()
- func (x *MorseClaimableAccount) ProtoReflect() protoreflect.Message
- func (x *MorseClaimableAccount) Reset()
- func (x *MorseClaimableAccount) String() string
- type MorsePos
- type MorsePublicKey
- type MorseStateExport
- func (*MorseStateExport) Descriptor() ([]byte, []int)deprecated
- func (x *MorseStateExport) GetAppHash() string
- func (x *MorseStateExport) GetAppState() *MorseTendermintAppState
- func (*MorseStateExport) ProtoMessage()
- func (x *MorseStateExport) ProtoReflect() protoreflect.Message
- func (x *MorseStateExport) Reset()
- func (x *MorseStateExport) String() string
- type MorseTendermintAppState
- func (*MorseTendermintAppState) Descriptor() ([]byte, []int)deprecated
- func (x *MorseTendermintAppState) GetApplication() *MorseApplications
- func (x *MorseTendermintAppState) GetAuth() *MorseAuth
- func (x *MorseTendermintAppState) GetPos() *MorsePos
- func (*MorseTendermintAppState) ProtoMessage()
- func (x *MorseTendermintAppState) ProtoReflect() protoreflect.Message
- func (x *MorseTendermintAppState) Reset()
- func (x *MorseTendermintAppState) String() string
- type MorseValidator
- func (*MorseValidator) Descriptor() ([]byte, []int)deprecated
- func (x *MorseValidator) GetAddress() []byte
- func (x *MorseValidator) GetJailed() bool
- func (x *MorseValidator) GetPublicKey() []byte
- func (x *MorseValidator) GetStakedTokens() string
- func (x *MorseValidator) GetStatus() int32
- func (*MorseValidator) ProtoMessage()
- func (x *MorseValidator) ProtoReflect() protoreflect.Message
- func (x *MorseValidator) Reset()
- func (x *MorseValidator) String() string
- type MsgClaimMorseAccount
- func (*MsgClaimMorseAccount) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClaimMorseAccount) GetMorseSignature() string
- func (x *MsgClaimMorseAccount) GetMorseSrcAddress() string
- func (x *MsgClaimMorseAccount) GetShannonDestAddress() string
- func (*MsgClaimMorseAccount) ProtoMessage()
- func (x *MsgClaimMorseAccount) ProtoReflect() protoreflect.Message
- func (x *MsgClaimMorseAccount) Reset()
- func (x *MsgClaimMorseAccount) String() string
- type MsgClaimMorseAccountResponse
- func (*MsgClaimMorseAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClaimMorseAccountResponse) GetClaimedAtHeight() int64
- func (x *MsgClaimMorseAccountResponse) GetClaimedBalance() *v1beta1.Coin
- func (x *MsgClaimMorseAccountResponse) GetMorseSrcAddress() string
- func (*MsgClaimMorseAccountResponse) ProtoMessage()
- func (x *MsgClaimMorseAccountResponse) ProtoReflect() protoreflect.Message
- func (x *MsgClaimMorseAccountResponse) Reset()
- func (x *MsgClaimMorseAccountResponse) String() string
- type MsgClient
- type MsgImportMorseClaimableAccounts
- func (*MsgImportMorseClaimableAccounts) Descriptor() ([]byte, []int)deprecated
- func (x *MsgImportMorseClaimableAccounts) GetAuthority() string
- func (x *MsgImportMorseClaimableAccounts) GetMorseAccountState() *MorseAccountState
- func (x *MsgImportMorseClaimableAccounts) GetMorseAccountStateHash() []byte
- func (*MsgImportMorseClaimableAccounts) ProtoMessage()
- func (x *MsgImportMorseClaimableAccounts) ProtoReflect() protoreflect.Message
- func (x *MsgImportMorseClaimableAccounts) Reset()
- func (x *MsgImportMorseClaimableAccounts) String() string
- type MsgImportMorseClaimableAccountsResponse
- func (*MsgImportMorseClaimableAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgImportMorseClaimableAccountsResponse) GetNumAccounts() uint64
- func (x *MsgImportMorseClaimableAccountsResponse) GetStateHash() []byte
- func (*MsgImportMorseClaimableAccountsResponse) ProtoMessage()
- func (x *MsgImportMorseClaimableAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *MsgImportMorseClaimableAccountsResponse) Reset()
- func (x *MsgImportMorseClaimableAccountsResponse) String() string
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- type QueryAllMorseClaimableAccountRequest
- func (*QueryAllMorseClaimableAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllMorseClaimableAccountRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryAllMorseClaimableAccountRequest) ProtoMessage()
- func (x *QueryAllMorseClaimableAccountRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAllMorseClaimableAccountRequest) Reset()
- func (x *QueryAllMorseClaimableAccountRequest) String() string
- type QueryAllMorseClaimableAccountResponse
- func (*QueryAllMorseClaimableAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllMorseClaimableAccountResponse) GetMorseClaimableAccount() []*MorseClaimableAccount
- func (x *QueryAllMorseClaimableAccountResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryAllMorseClaimableAccountResponse) ProtoMessage()
- func (x *QueryAllMorseClaimableAccountResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAllMorseClaimableAccountResponse) Reset()
- func (x *QueryAllMorseClaimableAccountResponse) String() string
- type QueryClient
- type QueryGetMorseClaimableAccountRequest
- func (*QueryGetMorseClaimableAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetMorseClaimableAccountRequest) GetAddress() string
- func (*QueryGetMorseClaimableAccountRequest) ProtoMessage()
- func (x *QueryGetMorseClaimableAccountRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGetMorseClaimableAccountRequest) Reset()
- func (x *QueryGetMorseClaimableAccountRequest) String() string
- type QueryGetMorseClaimableAccountResponse
- func (*QueryGetMorseClaimableAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetMorseClaimableAccountResponse) GetMorseClaimableAccount() *MorseClaimableAccount
- func (*QueryGetMorseClaimableAccountResponse) ProtoMessage()
- func (x *QueryGetMorseClaimableAccountResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetMorseClaimableAccountResponse) Reset()
- func (x *QueryGetMorseClaimableAccountResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) ClaimMorseAccount(context.Context, *MsgClaimMorseAccount) (*MsgClaimMorseAccountResponse, error)
- func (UnimplementedMsgServer) ImportMorseClaimableAccounts(context.Context, *MsgImportMorseClaimableAccounts) (*MsgImportMorseClaimableAccountsResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) MorseClaimableAccount(context.Context, *QueryGetMorseClaimableAccountRequest) (*QueryGetMorseClaimableAccountResponse, error)
- func (UnimplementedQueryServer) MorseClaimableAccountAll(context.Context, *QueryAllMorseClaimableAccountRequest) (*QueryAllMorseClaimableAccountResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Params_FullMethodName = "/poktroll.migration.Query/Params" Query_MorseClaimableAccount_FullMethodName = "/poktroll.migration.Query/MorseClaimableAccount" Query_MorseClaimableAccountAll_FullMethodName = "/poktroll.migration.Query/MorseClaimableAccountAll" )
const ( Msg_UpdateParams_FullMethodName = "/poktroll.migration.Msg/UpdateParams" Msg_ImportMorseClaimableAccounts_FullMethodName = "/poktroll.migration.Msg/ImportMorseClaimableAccounts" Msg_ClaimMorseAccount_FullMethodName = "/poktroll.migration.Msg/ClaimMorseAccount" )
Variables ¶
var File_poktroll_migration_event_proto protoreflect.FileDescriptor
var File_poktroll_migration_genesis_proto protoreflect.FileDescriptor
var File_poktroll_migration_morse_offchain_proto protoreflect.FileDescriptor
var File_poktroll_migration_morse_onchain_proto protoreflect.FileDescriptor
var File_poktroll_migration_params_proto protoreflect.FileDescriptor
var File_poktroll_migration_query_proto protoreflect.FileDescriptor
var File_poktroll_migration_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "poktroll.migration.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "ImportMorseClaimableAccounts", Handler: _Msg_ImportMorseClaimableAccounts_Handler, }, { MethodName: "ClaimMorseAccount", Handler: _Msg_ClaimMorseAccount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "poktroll/migration/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "poktroll.migration.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "MorseClaimableAccount", Handler: _Query_MorseClaimableAccount_Handler, }, { MethodName: "MorseClaimableAccountAll", Handler: _Query_MorseClaimableAccountAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "poktroll/migration/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
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,omitempty"`
// The onchain computed sha256 hash of the entire MorseAccountState containing the MorseClaimableAccounts which were imported.
MorseAccountStateHash []byte `` /* 128-byte string literal not displayed */
// 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,omitempty"`
// contains filtered or unexported fields
}
EventImportMorseClaimableAccounts is emitted when the MorseClaimableAccounts are created on-chain.
func (*EventImportMorseClaimableAccounts) Descriptor
deprecated
func (*EventImportMorseClaimableAccounts) Descriptor() ([]byte, []int)
Deprecated: Use EventImportMorseClaimableAccounts.ProtoReflect.Descriptor instead.
func (*EventImportMorseClaimableAccounts) GetCreatedAtHeight ¶
func (x *EventImportMorseClaimableAccounts) GetCreatedAtHeight() int64
func (*EventImportMorseClaimableAccounts) GetMorseAccountStateHash ¶
func (x *EventImportMorseClaimableAccounts) GetMorseAccountStateHash() []byte
func (*EventImportMorseClaimableAccounts) GetNumAccounts ¶
func (x *EventImportMorseClaimableAccounts) GetNumAccounts() uint64
func (*EventImportMorseClaimableAccounts) ProtoMessage ¶
func (*EventImportMorseClaimableAccounts) ProtoMessage()
func (*EventImportMorseClaimableAccounts) ProtoReflect ¶
func (x *EventImportMorseClaimableAccounts) ProtoReflect() protoreflect.Message
func (*EventImportMorseClaimableAccounts) Reset ¶
func (x *EventImportMorseClaimableAccounts) Reset()
func (*EventImportMorseClaimableAccounts) String ¶
func (x *EventImportMorseClaimableAccounts) String() string
type GenesisState ¶
type GenesisState struct {
// params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
MorseClaimableAccountList []*MorseClaimableAccount `protobuf:"bytes,2,rep,name=morseClaimableAccountList,proto3" json:"morseClaimableAccountList,omitempty"`
// contains filtered or unexported fields
}
GenesisState defines the migration module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetMorseClaimableAccountList ¶
func (x *GenesisState) GetMorseClaimableAccountList() []*MorseClaimableAccount
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MorseAccount ¶
type MorseAccount struct {
// A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key.
Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// The ed25519 public key of the account.
PubKey *MorsePublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
// The account balance; this does not include any actor stakes.
Coins []*v1beta1.Coin `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseAccount) Descriptor() ([]byte, []int)
Deprecated: Use MorseAccount.ProtoReflect.Descriptor instead.
func (*MorseAccount) GetAddress ¶
func (x *MorseAccount) GetAddress() []byte
func (*MorseAccount) GetCoins ¶
func (x *MorseAccount) GetCoins() []*v1beta1.Coin
func (*MorseAccount) GetPubKey ¶
func (x *MorseAccount) GetPubKey() *MorsePublicKey
func (*MorseAccount) ProtoMessage ¶
func (*MorseAccount) ProtoMessage()
func (*MorseAccount) ProtoReflect ¶
func (x *MorseAccount) ProtoReflect() protoreflect.Message
func (*MorseAccount) Reset ¶
func (x *MorseAccount) Reset()
func (*MorseAccount) String ¶
func (x *MorseAccount) String() string
type MorseAccountState ¶
type MorseAccountState struct {
Accounts []*MorseClaimableAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseAccountState) Descriptor() ([]byte, []int)
Deprecated: Use MorseAccountState.ProtoReflect.Descriptor instead.
func (*MorseAccountState) GetAccounts ¶
func (x *MorseAccountState) GetAccounts() []*MorseClaimableAccount
func (*MorseAccountState) ProtoMessage ¶
func (*MorseAccountState) ProtoMessage()
func (*MorseAccountState) ProtoReflect ¶
func (x *MorseAccountState) ProtoReflect() protoreflect.Message
func (*MorseAccountState) Reset ¶
func (x *MorseAccountState) Reset()
func (*MorseAccountState) String ¶
func (x *MorseAccountState) String() string
type MorseApplication ¶
type MorseApplication struct {
// Address is a binary representation of the address corresponding
// to a Morse application's ed25519 public key.
Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// 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,omitempty"`
// 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,omitempty"`
Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
// The string representation of the BigInt amount of upokt.
StakedTokens string `protobuf:"bytes,6,opt,name=staked_tokens,json=stakedTokens,proto3" json:"staked_tokens,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseApplication) Descriptor() ([]byte, []int)
Deprecated: Use MorseApplication.ProtoReflect.Descriptor instead.
func (*MorseApplication) GetAddress ¶
func (x *MorseApplication) GetAddress() []byte
func (*MorseApplication) GetJailed ¶
func (x *MorseApplication) GetJailed() bool
func (*MorseApplication) GetPublicKey ¶
func (x *MorseApplication) GetPublicKey() []byte
func (*MorseApplication) GetStakedTokens ¶
func (x *MorseApplication) GetStakedTokens() string
func (*MorseApplication) GetStatus ¶
func (x *MorseApplication) GetStatus() int32
func (*MorseApplication) ProtoMessage ¶
func (*MorseApplication) ProtoMessage()
func (*MorseApplication) ProtoReflect ¶
func (x *MorseApplication) ProtoReflect() protoreflect.Message
func (*MorseApplication) Reset ¶
func (x *MorseApplication) Reset()
func (*MorseApplication) String ¶
func (x *MorseApplication) String() string
type MorseApplications ¶
type MorseApplications struct {
Applications []*MorseApplication `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseApplications) Descriptor() ([]byte, []int)
Deprecated: Use MorseApplications.ProtoReflect.Descriptor instead.
func (*MorseApplications) GetApplications ¶
func (x *MorseApplications) GetApplications() []*MorseApplication
func (*MorseApplications) ProtoMessage ¶
func (*MorseApplications) ProtoMessage()
func (*MorseApplications) ProtoReflect ¶
func (x *MorseApplications) ProtoReflect() protoreflect.Message
func (*MorseApplications) Reset ¶
func (x *MorseApplications) Reset()
func (*MorseApplications) String ¶
func (x *MorseApplications) String() string
type MorseAuth ¶
type MorseAuth struct {
Accounts []*MorseAuthAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseAuth) GetAccounts ¶
func (x *MorseAuth) GetAccounts() []*MorseAuthAccount
func (*MorseAuth) ProtoMessage ¶
func (*MorseAuth) ProtoMessage()
func (*MorseAuth) ProtoReflect ¶
func (x *MorseAuth) ProtoReflect() protoreflect.Message
type MorseAuthAccount ¶
type MorseAuthAccount struct {
Type_ string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Value *MorseAccount `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseAuthAccount) Descriptor() ([]byte, []int)
Deprecated: Use MorseAuthAccount.ProtoReflect.Descriptor instead.
func (*MorseAuthAccount) GetType_ ¶
func (x *MorseAuthAccount) GetType_() string
func (*MorseAuthAccount) GetValue ¶
func (x *MorseAuthAccount) GetValue() *MorseAccount
func (*MorseAuthAccount) ProtoMessage ¶
func (*MorseAuthAccount) ProtoMessage()
func (*MorseAuthAccount) ProtoReflect ¶
func (x *MorseAuthAccount) ProtoReflect() protoreflect.Message
func (*MorseAuthAccount) Reset ¶
func (x *MorseAuthAccount) Reset()
func (*MorseAuthAccount) String ¶
func (x *MorseAuthAccount) String() string
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,omitempty"`
// 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,omitempty"`
// The ed25519 public key of the account.
PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// The unstaked upokt tokens (i.e. account balance) available for claiming.
UnstakedBalance *v1beta1.Coin `protobuf:"bytes,5,opt,name=unstaked_balance,json=unstakedBalance,proto3" json:"unstaked_balance,omitempty"`
// 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 *v1beta1.Coin `protobuf:"bytes,6,opt,name=supplier_stake,json=supplierStake,proto3" json:"supplier_stake,omitempty"`
// The staked tokens associated with an application actor which corresponds to this account address.
ApplicationStake *v1beta1.Coin `protobuf:"bytes,7,opt,name=application_stake,json=applicationStake,proto3" json:"application_stake,omitempty"`
// 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,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseClaimableAccount) Descriptor() ([]byte, []int)
Deprecated: Use MorseClaimableAccount.ProtoReflect.Descriptor instead.
func (*MorseClaimableAccount) GetApplicationStake ¶
func (x *MorseClaimableAccount) GetApplicationStake() *v1beta1.Coin
func (*MorseClaimableAccount) GetClaimedAtHeight ¶
func (x *MorseClaimableAccount) GetClaimedAtHeight() int64
func (*MorseClaimableAccount) GetMorseSrcAddress ¶
func (x *MorseClaimableAccount) GetMorseSrcAddress() string
func (*MorseClaimableAccount) GetPublicKey ¶
func (x *MorseClaimableAccount) GetPublicKey() []byte
func (*MorseClaimableAccount) GetShannonDestAddress ¶
func (x *MorseClaimableAccount) GetShannonDestAddress() string
func (*MorseClaimableAccount) GetSupplierStake ¶
func (x *MorseClaimableAccount) GetSupplierStake() *v1beta1.Coin
func (*MorseClaimableAccount) GetUnstakedBalance ¶
func (x *MorseClaimableAccount) GetUnstakedBalance() *v1beta1.Coin
func (*MorseClaimableAccount) ProtoMessage ¶
func (*MorseClaimableAccount) ProtoMessage()
func (*MorseClaimableAccount) ProtoReflect ¶
func (x *MorseClaimableAccount) ProtoReflect() protoreflect.Message
func (*MorseClaimableAccount) Reset ¶
func (x *MorseClaimableAccount) Reset()
func (*MorseClaimableAccount) String ¶
func (x *MorseClaimableAccount) String() string
type MorsePos ¶
type MorsePos struct {
Validators []*MorseValidator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorsePos) GetValidators ¶
func (x *MorsePos) GetValidators() []*MorseValidator
func (*MorsePos) ProtoMessage ¶
func (*MorsePos) ProtoMessage()
func (*MorsePos) ProtoReflect ¶
func (x *MorsePos) ProtoReflect() protoreflect.Message
type MorsePublicKey ¶
type MorsePublicKey struct {
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorsePublicKey) Descriptor() ([]byte, []int)
Deprecated: Use MorsePublicKey.ProtoReflect.Descriptor instead.
func (*MorsePublicKey) GetValue ¶
func (x *MorsePublicKey) GetValue() []byte
func (*MorsePublicKey) ProtoMessage ¶
func (*MorsePublicKey) ProtoMessage()
func (*MorsePublicKey) ProtoReflect ¶
func (x *MorsePublicKey) ProtoReflect() protoreflect.Message
func (*MorsePublicKey) Reset ¶
func (x *MorsePublicKey) Reset()
func (*MorsePublicKey) String ¶
func (x *MorsePublicKey) String() string
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,omitempty"`
// app_state is the entire Morse tendermint application state.
AppState *MorseTendermintAppState `protobuf:"bytes,2,opt,name=app_state,json=appState,proto3" json:"app_state,omitempty"`
// contains filtered or unexported fields
}
MorseStateExport is the data structure that is serialized and output when running:
$ pocket utils export-genesis-for-reset ...
func (*MorseStateExport) Descriptor
deprecated
func (*MorseStateExport) Descriptor() ([]byte, []int)
Deprecated: Use MorseStateExport.ProtoReflect.Descriptor instead.
func (*MorseStateExport) GetAppHash ¶
func (x *MorseStateExport) GetAppHash() string
func (*MorseStateExport) GetAppState ¶
func (x *MorseStateExport) GetAppState() *MorseTendermintAppState
func (*MorseStateExport) ProtoMessage ¶
func (*MorseStateExport) ProtoMessage()
func (*MorseStateExport) ProtoReflect ¶
func (x *MorseStateExport) ProtoReflect() protoreflect.Message
func (*MorseStateExport) Reset ¶
func (x *MorseStateExport) Reset()
func (*MorseStateExport) String ¶
func (x *MorseStateExport) String() string
type MorseTendermintAppState ¶
type MorseTendermintAppState struct {
Application *MorseApplications `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
Auth *MorseAuth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
Pos *MorsePos `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseTendermintAppState) Descriptor() ([]byte, []int)
Deprecated: Use MorseTendermintAppState.ProtoReflect.Descriptor instead.
func (*MorseTendermintAppState) GetApplication ¶
func (x *MorseTendermintAppState) GetApplication() *MorseApplications
func (*MorseTendermintAppState) GetAuth ¶
func (x *MorseTendermintAppState) GetAuth() *MorseAuth
func (*MorseTendermintAppState) GetPos ¶
func (x *MorseTendermintAppState) GetPos() *MorsePos
func (*MorseTendermintAppState) ProtoMessage ¶
func (*MorseTendermintAppState) ProtoMessage()
func (*MorseTendermintAppState) ProtoReflect ¶
func (x *MorseTendermintAppState) ProtoReflect() protoreflect.Message
func (*MorseTendermintAppState) Reset ¶
func (x *MorseTendermintAppState) Reset()
func (*MorseTendermintAppState) String ¶
func (x *MorseTendermintAppState) String() string
type MorseValidator ¶
type MorseValidator struct {
// A binary representation of the address corresponding to a Morse application's ed25519 public key.
Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// 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,omitempty"`
// 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,omitempty"`
Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
// The string representation of the BigInt amount of upokt.
StakedTokens string `protobuf:"bytes,7,opt,name=staked_tokens,json=stakedTokens,proto3" json:"staked_tokens,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MorseValidator) Descriptor() ([]byte, []int)
Deprecated: Use MorseValidator.ProtoReflect.Descriptor instead.
func (*MorseValidator) GetAddress ¶
func (x *MorseValidator) GetAddress() []byte
func (*MorseValidator) GetJailed ¶
func (x *MorseValidator) GetJailed() bool
func (*MorseValidator) GetPublicKey ¶
func (x *MorseValidator) GetPublicKey() []byte
func (*MorseValidator) GetStakedTokens ¶
func (x *MorseValidator) GetStakedTokens() string
func (*MorseValidator) GetStatus ¶
func (x *MorseValidator) GetStatus() int32
func (*MorseValidator) ProtoMessage ¶
func (*MorseValidator) ProtoMessage()
func (*MorseValidator) ProtoReflect ¶
func (x *MorseValidator) ProtoReflect() protoreflect.Message
func (*MorseValidator) Reset ¶
func (x *MorseValidator) Reset()
func (*MorseValidator) String ¶
func (x *MorseValidator) String() string
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,omitempty"`
// 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,omitempty"`
// 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,omitempty"`
// contains filtered or unexported fields
}
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 (*MsgClaimMorseAccount) Descriptor
deprecated
func (*MsgClaimMorseAccount) Descriptor() ([]byte, []int)
Deprecated: Use MsgClaimMorseAccount.ProtoReflect.Descriptor instead.
func (*MsgClaimMorseAccount) GetMorseSignature ¶
func (x *MsgClaimMorseAccount) GetMorseSignature() string
func (*MsgClaimMorseAccount) GetMorseSrcAddress ¶
func (x *MsgClaimMorseAccount) GetMorseSrcAddress() string
func (*MsgClaimMorseAccount) GetShannonDestAddress ¶
func (x *MsgClaimMorseAccount) GetShannonDestAddress() string
func (*MsgClaimMorseAccount) ProtoMessage ¶
func (*MsgClaimMorseAccount) ProtoMessage()
func (*MsgClaimMorseAccount) ProtoReflect ¶
func (x *MsgClaimMorseAccount) ProtoReflect() protoreflect.Message
func (*MsgClaimMorseAccount) Reset ¶
func (x *MsgClaimMorseAccount) Reset()
func (*MsgClaimMorseAccount) String ¶
func (x *MsgClaimMorseAccount) String() string
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,omitempty"`
// The balance which was claimed.
ClaimedBalance *v1beta1.Coin `protobuf:"bytes,2,opt,name=claimed_balance,json=claimedBalance,proto3" json:"claimed_balance,omitempty"`
// 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"`
// contains filtered or unexported fields
}
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
deprecated
func (*MsgClaimMorseAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgClaimMorseAccountResponse.ProtoReflect.Descriptor instead.
func (*MsgClaimMorseAccountResponse) GetClaimedAtHeight ¶
func (x *MsgClaimMorseAccountResponse) GetClaimedAtHeight() int64
func (*MsgClaimMorseAccountResponse) GetClaimedBalance ¶
func (x *MsgClaimMorseAccountResponse) GetClaimedBalance() *v1beta1.Coin
func (*MsgClaimMorseAccountResponse) GetMorseSrcAddress ¶
func (x *MsgClaimMorseAccountResponse) GetMorseSrcAddress() string
func (*MsgClaimMorseAccountResponse) ProtoMessage ¶
func (*MsgClaimMorseAccountResponse) ProtoMessage()
func (*MsgClaimMorseAccountResponse) ProtoReflect ¶
func (x *MsgClaimMorseAccountResponse) ProtoReflect() protoreflect.Message
func (*MsgClaimMorseAccountResponse) Reset ¶
func (x *MsgClaimMorseAccountResponse) Reset()
func (*MsgClaimMorseAccountResponse) String ¶
func (x *MsgClaimMorseAccountResponse) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Msg defines the Msg service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) 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,omitempty"`
// 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 `` /* 128-byte string literal not displayed */
// contains filtered or unexported fields
}
MsgImportMorseClaimableAccounts is used to create the on-chain MorseClaimableAccounts ONLY AND EXACTLY ONCE (per network / re-genesis).
func (*MsgImportMorseClaimableAccounts) Descriptor
deprecated
func (*MsgImportMorseClaimableAccounts) Descriptor() ([]byte, []int)
Deprecated: Use MsgImportMorseClaimableAccounts.ProtoReflect.Descriptor instead.
func (*MsgImportMorseClaimableAccounts) GetAuthority ¶
func (x *MsgImportMorseClaimableAccounts) GetAuthority() string
func (*MsgImportMorseClaimableAccounts) GetMorseAccountState ¶
func (x *MsgImportMorseClaimableAccounts) GetMorseAccountState() *MorseAccountState
func (*MsgImportMorseClaimableAccounts) GetMorseAccountStateHash ¶
func (x *MsgImportMorseClaimableAccounts) GetMorseAccountStateHash() []byte
func (*MsgImportMorseClaimableAccounts) ProtoMessage ¶
func (*MsgImportMorseClaimableAccounts) ProtoMessage()
func (*MsgImportMorseClaimableAccounts) ProtoReflect ¶
func (x *MsgImportMorseClaimableAccounts) ProtoReflect() protoreflect.Message
func (*MsgImportMorseClaimableAccounts) Reset ¶
func (x *MsgImportMorseClaimableAccounts) Reset()
func (*MsgImportMorseClaimableAccounts) String ¶
func (x *MsgImportMorseClaimableAccounts) String() string
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,omitempty"`
// 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,omitempty"`
// contains filtered or unexported fields
}
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
deprecated
func (*MsgImportMorseClaimableAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgImportMorseClaimableAccountsResponse.ProtoReflect.Descriptor instead.
func (*MsgImportMorseClaimableAccountsResponse) GetNumAccounts ¶
func (x *MsgImportMorseClaimableAccountsResponse) GetNumAccounts() uint64
func (*MsgImportMorseClaimableAccountsResponse) GetStateHash ¶
func (x *MsgImportMorseClaimableAccountsResponse) GetStateHash() []byte
func (*MsgImportMorseClaimableAccountsResponse) ProtoMessage ¶
func (*MsgImportMorseClaimableAccountsResponse) ProtoMessage()
func (*MsgImportMorseClaimableAccountsResponse) ProtoReflect ¶
func (x *MsgImportMorseClaimableAccountsResponse) ProtoReflect() protoreflect.Message
func (*MsgImportMorseClaimableAccountsResponse) Reset ¶
func (x *MsgImportMorseClaimableAccountsResponse) Reset()
func (*MsgImportMorseClaimableAccountsResponse) String ¶
func (x *MsgImportMorseClaimableAccountsResponse) String() string
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)
// contains filtered or unexported methods
}
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
Msg defines the 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,omitempty"`
// contains filtered or unexported fields
}
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryAllMorseClaimableAccountRequest ¶
type QueryAllMorseClaimableAccountRequest struct {
Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*QueryAllMorseClaimableAccountRequest) Descriptor
deprecated
func (*QueryAllMorseClaimableAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllMorseClaimableAccountRequest.ProtoReflect.Descriptor instead.
func (*QueryAllMorseClaimableAccountRequest) GetPagination ¶
func (x *QueryAllMorseClaimableAccountRequest) GetPagination() *v1beta1.PageRequest
func (*QueryAllMorseClaimableAccountRequest) ProtoMessage ¶
func (*QueryAllMorseClaimableAccountRequest) ProtoMessage()
func (*QueryAllMorseClaimableAccountRequest) ProtoReflect ¶
func (x *QueryAllMorseClaimableAccountRequest) ProtoReflect() protoreflect.Message
func (*QueryAllMorseClaimableAccountRequest) Reset ¶
func (x *QueryAllMorseClaimableAccountRequest) Reset()
func (*QueryAllMorseClaimableAccountRequest) String ¶
func (x *QueryAllMorseClaimableAccountRequest) String() string
type QueryAllMorseClaimableAccountResponse ¶
type QueryAllMorseClaimableAccountResponse struct {
MorseClaimableAccount []*MorseClaimableAccount `protobuf:"bytes,1,rep,name=morseClaimableAccount,proto3" json:"morseClaimableAccount,omitempty"`
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*QueryAllMorseClaimableAccountResponse) Descriptor
deprecated
func (*QueryAllMorseClaimableAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllMorseClaimableAccountResponse.ProtoReflect.Descriptor instead.
func (*QueryAllMorseClaimableAccountResponse) GetMorseClaimableAccount ¶
func (x *QueryAllMorseClaimableAccountResponse) GetMorseClaimableAccount() []*MorseClaimableAccount
func (*QueryAllMorseClaimableAccountResponse) GetPagination ¶
func (x *QueryAllMorseClaimableAccountResponse) GetPagination() *v1beta1.PageResponse
func (*QueryAllMorseClaimableAccountResponse) ProtoMessage ¶
func (*QueryAllMorseClaimableAccountResponse) ProtoMessage()
func (*QueryAllMorseClaimableAccountResponse) ProtoReflect ¶
func (x *QueryAllMorseClaimableAccountResponse) ProtoReflect() protoreflect.Message
func (*QueryAllMorseClaimableAccountResponse) Reset ¶
func (x *QueryAllMorseClaimableAccountResponse) Reset()
func (*QueryAllMorseClaimableAccountResponse) String ¶
func (x *QueryAllMorseClaimableAccountResponse) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Query defines the gRPC querier service.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryGetMorseClaimableAccountRequest ¶
type QueryGetMorseClaimableAccountRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*QueryGetMorseClaimableAccountRequest) Descriptor
deprecated
func (*QueryGetMorseClaimableAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetMorseClaimableAccountRequest.ProtoReflect.Descriptor instead.
func (*QueryGetMorseClaimableAccountRequest) GetAddress ¶
func (x *QueryGetMorseClaimableAccountRequest) GetAddress() string
func (*QueryGetMorseClaimableAccountRequest) ProtoMessage ¶
func (*QueryGetMorseClaimableAccountRequest) ProtoMessage()
func (*QueryGetMorseClaimableAccountRequest) ProtoReflect ¶
func (x *QueryGetMorseClaimableAccountRequest) ProtoReflect() protoreflect.Message
func (*QueryGetMorseClaimableAccountRequest) Reset ¶
func (x *QueryGetMorseClaimableAccountRequest) Reset()
func (*QueryGetMorseClaimableAccountRequest) String ¶
func (x *QueryGetMorseClaimableAccountRequest) String() string
type QueryGetMorseClaimableAccountResponse ¶
type QueryGetMorseClaimableAccountResponse struct {
MorseClaimableAccount *MorseClaimableAccount `protobuf:"bytes,1,opt,name=morseClaimableAccount,proto3" json:"morseClaimableAccount,omitempty"`
// contains filtered or unexported fields
}
func (*QueryGetMorseClaimableAccountResponse) Descriptor
deprecated
func (*QueryGetMorseClaimableAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetMorseClaimableAccountResponse.ProtoReflect.Descriptor instead.
func (*QueryGetMorseClaimableAccountResponse) GetMorseClaimableAccount ¶
func (x *QueryGetMorseClaimableAccountResponse) GetMorseClaimableAccount() *MorseClaimableAccount
func (*QueryGetMorseClaimableAccountResponse) ProtoMessage ¶
func (*QueryGetMorseClaimableAccountResponse) ProtoMessage()
func (*QueryGetMorseClaimableAccountResponse) ProtoReflect ¶
func (x *QueryGetMorseClaimableAccountResponse) ProtoReflect() protoreflect.Message
func (*QueryGetMorseClaimableAccountResponse) Reset ¶
func (x *QueryGetMorseClaimableAccountResponse) Reset()
func (*QueryGetMorseClaimableAccountResponse) String ¶
func (x *QueryGetMorseClaimableAccountResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
// contains filtered or unexported fields
}
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
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)
// contains filtered or unexported methods
}
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
Query defines the gRPC querier service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) ClaimMorseAccount ¶
func (UnimplementedMsgServer) ClaimMorseAccount(context.Context, *MsgClaimMorseAccount) (*MsgClaimMorseAccountResponse, error)
func (UnimplementedMsgServer) ImportMorseClaimableAccounts ¶
func (UnimplementedMsgServer) ImportMorseClaimableAccounts(context.Context, *MsgImportMorseClaimableAccounts) (*MsgImportMorseClaimableAccountsResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) MorseClaimableAccount ¶
func (UnimplementedQueryServer) MorseClaimableAccount(context.Context, *QueryGetMorseClaimableAccountRequest) (*QueryGetMorseClaimableAccountResponse, error)
func (UnimplementedQueryServer) MorseClaimableAccountAll ¶
func (UnimplementedQueryServer) MorseClaimableAccountAll(context.Context, *QueryAllMorseClaimableAccountRequest) (*QueryAllMorseClaimableAccountResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.