types

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const (
	// MorseClaimableAccountKeyPrefix is the prefix to retrieve all MorseClaimableAccount
	MorseClaimableAccountKeyPrefix = "MorseClaimableAccount/value/"
)
View Source
const MorseSignatureLengthBytes = 64

Variables

View Source
var (
	ErrInvalidSigner         = sdkerrors.Register(ModuleName, 1100, "expected x/gov module account as the only signer for migration state import messages")
	ErrMorseAccountsImport   = sdkerrors.Register(ModuleName, 1101, "unable to import morse claimable accounts")
	ErrMorseAccountClaim     = sdkerrors.Register(ModuleName, 1102, "unable to claim morse account")
	ErrMorseApplicationClaim = sdkerrors.Register(ModuleName, 1104, "unable to claim morse account as a staked application")
	ErrMorseSupplierClaim    = sdkerrors.Register(ModuleName, 1105, "unable to claim morse account as a staked supplier")
	ErrMigrationParamInvalid = sdkerrors.Register(ModuleName, 1106, "the provided param is invalid")
	ErrMorseSrcAddress       = sdkerrors.Register(ModuleName, 1107, "invalid Morse source account address")
	ErrMorseSignature        = sdkerrors.Register(ModuleName, 1108, "invalid morse signature")
)

x/migration module sentinel errors

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMorseOffchain        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMorseOffchain          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMorseOffchain = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMorseOnchain        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMorseOnchain          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMorseOnchain = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyWaiveMorseClaimGasFees     = []byte("WaiveMorseClaimGasFees")
	ParamWaiveMorseClaimGasFees   = "waive_morse_claim_gas_fees"
	DefaultWaiveMorseClaimGasFees = false
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var (
	ParamsKey = []byte("p_migration")
)
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func MorseClaimableAccountKey

func MorseClaimableAccountKey(
	address string,
) []byte

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateWaiveMorseClaimGasFees added in v0.1.2

func ValidateWaiveMorseClaimGasFees(waiveMorseClaimGasFeesAny any) error

ValidateWaiveMorseClaimGasFees validates the WaiveMorseClaimGasFees param.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
	GetParams(context.Context) authtypes.Params
}

AccountKeeper defines the expected interface for the Account module.

type ApplicationKeeper added in v0.0.14

type ApplicationKeeper interface {
	GetApplication(ctx context.Context, appAddr string) (app apptypes.Application, found bool)
	SetApplication(ctx context.Context, application apptypes.Application)
	GetParams(ctx context.Context) apptypes.Params
	StakeApplication(ctx context.Context, logger cosmoslog.Logger, msg *apptypes.MsgStakeApplication) (*apptypes.Application, error)
}

type BankKeeper

