-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: lens testnet Signed-off-by: bennett <[email protected]> --------- Signed-off-by: bennett <[email protected]>
- Loading branch information
Showing
18 changed files
with
14,570 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,336 @@ | ||
{ | ||
"manifestVersion": "3.2", | ||
"proxies": [ | ||
{ | ||
"address": "0xE0B015E54d54fc84a6cB9B666099c46adE9335FF", | ||
"txHash": "0xf4115a1fd0ae79bf6f1ad34fc5162cf609a046cf4d220d8f71eacdde3a65f031", | ||
"kind": "uups" | ||
} | ||
], | ||
"impls": { | ||
"72fd4ba347d38782f3aa43abc43f9ec33f536d899812b5ea7aa147598a748f7d": { | ||
"address": "0x21aa92c23BC2A0E2DaB0335F5f864757FE68c0A7", | ||
"txHash": "0x87f01f870b3d0618a5e4ac8ea07ff5b193dd3c140e1d43780d9946c7256f36e7", | ||
"layout": { | ||
"solcVersion": "0.8.23", | ||
"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": "ERC1967UpgradeUpgradeable", | ||
"src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" | ||
}, | ||
{ | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "51", | ||
"type": "t_array(t_uint256)50_storage", | ||
"contract": "UUPSUpgradeable", | ||
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" | ||
}, | ||
{ | ||
"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": "__gap", | ||
"offset": 0, | ||
"slot": "151", | ||
"type": "t_array(t_uint256)1000_storage", | ||
"contract": "MultiCallerUpgradeable", | ||
"src": "contracts/upgradeable/MultiCallerUpgradeable.sol:77" | ||
}, | ||
{ | ||
"label": "_HASHED_NAME", | ||
"offset": 0, | ||
"slot": "1151", | ||
"type": "t_bytes32", | ||
"contract": "EIP712CrossChainUpgradeable", | ||
"src": "contracts/upgradeable/EIP712CrossChainUpgradeable.sol:21" | ||
}, | ||
{ | ||
"label": "_HASHED_VERSION", | ||
"offset": 0, | ||
"slot": "1152", | ||
"type": "t_bytes32", | ||
"contract": "EIP712CrossChainUpgradeable", | ||
"src": "contracts/upgradeable/EIP712CrossChainUpgradeable.sol:22" | ||
}, | ||
{ | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "1153", | ||
"type": "t_array(t_uint256)1000_storage", | ||
"contract": "EIP712CrossChainUpgradeable", | ||
"src": "contracts/upgradeable/EIP712CrossChainUpgradeable.sol:85" | ||
}, | ||
{ | ||
"label": "crossDomainAdmin", | ||
"offset": 0, | ||
"slot": "2153", | ||
"type": "t_address", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:46" | ||
}, | ||
{ | ||
"label": "withdrawalRecipient", | ||
"offset": 0, | ||
"slot": "2154", | ||
"type": "t_address", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:50" | ||
}, | ||
{ | ||
"label": "DEPRECATED_wrappedNativeToken", | ||
"offset": 0, | ||
"slot": "2155", | ||
"type": "t_contract(WETH9Interface)32714", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:57" | ||
}, | ||
{ | ||
"label": "DEPRECATED_depositQuoteTimeBuffer", | ||
"offset": 20, | ||
"slot": "2155", | ||
"type": "t_uint32", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:58" | ||
}, | ||
{ | ||
"label": "numberOfDeposits", | ||
"offset": 24, | ||
"slot": "2155", | ||
"type": "t_uint32", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:61" | ||
}, | ||
{ | ||
"label": "pausedFills", | ||
"offset": 28, | ||
"slot": "2155", | ||
"type": "t_bool", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:64" | ||
}, | ||
{ | ||
"label": "pausedDeposits", | ||
"offset": 29, | ||
"slot": "2155", | ||
"type": "t_bool", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:65" | ||
}, | ||
{ | ||
"label": "rootBundles", | ||
"offset": 0, | ||
"slot": "2156", | ||
"type": "t_array(t_struct(RootBundle)33486_storage)dyn_storage", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:68" | ||
}, | ||
{ | ||
"label": "enabledDepositRoutes", | ||
"offset": 0, | ||
"slot": "2157", | ||
"type": "t_mapping(t_address,t_mapping(t_uint256,t_bool))", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:71" | ||
}, | ||
{ | ||
"label": "DEPRECATED_relayFills", | ||
"offset": 0, | ||
"slot": "2158", | ||
"type": "t_mapping(t_bytes32,t_uint256)", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:76" | ||
}, | ||
{ | ||
"label": "DEPRECATED_fillCounter", | ||
"offset": 0, | ||
"slot": "2159", | ||
"type": "t_mapping(t_address,t_uint256)", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:88" | ||
}, | ||
{ | ||
"label": "DEPRECATED_depositCounter", | ||
"offset": 0, | ||
"slot": "2160", | ||
"type": "t_mapping(t_address,t_uint256)", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:92" | ||
}, | ||
{ | ||
"label": "DEPRECATED_refundsRequested", | ||
"offset": 0, | ||
"slot": "2161", | ||
"type": "t_mapping(t_bytes32,t_uint256)", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:97" | ||
}, | ||
{ | ||
"label": "fillStatuses", | ||
"offset": 0, | ||
"slot": "2162", | ||
"type": "t_mapping(t_bytes32,t_uint256)", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:101" | ||
}, | ||
{ | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "2163", | ||
"type": "t_array(t_uint256)999_storage", | ||
"contract": "SpokePool", | ||
"src": "contracts/SpokePool.sol:1445" | ||
}, | ||
{ | ||
"label": "l2Eth", | ||
"offset": 0, | ||
"slot": "3162", | ||
"type": "t_address", | ||
"contract": "ZkSync_SpokePool", | ||
"src": "contracts/ZkSync_SpokePool.sol:32" | ||
}, | ||
{ | ||
"label": "zkErc20Bridge", | ||
"offset": 0, | ||
"slot": "3163", | ||
"type": "t_contract(ZkBridgeLike)23367", | ||
"contract": "ZkSync_SpokePool", | ||
"src": "contracts/ZkSync_SpokePool.sol:35" | ||
} | ||
], | ||
"types": { | ||
"t_address": { | ||
"label": "address", | ||
"numberOfBytes": "20" | ||
}, | ||
"t_array(t_struct(RootBundle)33486_storage)dyn_storage": { | ||
"label": "struct SpokePoolInterface.RootBundle[]", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_array(t_uint256)1000_storage": { | ||
"label": "uint256[1000]", | ||
"numberOfBytes": "32000" | ||
}, | ||
"t_array(t_uint256)49_storage": { | ||
"label": "uint256[49]", | ||
"numberOfBytes": "1568" | ||
}, | ||
"t_array(t_uint256)50_storage": { | ||
"label": "uint256[50]", | ||
"numberOfBytes": "1600" | ||
}, | ||
"t_array(t_uint256)999_storage": { | ||
"label": "uint256[999]", | ||
"numberOfBytes": "31968" | ||
}, | ||
"t_bool": { | ||
"label": "bool", | ||
"numberOfBytes": "1" | ||
}, | ||
"t_bytes32": { | ||
"label": "bytes32", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_contract(WETH9Interface)32714": { | ||
"label": "contract WETH9Interface", | ||
"numberOfBytes": "20" | ||
}, | ||
"t_contract(ZkBridgeLike)23367": { | ||
"label": "contract ZkBridgeLike", | ||
"numberOfBytes": "20" | ||
}, | ||
"t_mapping(t_address,t_mapping(t_uint256,t_bool))": { | ||
"label": "mapping(address => mapping(uint256 => bool))", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_mapping(t_address,t_uint256)": { | ||
"label": "mapping(address => uint256)", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_mapping(t_bytes32,t_uint256)": { | ||
"label": "mapping(bytes32 => uint256)", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_mapping(t_uint256,t_bool)": { | ||
"label": "mapping(uint256 => bool)", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_mapping(t_uint256,t_uint256)": { | ||
"label": "mapping(uint256 => uint256)", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_struct(RootBundle)33486_storage": { | ||
"label": "struct SpokePoolInterface.RootBundle", | ||
"members": [ | ||
{ | ||
"label": "slowRelayRoot", | ||
"type": "t_bytes32", | ||
"offset": 0, | ||
"slot": "0" | ||
}, | ||
{ | ||
"label": "relayerRefundRoot", | ||
"type": "t_bytes32", | ||
"offset": 0, | ||
"slot": "1" | ||
}, | ||
{ | ||
"label": "claimedBitmap", | ||
"type": "t_mapping(t_uint256,t_uint256)", | ||
"offset": 0, | ||
"slot": "2" | ||
} | ||
], | ||
"numberOfBytes": "96" | ||
}, | ||
"t_uint256": { | ||
"label": "uint256", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_uint32": { | ||
"label": "uint32", | ||
"numberOfBytes": "4" | ||
}, | ||
"t_uint8": { | ||
"label": "uint8", | ||
"numberOfBytes": "1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.0; | ||
|
||
import "./ZkSync_SpokePool.sol"; | ||
|
||
/** | ||
* @notice Lens specific SpokePool. Wrapper around the ZkSync_SpokePool contract. | ||
* @dev Resources for compiling and deploying contracts with hardhat: https://era.zksync.io/docs/tools/hardhat/hardhat-zksync-solc.html | ||
* @custom:security-contact [email protected] | ||
*/ | ||
contract Lens_SpokePool is ZkSync_SpokePool { | ||
/// @custom:oz-upgrades-unsafe-allow constructor | ||
constructor( | ||
address _wrappedNativeTokenAddress, | ||
uint32 _depositQuoteTimeBuffer, | ||
uint32 _fillDeadlineBuffer | ||
) ZkSync_SpokePool(_wrappedNativeTokenAddress, _depositQuoteTimeBuffer, _fillDeadlineBuffer) {} // solhint-disable-line no-empty-blocks | ||
} |
Oops, something went wrong.