Skip to content

Commit

Permalink
finished
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaopengjun5162 committed Jul 29, 2024
1 parent 0736f76 commit f3ac330
Show file tree
Hide file tree
Showing 7 changed files with 1,606 additions and 10 deletions.
Binary file added assets/image-20240729200513578.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image-20240729200912921.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image-20240729201501613.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
95 changes: 95 additions & 0 deletions broadcast/TokenFactoryV2.s.sol/11155111/run-1722250557.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"transactions": [
{
"hash": "0x972522bfb2d9be2f6fa3fd59cc9c140542eb0b1193c7619da6ac329f43bd72ed",
"transactionType": "CREATE",
"contractName": "TokenFactoryV2",
"contractAddress": "0x89a14b4b7c9ec826c1a3c38def97b90565503992",
"function": null,
"arguments": null,
"transaction": {
"from": "0x750ea21c1e98cced0d4557196b6f4a5974ccb6f5",
"gas": "0x16b8d3",
"value": "0x0",
"input": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100d4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100725760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d15780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b60805161134a6100fd60003960008181610b8201528181610bab0152610cf1015261134a6000f3fe6080604052600436106100f35760003560e01c8063949d225d1161008a578063c4d66de811610059578063c4d66de81461028c578063d57fa2b6146102ac578063ec81aadb146102e2578063f2fde38b1461030257600080fd5b8063949d225d146101f9578063ad3cb1cc1461020e578063af7c6e551461024c578063b341458a1461027957600080fd5b80634f1ef286116100c65780634f1ef2861461018f57806352d1902d146101a2578063715018a6146101b75780638da5cb5b146101cc57600080fd5b8063204120bc146100f857806326a4e8d2146101385780633ccfd60b1461015a5780633ef8af431461016f575b600080fd5b34801561010457600080fd5b50610125610113366004611025565b60026020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561014457600080fd5b50610158610153366004611025565b610322565b005b34801561016657600080fd5b5061015861034c565b34801561017b57600080fd5b5061015861018a3660046110cc565b6103e2565b61015861019d366004611134565b6106df565b3480156101ae57600080fd5b506101256106fa565b3480156101c357600080fd5b50610158610717565b3480156101d857600080fd5b506101e161072b565b6040516001600160a01b03909116815260200161012f565b34801561020557600080fd5b50600154610125565b34801561021a57600080fd5b5061023f604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161012f91906111e6565b34801561025857600080fd5b50610125610267366004611025565b60036020526000908152604090205481565b610158610287366004611025565b610759565b34801561029857600080fd5b506101586102a7366004611025565b61090e565b3480156102b857600080fd5b506101e16102c7366004611025565b6004602052600090815260409020546001600160a01b031681565b3480156102ee57600080fd5b506101e16102fd3660046111f9565b610a26565b34801561030e57600080fd5b5061015861031d366004611025565b610a50565b61032a610a8e565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b610354610a8e565b478061039e5760405162461bcd60e51b81526020600482015260146024820152734e6f2066756e647320746f20776974686472617760601b60448201526064015b60405180910390fd5b6103a661072b565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156103de573d6000803e3d6000fd5b5050565b600084511161042c5760405162461bcd60e51b815260206004820152601660248201527553796d626f6c2063616e6e6f7420626520656d70747960501b6044820152606401610395565b6000831161048b5760405162461bcd60e51b815260206004820152602660248201527f546f74616c20737570706c79206d7573742062652067726561746572207468616044820152656e207a65726f60d01b6064820152608401610395565b600082116104e65760405162461bcd60e51b815260206004820152602260248201527f506572206d696e74206d7573742062652067726561746572207468616e207a65604482015261726f60f01b6064820152608401610395565b600081116105365760405162461bcd60e51b815260206004820152601f60248201527f5072696365206d7573742062652067726561746572207468616e207a65726f006044820152606401610395565b6000546001600160a01b03166105985760405162461bcd60e51b815260206004820152602160248201527f496d706c656d656e746174696f6e2061646472657373206973206e6f742073656044820152601d60fa1b6064820152608401610395565b6105ba6040518060600160405280602781526020016112ce6027913933610ac0565b600080546105d0906001600160a01b0316610b05565b604051637433462960e11b81529091506001600160a01b0382169063e8668c5290610605903390899089908990600401611212565b600060405180830381600087803b15801561061f57600080fd5b505af1158015610633573d6000803e3d6000fd5b5050600180548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03199081166001600160a01b0386169081179092556000828152600260209081526040808320899055600382528083208a90556004909152808220805433941684179055518795509193507feff7155918865c0cf825001d51831de8285d88e661dea1d706f9c64211816b5191a45050505050565b6106e7610b77565b6106f082610c1c565b6103de8282610c24565b6000610704610ce6565b506000805160206112f583398151915290565b61071f610a8e565b6107296000610d2f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b03808216600090815260026020908152604080832054600383528184205460049093529220548493166107938284611249565b3410156107d65760405162461bcd60e51b8152602060048201526011602482015270125b98dbdc9c9958dd081c185e5b595b9d607a1b6044820152606401610395565b6040516335313c2160e11b81523360048201526001600160a01b03851690636a62784290602401600060405180830381600087803b15801561081757600080fd5b505af115801561082b573d6000803e3d6000fd5b505050506000816001600160a01b03163460405160006040518083038185875af1925050503d806000811461087c576040519150601f19603f3d011682016040523d82523d6000602084013e610881565b606091505b50509050806108c55760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610395565b34826001600160a01b0316876001600160a01b03167f30ec8252c6daf0651c3708437cd3947ffa8789a74488d4a9d22fa53b48d545e460405160405180910390a4505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156109545750825b905060008267ffffffffffffffff1660011480156109715750303b155b90508115801561097f575080155b1561099d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156109c757845460ff60401b1916600160401b1785555b6109d086610da0565b6109d8610db1565b8315610a1e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b60018181548110610a3657600080fd5b6000918252602090912001546001600160a01b0316905081565b610a58610a8e565b6001600160a01b038116610a8257604051631e4fbdf760e01b815260006004820152602401610395565b610a8b81610d2f565b50565b33610a9761072b565b6001600160a01b0316146107295760405163118cdaa760e01b8152336004820152602401610395565b6103de8282604051602401610ad692919061126e565b60408051601f198184030181529190526020810180516001600160e01b031663319af33360e01b179052610db9565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b038116610b72576040516330be1a3d60e21b815260040160405180910390fd5b919050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610bfe57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610bf26000805160206112f5833981519152546001600160a01b031690565b6001600160a01b031614155b156107295760405163703e46dd60e11b815260040160405180910390fd5b610a8b610a8e565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610c7e575060408051601f3d908101601f19168201909252610c7b91810190611298565b60015b610ca657604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610395565b6000805160206112f58339815191528114610cd757604051632a87526960e21b815260048101829052602401610395565b610ce18383610dc2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610da8610e18565b610a8b81610e61565b610729610e18565b610a8b81610e69565b610dcb82610e8a565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610e1057610ce18282610eef565b6103de610f67565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661072957604051631afcd79f60e31b815260040160405180910390fd5b610a58610e18565b80516a636f6e736f6c652e6c6f67602083016000808483855afa5050505050565b806001600160a01b03163b600003610ec057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610395565b6000805160206112f583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610f0c91906112b1565b600060405180830381855af49150503d8060008114610f47576040519150601f19603f3d011682016040523d82523d6000602084013e610f4c565b606091505b5091509150610f5c858383610f86565b925050505b92915050565b34156107295760405163b398979f60e01b815260040160405180910390fd5b606082610f9b57610f9682610fe5565b610fde565b8151158015610fb257506001600160a01b0384163b155b15610fdb57604051639996b31560e01b81526001600160a01b0385166004820152602401610395565b50805b9392505050565b805115610ff55780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b0381168114610b7257600080fd5b60006020828403121561103757600080fd5b610fde8261100e565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561107157611071611040565b604051601f8501601f19908116603f0116810190828211818310171561109957611099611040565b816040528093508581528686860111156110b257600080fd5b858560208301376000602087830101525050509392505050565b600080600080608085870312156110e257600080fd5b843567ffffffffffffffff8111156110f957600080fd5b8501601f8101871361110a57600080fd5b61111987823560208401611056565b97602087013597506040870135966060013595509350505050565b6000806040838503121561114757600080fd5b6111508361100e565b9150602083013567ffffffffffffffff81111561116c57600080fd5b8301601f8101851361117d57600080fd5b61118c85823560208401611056565b9150509250929050565b60005b838110156111b1578181015183820152602001611199565b50506000910152565b600081518084526111d2816020860160208601611196565b601f01601f19169290920160200192915050565b602081526000610fde60208301846111ba565b60006020828403121561120b57600080fd5b5035919050565b6001600160a01b0385168152608060208201819052600090611236908301866111ba565b6040830194909452506060015292915050565b8082028115828204841417610f6157634e487b7160e01b600052601160045260246000fd5b60408152600061128160408301856111ba565b905060018060a01b03831660208301529392505050565b6000602082840312156112aa57600080fd5b5051919050565b600082516112c3818460208701611196565b919091019291505056fe6465706c6f79496e736372697074696f6e20206d73672e73656e6465722c20616464726573733a360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122024e97f259c62d9ba16fca8ceb047805e03f12f943e458b863f8e06c60cb0513b64736f6c63430008140033",
"nonce": "0x70",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0xe5b59be48f86a25d764d7614687339fd1035417872fefd7d3f98020777290ea4",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x90635ff2ff7e64872848612ad6b943b04b089db0",
"function": "UPGRADE_INTERFACE_VERSION()",
"arguments": [],
"transaction": {
"from": "0x750ea21c1e98cced0d4557196b6f4a5974ccb6f5",
"to": "0x90635ff2ff7e64872848612ad6b943b04b089db0",
"gas": "0x976b",
"value": "0x0",
"input": "0xad3cb1cc",
"nonce": "0x71",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0x560a22dc01349962cd279a754dc405a9099c6b8b70704767be922e49bbd677d8",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x90635ff2ff7e64872848612ad6b943b04b089db0",
"function": "upgradeToAndCall(address,bytes)",
"arguments": [
"0x89A14B4b7c9Ec826C1a3C38deF97b90565503992",
"0x"
],
"transaction": {
"from": "0x750ea21c1e98cced0d4557196b6f4a5974ccb6f5",
"to": "0x90635ff2ff7e64872848612ad6b943b04b089db0",
"gas": "0xcaf2",
"value": "0x0",
"input": "0x4f1ef28600000000000000000000000089a14b4b7c9ec826c1a3c38def97b9056550399200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x72",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": null,
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x90635ff2ff7e64872848612ad6b943b04b089db0",
"function": "setTokenAddress(address)",
"arguments": [
"0x65869BaA9336F8968704F2dd60C40959a7bD202b"
],
"transaction": {
"from": "0x750ea21c1e98cced0d4557196b6f4a5974ccb6f5",
"to": "0x90635ff2ff7e64872848612ad6b943b04b089db0",
"gas": "0x1136d",
"value": "0x0",
"input": "0x26a4e8d200000000000000000000000065869baa9336f8968704f2dd60c40959a7bd202b",
"nonce": "0x73",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [
"0x972522bfb2d9be2f6fa3fd59cc9c140542eb0b1193c7619da6ac329f43bd72ed",
"0xe5b59be48f86a25d764d7614687339fd1035417872fefd7d3f98020777290ea4",
"0x560a22dc01349962cd279a754dc405a9099c6b8b70704767be922e49bbd677d8"
],
"returns": {},
"timestamp": 1722250557,
"chain": 11155111,
"commit": "0736f76"
}
Loading

0 comments on commit f3ac330

Please sign in to comment.