Skip to content

Feed your KOLs with Noodles.Fun - Spend creators tokens to promote on socials

Notifications You must be signed in to change notification settings

noodles-fun/contracts

Repository files navigation

Noodles.Fun — Feed Your KOLs! 🍜

Noodles.Fun turns Twitter (X) accounts into special bonding curve tokens. Trade these tokens and use them to pay for promotion services on X, such as shoutouts or pinned tweets. A fun way to support and engage with KOLs!

How It Works

  1. Every Twitter Account Has a Token: Each token represents a unique bonding curve for a Twitter (X) account.
  2. Trade Instantly: Use a bonding curve to buy or sell tokens. No need for liquidity pools or order books.
  3. Spend Tokens for Promotions: The X account owner can accept tokens as payment for services, such as tweets or pinned posts.

Upgradeable Contracts

Contract Description Mainnet address (Proxy) Testnet address (Proxy)
VisibilityCredits Implements a bonding curve where token price = A × supply² + B × supply + basePrice. Price grows as supply grows 0x0DA6Bfd5d50edb31AF14C3A7820d28dB475Ec97D 0x25aaca9fD684CD710BB87bd8f87A2a9F20e5a269
VisibilityServices Lets creators accept tokens for off-chain promotion services. 0x89e74F963e506D6921FF33cB75b53b963D7218bE 0x446aC2A937b7ef299402D97a9132CD2ce7Ff73b1
PointsSBT Soulbound tokens to reward early users 0xE19FF0aCF99fc4598003d34E8DF7b828849B9F48 0x53D523F98dFd0B4b8ADd9306D345d6e709AD6b18

Development

Setup

  1. Install packages:

    npm install
  2. Compile:

    npm run compile
  3. Run tests:

    npm run test

Deploy

Configuration

Ensure you setup your .env file correctly. You can initialize it from the provided .env.example file:

cp .env_example .env

Deploy to the Abstract Testnet

npm run deploy abstractTestnet

Tests

Fork Abstract Testnet

  1. Install Rust (if not already installed):

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Build the local node:

    git clone https://github.com/matter-labs/era-test-node
    cd era-test-node
    make fetch-contracts && make build-contracts
    make clean && make build-contracts && make rust-build

    If you see any build errors about aws-lc-sys, you might need:

    sudo apt remove gcc-9 && sudo apt install clang
  3. Run forked node:

    ./target/release/anvil-zksync fork --fork-url https://api.testnet.abs.xyz --fork-block-number 3558125
  4. In another terminal, run tests:

    npm run test-fork-localhost

About

Feed your KOLs with Noodles.Fun - Spend creators tokens to promote on socials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published