Fairdrop

Fairdrop: descending-price auctions with uniform clearing; everyone pays the same fair price.

About

## Wave 2 submission

Smart Contract Implementation ✅ Basic Auction Contract (`basic-auction/`) - Descending price (Dutch auction) mechanism with automatic price reduction - Auction initialization with validation (start_price, floor_price, decrement_rate, etc.) - Bid placement with quantity tracking - Scheduled auctions (future start times) - Auction status management (Scheduled → Active → Ended) - Current price calculation based on elapsed time intervals - GraphQL service layer for queries and mutations

### Frontend Implementation

✅ Linera React Client Library

- Custom React Hooks: - `useLineraClient()` - Main client access with state management - `useLineraApplication()` - Application-specific operations - `useWalletConnection()` - Wallet authentication - Provider Architecture: - `LineraProvider` for blockchain connection management - Automatic WASM file detection and copying - Read-only mode with optional wallet connection

✅ Web Application Components

- Core UI Components: - `AuctionCard` - Live auction display with real-time updates - `WalletConnect` - Wallet authentication UI - `PriceDisplay` - Dynamic price visualization - `AuctionTimer` - Countdown and interval tracking - `CosmicLoading` - Loading states - Landing Page Sections: - `HeroSection` - Value proposition - `ProblemSolution` - Problem statement and solution - `Features` - Platform capabilities showcase - `Roadmap` - Development timeline - `Vision` - Long-term goals - `HowItWorks` - User education

⚠️ Cross-Chain Query Challenge

- Issue: Cannot directly query application state on the creator chain from subscriber chains

⚠️ Stage 1 Limitations

- No actual token transfers (bid tracking only, no payment) - No refund mechanism for overbids - No auction finalization/settlement logic - No claim functionality for winning bidders

## Wave 3 submission

UPDATED SMART-CONTRACT ARCHITECTURE:

Cross-Chain Bidding Implementation:

- Bids originate from bidder chains, (Bidder chain sends a cross-chain message) - Bidder chain records a local pending bid - Creator chain receives & authenticates the bid sends response back to bidder chain (when the creator-chain inbox is processed) - Bidder chain then updates its own local state (BidAccepted or BidRejected)

Cross-Chain Querying Implementation:

- We expose chain info via service API (returns current_chain_id, creator_chain_id and has_state) - Creator chain provides full auction details that provides auction information and - Subscriber chains expose cached state (updated through event emitted from the creator chain) - Subscriber chains receive events through process_streams, update its local cached_state and persists event into stream_events state.

UPDATED LINERA REACT CLIENT:

We introduces a powerful dual-chain architecture that separates read operations from write operations for better UX and efficiency.

The problem with the previous implementation: - Chain IDs changed when wallets connected - Subscriptions were lost on wallet disconnect - Users needed to sign for cross-chain subscriptions

The new architecture maintains two separate chains with different purposes: - Public-Chain (persist across wallet connections/switch): Use for reading and subscription using Temporary Signer. - Wallet Chain (Only available when wallet is connected): For mutation - user action requiring signature.

Benefit of this new approach include:

- Users can read messages without wallet, subscription persists even if wallet disconnects - Only requires wallet for mutation that requires user signature

FRONTEND UPDATES:

- The frontend executes GraphQL queries using app.publicClient.query(...) for read-only data and chain state inspection. - It places authenticated bids using app.walletClient.mutate(...) which sends the PlaceBid operation from the bidder’s wallet chain. - The frontend subscribes to auction state updates using app.publicClient.systemMutate("mutation { subscribe }") without requiring the wallet. - The frontend fetches user bid history and refund amounts using app.walletClient.query(JSON.stringify(BIDDER_CHAIN_QUERY()))

WE LAUNCHED FAIRDROP EVM VERSION

