LiskArchive / lisk-sdk

🔩 Lisk software development kit

Home Page:https://lisk.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement SidechainRecoveryManager class

ishantiw opened this issue · comments

Description

  • Based on SidechainRecoveryManager class created in #9164 Implement all the methods for this class
class SidechainRecoveryManager extends BaseRecoveryManager {
	private _mainchainClient: APIClient;

	constructor({ config, chainID, stateRecoveryDB, mainchainClient }) {
		super({ config, chainID, stateRecoveryDB });
		this._mainchainClient = mainchainClient;
	}

	// Only init state recovery is extra command as compared to BaseRecoveryManager
	// we can call mainchainClient to build the params
	public triggerInitStateRecovery(chainID, queryKey){}
    
      public cleanup()
}

Acceptance Criteria

  • Should have all the unit tests