From 6cb78753d9baccda8065aec5c451f1e909d648c6 Mon Sep 17 00:00:00 2001 From: ququzone Date: Fri, 25 Oct 2024 11:05:06 +0800 Subject: [PATCH] deploy testnet --- .openzeppelin/unknown-4690.json | 2450 +------------------------ script/12_deploy_fixed_reward_pool.ts | 11 +- 2 files changed, 38 insertions(+), 2423 deletions(-) diff --git a/.openzeppelin/unknown-4690.json b/.openzeppelin/unknown-4690.json index e089ba0..28bd3be 100644 --- a/.openzeppelin/unknown-4690.json +++ b/.openzeppelin/unknown-4690.json @@ -2,2417 +2,15 @@ "manifestVersion": "3.2", "proxies": [ { - "address": "0x313A05E0CE2D559793350d6afa7b7e1d5D2Ec21e", + "address": "0x9eBFf624b4ABA2d5AD72e8568FbA963B83A5eC2A", + "txHash": "0x463aec6df4d20a0ff5107ceed2811e11c3660fbbd23dadc1b4257cef3f1c5621", "kind": "transparent" - }, - { - "address": "0x5187C471c4B948D9d9e2F82F03C1eC4Fa5749474", - "txHash": "0xb6ab65221992312128350ffc5eeacba94dd718b6d63042f33ec5b32cbadd3143", - "kind": "transparent" - }, - { - "address": "0x915A859f5A9644955394d915ef3a28f2f008F188", - "txHash": "0x8c0085266b066de96a3c1a4db8f6586f76f0afdc589ddfb35430623886f69d33", - "kind": "transparent" - }, - { - "address": "0x6958142D4509eD76cE37B1190030aa1d2B94c075", - "txHash": "0xa90ad2cdaa645bdb849ff403a9d46242ecb426615dccfc47554ddfda84597dea", - "kind": "transparent" - }, - { - "address": "0xf23FFA0B676299456c0B73d889CC34Fdec1f0764", - "txHash": "0x3dd4d25f89b743f7c8ec7bc2edf5dfbabe8970e9218302c8518b3d24e8c60241", - "kind": "transparent" - }, - { - "address": "0x6295016e3aCc7C7e8A00d279114045aa2bfB8877", - "txHash": "0x2f009e1e1784fb6f9085bfea4b6f269d456aa8fdcb2e1b526b6df1916c3dd1e2", - "kind": "transparent" - } - ], - "impls": { - "a6065eab46b4e36626ce0d10c8868233bfc455ffd38a24f08ec70f013e4139d9": { - "address": "0xc96EEA2c615a43E3BF62f649e16D359cF2fAA484", - "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:63", - "retypedFrom": "bool" - }, - { - "label": "_initializing", - "offset": 1, - "slot": "0", - "type": "t_bool", - "contract": "Initializable", - "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" - }, - { - "label": "_status", - "offset": 0, - "slot": "1", - "type": "t_uint256", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38" - }, - { - "label": "__gap", - "offset": 0, - "slot": "2", - "type": "t_array(t_uint256)49_storage", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:88" - }, - { - "label": "token", - "offset": 0, - "slot": "51", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:40" - }, - { - "label": "voter", - "offset": 0, - "slot": "52", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:42" - }, - { - "label": "team", - "offset": 0, - "slot": "53", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:44" - }, - { - "label": "admin", - "offset": 0, - "slot": "54", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:46" - }, - { - "label": "artProxy", - "offset": 0, - "slot": "55", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:48" - }, - { - "label": "_pendingTokens", - "offset": 0, - "slot": "56", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:50" - }, - { - "label": "_pointHistory", - "offset": 0, - "slot": "57", - "type": "t_mapping(t_uint256,t_struct(GlobalPoint)6790_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:53" - }, - { - "label": "supportedInterfaces", - "offset": 0, - "slot": "58", - "type": "t_mapping(t_bytes4,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:56" - }, - { - "label": "tokenId", - "offset": 0, - "slot": "59", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:74" - }, - { - "label": "idToOwner", - "offset": 0, - "slot": "60", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:146" - }, - { - "label": "ownerToNFTokenCount", - "offset": 0, - "slot": "61", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:149" - }, - { - "label": "idToApprovals", - "offset": 0, - "slot": "62", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:170" - }, - { - "label": "ownerToOperators", - "offset": 0, - "slot": "63", - "type": "t_mapping(t_address,t_mapping(t_address,t_bool))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:173" - }, - { - "label": "ownershipChange", - "offset": 0, - "slot": "64", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:175" - }, - { - "label": "ownerToNFTokenIdList", - "offset": 0, - "slot": "65", - "type": "t_mapping(t_address,t_mapping(t_uint256,t_uint256))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:308" - }, - { - "label": "tokenToOwnerIndex", - "offset": 0, - "slot": "66", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:311" - }, - { - "label": "epoch", - "offset": 0, - "slot": "67", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:421" - }, - { - "label": "supply", - "offset": 0, - "slot": "68", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:423" - }, - { - "label": "nativeSnapshotTime", - "offset": 0, - "slot": "69", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:426" - }, - { - "label": "pendingNativeSnapshotTime", - "offset": 0, - "slot": "70", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:428" - }, - { - "label": "_nativeRoots", - "offset": 0, - "slot": "71", - "type": "t_array(t_bytes32)dyn_storage", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:430" - }, - { - "label": "_pendingNativeRoots", - "offset": 0, - "slot": "72", - "type": "t_array(t_bytes32)dyn_storage", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:431" - }, - { - "label": "_roots", - "offset": 0, - "slot": "73", - "type": "t_mapping(t_bytes32,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:432" - }, - { - "label": "_locked", - "offset": 0, - "slot": "74", - "type": "t_mapping(t_uint256,t_struct(LockedBalance)6768_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:433" - }, - { - "label": "_lockedToken", - "offset": 0, - "slot": "75", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:434" - }, - { - "label": "_nativeTokenId", - "offset": 0, - "slot": "76", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:435" - }, - { - "label": "_tokenIdNative", - "offset": 0, - "slot": "77", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:436" - }, - { - "label": "_userPointHistory", - "offset": 0, - "slot": "78", - "type": "t_mapping(t_uint256,t_array(t_struct(UserPoint)6779_storage)1000000000_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:437" - }, - { - "label": "userPointEpoch", - "offset": 0, - "slot": "79", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:438" - }, - { - "label": "slopeChanges", - "offset": 0, - "slot": "80", - "type": "t_mapping(t_uint256,t_int128)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:440" - }, - { - "label": "canSplit", - "offset": 0, - "slot": "81", - "type": "t_mapping(t_address,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:442" - }, - { - "label": "permanentLockBalance", - "offset": 0, - "slot": "82", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:444" - }, - { - "label": "voted", - "offset": 0, - "slot": "83", - "type": "t_mapping(t_uint256,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1164" - }, - { - "label": "_delegates", - "offset": 0, - "slot": "84", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1191" - }, - { - "label": "_checkpoints", - "offset": 0, - "slot": "85", - "type": "t_mapping(t_uint256,t_mapping(t_uint48,t_struct(Checkpoint)6799_storage))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1194" - }, - { - "label": "numCheckpoints", - "offset": 0, - "slot": "86", - "type": "t_mapping(t_uint256,t_uint48)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1197" - }, - { - "label": "nonces", - "offset": 0, - "slot": "87", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1200" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_array(t_struct(UserPoint)6779_storage)1000000000_storage": { - "label": "struct IVotingEscrow.UserPoint[1000000000]", - "numberOfBytes": "128000000000" - }, - "t_array(t_uint256)49_storage": { - "label": "uint256[49]", - "numberOfBytes": "1568" - }, - "t_bool": { - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes4": { - "label": "bytes4", - "numberOfBytes": "4" - }, - "t_int128": { - "label": "int128", - "numberOfBytes": "16" - }, - "t_mapping(t_address,t_bool)": { - "label": "mapping(address => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_mapping(t_address,t_bool))": { - "label": "mapping(address => mapping(address => bool))", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_mapping(t_uint256,t_uint256))": { - "label": "mapping(address => mapping(uint256 => uint256))", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_uint256)": { - "label": "mapping(address => uint256)", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bool)": { - "label": "mapping(bytes32 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes4,t_bool)": { - "label": "mapping(bytes4 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_address)": { - "label": "mapping(uint256 => address)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_array(t_struct(UserPoint)6779_storage)1000000000_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.UserPoint[1000000000])", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_bool)": { - "label": "mapping(uint256 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_int128)": { - "label": "mapping(uint256 => int128)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_mapping(t_uint48,t_struct(Checkpoint)6799_storage))": { - "label": "mapping(uint256 => mapping(uint48 => struct IVotingEscrow.Checkpoint))", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_struct(GlobalPoint)6790_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.GlobalPoint)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_struct(LockedBalance)6768_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.LockedBalance)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint256)": { - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint48)": { - "label": "mapping(uint256 => uint48)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint48,t_struct(Checkpoint)6799_storage)": { - "label": "mapping(uint48 => struct IVotingEscrow.Checkpoint)", - "numberOfBytes": "32" - }, - "t_struct(Checkpoint)6799_storage": { - "label": "struct IVotingEscrow.Checkpoint", - "members": [ - { - "label": "fromTimestamp", - "type": "t_uint256", - "offset": 0, - "slot": "0" - }, - { - "label": "owner", - "type": "t_address", - "offset": 0, - "slot": "1" - }, - { - "label": "delegatedBalance", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "delegatee", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_struct(GlobalPoint)6790_storage": { - "label": "struct IVotingEscrow.GlobalPoint", - "members": [ - { - "label": "bias", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "slope", - "type": "t_int128", - "offset": 16, - "slot": "0" - }, - { - "label": "ts", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "blk", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "permanentLockBalance", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_struct(LockedBalance)6768_storage": { - "label": "struct IVotingEscrow.LockedBalance", - "members": [ - { - "label": "amount", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "end", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "isPermanent", - "type": "t_bool", - "offset": 0, - "slot": "2" - } - ], - "numberOfBytes": "96" - }, - "t_struct(UserPoint)6779_storage": { - "label": "struct IVotingEscrow.UserPoint", - "members": [ - { - "label": "bias", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "slope", - "type": "t_int128", - "offset": 16, - "slot": "0" - }, - { - "label": "ts", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "blk", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "permanent", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint48": { - "label": "uint48", - "numberOfBytes": "6" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - } - }, - "namespaces": {} - } - }, - "8b726192facab7b03a2d7a3638f016c5d958f18d329b5bc343734d85748fd988": { - "address": "0xc96EEA2c615a43E3BF62f649e16D359cF2fAA484", - "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:63", - "retypedFrom": "bool" - }, - { - "label": "_initializing", - "offset": 1, - "slot": "0", - "type": "t_bool", - "contract": "Initializable", - "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" - }, - { - "label": "_status", - "offset": 0, - "slot": "1", - "type": "t_uint256", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38" - }, - { - "label": "__gap", - "offset": 0, - "slot": "2", - "type": "t_array(t_uint256)49_storage", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:88" - }, - { - "label": "token", - "offset": 0, - "slot": "51", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:40" - }, - { - "label": "voter", - "offset": 0, - "slot": "52", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:42" - }, - { - "label": "team", - "offset": 0, - "slot": "53", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:44" - }, - { - "label": "admin", - "offset": 0, - "slot": "54", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:46" - }, - { - "label": "artProxy", - "offset": 0, - "slot": "55", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:48" - }, - { - "label": "_pendingTokens", - "offset": 0, - "slot": "56", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:50" - }, - { - "label": "_pointHistory", - "offset": 0, - "slot": "57", - "type": "t_mapping(t_uint256,t_struct(GlobalPoint)6811_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:53" - }, - { - "label": "supportedInterfaces", - "offset": 0, - "slot": "58", - "type": "t_mapping(t_bytes4,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:56" - }, - { - "label": "tokenId", - "offset": 0, - "slot": "59", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:74" - }, - { - "label": "idToOwner", - "offset": 0, - "slot": "60", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:146" - }, - { - "label": "ownerToNFTokenCount", - "offset": 0, - "slot": "61", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:149" - }, - { - "label": "idToApprovals", - "offset": 0, - "slot": "62", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:170" - }, - { - "label": "ownerToOperators", - "offset": 0, - "slot": "63", - "type": "t_mapping(t_address,t_mapping(t_address,t_bool))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:173" - }, - { - "label": "ownershipChange", - "offset": 0, - "slot": "64", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:175" - }, - { - "label": "ownerToNFTokenIdList", - "offset": 0, - "slot": "65", - "type": "t_mapping(t_address,t_mapping(t_uint256,t_uint256))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:308" - }, - { - "label": "tokenToOwnerIndex", - "offset": 0, - "slot": "66", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:311" - }, - { - "label": "epoch", - "offset": 0, - "slot": "67", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:421" - }, - { - "label": "supply", - "offset": 0, - "slot": "68", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:423" - }, - { - "label": "nativeSnapshotTime", - "offset": 0, - "slot": "69", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:426" - }, - { - "label": "pendingNativeSnapshotTime", - "offset": 0, - "slot": "70", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:428" - }, - { - "label": "_nativeRoots", - "offset": 0, - "slot": "71", - "type": "t_array(t_bytes32)dyn_storage", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:430" - }, - { - "label": "_pendingNativeRoots", - "offset": 0, - "slot": "72", - "type": "t_array(t_bytes32)dyn_storage", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:431" - }, - { - "label": "_roots", - "offset": 0, - "slot": "73", - "type": "t_mapping(t_bytes32,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:432" - }, - { - "label": "_locked", - "offset": 0, - "slot": "74", - "type": "t_mapping(t_uint256,t_struct(LockedBalance)6789_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:433" - }, - { - "label": "_lockedToken", - "offset": 0, - "slot": "75", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:434" - }, - { - "label": "_nativeTokenId", - "offset": 0, - "slot": "76", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:435" - }, - { - "label": "_tokenIdNative", - "offset": 0, - "slot": "77", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:436" - }, - { - "label": "_userPointHistory", - "offset": 0, - "slot": "78", - "type": "t_mapping(t_uint256,t_array(t_struct(UserPoint)6800_storage)1000000000_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:437" - }, - { - "label": "userPointEpoch", - "offset": 0, - "slot": "79", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:438" - }, - { - "label": "slopeChanges", - "offset": 0, - "slot": "80", - "type": "t_mapping(t_uint256,t_int128)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:440" - }, - { - "label": "canSplit", - "offset": 0, - "slot": "81", - "type": "t_mapping(t_address,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:442" - }, - { - "label": "permanentLockBalance", - "offset": 0, - "slot": "82", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:444" - }, - { - "label": "voted", - "offset": 0, - "slot": "83", - "type": "t_mapping(t_uint256,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1169" - }, - { - "label": "_delegates", - "offset": 0, - "slot": "84", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1196" - }, - { - "label": "_checkpoints", - "offset": 0, - "slot": "85", - "type": "t_mapping(t_uint256,t_mapping(t_uint48,t_struct(Checkpoint)6820_storage))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1199" - }, - { - "label": "numCheckpoints", - "offset": 0, - "slot": "86", - "type": "t_mapping(t_uint256,t_uint48)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1202" - }, - { - "label": "nonces", - "offset": 0, - "slot": "87", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1205" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_array(t_struct(UserPoint)6800_storage)1000000000_storage": { - "label": "struct IVotingEscrow.UserPoint[1000000000]", - "numberOfBytes": "128000000000" - }, - "t_array(t_uint256)49_storage": { - "label": "uint256[49]", - "numberOfBytes": "1568" - }, - "t_bool": { - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes4": { - "label": "bytes4", - "numberOfBytes": "4" - }, - "t_int128": { - "label": "int128", - "numberOfBytes": "16" - }, - "t_mapping(t_address,t_bool)": { - "label": "mapping(address => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_mapping(t_address,t_bool))": { - "label": "mapping(address => mapping(address => bool))", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_mapping(t_uint256,t_uint256))": { - "label": "mapping(address => mapping(uint256 => uint256))", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_uint256)": { - "label": "mapping(address => uint256)", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bool)": { - "label": "mapping(bytes32 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes4,t_bool)": { - "label": "mapping(bytes4 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_address)": { - "label": "mapping(uint256 => address)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_array(t_struct(UserPoint)6800_storage)1000000000_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.UserPoint[1000000000])", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_bool)": { - "label": "mapping(uint256 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_int128)": { - "label": "mapping(uint256 => int128)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_mapping(t_uint48,t_struct(Checkpoint)6820_storage))": { - "label": "mapping(uint256 => mapping(uint48 => struct IVotingEscrow.Checkpoint))", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_struct(GlobalPoint)6811_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.GlobalPoint)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_struct(LockedBalance)6789_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.LockedBalance)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint256)": { - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint48)": { - "label": "mapping(uint256 => uint48)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint48,t_struct(Checkpoint)6820_storage)": { - "label": "mapping(uint48 => struct IVotingEscrow.Checkpoint)", - "numberOfBytes": "32" - }, - "t_struct(Checkpoint)6820_storage": { - "label": "struct IVotingEscrow.Checkpoint", - "members": [ - { - "label": "fromTimestamp", - "type": "t_uint256", - "offset": 0, - "slot": "0" - }, - { - "label": "owner", - "type": "t_address", - "offset": 0, - "slot": "1" - }, - { - "label": "delegatedBalance", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "delegatee", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_struct(GlobalPoint)6811_storage": { - "label": "struct IVotingEscrow.GlobalPoint", - "members": [ - { - "label": "bias", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "slope", - "type": "t_int128", - "offset": 16, - "slot": "0" - }, - { - "label": "ts", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "blk", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "permanentLockBalance", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_struct(LockedBalance)6789_storage": { - "label": "struct IVotingEscrow.LockedBalance", - "members": [ - { - "label": "amount", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "end", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "isPermanent", - "type": "t_bool", - "offset": 0, - "slot": "2" - } - ], - "numberOfBytes": "96" - }, - "t_struct(UserPoint)6800_storage": { - "label": "struct IVotingEscrow.UserPoint", - "members": [ - { - "label": "bias", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "slope", - "type": "t_int128", - "offset": 16, - "slot": "0" - }, - { - "label": "ts", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "blk", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "permanent", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint48": { - "label": "uint48", - "numberOfBytes": "6" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - } - }, - "namespaces": {} - } - }, - "ccb377845cdc1c5dd522e642b5d207fbabaf0c0cecb0f4fdb374558485e739df": { - "address": "0xc96EEA2c615a43E3BF62f649e16D359cF2fAA484", - "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:63", - "retypedFrom": "bool" - }, - { - "label": "_initializing", - "offset": 1, - "slot": "0", - "type": "t_bool", - "contract": "Initializable", - "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" - }, - { - "label": "_status", - "offset": 0, - "slot": "1", - "type": "t_uint256", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38" - }, - { - "label": "__gap", - "offset": 0, - "slot": "2", - "type": "t_array(t_uint256)49_storage", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:88" - }, - { - "label": "token", - "offset": 0, - "slot": "51", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:40" - }, - { - "label": "voter", - "offset": 0, - "slot": "52", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:42" - }, - { - "label": "team", - "offset": 0, - "slot": "53", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:44" - }, - { - "label": "admin", - "offset": 0, - "slot": "54", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:46" - }, - { - "label": "artProxy", - "offset": 0, - "slot": "55", - "type": "t_address", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:48" - }, - { - "label": "_pendingTokens", - "offset": 0, - "slot": "56", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:50" - }, - { - "label": "_pointHistory", - "offset": 0, - "slot": "57", - "type": "t_mapping(t_uint256,t_struct(GlobalPoint)6808_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:53" - }, - { - "label": "supportedInterfaces", - "offset": 0, - "slot": "58", - "type": "t_mapping(t_bytes4,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:56" - }, - { - "label": "tokenId", - "offset": 0, - "slot": "59", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:74" - }, - { - "label": "idToOwner", - "offset": 0, - "slot": "60", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:146" - }, - { - "label": "ownerToNFTokenCount", - "offset": 0, - "slot": "61", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:149" - }, - { - "label": "idToApprovals", - "offset": 0, - "slot": "62", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:170" - }, - { - "label": "ownerToOperators", - "offset": 0, - "slot": "63", - "type": "t_mapping(t_address,t_mapping(t_address,t_bool))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:173" - }, - { - "label": "ownershipChange", - "offset": 0, - "slot": "64", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:175" - }, - { - "label": "ownerToNFTokenIdList", - "offset": 0, - "slot": "65", - "type": "t_mapping(t_address,t_mapping(t_uint256,t_uint256))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:308" - }, - { - "label": "tokenToOwnerIndex", - "offset": 0, - "slot": "66", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:311" - }, - { - "label": "epoch", - "offset": 0, - "slot": "67", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:421" - }, - { - "label": "supply", - "offset": 0, - "slot": "68", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:423" - }, - { - "label": "nativeSnapshotTime", - "offset": 0, - "slot": "69", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:426" - }, - { - "label": "pendingNativeSnapshotTime", - "offset": 0, - "slot": "70", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:428" - }, - { - "label": "_nativeRoots", - "offset": 0, - "slot": "71", - "type": "t_array(t_bytes32)dyn_storage", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:430" - }, - { - "label": "_pendingNativeRoots", - "offset": 0, - "slot": "72", - "type": "t_array(t_bytes32)dyn_storage", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:431" - }, - { - "label": "_roots", - "offset": 0, - "slot": "73", - "type": "t_mapping(t_bytes32,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:432" - }, - { - "label": "_locked", - "offset": 0, - "slot": "74", - "type": "t_mapping(t_uint256,t_struct(LockedBalance)6786_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:433" - }, - { - "label": "_lockedToken", - "offset": 0, - "slot": "75", - "type": "t_mapping(t_uint256,t_address)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:434" - }, - { - "label": "_nativeTokenId", - "offset": 0, - "slot": "76", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:435" - }, - { - "label": "_tokenIdNative", - "offset": 0, - "slot": "77", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:436" - }, - { - "label": "_userPointHistory", - "offset": 0, - "slot": "78", - "type": "t_mapping(t_uint256,t_array(t_struct(UserPoint)6797_storage)1000000000_storage)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:437" - }, - { - "label": "userPointEpoch", - "offset": 0, - "slot": "79", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:438" - }, - { - "label": "slopeChanges", - "offset": 0, - "slot": "80", - "type": "t_mapping(t_uint256,t_int128)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:440" - }, - { - "label": "canSplit", - "offset": 0, - "slot": "81", - "type": "t_mapping(t_address,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:442" - }, - { - "label": "permanentLockBalance", - "offset": 0, - "slot": "82", - "type": "t_uint256", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:444" - }, - { - "label": "voted", - "offset": 0, - "slot": "83", - "type": "t_mapping(t_uint256,t_bool)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1169" - }, - { - "label": "_delegates", - "offset": 0, - "slot": "84", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1196" - }, - { - "label": "_checkpoints", - "offset": 0, - "slot": "85", - "type": "t_mapping(t_uint256,t_mapping(t_uint48,t_struct(Checkpoint)6817_storage))", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1199" - }, - { - "label": "numCheckpoints", - "offset": 0, - "slot": "86", - "type": "t_mapping(t_uint256,t_uint48)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1202" - }, - { - "label": "nonces", - "offset": 0, - "slot": "87", - "type": "t_mapping(t_address,t_uint256)", - "contract": "VotingEscrow", - "src": "contracts/VotingEscrow.sol:1205" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_array(t_struct(UserPoint)6797_storage)1000000000_storage": { - "label": "struct IVotingEscrow.UserPoint[1000000000]", - "numberOfBytes": "128000000000" - }, - "t_array(t_uint256)49_storage": { - "label": "uint256[49]", - "numberOfBytes": "1568" - }, - "t_bool": { - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes4": { - "label": "bytes4", - "numberOfBytes": "4" - }, - "t_int128": { - "label": "int128", - "numberOfBytes": "16" - }, - "t_mapping(t_address,t_bool)": { - "label": "mapping(address => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_mapping(t_address,t_bool))": { - "label": "mapping(address => mapping(address => bool))", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_mapping(t_uint256,t_uint256))": { - "label": "mapping(address => mapping(uint256 => uint256))", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_uint256)": { - "label": "mapping(address => uint256)", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bool)": { - "label": "mapping(bytes32 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes4,t_bool)": { - "label": "mapping(bytes4 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_address)": { - "label": "mapping(uint256 => address)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_array(t_struct(UserPoint)6797_storage)1000000000_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.UserPoint[1000000000])", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_bool)": { - "label": "mapping(uint256 => bool)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_int128)": { - "label": "mapping(uint256 => int128)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_mapping(t_uint48,t_struct(Checkpoint)6817_storage))": { - "label": "mapping(uint256 => mapping(uint48 => struct IVotingEscrow.Checkpoint))", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_struct(GlobalPoint)6808_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.GlobalPoint)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_struct(LockedBalance)6786_storage)": { - "label": "mapping(uint256 => struct IVotingEscrow.LockedBalance)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint256)": { - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint48)": { - "label": "mapping(uint256 => uint48)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint48,t_struct(Checkpoint)6817_storage)": { - "label": "mapping(uint48 => struct IVotingEscrow.Checkpoint)", - "numberOfBytes": "32" - }, - "t_struct(Checkpoint)6817_storage": { - "label": "struct IVotingEscrow.Checkpoint", - "members": [ - { - "label": "fromTimestamp", - "type": "t_uint256", - "offset": 0, - "slot": "0" - }, - { - "label": "owner", - "type": "t_address", - "offset": 0, - "slot": "1" - }, - { - "label": "delegatedBalance", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "delegatee", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_struct(GlobalPoint)6808_storage": { - "label": "struct IVotingEscrow.GlobalPoint", - "members": [ - { - "label": "bias", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "slope", - "type": "t_int128", - "offset": 16, - "slot": "0" - }, - { - "label": "ts", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "blk", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "permanentLockBalance", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_struct(LockedBalance)6786_storage": { - "label": "struct IVotingEscrow.LockedBalance", - "members": [ - { - "label": "amount", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "end", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "isPermanent", - "type": "t_bool", - "offset": 0, - "slot": "2" - } - ], - "numberOfBytes": "96" - }, - "t_struct(UserPoint)6797_storage": { - "label": "struct IVotingEscrow.UserPoint", - "members": [ - { - "label": "bias", - "type": "t_int128", - "offset": 0, - "slot": "0" - }, - { - "label": "slope", - "type": "t_int128", - "offset": 16, - "slot": "0" - }, - { - "label": "ts", - "type": "t_uint256", - "offset": 0, - "slot": "1" - }, - { - "label": "blk", - "type": "t_uint256", - "offset": 0, - "slot": "2" - }, - { - "label": "permanent", - "type": "t_uint256", - "offset": 0, - "slot": "3" - } - ], - "numberOfBytes": "128" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint48": { - "label": "uint48", - "numberOfBytes": "6" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - } - }, - "namespaces": {} - }, - "allAddresses": [ - "0xc96EEA2c615a43E3BF62f649e16D359cF2fAA484", - "0x543423773c87C2Bf746c4E72Fd77b9B14068b3c9" - ] - }, - "2567035a0e3b42665932130b7d1abefbb173b1cf9418502f337f46f5c4b31b4d": { - "address": "0xf5a1303a658ec8995092ffe375dCf6365Dd43B6f", - "txHash": "0x96598b00e2f9886eece1c780466c43de6b7a983396b94428b6a2816b6bd4df43", - "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: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:40" - }, - { - "label": "_owner", - "offset": 0, - "slot": "51", - "type": "t_address", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" - }, - { - "label": "__gap", - "offset": 0, - "slot": "52", - "type": "t_array(t_uint256)49_storage", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" - }, - { - "label": "batchSize", - "offset": 0, - "slot": "101", - "type": "t_uint256", - "contract": "BatchClaimVault", - "src": "contracts/BatchClaimVault.sol:17" - }, - { - "label": "rewardPerBlock", - "offset": 0, - "slot": "102", - "type": "t_uint256", - "contract": "BatchClaimVault", - "src": "contracts/BatchClaimVault.sol:18" - }, - { - "label": "projectNum", - "offset": 0, - "slot": "103", - "type": "t_uint256", - "contract": "BatchClaimVault", - "src": "contracts/BatchClaimVault.sol:19" - }, - { - "label": "projectRecipient", - "offset": 0, - "slot": "104", - "type": "t_mapping(t_uint256,t_address)", - "contract": "BatchClaimVault", - "src": "contracts/BatchClaimVault.sol:20" - }, - { - "label": "lastClaimedBlock", - "offset": 0, - "slot": "105", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "BatchClaimVault", - "src": "contracts/BatchClaimVault.sol:21" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "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_mapping(t_uint256,t_address)": { - "label": "mapping(uint256 => address)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint256)": { - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - } - }, - "namespaces": {} - } - }, - "7be264975c7af40cc6dbe1ee0755d613bfd3c6f55c94ef51272cd3b7dda95621": { - "address": "0x3c86d93A16f6aD3534D3D49a10363f4210c56031", - "txHash": "0x277ef411dd4a1fb8f3444d646afbf9270d6d8f1ab6d8ff6055a702ad46a249d9", - "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: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:40" - }, - { - "label": "_owner", - "offset": 0, - "slot": "51", - "type": "t_address", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" - }, - { - "label": "__gap", - "offset": 0, - "slot": "52", - "type": "t_array(t_uint256)49_storage", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" - }, - { - "label": "ioIDStore", - "offset": 0, - "slot": "101", - "type": "t_contract(IioIDStore)701", - "contract": "PeriodClaimVault", - "src": "contracts/PeriodClaimVault.sol:23" - }, - { - "label": "period", - "offset": 0, - "slot": "102", - "type": "t_uint256", - "contract": "PeriodClaimVault", - "src": "contracts/PeriodClaimVault.sol:24" - }, - { - "label": "projectNum", - "offset": 0, - "slot": "103", - "type": "t_uint256", - "contract": "PeriodClaimVault", - "src": "contracts/PeriodClaimVault.sol:25" - }, - { - "label": "rewardPerDevice", - "offset": 0, - "slot": "104", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "PeriodClaimVault", - "src": "contracts/PeriodClaimVault.sol:26" - }, - { - "label": "projectRecipient", - "offset": 0, - "slot": "105", - "type": "t_mapping(t_uint256,t_address)", - "contract": "PeriodClaimVault", - "src": "contracts/PeriodClaimVault.sol:27" - }, - { - "label": "projectInvalidDevice", - "offset": 0, - "slot": "106", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "PeriodClaimVault", - "src": "contracts/PeriodClaimVault.sol:28" - }, - { - "label": "lastClaimedTimestamp", - "offset": 0, - "slot": "107", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "PeriodClaimVault", - "src": "contracts/PeriodClaimVault.sol:29" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "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_contract(IioIDStore)701": { - "label": "contract IioIDStore", - "numberOfBytes": "20" - }, - "t_mapping(t_uint256,t_address)": { - "label": "mapping(uint256 => address)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint256)": { - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - } - }, - "namespaces": {} - } - }, - "34dca5cc763e6b3d2d4c389e0f54327a2f58a3f1c2e5b61c7d12c847933ed3a2": { - "address": "0xcBa7FFFAe066ceEaC2c0D44C861e840c3B5e2a32", - "txHash": "0xd3b9d6c501442dbdc0063bf64affeef13557d74da4bfcf5bf90044eabae581fa", - "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: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:40" - }, - { - "label": "_owner", - "offset": 0, - "slot": "51", - "type": "t_address", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" - }, - { - "label": "__gap", - "offset": 0, - "slot": "52", - "type": "t_array(t_uint256)49_storage", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" - }, - { - "label": "_status", - "offset": 0, - "slot": "101", - "type": "t_uint256", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38" - }, - { - "label": "__gap", - "offset": 0, - "slot": "102", - "type": "t_array(t_uint256)49_storage", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:88" - }, - { - "label": "weightNFT", - "offset": 0, - "slot": "151", - "type": "t_contract(IWeightedNFT)1785", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:27" - }, - { - "label": "accTokenPerShare", - "offset": 0, - "slot": "152", - "type": "t_uint256", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:29" - }, - { - "label": "lastRewardBlock", - "offset": 0, - "slot": "153", - "type": "t_uint256", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:31" - }, - { - "label": "rewardPerBlock", - "offset": 0, - "slot": "154", - "type": "t_uint256", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:33" - }, - { - "label": "totalStakedWeight", - "offset": 0, - "slot": "155", - "type": "t_uint256", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:35" - }, - { - "label": "userInfo", - "offset": 0, - "slot": "156", - "type": "t_mapping(t_address,t_struct(UserInfo)1009_storage)", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:37" - }, - { - "label": "tokenStaker", - "offset": 0, - "slot": "157", - "type": "t_mapping(t_uint256,t_address)", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:40" - }, - { - "label": "tokenWeight", - "offset": 0, - "slot": "158", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:42" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "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_contract(IWeightedNFT)1785": { - "label": "contract IWeightedNFT", - "numberOfBytes": "20" - }, - "t_mapping(t_address,t_struct(UserInfo)1009_storage)": { - "label": "mapping(address => struct FixedRewardPool.UserInfo)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_address)": { - "label": "mapping(uint256 => address)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint256)": { - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32" - }, - "t_struct(UserInfo)1009_storage": { - "label": "struct FixedRewardPool.UserInfo", - "members": [ - { - "label": "amount", - "type": "t_uint256", - "offset": 0, - "slot": "0" - }, - { - "label": "rewardDebt", - "type": "t_uint256", - "offset": 0, - "slot": "1" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - } - }, - "namespaces": {} - } - }, - "44b1505b2ba86b70485f3a117dfeaba9dbf07e3ed8334fd73d40ad552d903df7": { - "address": "0x1E9E7e7b0462cAD0058C77b50d68e28363315B23", - "txHash": "0x577d3b8a3588195879f836b67b5293d9ec1b8ae20429aece8ea9875753d7fd11", - "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: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:40" - }, - { - "label": "_owner", - "offset": 0, - "slot": "51", - "type": "t_address", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" - }, - { - "label": "__gap", - "offset": 0, - "slot": "52", - "type": "t_array(t_uint256)49_storage", - "contract": "OwnableUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" - }, - { - "label": "_status", - "offset": 0, - "slot": "101", - "type": "t_uint256", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38" - }, - { - "label": "__gap", - "offset": 0, - "slot": "102", - "type": "t_array(t_uint256)49_storage", - "contract": "ReentrancyGuardUpgradeable", - "src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:88" - }, - { - "label": "weightNFT", - "offset": 0, - "slot": "151", - "type": "t_contract(IWeightedNFT)21644", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:27" - }, - { - "label": "accTokenPerShare", - "offset": 0, - "slot": "152", - "type": "t_uint256", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:29" - }, - { - "label": "lastRewardBlock", - "offset": 0, - "slot": "153", - "type": "t_uint256", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:31" - }, - { - "label": "rewardPerBlock", - "offset": 0, - "slot": "154", - "type": "t_uint256", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:33" - }, - { - "label": "totalStakedWeight", - "offset": 0, - "slot": "155", - "type": "t_uint256", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:35" - }, - { - "label": "userInfo", - "offset": 0, - "slot": "156", - "type": "t_mapping(t_address,t_struct(UserInfo)19115_storage)", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:37" - }, - { - "label": "tokenStaker", - "offset": 0, - "slot": "157", - "type": "t_mapping(t_uint256,t_address)", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:40" - }, - { - "label": "tokenWeight", - "offset": 0, - "slot": "158", - "type": "t_mapping(t_uint256,t_uint256)", - "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:42" - } - ], - "types": { - "t_address": { - "label": "address", - "numberOfBytes": "20" - }, - "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_contract(IWeightedNFT)21644": { - "label": "contract IWeightedNFT", - "numberOfBytes": "20" - }, - "t_mapping(t_address,t_struct(UserInfo)19115_storage)": { - "label": "mapping(address => struct FixedRewardPool.UserInfo)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_address)": { - "label": "mapping(uint256 => address)", - "numberOfBytes": "32" - }, - "t_mapping(t_uint256,t_uint256)": { - "label": "mapping(uint256 => uint256)", - "numberOfBytes": "32" - }, - "t_struct(UserInfo)19115_storage": { - "label": "struct FixedRewardPool.UserInfo", - "members": [ - { - "label": "amount", - "type": "t_uint256", - "offset": 0, - "slot": "0" - }, - { - "label": "rewardDebt", - "type": "t_uint256", - "offset": 0, - "slot": "1" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint8": { - "label": "uint8", - "numberOfBytes": "1" - } - }, - "namespaces": {} - } - }, - "5c14843cc448814b6a3143f6444f9a3e3edae1aedeefe0d29abb8b2a9832645a": { - "address": "0xADC3ADCC4b57799A133A2223026112D24aEc3c0f", - "txHash": "0x6f57cb72029c26952760809ccf8318c12194e2b656288d34ae7d2d55b28929b0", + } + ], + "impls": { + "15a5bcf31ac8869bf85c66b71884b2136eb0afb6793b68d1dd6917dbd7504281": { + "address": "0x34B1aBf5Baf547645B6e6BCAF3F6fFBc8Af92138", + "txHash": "0xb755aeff2ac56d15c9738dbe31288f6247fb8af92aa9c9ce0dfc8109cf953f9a", "layout": { "solcVersion": "0.8.19", "storage": [ @@ -2477,7 +75,7 @@ "label": "weightNFT", "offset": 0, "slot": "151", - "type": "t_contract(IWeightedNFT)1801", + "type": "t_contract(IWeightedNFT)21699", "contract": "FixedRewardPool", "src": "contracts/gauges/FixedRewardPool.sol:30" }, @@ -2498,7 +96,7 @@ "src": "contracts/gauges/FixedRewardPool.sol:34" }, { - "label": "rewardPerBlock", + "label": "bonusEndBlock", "offset": 0, "slot": "154", "type": "t_uint256", @@ -2506,7 +104,7 @@ "src": "contracts/gauges/FixedRewardPool.sol:36" }, { - "label": "totalStakedWeight", + "label": "rewardPerBlock", "offset": 0, "slot": "155", "type": "t_uint256", @@ -2514,28 +112,36 @@ "src": "contracts/gauges/FixedRewardPool.sol:38" }, { - "label": "userInfo", + "label": "totalStakedWeight", "offset": 0, "slot": "156", - "type": "t_mapping(t_address,t_struct(UserInfo)1015_storage)", + "type": "t_uint256", "contract": "FixedRewardPool", "src": "contracts/gauges/FixedRewardPool.sol:40" }, { - "label": "tokenStaker", + "label": "userInfo", "offset": 0, "slot": "157", + "type": "t_mapping(t_address,t_struct(UserInfo)19121_storage)", + "contract": "FixedRewardPool", + "src": "contracts/gauges/FixedRewardPool.sol:42" + }, + { + "label": "tokenStaker", + "offset": 0, + "slot": "158", "type": "t_mapping(t_uint256,t_address)", "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:43" + "src": "contracts/gauges/FixedRewardPool.sol:45" }, { "label": "tokenWeight", "offset": 0, - "slot": "158", + "slot": "159", "type": "t_mapping(t_uint256,t_uint256)", "contract": "FixedRewardPool", - "src": "contracts/gauges/FixedRewardPool.sol:45" + "src": "contracts/gauges/FixedRewardPool.sol:47" } ], "types": { @@ -2555,11 +161,11 @@ "label": "bool", "numberOfBytes": "1" }, - "t_contract(IWeightedNFT)1801": { + "t_contract(IWeightedNFT)21699": { "label": "contract IWeightedNFT", "numberOfBytes": "20" }, - "t_mapping(t_address,t_struct(UserInfo)1015_storage)": { + "t_mapping(t_address,t_struct(UserInfo)19121_storage)": { "label": "mapping(address => struct FixedRewardPool.UserInfo)", "numberOfBytes": "32" }, @@ -2571,7 +177,7 @@ "label": "mapping(uint256 => uint256)", "numberOfBytes": "32" }, - "t_struct(UserInfo)1015_storage": { + "t_struct(UserInfo)19121_storage": { "label": "struct FixedRewardPool.UserInfo", "members": [ { diff --git a/script/12_deploy_fixed_reward_pool.ts b/script/12_deploy_fixed_reward_pool.ts index 69dcccd..bd25eac 100644 --- a/script/12_deploy_fixed_reward_pool.ts +++ b/script/12_deploy_fixed_reward_pool.ts @@ -10,6 +10,10 @@ async function main() { console.log(`Please provide START_BLOCK`); return; } + if (!process.env.TOTAL_BLOCKS) { + console.log(`Please provide TOTAL_BLOCKS`); + return; + } if (!process.env.REWARD_PER_BLOCK) { console.log(`Please provide REWARD_PER_BLOCK (unit: IOTX)`); return; @@ -25,7 +29,12 @@ async function main() { const pool = await upgrades.deployProxy( await ethers.getContractFactory('FixedRewardPool'), - [ownedWeightedNFT.target, process.env.START_BLOCK, ethers.parseEther(process.env.REWARD_PER_BLOCK)], + [ + ownedWeightedNFT.target, + process.env.START_BLOCK, + ethers.parseEther(process.env.REWARD_PER_BLOCK), + process.env.TOTAL_BLOCKS, + ], { initializer: 'initialize', },