Skip to content

Commit

Permalink
chore(bindings): regenerate bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHansLee committed Dec 14, 2024
1 parent 209cc1c commit b93d810
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 34 deletions.
9 changes: 4 additions & 5 deletions contracts/bindings/create3_storage_layout.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

╭------+------+------+--------+-------+----------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+================================================+
╰------+------+------+--------+-------+----------╯
{
"storage": [],
"types": {}
}
65 changes: 51 additions & 14 deletions contracts/bindings/iptokenstaking_storage_layout.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,51 @@

╭----------------------+---------+------+--------+-------+------------------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+=========================================================================================================+
| minCommissionRate | uint256 | 0 | 0 | 32 | src/protocol/IPTokenStaking.sol:IPTokenStaking |
|----------------------+---------+------+--------+-------+------------------------------------------------|
| minStakeAmount | uint256 | 1 | 0 | 32 | src/protocol/IPTokenStaking.sol:IPTokenStaking |
|----------------------+---------+------+--------+-------+------------------------------------------------|
| minUnstakeAmount | uint256 | 2 | 0 | 32 | src/protocol/IPTokenStaking.sol:IPTokenStaking |
|----------------------+---------+------+--------+-------+------------------------------------------------|
| _delegationIdCounter | uint256 | 3 | 0 | 32 | src/protocol/IPTokenStaking.sol:IPTokenStaking |
|----------------------+---------+------+--------+-------+------------------------------------------------|
| fee | uint256 | 4 | 0 | 32 | src/protocol/IPTokenStaking.sol:IPTokenStaking |
╰----------------------+---------+------+--------+-------+------------------------------------------------╯
{
"storage": [
{
"astId": 48774,
"contract": "src/protocol/IPTokenStaking.sol:IPTokenStaking",
"label": "minCommissionRate",
"offset": 0,
"slot": "0",
"type": "t_uint256"
},
{
"astId": 48777,
"contract": "src/protocol/IPTokenStaking.sol:IPTokenStaking",
"label": "minStakeAmount",
"offset": 0,
"slot": "1",
"type": "t_uint256"
},
{
"astId": 48780,
"contract": "src/protocol/IPTokenStaking.sol:IPTokenStaking",
"label": "minUnstakeAmount",
"offset": 0,
"slot": "2",
"type": "t_uint256"
},
{
"astId": 48783,
"contract": "src/protocol/IPTokenStaking.sol:IPTokenStaking",
"label": "_delegationIdCounter",
"offset": 0,
"slot": "3",
"type": "t_uint256"
},
{
"astId": 48786,
"contract": "src/protocol/IPTokenStaking.sol:IPTokenStaking",
"label": "fee",
"offset": 0,
"slot": "4",
"type": "t_uint256"
}
],
"types": {
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
64 changes: 54 additions & 10 deletions contracts/bindings/ubipool_storage_layout.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,54 @@

╭-----------------------+-----------------------------------------------+------+--------+-------+----------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+==================================================================================================================================+
| currentDistributionId | uint256 | 0 | 0 | 32 | src/protocol/UBIPool.sol:UBIPool |
|-----------------------+-----------------------------------------------+------+--------+-------+----------------------------------|
| validatorUBIAmounts | mapping(uint256 => mapping(bytes => uint256)) | 1 | 0 | 32 | src/protocol/UBIPool.sol:UBIPool |
|-----------------------+-----------------------------------------------+------+--------+-------+----------------------------------|
| totalPendingClaims | uint256 | 2 | 0 | 32 | src/protocol/UBIPool.sol:UBIPool |
╰-----------------------+-----------------------------------------------+------+--------+-------+----------------------------------╯
{
"storage": [
{
"astId": 2443,
"contract": "src/protocol/UBIPool.sol:UBIPool",
"label": "currentDistributionId",
"offset": 0,
"slot": "0",
"type": "t_uint256"
},
{
"astId": 2450,
"contract": "src/protocol/UBIPool.sol:UBIPool",
"label": "validatorUBIAmounts",
"offset": 0,
"slot": "1",
"type": "t_mapping(t_uint256,t_mapping(t_bytes_memory_ptr,t_uint256))"
},
{
"astId": 2453,
"contract": "src/protocol/UBIPool.sol:UBIPool",
"label": "totalPendingClaims",
"offset": 0,
"slot": "2",
"type": "t_uint256"
}
],
"types": {
"t_bytes_memory_ptr": {
"encoding": "bytes",
"label": "bytes",
"numberOfBytes": "32"
},
"t_mapping(t_bytes_memory_ptr,t_uint256)": {
"encoding": "mapping",
"key": "t_bytes_memory_ptr",
"label": "mapping(bytes => uint256)",
"numberOfBytes": "32",
"value": "t_uint256"
},
"t_mapping(t_uint256,t_mapping(t_bytes_memory_ptr,t_uint256))": {
"encoding": "mapping",
"key": "t_uint256",
"label": "mapping(uint256 => mapping(bytes => uint256))",
"numberOfBytes": "32",
"value": "t_mapping(t_bytes_memory_ptr,t_uint256)"
},
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
9 changes: 4 additions & 5 deletions contracts/bindings/upgradeentrypoint_storage_layout.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

╭------+------+------+--------+-------+----------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+================================================+
╰------+------+------+--------+-------+----------╯
{
"storage": [],
"types": {}
}

0 comments on commit b93d810

Please sign in to comment.