Skip to content

OpenClaw skill for bidding on BASED DAO NFT auctions on Base

Notifications You must be signed in to change notification settings

droppingbeans/based-dao-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BASED DAO Auction Skill

OpenClaw skill for bidding on BASED DAO NFT auctions on Base network.

Overview

BASED DAO is a Nouns-style DAO on Base that auctions one governance NFT every 24 hours. This skill enables AI agents to check auction status and place bids programmatically.

Installation

For OpenClaw

  1. Clone or download this skill to your OpenClaw skills directory
  2. Install dependencies: npm install ethers
  3. The skill will automatically load when needed

For Other Frameworks

Copy the scripts and reference files to your project and use them directly with Node.js.

Features

  • ✅ Check current auction status
  • ✅ Place bids with full validation
  • ✅ View governance proposals
  • ✅ Vote on proposals (requires NFT ownership)
  • ✅ Safety checks and clear error messages

Usage

Auctions

Check Current Auction

node scripts/check-auction.js

Output:

🏛️  BASED DAO Auction Status

Auction #915
URL: https://nouns.build/dao/base/0x10a5676ec8ae3d6b1f36a6f1a1526136ba7938bf/915

Current Bid: 0.0009 ETH
Highest Bidder: 0x0eD39Ba9Ab663A20D65cc6e3927dDe40e37309d4
Ends: 2026-02-12T04:46:05.000Z
Time Left: 23h 47m
Settled: No

📊 Bidding Info:
Reserve Price: 0.0008 ETH
Min Bid Increment: 10%

💰 Minimum Next Bid: 0.00099 ETH

Place a Bid

export PRIVATE_KEY=0x...
node scripts/place-bid.js 0.0009

Output:

🏛️  BASED DAO Auction Bid

Bidder: 0x0eD39Ba9Ab663A20D65cc6e3927dDe40e37309d4
Bid Amount: 0.0009 ETH

Auction #915
Current Bid: 0.0 ETH
Time Left: 23h 58m

Reserve Price: 0.0008 ETH
Minimum Required Bid: 0.0008 ETH

💰 Balance Check:
Your Balance: 0.0168 ETH
Needed (bid + gas): 0.0019 ETH

📤 Submitting bid...
Transaction: 0xd8bc2cfb051d3282e19a79545c20ff3c660a369626b97f4091eb167506d9fa83
Waiting for confirmation...
✅ Bid confirmed!
Block: 41998020
Gas used: 67028
Gas cost: 0.000345 ETH

🎉 You are now the highest bidder!

Governance

Check Active Proposals

node scripts/check-proposals.js

Output:

🏛️  BASED DAO Proposals

📊 Governance Parameters:
Voting Delay: 1 days
Voting Period: 4 days
Proposal Threshold: 4 votes

Total Proposals: 5

Proposal #3
State: Active
For: 12.0 votes
Against: 3.0 votes
Abstain: 0.0 votes
Time Left: ~72 hours (129600 blocks)
URL: https://nouns.build/dao/base/0x10a5676ec8ae3d6b1f36a6f1a1526136ba7938bf/vote/3
---

📈 Summary:
Active: 1
Succeeded: 2
Executed: 1

Vote on a Proposal

export PRIVATE_KEY=0x...
node scripts/vote.js 3 1  # Vote FOR proposal #3

Output:

🗳️  BASED DAO Vote

Voter: 0x0eD39Ba9Ab663A20D65cc6e3927dDe40e37309d4
Proposal ID: 3
Vote: For

Your NFTs: 2

📊 Proposal Status:
State: Active
For: 12.0 votes
Against: 3.0 votes
Abstain: 0.0 votes

Voting ends in: ~72 hours (129600 blocks)

📤 Submitting vote...
Transaction: 0x...
Waiting for confirmation...
✅ Vote cast!
Block: 41998500
Gas used: 156234
Gas cost: 0.000805 ETH

🎉 Your vote has been recorded!

Key Addresses

  • Token Contract: 0x10a5676ec8ae3d6b1f36a6f1a1526136ba7938bf
  • Auction House: 0x0D2790f4831bDFd6a8Fd21C6f591bB69496b5e91
  • Governor: 0x1b20dcfdf520176cfab22888f07ea3419d15779d
  • Network: Base (Chain ID: 8453)
  • RPC: https://mainnet.base.org

How It Works

Auctions

  1. 24-hour auctions - New auction starts immediately after previous settles
  2. Reserve price - First bid must meet reserve (~0.0008 ETH)
  3. Bid increments - Each bid must be 10% higher than previous
  4. Time extension - Bids in last 15 minutes extend auction by 10 minutes
  5. Refunds - Previous bidder automatically refunded when outbid

Governance

  1. 1 NFT = 1 vote - Each BASED DAO NFT gives you one vote
  2. Proposal threshold - Need 4 NFTs to create proposals
  3. Voting delay - 1 day after proposal creation before voting starts
  4. Voting period - 4 days to cast votes
  5. Delegation - Must delegate your NFTs to vote (usually to yourself)

Files

based-dao/
├── SKILL.md                 # Skill documentation for OpenClaw
├── README.md                # This file
├── scripts/
│   ├── check-auction.js     # Check current auction status
│   ├── place-bid.js         # Place a bid on current auction
│   ├── check-proposals.js   # View governance proposals
│   └── vote.js              # Vote on proposals
└── references/
    ├── auction-abi.json     # Auction house contract ABI
    ├── governor-abi.json    # Governor contract ABI
    ├── token-abi.json       # Token contract ABI
    └── contracts.json       # Network and contract addresses

Requirements

  • Node.js 18+
  • ethers.js v6
  • Private key with ETH on Base
  • RPC access to Base network

Safety

  • Scripts validate auction status before bidding
  • Balance checks prevent failed transactions
  • Gas limits set conservatively
  • Clear error messages for common issues

Links

License

MIT

Contributing

PRs welcome! Please test on Base testnet before submitting changes.

About

OpenClaw skill for bidding on BASED DAO NFT auctions on Base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published