Skip to content

Commit

Permalink
(chore): FUN-1024 - Deprecate Chainlink Functions v0 contract code (#…
Browse files Browse the repository at this point in the history
…11049)

* (chore): FUN-1024 - Deprecate Chainlink Functions v0 contract code

* Decrease solhint allowed warnings due to Function v0 deprecation
  • Loading branch information
justinkaseman authored Oct 24, 2023
1 parent a2ae7cb commit b1f05cf
Show file tree
Hide file tree
Showing 57 changed files with 1 addition and 9,719 deletions.
2 changes: 1 addition & 1 deletion contracts/.solhintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 351 warnings
#./src/v0.8/automation
# 91 warnings
# 27 warnings
#./src/v0.8/functions


Expand Down
20 changes: 0 additions & 20 deletions contracts/scripts/native_solc_compile_all_functions
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@ echo " ┌───────────────────────
echo " │ Compiling Functions contracts... │"
echo " └──────────────────────────────────────────────┘"

SOLC_VERSION="0.8.6"
OPTIMIZE_RUNS=1000000


SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
ROOT="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; cd ../ && pwd -P )"
python3 -m pip install --require-hashes -r $SCRIPTPATH/requirements.txt

solc-select install $SOLC_VERSION
solc-select use $SOLC_VERSION
export SOLC_VERSION=$SOLC_VERSION


compileContract () {
solc @openzeppelin/=$ROOT/node_modules/@openzeppelin/ \
--overwrite --optimize --optimize-runs $OPTIMIZE_RUNS --metadata-hash none \
Expand All @@ -28,20 +22,6 @@ compileContract () {
$ROOT/src/v0.8/functions/$2
}

##########################
# Version 0 (Testnet Beta)
##########################

compileContract v0_0_0 dev/v0_0_0/Functions.sol
compileContract v0_0_0 dev/v0_0_0/FunctionsBillingRegistry.sol
compileContract v0_0_0 dev/v0_0_0/FunctionsClient.sol
compileContract v0_0_0 dev/v0_0_0/FunctionsOracle.sol
compileContract v0_0_0 dev/v0_0_0/example/FunctionsClientExample.sol

# Test helpers
compileContract v0_0_0 tests/v0_0_0/testhelpers/FunctionsBillingRegistryWithInit.sol
compileContract v0_0_0 tests/v0_0_0/testhelpers/FunctionsOracleWithInit.sol

############################
# Version 1 (Mainnet Preview)
############################
Expand Down
152 changes: 0 additions & 152 deletions contracts/src/v0.8/functions/dev/v0_0_0/Functions.sol

This file was deleted.

Loading

0 comments on commit b1f05cf

Please sign in to comment.