Skip to content

Commit

Permalink
Merge pull request #66 from 0xPolygon/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
DhairyaSethi authored Sep 9, 2024
2 parents afad904 + c059ef7 commit fa3de37
Show file tree
Hide file tree
Showing 24 changed files with 769 additions and 55 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RPC_URL=
RPC_MAINNET=
PRIVATE_KEY=
ETHERSCAN_API_KEY=
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ jobs:
run: |
forge --version
forge build --sizes
env:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_URL: ${{ secrets.RPC_URL }}
id: build

- name: Run Forge tests
# ! revert back to FOUNDRY_PROFILE=intense forge test -vvv
run: forge test -vvv
env:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_URL: ${{ secrets.RPC_URL }}
id: test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ lcov.info
.env

broadcast/*/31337
broadcast/*/*/dry-run
deployments/31337.md
deployments/json/31337.json

Expand Down
64 changes: 64 additions & 0 deletions broadcast/UpgradeEmissionManager.s.sol/1/run-1719413975.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"transactions": [
{
"hash": "0xafd917c394d869e817cb1696aba9d9e4c571805ddd078efd52aeec1a9607a18e",
"transactionType": "CREATE",
"contractName": "DefaultEmissionManager",
"contractAddress": "0x5e875267f65537768435c3c6c81cd313a570b422",
"function": null,
"arguments": [
"0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e",
"0x5e3Ef299fDDf15eAa0432E6e66473ace8c13D908",
"0x86380e136A3AaD5677A210Ad02713694c4E6a5b9"
],
"transaction": {
"from": "0x32bdc6a4e8c654df65503cbb0edc82b4ce9158e6",
"gas": "0x1b35b3",
"value": "0x0",
"input": "0x61010034620001c357601f6200195b38819003918201601f191683019291906001600160401b03841183851017620001c8578160609284926040968752833981010312620001c3576200005281620001de565b906200006e836200006660208401620001de565b9201620001de565b916001600160a01b03908116908115908115620001b7575b8115620001ab575b506200019a573360805260a05260c05260e05260005460ff8160081c16620001465760ff808216036200010b575b50516117679081620001f4823960805181610575015260a0518181816105fc015281816108570152610db9015260c0518181816102fb0152610def015260e0518181816104990152610d690152f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986020825160ff8152a138620000bc565b815162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b835163e6c4247b60e01b8152600490fd5b9050831615386200008e565b83811615915062000086565b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001c35756fe6040608081526004908136101561001557600080fd5b600091823560e01c9081631249c58b146108865781631705a3bd1461084257816321daf0851461081b578163485cc9551461050957816354fd4d50146104c857816361d027b3146104845781636c2eb35014610391578163715018a61461032a5781637542ff95146102e657816379ba50971461025957816387b1103414610232575080638da5cb5b1461020a578063e30c3978146101e2578063e6fd48bc146101c4578063edff5610146101a6578063f2fde38b14610135578063f6908f7c146101145763fc0c546a146100e957600080fd5b3461011057816003193601126101105760975490516001600160a01b039091168152602090f35b5080fd5b503461011057816003193601126101105760209051667e8fc1d5029dc48152f35b82346101a35760203660031901126101a35761014f61089f565b610157610959565b606580546001600160a01b0319166001600160a01b039283169081179091556033549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b80fd5b50346101105781600319360112610110576020906099549051908152f35b50346101105781600319360112610110576020906098549051908152f35b503461011057816003193601126101105760655490516001600160a01b039091168152602090f35b503461011057816003193601126101105760335490516001600160a01b039091168152602090f35b8284346101a35760203660031901126101a3575061025260209235610edd565b9051908152f35b919050346102e257826003193601126102e257606554336001600160a01b039091160361028d578261028a33610903565b80f35b906020608492519162461bcd60e51b8352820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152fd5b8280fd5b505034610110578160031936011261011057517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b83346101a357806003193601126101a357610343610959565b606580546001600160a01b031990811690915560338054918216905581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b9050346102e257826003193601126102e257825460ff8160081c161580610477575b6103bc906109b1565b61ffff19169061010282178455602060018060a01b03609754168451928380926318160ddd60e01b82525afa90811561046a578491610432575b509160026020927f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249894609955426098551784555160028152a180f35b9290506020833d8211610462575b8161044d60209383610a5a565b8101031261045e57915160026103f6565b8380fd5b3d9150610440565b50505051903d90823e3d90fd5b50600260ff8216106103b3565b505034610110578160031936011261011057517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5050346101105781600319360112610110578051610505916104e982610a3e565b60058252640312e322e360dc1b602083015251918291826108ba565b0390f35b9050346102e257816003193601126102e25761052361089f565b6001600160a01b03916024803591848316908184036108175787549460ff8660081c16159586809761080a575b80156107f3575b610560906109b1565b60ff1981166001178a55866107e2575b5033877f000000000000000000000000000000000000000000000000000000000000000016036107de5786169182159081156107d5575b506107c757609780546001600160a01b031916831790554260985586516318160ddd60e01b81526020969087818481875afa90811561077e578a9161079a575b506b204fce5e3e2502611000000003610788577f000000000000000000000000000000000000000000000000000000000000000016928751636eb1769f60e11b8152308382015284828201528781604481875afa90811561077e578a9161074d575b506106ec5787519363095ea7b360e01b8886015281850152600019604485015260448452608084019184831067ffffffffffffffff8411176106db575050865261069c929161069791610a7c565b610903565b6106a4578280f35b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a138808280f35b634e487b7160e01b8a526041905288fd5b875162461bcd60e51b81529182018790526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608490fd5b90508781813d8311610777575b6107648183610a5a565b81010312610773575138610649565b8980fd5b503d61075a565b89513d8c823e3d90fd5b634e487b7160e01b8952600182528389fd5b90508781813d83116107c0575b6107b18183610a5a565b810103126107735751386105e7565b503d6107a7565b865163e6c4247b60e01b8152fd5b905015386105a7565b8880fd5b61ffff191661010117895538610570565b50303b158015610557575060ff8116600114610557565b50600160ff821610610550565b8780fd5b505034610110578160031936011261011057602090516b204fce5e3e250261100000008152f35b505034610110578160031936011261011057517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b83346101a357806003193601126101a35761028a610c78565b600435906001600160a01b03821682036108b557565b600080fd5b6020808252825181830181905290939260005b8281106108ef57505060409293506000838284010152601f8019910116010190565b8181018601518482016040015285016108cd565b6bffffffffffffffffffffffff60a01b90816065541660655560335460018060a01b038092168093821617603355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6033546001600160a01b0316330361096d57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b156109b857565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b67ffffffffffffffff8111610a2857604052565b634e487b7160e01b600052604160045260246000fd5b6040810190811067ffffffffffffffff821117610a2857604052565b90601f8019910116810190811067ffffffffffffffff821117610a2857604052565b60018060a01b031690604051610a9181610a3e565b6020928382527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564848301526000808486829651910182855af13d15610bb6573d9167ffffffffffffffff8311610ba25790610b0c93929160405192610aff88601f19601f8401160185610a5a565b83523d868885013e610bc0565b805191821591848315610b7e575b505050905015610b275750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b919381809450010312610110578201519081151582036101a3575080388084610b1a565b634e487b7160e01b85526041600452602485fd5b90610b0c92916060915b91929015610c225750815115610bd4575090565b3b15610bdd5790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610c355750805190602001fd5b60405162461bcd60e51b8152908190610c5190600483016108ba565b0390fd5b91908203918211610c6257565b634e487b7160e01b600052601160045260246000fd5b609754604080516318160ddd60e01b81526000926001600160a01b03908116916020908181600481875afa8015610ed3578690610ea0575b610cce9150610cc9610cc460985442610c55565b610edd565b610c55565b928315610e98578360011b848104600203610e84576005900491610cf28386610c55565b947fcae919fa60d0c9867c5b3e0a9529934bca78c09d353736e3327f74837594adc58780518381523385820152a1823b156108175786516340c10f1960e01b81523060048201526024810191909152878160448183875af18015610e7a57610e5d575b50855163a9059cbb60e01b918101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166024820152604480820193909352918252610db79190610db2606483610a5a565b610a7c565b7f00000000000000000000000000000000000000000000000000000000000000001690813b1561045e578251630899d25960e41b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031660048201526024810191909152919083908390604490829084905af1908115610e545750610e43575050565b610e4d8291610a14565b6101a35750565b513d84823e3d90fd5b610db793929197610e70610db292610a14565b9791929350610d55565b87513d8a823e3d90fd5b634e487b7160e01b87526011600452602487fd5b505050505050565b508181813d8311610ecc575b610eb68183610a5a565b81010312610ec857610cce9051610cb0565b8580fd5b503d610eac565b85513d88823e3d90fd5b667e8fc1d5029dc49080820291820403610c6257670de0b6b3a764000090816301e1338060409204821b0482600160bf1b67ff000000000000008316611620575b66ff0000000000008316611518575b65ff00000000008316611418575b64ff000000008316611320575b63ff0000008316611230575b62ff00008316611148575b61ff008316611068575b60ff8316610f91575b02911c60bf031c60995490818102918183041490151715610c62570490565b60808316611056575b838316611044575b60208316611032575b60108316611020575b6008831661100e575b60048316610ffc575b60028316610fea575b6001831615610f72576801000000000000000102831c610f72565b6801000000000000000102831c610fcf565b6801000000000000000302831c610fc6565b6801000000000000000602831c610fbd565b6801000000000000000b02831c610fb4565b6801000000000000001602831c610fab565b6801000000000000002c02831c610fa2565b6801000000000000005902831c610f9a565b6180008316611136575b6140008316611124575b6120008316611112575b6110008316611100575b61080083166110ee575b61040083166110dc575b61020083166110ca575b610100831615610f6957680100000000000000b102831c610f69565b6801000000000000016302831c6110ae565b680100000000000002c602831c6110a4565b6801000000000000058c02831c61109a565b68010000000000000b1702831c611090565b6801000000000000162e02831c611086565b68010000000000002c5d02831c61107c565b680100000000000058b902831c611072565b62800000831661121e575b62400000831661120c575b6220000083166111fa575b6210000083166111e8575b6208000083166111d6575b6204000083166111c4575b6202000083166111b2575b62010000831615610f5f576801000000000000b17202831c610f5f565b680100000000000162e402831c611195565b6801000000000002c5c802831c61118a565b68010000000000058b9102831c61117f565b680100000000000b172102831c611174565b68010000000000162e4302831c611169565b680100000000002c5c8602831c61115e565b6801000000000058b90c02831c611153565b6380000000831661130e575b634000000083166112fc575b632000000083166112ea575b631000000083166112d8575b630800000083166112c6575b630400000083166112b4575b630200000083166112a2575b6301000000831615610f545768010000000000b1721802831c610f54565b6801000000000162e43002831c611284565b68010000000002c5c86002831c611278565b680100000000058b90c002831c61126c565b6801000000000b17217f02831c611260565b680100000000162e42ff02831c611254565b6801000000002c5c85fe02831c611248565b68010000000058b90bfc02831c61123c565b6480000000008316611406575b64400000000083166113f4575b64200000000083166113e2575b64100000000083166113d0575b64080000000083166113be575b64040000000083166113ac575b640200000000831661139a575b640100000000831615610f4857680100000000b17217f802831c610f48565b68010000000162e42ff102831c61137b565b680100000002c5c85fe302831c61136e565b6801000000058b90bfce02831c611361565b68010000000b17217fbb02831c611354565b6801000000162e42fff002831c611347565b68010000002c5c8601cc02831c61133a565b680100000058b90c0b4902831c61132d565b658000000000008316611506575b6540000000000083166114f4575b6520000000000083166114e2575b6510000000000083166114d0575b6508000000000083166114be575b6504000000000083166114ac575b65020000000000831661149a575b65010000000000831615610f3b576801000000b17218355102831c610f3b565b680100000162e430e5a202831c61147a565b6801000002c5c863b73f02831c61146c565b68010000058b90cf1e6e02831c61145e565b680100000b1721bcfc9a02831c611450565b68010000162e43f4f83102831c611442565b680100002c5c89d5ec6d02831c611434565b6801000058b91b5bc9ae02831c611426565b6680000000000000831661160e575b664000000000000083166115fc575b662000000000000083166115ea575b661000000000000083166115d8575b660800000000000083166115c6575b660400000000000083166115b4575b660200000000000083166115a2575b6601000000000000831615610f2d5768010000b17255775c0402831c610f2d565b6801000162e525ee054702831c611581565b68010002c5cc37da949202831c611572565b680100058ba01fb9f96d02831c611563565b6801000b175effdc76ba02831c611554565b680100162f3904051fa102831c611545565b6801002c605e2e8cec5002831c611536565b68010058c86da1c09ea202831c611527565b678000000000000000831661171e575b674000000000000000831661170c575b67200000000000000083166116fa575b67100000000000000083166116e8575b67080000000000000083166116d6575b67040000000000000083166116c4575b67020000000000000083166116b2575b670100000000000000831615610f1e57680100b1afa5abcbed6102831c610f1e565b68010163da9fb33356d802831c611690565b680102c9a3e778060ee702831c611680565b6801059b0d31585743ae02831c611670565b68010b5586cf9890f62a02831c611660565b6801172b83c7d517adce02831c611650565b6801306fe0a31b7152df02831c611640565b5068016a09e667f3bcc909607f1b61163056fea264697066735822122051de1fb3c32307cc00b0a21a4300e96267e072476c0382d060593a6bdc29770264736f6c6343000815003300000000000000000000000029e7df7b6a1b2b07b731457f499e1696c60e2c4e0000000000000000000000005e3ef299fddf15eaa0432e6e66473ace8c13d90800000000000000000000000086380e136a3aad5677a210ad02713694c4e6a5b9",
"nonce": "0x3",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x9b9256",
"logs": [
{
"address": "0x5e875267f65537768435c3c6c81cd313a570b422",
"topics": [
"0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000000ff",
"blockHash": "0x855dcb4682138978bce4b977135f8638273a8599da08331532503b2e6e4ced8d",
"blockNumber": "0x133dee7",
"transactionHash": "0xafd917c394d869e817cb1696aba9d9e4c571805ddd078efd52aeec1a9607a18e",
"transactionIndex": "0x29",
"logIndex": "0xaf",
"removed": false
}
],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000080000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0xafd917c394d869e817cb1696aba9d9e4c571805ddd078efd52aeec1a9607a18e",
"transactionIndex": "0x29",
"blockHash": "0x855dcb4682138978bce4b977135f8638273a8599da08331532503b2e6e4ced8d",
"blockNumber": "0x133dee7",
"gasUsed": "0x14efd7",
"effectiveGasPrice": "0x441f103ed",
"from": "0x32bdc6a4e8c654df65503cbb0edc82b4ce9158e6",
"to": null,
"contractAddress": "0x5e875267f65537768435c3c6c81cd313a570b422"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1719413975,
"chain": 1,
"commit": "6849c18"
}
Loading

0 comments on commit fa3de37

Please sign in to comment.