Skip to content

Conversation

@fengtality
Copy link
Contributor

Summary

  • Adds experimental connector for ORE v3 mining game on Solana
  • Provides complete API for mining operations, staking, and game state queries
  • Supports both regular and hardware wallets via Ledger

Features

Mining Operations

  • POST /connectors/ore/ore/deploy - Deploy SOL to game board squares
  • POST /connectors/ore/ore/checkpoint - Checkpoint to update rewards
  • POST /connectors/ore/ore/claimSol - Claim SOL rewards
  • POST /connectors/ore/ore/claimOre - Claim ORE token rewards

Staking Operations

  • POST /connectors/ore/ore/stake - Stake ORE tokens
  • POST /connectors/ore/ore/unstake - Unstake ORE tokens
  • POST /connectors/ore/ore/claimStake - Claim staking rewards

Info Endpoints

  • GET /connectors/ore/ore/accountInfo - Get miner and stake account info
  • GET /connectors/ore/ore/boardInfo - Get game board and round state
  • GET /connectors/ore/ore/systemInfo - Get treasury and token supply info

Configuration

The connector uses hardcoded program IDs for ORE v3:

  • ORE Program: oreV3EG1i9BEgiAJ8b177Z2S2rMarzak4NMv1kULvWv
  • ORE Token Mint: oreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcp

Configuration options in conf/ore.yml:

  • commitment: Transaction confirmation level (default: "confirmed")
  • priorityFee: Priority fee in microlamports (default: 0)

Test plan

  • Start Gateway with pnpm start --passphrase=xxx --dev
  • Check /connectors/ore/ore/systemInfo returns treasury data
  • Check /connectors/ore/ore/boardInfo returns current round info
  • Check /connectors/ore/ore/accountInfo?address=<wallet> returns account state
  • Test deploy, checkpoint, claim operations with funded wallet

🤖 Generated with Claude Code

Add connector for ORE v3 mining game on Solana with the following features:

Mining Operations:
- deploy: Deploy SOL to game board squares
- checkpoint: Checkpoint to update rewards
- claimSol: Claim SOL rewards
- claimOre: Claim ORE token rewards

Staking Operations:
- stake: Stake ORE tokens
- unstake: Unstake ORE tokens
- claimStake: Claim staking rewards

Info Endpoints:
- accountInfo: Get miner and stake account info
- boardInfo: Get game board and round state
- systemInfo: Get treasury and token supply info

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rapcmia rapcmia moved this to Backlog in Pull Request Board Dec 19, 2025
@rapcmia rapcmia moved this from Backlog to In Discussion in Pull Request Board Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Discussion

Development

Successfully merging this pull request may close these issues.

2 participants