Skip to content

Commit

Permalink
created script to deploy modified TWCloneFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
GWSzeto committed Nov 27, 2024
1 parent a842cbb commit a753d25
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 0 deletions.
72 changes: 72 additions & 0 deletions broadcast/DeployTWCloneFactory.s.sol/11155420/run-1732659660.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"transactions": [
{
"hash": "0x5898d5145788088003d6fdfb382f24e53f4c1f9d5915f099629fe59c6c8e31fc",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0xba5ed099633d3b313e4d5f7bdc1305d3c28ba5ed",
"function": "deployCreate2(bytes32,bytes)",
"arguments": [
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x6080604052348015600f57600080fd5b506105f28061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806311b804ab14610030575b600080fd5b61004361003e3660046103bd565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60008061007983856101e6565b90506100858582610322565b60405173ffffffffffffffffffffffffffffffffffffffff808316825291935033918716907f9e0862c4ebff2150fbbfd3f8547483f55bdec0c34fd977d3fccaa55d6c4ce7849060200160405180910390a38351156101de5760008273ffffffffffffffffffffffffffffffffffffffff1685604051610105919061050d565b6000604051808303816000865af19150503d8060008114610142576040519150601f19603f3d011682016040523d82523d6000602084013e610147565b606091505b50509050806101dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f5457436c6f6e65466163746f72793a2070726f7879206465706c6f796d656e7460448201527f206661696c656400000000000000000000000000000000000000000000000000606482015260840160405180910390fd5b505b509392505050565b60007f01000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000084831a60f81b1614818460011a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f010000000000000000000000000000000000000000000000000000000000000014905081801561028a5750805b156102c15784846040516020016102a2929190610573565b604051602081830303815290604052805190602001209250505061031c565b8180156102cc575080155b156102db57849250505061031c565b811580156102e65750805b15610300578446856040516020016102a293929190610594565b84466040516020016102a2929190918252602082015260400190565b92915050565b600061033060008484610337565b9392505050565b60006c5af43d3d93803e602a57fd5bf36021528260145273602c3d8160093d39f33d3d3d3d363d3d37363d73600052816035600c86f59050806103825763301164256000526004601cfd5b60006021529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000606084860312156103d257600080fd5b833573ffffffffffffffffffffffffffffffffffffffff811681146103f657600080fd5b9250602084013567ffffffffffffffff81111561041257600080fd5b8401601f8101861361042357600080fd5b803567ffffffffffffffff81111561043d5761043d61038e565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160116810181811067ffffffffffffffff821117156104a9576104a961038e565b6040528181528282016020018810156104c157600080fd5b8160208401602083013760009181016020019190915293969395505050506040919091013590565b60005b838110156105045781810151838201526020016104ec565b50506000910152565b6000825161051f8184602087016104e9565b9190910192915050565b600081518084526105418160208601602086016104e9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b82815260406020820152600061058c6040830184610529565b949350505050565b8381528260208201526060604082015260006105b36060830184610529565b9594505050505056fea2646970667358221220d5461704b9594677d7a86126aca60c5f06d4400561d8ead39fa1226ca6fbf2eb64736f6c634300081a0033"
],
"transaction": {
"from": "0xcd9732a44f49727a638cc436a844f701814c6a61",
"to": "0xba5ed099633d3b313e4d5f7bdc1305d3c28ba5ed",
"gas": "0x896a5",
"value": "0x0",
"input": "0x263076680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000006116080604052348015600f57600080fd5b506105f28061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806311b804ab14610030575b600080fd5b61004361003e3660046103bd565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60008061007983856101e6565b90506100858582610322565b60405173ffffffffffffffffffffffffffffffffffffffff808316825291935033918716907f9e0862c4ebff2150fbbfd3f8547483f55bdec0c34fd977d3fccaa55d6c4ce7849060200160405180910390a38351156101de5760008273ffffffffffffffffffffffffffffffffffffffff1685604051610105919061050d565b6000604051808303816000865af19150503d8060008114610142576040519150601f19603f3d011682016040523d82523d6000602084013e610147565b606091505b50509050806101dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f5457436c6f6e65466163746f72793a2070726f7879206465706c6f796d656e7460448201527f206661696c656400000000000000000000000000000000000000000000000000606482015260840160405180910390fd5b505b509392505050565b60007f01000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000084831a60f81b1614818460011a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f010000000000000000000000000000000000000000000000000000000000000014905081801561028a5750805b156102c15784846040516020016102a2929190610573565b604051602081830303815290604052805190602001209250505061031c565b8180156102cc575080155b156102db57849250505061031c565b811580156102e65750805b15610300578446856040516020016102a293929190610594565b84466040516020016102a2929190918252602082015260400190565b92915050565b600061033060008484610337565b9392505050565b60006c5af43d3d93803e602a57fd5bf36021528260145273602c3d8160093d39f33d3d3d3d363d3d37363d73600052816035600c86f59050806103825763301164256000526004601cfd5b60006021529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000606084860312156103d257600080fd5b833573ffffffffffffffffffffffffffffffffffffffff811681146103f657600080fd5b9250602084013567ffffffffffffffff81111561041257600080fd5b8401601f8101861361042357600080fd5b803567ffffffffffffffff81111561043d5761043d61038e565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160116810181811067ffffffffffffffff821117156104a9576104a961038e565b6040528181528282016020018810156104c157600080fd5b8160208401602083013760009181016020019190915293969395505050506040919091013590565b60005b838110156105045781810151838201526020016104ec565b50506000910152565b6000825161051f8184602087016104e9565b9190910192915050565b600081518084526105418160208601602086016104e9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b82815260406020820152600061058c6040830184610529565b949350505050565b8381528260208201526060604082015260006105b36060830184610529565b9594505050505056fea2646970667358221220d5461704b9594677d7a86126aca60c5f06d4400561d8ead39fa1226ca6fbf2eb64736f6c634300081a0033000000000000000000000000000000",
"nonce": "0x1",
"chainId": "0xaa37dc"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x2e5cf8",
"logs": [
{
"address": "0xba5ed099633d3b313e4d5f7bdc1305d3c28ba5ed",
"topics": [
"0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7",
"0x0000000000000000000000007756d8a084e55d9872bd5bbdf6867543d15866a4",
"0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563"
],
"data": "0x",
"blockHash": "0xea5ab819a93d34fcdda597872686d07726ff1e57c967ece29701b5dd8685297b",
"blockNumber": "0x137b70d",
"transactionHash": "0x5898d5145788088003d6fdfb382f24e53f4c1f9d5915f099629fe59c6c8e31fc",
"transactionIndex": "0x4",
"logIndex": "0x1b",
"removed": false
}
],
"logsBloom": "0x00020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000080000000000010000000000000000000000000020000000000000000000000000000000000000200000000000000000000002000000000000000000040000000000000000001000000000000000000000000000000000000010000000000",
"type": "0x2",
"transactionHash": "0x5898d5145788088003d6fdfb382f24e53f4c1f9d5915f099629fe59c6c8e31fc",
"transactionIndex": "0x4",
"blockHash": "0xea5ab819a93d34fcdda597872686d07726ff1e57c967ece29701b5dd8685297b",
"blockNumber": "0x137b70d",
"gasUsed": "0x5dfbb",
"effectiveGasPrice": "0xf6a4d",
"from": "0xcd9732a44f49727a638cc436a844f701814c6a61",
"to": "0xba5ed099633d3b313e4d5f7bdc1305d3c28ba5ed",
"contractAddress": null,
"l1BaseFeeScalar": "0x1db0",
"l1BlobBaseFee": "0x1",
"l1BlobBaseFeeScalar": "0xd2730",
"l1Fee": "0x51e569407",
"l1GasPrice": "0xb09a7cd",
"l1GasUsed": "0x3d04"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1732659660,
"chain": 11155420,
"commit": "a842cbb"
}
72 changes: 72 additions & 0 deletions broadcast/DeployTWCloneFactory.s.sol/11155420/run-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"transactions": [
{
"hash": "0x5898d5145788088003d6fdfb382f24e53f4c1f9d5915f099629fe59c6c8e31fc",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0xba5ed099633d3b313e4d5f7bdc1305d3c28ba5ed",
"function": "deployCreate2(bytes32,bytes)",
"arguments": [
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x6080604052348015600f57600080fd5b506105f28061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806311b804ab14610030575b600080fd5b61004361003e3660046103bd565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60008061007983856101e6565b90506100858582610322565b60405173ffffffffffffffffffffffffffffffffffffffff808316825291935033918716907f9e0862c4ebff2150fbbfd3f8547483f55bdec0c34fd977d3fccaa55d6c4ce7849060200160405180910390a38351156101de5760008273ffffffffffffffffffffffffffffffffffffffff1685604051610105919061050d565b6000604051808303816000865af19150503d8060008114610142576040519150601f19603f3d011682016040523d82523d6000602084013e610147565b606091505b50509050806101dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f5457436c6f6e65466163746f72793a2070726f7879206465706c6f796d656e7460448201527f206661696c656400000000000000000000000000000000000000000000000000606482015260840160405180910390fd5b505b509392505050565b60007f01000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000084831a60f81b1614818460011a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f010000000000000000000000000000000000000000000000000000000000000014905081801561028a5750805b156102c15784846040516020016102a2929190610573565b604051602081830303815290604052805190602001209250505061031c565b8180156102cc575080155b156102db57849250505061031c565b811580156102e65750805b15610300578446856040516020016102a293929190610594565b84466040516020016102a2929190918252602082015260400190565b92915050565b600061033060008484610337565b9392505050565b60006c5af43d3d93803e602a57fd5bf36021528260145273602c3d8160093d39f33d3d3d3d363d3d37363d73600052816035600c86f59050806103825763301164256000526004601cfd5b60006021529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000606084860312156103d257600080fd5b833573ffffffffffffffffffffffffffffffffffffffff811681146103f657600080fd5b9250602084013567ffffffffffffffff81111561041257600080fd5b8401601f8101861361042357600080fd5b803567ffffffffffffffff81111561043d5761043d61038e565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160116810181811067ffffffffffffffff821117156104a9576104a961038e565b6040528181528282016020018810156104c157600080fd5b8160208401602083013760009181016020019190915293969395505050506040919091013590565b60005b838110156105045781810151838201526020016104ec565b50506000910152565b6000825161051f8184602087016104e9565b9190910192915050565b600081518084526105418160208601602086016104e9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b82815260406020820152600061058c6040830184610529565b949350505050565b8381528260208201526060604082015260006105b36060830184610529565b9594505050505056fea2646970667358221220d5461704b9594677d7a86126aca60c5f06d4400561d8ead39fa1226ca6fbf2eb64736f6c634300081a0033"
],
"transaction": {
"from": "0xcd9732a44f49727a638cc436a844f701814c6a61",
"to": "0xba5ed099633d3b313e4d5f7bdc1305d3c28ba5ed",
"gas": "0x896a5",
"value": "0x0",
"input": "0x263076680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000006116080604052348015600f57600080fd5b506105f28061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806311b804ab14610030575b600080fd5b61004361003e3660046103bd565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60008061007983856101e6565b90506100858582610322565b60405173ffffffffffffffffffffffffffffffffffffffff808316825291935033918716907f9e0862c4ebff2150fbbfd3f8547483f55bdec0c34fd977d3fccaa55d6c4ce7849060200160405180910390a38351156101de5760008273ffffffffffffffffffffffffffffffffffffffff1685604051610105919061050d565b6000604051808303816000865af19150503d8060008114610142576040519150601f19603f3d011682016040523d82523d6000602084013e610147565b606091505b50509050806101dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f5457436c6f6e65466163746f72793a2070726f7879206465706c6f796d656e7460448201527f206661696c656400000000000000000000000000000000000000000000000000606482015260840160405180910390fd5b505b509392505050565b60007f01000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000084831a60f81b1614818460011a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f010000000000000000000000000000000000000000000000000000000000000014905081801561028a5750805b156102c15784846040516020016102a2929190610573565b604051602081830303815290604052805190602001209250505061031c565b8180156102cc575080155b156102db57849250505061031c565b811580156102e65750805b15610300578446856040516020016102a293929190610594565b84466040516020016102a2929190918252602082015260400190565b92915050565b600061033060008484610337565b9392505050565b60006c5af43d3d93803e602a57fd5bf36021528260145273602c3d8160093d39f33d3d3d3d363d3d37363d73600052816035600c86f59050806103825763301164256000526004601cfd5b60006021529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000606084860312156103d257600080fd5b833573ffffffffffffffffffffffffffffffffffffffff811681146103f657600080fd5b9250602084013567ffffffffffffffff81111561041257600080fd5b8401601f8101861361042357600080fd5b803567ffffffffffffffff81111561043d5761043d61038e565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160116810181811067ffffffffffffffff821117156104a9576104a961038e565b6040528181528282016020018810156104c157600080fd5b8160208401602083013760009181016020019190915293969395505050506040919091013590565b60005b838110156105045781810151838201526020016104ec565b50506000910152565b6000825161051f8184602087016104e9565b9190910192915050565b600081518084526105418160208601602086016104e9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b82815260406020820152600061058c6040830184610529565b949350505050565b8381528260208201526060604082015260006105b36060830184610529565b9594505050505056fea2646970667358221220d5461704b9594677d7a86126aca60c5f06d4400561d8ead39fa1226ca6fbf2eb64736f6c634300081a0033000000000000000000000000000000",
"nonce": "0x1",
"chainId": "0xaa37dc"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x2e5cf8",
"logs": [
{
"address": "0xba5ed099633d3b313e4d5f7bdc1305d3c28ba5ed",
"topics": [
"0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7",
"0x0000000000000000000000007756d8a084e55d9872bd5bbdf6867543d15866a4",
"0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563"
],
"data": "0x",
"blockHash": "0xea5ab819a93d34fcdda597872686d07726ff1e57c967ece29701b5dd8685297b",
"blockNumber": "0x137b70d",
"transactionHash": "0x5898d5145788088003d6fdfb382f24e53f4c1f9d5915f099629fe59c6c8e31fc",
"transactionIndex": "0x4",
"logIndex": "0x1b",
"removed": false
}
],
"logsBloom": "0x00020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000080000000000010000000000000000000000000020000000000000000000000000000000000000200000000000000000000002000000000000000000040000000000000000001000000000000000000000000000000000000010000000000",
"type": "0x2",
"transactionHash": "0x5898d5145788088003d6fdfb382f24e53f4c1f9d5915f099629fe59c6c8e31fc",
"transactionIndex": "0x4",
"blockHash": "0xea5ab819a93d34fcdda597872686d07726ff1e57c967ece29701b5dd8685297b",
"blockNumber": "0x137b70d",
"gasUsed": "0x5dfbb",
"effectiveGasPrice": "0xf6a4d",
"from": "0xcd9732a44f49727a638cc436a844f701814c6a61",
"to": "0xba5ed099633d3b313e4d5f7bdc1305d3c28ba5ed",
"contractAddress": null,
"l1BaseFeeScalar": "0x1db0",
"l1BlobBaseFee": "0x1",
"l1BlobBaseFeeScalar": "0xd2730",
"l1Fee": "0x51e569407",
"l1GasPrice": "0xb09a7cd",
"l1GasUsed": "0x3d04"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1732659660,
"chain": 11155420,
"commit": "a842cbb"
}
Loading

0 comments on commit a753d25

Please sign in to comment.