Skip to content

Commit

Permalink
feat: improve stake payment by isolate funds to StakeVault
Browse files Browse the repository at this point in the history
  • Loading branch information
thongxuan committed Dec 20, 2024
1 parent 2be3dbf commit a330848
Show file tree
Hide file tree
Showing 7 changed files with 727 additions and 183 deletions.
365 changes: 365 additions & 0 deletions .openzeppelin/base-sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
"address": "0x63B32CB34101E6512Cfd2C8D67CBa95ff0EcF773",
"txHash": "0xfdbe9702af38efd503005771795e1c4e6c6da456a3d9536a2988d84eca188daa",
"kind": "transparent"
},
{
"address": "0xB66306c45313739d438700f7F5b3064C578c9B6A",
"txHash": "0xf49fbfc0493b8a7a713add3b4c9d7c62c9817f47a299fb3c0e4738f27aedff72",
"kind": "transparent"
},
{
"address": "0xAf2866c4E8d2Cc19feaa56Fb270ec16574e38FF2",
"txHash": "0x4382701e107bda3ec402bf5598cbdc9845ec840f91ef14df1d10649659ac139a",
"kind": "transparent"
}
],
"impls": {
Expand Down Expand Up @@ -928,6 +938,361 @@
},
"namespaces": {}
}
},
"8509a0e744ca9badb5a71bc33cacc54f4c32974b983199cbd0f3a00040cb03b2": {
"address": "0xCd1993502930950208fDbC66f7BD55EA35a2E2Ed",
"txHash": "0xa5f477f7d7952c78026606a84b9d2de146ea17539266fe162d073e076e2454ed",
"layout": {
"solcVersion": "0.8.4",
"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": "configRegistry",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:17"
},
{
"label": "counter",
"offset": 0,
"slot": "102",
"type": "t_uint256",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:18"
},
{
"label": "stakings",
"offset": 0,
"slot": "103",
"type": "t_mapping(t_bytes32,t_address)",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:19"
},
{
"label": "__gap",
"offset": 0,
"slot": "104",
"type": "t_array(t_uint256)5_storage",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:20"
}
],
"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_array(t_uint256)5_storage": {
"label": "uint256[5]",
"numberOfBytes": "160"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_address)": {
"label": "mapping(bytes32 => address)",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
},
"16160616b39555837efffbb6f63c01f9faab92f799d26114607ff95e53acfe59": {
"address": "0x4b9Ab2501065E4a81A7Efd572f19736aA15BE71f",
"txHash": "0x7be7aba9da787c2fe538573a6b4ff67c909c584e81d5ef23edd4c2fcdc4bb774",
"layout": {
"solcVersion": "0.8.4",
"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": "configRegistry",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:17"
},
{
"label": "counter",
"offset": 0,
"slot": "102",
"type": "t_uint256",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:18"
},
{
"label": "stakings",
"offset": 0,
"slot": "103",
"type": "t_mapping(t_bytes32,t_address)",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:19"
},
{
"label": "__gap",
"offset": 0,
"slot": "104",
"type": "t_array(t_uint256)5_storage",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:20"
}
],
"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_array(t_uint256)5_storage": {
"label": "uint256[5]",
"numberOfBytes": "160"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_address)": {
"label": "mapping(bytes32 => address)",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
},
"76ccb2f878153a2fd51702372208778122d5ed4f2aefe78586e7d27aea42323b": {
"address": "0xfFab21d276aC4eE682dB3e997e85025e256b0a5b",
"txHash": "0x48dde6e96c9a130b958268bc99a408f49e2a29752c45bd9e4aeeb9be1225dc5c",
"layout": {
"solcVersion": "0.8.4",
"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": "configRegistry",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:17"
},
{
"label": "stakings",
"offset": 0,
"slot": "102",
"type": "t_mapping(t_bytes32,t_address)",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:18"
},
{
"label": "__gap",
"offset": 0,
"slot": "103",
"type": "t_array(t_uint256)5_storage",
"contract": "LemonadeStakePayment",
"src": "contracts/payment/stake/LemonadeStakePayment.sol:19"
}
],
"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_array(t_uint256)5_storage": {
"label": "uint256[5]",
"numberOfBytes": "160"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_address)": {
"label": "mapping(bytes32 => address)",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
}
}
}
Loading

0 comments on commit a330848

Please sign in to comment.