- Remove duplicate `/marketplace/gpu/{gpu_id}` endpoint from marketplace_gpu.py
- Remove marketplace_gpu router inclusion from main.py (already included elsewhere)
- Fix staking service staker_count logic to check existing stakes before increment/decrement
- Add minimum stake amount validation (100 AITBC)
- Add proper error handling for stake not found cases
- Fix staking pool update to commit and refresh after modifications
- Update CLI send_transaction to use chain
21 lines
475 B
Solidity
21 lines
475 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.0;
|
|
|
|
/**
|
|
* @title MockVerifier
|
|
* @dev Mock verifier for testing purposes
|
|
*/
|
|
contract MockVerifier {
|
|
function verifyPerformance(
|
|
uint256 _agentWallet,
|
|
uint256 _responseTime,
|
|
uint256 _accuracy,
|
|
uint256 _availability,
|
|
uint256 _computePower,
|
|
bytes memory _zkProof
|
|
) external pure returns (bool) {
|
|
// Always return true for testing
|
|
return true;
|
|
}
|
|
}
|