type BankKeeper interface {
	SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins
	MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

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 (*EventImportMorseClaimableAccounts) Size

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

func (*EventImportMorseClaimableAccounts) 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 (*EventImportMorseClaimableAccounts) XXX_Size

func (m *EventImportMorseClaimableAccounts) XXX_Size() int

func (*EventImportMorseClaimableAccounts) XXX_Unmarshal

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

type EventMorseAccountClaimed added in v0.0.14

type EventMorseAccountClaimed struct {
	// The session end height (on Shannon) in which the claim was committed (i.e. claimed).
	SessionEndHeight int64 `protobuf:"varint,1,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
	// The unstaked balance which was claimed.
	ClaimedBalance types.Coin `protobuf:"bytes,2,opt,name=claimed_balance,json=claimedBalance,proto3" json:"claimed_balance"`
	// The bech32-encoded address of the Shannon account to which the claimed balance will be minted.
	ShannonDestAddress string `protobuf:"bytes,3,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,4,opt,name=morse_src_address,json=morseSrcAddress,proto3" json:"morse_src_address"`
}

EventMorseAccountClaimed is emitted when a MorseAccount is claimed on-chain.

func (*EventMorseAccountClaimed) Descriptor added in v0.0.14

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

func (*EventMorseAccountClaimed) GetClaimedBalance added in v0.0.14

func (m *EventMorseAccountClaimed) GetClaimedBalance() types.Coin

func (*EventMorseAccountClaimed) GetMorseSrcAddress added in v0.0.14

func (m *EventMorseAccountClaimed) GetMorseSrcAddress() string

func (*EventMorseAccountClaimed) GetSessionEndHeight added in v0.0.14

func (m *EventMorseAccountClaimed) GetSessionEndHeight() int64

func (*EventMorseAccountClaimed) GetShannonDestAddress added in v0.0.14

func (m *EventMorseAccountClaimed) GetShannonDestAddress() string

func (*EventMorseAccountClaimed) Marshal added in v0.0.14

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

func (*EventMorseAccountClaimed) MarshalTo added in v0.0.14

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

func (*EventMorseAccountClaimed) MarshalToSizedBuffer added in v0.0.14

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

func (*EventMorseAccountClaimed) ProtoMessage added in v0.0.14

func (*EventMorseAccountClaimed) ProtoMessage()

func (*EventMorseAccountClaimed) Reset added in v0.0.14

func (m *EventMorseAccountClaimed) Reset()

func (*EventMorseAccountClaimed) Size added in v0.0.14

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

func (*EventMorseAccountClaimed) String added in v0.0.14

func (m *EventMorseAccountClaimed) String() string

func (*EventMorseAccountClaimed) Unmarshal added in v0.0.14

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

func (*EventMorseAccountClaimed) XXX_DiscardUnknown added in v0.0.14

func (m *EventMorseAccountClaimed) XXX_DiscardUnknown()

func (*EventMorseAccountClaimed) XXX_Marshal added in v0.0.14

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

func (*EventMorseAccountClaimed) XXX_Merge added in v0.0.14

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

func (*EventMorseAccountClaimed) XXX_Size added in v0.0.14

func (m *EventMorseAccountClaimed) XXX_Size() int

func (*EventMorseAccountClaimed) XXX_Unmarshal added in v0.0.14

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

type EventMorseApplicationClaimed added in v0.0.14

type EventMorseApplicationClaimed struct {
	// The session end height (on Shannon) in which the claim was committed (i.e. claimed).
	SessionEndHeight int64 `protobuf:"varint,1,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
	// The unstaked balance which was claimed.
	ClaimedBalance types.Coin `protobuf:"bytes,2,opt,name=claimed_balance,json=claimedBalance,proto3" json:"claimed_balance"`
	// The hex-encoded address of the Morse account whose balance will be claimed.
	MorseSrcAddress string `protobuf:"bytes,3,opt,name=morse_src_address,json=morseSrcAddress,proto3" json:"morse_src_address"`
	// The stake of the application which was staked as a result of the claim.
	ClaimedApplicationStake types.Coin `protobuf:"bytes,4,opt,name=claimed_application_stake,json=claimedApplicationStake,proto3" json:"claimed_application_stake"`
	// The application which was staked as a result of the claim.
	// This is equivalent to the amount it had staked on Morse.
	Application *types1.Application `protobuf:"bytes,5,opt,name=application,proto3" json:"application"`
}

EventMorseApplicationClaimed is emitted when a MorseAccount is claimed on-chain as a staked application.

func (*EventMorseApplicationClaimed) Descriptor added in v0.0.14

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

func (*EventMorseApplicationClaimed) GetApplication added in v0.0.14

func (m *EventMorseApplicationClaimed) GetApplication() *types1.Application

func (*EventMorseApplicationClaimed) GetClaimedApplicationStake added in v0.0.14

func (m *EventMorseApplicationClaimed) GetClaimedApplicationStake() types.Coin

func (*EventMorseApplicationClaimed) GetClaimedBalance added in v0.0.14

func (m *EventMorseApplicationClaimed) GetClaimedBalance() types.Coin

func (*EventMorseApplicationClaimed) GetMorseSrcAddress added in v0.0.14

func (m *EventMorseApplicationClaimed) GetMorseSrcAddress() string

func (*EventMorseApplicationClaimed) GetSessionEndHeight added in v0.0.14

func (m *EventMorseApplicationClaimed) GetSessionEndHeight() int64

func (*EventMorseApplicationClaimed) Marshal added in v0.0.14

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

func (*EventMorseApplicationClaimed) MarshalTo added in v0.0.14

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

func (*EventMorseApplicationClaimed) MarshalToSizedBuffer added in v0.0.14

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

func (*EventMorseApplicationClaimed) ProtoMessage added in v0.0.14

func (*EventMorseApplicationClaimed) ProtoMessage()

func (*EventMorseApplicationClaimed) Reset added in v0.0.14

func (m *EventMorseApplicationClaimed) Reset()

func (*EventMorseApplicationClaimed) Size added in v0.0.14

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

func (*EventMorseApplicationClaimed) String added in v0.0.14

func (*EventMorseApplicationClaimed) Unmarshal added in v0.0.14

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

func (*EventMorseApplicationClaimed) XXX_DiscardUnknown added in v0.0.14

func (m *EventMorseApplicationClaimed) XXX_DiscardUnknown()

func (*EventMorseApplicationClaimed) XXX_Marshal added in v0.0.14

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

func (*EventMorseApplicationClaimed) XXX_Merge added in v0.0.14

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

func (*EventMorseApplicationClaimed) XXX_Size added in v0.0.14

func (m *EventMorseApplicationClaimed) XXX_Size() int

func (*EventMorseApplicationClaimed) XXX_Unmarshal added in v0.0.14

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

type EventMorseSupplierClaimed added in v0.0.14

type EventMorseSupplierClaimed struct {
	// The session end height (on Shannon) in which the claim was committed (i.e. claimed).
	SessionEndHeight int64 `protobuf:"varint,1,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
	// The unstaked balance which was claimed.
	ClaimedBalance types.Coin `protobuf:"bytes,2,opt,name=claimed_balance,json=claimedBalance,proto3" json:"claimed_balance"`
	// The hex-encoded address of the Morse account whose balance will be claimed.
	MorseSrcAddress string `protobuf:"bytes,3,opt,name=morse_src_address,json=morseSrcAddress,proto3" json:"morse_src_address"`
	// The stake of the Supplier which was staked as a result of the claim.
	// This will be equivalent to the amount it had staked on Morse.
	ClaimedSupplierStake types.Coin `protobuf:"bytes,4,opt,name=claimed_supplier_stake,json=claimedSupplierStake,proto3" json:"claimed_supplier_stake"`
	// The Supplier which was staked as a result of the claim.
	Supplier *types2.Supplier `protobuf:"bytes,5,opt,name=supplier,proto3" json:"supplier"`
}

EventMorseSupplierClaimed is emitted when a MorseAccount is claimed on-chain as a staked Supplier.

func (*EventMorseSupplierClaimed) Descriptor added in v0.0.14

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

func (*EventMorseSupplierClaimed) GetClaimedBalance added in v0.0.14

func (m *EventMorseSupplierClaimed) GetClaimedBalance() types.Coin

func (*EventMorseSupplierClaimed) GetClaimedSupplierStake added in v0.0.14

func (m *EventMorseSupplierClaimed) GetClaimedSupplierStake() types.Coin

func (*EventMorseSupplierClaimed) GetMorseSrcAddress added in v0.0.14

func (m *EventMorseSupplierClaimed) GetMorseSrcAddress() string

func (*EventMorseSupplierClaimed) GetSessionEndHeight added in v0.0.14

func (m *EventMorseSupplierClaimed) GetSessionEndHeight() int64

func (*EventMorseSupplierClaimed) GetSupplier added in v0.0.14

func (m *EventMorseSupplierClaimed) GetSupplier() *types2.Supplier

func (*EventMorseSupplierClaimed) Marshal added in v0.0.14

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

func (*EventMorseSupplierClaimed) MarshalTo added in v0.0.14

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

func (*EventMorseSupplierClaimed) MarshalToSizedBuffer added in v0.0.14

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

func (*EventMorseSupplierClaimed) ProtoMessage added in v0.0.14

func (*EventMorseSupplierClaimed) ProtoMessage()

func (*EventMorseSupplierClaimed) Reset added in v0.0.14

func (m *EventMorseSupplierClaimed) Reset()

func (*EventMorseSupplierClaimed) Size added in v0.0.14

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

func (*EventMorseSupplierClaimed) String added in v0.0.14

func (m *EventMorseSupplierClaimed) String() string

func (*EventMorseSupplierClaimed) Unmarshal added in v0.0.14

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

func (*EventMorseSupplierClaimed) XXX_DiscardUnknown added in v0.0.14

func (m *EventMorseSupplierClaimed) XXX_DiscardUnknown()

func (*EventMorseSupplierClaimed) XXX_Marshal added in v0.0.14

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

func (*EventMorseSupplierClaimed) XXX_Merge added in v0.0.14

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

func (*EventMorseSupplierClaimed) XXX_Size added in v0.0.14

func (m *EventMorseSupplierClaimed) XXX_Size() int

func (*EventMorseSupplierClaimed) XXX_Unmarshal added in v0.0.14

func (m *EventMorseSupplierClaimed) 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) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) 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) MarshalTo

func (m *MorseAccount) MarshalTo(dAtA []byte) (int, 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_MIGRATION(@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:"staked_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) MarshalTo

func (m *MorseApplication) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*MorseAuth) GetAccounts

func (m *MorseAuth) GetAccounts() []*MorseAuthAccount

func (*MorseAuth) Marshal

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

func (*MorseAuth) MarshalTo

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

func (*MorseAuth) MarshalToSizedBuffer

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

func (*MorseAuth) ProtoMessage

func (*MorseAuth) ProtoMessage()

func (*MorseAuth) Reset

func (m *MorseAuth) Reset()

func (*MorseAuth) Size

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

func (*MorseAuth) String

func (m *MorseAuth) String() string

func (*MorseAuth) Unmarshal

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

func (*MorseAuth) XXX_DiscardUnknown

func (m *MorseAuth) XXX_DiscardUnknown()

func (*MorseAuth) XXX_Marshal

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

func (*MorseAuth) XXX_Merge

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

func (*MorseAuth) XXX_Size

func (m *MorseAuth) XXX_Size() int

func (*MorseAuth) XXX_Unmarshal

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

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) MarshalTo

func (m *MorseAuthAccount) MarshalTo(dAtA []byte) (int, 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 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) 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) IsClaimed added in v0.0.14

func (m *MorseClaimableAccount) IsClaimed() bool

IsClaimed returns true if the MorseClaimableAccount has been claimed; i.e. ShannonDestAddress is not empty OR the ClaimedAtHeight is greater than 0.

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) TotalTokens added in v0.0.14

func (m MorseClaimableAccount) TotalTokens() cosmostypes.Coin

TotalTokens returns the sum of the unstaked balance, application stake, and supplier stake.

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) Descriptor() ([]byte, []int)

func (*MorsePos) GetValidators

func (m *MorsePos) GetValidators() []*MorseValidator

func (*MorsePos) Marshal

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

func (*MorsePos) MarshalTo

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

func (*MorsePos) MarshalToSizedBuffer

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

func (*MorsePos) ProtoMessage

func (*MorsePos) ProtoMessage()

func (*MorsePos) Reset

func (m *MorsePos) Reset()

func (*MorsePos) Size

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

func (*MorsePos) String

func (m *MorsePos) String() string

func (*MorsePos) Unmarshal

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

func (*MorsePos) XXX_DiscardUnknown

func (m *MorsePos) XXX_DiscardUnknown()

func (*MorsePos) XXX_Marshal

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

func (*MorsePos) XXX_Merge

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

func (*MorsePos) XXX_Size

func (m *MorsePos) XXX_Size() int

func (*MorsePos) XXX_Unmarshal

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

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) MarshalTo

func (m *MorsePublicKey) MarshalTo(dAtA []byte) (int, 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 ...

Ref: https://editor.swagger.io/?url=https://raw.githubusercontent.com/pokt-network/pocket-core/staging/doc/specs/rpc-spec.yaml#operations-query-post_query_state

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) MarshalTo

func (m *MorseStateExport) MarshalTo(dAtA []byte) (int, 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()`.

See: https://github.com/pokt-network/pocket-core/blob/5fa61920aa9d45ca6bf9e01e863134e242c95fa7/app/pocket.go#L142

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_MIGRATION(@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) MarshalTo

func (m *MorseValidator) MarshalTo(dAtA []byte) (int, 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 which is signing for this message.
	// This account is liable for any fees incurred by violating the constraints of Morse
	// account/actor claim message fee waiving; the tx contains ONE OR MORE Morse account/actor
	// claim messages AND has EXACTLY ONE signer.
	ShannonSigningAddress string `protobuf:"bytes,4,opt,name=shannon_signing_address,json=shannonSigningAddress,proto3" json:"shannon_signing_address"`
	// 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 ed25519 public key of the morse account with morse_src_address.
	MorsePublicKey github_com_cometbft_cometbft_crypto_ed25519.PubKey `` /* 165-byte string literal not displayed */
	// 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 []byte `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,
	morsePrivateKey cometcrypto.PrivKey,
	shannonSigningAddr string,
) (*MsgClaimMorseAccount, error)

func (*MsgClaimMorseAccount) Descriptor

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

func (*MsgClaimMorseAccount) GetMorsePublicKey added in v0.1.2

func (*MsgClaimMorseAccount) GetMorseSignature

func (m *MsgClaimMorseAccount) GetMorseSignature() []byte

func (*MsgClaimMorseAccount) GetMorseSrcAddress

func (msg *MsgClaimMorseAccount) GetMorseSrcAddress() string

GetMorseSrcAddress returns the morse source address associated with the Morse public key of the given message.

func (*MsgClaimMorseAccount) GetShannonDestAddress

func (m *MsgClaimMorseAccount) GetShannonDestAddress() string

func (*MsgClaimMorseAccount) GetShannonSigningAddress added in v0.1.2

func (m *MsgClaimMorseAccount) GetShannonSigningAddress() 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) SignMsgClaimMorseAccount added in v0.0.14

func (msg *MsgClaimMorseAccount) SignMsgClaimMorseAccount(morsePrivKey cometcrypto.PrivKey) (err error)

SignMsgClaimMorseAccount signs the given MsgClaimMorseAccount with the given Morse private key.

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

ValidateBasic ensures that: - The shannonDestAddress is valid (i.e. it is a valid bech32 address). - The morsePublicKey is valid. - The morseSrcAddress matches the public key. - The morseSignature is valid.

func (*MsgClaimMorseAccount) ValidateMorseSignature added in v0.0.14

func (msg *MsgClaimMorseAccount) ValidateMorseSignature() error

ValidateMorseSignature validates the signature of the given MsgClaimMorseAccount matches the given Morse public key.

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 session end height (on Shannon) in which the claim was committed (i.e. claimed).
	SessionEndHeight int64 `protobuf:"varint,3,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
}

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) GetClaimedBalance

func (m *MsgClaimMorseAccountResponse) GetClaimedBalance() types.Coin

func (*MsgClaimMorseAccountResponse) GetMorseSrcAddress

func (m *MsgClaimMorseAccountResponse) GetMorseSrcAddress() string

func (*MsgClaimMorseAccountResponse) GetSessionEndHeight added in v0.0.14

func (m *MsgClaimMorseAccountResponse) GetSessionEndHeight() int64

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 (*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 MsgClaimMorseApplication added in v0.0.14

type MsgClaimMorseApplication struct {
	// The bech32-encoded address of the Shannon account which is signing for this message.
	// This account is liable for any fees incurred by violating the constraints of Morse
	// account/actor claim message fee waiving; the tx contains ONE OR MORE Morse account/actor
	// claim messages AND has EXACTLY ONE signer.
	ShannonSigningAddress string `protobuf:"bytes,5,opt,name=shannon_signing_address,json=shannonSigningAddress,proto3" json:"shannon_signing_address"`
	// The bech32-encoded address of the Shannon account to which the claimed tokens
	// will be minted and from which the application will be staked.
	ShannonDestAddress string `protobuf:"bytes,1,opt,name=shannon_dest_address,json=shannonDestAddress,proto3" json:"shannon_dest_address"`
	// The ed25519 public key of the morse account with morse_src_address.
	MorsePublicKey github_com_cometbft_cometbft_crypto_ed25519.PubKey `` /* 165-byte string literal not displayed */
	// 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 []byte `protobuf:"bytes,3,opt,name=morse_signature,json=morseSignature,proto3" json:"morse_signature"`
	// The services this application is staked to request service for.
	// NOTE: This is not a repeated field, as in MsgStakeApplication,
	// because an application can only be staked for one service.
	ServiceConfig *types1.ApplicationServiceConfig `protobuf:"bytes,4,opt,name=service_config,json=serviceConfig,proto3" json:"service_config"`
}

MsgClaimMorseApplication is used to execute a claim (one-time minting of tokens on Shannon), of the total tokens owned by the given Morse account, according to the on-chain MorseClaimableAccounts, to the balance of the given Shannon account, followed by staking that Shannon account as an application for the given service_config and the same stake amount as on Morse.

func NewMsgClaimMorseApplication added in v0.0.14

func NewMsgClaimMorseApplication(
	shannonDestAddress string,
	morsePrivateKey cometcrypto.PrivKey,
	serviceConfig *sharedtypes.ApplicationServiceConfig,
	shannonSigningAddr string,
) (*MsgClaimMorseApplication, error)

NewMsgClaimMorseApplication creates a new MsgClaimMorseApplication. If morsePrivateKey is provided (i.e. not nil), it is used to sign the message.

func (*MsgClaimMorseApplication) Descriptor added in v0.0.14

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

func (*MsgClaimMorseApplication) GetMorsePublicKey added in v0.1.2

func (*MsgClaimMorseApplication) GetMorseSignature added in v0.0.14

func (m *MsgClaimMorseApplication) GetMorseSignature() []byte

func (*MsgClaimMorseApplication) GetMorseSrcAddress added in v0.0.14

func (msg *MsgClaimMorseApplication) GetMorseSrcAddress() string

GetMorseSrcAddress returns the morse source address associated with the Morse public key of the given message.

func (*MsgClaimMorseApplication) GetServiceConfig added in v0.0.14

func (*MsgClaimMorseApplication) GetShannonDestAddress added in v0.0.14

func (m *MsgClaimMorseApplication) GetShannonDestAddress() string

func (*MsgClaimMorseApplication) GetShannonSigningAddress added in v0.1.2

func (m *MsgClaimMorseApplication) GetShannonSigningAddress() string

func (*MsgClaimMorseApplication) Marshal added in v0.0.14

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

func (*MsgClaimMorseApplication) MarshalTo added in v0.0.14

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

func (*MsgClaimMorseApplication) MarshalToSizedBuffer added in v0.0.14

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

func (*MsgClaimMorseApplication) ProtoMessage added in v0.0.14

func (*MsgClaimMorseApplication) ProtoMessage()

func (*MsgClaimMorseApplication) Reset added in v0.0.14

func (m *MsgClaimMorseApplication) Reset()

func (*MsgClaimMorseApplication) SignMorseSignature added in v0.0.14

func (msg *MsgClaimMorseApplication) SignMorseSignature(morsePrivKey cometcrypto.PrivKey) (err error)

SignMorseSignature signs the given MsgClaimMorseApplication with the given Morse private key.

func (*MsgClaimMorseApplication) Size added in v0.0.14

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

func (*MsgClaimMorseApplication) String added in v0.0.14

func (m *MsgClaimMorseApplication) String() string

func (*MsgClaimMorseApplication) Unmarshal added in v0.0.14

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

func (*MsgClaimMorseApplication) ValidateBasic added in v0.0.14

func (msg *MsgClaimMorseApplication) ValidateBasic() error

ValidateBasic ensures that: - The shannonDestAddress is valid (i.e. it is a valid bech32 address). - The application service config is valid. - The morsePublicKey is valid. - The morseSrcAddress matches the public key. - The morseSignature is valid.

func (*MsgClaimMorseApplication) ValidateMorseSignature added in v0.0.14

func (msg *MsgClaimMorseApplication) ValidateMorseSignature() error

ValidateMorseSignature validates the signature of the given MsgClaimMorseApplication matches the given Morse public key.

func (*MsgClaimMorseApplication) XXX_DiscardUnknown added in v0.0.14

func (m *MsgClaimMorseApplication) XXX_DiscardUnknown()

func (*MsgClaimMorseApplication) XXX_Marshal added in v0.0.14

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

func (*MsgClaimMorseApplication) XXX_Merge added in v0.0.14

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

func (*MsgClaimMorseApplication) XXX_Size added in v0.0.14

func (m *MsgClaimMorseApplication) XXX_Size() int

func (*MsgClaimMorseApplication) XXX_Unmarshal added in v0.0.14

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

type MsgClaimMorseApplicationResponse added in v0.0.14

type MsgClaimMorseApplicationResponse struct {
	// The hex-encoded address of the Morse account whose balance will be claimed.
	MorseSrcAddress string `protobuf:"bytes,1,opt,name=morse_src_address,json=morseSrcAddress,proto3" json:"morse_src_address"`
	// The unstaked balance which was claimed.
	ClaimedBalance types.Coin `protobuf:"bytes,2,opt,name=claimed_balance,json=claimedBalance,proto3" json:"claimed_balance"`
	// The stake of the application which was staked as a result of the claim.
	// If the application was already staked, this amount does not include the initial stake (i.e. only the portion which was "claimed").
	ClaimedApplicationStake types.Coin `protobuf:"bytes,3,opt,name=claimedApplicationStake,proto3" json:"claimed_application_stake"`
	// The session end height (on Shannon) in which the claim was committed (i.e. claimed).
	SessionEndHeight int64 `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
	// The application which was staked as a result of the claim.
	Application *types2.Application `protobuf:"bytes,5,opt,name=application,proto3" json:"application"`
}

