Closed pcaversaccio closed 9 months ago
Coverage after merging initial-deployments into main will be
100.00% |
---|
File | Stmts | Branches | Funcs | Lines | Uncovered Lines |
---|---|---|---|---|---|
src | |||||
CreateX.sol | 100% | 100% | 100% | 100% |
For the record, I detailed the technical verification issues for "Harmony Testnet" and "Filecoin Testnet (Calibration)" in the changelog.
UPDATE: I managed to verify CreateX
on Filfox (i.e. Filecoin) test and production network using the following Python script:
import json
import requests
# See the Filfox API documentation here: https://filfox.notion.site/Filfox-Contract-Verification-API-Documents-c48d361c949348acb0bf806871ddd2c2
address = "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
compiler = "v0.8.23+commit.f704f362"
optimize = True
optimizeRuns = 10000000
metadata = '{"bytecodeHash": "none"}'
sourceFiles = dict()
files = ["CreateX.sol"]
for file in files:
with open(file) as f:
sourceFiles[file] = {"content": f.read()}
data = {
"address": address,
"compiler": compiler,
"optimize": optimize,
"optimizeRuns": optimizeRuns,
"sourceFiles": sourceFiles,
"license": "AGPL-3.0-only",
"evmVersion": "paris",
"metadata": metadata,
}
url = "https://calibration.filfox.info/api/v1/tools/verifyContract" # For testnet
# url = "https://filfox.info/api/v1/tools/verifyContract" # For mainnet
header = {"Content-Type": "application/json"}
r = requests.post(url, data=json.dumps(data), headers=header)
print(r.status_code)
print(r.text)
🕓 Changelog
This PR adds the initial 28 test network deployments. "Harmony Testnet" and "Filecoin Testnet (Calibration)" contract verifications fail due to technical issues on their side, but it's a non-issue since the bytecode is the same as on all other deployed and verified chains, as well as I have verified "Filecoin Testnet (Calibration)" on Sourcify.
Details on "Harmony Testnet" Verification Error
They don't support any API-based verification, and their UI has a parsing bug, disallowing me to verify the contract:
Details on "Filecoin Testnet (Calibration)" Verification Error
Their backend verification doesn't support any Solidity version
0.8.23
currently. You can test this via thecURL
command:where
cURL.json
looks like:This will revert with:
🐶 Cute Animal Picture