Skip to content

feat: builder code#30

Merged
jeuryink merged 6 commits intomainfrom
feat/builder-code
Feb 4, 2026
Merged

feat: builder code#30
jeuryink merged 6 commits intomainfrom
feat/builder-code

Conversation

@jeuryink
Copy link
Collaborator

@jeuryink jeuryink commented Feb 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 3, 2026 22:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds builder fee functionality to the protocol, enabling fee sharing with designated builders for order routing.

Changes:

  • Implements builder-related fields in order appendix encoding (builder_id and builder_fee_rate)
  • Adds ClaimBuilderFee slow mode transaction type and encoding
  • Integrates OffchainExchange contract for querying builder information

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/utils/test_slow_mode.py Tests for ClaimBuilderFee transaction encoding
tests/utils/test_order_appendix.py Tests for builder field encoding/decoding in order appendix
sanity/builder.py Integration tests for builder fee functionality
pyproject.toml Adds builder-sanity command entry point
nado_protocol/utils/slow_mode.py Implements ClaimBuilderFee transaction encoding
nado_protocol/utils/order.py Adds builder field support to appendix bit layout
nado_protocol/utils/init.py Exports new builder and slow mode utilities
nado_protocol/indexer_client/types/models.py Adds builder_fee fields to indexer models
nado_protocol/contracts/types.py Defines ClaimBuilderFeeParams and BuilderInfo types
nado_protocol/contracts/deployments/*.json Adds offchain_exchange contract addresses
nado_protocol/contracts/abis/IOffchainExchange.json Contract ABI for querying builder info
nado_protocol/contracts/init.py Implements claim_builder_fee and get_builder_info methods
nado_protocol/client/init.py Passes offchain_exchange address to contracts context

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jeuryink jeuryink merged commit 07419d5 into main Feb 4, 2026
7 checks passed
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