Complete project rename from HARB/Harberg to KRAIKEN with KRK token symbol

- Renamed core contract from Harberg.sol to Kraiken.sol
- Updated token symbol from HARB to KRK
- Renamed TypeScript library from harb-lib to kraiken-lib
- Updated all contract imports and references across smart contracts
- Modified subgraph schema and source files for new naming
- Updated transaction bot dependencies and service references
- Fixed test files to use new contract and token names
- Updated documentation in CLAUDE.md and README.md
- Regenerated subgraph types and ABI files
- Added new deployment script (DeployScript2.sol)

All components compile successfully and tests pass.
Smart contracts:  Compilation and tests pass
TypeScript library:  Package renamed and configured
Subgraph:  Code generation and build successful
Transaction bot:  Dependencies updated

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
giteadmin 2025-07-11 13:47:42 +02:00
parent c5d94403e1
commit 74143dfac7
31 changed files with 202 additions and 235 deletions

View file

@ -4,10 +4,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
## Overview
HARB is a multi-component DeFi protocol implementing a Harberger tax mechanism with dynamic liquidity provisioning. The project consists of:
KRAIKEN is a multi-component DeFi protocol implementing a Harberger tax mechanism with dynamic liquidity provisioning. The project consists of:
- **Smart Contracts** (Solidity/Foundry) - Core protocol logic
- **TypeScript Library** (harb-lib) - Helper functions and GraphQL client
- **TypeScript Library** (kraiken-lib) - Helper functions and GraphQL client
- **Subgraph** (AssemblyScript) - Blockchain data indexing
- **Transaction Bot** (Node.js) - Automated market making service
@ -15,7 +15,7 @@ HARB is a multi-component DeFi protocol implementing a Harberger tax mechanism w
### Core Components
1. **Harberg Contract** (`onchain/src/Harberg.sol`) - Main protocol contract implementing Harberger tax mechanism
1. **Kraiken Contract** (`onchain/src/Kraiken.sol`) - Main protocol contract implementing Harberger tax mechanism
2. **Stake Contract** (`onchain/src/Stake.sol`) - Staking mechanism for sentiment data
3. **LiquidityManager Contract** (`onchain/src/LiquidityManager.sol`) - Uniswap V3 liquidity management
4. **Optimizer Contract** (`onchain/src/Optimizer.sol`) - Dynamic liquidity optimization
@ -93,7 +93,7 @@ node service.js
## Key Contracts and Interfaces
### Harberg.sol
### Kraiken.sol
- Main protocol contract implementing Harberger tax
- Integrates with Uniswap V3 for token swaps
- Manages tax collection and distribution
@ -126,7 +126,7 @@ node service.js
**Order:** ANCHOR → DISCOVERY → FLOOR
**Economic Rationale:**
- **ANCHOR → DISCOVERY**: Discovery amount proportional to HARB minted by anchor; positions border anchor for continuous fee capture
- **ANCHOR → DISCOVERY**: Discovery amount proportional to KRAIKEN minted by anchor; positions border anchor for continuous fee capture
- **ANCHOR + DISCOVERY → FLOOR**: Floor must defend against maximum selling pressure from final circulating supply, only known after all position minting complete
- **VWAP Exclusivity**: Only FLOOR position uses VWAP for historical price memory; ANCHOR/DISCOVERY use current tick for immediate market response
@ -145,19 +145,19 @@ node service.js
- **Floor Position Calculation**: Uses adjusted VWAP (70% base + capital inefficiency) to set floor support levels
### Stake.sol
- Staking mechanism for HARB tokens
- Staking mechanism for KRAIKEN tokens
- Collects sentiment data through staking behavior
- Provides tax rate and staking percentage data
## Deployment Addresses
### Base Sepolia
- Harberg: `0x22c264Ecf8D4E49D1E3CabD8DD39b7C4Ab51C1B8`
- Kraiken: `0x22c264Ecf8D4E49D1E3CabD8DD39b7C4Ab51C1B8`
- Stake: `0xe28020BCdEeAf2779dd47c670A8eFC2973316EE2`
- LP: `0x3d6a8797693a0bC598210782B6a889E11A2340Cd`
### Base Mainnet
- Harberg: `0x45caa5929f6ee038039984205bdecf968b954820`
- Kraiken: `0x45caa5929f6ee038039984205bdecf968b954820`
- Stake: `0xed70707fab05d973ad41eae8d17e2bcd36192cfc`
- LP: `0x7fd4e645ce258dd3942eddbeb2f99137da8ba13b`