Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MainchainRecoveryManager class #9165

Open
Tracked by #6919
ishantiw opened this issue Nov 29, 2023 · 0 comments
Open
Tracked by #6919

Implement MainchainRecoveryManager class #9165

ishantiw opened this issue Nov 29, 2023 · 0 comments

Comments

@ishantiw
Copy link
Member

ishantiw commented Nov 29, 2023

Description

class MainchainRecoveryManager extends BaseRecoveryManager {
	private _messageRecoveryDB: Database;

	constructor({ config, chainID, stateRecoveryDB, messageRecoveryDB, sidechainChainID }) {
		super({ config, chainID, stateRecoveryDB });
		this._messageRecoveryDB = messageRecoveryDB;
	}

	// saves CCMs and inclusion proof on the mainchain on every new block
	public enableMessageRecovery() {}

	// creates tx
	public triggerMessageRecovery(chainID){
		// gets information from DB
	}

      public cleanup()
}

Acceptance Criteria

  • Should have all the unit tests
@ishantiw ishantiw changed the title Create MainchainRecoveryManager class Implement MainchainRecoveryManager class Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant