Documentation ¶
Index ¶
- func ClaimTx(kp crypto.PrivateKey, cliCtx util.CLIContext, txBuilder auth.TxBuilder, ...) (*sdk.TxResponse, error)
- func ExportGenesis(ctx sdk.Ctx, k keeper.Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Ctx, keeper keeper.Keeper, data types.GenesisState) []abci.ValidatorUpdate
- func NewHandler(keeper keeper.Keeper) sdk.Handler
- func ProofTx(cliCtx util.CLIContext, txBuilder auth.TxBuilder, ...) (*sdk.TxResponse, error)
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Ctx, req abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Ctx, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Ctx) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Ctx, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- func (am AppModule) UpgradeCodec(ctx sdk.Ctx)
- type AppModuleBasic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimTx ¶
func ClaimTx(kp crypto.PrivateKey, cliCtx util.CLIContext, txBuilder auth.TxBuilder, header types.SessionHeader, totalProofs int64, root types.HashRange, evidenceType types.EvidenceType) (*sdk.TxResponse, error)
"ClaimTx" - A transaction that sends the total number of proofs (claim), the merkle root (for data integrity), and the header (for identification)
func ExportGenesis ¶
"ExportGenesis" - Exports the state in a genesis state object
func InitGenesis ¶
func InitGenesis(ctx sdk.Ctx, keeper keeper.Keeper, data types.GenesisState) []abci.ValidatorUpdate
"InitGenesis" - Initializes the state with a genesis state object
func NewHandler ¶
"NewHandler" - Returns a handler for "pocketCore" type messages.
func ProofTx ¶
func ProofTx(cliCtx util.CLIContext, txBuilder auth.TxBuilder, merkleProof types.MerkleProof, leafNode types.Proof, evidenceType types.EvidenceType) (*sdk.TxResponse, error)
"ProofTx" - A transaction to prove the claim that was previously sent (Merkle Proofs and leaf/cousin)
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // a fundamental structure for all mods // contains filtered or unexported fields }
"AppModule" - The higher level building block for a module
func NewAppModule ¶
"NewAppModule" - Creates a new AppModule Object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Ctx, req abci.RequestBeginBlock)
"BeginBlock" - Functionality that is called at the beginning of (every) block
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Ctx, _ abci.RequestEndBlock) []abci.ValidatorUpdate
"EndBlock" - Functionality that is called at the end of (every) block
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Ctx) json.RawMessage
"ExportGenesis" - Exports the genesis from raw json
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Ctx, data json.RawMessage) []abci.ValidatorUpdate
"InitGenesis" - Inits the module genesis from raw json
func (AppModule) NewHandler ¶
"NewHandler" - returns the handler for the module
func (AppModule) NewQuerierHandler ¶
"NewQuerierHandler" - returns the query handler for the module
func (AppModule) QuerierRoute ¶
"QuerierRoute" - returns the route of the module for queries
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
"RegisterInvariants" - Unused crisis checking
func (AppModule) UpgradeCodec ¶
type AppModuleBasic ¶
type AppModuleBasic struct{}
"AppModuleBasic" - The fundamental building block of a sdk module
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
"DefaultGenesis" - Returns the default genesis for the module
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
"Name" - Returns the name of the module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
"RegisterCodec" - Registers the codec for the module
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bytes json.RawMessage) error
"ValidateGenesis" - Validation check for genesis state bytes