Skip to content

Add conviction checks to bridge contract#29

Open
silva-fj wants to merge 1 commit into
mainfrom
add-conviction-check-to-bridge-contract
Open

Add conviction checks to bridge contract#29
silva-fj wants to merge 1 commit into
mainfrom
add-conviction-check-to-bridge-contract

Conversation

@silva-fj

@silva-fj silva-fj commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add conviction-aware stake availability checks to the Bittensor bridge contract and Subtensor chain extension binding.
  • Enforce available Alpha checks before deposits, withdrawal finalization, and admin manual releases while keeping the existing hotkey stake checks.
  • Refresh bridge integration fixtures and coverage, including conviction-locked deposit behavior.
  • Update the bridge spec to match the implemented request ID, nonce, and stake-availability behavior.
  • Align alpha-bridge pallet tests with existing pallet behavior; no alpha-bridge runtime logic was changed.

Testing

  • cargo test -p bridge
  • cargo test -p pallet-alpha-bridge
  • CONTRACTS_NODE_URL=ws://127.0.0.1:9944 pnpm test:run from contracts/bridge/integration-tests with localnet
  • git diff --check

Caution

These changes rely on a new chain extension on subtensor, the contract should not be deployed until those changes land on mainnet. I will open the PR on subtensor once I have everything needed for the Taostats OTC contracts

@silva-fj silva-fj marked this pull request as ready for review June 17, 2026 09:49
@silva-fj silva-fj changed the title Add conviction checks to bridge contract deposits Add conviction checks to bridge contract Jun 17, 2026
@faizsarwar faizsarwar self-requested a review June 18, 2026 08:18
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.

2 participants