Documentation ¶
Index ¶
- Constants
- func AccountToValue(account types.Account) ([]byte, error)
- func DecodeTransactionData(encoded []byte) ([][]byte, error)
- func EncodeTransactionData(data [][]byte) []byte
- func Hash(val1, val2 []byte) []byte
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetSender(ctx sdk.Context, slot uint64) (string, bool)
- func (k Keeper) GetSenderStore(ctx sdk.Context) sdk.KVStore
- func (k Keeper) GetStateRoot(ctx sdk.Context, slot uint64) ([]byte, error)
- func (k Keeper) GetStateRootStore(ctx sdk.Context) sdk.KVStore
- func (k Keeper) GetTransactionData(ctx sdk.Context, slot uint64) ([][]byte, error)
- func (k Keeper) GetTransactionDataStore(ctx sdk.Context) sdk.KVStore
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) IsTxSenderWhitelisted(ctx sdk.Context, addr string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RecordedTransactionData(ctx context.Context, req *types.QueryRecordedTransactionDataRequest) (*types.QueryRecordedTransactionDataResponse, error)
- func (k Keeper) Sender(ctx context.Context, req *types.QuerySenderRequest) (*types.QuerySenderResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSender(ctx sdk.Context, slot uint64, sender string)
- func (k Keeper) SetStateRoot(ctx sdk.Context, slot uint64, stateRoot []byte)
- func (k Keeper) SetTransactionData(ctx sdk.Context, slot uint64, data [][]byte)
- func (k Keeper) StateRoot(ctx context.Context, req *types.QueryStateRootRequest) (*types.QueryStateRootResponse, error)
- func (k *Keeper) Validate(root []byte, proof *types.MerkleProof) error
Constants ¶
View Source
const ( HeaderSizeTotalCount = 8 HeaderSizePerTx = 8 )
View Source
const ( RightSibling = 1 LeftSibling = -1 )
Variables ¶
This section is empty.
Functions ¶
func DecodeTransactionData ¶
func EncodeTransactionData ¶
First 8 bytes: count (C) of transactions Next 8 * C bytes: transaction sizes The rest: transaction bodies
func NewMsgServerImpl ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) GetStateRoot ¶
func (Keeper) GetTransactionData ¶
func (Keeper) GetTransactionDataStore ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
func (Keeper) IsTxSenderWhitelisted ¶
func (Keeper) Params ¶
func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RecordedTransactionData ¶
func (k Keeper) RecordedTransactionData(ctx context.Context, req *types.QueryRecordedTransactionDataRequest) (*types.QueryRecordedTransactionDataResponse, error)
func (Keeper) Sender ¶
func (k Keeper) Sender(ctx context.Context, req *types.QuerySenderRequest) (*types.QuerySenderResponse, error)
func (Keeper) SetStateRoot ¶
func (Keeper) SetTransactionData ¶
func (Keeper) StateRoot ¶
func (k Keeper) StateRoot(ctx context.Context, req *types.QueryStateRootRequest) (*types.QueryStateRootResponse, error)
Click to show internal directories.
Click to hide internal directories.