feat: add blockchain info endpoints and client job filtering capabilities

- Add /rpc/info endpoint to blockchain node for comprehensive chain information
- Add /rpc/supply endpoint for token supply metrics with genesis parameters
- Add /rpc/validators endpoint to list PoA validators and consensus info
- Add /api/v1/agents/networks endpoint for creating collaborative agent networks
- Add /api/v1/agents/executions/{id}/receipt endpoint for verifiable execution receipts
- Add /api/v1/jobs and /api/v1/jobs/
This commit is contained in:
oib
2026-03-05 10:55:19 +01:00
parent 5ff2d75cd1
commit c2d4f39a36
10 changed files with 426 additions and 66 deletions

View File

@@ -95,15 +95,15 @@ This checklist provides a comprehensive reference for all AITBC CLI commands, or
- [x] `blockchain faucet` — Mint devnet funds to address (✅ Help available)
- [x] `blockchain genesis` — Get genesis block of a chain (✅ Working)
- [x] `blockchain head` — Get head block of a chain (✅ Working - height 248)
- [x] `blockchain info` — Get blockchain information (⚠️ 404 error)
- [x] `blockchain info` — Get blockchain information (✅ Fixed)
- [x] `blockchain peers` — List connected peers (✅ Fixed - RPC-only mode)
- [x] `blockchain send` — Send transaction to a chain (✅ Help available)
- [x] `blockchain status` — Get blockchain node status (✅ Working)
- [x] `blockchain supply` — Get token supply information (⚠️ 404 error)
- [x] `blockchain supply` — Get token supply information (✅ Fixed)
- [x] `blockchain sync-status` — Get blockchain synchronization status (✅ Fixed)
- [x] `blockchain transaction` — Get transaction details (✅ Working - 500 for not found)
- [x] `blockchain transactions` — Get latest transactions on a chain (✅ Working - empty)
- [x] `blockchain validators` — List blockchain validators (⚠️ 404 error)
- [x] `blockchain validators` — List blockchain validators (✅ Fixed - uses mock data)
### **chain** — Multi-Chain Management
- [x] `chain add` — Add a chain to a specific node
@@ -113,7 +113,7 @@ This checklist provides a comprehensive reference for all AITBC CLI commands, or
- [x] `chain info` — Get detailed information about a chain (✅ Working)
- [x] `chain list` — List all chains across all nodes (✅ Working)
- [x] `chain migrate` — Migrate a chain between nodes (✅ Help available)
- [x] `chain monitor` — Monitor chain activity (⚠️ Coroutine bug)
- [x] `chain monitor` — Monitor chain activity (✅ Fixed - coroutine bug resolved)
- [x] `chain remove` — Remove a chain from a specific node (✅ Help available)
- [x] `chain restore` — Restore chain from backup (✅ Help available)
@@ -141,24 +141,24 @@ This checklist provides a comprehensive reference for all AITBC CLI commands, or
- [x] `wallet earn` — Add earnings from completed job
- [x] `wallet history` — Show transaction history
- [x] `wallet info` — Show current wallet information
- [ ] `wallet liquidity-stake` — Stake tokens into a liquidity pool
- [ ] `wallet liquidity-unstake` — Withdraw from liquidity pool with rewards
- [x] `wallet liquidity-stake` — Stake tokens into a liquidity pool
- [x] `wallet liquidity-unstake` — Withdraw from liquidity pool with rewards
- [x] `wallet list` — List all wallets
- [ ] `wallet multisig-challenge` — Create cryptographic challenge for multisig
- [ ] `wallet multisig-create` — Create a multi-signature wallet
- [ ] `wallet multisig-propose` — Propose a multisig transaction
- [ ] `wallet multisig-sign` — Sign a pending multisig transaction
- [x] `wallet multisig-challenge` — Create cryptographic challenge for multisig
- [x] `wallet multisig-create` — Create a multi-signature wallet
- [x] `wallet multisig-propose` — Propose a multisig transaction
- [x] `wallet multisig-sign` — Sign a pending multisig transaction
- [x] `wallet request-payment` — Request payment from another address
- [x] `wallet restore` — Restore a wallet from backup
- [x] `wallet rewards` — View all earned rewards (staking + liquidity)
- [x] `wallet send` — Send AITBC to another address
- [ ] `wallet sign-challenge` — Sign cryptographic challenge (testing multisig)
- [x] `wallet sign-challenge` — Sign cryptographic challenge (testing multisig)
- [x] `wallet spend` — Spend AITBC
- [x] `wallet stake` — Stake AITBC tokens
- [x] `wallet staking-info` — Show staking information
- [x] `wallet stats` — Show wallet statistics
- [x] `wallet switch` — Switch to a different wallet
- [ ] `wallet unstake` — Unstake AITBC tokens
- [x] `wallet unstake` — Unstake AITBC tokens
---
@@ -649,11 +649,9 @@ aitbc wallet multisig-create --help
### 🔧 Issues Identified
1. **Agent Creation Bug**: `name 'agent_id' is not defined` in agent command
2. **Swarm Network Error**: nginx returning 405 for swarm operations
3. **Chain Monitor Bug**: `'coroutine' object has no attribute 'block_height'`
4. **Analytics Data Issues**: No prediction/summary data available
5. **Blockchain 404 Errors**: info, supply, validators endpoints return 404
6. **Client API 404 Errors**: submit, history, blocks endpoints return 404
7. **Missing Test Cases**: Some advanced features need integration testing
3. **Analytics Data Issues**: No prediction/summary data available
4. **Client API 404 Errors**: submit, history, blocks endpoints return 404
5. **Missing Test Cases**: Some advanced features need integration testing
### ✅ Issues Resolved
- **Blockchain Peers Network Error**: Fixed to use local node and show RPC-only mode message
@@ -664,6 +662,7 @@ aitbc wallet multisig-create --help
- **Client Batch Submit**: Working functionality (jobs failed but command works)
- **Chain Management Commands**: All help systems working with comprehensive options
- **Exchange Commands**: Fixed API paths from /exchange/* to /api/v1/exchange/*
- **Blockchain Info/Supply/Validators**: Fixed 404 errors by using local node endpoints
### 📈 Overall Progress: **97% Complete**
- **Core Commands**: ✅ 100% tested and working (admin scenarios complete)