feat: add ORE mining game connector (experimental)#578
Draft
fengtality wants to merge 1 commit intomainfrom
Draft
feat: add ORE mining game connector (experimental)#578fengtality wants to merge 1 commit intomainfrom
fengtality wants to merge 1 commit intomainfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Features
Mining Operations
POST /connectors/ore/ore/deploy- Deploy SOL to game board squaresPOST /connectors/ore/ore/checkpoint- Checkpoint to update rewardsPOST /connectors/ore/ore/claimSol- Claim SOL rewardsPOST /connectors/ore/ore/claimOre- Claim ORE token rewardsStaking Operations
POST /connectors/ore/ore/stake- Stake ORE tokensPOST /connectors/ore/ore/unstake- Unstake ORE tokensPOST /connectors/ore/ore/claimStake- Claim staking rewardsInfo Endpoints
GET /connectors/ore/ore/accountInfo- Get miner and stake account infoGET /connectors/ore/ore/boardInfo- Get game board and round stateGET /connectors/ore/ore/systemInfo- Get treasury and token supply infoConfiguration
The connector uses hardcoded program IDs for ORE v3:
oreV3EG1i9BEgiAJ8b177Z2S2rMarzak4NMv1kULvWvoreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcpConfiguration options in
conf/ore.yml:commitment: Transaction confirmation level (default: "confirmed")priorityFee: Priority fee in microlamports (default: 0)Test plan
pnpm start --passphrase=xxx --dev/connectors/ore/ore/systemInforeturns treasury data/connectors/ore/ore/boardInforeturns current round info/connectors/ore/ore/accountInfo?address=<wallet>returns account state🤖 Generated with Claude Code