Overview
- Skill Key
- franckstone/market-configurable-skills
- Author
- frank
- Source Repo
- openclaw/skills
- Version
- 0.1.0
- Source Path
- skills/franckstone/market-configurable-skills
- Latest Commit SHA
- 0df887478fc906435226b8929bda9a929b3d7a19
Call guide and best practices for the configurable crypto price prediction market contracts GouGouBiMarketConfigurable.sol and GouGouBiMarketConfigurableFactory.sol, including factory creation parameters, market configuration fields, core trading/settlement methods, and conventions for calling the contracts from scripts, frontends, or OpenClow workflows via ethers/web3. Use this skill when you need to create new prediction markets, buy YES/NO, swap positions, or redeem settlements.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 market-configurable-skills 技能。 若已安装,则直接安装 market-configurable-skills 技能。
# Configurable Crypto Price Prediction Market Skill ## 1. Protocol and contract overview - **Market contract**: `contracts/contracts/GouGouBiMarketConfigurable.sol` - **Factory contract**: `contracts/contracts/GouGouBiMarketConfigurableFactory.sol` - **Model**: Polymarket-style CPMM YES/NO prediction market. Each round has its own YES/NO outcome tokens and uses a constant product market maker. - **Key features**: - Uses Uniswap V3 pool prices as the oracle and computes time-windowed average prices. - Configurable to predict `token0/token1` or the reverse (`reverseOrder`). - Supports native coin or arbitrary ERC20 as the liquidity token. - Automatically starts a new round on schedule, and supports expiry handling and abnormal price handling (surfaced via events). > This skill only describes the **contract APIs and calling patterns**. The actual deployment network and addresses should be provided by the product layer (for example via dApp config files or OpenClow workflow parameters). --- ## 2. Factory contract `GouGouBiMarketConfigurableFactory` ### 2.1 Core roles and state - `owner`: factory admin, manages the creator whitelist. - `marketImplementation`: implementation contract being cloned (`GouGouBiMarketConfigurable`). - `isWhitelistedCreator[address]`: whether an address is allowed to call `createMarket`. - `markets[]`: list of all created market addresses. - `marketIndex[market]`: index of a market address (starting from 1, 0 means not created by this factory). - `marketRecords[index]`: creation records (see below). ### 2.2 `MarketRecord` structure (read-only) For each market created by the factory: - `market`: market contract address - `creator`: creator address - `marketName`: market name - `uniswapV3Pool`: Uniswap V3 pool address - `liquidityToken`: liquidity token address, `address(0)` means native coin - `feeRecipient`: fee recipient address - `feeRate`: fee rate (denominator 10000) - `createdAt`: creation timestamp - The following fields...
caoyumin97
Structured problem analysis and communication using system mapping and hierarchical logic. Use when a request involves messy, multi-factor problems, root-cause analysis, intervention design, feedback loops or delays, or when a clear top-line recommendation with logically grouped support is required.
chaimengphp
Query real-time and historical financial data across equities and crypto—prices, market moves, metrics, and trends for analysis, alerts, and reporting.
cerbug45
AI Wallet Payment System Skill Guide
bywallace
Read and manage Kubera.com portfolio data (net worth, assets, debts, allocation, holdings). Use when a user asks about their finances, net worth, portfolio, investments, holdings, asset allocation, or wants to update asset values in Kubera. Works with any AI agent or CLI that can run Python scripts.
c-goro
Expense tracking and accounting for AI agents. Log purchases, set budgets, generate spending reports, and manage multi-currency finances — all stored locally. Privacy.com card import, natural language queries, CSV/JSON export. Use when agents make purchases and need a financial audit trail.
c0rv0s
Short-form video for AI agents. Generate videos using the latest models, pay with USDC via x402.