Commit Graph

4 Commits

Author SHA1 Message Date
aitbc
3635311013 fix: update AITBCPaymentProcessor test to match actual contract API
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Has been skipped
Contract Performance Benchmarks / benchmark-execution-time (push) Has been skipped
Contract Performance Benchmarks / benchmark-throughput (push) Has been skipped
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Has been skipped
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 10s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Has been skipped
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Failing after 1m20s
Contract Performance Benchmarks / compare-benchmarks (push) Has been skipped
Deploy to Testnet / notify-deployment (push) Successful in 7s
- Change serviceFeePercentage to platformFeePercentage
- Change processPayment to createPayment
- Change getPaymentStatus to getPayment
- Change setServiceFeePercentage to updatePlatformFee
- Change collectFees to claimPlatformFee
- Update function signatures to match actual contract
- Remove non-existent custom errors
2026-04-29 12:27:56 +02:00
aitbc
0c9404fa92 fix: provide required constructor arguments for AIPowerRental deployment
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Has been skipped
Contract Performance Benchmarks / benchmark-execution-time (push) Has been skipped
Contract Performance Benchmarks / benchmark-throughput (push) Has been skipped
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Has been skipped
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Has been skipped
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Failing after 1m5s
Contract Performance Benchmarks / compare-benchmarks (push) Has been skipped
Deploy to Testnet / notify-deployment (push) Successful in 1s
- Add ZKReceiptVerifier and Groth16Verifier deployments before AIPowerRental
- Fix AITBCPaymentProcessor.test.js to deploy verifiers first
- Fix DynamicPricing.test.js to deploy verifiers first
- Fix EscrowService.test.js to deploy verifiers first
- Fix Phase4ModularContracts.test.js to register contracts before initializing PerformanceAggregator
- This fixes incorrect number of arguments to constructor errors
2026-04-29 11:53:24 +02:00
aitbc
1c5292f84b fix: correct constructor arguments in contract tests
Some checks failed
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Deploy to Testnet / notify-deployment (push) Has been cancelled
Contract Performance Benchmarks / benchmark-gas-usage (push) Failing after 10s
Contract Performance Benchmarks / benchmark-execution-time (push) Has started running
Contract Performance Benchmarks / benchmark-throughput (push) Has been cancelled
Contract Performance Benchmarks / compare-benchmarks (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Failing after 8s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 9s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Failing after 1m12s
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Failing after 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
- Fix AITBCPaymentProcessor constructor to pass aiPowerRental address
- Fix DynamicPricing constructor to deploy required dependencies
- Fix EscrowService constructor to pass aiPowerRental to PaymentProcessor
- Fix Phase4ModularContracts to use waitForDeployment() instead of deployed()
- Fix Phase4ModularContracts to use getAddress() instead of .address
2026-04-29 10:54:47 +02:00
aitbc
87e524e42c feat: enhance smart contract testing and deployment
- Add comprehensive test files for core contracts (ContractRegistry, TreasuryManager, AgentMarketplaceV2, EscrowService, DynamicPricing)
- Add Foundry fuzz tests for ContractRegistry, TreasuryManager, and AgentMarketplaceV2
- Add deployment automation scripts (deploy-automation.js, verify-deployment.js, monitor-contracts.js)
- Fix Hardhat/toolbox version compatibility in package.json
- Update smart-contract-tests.yml workflow to include deployment job
2026-04-29 10:44:40 +02:00