MsgClaimMorseApplicationResponse is returned from MsgClaimMorseApplication. It indicates the morse_src_address of the account which was claimed, the unstaked balance claimed, the application stake, and the height at which the claim was committed.

func (*MsgClaimMorseApplicationResponse) Descriptor added in v0.0.14

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

func (*MsgClaimMorseApplicationResponse) GetApplication added in v0.0.14

func (*MsgClaimMorseApplicationResponse) GetClaimedApplicationStake added in v0.0.14

func (m *MsgClaimMorseApplicationResponse) GetClaimedApplicationStake() types.Coin

func (*MsgClaimMorseApplicationResponse) GetClaimedBalance added in v0.0.14

func (m *MsgClaimMorseApplicationResponse) GetClaimedBalance() types.Coin

func (*MsgClaimMorseApplicationResponse) GetMorseSrcAddress added in v0.0.14

func (m *MsgClaimMorseApplicationResponse) GetMorseSrcAddress() string

func (*MsgClaimMorseApplicationResponse) GetSessionEndHeight added in v0.0.14

func (m *MsgClaimMorseApplicationResponse) GetSessionEndHeight() int64

func (*MsgClaimMorseApplicationResponse) Marshal added in v0.0.14

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

func (*MsgClaimMorseApplicationResponse) MarshalTo added in v0.0.14

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

