Skip to content

Commit

Permalink
Write custom plugin for Mercury (smartcontractkit#8340)
Browse files Browse the repository at this point in the history
* Write custom plugin for Mercury

Supported Mercury fields:

- FeedId
- ObservationsTimestamp
- BenchmarkPrice
- Bid
- Ask
- CurrentBlockNum
- CurrentBlockHash
- ValidFromBlockNum

---------

Co-authored-by: Austin Born <[email protected]>
Co-authored-by: Jordan Krage <[email protected]>
Co-authored-by: lukaszcl <[email protected]>
  • Loading branch information
4 people authored Mar 16, 2023
1 parent fcd089c commit 1ec6aba
Show file tree
Hide file tree
Showing 187 changed files with 7,416 additions and 1,356 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "contracts/foundry-lib/forge-std"]
path = contracts/foundry-lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "contracts/foundry-lib/openzeppelin-contracts"]
path = contracts/foundry-lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
8 changes: 0 additions & 8 deletions contracts/.gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
FunctionsOracle_sendRequest:testEmptyRequestDataReverts() (gas: 11137)
FunctionsOracle_setDONPublicKey:testEmptyPublicKeyReverts() (gas: 10964)
FunctionsOracle_setDONPublicKey:testOnlyOwnerReverts() (gas: 11341)
FunctionsOracle_setDONPublicKey:testSetDONPublicKeySuccess() (gas: 126265)
FunctionsOracle_setDONPublicKey:testSetDONPublicKey_gas() (gas: 97513)
FunctionsOracle_setRegistry:testEmptyPublicKeyReverts() (gas: 10541)
FunctionsOracle_setRegistry:testOnlyOwnerReverts() (gas: 11002)
FunctionsOracle_setRegistry:testSetRegistrySuccess() (gas: 35677)
FunctionsOracle_setRegistry:testSetRegistry_gas() (gas: 31931)
FunctionsOracle_typeAndVersion:testTypeAndVersionSuccess() (gas: 6815)
1 change: 1 addition & 0 deletions contracts/foundry-lib/openzeppelin-contracts
Submodule openzeppelin-contracts added at 0ebc6e
3 changes: 2 additions & 1 deletion contracts/remappings.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ds-test/=foundry-lib/forge-std/lib/ds-test/src
forge-std/=foundry-lib/forge-std/src
openzeppelin-contracts/=foundry-lib/openzeppelin-contracts/contracts/

@openzeppelin/=node_modules/@openzeppelin/
hardhat/=node_modules/hardhat/
@eth-optimism/=node_modules/@eth-optimism
@eth-optimism/=node_modules/@eth-optimism
5 changes: 5 additions & 0 deletions contracts/scripts/native_solc_compile_all
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,8 @@ $SCRIPTPATH/native_solc8_6_compile dev/functions/FunctionsOracle.sol
$SCRIPTPATH/native_solc8_6_compile tests/FunctionsOracleWithInit.sol
$SCRIPTPATH/native_solc8_6_compile dev/functions/FunctionsBillingRegistry.sol
$SCRIPTPATH/native_solc8_6_compile tests/FunctionsBillingRegistryWithInit.sol

# Mercury
$SCRIPTPATH/native_solc8_6_compile Verifier.sol
$SCRIPTPATH/native_solc8_6_compile VerifierProxy.sol
$SCRIPTPATH/native_solc8_6_compile tests/ExposedVerifier.sol
Loading

0 comments on commit 1ec6aba

Please sign in to comment.