JACK Smart Contracts
Overview
The JACK protocol is powered by a suite of smart contracts built on Uniswap v4 that enable intent-based cross-chain execution with policy enforcement and secure settlement.
Core Contracts
JACKSettlementAdapter
Status: ✅ Production Ready
The settlement adapter is the primary interface for executing user intents on-chain. It integrates EIP-712 signature validation, solver authorization, and atomic swap execution through Uniswap v4.
Key Capabilities:
- Validates signed user intents
- Authorizes solver network
- Executes atomic token swaps
- Integrates with policy enforcement
- Provides reentrancy protection
JACKPolicyHook
Status: 🚧 Development
The policy hook enforces protocol rules and risk management constraints on intent settlement. It validates intents before execution to ensure compliance with system policies.
Key Capabilities:
- Intent validation
- Volume limits
- Rate limiting
- Token allowlists
- Risk thresholds
Documentation coming soon.
Architecture
Contract Addresses
Testnet
Coming soon - contracts are currently in development.
Mainnet
Not yet deployed - production launch pending.
Development
Setup
Clone the repository and install dependencies:
git clone https://github.com/hashpass-tech/JACK.git
cd JACK/contracts
forge install
Build
forge build
Test
forge test
Deploy
Deployment instructions are available in the internal operations documentation at /docs/operations/contracts-deployment.md in the repository.
Security
Audits
- External security audit (planned)
- Bug bounty program (planned)
Testing
All contracts include comprehensive test suites covering:
- Happy path functionality
- Error cases and reverts
- Security boundaries
- Reentrancy protection
- Access control
Best Practices
- Uses OpenZeppelin battle-tested libraries
- Follows Checks-Effects-Interactions pattern
- Implements reentrancy guards
- Validates all external inputs
- Emits events for state changes
Resources
Contributing
We welcome contributions to the JACK smart contracts. Please ensure all changes include:
- Comprehensive tests
- Clear documentation
- Gas optimization considerations
- Security review
See our Contributing Guide for more details.