Skip to content

Commit

Permalink
Merge pull request #25 from Anotherblock/hotfix/withdraw
Browse files Browse the repository at this point in the history
Hotfix/withdraw
  • Loading branch information
0xPilou authored Dec 22, 2023
2 parents 3a36c5c + b16c22b commit 47ee227
Show file tree
Hide file tree
Showing 13 changed files with 344 additions and 23 deletions.
33 changes: 33 additions & 0 deletions broadcast/deploy-hotfix.s.sol/8453/run-1702980881.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"transactions": [
{
"hash": "0xc6893027f188c04b05945d75e05a8ffc50262bc20b7a9dfc5738c30f7703b607",
"transactionType": "CREATE",
"contractName": "ABDataRegistry",
"contractAddress": "0x798728E4f25564b28E6a99Ba847693eBbDA0bB27",
"function": null,
"arguments": null,
"transaction": {
"type": "0x02",
"from": "0x2bbc44d4449e947d3612c2b16147d9206eaed990",
"gas": "0x1b8aad",
"value": "0x0",
"data": "0x608060405234801561001057600080fd5b5061001961001e565b6100de565b600054610100900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811610156100dc576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6117ac806100ed6000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c806371ef9a931161010f578063b9138580116100a2578063d547741f11610071578063d547741f14610539578063da35a26f1461054c578063dd3394aa1461055f578063f0f442601461057257600080fd5b8063b9138580146104e0578063b9d4739214610500578063c70eae8c14610513578063cb9685ba1461052657600080fd5b806391d14854116100de57806391d148541461049f578063977f82ba146104b2578063a217fddf146104c5578063ae98d857146104cd57600080fd5b806371ef9a931461043a5780638353b9191461044d5780638392767d146104605780638ffaa1401461047357600080fd5b8063248a9ca3116101875780635134b49a116101565780635134b49a146103a25780635eb39968146103c5578063608ebea11461040757806369ca69a51461041a57600080fd5b8063248a9ca31461032b5780632f2ff15d1461034e57806336568abe1461036157806341859ac81461037457600080fd5b806308e80811116101c357806308e80811146102705780630a4d85cd146102c0578063145f8dd41461030157806319742e6c1461031657600080fd5b806301ffc9a7146101ea57806304a0fb1714610212578063069a9b6414610247575b600080fd5b6101fd6101f836600461127a565b610585565b60405190151581526020015b60405180910390f35b6102397fdfbefbf47cfe66b701d8cfdbce1de81c821590819cb07e71cb01b6602fb0ee2781565b604051908152602001610209565b6102396102553660046112c0565b6001600160a01b031660009081526099602052604090205490565b6102a161027e3660046112c0565b6001600160a01b03908116600090815260996020526040902054609b5490911691565b604080516001600160a01b039093168352602083019190915201610209565b6102e96102ce3660046112c0565b6098602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610209565b61023960008051602061175783398151915281565b6103296103243660046112db565b6105bc565b005b610239610339366004611315565b60009081526065602052604090206001015490565b61032961035c36600461132e565b610616565b61032961036f36600461132e565b610640565b6101fd6103823660046112c0565b6001600160a01b0390811660009081526098602052604090205416151590565b6101fd6103b0366004611315565b609c6020526000908152604090205460ff1681565b6103d86103d3366004611315565b6106c3565b6040805194855260208501939093526001600160a01b0391821692840192909252166060820152608001610209565b6102a161041536600461135a565b610709565b610239610428366004611315565b609d6020526000908152604090205481565b61032961044836600461135a565b610767565b61032961045b366004611384565b6107cc565b609b546102e9906001600160a01b031681565b6102e96104813660046112c0565b6001600160a01b039081166000908152609860205260409020541690565b6101fd6104ad36600461132e565b6108a0565b6103296104c03660046113c0565b6108cb565b610239600081565b6102396104db366004611384565b610973565b6102396104ee3660046112c0565b60996020526000908152604090205481565b61032961050e366004611415565b610b67565b6103296105213660046112c0565b610bc8565b6103296105343660046114f0565b610c0a565b61032961054736600461132e565b610c69565b61032961055a36600461132e565b610c8e565b61032961056d366004611586565b610dff565b6103296105803660046112c0565b610eab565b60006001600160e01b03198216637965db0b60e01b14806105b657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006105c781610ed9565b6127108211156105ea57604051632627b42d60e11b815260040160405180910390fd5b506000918252609c60209081526040808420805460ff191695151595909517909455609d905291902055565b60008281526065602052604090206001015461063181610ed9565b61063b8383610ee6565b505050565b6001600160a01b03811633146106b55760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6106bf8282610f6c565b5050565b609a81815481106106d357600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350916001600160a01b03908116911684565b6000818152609c6020526040812054819060ff161561073757506000828152609d6020526040902054610752565b506001600160a01b0383166000908152609960205260409020545b609b546001600160a01b031694909350915050565b600061077281610ed9565b6001600160a01b038316600081815260996020908152604091829020859055815192835282018490527fc1c540da095b5b6d54738e18568e3c832ae9d1a26f1abeb3e69efde2d4fd6ec291015b60405180910390a1505050565b7fdfbefbf47cfe66b701d8cfdbce1de81c821590819cb07e71cb01b6602fb0ee276107f681610ed9565b6001600160a01b03848116600090815260986020526040902054161561082f5760405163515567cf60e01b815260040160405180910390fd5b6001600160a01b03848116600081815260986020908152604080832080546001600160a01b0319169589169586179055609982529182902086905590519182527fb0c28f4dd5b8aa95e332651d07f6930a2f9d46ae2bc4bfa73e2f33e478a1269b910160405180910390a250505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206117578339815191526108e381610ed9565b6001600160a01b03868116600090815260986020526040908190205490516323f4440760e21b81528783166004820152868316602482015260448101869052606481018590529116908190638fd1101c906084015b600060405180830381600087803b15801561095257600080fd5b505af1158015610966573d6000803e3d6000fd5b5050505050505050505050565b600060008051602061175783398151915261098d81610ed9565b610995610fd3565b6040805160808101825282815260208082018781526001600160a01b038a81168486018181523360608701818152609a8054600181018255600091909152975160049098027f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be481019890985594517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be588015590517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be6870180549185166001600160a01b031992831617905593517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be790960180549690931695909316949094179055835190815290810191909152919350849184917f5cbfe9cceabf50e9fcfff39e46cd47b1667ad148238648e99aee4fa0e1193d43910160405180910390a36001600160a01b03841615610b5f576001600160a01b0385811660009081526098602052604090819020549051633670855b60e11b8152336004820152868316602482015260448101859052911690636ce10ab690606401600060405180830381600087803b158015610b4657600080fd5b505af1158015610b5a573d6000803e3d6000fd5b505050505b509392505050565b6000610b7281610ed9565b6001600160a01b038216610b9957604051632627b42d60e11b815260040160405180910390fd5b506001600160a01b03918216600090815260986020526040902080546001600160a01b03191691909216179055565b7fdfbefbf47cfe66b701d8cfdbce1de81c821590819cb07e71cb01b6602fb0ee27610bf281610ed9565b6106bf60008051602061175783398151915283610ee6565b600080516020611757833981519152610c2281610ed9565b6001600160a01b038087166000908152609860205260409081902054905163d518b7ff60e01b8152911690819063d518b7ff906109389089908990899089906004016115df565b600082815260656020526040902060010154610c8481610ed9565b61063b8383610f6c565b600054610100900460ff1615808015610cae5750600054600160ff909116105b80610cc85750303b158015610cc8575060005460ff166001145b610d2b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016106ac565b6000805460ff191660011790558015610d4e576000805461ff0019166101001790555b610d56610ff5565b610d61600033611062565b6097839055609b80546001600160a01b0319166001600160a01b03841690811790915560408051918252602082018590527fa4888636278c973bcfd5eca8f86d67bf0c980edbf1740721c6f229b0421ae1e2910160405180910390a1801561063b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020016107bf565b6000610e0a81610ed9565b6001600160a01b038085166000908152609860205260409020541680610e4357604051632627b42d60e11b815260040160405180910390fd5b60405163b08805a560e01b815260048101859052602481018490526001600160a01b0382169063b08805a590604401600060405180830381600087803b158015610e8c57600080fd5b505af1158015610ea0573d6000803e3d6000fd5b505050505050505050565b6000610eb681610ed9565b50609b80546001600160a01b0319166001600160a01b0392909216919091179055565b610ee3813361106c565b50565b610ef082826108a0565b6106bf5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610f283390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610f7682826108a0565b156106bf5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b609a54609754600091610fe591611633565b610ff0906001611633565b905090565b600054610100900460ff166110605760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106ac565b565b6106bf8282610ee6565b61107682826108a0565b6106bf57611083816110c5565b61108e8360206110d7565b60405160200161109f92919061166a565b60408051601f198184030181529082905262461bcd60e51b82526106ac916004016116df565b60606105b66001600160a01b03831660145b606060006110e6836002611712565b6110f1906002611633565b67ffffffffffffffff8111156111095761110961143f565b6040519080825280601f01601f191660200182016040528015611133576020820181803683370190505b509050600360fc1b8160008151811061114e5761114e611729565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061117d5761117d611729565b60200101906001600160f81b031916908160001a90535060006111a1846002611712565b6111ac906001611633565b90505b6001811115611224576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106111e0576111e0611729565b1a60f81b8282815181106111f6576111f6611729565b60200101906001600160f81b031916908160001a90535060049490941c9361121d8161173f565b90506111af565b5083156112735760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106ac565b9392505050565b60006020828403121561128c57600080fd5b81356001600160e01b03198116811461127357600080fd5b80356001600160a01b03811681146112bb57600080fd5b919050565b6000602082840312156112d257600080fd5b611273826112a4565b6000806000606084860312156112f057600080fd5b8335801515811461130057600080fd5b95602085013595506040909401359392505050565b60006020828403121561132757600080fd5b5035919050565b6000806040838503121561134157600080fd5b82359150611351602084016112a4565b90509250929050565b6000806040838503121561136d57600080fd5b611376836112a4565b946020939093013593505050565b60008060006060848603121561139957600080fd5b6113a2846112a4565b92506113b0602085016112a4565b9150604084013590509250925092565b600080600080600060a086880312156113d857600080fd5b6113e1866112a4565b94506113ef602087016112a4565b93506113fd604087016112a4565b94979396509394606081013594506080013592915050565b6000806040838503121561142857600080fd5b611431836112a4565b9150611351602084016112a4565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261146657600080fd5b8135602067ffffffffffffffff808311156114835761148361143f565b8260051b604051601f19603f830116810181811084821117156114a8576114a861143f565b6040529384528581018301938381019250878511156114c657600080fd5b83870191505b848210156114e5578135835291830191908301906114cc565b979650505050505050565b600080600080600060a0868803121561150857600080fd5b611511866112a4565b945061151f602087016112a4565b935061152d604087016112a4565b9250606086013567ffffffffffffffff8082111561154a57600080fd5b61155689838a01611455565b9350608088013591508082111561156c57600080fd5b5061157988828901611455565b9150509295509295909350565b60008060006060848603121561159b57600080fd5b611300846112a4565b600081518084526020808501945080840160005b838110156115d4578151875295820195908201906001016115b8565b509495945050505050565b6001600160a01b0385811682528416602082015260806040820181905260009061160b908301856115a4565b82810360608401526114e581856115a4565b634e487b7160e01b600052601160045260246000fd5b808201808211156105b6576105b661161d565b60005b83811015611661578181015183820152602001611649565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516116a2816017850160208801611646565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516116d3816028840160208801611646565b01602801949350505050565b60208152600082518060208401526116fe816040850160208701611646565b601f01601f19169190910160400192915050565b80820281158282048414176105b6576105b661161d565b634e487b7160e01b600052603260045260246000fd5b60008161174e5761174e61161d565b50600019019056fe40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4ca26469706673582212204d58796f0bac703aff0db4af802326d9de75e8bf252f8c6e1c934fafd5dfa70b64736f6c63430008130033",
"nonce": "0x75",
"accessList": []
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [
"0xc6893027f188c04b05945d75e05a8ffc50262bc20b7a9dfc5738c30f7703b607"
],
"returns": {},
"timestamp": 1702980881,
"chain": 8453,
"multi": false,
"commit": "e1e5a97"
}
Loading

0 comments on commit 47ee227

Please sign in to comment.