Skip to content

Commit

Permalink
Merge branch 'master' into v10
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Apr 12, 2022
2 parents 568ced9 + 3c0cb43 commit 392cbef
Show file tree
Hide file tree
Showing 18 changed files with 3,994 additions and 207 deletions.
2 changes: 1 addition & 1 deletion packages/hardhat-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
"dependencies": {
"@nomiclabs/hardhat-ethers": "2.0.5",
"@openzeppelin/hardhat-upgrades": "1.16.1",
"@unlock-protocol/contracts": "0.0.3"
"@unlock-protocol/contracts": "0.0.4"
}
}
4 changes: 2 additions & 2 deletions packages/hardhat-plugin/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const UNLOCK_LATEST_VERSION = 10
export const PUBLIC_LOCK_LATEST_VERSION = 9
export const UNLOCK_LATEST_VERSION = 11
export const PUBLIC_LOCK_LATEST_VERSION = 10

// task names
export const TASK_CREATE_LOCK = 'unlock:create-lock'
Expand Down
250 changes: 250 additions & 0 deletions smart-contracts/.openzeppelin/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -1840,6 +1840,256 @@
}
}
}
},
"d17576afcd2c7a2e78751dfd43bc021446e458bc34b334e70c3b114a2d92738c": {
"address": "0x3952787d8Ec653E9179a3Fa5D8c018d7bD8e94c7",
"txHash": "0xb55cd83470d055953573363f01391e219ac99138e020c389ce62849aaf3ab17f",
"layout": {
"storage": [
{
"label": "initialized",
"offset": 0,
"slot": "0",
"type": "t_bool",
"contract": "UnlockInitializable",
"src": "contracts/utils/UnlockInitializable.sol:39"
},
{
"label": "initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "UnlockInitializable",
"src": "contracts/utils/UnlockInitializable.sol:44"
},
{
"label": "______gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "UnlockContextUpgradeable",
"src": "contracts/utils/UnlockContextUpgradeable.sol:31"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "UnlockOwnable",
"src": "contracts/utils/UnlockOwnable.sol:23"
},
{
"label": "______gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)50_storage",
"contract": "UnlockOwnable",
"src": "contracts/utils/UnlockOwnable.sol:86"
},
{
"label": "grossNetworkProduct",
"offset": 0,
"slot": "102",
"type": "t_uint256",
"contract": "Unlock",
"src": "contracts/Unlock.sol:63"
},
{
"label": "totalDiscountGranted",
"offset": 0,
"slot": "103",
"type": "t_uint256",
"contract": "Unlock",
"src": "contracts/Unlock.sol:65"
},
{
"label": "locks",
"offset": 0,
"slot": "104",
"type": "t_mapping(t_address,t_struct(LockBalances)1513_storage)",
"contract": "Unlock",
"src": "contracts/Unlock.sol:68"
},
{
"label": "globalBaseTokenURI",
"offset": 0,
"slot": "105",
"type": "t_string_storage",
"contract": "Unlock",
"src": "contracts/Unlock.sol:72"
},
{
"label": "globalTokenSymbol",
"offset": 0,
"slot": "106",
"type": "t_string_storage",
"contract": "Unlock",
"src": "contracts/Unlock.sol:76"
},
{
"label": "publicLockAddress",
"offset": 0,
"slot": "107",
"type": "t_address",
"contract": "Unlock",
"src": "contracts/Unlock.sol:79"
},
{
"label": "uniswapOracles",
"offset": 0,
"slot": "108",
"type": "t_mapping(t_address,t_contract(IUniswapOracle)3504)",
"contract": "Unlock",
"src": "contracts/Unlock.sol:83"
},
{
"label": "weth",
"offset": 0,
"slot": "109",
"type": "t_address",
"contract": "Unlock",
"src": "contracts/Unlock.sol:86"
},
{
"label": "udt",
"offset": 0,
"slot": "110",
"type": "t_address",
"contract": "Unlock",
"src": "contracts/Unlock.sol:89"
},
{
"label": "estimatedGasForPurchase",
"offset": 0,
"slot": "111",
"type": "t_uint256",
"contract": "Unlock",
"src": "contracts/Unlock.sol:92"
},
{
"label": "chainId",
"offset": 0,
"slot": "112",
"type": "t_uint256",
"contract": "Unlock",
"src": "contracts/Unlock.sol:95"
},
{
"label": "proxyAdminAddress",
"offset": 0,
"slot": "113",
"type": "t_address",
"contract": "Unlock",
"src": "contracts/Unlock.sol:98"
},
{
"label": "proxyAdmin",
"offset": 0,
"slot": "114",
"type": "t_contract(ProxyAdmin)949",
"contract": "Unlock",
"src": "contracts/Unlock.sol:99"
},
{
"label": "_publicLockVersions",
"offset": 0,
"slot": "115",
"type": "t_mapping(t_address,t_uint16)",
"contract": "Unlock",
"src": "contracts/Unlock.sol:102"
},
{
"label": "_publicLockImpls",
"offset": 0,
"slot": "116",
"type": "t_mapping(t_uint16,t_address)",
"contract": "Unlock",
"src": "contracts/Unlock.sol:103"
},
{
"label": "publicLockLatestVersion",
"offset": 0,
"slot": "117",
"type": "t_uint16",
"contract": "Unlock",
"src": "contracts/Unlock.sol:104"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_contract(IUniswapOracle)3504": {
"label": "contract IUniswapOracle",
"numberOfBytes": "20"
},
"t_contract(ProxyAdmin)949": {
"label": "contract ProxyAdmin",
"numberOfBytes": "20"
},
"t_mapping(t_address,t_contract(IUniswapOracle)3504)": {
"label": "mapping(address => contract IUniswapOracle)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_struct(LockBalances)1513_storage)": {
"label": "mapping(address => struct Unlock.LockBalances)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint16)": {
"label": "mapping(address => uint16)",
"numberOfBytes": "32"
},
"t_mapping(t_uint16,t_address)": {
"label": "mapping(uint16 => address)",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_struct(LockBalances)1513_storage": {
"label": "struct Unlock.LockBalances",
"members": [
{
"label": "deployed",
"type": "t_bool",
"offset": 0,
"slot": "0"
},
{
"label": "totalSales",
"type": "t_uint256",
"offset": 0,
"slot": "1"
},
{
"label": "yieldedDiscountTokens",
"type": "t_uint256",
"offset": 0,
"slot": "2"
}
],
"numberOfBytes": "96"
},
"t_uint16": {
"label": "uint16",
"numberOfBytes": "2"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
}
}
}
}
}
}

0 comments on commit 392cbef

Please sign in to comment.