You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Propose and define types for each data type, define getDBInstance to create DB instance. Below is one proposal,
// Data to be stored for state recoveryinterfaceInclusionProof{height: number;stateRoot: Buffer;inclusionProof: OutboxRootWitness&{key: Buffer;value: Buffer};storeValue: Buffer;storeKey: Buffer;}interfaceProofByHeight{Proof: Proof;Height: number}// Data to be stored for message recoveryinterfaceCCMAndInclusionProofByHeight{ccms: CCM[];Proof: Proof;Height: number;}
Define DB classes for state and message recovery without implementation
classStateRecoveryDB{// Save proof by heightpublicsetInclusionProof(chainID,queryKey,proofByHeight){}publicgetInclusionProof(chainID,queryKey){}publicgetInclusionProofByHeight(height: number){}publicdeleteInclusionProofsUntilHeight(height: number){}}classMessageRecoveryDB{// Save CCMs and proof by heightpublicsetCCMs(chainID,CCMAndInclusionProofByHeight[]){}publicgetCCMs(chainID){}}
Acceptance Criteria
Should have all the files, interfaces and tests should be present
Description
getDBInstance
to create DB instance. Below is one proposal,Acceptance Criteria
Additional Information
The text was updated successfully, but these errors were encountered: