Skip to content

Implement E2E Test Suite for Multisig Pallet #297

Closed
@rockbmb

Description

@rockbmb

Description

The multisig pallet provides multi-signature dispatch functionality, allowing multiple accounts to coordinate and execute calls from a deterministic composite origin.

Objectives

Implement E2E tests covering key multisig pallet flows:

  • Multisig Creation: Test as_multi() for multi-step operations with various threshold configurations
    • as_multi_threshold_1() cannot be tested initially, as it is not possible to create a 1-threshold multisignature account in PJS.
  • Approval Process: Test approve_as_multi()/as_multi() for adding approvals to existing multisig operations, including threshold validation and signatory ordering
  • Execution and Cancellation: Test successful execution when threshold is met and cancel_as_multi() for operation cancellation by the depositor
  • Deposit Management: Test poke_deposit() for updating deposit amounts and deposit calculation based on threshold and signatory count
  • Edge Cases: Test invalid thresholds, duplicate approvals, wrong timepoints, unauthorized cancellations, and integration with other pallets for actual call execution

Metadata

Metadata

Assignees

Labels

e2e testsRelated to end-to-end testsenhancementNew feature or request

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions