Testing Guide

Repeatable QA without manual setup fatigue

Use automated local bootstrap and fixed role wallets. Avoid ad-hoc manual deployment loops.

1. Baseline workflow

  1. Run local chain: npx hardhat node.
  2. Run bootstrap: npx hardhat run scripts/deploy/bootstrap-local.ts --network localhost.
  3. Restart Next dev server to reload NEXT_PUBLIC_* values.
  4. Open latest alliance from `/dapp/alliances`.

2. Wallet role mapping (bootstrap defaults)

  • Deployer/owner: signer #0
  • Participants: signer #1, #2, #3
  • NFT seller: signer #4

3. Suggested test matrix

AreaPositive pathNegative path
Fundingapprove + deposit by participantwrong wallet, over target, post-deadline deposit
Acquisitionvote `voteToAcquire`, reach quorum, execute `buyNFT`tuple mismatch, expired acquisition deadline, quorum not reached
Governanceproposal vote and execute saledeadline mismatch, insufficient quorum, proposal reset conditions
Emergencyvote and emergency withdrawal flowinsufficient emergency quorum

4. Known local trap

Hardhat local chain resets on node restart. Any previously printed factory/token/alliance address becomes invalid and must be replaced by newly deployed values.

Public testing notice text

Demo version. Community testing is active. Reports and useful fixes are rewarded in FATK. This is not a default cash bug bounty.