Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
d6ec0f7
bounties module added
dhirajs0 Sep 4, 2025
b2aeffb
Creating a bounty test added
dhirajs0 Sep 4, 2025
289da9e
bounty approval flow test added
dhirajs0 Sep 4, 2025
6583de2
curator assignment and acceptance test added
dhirajs0 Sep 5, 2025
c1279db
rafac: setupTestAccounts function using a map
dhirajs0 Sep 9, 2025
aacbce1
rafac: bountyValue is changed to exential deposit multiple
dhirajs0 Sep 9, 2025
ac3066a
fix: bountyValue type is set to BigInt
dhirajs0 Sep 10, 2025
46a8d53
Bountry approval flow with Curator test added
dhirajs0 Sep 10, 2025
0e4e845
fix: added event verification in bountyApprovalWithCuratorTest
dhirajs0 Sep 10, 2025
b68fbe8
bountyFundingTest added
dhirajs0 Sep 10, 2025
31dd6ac
Bounty funding for ApprovedWithCurator Bounties test added
dhirajs0 Sep 10, 2025
39c758e
Curator assignment and acceptance test added
dhirajs0 Sep 10, 2025
cd0d353
improve: setStorage replaced with extrinsics call
dhirajs0 Sep 12, 2025
b6baac5
helper function getBountyEvents added
dhirajs0 Sep 12, 2025
64d8ce6
setStorage replaces with Extrinsic call in fundind with curator test
dhirajs0 Sep 15, 2025
bca934b
replaced the setStorage with Extrinsic calls in curator assignment an…
dhirajs0 Sep 15, 2025
33019a2
bounty extension test added
dhirajs0 Sep 15, 2025
7e20cdb
bounty awading and claiming tests added
dhirajs0 Sep 15, 2025
1f4ac58
bounty closure on proposed test added
dhirajs0 Sep 15, 2025
8c5ae5e
bounty closure in funded state test added
dhirajs0 Sep 15, 2025
e5403b6
helper function to log all events added
dhirajs0 Sep 15, 2025
3bff36d
update: blance slash check added in bounty closure of proposed bounty…
dhirajs0 Sep 15, 2025
de4380d
bounty closure in active state test added
dhirajs0 Sep 15, 2025
df503aa
unassign curator when bounty state is ApprovedWithCurator test is added
dhirajs0 Sep 15, 2025
2297f8d
unassign curator of bounty in curator proposed state test added
dhirajs0 Sep 16, 2025
51e55e7
unassign curator by curator when bounty status is Active test added
dhirajs0 Sep 16, 2025
0224166
unassign curator by treasury when bounty is active test is added
dhirajs0 Sep 16, 2025
1de2dfb
unassign curator by treasury when bounty status is PendingPayout test…
dhirajs0 Sep 16, 2025
4dff492
refac: unassign curates tests are grouped
dhirajs0 Sep 16, 2025
4284aa9
refac: bounty clousure tests are grouped together
dhirajs0 Sep 16, 2025
8f25c68
debug logs removed
dhirajs0 Sep 18, 2025
cbb4291
removed unused functions
dhirajs0 Sep 19, 2025
60e0cec
polkadot snaps added
dhirajs0 Sep 19, 2025
290a044
kusama snapshot added
dhirajs0 Sep 19, 2025
78b145d
failure test: close bounty in approved status emits UnexpectedStatus …
dhirajs0 Sep 19, 2025
34c295a
removed get all bounty events
dhirajs0 Sep 19, 2025
c9dbc24
failure test: added bountyClosure in PendingPayoutTest emits PendingP…
dhirajs0 Sep 19, 2025
d10c4cd
failure test: added unassignCuratorActiveStateByPublicPrematureTest e…
dhirajs0 Sep 19, 2025
c396856
failure test: reasonTooBigTest added
dhirajs0 Sep 19, 2025
f32a1ab
failure test: invalidValueTest
dhirajs0 Sep 19, 2025
92873dd
failure test: invalidIndexApprovalTest added
dhirajs0 Sep 19, 2025
166deaa
failure test: unexpectedStatusProposeCuratorTest proposing curator b…
dhirajs0 Sep 19, 2025
7615e6f
failure test: requireCuratorAcceptTest i.e Non-curator trying to acce…
dhirajs0 Sep 19, 2025
f23a752
fix: typecasting removed from getBountyIndexFromEvent
dhirajs0 Sep 19, 2025
bace3c8
refac
dhirajs0 Sep 19, 2025
c90ef96
refac: grouped bounty success tests
dhirajs0 Sep 19, 2025
fc819c7
refac: grouped approval tests and funding tests
dhirajs0 Sep 19, 2025
5b23af8
failure test: hasActiveChildBountyTest added, Bounty cannot be awarde…
dhirajs0 Sep 19, 2025
f645277
refac
dhirajs0 Sep 19, 2025
cef1c55
improv: explicit expect are used
dhirajs0 Sep 19, 2025
35bc702
refac: added helper fun, removed magic nums
dhirajs0 Sep 19, 2025
1bf7448
refac: defined type of params
dhirajs0 Sep 19, 2025
0f24e0d
snanpshots updated for polkadot and kusama
dhirajs0 Sep 19, 2025
37cfb5a
fix
dhirajs0 Sep 23, 2025
e212286
Merge branch 'master' into bounties-e2e
dhirajs0 Sep 23, 2025
c37a27e
refac: parameterize the sendTransation and scheduleInlineCallWithOrig…
dhirajs0 Sep 23, 2025
ed92bea
readme: added bounties tests convered
dhirajs0 Sep 24, 2025
379c601
devAccounts replaced with testAccounts
dhirajs0 Sep 26, 2025
67da6c0
set the lastSpendPeriod such that the next spend is few block ahead
dhirajs0 Sep 26, 2025
6a0f9fc
snapshot of bounties updated
dhirajs0 Sep 26, 2025
656ddd4
added setLastSpendPeriodBlockNumber() fn for repeated logic
dhirajs0 Sep 29, 2025
7fb4b4f
added extractExtrinsicFailedEvent() for repeated logic
dhirajs0 Sep 29, 2025
871110a
minor improvements
dhirajs0 Sep 29, 2025
e98793a
Merge branch 'master' into bounties-e2e
dhirajs0 Sep 29, 2025
1598eb0
linter warning fixed
dhirajs0 Sep 30, 2025
5a11ba6
empty events fixed and docs updated
dhirajs0 Oct 5, 2025
33d2688
snapshot updated
dhirajs0 Oct 5, 2025
c1e3a92
openng docs updated
dhirajs0 Oct 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ These include:
- Requesting judgement requests on registrars, and providing it
- Adding registrars to the people chain by sending, from the relay chain, an XCM call with root origin
- Adding, modifying, and removing subidentities for an account
- E2E test suite for bounties infrastructure:
- Bounty creation, approval, and funding workflows
- Curator assignment, acceptance, and management
- Bounty extension, awarding, and claiming processes
- Bounty closure in various states (proposed, funded, active)
- Curator unassignment scenarios (by curator themselves vs. treasurer)
- Comprehensive failure mode testing:
- Invalid bounty values and descriptions
- Premature curator unassignment
- Bounty closure restrictions (approved/pending payout states)
- Non-curator attempting to accept curator role
- Child bounty constraints preventing parent bounty closure

The intent behind these end-to-end tests is to cover the basic behavior of relay chains' and system
parachains' runtimes.
Expand Down
Loading