func (*MsgClaimMorseApplicationResponse) MarshalToSizedBuffer added in v0.0.14

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

func (*MsgClaimMorseApplicationResponse) ProtoMessage added in v0.0.14

func (*MsgClaimMorseApplicationResponse) ProtoMessage()

func (*MsgClaimMorseApplicationResponse) Reset added in v0.0.14

func (*MsgClaimMorseApplicationResponse) Size added in v0.0.14

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

func (*MsgClaimMorseApplicationResponse) String added in v0.0.14

func (*MsgClaimMorseApplicationResponse) Unmarshal added in v0.0.14

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

func (*MsgClaimMorseApplicationResponse) XXX_DiscardUnknown added in v0.0.14

func (m *MsgClaimMorseApplicationResponse) XXX_DiscardUnknown()

func (*MsgClaimMorseApplicationResponse) XXX_Marshal added in v0.0.14

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

func (*MsgClaimMorseApplicationResponse) XXX_Merge added in v0.0.14

func (*MsgClaimMorseApplicationResponse) XXX_Size added in v0.0.14

func (m *MsgClaimMorseApplicationResponse) XXX_Size() int

func (*MsgClaimMorseApplicationResponse) XXX_Unmarshal added in v0.0.14

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

type MsgClaimMorseSupplier added in v0.0.14

