feat: add ORE mining game connector (experimental) #578
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