A comprehensive implementation of a Pump.fun-style token platform on the TON blockchain, featuring automated market making, dynamic pricing via bonding curves, and advanced trading functionality. Fully compliant with TEP-74 (Jetton Standard) and TEP-89 (Wallet Discovery).
- πͺ TEP-74/TEP-89 compliant Jetton implementation
- π± Automated Market Maker (AMM) with bonding curve
- π Automatic liquidity locking at 69,000 TON market cap
- π¦ Ston.fi DEX integration with 12,000 TON liquidity lock
- π° Dynamic fee system (platform, LP, creator fees)
- π‘οΈ Advanced security features (whitelist, limits, spam protection)
- π Real-time price and market cap tracking
- π Seamless wallet integration (Tonkeeper, OpenMask)
- ποΈ Modular contract architecture
- β‘ Gas-optimized operations
- π Comprehensive event logging
@lulz-blueprint/
βββ contracts/ # Smart contract source files
β βββ LulzToken.fc # Jetton Master contract (TEP-74)
β βββ JettonWallet.fc # Jetton Wallet contract (TEP-74)
β βββ LiquidityManager.fc # Ston.fi integration & liquidity locking
β βββ Factory.fc # Token factory contract
β βββ Router.fc # Trading router contract
β βββ Pair.fc # Liquidity pair contract
β βββ imports/ # Shared imports and utilities
β βββ stdlib.fc # Standard library
β βββ utils.fc # Utility functions
β βββ op-codes.fc # Operation codes
β βββ params.fc # Contract parameters
βββ wrappers/ # TypeScript contract wrappers
βββ tests/ # Test suite
βββ scripts/ # Deployment and utility scripts
βββ docs/ # Documentation
-
LulzToken.fc: Jetton Master contract
- Token metadata management
- Minting control
- Supply tracking
- Owner management
-
JettonWallet.fc: Jetton Wallet contract
- Balance management
- Transfer operations
- Burn functionality
- Message handling
- LiquidityManager.fc: Ston.fi Integration
- Market cap monitoring
- Automatic liquidity locking at 69,000 TON
- 12,000 TON Ston.fi deposit
- LP token burning mechanism
- Factory.fc: Token creation and deployment
- Router.fc: Trading and liquidity operations
- Pair.fc: Liquidity pair management
- Full TEP-74 implementation
- Wallet discovery (TEP-89)
- Standard message types
- Metadata management
- Dynamic pricing algorithm
- Automatic price adjustments
- Slippage protection
- Volume-based calculations
- Automatic liquidity locking at 69,000 TON market cap
- 12,000 TON Ston.fi deposit
- LP token burning for permanent liquidity
- Real-time market cap tracking
- Whitelist functionality
- Transaction limits
- Daily volume caps
- Spam protection
- Role-based access control
- Platform fee: 0.3%
- LP fee: 0.2%
- Creator fee: 0.1%
- Configurable fee parameters
# Install as a dependency
npm install @lulz-blueprint
# Or for development
git clone https://github.com/conductiveai/lulz-blueprint.git
cd lulz-blueprint
npm install- Node.js 16+
- TON Development Environment
- Blueprint CLI
# Build contracts
npm run build
# Run tests
npm test
# Run sandbox tests
npm run test:sandboximport { LulzToken, JettonWallet } from '@lulz-blueprint';
// Deploy Jetton Master
const token = new LulzToken({
admin: adminAddress,
metadata: {
name: "LULZ Token",
symbol: "LULZ",
description: "The most fun token on TON"
}
});
// Get user's wallet
const wallet = await token.getWalletAddress(userAddress);
// Buy tokens
await token.buy({ value: toNano('1') });
// Transfer tokens
await wallet.transfer({
to: recipientAddress,
amount: toNano('0.1')
});import { LiquidityManager } from '@lulz-blueprint';
// Check liquidity status
const status = await manager.getLiquidityStatus();
console.log(`Locked: ${status.locked}, LP Tokens: ${status.lpTokens}`);- Factory:
EQDPaA5cM8abNt_mcjg3sfslKl71WQjw_Zy5QKlR0SfYGnY8 - Router:
EQAdxmy-wy2-9FAGfC4qcIvh9vKlzn-EUOo8-BlvqovpHOWk - LULZ Token:
EQBShPwl5O61zxdMOAwLQZXCVzmvxIQcUvooQ24ZmRGUA6pn - Ston.fi Router:
EQBsGx9ArADUrREB34W-ghgsCgBShvfUr4Jvlu-0KGc33Rbt
View on testnet explorer: tonscan.org/EQBShPwl5O61zxdMOAwLQZXCVzmvxIQcUvooQ24ZmRGUA6pn
- Address:
EQDHCbKkWaljcqqiFQQwAS7SImuNrXwo2nW6C9Y7W6RWRSnC - Seed phrase:
dentist busy brisk used chalk garden diesel inquiry involve resist forest renew treat bottom cactus estate liar vicious vague trash tennis divert shoulder fiscal
- Rate limiting for trading operations
- Whitelist functionality
- Spam protection mechanisms
- Role-based access control
- Transaction pattern analysis
- Minimum transaction amounts
- Maximum daily volumes
- Time-based restrictions
MIT License