Skip to content

Conversation

@fr1jo
Copy link
Contributor

@fr1jo fr1jo commented Jan 22, 2026

Summary

This PR integrates two major feature branches into PI-15:

  • Beanstalk Shipments: Shipment routes infrastructure, token hooks, and payback contracts
  • Mow-Plant-Harvest Blueprint: Enhanced tractor blueprints for automated silo and field operations

Changes Included

Beanstalk Shipments

  • Added ShipmentPlannerFacet for managing shipment routes
  • Implemented TokenHookFacet for token transfer hooks
  • Created payback contract infrastructure:
    • SiloPayback - Silo debt repayment
    • BarnPayback - Barn fertilizer repayment
    • ContractPaybackDistributor - L1 contract distribution
  • Added TempRepaymentFieldFacet for field-based paybacks
  • New libraries: LibTokenHook, LibShipping enhancements
  • Shipment routes data and deployment scripts
  • Comprehensive test coverage for all payback contracts

Mow-Plant-Harvest Blueprint

  • New MowPlantHarvestBlueprint for automated farming operations
  • Enhanced field operations with plot management:
    • combinePlots() - Combine multiple plots into one
    • reorderPlotIndexes() - Reorder plot storage
    • Plot indexing improvements for gas optimization
  • Updated referral system to return separate referrerPods and refereePods
  • BlueprintBase abstract contract for shared blueprint functionality
  • Enhanced SiloHelpers for mow/plant/harvest operations
  • Field facet improvements for harvest functionality

Integration Changes

  • Updated InitProtocol.sol to support both LibSeedGauge and LibGauge
  • Enhanced interfaces (IBeanstalk, IMockFBeanstalk) with new functions
  • Task system updates for beanstalk-shipments deployment
  • Library dependency updates in foundry.lock

Testing

All existing tests pass with new test files added:

  • test/foundry/ecosystem/beanstalkShipments/ - Shipment system tests
  • test/foundry/ecosystem/MowPlantHarvestBlueprint.t.sol - Blueprint tests
  • test/foundry/token/TokenHook.t.sol - Token hook tests

Deployment Notes

This release requires:

  1. Shipment route configuration
  2. Token hook registrations for applicable tokens
  3. Payback contract deployments for migration scenarios

🤖 Generated with Claude Code

default-juice and others added 30 commits August 22, 2025 10:45
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…rg/protocol into generalized-internal-hook-system
actions-user and others added 28 commits December 20, 2025 14:50
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…d operator validation and tip resolution logic
…olvedSourceIsBean and _enforceWithdrawalPlanAndTip
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@pocikerim pocikerim force-pushed the frijo/release/PI-15 branch from 7be5415 to e40de23 Compare January 26, 2026 10:08
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.

6 participants