-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from provable-things/solidity-0.8.x
feat(ethereum-api): <- adds version targeting solc 0.8.x
- Loading branch information
Showing
33 changed files
with
12,682 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
cache-dependency-path: ./package-lock.json | ||
- run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
*.sw* | ||
**/node_modules | ||
**/cache | ||
**/artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1333,4 +1333,4 @@ contract usingProvable { | |
} | ||
} | ||
} | ||
// </provableAPI> | ||
// </provableAPI> |
6 changes: 6 additions & 0 deletions
6
contracts/solc-v0.8.x/interfaces/provable-address-resolver-interface.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >= 0.8.0 < 0.9.0; | ||
|
||
interface OracleAddrResolverI { | ||
function getAddress() external returns (address _address); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >= 0.8.0 < 0.9.0; | ||
|
||
interface ProvableI { | ||
function setProofType(bytes1 _proofType) external; | ||
function setCustomGasPrice(uint _gasPrice) external; | ||
function cbAddress() external returns (address _cbAddress); | ||
function randomDS_getSessionPubKeyHash() external view returns (bytes32 _sessionKeyHash); | ||
|
||
function getPrice( | ||
string calldata _datasource | ||
) external returns (uint _dsprice); | ||
|
||
function getPrice( | ||
string calldata _datasource, | ||
uint _gasLimit | ||
) external returns (uint _dsprice); | ||
|
||
function queryN( | ||
uint _timestamp, | ||
string calldata _datasource, | ||
bytes calldata _argN | ||
) external payable returns (bytes32 _id); | ||
|
||
function query( | ||
uint _timestamp, | ||
string calldata _datasource, | ||
string calldata _arg | ||
) external payable returns (bytes32 _id); | ||
|
||
function query2( | ||
uint _timestamp, | ||
string calldata _datasource, | ||
string calldata _arg1, | ||
string calldata _arg2 | ||
) external payable returns (bytes32 _id); | ||
|
||
function query_withGasLimit( | ||
uint _timestamp, | ||
string calldata _datasource, | ||
string calldata _arg, | ||
uint _gasLimit | ||
) external payable returns (bytes32 _id); | ||
|
||
function queryN_withGasLimit( | ||
uint _timestamp, | ||
string calldata _datasource, | ||
bytes calldata _argN, | ||
uint _gasLimit | ||
) external payable returns (bytes32 _id); | ||
|
||
function query2_withGasLimit( | ||
uint _timestamp, | ||
string calldata _datasource, | ||
string calldata _arg1, | ||
string calldata _arg2, | ||
uint _gasLimit | ||
) external payable returns (bytes32 _id); | ||
} |
Oops, something went wrong.