Skip to content

chore(abi): sync tnt-core v0.11.3 + wire disputeSlash bond value#3172

Merged
drewstone merged 3 commits into
developfrom
chore/sync-tnt-core-v0.11.2
May 6, 2026
Merged

chore(abi): sync tnt-core v0.11.3 + wire disputeSlash bond value#3172
drewstone merged 3 commits into
developfrom
chore/sync-tnt-core-v0.11.2

Conversation

@drewstone
Copy link
Copy Markdown
Contributor

Summary

  • Syncs tangle.ts ABI to tnt-core bindings v0.11.3 (adds getSlashConfig() view)
  • Adds useSlashConfig hook that reads active SlashConfig (including disputeBond) from chain
  • useDisputeSlashTx now forwards disputeBond as msg.value — required when admin enables non-zero dispute bonds
    • Zero-bond path unchanged (value: undefined), so no regression for current mainnet state

Why this matters

disputeSlash is payable and requires msg.value == config.disputeBond. With the default bond of 0 this was transparent. If an admin calls setSlashConfig(... disputeBond: X ...), all operator-side dispute transactions would revert without this fix.

Test plan

  • Existing slashing tests pass (79/79 ✓)
  • TypeScript typecheck clean ✓
  • Manual: dispute with bond=0 — behaviour unchanged
  • Manual (staging): set non-zero bond, confirm dispute tx attaches correct value

🤖 Generated with Claude Code

drewstone and others added 3 commits May 6, 2026 04:18
- ABI: adds getSlashConfig() view
- useSlashConfig: new hook reads disputeBond from active SlashConfig
- useDisputeSlashTx: forwards disputeBond as msg.value; zero-bond
  path unchanged (value: undefined), so existing behaviour is preserved

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drewstone drewstone requested a review from AtelyPham as a code owner May 6, 2026 10:23
@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for tangle-cloud ready!

Name Link
🔨 Latest commit 3faab87
🔍 Latest deploy log https://app.netlify.com/projects/tangle-cloud/deploys/69fb169fe8b7dc0009a225f6
😎 Deploy Preview https://deploy-preview-3172--tangle-cloud.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for tangle-leaderboard ready!

Name Link
🔨 Latest commit 3faab87
🔍 Latest deploy log https://app.netlify.com/projects/tangle-leaderboard/deploys/69fb169f8a12400007ae7dba
😎 Deploy Preview https://deploy-preview-3172--tangle-leaderboard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for tangle-dapp ready!

Name Link
🔨 Latest commit 3faab87
🔍 Latest deploy log https://app.netlify.com/projects/tangle-dapp/deploys/69fb169ed13e69000846439d
😎 Deploy Preview https://deploy-preview-3172--tangle-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@drewstone drewstone merged commit 6c6105c into develop May 6, 2026
20 checks passed
@drewstone drewstone deleted the chore/sync-tnt-core-v0.11.2 branch May 6, 2026 10:38
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.

1 participant