Skip to content

Multi-asset-bounties e2e tests. - #597

Draft
dhirajs0 wants to merge 8 commits into
open-web3-stack:masterfrom
dhirajs0:multi-asset-bounties-e2e-tests
Draft

Multi-asset-bounties e2e tests.#597
dhirajs0 wants to merge 8 commits into
open-web3-stack:masterfrom
dhirajs0:multi-asset-bounties-e2e-tests

Conversation

@dhirajs0

@dhirajs0 dhirajs0 commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Adds an end-to-end test suite for pallet-multi-asset-bounties
on Kusama Asset Hub and Polkadot Asset Hub. Covers the full bounty lifecycle for native KSM, USDT,
and DOT-as-foreign-asset, plus a governance path (SmallSpender referendum)
for fund_bounty. The same shared test tree is wired up on Polkadot Asset
Hub for when the pallet ships there.

What's added

Group Tests
Native fund / check status / accept curator / award / full lifecycle
USDT fund + full lifecycle (with assetRate setup so BalanceConverter admits the spend)
DOT (foreign) full lifecycle + caller-supplied-values variant
Governance SmallSpender referendum submitting fund_bounty, decision deposit, force-dispatch under that origin

Shared helpers: ensureUSDTBountySetup / ensureDOTBountySetup (asset rate,
foreign-asset create, treasury seed), V5 asset-kind + beneficiary builders,
preimage helper.

How to verify

yarn test:kusama assetHubKusama.multiAssetBounties             # all MAB tests
yarn test:kusama -t "DOT bounty lifecycle with custom call"    # custom-values
yarn test:kusama -t "SmallSpender referendum for fund_bounty"  # governance

Closes: #598

@dhirajs0
dhirajs0 marked this pull request as ready for review May 8, 2026 11:27
@dhirajs0
dhirajs0 marked this pull request as draft May 8, 2026 11:27
@dhirajs0
dhirajs0 marked this pull request as ready for review May 8, 2026 12:57
@dhirajs0
dhirajs0 marked this pull request as draft May 10, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add e2e tests for the new multi-asset-bounties pallet.

1 participant