Implement RECEIPT_CLAIM transaction type
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 4s
Documentation Validation / validate-docs (push) Successful in 12s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Integration Tests / test-service-integration (push) Failing after 12s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 10s
Security Scanning / security-scan (push) Successful in 31s
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 4s
Documentation Validation / validate-docs (push) Successful in 12s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Integration Tests / test-service-integration (push) Failing after 12s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 10s
Security Scanning / security-scan (push) Successful in 31s
- Add status fields to Receipt model (status, claimed_at, claimed_by) - Add RECEIPT_CLAIM handling to state_transition.py with validation and reward minting - Add type field to Transaction model for reliable transaction type storage - Update router to use TransactionRequest model to preserve type field - Update poa.py to extract type from mempool transaction content and store only original payload - Add RECEIPT_CLAIM to GasType enum with gas schedule
This commit is contained in:
@@ -180,6 +180,70 @@ DATA_SERVICE_ID=$(./aitbc-cli market search --query "data processing" | grep "se
|
||||
./aitbc-cli market settle-payment --service-id $DATA_SERVICE_ID --amount 30 --wallet enterprise-1
|
||||
```
|
||||
|
||||
## Ollama GPU Provider Operations
|
||||
|
||||
### Ollama GPU Provider Registration
|
||||
|
||||
```bash
|
||||
# Register GPU provider with Ollama model support
|
||||
./aitbc-cli market create \
|
||||
--type gpu-provider \
|
||||
--price 100 \
|
||||
--wallet gpu-provider \
|
||||
--description "Ollama GPU inference with llama2, mistral, codellama support"
|
||||
|
||||
# Register with specific model specifications
|
||||
./aitbc-cli provider register \
|
||||
--name ollama-gpu-provider \
|
||||
--gpu-model "NVIDIA RTX 4090" \
|
||||
--gpu-count 1 \
|
||||
--models "llama2,mistral,codellama,llama3.2:latest" \
|
||||
--wallet gpu-provider
|
||||
|
||||
# Verify provider registration
|
||||
./aitbc-cli provider status --provider-id "ollama-gpu-provider"
|
||||
```
|
||||
|
||||
### Ollama GPU Provider Testing
|
||||
|
||||
```bash
|
||||
# Test Ollama GPU inference with specific model
|
||||
./aitbc-cli ai submit --wallet test-wallet --type ollama \
|
||||
--prompt "What is the capital of France?" \
|
||||
--model "llama3.2:latest" \
|
||||
--payment 50 \
|
||||
--provider-id "ollama-gpu-provider"
|
||||
|
||||
# Monitor Ollama job execution
|
||||
./aitbc-cli ai status --job-id "ollama_job_123"
|
||||
|
||||
# Retrieve Ollama results
|
||||
./aitbc-cli ai results --job-id "ollama_job_123"
|
||||
|
||||
# Test streaming Ollama responses
|
||||
./aitbc-cli ai submit --wallet test-wallet --type ollama-streaming \
|
||||
--prompt "Generate a short story" \
|
||||
--model "mistral" \
|
||||
--payment 100 \
|
||||
--provider-id "ollama-gpu-provider"
|
||||
```
|
||||
|
||||
### GPU Provider Marketplace Operations
|
||||
|
||||
```bash
|
||||
# List all registered GPU providers
|
||||
./aitbc-cli provider list --type gpu-provider
|
||||
|
||||
# Check GPU provider availability
|
||||
./aitbc-cli provider availability --provider-id "ollama-gpu-provider"
|
||||
|
||||
# Query GPU provider models
|
||||
./aitbc-cli provider models --provider-id "ollama-gpu-provider"
|
||||
|
||||
# Compare GPU provider pricing
|
||||
./aitbc-cli provider pricing --type gpu-provider
|
||||
```
|
||||
|
||||
## GPU Provider Testing
|
||||
|
||||
### GPU Resource Allocation Testing
|
||||
|
||||
Reference in New Issue
Block a user