From ecfec67ee06548512449384cf2f599026b527879 Mon Sep 17 00:00:00 2001 From: chefburger Date: Wed, 21 Aug 2024 14:20:32 +0800 Subject: [PATCH] deploy: adding deployment scripts --- .../97/run-1724218074.json | 49 +++++++++++++++++++ .../97/run-latest.json | 49 +++++++++++++++++++ .../97/run-1724219235.json | 29 +++++++++++ .../97/run-1724220704.json | 46 +++++++++++++++++ .../97/run-latest.json | 46 +++++++++++++++++ .../97/run-1724220894.json | 49 +++++++++++++++++++ .../97/run-latest.json | 49 +++++++++++++++++++ .../97/run-1724221188.json | 49 +++++++++++++++++++ .../97/run-latest.json | 49 +++++++++++++++++++ foundry.toml | 5 +- script/01_DeployMockVeToken.s.sol | 26 ++++++++++ script/02_DeployCLVeCakeExclusiveHook.s.sol | 34 +++++++++++++ script/03_DeployBinVeCakeExclusiveHook.s.sol | 34 +++++++++++++ script/BaseScript.sol | 29 +++++++++++ script/config/bsc-testnet.json | 17 +++++++ 15 files changed, 559 insertions(+), 1 deletion(-) create mode 100644 broadcast/01_DeployCLVeCakeExclusiveHook.s.sol/97/run-1724218074.json create mode 100644 broadcast/01_DeployCLVeCakeExclusiveHook.s.sol/97/run-latest.json create mode 100644 broadcast/01_DeployMockVeToken.s.sol/97/run-1724219235.json create mode 100644 broadcast/01_DeployMockVeToken.s.sol/97/run-1724220704.json create mode 100644 broadcast/01_DeployMockVeToken.s.sol/97/run-latest.json create mode 100644 broadcast/02_DeployCLVeCakeExclusiveHook.s.sol/97/run-1724220894.json create mode 100644 broadcast/02_DeployCLVeCakeExclusiveHook.s.sol/97/run-latest.json create mode 100644 broadcast/03_DeployBinVeCakeExclusiveHook.s.sol/97/run-1724221188.json create mode 100644 broadcast/03_DeployBinVeCakeExclusiveHook.s.sol/97/run-latest.json create mode 100644 script/01_DeployMockVeToken.s.sol create mode 100644 script/02_DeployCLVeCakeExclusiveHook.s.sol create mode 100644 script/03_DeployBinVeCakeExclusiveHook.s.sol create mode 100644 script/BaseScript.sol create mode 100644 script/config/bsc-testnet.json diff --git a/broadcast/01_DeployCLVeCakeExclusiveHook.s.sol/97/run-1724218074.json b/broadcast/01_DeployCLVeCakeExclusiveHook.s.sol/97/run-1724218074.json new file mode 100644 index 0000000..7494997 --- /dev/null +++ b/broadcast/01_DeployCLVeCakeExclusiveHook.s.sol/97/run-1724218074.json @@ -0,0 +1,49 @@ +{ + "transactions": [ + { + "hash": "0x0576146bdc0470c4aa0321c9da4183a6eebbba8c24989172ae10fefca7c42483", + "transactionType": "CREATE", + "contractName": "CLVeCakeExclusiveHook", + "contractAddress": "0xa25ecd559680c77185a00a00e33bd9df14a5133e", + "function": null, + "arguments": [ + "0x40a081A39E9638fa6e2463B92A4eff4Bdf877179", + "0x0000000000000000000000000000000000000000" + ], + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xa0abd", + "value": "0x0", + "input": "0x60c080604052346100ff57604081610958803803809161001f8285610116565b8339810103126100ff578051906001600160a01b038216908183036100ff57602001516001600160a01b03811692908390036100ff5760805260405163fbfa77cf60e01b815290602090829060049082905afa90811561010b575f916100c5575b5060a0525f80546001600160a01b03191691909117905560405161080a908161014e823960805181818161022a0152610398015260a05181818160da01526103fc0152f35b90506020813d602011610103575b816100e060209383610116565b810103126100ff57516001600160a01b03811681036100ff575f610080565b5f80fd5b3d91506100d3565b6040513d5f823e3d90fd5b601f909101601f19168101906001600160401b0382119082101761013957604052565b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f803560e01c9081631ffe6a581461053f5781634b6a682d1461053a5781635304d44e1461053a5781636f6657cb146104e65781637aa43ce0146103bc578163972e19a214610484578163ab6291fe146103c1578163d533c4db146103bc578163dc4c90d314610379578163e592dc93146101ca578163e8246c7f146100b6578163f961d1f414610101578163fbfa77cf146100bb575063fe70c9c9146100b6575f80fd5b6106bb565b346100fe57806003193601126100fe5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b346101c6575f3660031901126101c6576040516101c0810181811067ffffffffffffffff821117610199575f916101a0916040528281528260208201528260408201528260608201528260808201528260a0820152600160c08201528260e082015282610100820152826101208201528261014082015282610160820152826101808201520152602060405161ffff60405f17168152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f80fd5b346101c6576101603660031901126101c6576101e461059d565b5060c03660231901126101c65760603660e31901126101c6576101443567ffffffffffffffff81116101c65761021e9036906004016105c9565b50506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361035157602460206001600160a01b035f5416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523260048301525afa8015610346575f9061030c575b670de0b6b3a76400009150106102e45760606040517fe592dc930000000000000000000000000000000000000000000000000000000081525f60208201525f6040820152f35b7fcb1d19a0000000000000000000000000000000000000000000000000000000005f5260045ffd5b506020813d60201161033e575b816103266020938361071a565b810103126101c657670de0b6b3a7640000905161029e565b3d9150610319565b6040513d5f823e3d90fd5b7fae18210a000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101c6575f3660031901126101c65760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b61065c565b346101c65760203660031901126101c65760043567ffffffffffffffff81116101c6576103f29036906004016105c9565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361045c5761043060409160209361073c565b815192839181835280519182918282860152018484015e5f828201840152601f01601f19168101030190f35b7f62df0545000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101c6576101203660031901126101c65761049e61059d565b5060c03660231901126101c6576104b36105b3565b506101043567ffffffffffffffff81116101c6576104d59036906004016105c9565b5050630a85dc2960e01b5f5260045ffd5b346101c6576101803660031901126101c65761050061059d565b5060c03660231901126101c65760603660e31901126101c6576101643567ffffffffffffffff81116101c6576104d59036906004016105c9565b6105f7565b346101c6576101403660031901126101c65761055961059d565b5060c03660231901126101c65761056e6105b3565b50610104358060020b036101c6576101243567ffffffffffffffff81116101c6576104d59036906004016105c9565b600435906001600160a01b03821682036101c657565b60e435906001600160a01b03821682036101c657565b9181601f840112156101c65782359167ffffffffffffffff83116101c657602083818601950101116101c657565b346101c6576101403660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c6576101243567ffffffffffffffff81116101c65761064a9036906004016105c9565b905050630a85dc2960e01b5f5260045ffd5b346101c6576101a03660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c65760803660e31901126101c6576101843567ffffffffffffffff81116101c65761064a9036906004016105c9565b346101c6576101803660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c65760803660e31901126101c6576101643567ffffffffffffffff81116101c65761064a9036906004016105c9565b90601f8019910116810190811067ffffffffffffffff82111761019957604052565b5f9182918160405192839283378101838152039082305af1903d156107cc573d9167ffffffffffffffff83116101995760405192610784601f8201601f19166020018561071a565b83523d5f602085013e5b6107ca57508051156107a257602081519101fd5b7fa40afa38000000000000000000000000000000000000000000000000000000005f5260045ffd5b565b60609161078e56fea2646970667358221220d77bde295ce1ce141595d841ea9a584ca62373bd696631acaf6648ddfe80a66164736f6c634300081a003300000000000000000000000040a081a39e9638fa6e2463b92a4eff4bdf8771790000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x12", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x90b22", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x0576146bdc0470c4aa0321c9da4183a6eebbba8c24989172ae10fefca7c42483", + "transactionIndex": "0x1", + "blockHash": "0x5924c85533887467813962904d0174fe68dc05882cc471557a4dadb39be51b09", + "blockNumber": "0x292a8a4", + "gasUsed": "0x7b97e", + "effectiveGasPrice": "0x1390b2900", + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "to": null, + "contractAddress": "0xa25ecd559680c77185a00a00e33bd9df14a5133e" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724218074, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/broadcast/01_DeployCLVeCakeExclusiveHook.s.sol/97/run-latest.json b/broadcast/01_DeployCLVeCakeExclusiveHook.s.sol/97/run-latest.json new file mode 100644 index 0000000..7494997 --- /dev/null +++ b/broadcast/01_DeployCLVeCakeExclusiveHook.s.sol/97/run-latest.json @@ -0,0 +1,49 @@ +{ + "transactions": [ + { + "hash": "0x0576146bdc0470c4aa0321c9da4183a6eebbba8c24989172ae10fefca7c42483", + "transactionType": "CREATE", + "contractName": "CLVeCakeExclusiveHook", + "contractAddress": "0xa25ecd559680c77185a00a00e33bd9df14a5133e", + "function": null, + "arguments": [ + "0x40a081A39E9638fa6e2463B92A4eff4Bdf877179", + "0x0000000000000000000000000000000000000000" + ], + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xa0abd", + "value": "0x0", + "input": "0x60c080604052346100ff57604081610958803803809161001f8285610116565b8339810103126100ff578051906001600160a01b038216908183036100ff57602001516001600160a01b03811692908390036100ff5760805260405163fbfa77cf60e01b815290602090829060049082905afa90811561010b575f916100c5575b5060a0525f80546001600160a01b03191691909117905560405161080a908161014e823960805181818161022a0152610398015260a05181818160da01526103fc0152f35b90506020813d602011610103575b816100e060209383610116565b810103126100ff57516001600160a01b03811681036100ff575f610080565b5f80fd5b3d91506100d3565b6040513d5f823e3d90fd5b601f909101601f19168101906001600160401b0382119082101761013957604052565b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f803560e01c9081631ffe6a581461053f5781634b6a682d1461053a5781635304d44e1461053a5781636f6657cb146104e65781637aa43ce0146103bc578163972e19a214610484578163ab6291fe146103c1578163d533c4db146103bc578163dc4c90d314610379578163e592dc93146101ca578163e8246c7f146100b6578163f961d1f414610101578163fbfa77cf146100bb575063fe70c9c9146100b6575f80fd5b6106bb565b346100fe57806003193601126100fe5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b346101c6575f3660031901126101c6576040516101c0810181811067ffffffffffffffff821117610199575f916101a0916040528281528260208201528260408201528260608201528260808201528260a0820152600160c08201528260e082015282610100820152826101208201528261014082015282610160820152826101808201520152602060405161ffff60405f17168152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f80fd5b346101c6576101603660031901126101c6576101e461059d565b5060c03660231901126101c65760603660e31901126101c6576101443567ffffffffffffffff81116101c65761021e9036906004016105c9565b50506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361035157602460206001600160a01b035f5416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523260048301525afa8015610346575f9061030c575b670de0b6b3a76400009150106102e45760606040517fe592dc930000000000000000000000000000000000000000000000000000000081525f60208201525f6040820152f35b7fcb1d19a0000000000000000000000000000000000000000000000000000000005f5260045ffd5b506020813d60201161033e575b816103266020938361071a565b810103126101c657670de0b6b3a7640000905161029e565b3d9150610319565b6040513d5f823e3d90fd5b7fae18210a000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101c6575f3660031901126101c65760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b61065c565b346101c65760203660031901126101c65760043567ffffffffffffffff81116101c6576103f29036906004016105c9565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361045c5761043060409160209361073c565b815192839181835280519182918282860152018484015e5f828201840152601f01601f19168101030190f35b7f62df0545000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101c6576101203660031901126101c65761049e61059d565b5060c03660231901126101c6576104b36105b3565b506101043567ffffffffffffffff81116101c6576104d59036906004016105c9565b5050630a85dc2960e01b5f5260045ffd5b346101c6576101803660031901126101c65761050061059d565b5060c03660231901126101c65760603660e31901126101c6576101643567ffffffffffffffff81116101c6576104d59036906004016105c9565b6105f7565b346101c6576101403660031901126101c65761055961059d565b5060c03660231901126101c65761056e6105b3565b50610104358060020b036101c6576101243567ffffffffffffffff81116101c6576104d59036906004016105c9565b600435906001600160a01b03821682036101c657565b60e435906001600160a01b03821682036101c657565b9181601f840112156101c65782359167ffffffffffffffff83116101c657602083818601950101116101c657565b346101c6576101403660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c6576101243567ffffffffffffffff81116101c65761064a9036906004016105c9565b905050630a85dc2960e01b5f5260045ffd5b346101c6576101a03660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c65760803660e31901126101c6576101843567ffffffffffffffff81116101c65761064a9036906004016105c9565b346101c6576101803660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c65760803660e31901126101c6576101643567ffffffffffffffff81116101c65761064a9036906004016105c9565b90601f8019910116810190811067ffffffffffffffff82111761019957604052565b5f9182918160405192839283378101838152039082305af1903d156107cc573d9167ffffffffffffffff83116101995760405192610784601f8201601f19166020018561071a565b83523d5f602085013e5b6107ca57508051156107a257602081519101fd5b7fa40afa38000000000000000000000000000000000000000000000000000000005f5260045ffd5b565b60609161078e56fea2646970667358221220d77bde295ce1ce141595d841ea9a584ca62373bd696631acaf6648ddfe80a66164736f6c634300081a003300000000000000000000000040a081a39e9638fa6e2463b92a4eff4bdf8771790000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x12", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x90b22", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x0576146bdc0470c4aa0321c9da4183a6eebbba8c24989172ae10fefca7c42483", + "transactionIndex": "0x1", + "blockHash": "0x5924c85533887467813962904d0174fe68dc05882cc471557a4dadb39be51b09", + "blockNumber": "0x292a8a4", + "gasUsed": "0x7b97e", + "effectiveGasPrice": "0x1390b2900", + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "to": null, + "contractAddress": "0xa25ecd559680c77185a00a00e33bd9df14a5133e" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724218074, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/broadcast/01_DeployMockVeToken.s.sol/97/run-1724219235.json b/broadcast/01_DeployMockVeToken.s.sol/97/run-1724219235.json new file mode 100644 index 0000000..de130ed --- /dev/null +++ b/broadcast/01_DeployMockVeToken.s.sol/97/run-1724219235.json @@ -0,0 +1,29 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CREATE", + "contractName": null, + "contractAddress": "0x549d196225706804c0a0fa9296c7a32fe6963850", + "function": null, + "arguments": null, + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xe7286", + "value": "0x0", + "input": "0x60e0806040523461040657610fdd803803809161001c828561040a565b83398101906060818303126104065780516001600160401b038111610406578261004791830161042d565b60208201519092906001600160401b0381116104065760409161006b91840161042d565b91015160ff811681036104065782516001600160401b038111610337576100925f54610482565b601f81116103b7575b506020601f821160011461035657819293945f9261034b575b50508160011b915f199060031b1c1916175f555b81516001600160401b038111610337576100e3600154610482565b601f81116102d4575b50602092601f821160011461027357928192935f92610268575b50508160011b915f199060031b1c1916176001555b6080524660a0526040515f905f54918161013484610482565b9182825260208201946001811690815f1461024c5750600114610202575b61015e9250038261040a565b51902060405160208101917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f835260408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a081526101d260c08261040a565b51902060c052604051610b0290816104bb82396080518161064c015260a05181610955015260c0518161097b0152f35b505f80805290915f80516020610fbd8339815191525b81831061023057505090602061015e92820101610152565b6020919350806001915483858801015201910190918392610218565b60ff191686525061015e92151560051b82016020019050610152565b015190505f80610106565b601f1982169360015f52805f20915f5b8681106102bc57508360019596106102a4575b505050811b0160015561011b565b01515f1960f88460031b161c191690555f8080610296565b91926020600181928685015181550194019201610283565b60015f527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6601f830160051c8101916020841061032d575b601f0160051c01905b81811061032257506100ec565b5f8155600101610315565b909150819061030c565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100b4565b601f198216905f8052805f20915f5b81811061039f57509583600195969710610387575b505050811b015f556100c8565b01515f1960f88460031b161c191690555f808061037a565b9192602060018192868b015181550194019201610365565b5f80525f80516020610fbd833981519152601f830160051c810191602084106103fc575b601f0160051c01905b8181106103f1575061009b565b5f81556001016103e4565b90915081906103db565b5f80fd5b601f909101601f19168101906001600160401b0382119082101761033757604052565b81601f82011215610406578051906001600160401b0382116103375760405192610461601f8401601f19166020018561040a565b8284526020838301011161040657815f9260208093018386015e8301015290565b90600182811c921680156104b0575b602083101461049c57565b634e487b7160e01b5f52602260045260245ffd5b91607f169161049156fe60806040526004361015610011575f80fd5b5f3560e01c806306fdde03146107df578063095ea7b31461076757806318160ddd1461074a57806323b872dd14610670578063313ce567146106335780633644e5151461061157806340c10f191461058657806370a082311461054e5780637ecebe001461051657806395d89b411461043c5780639dc29fac146103c8578063a9059cbb1461033f578063d505accf1461010b5763dd62ed3e146100b3575f80fd5b34610107576040366003190112610107576100cc610919565b6001600160a01b036100dc61092f565b91165f5260046020526001600160a01b0360405f2091165f52602052602060405f2054604051908152f35b5f80fd5b346101075760e036600319011261010757610124610919565b61012c61092f565b6044356064359260843560ff8116809103610107574285106102fb5760805f916020936001600160a01b0361015f610952565b91169687855260058652604085209889549960018b019055604051906001600160a01b03888301937f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c985528b6040850152169a8b6060840152898784015260a083015260c082015260c081526101d660e0826108b9565b51902060405190868201927f19010000000000000000000000000000000000000000000000000000000000008452602283015260428201526042815261021d6062826108b9565b519020906040519182528482015260a435604082015260c435606082015282805260015afa156102f0576001600160a01b035f5116801515806102e7575b156102a3577f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925916020915f526004825260405f20855f5282528060405f2055604051908152a3005b606460405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e45520000000000000000000000000000000000006044820152fd5b5082811461025b565b6040513d5f823e3d90fd5b606460405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f455850495245440000000000000000006044820152fd5b3461010757604036600319011261010757610358610919565b6001600160a01b0360243591335f52600360205260405f2061037b848254610945565b90551690815f52600360205260405f208181540190556040519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203392a3602060405160018152f35b34610107576040366003190112610107575f6103e2610919565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206001600160a01b036024359316928385526003825260408520610429828254610945565b90558060025403600255604051908152a3005b34610107575f366003190112610107576040515f60015461045c81610881565b80845290600181169081156104f25750600114610494575b61049083610484818503826108b9565b604051918291826108ef565b0390f35b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b8082106104d857509091508101602001610484610474565b9192600181602092548385880101520191019092916104c0565b60ff191660208086019190915291151560051b840190910191506104849050610474565b34610107576020366003190112610107576001600160a01b03610537610919565b165f526005602052602060405f2054604051908152f35b34610107576020366003190112610107576001600160a01b0361056f610919565b165f526003602052602060405f2054604051908152f35b346101075760403660031901126101075761059f610919565b602435906002548281018091116105fd5760206001600160a01b035f937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9360025516938484526003825260408420818154019055604051908152a3005b634e487b7160e01b5f52601160045260245ffd5b34610107575f36600319011261010757602061062b610952565b604051908152f35b34610107575f36600319011261010757602060405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b3461010757606036600319011261010757610689610919565b61069161092f565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206001600160a01b0380604435951693845f526004835260405f208233165f52835260405f2054865f198203610723575b5050845f526003835260405f206106fc878254610945565b90551693845f526003825260405f20818154019055604051908152a3602060405160018152f35b61072c91610945565b855f526004845260405f208333165f52845260405f205586866106e4565b34610107575f366003190112610107576020600254604051908152f35b3461010757604036600319011261010757610780610919565b6001600160a01b0360243591335f52600460205260405f208282165f526020528260405f205560405192835216907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b34610107575f366003190112610107576040515f80546107fe81610881565b80845290600181169081156104f257506001146108255761049083610484818503826108b9565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061086757509091508101602001610484610474565b91926001816020925483858801015201910190929161084f565b90600182811c921680156108af575b602083101461089b57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610890565b90601f8019910116810190811067ffffffffffffffff8211176108db57604052565b634e487b7160e01b5f52604160045260245ffd5b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361010757565b602435906001600160a01b038216820361010757565b919082039182116105fd57565b467f00000000000000000000000000000000000000000000000000000000000000000361099d577f000000000000000000000000000000000000000000000000000000000000000090565b6040515f905f5491816109af84610881565b9182825260208201946001811690815f14610ab05750600114610a53575b6109d9925003826108b9565b51902060405160208101917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f835260408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a08152610a4d60c0826108b9565b51902090565b505f80805290917f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b818310610a945750509060206109d9928201016109cd565b6020919350806001915483858801015201910190918392610a7c565b60ff19168652506109d992151560051b820160200190506109cd56fea2646970667358221220e07dbe2008d6ea4f7082a5d5a7a44f195d7d302ddb93a47950131171b5d753fb64736f6c634300081a0033290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000a4d6f636b566543616b65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006566543616b650000000000000000000000000000000000000000000000000000", + "nonce": "0x13", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724219235, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/broadcast/01_DeployMockVeToken.s.sol/97/run-1724220704.json b/broadcast/01_DeployMockVeToken.s.sol/97/run-1724220704.json new file mode 100644 index 0000000..5413986 --- /dev/null +++ b/broadcast/01_DeployMockVeToken.s.sol/97/run-1724220704.json @@ -0,0 +1,46 @@ +{ + "transactions": [ + { + "hash": "0x341501fa6e7345ac0e2253c92343b80f2cc8e021ad87d239f670ede87b03087b", + "transactionType": "CREATE", + "contractName": null, + "contractAddress": "0x6b1fdfc5dfb10dc5735bb242d014b4d4f1fb2c7a", + "function": null, + "arguments": null, + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xe7286", + "value": "0x0", + "input": "0x60e0806040523461040657610fdd803803809161001c828561040a565b83398101906060818303126104065780516001600160401b038111610406578261004791830161042d565b60208201519092906001600160401b0381116104065760409161006b91840161042d565b91015160ff811681036104065782516001600160401b038111610337576100925f54610482565b601f81116103b7575b506020601f821160011461035657819293945f9261034b575b50508160011b915f199060031b1c1916175f555b81516001600160401b038111610337576100e3600154610482565b601f81116102d4575b50602092601f821160011461027357928192935f92610268575b50508160011b915f199060031b1c1916176001555b6080524660a0526040515f905f54918161013484610482565b9182825260208201946001811690815f1461024c5750600114610202575b61015e9250038261040a565b51902060405160208101917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f835260408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a081526101d260c08261040a565b51902060c052604051610b0290816104bb82396080518161064c015260a05181610955015260c0518161097b0152f35b505f80805290915f80516020610fbd8339815191525b81831061023057505090602061015e92820101610152565b6020919350806001915483858801015201910190918392610218565b60ff191686525061015e92151560051b82016020019050610152565b015190505f80610106565b601f1982169360015f52805f20915f5b8681106102bc57508360019596106102a4575b505050811b0160015561011b565b01515f1960f88460031b161c191690555f8080610296565b91926020600181928685015181550194019201610283565b60015f527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6601f830160051c8101916020841061032d575b601f0160051c01905b81811061032257506100ec565b5f8155600101610315565b909150819061030c565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100b4565b601f198216905f8052805f20915f5b81811061039f57509583600195969710610387575b505050811b015f556100c8565b01515f1960f88460031b161c191690555f808061037a565b9192602060018192868b015181550194019201610365565b5f80525f80516020610fbd833981519152601f830160051c810191602084106103fc575b601f0160051c01905b8181106103f1575061009b565b5f81556001016103e4565b90915081906103db565b5f80fd5b601f909101601f19168101906001600160401b0382119082101761033757604052565b81601f82011215610406578051906001600160401b0382116103375760405192610461601f8401601f19166020018561040a565b8284526020838301011161040657815f9260208093018386015e8301015290565b90600182811c921680156104b0575b602083101461049c57565b634e487b7160e01b5f52602260045260245ffd5b91607f169161049156fe60806040526004361015610011575f80fd5b5f3560e01c806306fdde03146107df578063095ea7b31461076757806318160ddd1461074a57806323b872dd14610670578063313ce567146106335780633644e5151461061157806340c10f191461058657806370a082311461054e5780637ecebe001461051657806395d89b411461043c5780639dc29fac146103c8578063a9059cbb1461033f578063d505accf1461010b5763dd62ed3e146100b3575f80fd5b34610107576040366003190112610107576100cc610919565b6001600160a01b036100dc61092f565b91165f5260046020526001600160a01b0360405f2091165f52602052602060405f2054604051908152f35b5f80fd5b346101075760e036600319011261010757610124610919565b61012c61092f565b6044356064359260843560ff8116809103610107574285106102fb5760805f916020936001600160a01b0361015f610952565b91169687855260058652604085209889549960018b019055604051906001600160a01b03888301937f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c985528b6040850152169a8b6060840152898784015260a083015260c082015260c081526101d660e0826108b9565b51902060405190868201927f19010000000000000000000000000000000000000000000000000000000000008452602283015260428201526042815261021d6062826108b9565b519020906040519182528482015260a435604082015260c435606082015282805260015afa156102f0576001600160a01b035f5116801515806102e7575b156102a3577f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925916020915f526004825260405f20855f5282528060405f2055604051908152a3005b606460405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e45520000000000000000000000000000000000006044820152fd5b5082811461025b565b6040513d5f823e3d90fd5b606460405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f455850495245440000000000000000006044820152fd5b3461010757604036600319011261010757610358610919565b6001600160a01b0360243591335f52600360205260405f2061037b848254610945565b90551690815f52600360205260405f208181540190556040519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203392a3602060405160018152f35b34610107576040366003190112610107575f6103e2610919565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206001600160a01b036024359316928385526003825260408520610429828254610945565b90558060025403600255604051908152a3005b34610107575f366003190112610107576040515f60015461045c81610881565b80845290600181169081156104f25750600114610494575b61049083610484818503826108b9565b604051918291826108ef565b0390f35b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b8082106104d857509091508101602001610484610474565b9192600181602092548385880101520191019092916104c0565b60ff191660208086019190915291151560051b840190910191506104849050610474565b34610107576020366003190112610107576001600160a01b03610537610919565b165f526005602052602060405f2054604051908152f35b34610107576020366003190112610107576001600160a01b0361056f610919565b165f526003602052602060405f2054604051908152f35b346101075760403660031901126101075761059f610919565b602435906002548281018091116105fd5760206001600160a01b035f937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9360025516938484526003825260408420818154019055604051908152a3005b634e487b7160e01b5f52601160045260245ffd5b34610107575f36600319011261010757602061062b610952565b604051908152f35b34610107575f36600319011261010757602060405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b3461010757606036600319011261010757610689610919565b61069161092f565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206001600160a01b0380604435951693845f526004835260405f208233165f52835260405f2054865f198203610723575b5050845f526003835260405f206106fc878254610945565b90551693845f526003825260405f20818154019055604051908152a3602060405160018152f35b61072c91610945565b855f526004845260405f208333165f52845260405f205586866106e4565b34610107575f366003190112610107576020600254604051908152f35b3461010757604036600319011261010757610780610919565b6001600160a01b0360243591335f52600460205260405f208282165f526020528260405f205560405192835216907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b34610107575f366003190112610107576040515f80546107fe81610881565b80845290600181169081156104f257506001146108255761049083610484818503826108b9565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061086757509091508101602001610484610474565b91926001816020925483858801015201910190929161084f565b90600182811c921680156108af575b602083101461089b57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610890565b90601f8019910116810190811067ffffffffffffffff8211176108db57604052565b634e487b7160e01b5f52604160045260245ffd5b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361010757565b602435906001600160a01b038216820361010757565b919082039182116105fd57565b467f00000000000000000000000000000000000000000000000000000000000000000361099d577f000000000000000000000000000000000000000000000000000000000000000090565b6040515f905f5491816109af84610881565b9182825260208201946001811690815f14610ab05750600114610a53575b6109d9925003826108b9565b51902060405160208101917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f835260408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a08152610a4d60c0826108b9565b51902090565b505f80805290917f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b818310610a945750509060206109d9928201016109cd565b6020919350806001915483858801015201910190918392610a7c565b60ff19168652506109d992151560051b820160200190506109cd56fea2646970667358221220e07dbe2008d6ea4f7082a5d5a7a44f195d7d302ddb93a47950131171b5d753fb64736f6c634300081a0033290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000a4d6f636b566543616b65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006566543616b650000000000000000000000000000000000000000000000000000", + "nonce": "0x15", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x15a81a", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x341501fa6e7345ac0e2253c92343b80f2cc8e021ad87d239f670ede87b03087b", + "transactionIndex": "0x5", + "blockHash": "0x8c93d30e6476424c3f5557e5603ac25e4d54e5d3061f5151e2403fde62616cc8", + "blockNumber": "0x292ac09", + "gasUsed": "0xb1d05", + "effectiveGasPrice": "0x12a05f200", + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "to": null, + "contractAddress": "0x6b1fdfc5dfb10dc5735bb242d014b4d4f1fb2c7a" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724220704, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/broadcast/01_DeployMockVeToken.s.sol/97/run-latest.json b/broadcast/01_DeployMockVeToken.s.sol/97/run-latest.json new file mode 100644 index 0000000..5413986 --- /dev/null +++ b/broadcast/01_DeployMockVeToken.s.sol/97/run-latest.json @@ -0,0 +1,46 @@ +{ + "transactions": [ + { + "hash": "0x341501fa6e7345ac0e2253c92343b80f2cc8e021ad87d239f670ede87b03087b", + "transactionType": "CREATE", + "contractName": null, + "contractAddress": "0x6b1fdfc5dfb10dc5735bb242d014b4d4f1fb2c7a", + "function": null, + "arguments": null, + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xe7286", + "value": "0x0", + "input": "0x60e0806040523461040657610fdd803803809161001c828561040a565b83398101906060818303126104065780516001600160401b038111610406578261004791830161042d565b60208201519092906001600160401b0381116104065760409161006b91840161042d565b91015160ff811681036104065782516001600160401b038111610337576100925f54610482565b601f81116103b7575b506020601f821160011461035657819293945f9261034b575b50508160011b915f199060031b1c1916175f555b81516001600160401b038111610337576100e3600154610482565b601f81116102d4575b50602092601f821160011461027357928192935f92610268575b50508160011b915f199060031b1c1916176001555b6080524660a0526040515f905f54918161013484610482565b9182825260208201946001811690815f1461024c5750600114610202575b61015e9250038261040a565b51902060405160208101917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f835260408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a081526101d260c08261040a565b51902060c052604051610b0290816104bb82396080518161064c015260a05181610955015260c0518161097b0152f35b505f80805290915f80516020610fbd8339815191525b81831061023057505090602061015e92820101610152565b6020919350806001915483858801015201910190918392610218565b60ff191686525061015e92151560051b82016020019050610152565b015190505f80610106565b601f1982169360015f52805f20915f5b8681106102bc57508360019596106102a4575b505050811b0160015561011b565b01515f1960f88460031b161c191690555f8080610296565b91926020600181928685015181550194019201610283565b60015f527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6601f830160051c8101916020841061032d575b601f0160051c01905b81811061032257506100ec565b5f8155600101610315565b909150819061030c565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100b4565b601f198216905f8052805f20915f5b81811061039f57509583600195969710610387575b505050811b015f556100c8565b01515f1960f88460031b161c191690555f808061037a565b9192602060018192868b015181550194019201610365565b5f80525f80516020610fbd833981519152601f830160051c810191602084106103fc575b601f0160051c01905b8181106103f1575061009b565b5f81556001016103e4565b90915081906103db565b5f80fd5b601f909101601f19168101906001600160401b0382119082101761033757604052565b81601f82011215610406578051906001600160401b0382116103375760405192610461601f8401601f19166020018561040a565b8284526020838301011161040657815f9260208093018386015e8301015290565b90600182811c921680156104b0575b602083101461049c57565b634e487b7160e01b5f52602260045260245ffd5b91607f169161049156fe60806040526004361015610011575f80fd5b5f3560e01c806306fdde03146107df578063095ea7b31461076757806318160ddd1461074a57806323b872dd14610670578063313ce567146106335780633644e5151461061157806340c10f191461058657806370a082311461054e5780637ecebe001461051657806395d89b411461043c5780639dc29fac146103c8578063a9059cbb1461033f578063d505accf1461010b5763dd62ed3e146100b3575f80fd5b34610107576040366003190112610107576100cc610919565b6001600160a01b036100dc61092f565b91165f5260046020526001600160a01b0360405f2091165f52602052602060405f2054604051908152f35b5f80fd5b346101075760e036600319011261010757610124610919565b61012c61092f565b6044356064359260843560ff8116809103610107574285106102fb5760805f916020936001600160a01b0361015f610952565b91169687855260058652604085209889549960018b019055604051906001600160a01b03888301937f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c985528b6040850152169a8b6060840152898784015260a083015260c082015260c081526101d660e0826108b9565b51902060405190868201927f19010000000000000000000000000000000000000000000000000000000000008452602283015260428201526042815261021d6062826108b9565b519020906040519182528482015260a435604082015260c435606082015282805260015afa156102f0576001600160a01b035f5116801515806102e7575b156102a3577f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925916020915f526004825260405f20855f5282528060405f2055604051908152a3005b606460405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e45520000000000000000000000000000000000006044820152fd5b5082811461025b565b6040513d5f823e3d90fd5b606460405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f455850495245440000000000000000006044820152fd5b3461010757604036600319011261010757610358610919565b6001600160a01b0360243591335f52600360205260405f2061037b848254610945565b90551690815f52600360205260405f208181540190556040519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203392a3602060405160018152f35b34610107576040366003190112610107575f6103e2610919565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206001600160a01b036024359316928385526003825260408520610429828254610945565b90558060025403600255604051908152a3005b34610107575f366003190112610107576040515f60015461045c81610881565b80845290600181169081156104f25750600114610494575b61049083610484818503826108b9565b604051918291826108ef565b0390f35b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b8082106104d857509091508101602001610484610474565b9192600181602092548385880101520191019092916104c0565b60ff191660208086019190915291151560051b840190910191506104849050610474565b34610107576020366003190112610107576001600160a01b03610537610919565b165f526005602052602060405f2054604051908152f35b34610107576020366003190112610107576001600160a01b0361056f610919565b165f526003602052602060405f2054604051908152f35b346101075760403660031901126101075761059f610919565b602435906002548281018091116105fd5760206001600160a01b035f937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9360025516938484526003825260408420818154019055604051908152a3005b634e487b7160e01b5f52601160045260245ffd5b34610107575f36600319011261010757602061062b610952565b604051908152f35b34610107575f36600319011261010757602060405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b3461010757606036600319011261010757610689610919565b61069161092f565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206001600160a01b0380604435951693845f526004835260405f208233165f52835260405f2054865f198203610723575b5050845f526003835260405f206106fc878254610945565b90551693845f526003825260405f20818154019055604051908152a3602060405160018152f35b61072c91610945565b855f526004845260405f208333165f52845260405f205586866106e4565b34610107575f366003190112610107576020600254604051908152f35b3461010757604036600319011261010757610780610919565b6001600160a01b0360243591335f52600460205260405f208282165f526020528260405f205560405192835216907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b34610107575f366003190112610107576040515f80546107fe81610881565b80845290600181169081156104f257506001146108255761049083610484818503826108b9565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061086757509091508101602001610484610474565b91926001816020925483858801015201910190929161084f565b90600182811c921680156108af575b602083101461089b57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610890565b90601f8019910116810190811067ffffffffffffffff8211176108db57604052565b634e487b7160e01b5f52604160045260245ffd5b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361010757565b602435906001600160a01b038216820361010757565b919082039182116105fd57565b467f00000000000000000000000000000000000000000000000000000000000000000361099d577f000000000000000000000000000000000000000000000000000000000000000090565b6040515f905f5491816109af84610881565b9182825260208201946001811690815f14610ab05750600114610a53575b6109d9925003826108b9565b51902060405160208101917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f835260408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a08152610a4d60c0826108b9565b51902090565b505f80805290917f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b818310610a945750509060206109d9928201016109cd565b6020919350806001915483858801015201910190918392610a7c565b60ff19168652506109d992151560051b820160200190506109cd56fea2646970667358221220e07dbe2008d6ea4f7082a5d5a7a44f195d7d302ddb93a47950131171b5d753fb64736f6c634300081a0033290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000a4d6f636b566543616b65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006566543616b650000000000000000000000000000000000000000000000000000", + "nonce": "0x15", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x15a81a", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x341501fa6e7345ac0e2253c92343b80f2cc8e021ad87d239f670ede87b03087b", + "transactionIndex": "0x5", + "blockHash": "0x8c93d30e6476424c3f5557e5603ac25e4d54e5d3061f5151e2403fde62616cc8", + "blockNumber": "0x292ac09", + "gasUsed": "0xb1d05", + "effectiveGasPrice": "0x12a05f200", + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "to": null, + "contractAddress": "0x6b1fdfc5dfb10dc5735bb242d014b4d4f1fb2c7a" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724220704, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/broadcast/02_DeployCLVeCakeExclusiveHook.s.sol/97/run-1724220894.json b/broadcast/02_DeployCLVeCakeExclusiveHook.s.sol/97/run-1724220894.json new file mode 100644 index 0000000..49add93 --- /dev/null +++ b/broadcast/02_DeployCLVeCakeExclusiveHook.s.sol/97/run-1724220894.json @@ -0,0 +1,49 @@ +{ + "transactions": [ + { + "hash": "0x6b4a884cd035121e752c4c1168bb3672a87028524a8fbc999930b5f8bac48fcc", + "transactionType": "CREATE", + "contractName": "CLVeCakeExclusiveHook", + "contractAddress": "0x470a9995c3bf588ee90a7f8e1b5372da1643bca1", + "function": null, + "arguments": [ + "0x40a081A39E9638fa6e2463B92A4eff4Bdf877179", + "0x6B1fdFc5dFB10DC5735bB242D014B4d4F1fb2c7A" + ], + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xa7103", + "value": "0x0", + "input": "0x60c080604052346100ff57604081610958803803809161001f8285610116565b8339810103126100ff578051906001600160a01b038216908183036100ff57602001516001600160a01b03811692908390036100ff5760805260405163fbfa77cf60e01b815290602090829060049082905afa90811561010b575f916100c5575b5060a0525f80546001600160a01b03191691909117905560405161080a908161014e823960805181818161022a0152610398015260a05181818160da01526103fc0152f35b90506020813d602011610103575b816100e060209383610116565b810103126100ff57516001600160a01b03811681036100ff575f610080565b5f80fd5b3d91506100d3565b6040513d5f823e3d90fd5b601f909101601f19168101906001600160401b0382119082101761013957604052565b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f803560e01c9081631ffe6a581461053f5781634b6a682d1461053a5781635304d44e1461053a5781636f6657cb146104e65781637aa43ce0146103bc578163972e19a214610484578163ab6291fe146103c1578163d533c4db146103bc578163dc4c90d314610379578163e592dc93146101ca578163e8246c7f146100b6578163f961d1f414610101578163fbfa77cf146100bb575063fe70c9c9146100b6575f80fd5b6106bb565b346100fe57806003193601126100fe5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b346101c6575f3660031901126101c6576040516101c0810181811067ffffffffffffffff821117610199575f916101a0916040528281528260208201528260408201528260608201528260808201528260a0820152600160c08201528260e082015282610100820152826101208201528261014082015282610160820152826101808201520152602060405161ffff60405f17168152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f80fd5b346101c6576101603660031901126101c6576101e461059d565b5060c03660231901126101c65760603660e31901126101c6576101443567ffffffffffffffff81116101c65761021e9036906004016105c9565b50506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361035157602460206001600160a01b035f5416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523260048301525afa8015610346575f9061030c575b670de0b6b3a76400009150106102e45760606040517fe592dc930000000000000000000000000000000000000000000000000000000081525f60208201525f6040820152f35b7fcb1d19a0000000000000000000000000000000000000000000000000000000005f5260045ffd5b506020813d60201161033e575b816103266020938361071a565b810103126101c657670de0b6b3a7640000905161029e565b3d9150610319565b6040513d5f823e3d90fd5b7fae18210a000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101c6575f3660031901126101c65760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b61065c565b346101c65760203660031901126101c65760043567ffffffffffffffff81116101c6576103f29036906004016105c9565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361045c5761043060409160209361073c565b815192839181835280519182918282860152018484015e5f828201840152601f01601f19168101030190f35b7f62df0545000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101c6576101203660031901126101c65761049e61059d565b5060c03660231901126101c6576104b36105b3565b506101043567ffffffffffffffff81116101c6576104d59036906004016105c9565b5050630a85dc2960e01b5f5260045ffd5b346101c6576101803660031901126101c65761050061059d565b5060c03660231901126101c65760603660e31901126101c6576101643567ffffffffffffffff81116101c6576104d59036906004016105c9565b6105f7565b346101c6576101403660031901126101c65761055961059d565b5060c03660231901126101c65761056e6105b3565b50610104358060020b036101c6576101243567ffffffffffffffff81116101c6576104d59036906004016105c9565b600435906001600160a01b03821682036101c657565b60e435906001600160a01b03821682036101c657565b9181601f840112156101c65782359167ffffffffffffffff83116101c657602083818601950101116101c657565b346101c6576101403660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c6576101243567ffffffffffffffff81116101c65761064a9036906004016105c9565b905050630a85dc2960e01b5f5260045ffd5b346101c6576101a03660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c65760803660e31901126101c6576101843567ffffffffffffffff81116101c65761064a9036906004016105c9565b346101c6576101803660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c65760803660e31901126101c6576101643567ffffffffffffffff81116101c65761064a9036906004016105c9565b90601f8019910116810190811067ffffffffffffffff82111761019957604052565b5f9182918160405192839283378101838152039082305af1903d156107cc573d9167ffffffffffffffff83116101995760405192610784601f8201601f19166020018561071a565b83523d5f602085013e5b6107ca57508051156107a257602081519101fd5b7fa40afa38000000000000000000000000000000000000000000000000000000005f5260045ffd5b565b60609161078e56fea2646970667358221220d77bde295ce1ce141595d841ea9a584ca62373bd696631acaf6648ddfe80a66164736f6c634300081a003300000000000000000000000040a081a39e9638fa6e2463b92a4eff4bdf8771790000000000000000000000006b1fdfc5dfb10dc5735bb242d014b4d4f1fb2c7a", + "nonce": "0x16", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x8c476", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x6b4a884cd035121e752c4c1168bb3672a87028524a8fbc999930b5f8bac48fcc", + "transactionIndex": "0x2", + "blockHash": "0x0116ce8aad7793c12e1d2b39d8758fdcf326b057d4ff491f6404c7efa2b8bd3e", + "blockNumber": "0x292ac48", + "gasUsed": "0x8082a", + "effectiveGasPrice": "0x12a05f200", + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "to": null, + "contractAddress": "0x470a9995c3bf588ee90a7f8e1b5372da1643bca1" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724220894, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/broadcast/02_DeployCLVeCakeExclusiveHook.s.sol/97/run-latest.json b/broadcast/02_DeployCLVeCakeExclusiveHook.s.sol/97/run-latest.json new file mode 100644 index 0000000..49add93 --- /dev/null +++ b/broadcast/02_DeployCLVeCakeExclusiveHook.s.sol/97/run-latest.json @@ -0,0 +1,49 @@ +{ + "transactions": [ + { + "hash": "0x6b4a884cd035121e752c4c1168bb3672a87028524a8fbc999930b5f8bac48fcc", + "transactionType": "CREATE", + "contractName": "CLVeCakeExclusiveHook", + "contractAddress": "0x470a9995c3bf588ee90a7f8e1b5372da1643bca1", + "function": null, + "arguments": [ + "0x40a081A39E9638fa6e2463B92A4eff4Bdf877179", + "0x6B1fdFc5dFB10DC5735bB242D014B4d4F1fb2c7A" + ], + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xa7103", + "value": "0x0", + "input": "0x60c080604052346100ff57604081610958803803809161001f8285610116565b8339810103126100ff578051906001600160a01b038216908183036100ff57602001516001600160a01b03811692908390036100ff5760805260405163fbfa77cf60e01b815290602090829060049082905afa90811561010b575f916100c5575b5060a0525f80546001600160a01b03191691909117905560405161080a908161014e823960805181818161022a0152610398015260a05181818160da01526103fc0152f35b90506020813d602011610103575b816100e060209383610116565b810103126100ff57516001600160a01b03811681036100ff575f610080565b5f80fd5b3d91506100d3565b6040513d5f823e3d90fd5b601f909101601f19168101906001600160401b0382119082101761013957604052565b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f803560e01c9081631ffe6a581461053f5781634b6a682d1461053a5781635304d44e1461053a5781636f6657cb146104e65781637aa43ce0146103bc578163972e19a214610484578163ab6291fe146103c1578163d533c4db146103bc578163dc4c90d314610379578163e592dc93146101ca578163e8246c7f146100b6578163f961d1f414610101578163fbfa77cf146100bb575063fe70c9c9146100b6575f80fd5b6106bb565b346100fe57806003193601126100fe5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b346101c6575f3660031901126101c6576040516101c0810181811067ffffffffffffffff821117610199575f916101a0916040528281528260208201528260408201528260608201528260808201528260a0820152600160c08201528260e082015282610100820152826101208201528261014082015282610160820152826101808201520152602060405161ffff60405f17168152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f80fd5b346101c6576101603660031901126101c6576101e461059d565b5060c03660231901126101c65760603660e31901126101c6576101443567ffffffffffffffff81116101c65761021e9036906004016105c9565b50506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361035157602460206001600160a01b035f5416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523260048301525afa8015610346575f9061030c575b670de0b6b3a76400009150106102e45760606040517fe592dc930000000000000000000000000000000000000000000000000000000081525f60208201525f6040820152f35b7fcb1d19a0000000000000000000000000000000000000000000000000000000005f5260045ffd5b506020813d60201161033e575b816103266020938361071a565b810103126101c657670de0b6b3a7640000905161029e565b3d9150610319565b6040513d5f823e3d90fd5b7fae18210a000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101c6575f3660031901126101c65760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b61065c565b346101c65760203660031901126101c65760043567ffffffffffffffff81116101c6576103f29036906004016105c9565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361045c5761043060409160209361073c565b815192839181835280519182918282860152018484015e5f828201840152601f01601f19168101030190f35b7f62df0545000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101c6576101203660031901126101c65761049e61059d565b5060c03660231901126101c6576104b36105b3565b506101043567ffffffffffffffff81116101c6576104d59036906004016105c9565b5050630a85dc2960e01b5f5260045ffd5b346101c6576101803660031901126101c65761050061059d565b5060c03660231901126101c65760603660e31901126101c6576101643567ffffffffffffffff81116101c6576104d59036906004016105c9565b6105f7565b346101c6576101403660031901126101c65761055961059d565b5060c03660231901126101c65761056e6105b3565b50610104358060020b036101c6576101243567ffffffffffffffff81116101c6576104d59036906004016105c9565b600435906001600160a01b03821682036101c657565b60e435906001600160a01b03821682036101c657565b9181601f840112156101c65782359167ffffffffffffffff83116101c657602083818601950101116101c657565b346101c6576101403660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c6576101243567ffffffffffffffff81116101c65761064a9036906004016105c9565b905050630a85dc2960e01b5f5260045ffd5b346101c6576101a03660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c65760803660e31901126101c6576101843567ffffffffffffffff81116101c65761064a9036906004016105c9565b346101c6576101803660031901126101c6576004356001600160a01b03811681036101c6575060c03660231901126101c65760803660e31901126101c6576101643567ffffffffffffffff81116101c65761064a9036906004016105c9565b90601f8019910116810190811067ffffffffffffffff82111761019957604052565b5f9182918160405192839283378101838152039082305af1903d156107cc573d9167ffffffffffffffff83116101995760405192610784601f8201601f19166020018561071a565b83523d5f602085013e5b6107ca57508051156107a257602081519101fd5b7fa40afa38000000000000000000000000000000000000000000000000000000005f5260045ffd5b565b60609161078e56fea2646970667358221220d77bde295ce1ce141595d841ea9a584ca62373bd696631acaf6648ddfe80a66164736f6c634300081a003300000000000000000000000040a081a39e9638fa6e2463b92a4eff4bdf8771790000000000000000000000006b1fdfc5dfb10dc5735bb242d014b4d4f1fb2c7a", + "nonce": "0x16", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x8c476", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x6b4a884cd035121e752c4c1168bb3672a87028524a8fbc999930b5f8bac48fcc", + "transactionIndex": "0x2", + "blockHash": "0x0116ce8aad7793c12e1d2b39d8758fdcf326b057d4ff491f6404c7efa2b8bd3e", + "blockNumber": "0x292ac48", + "gasUsed": "0x8082a", + "effectiveGasPrice": "0x12a05f200", + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "to": null, + "contractAddress": "0x470a9995c3bf588ee90a7f8e1b5372da1643bca1" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724220894, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/broadcast/03_DeployBinVeCakeExclusiveHook.s.sol/97/run-1724221188.json b/broadcast/03_DeployBinVeCakeExclusiveHook.s.sol/97/run-1724221188.json new file mode 100644 index 0000000..4cfb17c --- /dev/null +++ b/broadcast/03_DeployBinVeCakeExclusiveHook.s.sol/97/run-1724221188.json @@ -0,0 +1,49 @@ +{ + "transactions": [ + { + "hash": "0xd7b25c664a9935aef38d672557d578c8d943a0ad943b63ba6997cdfb0742de88", + "transactionType": "CREATE", + "contractName": "BinVeCakeExclusiveHook", + "contractAddress": "0xb8848825d56d32679a1b451ce581ba665c4786b3", + "function": null, + "arguments": [ + "0xc51DE4C65d6e3fb612050E383495e9457840d2c9", + "0x6B1fdFc5dFB10DC5735bB242D014B4d4F1fb2c7A" + ], + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xab2ff", + "value": "0x0", + "input": "0x60c080604052346100ff57604081610994803803809161001f8285610116565b8339810103126100ff578051906001600160a01b038216908183036100ff57602001516001600160a01b03811692908390036100ff5760805260405163fbfa77cf60e01b815290602090829060049082905afa90811561010b575f916100c5575b5060a0525f80546001600160a01b031916919091179055604051610846908161014e82396080518181816101e201526103e9015260a05181818160d301526102460152f35b90506020813d602011610103575b816100e060209383610116565b810103126100ff57516001600160a01b03811681036100ff575f610080565b5f80fd5b3d91506100d3565b6040513d5f823e3d90fd5b601f909101601f19168101906001600160401b0382119082101761013957604052565b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f803560e01c8063081e1a8c1461036057806309250782146102ce5780634b6a682d1461035b5780635177cb2f146103835780635250df39146103605780635304d44e1461035b5780635e927caa146102f05780636514d01f146102065780636eceef08146102ce578063ab6291fe1461020b578063ae92a8e814610206578063dc4c90d3146101c3578063f961d1f4146100fa5763fbfa77cf146100b4575f80fd5b346100f757806003193601126100f75760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b346101bf575f3660031901126101bf576040516101c0810181811067ffffffffffffffff821117610192575f916101a0916040528281528260208201528260408201528260608201528260808201528260a0820152600160c08201528260e082015282610100820152826101208201528261014082015282610160820152826101808201520152602060405161ffff60405f17168152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f80fd5b346101bf575f3660031901126101bf5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b6106f3565b346101bf5760203660031901126101bf5760043567ffffffffffffffff81116101bf5761023c90369060040161054e565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036102a65761027a604091602093610778565b815192839181835280519182918282860152018484015e5f828201840152601f01601f19168101030190f35b7f62df0545000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101bf576102dc366105f9565b5050505050630a85dc2960e01b5f5260045ffd5b346101bf576101603660031901126101bf5761030a610538565b5060c03660231901126101bf5761031f6106d3565b506103286106e2565b506101443567ffffffffffffffff81116101bf5761034a90369060040161054e565b5050630a85dc2960e01b5f5260045ffd5b61066e565b346101bf5761036e3661057c565b505050505050630a85dc2960e01b5f5260045ffd5b346101bf576101403660031901126101bf5761039d610538565b5060c03660231901126101bf576103b26106d3565b506103bb6106e2565b506101243567ffffffffffffffff81116101bf576103dd90369060040161054e565b50506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361051057602460206001600160a01b035f5416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523260048301525afa8015610505575f906104cb575b670de0b6b3a76400009150106104a35760606040517f5177cb2f0000000000000000000000000000000000000000000000000000000081525f60208201525f6040820152f35b7fcb1d19a0000000000000000000000000000000000000000000000000000000005f5260045ffd5b506020813d6020116104fd575b816104e560209383610756565b810103126101bf57670de0b6b3a7640000905161045d565b3d91506104d8565b6040513d5f823e3d90fd5b7fae18210a000000000000000000000000000000000000000000000000000000005f5260045ffd5b600435906001600160a01b03821682036101bf57565b9181601f840112156101bf5782359167ffffffffffffffff83116101bf57602083818601950101116101bf57565b6101406003198201126101bf576004356001600160a01b03811681036101bf579160c06023198301126101bf5760249160e43567ffffffffffffffff81116101bf57606081830360031901126101bf57600401916101043591610124359067ffffffffffffffff82116101bf576105f59160040161054e565b9091565b906101206003198301126101bf576004356001600160a01b03811681036101bf579160c06023198201126101bf5760249160e43567ffffffffffffffff81116101bf57606081840360031901126101bf5760040191610104359067ffffffffffffffff82116101bf576105f59160040161054e565b346101bf576101403660031901126101bf576004356001600160a01b03811681036101bf575060c03660231901126101bf576101243567ffffffffffffffff81116101bf576106c190369060040161054e565b905050630a85dc2960e01b5f5260045ffd5b60e4359081151582036101bf57565b610104359081600f0b82036101bf57565b346101bf576101203660031901126101bf576004356001600160a01b03811681036101bf575060c03660231901126101bf5760e43562ffffff811681036101bf57506101043567ffffffffffffffff81116101bf576106c190369060040161054e565b90601f8019910116810190811067ffffffffffffffff82111761019257604052565b5f9182918160405192839283378101838152039082305af1903d15610808573d9167ffffffffffffffff831161019257604051926107c0601f8201601f191660200185610756565b83523d5f602085013e5b61080657508051156107de57602081519101fd5b7fa40afa38000000000000000000000000000000000000000000000000000000005f5260045ffd5b565b6060916107ca56fea2646970667358221220f2fa865fa9f51291f35fab5b54e979de4ed0314a04c62fc3a3f8d2fce9fd131b64736f6c634300081a0033000000000000000000000000c51de4c65d6e3fb612050e383495e9457840d2c90000000000000000000000006b1fdfc5dfb10dc5735bb242d014b4d4f1fb2c7a", + "nonce": "0x17", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0xbd8d7", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0xd7b25c664a9935aef38d672557d578c8d943a0ad943b63ba6997cdfb0742de88", + "transactionIndex": "0x4", + "blockHash": "0xa25571cdf8ef02b828ddc03ccce998dffc4da2d353264b56284d42e21a6bb277", + "blockNumber": "0x292acac", + "gasUsed": "0x83aec", + "effectiveGasPrice": "0x12a05f200", + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "to": null, + "contractAddress": "0xb8848825d56d32679a1b451ce581ba665c4786b3" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724221188, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/broadcast/03_DeployBinVeCakeExclusiveHook.s.sol/97/run-latest.json b/broadcast/03_DeployBinVeCakeExclusiveHook.s.sol/97/run-latest.json new file mode 100644 index 0000000..4cfb17c --- /dev/null +++ b/broadcast/03_DeployBinVeCakeExclusiveHook.s.sol/97/run-latest.json @@ -0,0 +1,49 @@ +{ + "transactions": [ + { + "hash": "0xd7b25c664a9935aef38d672557d578c8d943a0ad943b63ba6997cdfb0742de88", + "transactionType": "CREATE", + "contractName": "BinVeCakeExclusiveHook", + "contractAddress": "0xb8848825d56d32679a1b451ce581ba665c4786b3", + "function": null, + "arguments": [ + "0xc51DE4C65d6e3fb612050E383495e9457840d2c9", + "0x6B1fdFc5dFB10DC5735bB242D014B4d4F1fb2c7A" + ], + "transaction": { + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "gas": "0xab2ff", + "value": "0x0", + "input": "0x60c080604052346100ff57604081610994803803809161001f8285610116565b8339810103126100ff578051906001600160a01b038216908183036100ff57602001516001600160a01b03811692908390036100ff5760805260405163fbfa77cf60e01b815290602090829060049082905afa90811561010b575f916100c5575b5060a0525f80546001600160a01b031916919091179055604051610846908161014e82396080518181816101e201526103e9015260a05181818160d301526102460152f35b90506020813d602011610103575b816100e060209383610116565b810103126100ff57516001600160a01b03811681036100ff575f610080565b5f80fd5b3d91506100d3565b6040513d5f823e3d90fd5b601f909101601f19168101906001600160401b0382119082101761013957604052565b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f803560e01c8063081e1a8c1461036057806309250782146102ce5780634b6a682d1461035b5780635177cb2f146103835780635250df39146103605780635304d44e1461035b5780635e927caa146102f05780636514d01f146102065780636eceef08146102ce578063ab6291fe1461020b578063ae92a8e814610206578063dc4c90d3146101c3578063f961d1f4146100fa5763fbfa77cf146100b4575f80fd5b346100f757806003193601126100f75760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b80fd5b346101bf575f3660031901126101bf576040516101c0810181811067ffffffffffffffff821117610192575f916101a0916040528281528260208201528260408201528260608201528260808201528260a0820152600160c08201528260e082015282610100820152826101208201528261014082015282610160820152826101808201520152602060405161ffff60405f17168152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f80fd5b346101bf575f3660031901126101bf5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b6106f3565b346101bf5760203660031901126101bf5760043567ffffffffffffffff81116101bf5761023c90369060040161054e565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036102a65761027a604091602093610778565b815192839181835280519182918282860152018484015e5f828201840152601f01601f19168101030190f35b7f62df0545000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101bf576102dc366105f9565b5050505050630a85dc2960e01b5f5260045ffd5b346101bf576101603660031901126101bf5761030a610538565b5060c03660231901126101bf5761031f6106d3565b506103286106e2565b506101443567ffffffffffffffff81116101bf5761034a90369060040161054e565b5050630a85dc2960e01b5f5260045ffd5b61066e565b346101bf5761036e3661057c565b505050505050630a85dc2960e01b5f5260045ffd5b346101bf576101403660031901126101bf5761039d610538565b5060c03660231901126101bf576103b26106d3565b506103bb6106e2565b506101243567ffffffffffffffff81116101bf576103dd90369060040161054e565b50506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361051057602460206001600160a01b035f5416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523260048301525afa8015610505575f906104cb575b670de0b6b3a76400009150106104a35760606040517f5177cb2f0000000000000000000000000000000000000000000000000000000081525f60208201525f6040820152f35b7fcb1d19a0000000000000000000000000000000000000000000000000000000005f5260045ffd5b506020813d6020116104fd575b816104e560209383610756565b810103126101bf57670de0b6b3a7640000905161045d565b3d91506104d8565b6040513d5f823e3d90fd5b7fae18210a000000000000000000000000000000000000000000000000000000005f5260045ffd5b600435906001600160a01b03821682036101bf57565b9181601f840112156101bf5782359167ffffffffffffffff83116101bf57602083818601950101116101bf57565b6101406003198201126101bf576004356001600160a01b03811681036101bf579160c06023198301126101bf5760249160e43567ffffffffffffffff81116101bf57606081830360031901126101bf57600401916101043591610124359067ffffffffffffffff82116101bf576105f59160040161054e565b9091565b906101206003198301126101bf576004356001600160a01b03811681036101bf579160c06023198201126101bf5760249160e43567ffffffffffffffff81116101bf57606081840360031901126101bf5760040191610104359067ffffffffffffffff82116101bf576105f59160040161054e565b346101bf576101403660031901126101bf576004356001600160a01b03811681036101bf575060c03660231901126101bf576101243567ffffffffffffffff81116101bf576106c190369060040161054e565b905050630a85dc2960e01b5f5260045ffd5b60e4359081151582036101bf57565b610104359081600f0b82036101bf57565b346101bf576101203660031901126101bf576004356001600160a01b03811681036101bf575060c03660231901126101bf5760e43562ffffff811681036101bf57506101043567ffffffffffffffff81116101bf576106c190369060040161054e565b90601f8019910116810190811067ffffffffffffffff82111761019257604052565b5f9182918160405192839283378101838152039082305af1903d15610808573d9167ffffffffffffffff831161019257604051926107c0601f8201601f191660200185610756565b83523d5f602085013e5b61080657508051156107de57602081519101fd5b7fa40afa38000000000000000000000000000000000000000000000000000000005f5260045ffd5b565b6060916107ca56fea2646970667358221220f2fa865fa9f51291f35fab5b54e979de4ed0314a04c62fc3a3f8d2fce9fd131b64736f6c634300081a0033000000000000000000000000c51de4c65d6e3fb612050e383495e9457840d2c90000000000000000000000006b1fdfc5dfb10dc5735bb242d014b4d4f1fb2c7a", + "nonce": "0x17", + "chainId": "0x61" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0xbd8d7", + "logs": [], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0xd7b25c664a9935aef38d672557d578c8d943a0ad943b63ba6997cdfb0742de88", + "transactionIndex": "0x4", + "blockHash": "0xa25571cdf8ef02b828ddc03ccce998dffc4da2d353264b56284d42e21a6bb277", + "blockNumber": "0x292acac", + "gasUsed": "0x83aec", + "effectiveGasPrice": "0x12a05f200", + "from": "0xbf0135be6a39257c659fd1955324dc3cdb342f29", + "to": null, + "contractAddress": "0xb8848825d56d32679a1b451ce581ba665c4786b3" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1724221188, + "chain": 97, + "commit": "1d49ff8" +} \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index 28dc252..b966d03 100644 --- a/foundry.toml +++ b/foundry.toml @@ -11,7 +11,10 @@ optimizer_runs = 1000 via_ir = true evm_version = 'cancun' ffi = true -fs_permissions = [{ access = "read-write", path = ".forge-snapshots/" }] +fs_permissions = [ + { access = "read-write", path = ".forge-snapshots/" }, + { access = "read", path = "./script/config" }, +] [profile.default.fuzz] runs = 1000 diff --git a/script/01_DeployMockVeToken.s.sol b/script/01_DeployMockVeToken.s.sol new file mode 100644 index 0000000..19b806c --- /dev/null +++ b/script/01_DeployMockVeToken.s.sol @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.24; + +import "forge-std/Script.sol"; +import {BaseScript} from "./BaseScript.sol"; + +import {MockERC20} from "solmate/src/test/utils/mocks/MockERC20.sol"; + +/** + * forge script script/01_DeployMockVeToken.s.sol:DeployMockVeTokenScript -vvv \ + * --rpc-url $RPC_URL \ + * --broadcast \ + * --slow \ + * --verify + */ +contract DeployMockVeTokenScript is BaseScript { + function run() public { + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); + vm.startBroadcast(deployerPrivateKey); + + MockERC20 VeCake = new MockERC20("MockVeCake", "VeCake", 18); + emit log_named_address("MockVeCake", address(VeCake)); + + vm.stopBroadcast(); + } +} diff --git a/script/02_DeployCLVeCakeExclusiveHook.s.sol b/script/02_DeployCLVeCakeExclusiveHook.s.sol new file mode 100644 index 0000000..80e4644 --- /dev/null +++ b/script/02_DeployCLVeCakeExclusiveHook.s.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.24; + +import "forge-std/Script.sol"; +import {BaseScript} from "./BaseScript.sol"; + +import {CLVeCakeExclusiveHook} from "../src/pool-cl/vecake-exclusive/CLVeCakeExclusiveHook.sol"; +import {ICLPoolManager} from "pancake-v4-core/src/pool-cl/interfaces/ICLPoolManager.sol"; + +/** + * forge script script/02_DeployCLVeCakeExclusiveHook.s.sol:DeployCLVeCakeExclusiveHookScript -vvv \ + * --rpc-url $RPC_URL \ + * --broadcast \ + * --slow \ + * --verify + */ +contract DeployCLVeCakeExclusiveHookScript is BaseScript { + function run() public { + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); + vm.startBroadcast(deployerPrivateKey); + + address clPoolManager = getAddressFromConfig("clPoolManager"); + emit log_named_address("CLPoolManager", clPoolManager); + + address veCake = getAddressFromConfig("veCake"); + emit log_named_address("VeCake", veCake); + + CLVeCakeExclusiveHook clVeCakeExclusiveHook = + new CLVeCakeExclusiveHook(ICLPoolManager(clPoolManager), address(veCake)); + emit log_named_address("CLVeCakeExclusiveHook", address(clVeCakeExclusiveHook)); + + vm.stopBroadcast(); + } +} diff --git a/script/03_DeployBinVeCakeExclusiveHook.s.sol b/script/03_DeployBinVeCakeExclusiveHook.s.sol new file mode 100644 index 0000000..6d80cf8 --- /dev/null +++ b/script/03_DeployBinVeCakeExclusiveHook.s.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.24; + +import "forge-std/Script.sol"; +import {BaseScript} from "./BaseScript.sol"; + +import {BinVeCakeExclusiveHook} from "../src/pool-bin/vecake-exclusive/BinVeCakeExclusiveHook.sol"; +import {IBinPoolManager} from "pancake-v4-core/src/pool-bin/interfaces/IBinPoolManager.sol"; + +/** + * forge script script/03_DeployBinVeCakeExclusiveHook.s.sol:DeployBinVeCakeExclusiveHookScript -vvv \ + * --rpc-url $RPC_URL \ + * --broadcast \ + * --slow \ + * --verify + */ +contract DeployBinVeCakeExclusiveHookScript is BaseScript { + function run() public { + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); + vm.startBroadcast(deployerPrivateKey); + + address binPoolManager = getAddressFromConfig("binPoolManager"); + emit log_named_address("BinPoolManager", binPoolManager); + + address veCake = getAddressFromConfig("veCake"); + emit log_named_address("VeCake", veCake); + + BinVeCakeExclusiveHook binVeCakeExclusiveHook = + new BinVeCakeExclusiveHook(IBinPoolManager(binPoolManager), address(veCake)); + emit log_named_address("CLVeCakeExclusiveHook", address(binVeCakeExclusiveHook)); + + vm.stopBroadcast(); + } +} diff --git a/script/BaseScript.sol b/script/BaseScript.sol new file mode 100644 index 0000000..cce3c75 --- /dev/null +++ b/script/BaseScript.sol @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; + +abstract contract BaseScript is Test { + string path; + + function setUp() public virtual { + string memory scriptConfig = vm.envString("SCRIPT_CONFIG"); + emit log(string.concat("[BaseScript] SCRIPT_CONFIG: ", scriptConfig)); + + string memory root = vm.projectRoot(); + path = string.concat(root, "/script/config/", scriptConfig, ".json"); + emit log(string.concat("[BaseScript] Reading config from: ", path)); + } + + // reference: https://github.com/foundry-rs/foundry/blob/master/testdata/default/cheats/Json.t.sol + function getAddressFromConfig(string memory key) public view returns (address) { + string memory json = vm.readFile(path); + bytes memory data = vm.parseJson(json, string.concat(".", key)); + + // seems like foundry decode as 0x20 when address is not set or as "0x" + address decodedData = abi.decode(data, (address)); + require(decodedData != address(0x20), "Address not set"); + + return decodedData; + } +} diff --git a/script/config/bsc-testnet.json b/script/config/bsc-testnet.json new file mode 100644 index 0000000..1f68afd --- /dev/null +++ b/script/config/bsc-testnet.json @@ -0,0 +1,17 @@ +{ + "permit2": "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", + "weth": "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd", + "vault": "0x79D5A618c43eCAda2BaaC65A9979cF120128f6Fa", + "clPoolManager": "0x40a081A39E9638fa6e2463B92A4eff4Bdf877179", + "binPoolManager": "0xc51DE4C65d6e3fb612050E383495e9457840d2c9", + "clPositionManager": "0xF254D17B9Ccae6BC3a40c8caDF3B8Ef563362C2D", + "binPositionManager": "0x45caADA89A3E257EA17fA3B56c3E09b63CD241B1", + "clQuoter:": "0x1E51cB768587C7A22AEBdCe787fb68A0953ec113", + "binQuoter": "0x76A1DFf6c0c64CE0906269228e89256b20A1fa2f", + "clMigrator": "0xF4a2f2A173ef10dF3733bb501d9DFFaD024567FC", + "binMigrator": "0x7a6689073890AFAa6d592B840d2fA73b2D52B820", + "veCake": "0x6B1fdFc5dFB10DC5735bB242D014B4d4F1fb2c7A", + "clVeCakeExclusiveHook": "0x470a9995c3bf588eE90A7F8e1b5372da1643Bca1", + "binVeCakeExclusiveHook": "0xb8848825d56D32679A1B451CE581ba665c4786B3" + } + \ No newline at end of file