Skip to content

Treasury payouts post migration#261

Merged
dhirajs0 merged 23 commits intomainfrom
treasury-payouts-post-migration
Nov 6, 2025
Merged

Treasury payouts post migration#261
dhirajs0 merged 23 commits intomainfrom
treasury-payouts-post-migration

Conversation

@dhirajs0
Copy link
Copy Markdown
Contributor

@dhirajs0 dhirajs0 commented Oct 27, 2025

Check treasury payouts which are already approved can be paid out post-migration

I have tested it locally for Kusama, the treasury payout call is working and the spend is getting processed.

It is kept in a separate directory as this test need to call an extrinsic and therefore need a locally forked network to modify it, compared to other tests that are only calling the rpc end point for fetching the storage data.

I have tested it on post migration snapshot from ci run Links , it was working on PAH as well.

@dhirajs0 dhirajs0 requested a review from x3c41a October 27, 2025 16:30
Comment thread package.json
"authorize-upgrade": "node dist/zombie-bite-scripts/authorize_upgrade_ah.js",
"report-account-migration-status": "node dist/zombie-bite-scripts/report_account_migration_status.js",
"compare-state": "node dist/migration-tests/index.js",
"treasury-payouts": "node dist/migration-tests/treasury_payout/run_treasury_payouts.js",
Copy link
Copy Markdown
Contributor Author

@dhirajs0 dhirajs0 Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a script for this test.

Comment thread package.json
Comment on lines +83 to +85
(spendData?.status.isPending || spendData?.status.isFailed) && // pending or failed
spendData?.validFrom.toNumber() < currentRelayChainBlockNumber && // not early payout
spendData?.expireAt.toNumber() > currentRelayChainBlockNumber // not expired
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat 👏

Comment thread migration-tests/treasury_payout/treasury_payouts.ts Outdated
Comment thread migration-tests/treasury_payout/treasury_payouts.ts Outdated
Comment thread justfiles/ahm.justfile Outdated
Comment thread justfiles/ahm.justfile
Comment thread justfiles/ahm.justfile Outdated
Comment thread migration-tests/treasury_payout/treasury_payouts.ts Outdated
Comment thread package.json
dhirajs0 and others added 8 commits November 3, 2025 17:46
Co-authored-by: Dónal Murray <donalm@seadanda.dev>
Co-authored-by: Dónal Murray <donalm@seadanda.dev>
remove redundant network check.

Co-authored-by: Dónal Murray <donalm@seadanda.dev>
Co-authored-by: Dónal Murray <donalm@seadanda.dev>
Comment thread justfiles/ahm.justfile
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, when ahm is over, we either need to merge it or close.

Leaving this one up to you

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, let me resolve the merge conflict. Then we are good to go.

@dhirajs0 dhirajs0 merged commit 11b6d0f into main Nov 6, 2025
2 checks passed
@dhirajs0 dhirajs0 deleted the treasury-payouts-post-migration branch November 6, 2025 13:05
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.

4 participants