Skip to content

Commit

Permalink
Remove cleanup function (#126)
Browse files Browse the repository at this point in the history
close #124
  • Loading branch information
sirnicolaz authored Sep 20, 2023
1 parent 6ed9759 commit 4e4c782
Show file tree
Hide file tree
Showing 2 changed files with 280 additions and 6 deletions.
280 changes: 280 additions & 0 deletions .openzeppelin/unknown-9001.json
Original file line number Diff line number Diff line change
Expand Up @@ -3666,6 +3666,286 @@
}
}
}
},
"246342d7309e3de8809de3d5caa182c103f09298ba3c3d554f7b1920d947b1df": {
"address": "0x0Dd55104F3462f54229672B2027bf74efd732fEB",
"txHash": "0xe961e9a203ed8cd95f96578be128ef5000a6e16dc31cdc233f0b5be21844a766",
"layout": {
"solcVersion": "0.8.19",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_roles",
"offset": 0,
"slot": "51",
"type": "t_contract(DAORoles)7607",
"contract": "HasRole",
"src": "contracts/extensions/HasRole.sol:11"
},
{
"label": "_balances",
"offset": 0,
"slot": "52",
"type": "t_mapping(t_address,t_uint256)",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:37"
},
{
"label": "_allowances",
"offset": 0,
"slot": "53",
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:39"
},
{
"label": "_totalSupply",
"offset": 0,
"slot": "54",
"type": "t_uint256",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:41"
},
{
"label": "_name",
"offset": 0,
"slot": "55",
"type": "t_string_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:43"
},
{
"label": "_symbol",
"offset": 0,
"slot": "56",
"type": "t_string_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:44"
},
{
"label": "__gap",
"offset": 0,
"slot": "57",
"type": "t_array(t_uint256)45_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:400"
},
{
"label": "_voting",
"offset": 0,
"slot": "102",
"type": "t_contract(IVoting)7591",
"contract": "GovernanceTokenBase",
"src": "contracts/GovernanceToken/GovernanceTokenBase.sol:15"
},
{
"label": "_redemptionController",
"offset": 0,
"slot": "103",
"type": "t_contract(IRedemptionController)7397",
"contract": "GovernanceTokenBase",
"src": "contracts/GovernanceToken/GovernanceTokenBase.sol:16"
},
{
"label": "tokenExternal",
"offset": 0,
"slot": "104",
"type": "t_contract(INeokingdomToken)7364",
"contract": "GovernanceTokenBase",
"src": "contracts/GovernanceToken/GovernanceTokenBase.sol:17"
},
{
"label": "_vestingBalance",
"offset": 0,
"slot": "105",
"type": "t_mapping(t_address,t_uint256)",
"contract": "GovernanceTokenBase",
"src": "contracts/GovernanceToken/GovernanceTokenBase.sol:28"
},
{
"label": "_currentSnapshotId",
"offset": 0,
"slot": "106",
"type": "t_uint256",
"contract": "Snapshottable",
"src": "contracts/extensions/Snapshottable.sol:11"
},
{
"label": "_accountBalanceSnapshots",
"offset": 0,
"slot": "107",
"type": "t_mapping(t_address,t_struct(Snapshots)5954_storage)",
"contract": "GovernanceTokenSnapshot",
"src": "contracts/GovernanceToken/GovernanceTokenSnapshot.sol:21"
},
{
"label": "_totalSupplySnapshots",
"offset": 0,
"slot": "108",
"type": "t_struct(Snapshots)5954_storage",
"contract": "GovernanceTokenSnapshot",
"src": "contracts/GovernanceToken/GovernanceTokenSnapshot.sol:22"
},
{
"label": "_shareholderRegistry",
"offset": 0,
"slot": "110",
"type": "t_contract(IShareholderRegistry)7494",
"contract": "GovernanceToken",
"src": "contracts/GovernanceToken/GovernanceToken.sol:20"
},
{
"label": "depositedTokens",
"offset": 0,
"slot": "111",
"type": "t_mapping(t_address,t_array(t_struct(DepositedTokens)5139_storage)dyn_storage)",
"contract": "GovernanceToken",
"src": "contracts/GovernanceToken/GovernanceToken.sol:33"
},
{
"label": "settlementPeriod",
"offset": 0,
"slot": "112",
"type": "t_uint256",
"contract": "GovernanceToken",
"src": "contracts/GovernanceToken/GovernanceToken.sol:35"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_struct(DepositedTokens)5139_storage)dyn_storage": {
"label": "struct GovernanceToken.DepositedTokens[]",
"numberOfBytes": "32"
},
"t_array(t_uint256)45_storage": {
"label": "uint256[45]",
"numberOfBytes": "1440"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_array(t_uint256)dyn_storage": {
"label": "uint256[]",
"numberOfBytes": "32"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_contract(DAORoles)7607": {
"label": "contract DAORoles",
"numberOfBytes": "20"
},
"t_contract(INeokingdomToken)7364": {
"label": "contract INeokingdomToken",
"numberOfBytes": "20"
},
"t_contract(IRedemptionController)7397": {
"label": "contract IRedemptionController",
"numberOfBytes": "20"
},
"t_contract(IShareholderRegistry)7494": {
"label": "contract IShareholderRegistry",
"numberOfBytes": "20"
},
"t_contract(IVoting)7591": {
"label": "contract IVoting",
"numberOfBytes": "20"
},
"t_mapping(t_address,t_array(t_struct(DepositedTokens)5139_storage)dyn_storage)": {
"label": "mapping(address => struct GovernanceToken.DepositedTokens[])",
"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(Snapshots)5954_storage)": {
"label": "mapping(address => struct GovernanceTokenSnapshot.Snapshots)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_struct(DepositedTokens)5139_storage": {
"label": "struct GovernanceToken.DepositedTokens",
"members": [
{
"label": "amount",
"type": "t_uint256",
"offset": 0,
"slot": "0"
},
{
"label": "settlementTimestamp",
"type": "t_uint256",
"offset": 0,
"slot": "1"
}
],
"numberOfBytes": "64"
},
"t_struct(Snapshots)5954_storage": {
"label": "struct GovernanceTokenSnapshot.Snapshots",
"members": [
{
"label": "ids",
"type": "t_array(t_uint256)dyn_storage",
"offset": 0,
"slot": "0"
},
{
"label": "values",
"type": "t_array(t_uint256)dyn_storage",
"offset": 0,
"slot": "1"
}
],
"numberOfBytes": "64"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
6 changes: 0 additions & 6 deletions contracts/GovernanceToken/GovernanceToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,4 @@ contract GovernanceToken is Initializable, HasRole, GovernanceTokenSnapshot {
}
}
}

function _burnExtra() external onlyRole(Roles.OPERATOR_ROLE) {
// From https://escan.live/tx/0x4973105a8215b74f356b503b1dadfaa7044008c4336ac506d91d1cbbeb56410e
uint256 extraTokens = 7818999911120000000000;
tokenExternal.burn(extraTokens);
}
}

0 comments on commit 4e4c782

Please sign in to comment.