Skip to content

Commit

Permalink
feat: update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlasoin committed Nov 5, 2024
1 parent 64a7446 commit 7ea36e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@webisopen/ovm-contracts": "^1.2.0",
"@webisopen/ovm-contracts": "^1.3.0",
"@openzeppelin/contracts": "^5.0.2"
}
}
7 changes: 3 additions & 4 deletions src/Pi.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.13;

import {OVMClient} from "@webisopen/ovm-contracts/src/OVMClient.sol";
import {Arch, ExecMode, Requirement, Specification} from "@webisopen/ovm-contracts/src/libraries/DataTypes.sol";
import {Arch, ExecMode, GPUModel, Requirement, Specification} from "@webisopen/ovm-contracts/src/libraries/DataTypes.sol";

event ResponseParsed(bytes32 requestId, bool success, string strPI);

Expand All @@ -25,17 +25,16 @@ contract Pi is OVMClient {
spec.name = "ovm-cal-pi";
spec.version = "1.0.0";
spec.description = "Calculate PI";
spec.environments = "python:3.7";
spec.repository = "https://github.com/webisopen/ovm-cal-pi";
spec.repoTag = "9231c80a6cba45c8ff9a1d3ba19e8596407e8850";
spec.license = "WTFPL";
spec.entrypoint = "src/main.py";
spec.requirement = Requirement({
ram: "256mb",
disk: "5mb",
timeout: 600,
cpu: 1,
gpu: false
gpu: 0,
gpuModel: GPUModel.T4
});
spec
.apiABIs = '[{"request": {"type":"function","name":"sendRequest","inputs":[{"name":"numDigits","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"requestId","type":"bytes32","internalType":"bytes32"}],"stateMutability":"payable"},"getResponse":{"type":"function","name":"getResponse","inputs":[{"name":"requestId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"}}]';
Expand Down

0 comments on commit 7ea36e8

Please sign in to comment.