- To demonstrates product viability on an ecosystem with established wallets, tooling, and users (Metamask, RPCs, block explorers). - Validates core auction mechanics, and UX flow and serves as a baseline for implementation on Linera Blockchain. - Provides a stable environment for real-world feedback, analytics, and iteration speed. - `self.runtime.create_application(module_id, ...) throws error (not permitted). We couldn't create an instance application from our contract. This is necessary to allow users to create an auction right from he frontend.

CHALLENGES:

- Direct creator chain is not working (Help needed) - Wasm module crashes too often (Runtime error) especially when connected to Cornway testnet -

## Wave 4 submission

- Improved User Interface and Experience - Updated auction contract for microchain deployment - Direct Chain Query - Auction Authority Chain (AAC) & User Interaction Chain (UIC) state queries - Indexer - Event tracking Auction and bid history - Added Faucet - Introduced a faucet for minting test token for auction payment - Enhanced Wallet Connection - Menu dropdown with sync status - Auction Creation - Add Auction Creation form for launching instant Fair-price auction - Bid Placement - Cross-chain bidding mechanism implemented - Bid Settlement - Uniform clearing price calculation with bidder settlement - Payment Token Integration - Linera fungible token support

## Wave 5 submission

# Fairdrop Auction Progress

## Completed

### Token Payment Integration

- Implemented two-phase payment model: users fund AAC wallet once, bid multiple times - Synchronous payment collection via `call_application` for same-chain transfers - Application-owned escrow accounts using `application_id().into()` as AccountOwner - Fail-fast payment validation before state changes (non-atomic operation safety) - Refund mechanism at settlement for overpayment - Payment events: `PaymentReceived`, `RefundIssued` - Refactored `handle_place_bid` into 5 testable helper methods for maintainability

### My Tokens

- Multi-Chain Token Management - View and manage fungible tokens across wallet, public, and custom chains - Balance Tracking - Real-time balance display with chain-aware caching - Token Transfer - Cross-chain token transfers with recipient chain/owner selection - Allowance Management - Approve spenders to use tokens on your behalf - Advanced Operations - Claim tokens and TransferFrom delegated accounts

### Multi-Token Faucet

- Multiple fungible offered through faucet - Tokens for auction payment and test Auction token mint

### Bidding and Auction Creation Enhanced - Added real test Payment tokens to auction (Required Minting from Faucet) - Added test Auction Tokens; Auction Token total supply is required to be deposited before auction creation) - Added auction image and Auction Name support so creator can name Auctions - Added validation (support tokens, maximum bid per bidder, and other auction parameters) - Added Proceed withdrawals, Cancelling and Pruning Auction (at Smart-Contract level) - Auction Integrated with Linera fungible token app

### UX and UI Enhanced

- Now using a dashboard styled UI - Clear separation of users (Creator and Collector) - Enhanced auction detailed page - Auction Listing (Grid and Column Option)

### Linera-react-client Architecture Changes to @linera/client@0.15.8 API

  • Updated Linera client manager to be compatible with @linera/client 0.15.8 and implemented efficient two-tier caching system.
  • New `getChain(chainId)` Method for explicit chain access using publicClient

## Wave 6 submission

✅ Update Auction Image upload to use on-chain data blob ✅ Enhance Auction Creation form (Max bid amount, start and end date) ✅ Implement a functional Creator overview page ✅ Implement UI function for deposit & withdrawals ✅ Enhance Price calculation to use a fair-calculation (based on last bid) mechanism ✅ Add bid history page so bidder can track/claim their settlement ✅ Fixed bid settlement error (auction not found error) by routing settlement to Auction-Chain ✅ Now leveraging GraphQL for batch querying related data to reduce network and fetch trips

## Wave 7 submission

Resubmitting - made some changes

Prizes

  • Wave 2 grant · 530.1 USDC
  • Wave 3 grant · 359.32 USDC
  • Wave 4 grant · 635.29 USDC
  • Wave 5 grant · 257.14 USDC
  • Wave 6 grant · 127.87 USDC

From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

No public repo linked, so we can't tell.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

1Launch

Fair token launches through Dutch auctions. No whales, no bots, just pure price discovery

SmartDrop

Earn More with Airdrop Farming! Lock ERC20/LP tokens to earn airdrop credits, boosted by flexible terms, social links, and KYC. Donate tokens for higher rewards and track progress with ease. Secure, transparent, and user-friendly—this is the future of token distribution