Description:
The contract has pause() and unpause() admin functions (at lib.rs:440-465) for emergency stops. These are critical safety features that allow administrators to halt all contract operations in case of a discovered vulnerability. However, the CLI has no commands to invoke them.
The CLI commands should:
iln pause — pause the contract (requires admin authentication)
iln unpause — unpause the contract (requires admin authentication)
- Both should display confirmation and the resulting transaction hash
- Both should check contract state before executing (e.g., don't pause if already paused)
Why it matters: Emergency pause functionality must be accessible quickly. Requiring developers to write code to pause a contract defeats the purpose of emergency controls.
Acceptance Criteria:
Relevant Files: cli/src/index.ts, contracts/invoice_liquidity/src/lib.rs:440-465
Description:
The contract has
pause()andunpause()admin functions (atlib.rs:440-465) for emergency stops. These are critical safety features that allow administrators to halt all contract operations in case of a discovered vulnerability. However, the CLI has no commands to invoke them.The CLI commands should:
iln pause— pause the contract (requires admin authentication)iln unpause— unpause the contract (requires admin authentication)Why it matters: Emergency pause functionality must be accessible quickly. Requiring developers to write code to pause a contract defeats the purpose of emergency controls.
Acceptance Criteria:
cli/src/commands/pause.tswithpauseandunpausesubcommandscli/src/index.tsasiln pauseandiln unpauseRelevant Files:
cli/src/index.ts,contracts/invoice_liquidity/src/lib.rs:440-465