From e9179a2e3da6de646cecc67bc4084e0d5c8b169c Mon Sep 17 00:00:00 2001 From: scolear Date: Wed, 14 Aug 2024 12:05:46 +0300 Subject: [PATCH 1/2] overwrite symbol() function --- contracts/DLCBTC.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contracts/DLCBTC.sol b/contracts/DLCBTC.sol index 4f2904a..3a5645a 100644 --- a/contracts/DLCBTC.sol +++ b/contracts/DLCBTC.sol @@ -46,7 +46,7 @@ contract DLCBTC is } function initialize() public initializer { - __ERC20_init("dlcBTC", "DLCBTC"); + __ERC20_init("dlcBTC", "dlcBTC"); __Ownable_init(); __ERC20Permit_init("dlcBTC"); } @@ -67,6 +67,10 @@ contract DLCBTC is return 8; } + function symbol() public view virtual override returns (string memory) { + return "dlcBTC"; + } + function mint(address to, uint256 amount) external onlyOwnerOrCCIPMinter { _mint(to, amount); } From 01b1c0cc4fb744fe0c96b9e1c1c553fb8341afdd Mon Sep 17 00:00:00 2001 From: scolear Date: Mon, 19 Aug 2024 06:39:22 +0200 Subject: [PATCH 2/2] update dlcBTC on ArbSep devnet --- .openzeppelin/unknown-421614.json | 276 ++++++++++++++++++++++++- deploymentFiles/arbsepolia/DLCBTC.json | 4 +- 2 files changed, 274 insertions(+), 6 deletions(-) diff --git a/.openzeppelin/unknown-421614.json b/.openzeppelin/unknown-421614.json index ac185f6..662e612 100644 --- a/.openzeppelin/unknown-421614.json +++ b/.openzeppelin/unknown-421614.json @@ -4583,7 +4583,7 @@ "slot": "1", "type": "t_array(t_uint256)50_storage", "contract": "ContextUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36" }, { "label": "_balances", @@ -4679,7 +4679,7 @@ "label": "_nonces", "offset": 0, "slot": "153", - "type": "t_mapping(t_address,t_struct(Counter)3004_storage)", + "type": "t_mapping(t_address,t_struct(Counter)2989_storage)", "contract": "ERC20PermitUpgradeable", "src": "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUpgradeable.sol:28" }, @@ -4786,7 +4786,7 @@ "label": "mapping(address => mapping(address => uint256))", "numberOfBytes": "32" }, - "t_mapping(t_address,t_struct(Counter)3004_storage)": { + "t_mapping(t_address,t_struct(Counter)2989_storage)": { "label": "mapping(address => struct CountersUpgradeable.Counter)", "numberOfBytes": "32" }, @@ -4798,7 +4798,7 @@ "label": "string", "numberOfBytes": "32" }, - "t_struct(Counter)3004_storage": { + "t_struct(Counter)2989_storage": { "label": "struct CountersUpgradeable.Counter", "members": [ { @@ -9533,6 +9533,274 @@ }, "namespaces": {} } + }, + "af1ff25f8be882c7396500b0784baf5fce21afdb20b1a684e781bd3d7acad58e": { + "address": "0x8beBd290C882dF1e8ec5Fe0ca72FD33a747B7116", + "txHash": "0xd9b9d8930e5ce1559eb66422225d8eb4a1545258115ffbddc8bcd679ada09a76", + "layout": { + "solcVersion": "0.8.18", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36" + }, + { + "label": "_balances", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_address,t_uint256)", + "contract": "ERC20Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:40" + }, + { + "label": "_allowances", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))", + "contract": "ERC20Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:42" + }, + { + "label": "_totalSupply", + "offset": 0, + "slot": "53", + "type": "t_uint256", + "contract": "ERC20Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:44" + }, + { + "label": "_name", + "offset": 0, + "slot": "54", + "type": "t_string_storage", + "contract": "ERC20Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:46" + }, + { + "label": "_symbol", + "offset": 0, + "slot": "55", + "type": "t_string_storage", + "contract": "ERC20Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:47" + }, + { + "label": "__gap", + "offset": 0, + "slot": "56", + "type": "t_array(t_uint256)45_storage", + "contract": "ERC20Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:376" + }, + { + "label": "_hashedName", + "offset": 0, + "slot": "101", + "type": "t_bytes32", + "contract": "EIP712Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:40", + "renamedFrom": "_HASHED_NAME" + }, + { + "label": "_hashedVersion", + "offset": 0, + "slot": "102", + "type": "t_bytes32", + "contract": "EIP712Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:42", + "renamedFrom": "_HASHED_VERSION" + }, + { + "label": "_name", + "offset": 0, + "slot": "103", + "type": "t_string_storage", + "contract": "EIP712Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:44" + }, + { + "label": "_version", + "offset": 0, + "slot": "104", + "type": "t_string_storage", + "contract": "EIP712Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:45" + }, + { + "label": "__gap", + "offset": 0, + "slot": "105", + "type": "t_array(t_uint256)48_storage", + "contract": "EIP712Upgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol:204" + }, + { + "label": "_nonces", + "offset": 0, + "slot": "153", + "type": "t_mapping(t_address,t_struct(Counter)2989_storage)", + "contract": "ERC20PermitUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUpgradeable.sol:28" + }, + { + "label": "_PERMIT_TYPEHASH_DEPRECATED_SLOT", + "offset": 0, + "slot": "154", + "type": "t_bytes32", + "contract": "ERC20PermitUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUpgradeable.sol:40", + "renamedFrom": "_PERMIT_TYPEHASH" + }, + { + "label": "__gap", + "offset": 0, + "slot": "155", + "type": "t_array(t_uint256)49_storage", + "contract": "ERC20PermitUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUpgradeable.sol:108" + }, + { + "label": "_owner", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "205", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "blacklisted", + "offset": 0, + "slot": "254", + "type": "t_mapping(t_address,t_bool)", + "contract": "DLCBTC", + "src": "contracts/DLCBTC.sol:29" + }, + { + "label": "_minter", + "offset": 0, + "slot": "255", + "type": "t_address", + "contract": "DLCBTC", + "src": "contracts/DLCBTC.sol:30" + }, + { + "label": "_burner", + "offset": 0, + "slot": "256", + "type": "t_address", + "contract": "DLCBTC", + "src": "contracts/DLCBTC.sol:31" + }, + { + "label": "__gap", + "offset": 0, + "slot": "257", + "type": "t_array(t_uint256)48_storage", + "contract": "DLCBTC", + "src": "contracts/DLCBTC.sol:32" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)45_storage": { + "label": "uint256[45]", + "numberOfBytes": "1440" + }, + "t_array(t_uint256)48_storage": { + "label": "uint256[48]", + "numberOfBytes": "1536" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_mapping(t_address,t_uint256))": { + "label": "mapping(address => mapping(address => uint256))", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_struct(Counter)2989_storage)": { + "label": "mapping(address => struct CountersUpgradeable.Counter)", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_string_storage": { + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(Counter)2989_storage": { + "label": "struct CountersUpgradeable.Counter", + "members": [ + { + "label": "_value", + "type": "t_uint256", + "offset": 0, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/deploymentFiles/arbsepolia/DLCBTC.json b/deploymentFiles/arbsepolia/DLCBTC.json index ca5f06f..494bfec 100644 --- a/deploymentFiles/arbsepolia/DLCBTC.json +++ b/deploymentFiles/arbsepolia/DLCBTC.json @@ -1,7 +1,7 @@ { "network": "arbsepolia", - "updatedAt": "2024-06-17T13:33:28.663Z", - "gitSHA": "b0905e1", + "updatedAt": "2024-08-19T04:33:15.598Z", + "gitSHA": "e9179a2", "contract": { "name": "DLCBTC", "address": "0xFfb72b5f195F18741101A732e7AfAE72b61D48a4",