Skip to content

LeoYeAI/agent-master-skills / skills/aavegotchi-gbm-skill

aavegotchi-gbm-skill

Verified

View, create, cancel, bid, and claim Aavegotchi GBM auctions on Base mainnet (8453). Subgraph-first discovery (Goldsky), with onchain verification + execution via Foundry cast. Safety-first: DRY_RUN defaults to 1 (simulate with cast call; only broadcast with cast send when DRY_RUN=0 and explicitly instructed).

FileKindSize
SKILL.mdskill md16.3 KB
_meta.jsonconfig299 B
references/addresses.mdmarkdown1.7 KB
references/bid-math.mdmarkdown1.8 KB
references/logs.mdmarkdown1.7 KB
references/presets.mdmarkdown1.1 KB
references/recipes.mdmarkdown3.8 KB
references/subgraph.mdmarkdown3.3 KB
references/swap-math.mdmarkdown2.8 KB

references/logs.md

View on GitHub
# Logs / Event Scans (Optional)

You can discover auctions and activity via events, but for day-to-day listing and filtering, prefer the subgraph (`references/subgraph.md`).

If you do use logs:
- Some RPCs restrict `eth_getLogs` to a max block range (commonly 10,000 blocks).
- Some RPCs intermittently 503 on large log queries.
- Chunk your requests.

Constants:
- GBM diamond: `0x80320A0000C7A6a34086E2ACAD6915Ff57FfDA31`
- Deploy block (Base mainnet): `33276452`

## Common Events

- `Auction_Initialized(uint256 indexed _auctionID,uint256 indexed _tokenID,uint256 indexed _tokenAmount,address _contractAddress,bytes4 _tokenKind,uint256 _presetID)`
- `Auction_BidPlaced(uint256 indexed _auctionID,address indexed _bidder,uint256 _bidAmount)`
- `AuctionCancelled(uint256 indexed _auctionId,uint256 _tokenId)`
- `Auction_ItemClaimed(uint256 indexed _auctionID)`

## Example: Fetch Recent Auction_Initialized Logs (Chunked)

```bash
python3 - <<'PY'
import subprocess

rpc = "https://1rpc.io/base"  # override as needed
addr = "0x80320A0000C7A6a34086E2ACAD6915Ff57FfDA31"
event = "Auction_Initialized(uint256,uint256,uint256,address,bytes4,uint256)"

# Keep chunk <= 10k blocks for providers that enforce that limit.
start = 33276452
end = int(subprocess.check_output(["cast", "block-number", "--rpc-url", rpc]).decode().strip())
chunk = 8000

for a in range(start, end + 1, chunk):
    b = min(a + chunk - 1, end)
    cmd = [
        "cast", "logs", event,
        "--from-block", str(a),
        "--to-block", str(b),
        "--address", addr,
        "--rpc-url", rpc,
        "--json",
    ]
    out = subprocess.check_output(cmd)
    if out.strip() not in (b"", b"[]"):
        print(f"range {a}-{b}:", out.decode().strip()[:300], "...")
PY
```
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall