From 768de8a7ff527c8440d48486bd72b55922d45bce Mon Sep 17 00:00:00 2001 From: federava Date: Fri, 23 Feb 2024 11:08:33 +0100 Subject: [PATCH] feat: new contract storage layout --- upgrade/OFTWithFeePermitUpgradeable.json | 524 +++++++++++++++++++++++ upgrade/OFTWithFeePermitUpgradeable.txt | 40 ++ upgrade/UPGRADE.md | 3 + 3 files changed, 567 insertions(+) create mode 100644 upgrade/OFTWithFeePermitUpgradeable.json create mode 100644 upgrade/OFTWithFeePermitUpgradeable.txt diff --git a/upgrade/OFTWithFeePermitUpgradeable.json b/upgrade/OFTWithFeePermitUpgradeable.json new file mode 100644 index 00000000..50874c79 --- /dev/null +++ b/upgrade/OFTWithFeePermitUpgradeable.json @@ -0,0 +1,524 @@ +{ + "storage": [ + { + "astId": 3524, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8" + }, + { + "astId": 3527, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 4999, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 3371, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address" + }, + { + "astId": 3491, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 23, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "lzEndpoint", + "offset": 0, + "slot": "101", + "type": "t_contract(ILayerZeroEndpointUpgradeable)979" + }, + { + "astId": 27, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "trustedRemoteLookup", + "offset": 0, + "slot": "102", + "type": "t_mapping(t_uint16,t_bytes_storage)" + }, + { + "astId": 33, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "minDstGasLookup", + "offset": 0, + "slot": "103", + "type": "t_mapping(t_uint16,t_mapping(t_uint16,t_uint256))" + }, + { + "astId": 37, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "payloadSizeLimitLookup", + "offset": 0, + "slot": "104", + "type": "t_mapping(t_uint16,t_uint256)" + }, + { + "astId": 39, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "precrime", + "offset": 0, + "slot": "105", + "type": "t_address" + }, + { + "astId": 571, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "106", + "type": "t_array(t_uint256)45_storage" + }, + { + "astId": 614, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "failedMessages", + "offset": 0, + "slot": "151", + "type": "t_mapping(t_uint16,t_mapping(t_bytes_memory_ptr,t_mapping(t_uint64,t_bytes32)))" + }, + { + "astId": 833, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "152", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 1049, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "sharedDecimals", + "offset": 0, + "slot": "201", + "type": "t_uint8" + }, + { + "astId": 1051, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "useCustomAdapterParams", + "offset": 1, + "slot": "201", + "type": "t_bool" + }, + { + "astId": 1059, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "creditedPackets", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_uint16,t_mapping(t_bytes_memory_ptr,t_mapping(t_uint64,t_bool)))" + }, + { + "astId": 2054, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "203", + "type": "t_array(t_uint256)44_storage" + }, + { + "astId": 2328, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "chainIdToFeeBps", + "offset": 0, + "slot": "247", + "type": "t_mapping(t_uint16,t_struct(FeeConfig)2337_storage)" + }, + { + "astId": 2330, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "defaultFeeBp", + "offset": 0, + "slot": "248", + "type": "t_uint16" + }, + { + "astId": 2332, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "feeOwner", + "offset": 2, + "slot": "248", + "type": "t_address" + }, + { + "astId": 2555, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "249", + "type": "t_array(t_uint256)45_storage" + }, + { + "astId": 5996, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "294", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 2314, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "344", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 3705, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_balances", + "offset": 0, + "slot": "394", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 3711, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_allowances", + "offset": 0, + "slot": "395", + "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))" + }, + { + "astId": 3713, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_totalSupply", + "offset": 0, + "slot": "396", + "type": "t_uint256" + }, + { + "astId": 3715, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_name", + "offset": 0, + "slot": "397", + "type": "t_string_storage" + }, + { + "astId": 3717, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_symbol", + "offset": 0, + "slot": "398", + "type": "t_string_storage" + }, + { + "astId": 4297, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "399", + "type": "t_array(t_uint256)45_storage" + }, + { + "astId": 5687, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_hashedName", + "offset": 0, + "slot": "444", + "type": "t_bytes32" + }, + { + "astId": 5690, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_hashedVersion", + "offset": 0, + "slot": "445", + "type": "t_bytes32" + }, + { + "astId": 5692, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_name", + "offset": 0, + "slot": "446", + "type": "t_string_storage" + }, + { + "astId": 5694, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_version", + "offset": 0, + "slot": "447", + "type": "t_string_storage" + }, + { + "astId": 5952, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "448", + "type": "t_array(t_uint256)48_storage" + }, + { + "astId": 4402, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_nonces", + "offset": 0, + "slot": "496", + "type": "t_mapping(t_address,t_struct(Counter)5006_storage)" + }, + { + "astId": 4410, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_PERMIT_TYPEHASH_DEPRECATED_SLOT", + "offset": 0, + "slot": "497", + "type": "t_bytes32" + }, + { + "astId": 4566, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "498", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 2618, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "ld2sdRate", + "offset": 0, + "slot": "547", + "type": "t_uint256" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "encoding": "inplace", + "label": "uint256[44]", + "numberOfBytes": "1408", + "base": "t_uint256" + }, + "t_array(t_uint256)45_storage": { + "encoding": "inplace", + "label": "uint256[45]", + "numberOfBytes": "1440", + "base": "t_uint256" + }, + "t_array(t_uint256)48_storage": { + "encoding": "inplace", + "label": "uint256[48]", + "numberOfBytes": "1536", + "base": "t_uint256" + }, + "t_array(t_uint256)49_storage": { + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568", + "base": "t_uint256" + }, + "t_array(t_uint256)50_storage": { + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600", + "base": "t_uint256" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_bytes_memory_ptr": { + "encoding": "bytes", + "label": "bytes", + "numberOfBytes": "32" + }, + "t_bytes_storage": { + "encoding": "bytes", + "label": "bytes", + "numberOfBytes": "32" + }, + "t_contract(ILayerZeroEndpointUpgradeable)979": { + "encoding": "inplace", + "label": "contract ILayerZeroEndpointUpgradeable", + "numberOfBytes": "20" + }, + "t_mapping(t_address,t_mapping(t_address,t_uint256))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_uint256)" + }, + "t_mapping(t_address,t_struct(Counter)5006_storage)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => struct CountersUpgradeable.Counter)", + "numberOfBytes": "32", + "value": "t_struct(Counter)5006_storage" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_bytes_memory_ptr,t_mapping(t_uint64,t_bool))": { + "encoding": "mapping", + "key": "t_bytes_memory_ptr", + "label": "mapping(bytes => mapping(uint64 => bool))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint64,t_bool)" + }, + "t_mapping(t_bytes_memory_ptr,t_mapping(t_uint64,t_bytes32))": { + "encoding": "mapping", + "key": "t_bytes_memory_ptr", + "label": "mapping(bytes => mapping(uint64 => bytes32))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint64,t_bytes32)" + }, + "t_mapping(t_uint16,t_bytes_storage)": { + "encoding": "mapping", + "key": "t_uint16", + "label": "mapping(uint16 => bytes)", + "numberOfBytes": "32", + "value": "t_bytes_storage" + }, + "t_mapping(t_uint16,t_mapping(t_bytes_memory_ptr,t_mapping(t_uint64,t_bool)))": { + "encoding": "mapping", + "key": "t_uint16", + "label": "mapping(uint16 => mapping(bytes => mapping(uint64 => bool)))", + "numberOfBytes": "32", + "value": "t_mapping(t_bytes_memory_ptr,t_mapping(t_uint64,t_bool))" + }, + "t_mapping(t_uint16,t_mapping(t_bytes_memory_ptr,t_mapping(t_uint64,t_bytes32)))": { + "encoding": "mapping", + "key": "t_uint16", + "label": "mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32)))", + "numberOfBytes": "32", + "value": "t_mapping(t_bytes_memory_ptr,t_mapping(t_uint64,t_bytes32))" + }, + "t_mapping(t_uint16,t_mapping(t_uint16,t_uint256))": { + "encoding": "mapping", + "key": "t_uint16", + "label": "mapping(uint16 => mapping(uint16 => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint16,t_uint256)" + }, + "t_mapping(t_uint16,t_struct(FeeConfig)2337_storage)": { + "encoding": "mapping", + "key": "t_uint16", + "label": "mapping(uint16 => struct FeeUpgradeable.FeeConfig)", + "numberOfBytes": "32", + "value": "t_struct(FeeConfig)2337_storage" + }, + "t_mapping(t_uint16,t_uint256)": { + "encoding": "mapping", + "key": "t_uint16", + "label": "mapping(uint16 => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_uint64,t_bool)": { + "encoding": "mapping", + "key": "t_uint64", + "label": "mapping(uint64 => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_uint64,t_bytes32)": { + "encoding": "mapping", + "key": "t_uint64", + "label": "mapping(uint64 => bytes32)", + "numberOfBytes": "32", + "value": "t_bytes32" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(Counter)5006_storage": { + "encoding": "inplace", + "label": "struct CountersUpgradeable.Counter", + "numberOfBytes": "32", + "members": [ + { + "astId": 5005, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "_value", + "offset": 0, + "slot": "0", + "type": "t_uint256" + } + ] + }, + "t_struct(FeeConfig)2337_storage": { + "encoding": "inplace", + "label": "struct FeeUpgradeable.FeeConfig", + "numberOfBytes": "32", + "members": [ + { + "astId": 2334, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "feeBP", + "offset": 0, + "slot": "0", + "type": "t_uint16" + }, + { + "astId": 2336, + "contract": "contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable", + "label": "enabled", + "offset": 2, + "slot": "0", + "type": "t_bool" + } + ] + }, + "t_uint16": { + "encoding": "inplace", + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint64": { + "encoding": "inplace", + "label": "uint64", + "numberOfBytes": "8" + }, + "t_uint8": { + "encoding": "inplace", + "label": "uint8", + "numberOfBytes": "1" + } + } +} diff --git a/upgrade/OFTWithFeePermitUpgradeable.txt b/upgrade/OFTWithFeePermitUpgradeable.txt new file mode 100644 index 00000000..342ce72b --- /dev/null +++ b/upgrade/OFTWithFeePermitUpgradeable.txt @@ -0,0 +1,40 @@ +| Name | Type | Slot | Offset | Bytes | Contract | +|----------------------------------|-----------------------------------------------------------------|------|--------|-------|-------------------------------------------------------------------------------------------------------------| +| _initialized | uint8 | 0 | 0 | 1 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _initializing | bool | 0 | 1 | 1 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[50] | 1 | 0 | 1600 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _owner | address | 51 | 0 | 20 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[49] | 52 | 0 | 1568 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| lzEndpoint | contract ILayerZeroEndpointUpgradeable | 101 | 0 | 20 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| trustedRemoteLookup | mapping(uint16 => bytes) | 102 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| minDstGasLookup | mapping(uint16 => mapping(uint16 => uint256)) | 103 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| payloadSizeLimitLookup | mapping(uint16 => uint256) | 104 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| precrime | address | 105 | 0 | 20 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[45] | 106 | 0 | 1440 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| failedMessages | mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) | 151 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[49] | 152 | 0 | 1568 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| sharedDecimals | uint8 | 201 | 0 | 1 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| useCustomAdapterParams | bool | 201 | 1 | 1 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| creditedPackets | mapping(uint16 => mapping(bytes => mapping(uint64 => bool))) | 202 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[44] | 203 | 0 | 1408 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| chainIdToFeeBps | mapping(uint16 => struct FeeUpgradeable.FeeConfig) | 247 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| defaultFeeBp | uint16 | 248 | 0 | 2 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| feeOwner | address | 248 | 2 | 20 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[45] | 249 | 0 | 1440 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[50] | 294 | 0 | 1600 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[50] | 344 | 0 | 1600 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _balances | mapping(address => uint256) | 394 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _allowances | mapping(address => mapping(address => uint256)) | 395 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _totalSupply | uint256 | 396 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _name | string | 397 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _symbol | string | 398 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[45] | 399 | 0 | 1440 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _hashedName | bytes32 | 444 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _hashedVersion | bytes32 | 445 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _name | string | 446 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _version | string | 447 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[48] | 448 | 0 | 1536 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _nonces | mapping(address => struct CountersUpgradeable.Counter) | 496 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| _PERMIT_TYPEHASH_DEPRECATED_SLOT | bytes32 | 497 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| __gap | uint256[49] | 498 | 0 | 1568 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | +| ld2sdRate | uint256 | 547 | 0 | 32 | contracts/contracts-upgradable/token/oft/v2/fee/OFTWithFeePermitUpgradeable.sol:OFTWithFeePermitUpgradeable | diff --git a/upgrade/UPGRADE.md b/upgrade/UPGRADE.md index 4f942b30..9dae9e50 100644 --- a/upgrade/UPGRADE.md +++ b/upgrade/UPGRADE.md @@ -14,3 +14,6 @@ This will result in a json file with the storage layout. To output the same information add the ```--pretty``` flag. +## New contract layout + +By using the same forge commands we can generate the storage layout files to compare the new implementaion layout with the current one. \ No newline at end of file