type MsgClaimMorseSupplier struct {
	// The bech32-encoded address of the Shannon account which is signing for this message.
	// This account is liable for any fees incurred by violating the constraints of Morse
	// account/actor claim message fee waiving; the tx contains ONE OR MORE Morse account/actor
	// claim messages AND has EXACTLY ONE signer.
	ShannonSigningAddress string `protobuf:"bytes,6,opt,name=shannon_signing_address,json=shannonSigningAddress,proto3" json:"shannon_signing_address"`
	// The bech32-encoded address of the Shannon account to which the claimed tokens
	// will be minted and which become the supplier owner.
	// See: https://dev.poktroll.com/operate/configs/supplier_staking_config#staking-types.
	ShannonOwnerAddress string `protobuf:"bytes,1,opt,name=shannon_owner_address,json=shannonOwnerAddress,proto3" json:"shannon_owner_address"`
	// The bech32-encoded address of the Shannon account to which will become the supplier operator.
	// If empty, the shannon_owner_address will be used.
	// See: https://dev.poktroll.com/operate/configs/supplier_staking_config#staking-types.
	ShannonOperatorAddress string `protobuf:"bytes,2,opt,name=shannon_operator_address,json=shannonOperatorAddress,proto3" json:"shannon_operator_address"`
	// The ed25519 public key of the morse account with morse_src_address.
	MorsePublicKey github_com_cometbft_cometbft_crypto_ed25519.PubKey `` /* 165-byte string literal not displayed */
	// 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, ...}))
	//
	// TODO_MAINNET(@bryanchriswhite, #1126): Rename to `morse_src_owner_signature`.
	MorseSignature []byte `protobuf:"bytes,4,opt,name=morse_signature,json=morseSignature,proto3" json:"morse_signature"`
	// The services this supplier is staked to provide service for.
	Services []*types1.SupplierServiceConfig `protobuf:"bytes,5,rep,name=services,proto3" json:"services"`
}

