lisk-sdk
lisk-sdk copied to clipboard
Implement SidechainRecoveryManager class
Description
- Based on SidechainRecoveryManager class created in https://github.com/LiskHQ/lisk-sdk/issues/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