搜索

PythonReactSEOPDF
OpenClaw

market-configurable-skills

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.

franckstone0 来源安装数☆ 0 仓库 Starsv0.1.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install franckstone/market-configurable-skills

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/franckstone/market-configurable-skills
Version
0.1.0
Commit
0df887478fc906435226b8929bda9a929b3d7a19
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 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...

相关技能

OpenClaw

a-stock-trader

bombfuock

A股模拟交易系统 - 数据爬取、存储、策略回测、模拟交易 / A-Share Paper Trading System - Data Fetch, Storage, Backtest, Simulation

OpenClaw

adaptive-skill-factory

505768069-rgb

Discover, install, update, or create the right skill when a workflow gap appears. Use when a task is repetitive, a role lacks a reliable procedure, an existing skill might save time, ClawHub search/install coul...