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.
classRecoveryEndpointextendsBasePluginEndpoint{private_recoveryManager: SidechainRecoveryManager|MainchainRecoveryManager;load(recoveryManager){this._recoveryManager=recoveryManager;}publicaddQueryKey(chainID,queryKey){constsidechainClient=this._recoveryManager._sidechainClientMap.get(chainID);if(sidechainClient){sidechainClient.enableStateRecovery();sidechainClient.addQueryKey(queryKey);}}publicaddChainForRecovery(chainID,connectionURL){constsidechainClient=this._recoveryManager._sidechainClientMap.get(chainID);if(!sidechainClient){this._recoveryManager.addSideChainClient(chainID,connectionURL);}}// Delete client for which recovery is no longer neededpublicdeleteChainForRecovery(chainID){}// Delete queryKey for which recovery is no longer neededpublicdeleteQueryKey(chainID,queryKey){}// User can get moduleName and subStorePrefix from getMetadata endpoint and key is what the user wants to trackpubliccreateQueryKey(moduleName,subStorePrefix,key){}: returnsqueryKeystringpublictriggerStateRecovery(chainID,queryKey,txFee){this._recoveryManager.triggerStateRecovery(chainID,queryKey);// update all the inclusion proofs if the transaction was included successfully}publictriggerMessageRecovery(chainID,txFee): returns{txID,txJSON}publictriggerInitStateRecovery(chainID,queryKey,txFee): returns{txID,txJSON}publictriggerInitMessageRecovery(chainID,txFee): returns{txID,txJSON}// Enable signing of transactionpublicauthorize(password)// It will send liveness termination command to mainchainpublicterminateChain(chainID)}
Make sure all the endpoints return data in JSON format
Acceptance Criteria
Should have unit tests for all the endpoints
The text was updated successfully, but these errors were encountered:
Description
Implement
RecoveryEndpoint
class.Acceptance Criteria
The text was updated successfully, but these errors were encountered: