Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(build): bump release, deps, and solidity to v0.8.23 for gas service #276

Merged
merged 3 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ jobs:
run: npm ci

- name: Run Slither
uses: crytic/slither-action@v0.3.0
uses: crytic/slither-action@v0.3.1
env:
NO_OVERRIDES: true
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
run: npm ci

- name: Test
run: CHECK_CONTRACT_SIZE=true npm run test-evm-versions
run: CHECK_CONTRACT_SIZE=true npx hardhat test --parallel
27 changes: 20 additions & 7 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const chains = require(`@axelar-network/axelar-chains-config/info/${env}.json`);
const keys = readJSON(`${__dirname}/keys.json`);
const { networks, etherscan } = importNetworks(chains, keys);

networks.hardhat.hardfork = process.env.EVM_VERSION || 'merge';

const optimizerSettings = {
enabled: true,
runs: 1000,
Expand All @@ -41,20 +43,31 @@ const compilerSettings = {
},
};

const gasServiceSettings = {
version: '0.8.23',
settings: {
evmVersion: process.env.EVM_VERSION || 'london',
optimizer: optimizerSettings,
},
};

/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [compilerSettings],
// Fix the Proxy bytecodes
overrides: {
'contracts/AxelarGatewayProxy.sol': compilerSettings,
'contracts/BurnableMintableCappedERC20.sol': compilerSettings,
'contracts/DepositHandler.sol': compilerSettings,
'contracts/gas-service/AxelarGasServiceProxy.sol': compilerSettings,
'contracts/deposit-service/AxelarDepositServiceProxy.sol': compilerSettings,
},
overrides: process.env.NO_OVERRIDES
? {}
: {
'contracts/AxelarGatewayProxy.sol': compilerSettings,
'contracts/BurnableMintableCappedERC20.sol': compilerSettings,
'contracts/DepositHandler.sol': compilerSettings,
'contracts/gas-service/AxelarGasServiceProxy.sol': compilerSettings,
'contracts/deposit-service/AxelarDepositServiceProxy.sol': compilerSettings,
'contracts/gas-service/AxelarGasService.sol': gasServiceSettings, // use optimized setting for the gas service
},
},
defaultNetwork: 'hardhat',
networks,
Expand Down
Loading
Loading