MsgClaimMorseSupplier is used to: - Execute a one-time minting of tokens on Shannon based on tokens owned by the given Morse account - Use the on-chain MorseClaimableAccounts for verification - Credit the minted tokens to the balance of the given Shannon account - Automatically stake that Shannon account as a supplier

NOTE: The supplier module's staking fee parameter (at the time of claiming) is deducted from the claimed balance.

func NewMsgClaimMorseSupplier added in v0.0.14

func NewMsgClaimMorseSupplier(
	shannonOwnerAddress string,
	shannonOperatorAddress string,
	morsePrivateKey cometcrypto.PrivKey,
	services []*sharedtypes.SupplierServiceConfig,
	shannonSigningAddr string,
) (*MsgClaimMorseSupplier, error)

NewMsgClaimMorseSupplier creates a new MsgClaimMorseSupplier. If morsePrivateKey is provided (i.e. not nil), it is used to sign the message.

func (*MsgClaimMorseSupplier) Descriptor added in v0.0.14

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

func (*MsgClaimMorseSupplier) GetMorsePublicKey added in v0.1.2

func (*MsgClaimMorseSupplier) GetMorseSignature added in v0.0.14

func (m *MsgClaimMorseSupplier) GetMorseSignature() []byte

func (*MsgClaimMorseSupplier) GetMorseSrcAddress added in v0.0.14

func (msg *MsgClaimMorseSupplier) GetMorseSrcAddress() string

GetMorseSrcAddress returns the morse source address associated with the Morse public key of the given message.

func (*MsgClaimMorseSupplier) GetServices added in v0.0.14

func (*MsgClaimMorseSupplier) GetShannonOperatorAddress added in v0.0.14

func (m *MsgClaimMorseSupplier) GetShannonOperatorAddress() string

func (*MsgClaimMorseSupplier) GetShannonOwnerAddress added in v0.0.14

func (m *MsgClaimMorseSupplier) GetShannonOwnerAddress() string

func (*MsgClaimMorseSupplier) GetShannonSigningAddress added in v0.1.2

func (m *MsgClaimMorseSupplier) GetShannonSigningAddress() string

func (*MsgClaimMorseSupplier) Marshal added in v0.0.14

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

func (*MsgClaimMorseSupplier) MarshalTo added in v0.0.14

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

func (*MsgClaimMorseSupplier) MarshalToSizedBuffer added in v0.0.14

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

func (*MsgClaimMorseSupplier) ProtoMessage added in v0.0.14

func (*MsgClaimMorseSupplier) ProtoMessage()

func (*MsgClaimMorseSupplier) Reset added in v0.0.14

func (m *MsgClaimMorseSupplier) Reset()

func (*MsgClaimMorseSupplier) SignMorseSignature added in v0.0.14

func (msg *MsgClaimMorseSupplier) SignMorseSignature(morsePrivKey cometcrypto.PrivKey) (err error)

SignMorseSignature signs the given MsgClaimMorseApplication with the given Morse private key.

func (*MsgClaimMorseSupplier) Size added in v0.0.14

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

func (*MsgClaimMorseSupplier) String added in v0.0.14

func (m *MsgClaimMorseSupplier) String() string

func (*MsgClaimMorseSupplier) Unmarshal added in v0.0.14

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

func (*MsgClaimMorseSupplier) ValidateBasic added in v0.0.14

func (msg *MsgClaimMorseSupplier) ValidateBasic() error

ValidateBasic ensures that: - The shannon owner address is valid (i.e. it is a valid bech32 address). - The shannon operator address is valid (i.e. it is a valid bech32 address). - The supplier service configs are valid. - The morsePublicKey is valid. - The morseSrcAddress matches the public key. - The morseSignature is valid.

