Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
update dependencies
  • Loading branch information
Amxx committed Mar 28, 2024
commit 8b8f2c5e224c6a66c450a790de050c6fec84672d
20 changes: 10 additions & 10 deletions contracts/utils/StorageSlot.sol
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ library StorageSlot {
/**
* @dev Load the value held at location `slot` in transient storage.
*/
function tload(TypedSlot.AddressSlotType slot) internal view returns (address value) {
function tload(AddressSlotType slot) internal view returns (address value) {
/// @solidity memory-safe-assembly
assembly {
value := tload(slot)
Expand All @@ -241,7 +241,7 @@ library StorageSlot {
/**
* @dev Store `value` at location `slot` in transient storage.
*/
function tstore(TypedSlot.AddressSlotType slot, address value) internal {
function tstore(AddressSlotType slot, address value) internal {
/// @solidity memory-safe-assembly
assembly {
tstore(slot, value)
Expand All @@ -251,7 +251,7 @@ library StorageSlot {
/**
* @dev Load the value held at location `slot` in transient storage.
*/
function tload(TypedSlot.BooleanSlotType slot) internal view returns (bool value) {
function tload(BooleanSlotType slot) internal view returns (bool value) {
/// @solidity memory-safe-assembly
assembly {
value := tload(slot)
Expand All @@ -261,7 +261,7 @@ library StorageSlot {
/**
* @dev Store `value` at location `slot` in transient storage.
*/
function tstore(TypedSlot.BooleanSlotType slot, bool value) internal {
function tstore(BooleanSlotType slot, bool value) internal {
/// @solidity memory-safe-assembly
assembly {
tstore(slot, value)
Expand All @@ -271,7 +271,7 @@ library StorageSlot {
/**
* @dev Load the value held at location `slot` in transient storage.
*/
function tload(TypedSlot.Bytes32SlotType slot) internal view returns (bytes32 value) {
function tload(Bytes32SlotType slot) internal view returns (bytes32 value) {
/// @solidity memory-safe-assembly
assembly {
value := tload(slot)
Expand All @@ -281,7 +281,7 @@ library StorageSlot {
/**
* @dev Store `value` at location `slot` in transient storage.
*/
function tstore(TypedSlot.Bytes32SlotType slot, bytes32 value) internal {
function tstore(Bytes32SlotType slot, bytes32 value) internal {
/// @solidity memory-safe-assembly
assembly {
tstore(slot, value)
Expand All @@ -291,7 +291,7 @@ library StorageSlot {
/**
* @dev Load the value held at location `slot` in transient storage.
*/
function tload(TypedSlot.Uint256SlotType slot) internal view returns (uint256 value) {
function tload(Uint256SlotType slot) internal view returns (uint256 value) {
/// @solidity memory-safe-assembly
assembly {
value := tload(slot)
Expand All @@ -301,7 +301,7 @@ library StorageSlot {
/**
* @dev Store `value` at location `slot` in transient storage.
*/
function tstore(TypedSlot.Uint256SlotType slot, uint256 value) internal {
function tstore(Uint256SlotType slot, uint256 value) internal {
/// @solidity memory-safe-assembly
assembly {
tstore(slot, value)
Expand All @@ -311,7 +311,7 @@ library StorageSlot {
/**
* @dev Load the value held at location `slot` in transient storage.
*/
function tload(TypedSlot.Int256SlotType slot) internal view returns (int256 value) {
function tload(Int256SlotType slot) internal view returns (int256 value) {
/// @solidity memory-safe-assembly
assembly {
value := tload(slot)
Expand All @@ -321,7 +321,7 @@ library StorageSlot {
/**
* @dev Store `value` at location `slot` in transient storage.
*/
function tstore(TypedSlot.Int256SlotType slot, int256 value) internal {
function tstore(Int256SlotType slot, int256 value) internal {
/// @solidity memory-safe-assembly
assembly {
tstore(slot, value)
Expand Down
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[profile.default]
solc_version = '0.8.24'
evm_version = 'cancun'
src = 'contracts'
out = 'out'
libs = ['node_modules', 'lib']
Expand Down
12 changes: 10 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const { argv } = require('yargs/yargs')()
compiler: {
alias: 'compileVersion',
type: 'string',
default: '0.8.20',
default: '0.8.24',
},
src: {
alias: 'source',
Expand All @@ -36,6 +36,11 @@ const { argv } = require('yargs/yargs')()
type: 'boolean',
default: false,
},
evm: {
alias: 'evmVersion',
type: 'string',
default: 'cancun',
},
// Extra modules
coverage: {
type: 'boolean',
Expand Down Expand Up @@ -78,6 +83,7 @@ module.exports = {
enabled: withOptimizations,
runs: 200,
},
evmVersion: argv.evm,
viaIR: withOptimizations && argv.ir,
outputSelection: { '*': { '*': ['storageLayout'] } },
},
Expand All @@ -90,19 +96,21 @@ module.exports = {
'*': {
'code-size': withOptimizations,
'unused-param': !argv.coverage, // coverage causes unused-param warnings
'transient-storage': false,
default: 'error',
},
},
networks: {
hardhat: {
hardfork: argv.evm,
allowUnlimitedContractSize,
initialBaseFeePerGas: argv.coverage ? 0 : undefined,
},
},
exposed: {
imports: true,
initializers: true,
exclude: ['vendor/**/*', '**/*WithInit.sol'],
exclude: ['vendor/**/*', '**/*WithInit.sol', 'utils/TransientSlot.sol'],
},
gasReporter: {
enabled: argv.gas,
Expand Down
Loading