diff --git a/.gitleaksignore b/.gitleaksignore index 7091a3a1..e34077c3 100644 --- a/.gitleaksignore +++ b/.gitleaksignore @@ -52,3 +52,4 @@ ac5929932dad792efef12b2860753ca90bc4b3de:scripts/proposals/proposal_04_CM_guard_ c91f775ec4afeb1737af25b8325201c090d48c23:scripts/deployment/globals_mainnet.json:generic-api-key:1 52a1209b5f91ae48f0c44a0ca968f69a6461d6a8:scripts/proposals/proposal_04_CM_guard_goerli.js:generic-api-key:14 52a1209b5f91ae48f0c44a0ca968f69a6461d6a8:scripts/proposals/proposal_04_CM_guard_goerli.js:generic-api-key:18 +fa17ac186753911eb9d2ae0a4ab59db5f7e8e563:scripts/deployment/bridges/solana/test/sepolia/timelock_set_upgrade_authority.js:generic-api-key:40 diff --git a/docs/Vulnerabilities_list_governance.pdf b/docs/Vulnerabilities_list_governance.pdf index 6f2ed38b..eb1e9a7d 100644 Binary files a/docs/Vulnerabilities_list_governance.pdf and b/docs/Vulnerabilities_list_governance.pdf differ diff --git a/scripts/deployment/bridges/solana/test/polygon/deploy_00_mock_timelock.js b/scripts/deployment/bridges/solana/test/polygon/deploy_00_mock_timelock.js index d8c94932..828d3086 100644 --- a/scripts/deployment/bridges/solana/test/polygon/deploy_00_mock_timelock.js +++ b/scripts/deployment/bridges/solana/test/polygon/deploy_00_mock_timelock.js @@ -1,7 +1,6 @@ /*global process*/ const { ethers } = require("hardhat"); -const { LedgerSigner } = require("@anders-t/ethers-ledger"); async function main() { const fs = require("fs"); diff --git a/scripts/deployment/bridges/solana/test/polygon/timelock_send_message.js b/scripts/deployment/bridges/solana/test/polygon/timelock_send_message.js index bee10e61..3aca88c1 100644 --- a/scripts/deployment/bridges/solana/test/polygon/timelock_send_message.js +++ b/scripts/deployment/bridges/solana/test/polygon/timelock_send_message.js @@ -22,7 +22,7 @@ async function main() { const mockTimelockAddress = "0x4cEB52802ef86edF8796632546d89e55c87a0901"; const mockTimelockJSON = "artifacts/contracts/bridges/test/MockTimelock.sol/MockTimelock.json"; contractFromJSON = fs.readFileSync(mockTimelockJSON, "utf8"); - parsedFile = JSON.parse(contractFromJSON); + const parsedFile = JSON.parse(contractFromJSON); const mockTimelockABI = parsedFile["abi"]; const mockTimelock = new ethers.Contract(mockTimelockAddress, mockTimelockABI, polygonProvider); diff --git a/scripts/deployment/bridges/solana/test/sepolia/deploy_00_mock_timelock.js b/scripts/deployment/bridges/solana/test/sepolia/deploy_00_mock_timelock.js index 817ee9f6..e62f9b4a 100644 --- a/scripts/deployment/bridges/solana/test/sepolia/deploy_00_mock_timelock.js +++ b/scripts/deployment/bridges/solana/test/sepolia/deploy_00_mock_timelock.js @@ -1,7 +1,6 @@ /*global process*/ const { ethers } = require("hardhat"); -const { LedgerSigner } = require("@anders-t/ethers-ledger"); async function main() { const fs = require("fs"); diff --git a/scripts/deployment/bridges/solana/test/sepolia/timelock_send_message.js b/scripts/deployment/bridges/solana/test/sepolia/timelock_send_message.js index c03053eb..c06e8754 100644 --- a/scripts/deployment/bridges/solana/test/sepolia/timelock_send_message.js +++ b/scripts/deployment/bridges/solana/test/sepolia/timelock_send_message.js @@ -22,7 +22,7 @@ async function main() { const mockTimelockAddress = "0x471B3f60f08C50dd0eCba1bCd113B66FCC02b63d"; const mockTimelockJSON = "artifacts/contracts/bridges/test/MockTimelock.sol/MockTimelock.json"; contractFromJSON = fs.readFileSync(mockTimelockJSON, "utf8"); - parsedFile = JSON.parse(contractFromJSON); + const parsedFile = JSON.parse(contractFromJSON); const mockTimelockABI = parsedFile["abi"]; const mockTimelock = new ethers.Contract(mockTimelockAddress, mockTimelockABI, sepoliaProvider); diff --git a/scripts/deployment/bridges/solana/test/sepolia/timelock_set_upgrade_authority.js b/scripts/deployment/bridges/solana/test/sepolia/timelock_set_upgrade_authority.js index 27493b94..e7dbd684 100644 --- a/scripts/deployment/bridges/solana/test/sepolia/timelock_set_upgrade_authority.js +++ b/scripts/deployment/bridges/solana/test/sepolia/timelock_set_upgrade_authority.js @@ -22,7 +22,7 @@ async function main() { const mockTimelockAddress = "0x471B3f60f08C50dd0eCba1bCd113B66FCC02b63d"; const mockTimelockJSON = "artifacts/contracts/bridges/test/MockTimelock.sol/MockTimelock.json"; contractFromJSON = fs.readFileSync(mockTimelockJSON, "utf8"); - parsedFile = JSON.parse(contractFromJSON); + const parsedFile = JSON.parse(contractFromJSON); const mockTimelockABI = parsedFile["abi"]; const mockTimelock = new ethers.Contract(mockTimelockAddress, mockTimelockABI, sepoliaProvider); diff --git a/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_all.js b/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_all.js index 63cfce5b..2df0add1 100644 --- a/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_all.js +++ b/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_all.js @@ -22,7 +22,7 @@ async function main() { const mockTimelockAddress = "0x471B3f60f08C50dd0eCba1bCd113B66FCC02b63d"; const mockTimelockJSON = "artifacts/contracts/bridges/test/MockTimelock.sol/MockTimelock.json"; contractFromJSON = fs.readFileSync(mockTimelockJSON, "utf8"); - parsedFile = JSON.parse(contractFromJSON); + const parsedFile = JSON.parse(contractFromJSON); const mockTimelockABI = parsedFile["abi"]; const mockTimelock = new ethers.Contract(mockTimelockAddress, mockTimelockABI, sepoliaProvider); diff --git a/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_sol.js b/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_sol.js index feac5c50..eb32ee97 100644 --- a/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_sol.js +++ b/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_sol.js @@ -1,4 +1,4 @@ -/*global process*/ +/*global process Buffer*/ const { ethers } = require("ethers"); @@ -22,7 +22,7 @@ async function main() { const mockTimelockAddress = "0x471B3f60f08C50dd0eCba1bCd113B66FCC02b63d"; const mockTimelockJSON = "artifacts/contracts/bridges/test/MockTimelock.sol/MockTimelock.json"; contractFromJSON = fs.readFileSync(mockTimelockJSON, "utf8"); - parsedFile = JSON.parse(contractFromJSON); + const parsedFile = JSON.parse(contractFromJSON); const mockTimelockABI = parsedFile["abi"]; const mockTimelock = new ethers.Contract(mockTimelockAddress, mockTimelockABI, sepoliaProvider); diff --git a/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_token_accounts.js b/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_token_accounts.js index 2c8fdecf..abe04d64 100644 --- a/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_token_accounts.js +++ b/scripts/deployment/bridges/solana/test/sepolia/timelock_transfer_token_accounts.js @@ -22,7 +22,7 @@ async function main() { const mockTimelockAddress = "0x471B3f60f08C50dd0eCba1bCd113B66FCC02b63d"; const mockTimelockJSON = "artifacts/contracts/bridges/test/MockTimelock.sol/MockTimelock.json"; contractFromJSON = fs.readFileSync(mockTimelockJSON, "utf8"); - parsedFile = JSON.parse(contractFromJSON); + const parsedFile = JSON.parse(contractFromJSON); const mockTimelockABI = parsedFile["abi"]; const mockTimelock = new ethers.Contract(mockTimelockAddress, mockTimelockABI, sepoliaProvider); diff --git a/scripts/deployment/bridges/solana/test/sepolia/timelock_upgrade_program.js b/scripts/deployment/bridges/solana/test/sepolia/timelock_upgrade_program.js index 14426f45..4838a381 100644 --- a/scripts/deployment/bridges/solana/test/sepolia/timelock_upgrade_program.js +++ b/scripts/deployment/bridges/solana/test/sepolia/timelock_upgrade_program.js @@ -22,7 +22,7 @@ async function main() { const mockTimelockAddress = "0x471B3f60f08C50dd0eCba1bCd113B66FCC02b63d"; const mockTimelockJSON = "artifacts/contracts/bridges/test/MockTimelock.sol/MockTimelock.json"; contractFromJSON = fs.readFileSync(mockTimelockJSON, "utf8"); - parsedFile = JSON.parse(contractFromJSON); + const parsedFile = JSON.parse(contractFromJSON); const mockTimelockABI = parsedFile["abi"]; const mockTimelock = new ethers.Contract(mockTimelockAddress, mockTimelockABI, sepoliaProvider);