func (*MsgClaimMorseSupplier) ValidateMorseSignature added in v0.0.14

func (msg *MsgClaimMorseSupplier) ValidateMorseSignature() error

ValidateMorseSignature validates the signature of the given MsgClaimMorseSupplier matches the given Morse public key.

func (*MsgClaimMorseSupplier) XXX_DiscardUnknown added in v0.0.14

func (m *MsgClaimMorseSupplier) XXX_DiscardUnknown()

func (*MsgClaimMorseSupplier) XXX_Marshal added in v0.0.14

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

func (*MsgClaimMorseSupplier) XXX_Merge added in v0.0.14

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

func (*MsgClaimMorseSupplier) XXX_Size added in v0.0.14

func (m *MsgClaimMorseSupplier) XXX_Size() int

func (*MsgClaimMorseSupplier) XXX_Unmarshal added in v0.0.14

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

type MsgClaimMorseSupplierResponse added in v0.0.14

type MsgClaimMorseSupplierResponse struct {
	// The hex-encoded address of the Morse account whose balance was claimed.
	// E.g.: 00f9900606fa3d5c9179fc0c8513078a53a2073e
	MorseSrcAddress string `protobuf:"bytes,1,opt,name=morse_src_address,json=morseSrcAddress,proto3" json:"morse_src_address"`
	// The unstaked balance which was claimed.
	ClaimedBalance       types.Coin `protobuf:"bytes,2,opt,name=claimed_balance,json=claimedBalance,proto3" json:"claimed_balance"`
	ClaimedSupplierStake types.Coin `protobuf:"bytes,3,opt,name=claimed_supplier_stake,json=claimedSupplierStake,proto3" json:"claimed_supplier_stake"`
	// The session end height (on Shannon) in which the claim was committed (i.e. claimed).
	SessionEndHeight int64 `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
	// The supplier which was staked as a result of the claim.
	Supplier *types1.Supplier `protobuf:"bytes,5,opt,name=supplier,proto3" json:"supplier"`
}

MsgClaimMorseSupplierResponse is returned from MsgClaimMorseSupplier. It indicates: - The morse_src_address of the claimed account - The unstaked balance claimed - The session end height in which the claim was committed - The staked supplier

func (*MsgClaimMorseSupplierResponse) Descriptor added in v0.0.14

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

func (*MsgClaimMorseSupplierResponse) GetClaimedBalance added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) GetClaimedBalance() types.Coin

func (*MsgClaimMorseSupplierResponse) GetClaimedSupplierStake added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) GetClaimedSupplierStake() types.Coin

func (*MsgClaimMorseSupplierResponse) GetMorseSrcAddress added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) GetMorseSrcAddress() string

func (*MsgClaimMorseSupplierResponse) GetSessionEndHeight added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) GetSessionEndHeight() int64

func (*MsgClaimMorseSupplierResponse) GetSupplier added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) GetSupplier() *types1.Supplier

func (*MsgClaimMorseSupplierResponse) Marshal added in v0.0.14

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

func (*MsgClaimMorseSupplierResponse) MarshalTo added in v0.0.14

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

func (*MsgClaimMorseSupplierResponse) MarshalToSizedBuffer added in v0.0.14

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

func (*MsgClaimMorseSupplierResponse) ProtoMessage added in v0.0.14

func (*MsgClaimMorseSupplierResponse) ProtoMessage()

func (*MsgClaimMorseSupplierResponse) Reset added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) Reset()

func (*MsgClaimMorseSupplierResponse) Size added in v0.0.14

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

func (*MsgClaimMorseSupplierResponse) String added in v0.0.14

func (*MsgClaimMorseSupplierResponse) Unmarshal added in v0.0.14

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

func (*MsgClaimMorseSupplierResponse) XXX_DiscardUnknown added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) XXX_DiscardUnknown()

func (*MsgClaimMorseSupplierResponse) XXX_Marshal added in v0.0.14

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

func (*MsgClaimMorseSupplierResponse) XXX_Merge added in v0.0.14

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

func (*MsgClaimMorseSupplierResponse) XXX_Size added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) XXX_Size() int

func (*MsgClaimMorseSupplierResponse) XXX_Unmarshal added in v0.0.14

func (m *MsgClaimMorseSupplierResponse) 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)
	ClaimMorseApplication(ctx context.Context, in *MsgClaimMorseApplication, opts ...grpc.CallOption) (*MsgClaimMorseApplicationResponse, error)
	ClaimMorseSupplier(ctx context.Context, in *MsgClaimMorseSupplier, opts ...grpc.CallOption) (*MsgClaimMorseSupplierResponse, 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 `pocketd tx migration collect-morse-accounts` command.
	MorseAccountState MorseAccountState `protobuf:"bytes,2,opt,name=morse_account_state,json=morseAccountState,proto3" json:"morse_account_state"`
	// Additional documentation:
	// - pocket util export-genesis-for-migration --help
	// - pocketd tx migration 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 (*MsgImportMorseClaimableAccounts) Size

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

func (*MsgImportMorseClaimableAccounts) 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) Reset

func (*MsgImportMorseClaimableAccountsResponse) Size

func (*MsgImportMorseClaimableAccountsResponse) 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 (*MsgImportMorseClaimableAccountsResponse) XXX_Size

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)
	ClaimMorseApplication(context.Context, *MsgClaimMorseApplication) (*MsgClaimMorseApplicationResponse, error)
	ClaimMorseSupplier(context.Context, *MsgClaimMorseSupplier) (*MsgClaimMorseSupplierResponse, 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) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, 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 {
	// waive_morse_claim_gas_fees is a feature flag used to enable/disable the waiving of gas fees for txs that:
	// - Contain exactly one secp256k1 signer
	// - Contain at least one Morse account/actor claim messages
	// - Do not contain any other messages other than Morse account/actor claim messages
	WaiveMorseClaimGasFees bool `` /* 158-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	waiveMorseClaimGasFees bool,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetWaiveMorseClaimGasFees added in v0.1.2

func (m *Params) GetWaiveMorseClaimGasFees() bool

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

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 (*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 (*QueryAllMorseClaimableAccountRequest) Size

func (*QueryAllMorseClaimableAccountRequest) 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 (*QueryAllMorseClaimableAccountRequest) XXX_Size

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 (*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 (*QueryAllMorseClaimableAccountResponse) Size

func (*QueryAllMorseClaimableAccountResponse) 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 (*QueryAllMorseClaimableAccountResponse) XXX_Size

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 *QueryMorseClaimableAccountRequest, opts ...grpc.CallOption) (*QueryMorseClaimableAccountResponse, 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 QueryMorseClaimableAccountRequest added in v0.0.14

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

func (*QueryMorseClaimableAccountRequest) Descriptor added in v0.0.14

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

func (*QueryMorseClaimableAccountRequest) GetAddress added in v0.0.14

func (m *QueryMorseClaimableAccountRequest) GetAddress() string

func (*QueryMorseClaimableAccountRequest) Marshal added in v0.0.14

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

func (*QueryMorseClaimableAccountRequest) MarshalTo added in v0.0.14

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

func (*QueryMorseClaimableAccountRequest) MarshalToSizedBuffer added in v0.0.14

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

func (*QueryMorseClaimableAccountRequest) ProtoMessage added in v0.0.14

func (*QueryMorseClaimableAccountRequest) ProtoMessage()

func (*QueryMorseClaimableAccountRequest) Reset added in v0.0.14

func (*QueryMorseClaimableAccountRequest) Size added in v0.0.14

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

func (*QueryMorseClaimableAccountRequest) String added in v0.0.14

func (*QueryMorseClaimableAccountRequest) Unmarshal added in v0.0.14

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

func (*QueryMorseClaimableAccountRequest) XXX_DiscardUnknown added in v0.0.14

func (m *QueryMorseClaimableAccountRequest) XXX_DiscardUnknown()

func (*QueryMorseClaimableAccountRequest) XXX_Marshal added in v0.0.14

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

func (*QueryMorseClaimableAccountRequest) XXX_Merge added in v0.0.14

func (*QueryMorseClaimableAccountRequest) XXX_Size added in v0.0.14

func (m *QueryMorseClaimableAccountRequest) XXX_Size() int

func (*QueryMorseClaimableAccountRequest) XXX_Unmarshal added in v0.0.14

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

type QueryMorseClaimableAccountResponse added in v0.0.14

type QueryMorseClaimableAccountResponse struct {
	MorseClaimableAccount MorseClaimableAccount `protobuf:"bytes,1,opt,name=morseClaimableAccount,proto3" json:"morseClaimableAccount"`
}

func (*QueryMorseClaimableAccountResponse) Descriptor added in v0.0.14

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

func (*QueryMorseClaimableAccountResponse) GetMorseClaimableAccount added in v0.0.14

func (m *QueryMorseClaimableAccountResponse) GetMorseClaimableAccount() MorseClaimableAccount

func (*QueryMorseClaimableAccountResponse) Marshal added in v0.0.14

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

func (*QueryMorseClaimableAccountResponse) MarshalTo added in v0.0.14

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

func (*QueryMorseClaimableAccountResponse) MarshalToSizedBuffer added in v0.0.14

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

func (*QueryMorseClaimableAccountResponse) ProtoMessage added in v0.0.14

func (*QueryMorseClaimableAccountResponse) ProtoMessage()

func (*QueryMorseClaimableAccountResponse) Reset added in v0.0.14

func (*QueryMorseClaimableAccountResponse) Size added in v0.0.14

func (*QueryMorseClaimableAccountResponse) String added in v0.0.14

func (*QueryMorseClaimableAccountResponse) Unmarshal added in v0.0.14

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

func (*QueryMorseClaimableAccountResponse) XXX_DiscardUnknown added in v0.0.14

func (m *QueryMorseClaimableAccountResponse) XXX_DiscardUnknown()

func (*QueryMorseClaimableAccountResponse) XXX_Marshal added in v0.0.14

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

func (*QueryMorseClaimableAccountResponse) XXX_Merge added in v0.0.14

func (*QueryMorseClaimableAccountResponse) XXX_Size added in v0.0.14

func (*QueryMorseClaimableAccountResponse) XXX_Unmarshal added in v0.0.14

func (m *QueryMorseClaimableAccountResponse) 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, *QueryMorseClaimableAccountRequest) (*QueryMorseClaimableAccountResponse, error)
	MorseClaimableAccountAll(context.Context, *QueryAllMorseClaimableAccountRequest) (*QueryAllMorseClaimableAccountResponse, error)
}

QueryServer is the server API for Query service.

type SharedKeeper added in v0.0.14

type SharedKeeper interface {
	GetParams(ctx context.Context) sharedtypes.Params
}

type SupplierKeeper added in v0.0.14

type SupplierKeeper interface {
	GetSupplier(ctx context.Context, supplierOperatorAddr string) (supplier sharedtypes.Supplier, found bool)
	SetSupplier(ctx context.Context, supplier sharedtypes.Supplier)
	StakeSupplier(ctx context.Context, logger cosmoslog.Logger, msg *suppliertypes.MsgStakeSupplier) (*sharedtypes.Supplier, error)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ClaimMorseAccount

func (*UnimplementedMsgServer) ClaimMorseApplication added in v0.0.14

func (*UnimplementedMsgServer) ClaimMorseSupplier added in v0.0.14

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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