Skip to content

Commit

Permalink
fix: add unit tests and resolve rollbackstate
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh01000100 <[email protected]>
  • Loading branch information
Yogesh01000100 committed Oct 16, 2024
1 parent 3851603 commit fb703b4
Show file tree
Hide file tree
Showing 24 changed files with 1,235 additions and 441 deletions.
5 changes: 1 addition & 4 deletions packages/cactus-plugin-satp-hermes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@
"pretsc": "npm run generate-sdk",
"tsc": "tsc --project ./tsconfig.json",
"watch": "tsc --build --watch",
"forge": "forge build ./src/solidity/*.sol --out ./src/solidity/generated",
"forge:test": "forge build ./src/test/solidity/contracts/*.sol --out ./src/test/solidity/generated",
"forge:all": "run-s 'forge' 'forge:test'",
"db:setup": "bash -c 'npm run db:destroy || true && run-s db:start db:migrate db:seed'",
"db:destroy": "docker-compose down -v && npm run db:cleanup",
"db:start": "docker-compose up -d",
Expand Down Expand Up @@ -129,7 +126,7 @@
"kubo-rpc-client": "3.0.1",
"npm-run-all": "4.1.5",
"openzeppelin-solidity": "3.4.2",
"pg": "^8.8.0",
"pg": "^8.13.0",
"secp256k1": "4.0.3",
"socket.io": "4.6.2",
"sqlite3": "5.1.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,14 @@ message RollbackLogEntry {
string action = 4; // action performed during rollback
string status = 5; // status of rollback (e.g., SUCCESS, FAILED)
string details = 6; // Additional details or metadata about the rollback
}

message RollbackState {
string session_id = 1;
string current_stage = 2;
int32 steps_remaining = 3;
repeated RollbackLogEntry rollback_log_entries = 4;
string estimated_time_to_completion = 5;
string status = 6; // Overall status (e.g., IN_PROGRESS, COMPLETED, FAILED)
string details = 7; // Additional metadata or information
}
Loading

0 comments on commit fb703b4

Please sign in to comment.