Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .agents/skills/gravity-oracle-demo/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: gravity-oracle-demo
description: Run, demo, or debug the Gravity Binance and Polymarket Oracle E2E suites.
---

# Gravity Oracle Demo

Use `gravity_e2e/docs/ORACLE_E2E.md` as the canonical suite matrix and
runbook. Do not duplicate its commands or revision table here.

## Routing

- Use `oracle_demo` for deterministic review or the combined local frontend.
- Use `polymarket_mock` for three-outcome match settlement and claim behavior.
- Use `binance_price_feed_multivalidator` for explicitly approved live Binance
validation and voting-power quorum.

## Safety

- Ask before public API or RPC traffic unless the user approved that exact run.
- Never commit credentials, `.env` files, private RPC URLs, user-specific
absolute paths, generated runtime config, or cluster artifacts.
- Use `--force-init` after changing genesis or a pinned contracts revision.
- Stop clusters started by the current task unless `--keep-running` was
explicitly requested.

For real Polymarket mirrors, require a reviewed manifest with frozen rules,
condition and question IDs, CTF address, outcome labels, slot mapping, source
block range, and metadata hashes.
13 changes: 10 additions & 3 deletions .agents/workflows/build-and-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,14 @@ Genesis artifacts are cached in `cluster_test_cases/<suite>/artifacts/`. Use `--

---

## 4. Bridge E2E Test Details
## 4. Oracle E2E

Use `gravity_e2e/docs/ORACLE_E2E.md` for the canonical suite matrix, commands,
live-network approval boundary, frontend mode, and pinned revisions.

---

## 5. Bridge E2E Test Details

Suite directory: `gravity_e2e/cluster_test_cases/bridge/`

Expand Down Expand Up @@ -162,7 +169,7 @@ Suite directory: `gravity_e2e/cluster_test_cases/bridge/`

---

## 5. Running Contract Unit Tests
## 6. Running Contract Unit Tests

Working directory: `gravity_chain_core_contracts`

Expand All @@ -179,4 +186,4 @@ forge test --match-path test/unit/integration/ConsensusEngineFlow.t.sol -vvv
Run specific test function:
```bash
forge test --match-test testBridgeFlow -vvv
```
```
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ lib/

# Hardhat (if ever used)
artifacts/
mock_polymarket_metadata.json
cache/
typechain-types/

Expand Down
Loading
Loading