BondCraft is a decentralized token launchpad built on the Sui blockchain, leveraging the Move programming language to enable secure, transparent, and efficient token launches. Integrated with Cetus Protocol for seamless liquidity bootstrapping, BondCraft uses bonding curves to ensure fair token distribution. Designed for the Sui Overflow Hackathon, BondCraft aligns with the DeFi and Degen tracks, with planned integrations for Pyth Network (real-time price oracles) and UNI (meme token launches).
- Token Creation: Deploy tokens with customizable supply and funding goals.
- Bonding Curve Pricing: linear bonding curve pricing model for fair and transparent token distribution.
- Cetus Protocol Integration: Automatically create TOKEN/USDC liquidity pools on Cetus with a 0.05% fee tier.
- Vesting System: Secure vesting schedules for creator and platform tokens.
- Sui Blockchain: High-throughput, low-fee transactions for scalable launches.
- Future Integrations:
- Pyth Network: Real-time price oracles for accurate bonding curve pricing (DeFi track).
- UNI (Unicoinsui): Support for meme token launches with community-driven liquidity pools (Degen track).
sequenceDiagram
participant Creator
participant Factory
participant Launchpad
participant Cetus
Creator->>Factory: create_launchpad()
Factory->>Launchpad: Deploy new instance
Creator->>Launchpad: buy_tokens()
loop Funding Phase
Launchpad->>Launchpad: Update bonding curve price
end
Creator->>Launchpad: close_funding()
Creator->>Launchpad: bootstrap_liquidity()
Launchpad->>Cetus: Create pool (TOKEN/USDC)
Cetus-->>Launchpad: LP Position NFT
Launchpad->>Creator: Transfer LP NFT
- Published BondCraft Package ID
- BondCraft Factory ID Factory ID
-
Pyth Network Integration (DeFi):
- Deploy Pyth price feeds for USDC and SUI on testnet.
- Update bonding curve to use real-time oracle pricing.
- Testnet demo for oracle-driven token launches.
-
UNI (Unicoinsui) Integration (Degen):
- Add meme token creation with simplified parameters.
- Create UNI/SUI liquidity pools on Cetus (0.25% fee tier).
- Testnet demo with community airdrop incentives.
-
Mainnet Launch:
- Deploy Pyth and UNI integrations on Sui mainnet.
- Explore cross-chain support via Wormhole or CCTP.
git clone https://github.com/signor1/bondcraft.git
cd bondcraft
sui move build
[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "testnet-v1.26.0" }
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", subdir = "sui/cetus_clmm", rev = "testnet-v1.26.0", override = true }
USDC = { git = "https://github.com/circlefin/stablecoin-sui.git", subdir = "packages/usdc", rev = "testnet" }
sui client publish --gas-budget 100000000
sui client call --package <PACKAGE_ID> \
--module factory \
--function create_launchpad \
--type-args bond_craft::test_witness::TEST_TOKEN \
--args <FACTORY_ID> "b\"SYMBOL\"" "b\"Token Name\"" 9 1000000000 500000000 200000000 200000000 100000000 500000000 \
--gas-budget 10000000
sui client call --package <PACKAGE_ID> \
--module launchpad \
--function bootstrap_liquidity \
--type-args <TOKEN_TYPE> \
--args <LAUNCHPAD_ID> <CETUS_CONFIG_ID> <CETUS_POOLS_ID> <METADATA_T_ID> <METADATA_USDC_ID> <CLOCK_ID> \
--gas-budget 100000000
Module | Description |
---|---|
factory.move |
Manages launchpad creation and tracking |
launchpad.move |
Handles token sales, vesting, and Cetus integration |
bonding_curve.move |
Implements price calculations P(x) = kx/1e9 |
pool.move |
Cetus CLMM pool creation logic |
sui move test
Key Test Cases:
- Token allocation validation
- Bonding curve price calculations
- Liquidity pool creation
- Vesting schedule enforcement
- Fork the repository
- Create feature branch (
git checkout -b feature/your-feature
) - Commit changes (
git commit -m "Add feature"
) - Push to branch (
git push origin feature/your-feature
) - Open Pull Request