From 8f2bf18d489aa65a6646f8e7c96fa0ba2b37b914 Mon Sep 17 00:00:00 2001 From: Zen-Maxi <85650601+Zen-Maxi@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:02:00 -0500 Subject: [PATCH 1/2] chore: add payload file --- MaxiOps/injectorScheduling/[chain]/injector-configurator.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 MaxiOps/injectorScheduling/[chain]/injector-configurator.json diff --git a/MaxiOps/injectorScheduling/[chain]/injector-configurator.json b/MaxiOps/injectorScheduling/[chain]/injector-configurator.json new file mode 100644 index 000000000..6c0179265 --- /dev/null +++ b/MaxiOps/injectorScheduling/[chain]/injector-configurator.json @@ -0,0 +1 @@ +{"version":"1.0","chainId":"1","createdAt":1734026402730,"meta":{"name":"Transactions Batch","description":"","txBuilderVersion":"1.17.0","createdFromSafeAddress":"0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e","createdFromOwnerAddress":"","checksum":"0x8266d9ae63588"},"transactions":[{"to":"0x5a18FE4D7a2bd5A39CCa4F9D05D073F21FAE28EE","value":"0","data":null,"contractMethod":{"inputs":[{"name":"gaugeAddresses","type":"address[]","internalType":"address[]"},{"name":"amountsPerPeriod","type":"uint256[]","internalType":"uint256[]"},{"name":"maxPeriods","type":"uint8[]","internalType":"uint8[]"}],"name":"setRecipientList","payable":false},"contractInputsValues":{"gaugeAddresses":"[0x4B891340b51889f438a03DC0e8aAAFB0Bc89e7A6, 0x70A1c01902DAb7a45dcA1098Ca76A8314dd8aDbA, 0x1f3A4C8115629C33A28bF2F97F22D31d256317F6]","amountsPerPeriod":"[1062500000000000000000, 478100000000000000000, 796860000000000000000]","maxPeriods":"[2, 2, 2]"}}]} \ No newline at end of file From bf3c54e9f48c6d74c96aa55876a3d6828656b405 Mon Sep 17 00:00:00 2001 From: Zen-Maxi Date: Thu, 12 Dec 2024 18:08:27 +0000 Subject: [PATCH 2/2] Automated processing of Payload PR (validations, transformations, and reports) + reformat JSON --- .../[chain]/injector-configurator.json | 43 ++++++++++++++++++- .../[chain]/injector-configurator.report.txt | 17 ++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 MaxiOps/injectorScheduling/[chain]/injector-configurator.report.txt diff --git a/MaxiOps/injectorScheduling/[chain]/injector-configurator.json b/MaxiOps/injectorScheduling/[chain]/injector-configurator.json index 6c0179265..c684cd783 100644 --- a/MaxiOps/injectorScheduling/[chain]/injector-configurator.json +++ b/MaxiOps/injectorScheduling/[chain]/injector-configurator.json @@ -1 +1,42 @@ -{"version":"1.0","chainId":"1","createdAt":1734026402730,"meta":{"name":"Transactions Batch","description":"","txBuilderVersion":"1.17.0","createdFromSafeAddress":"0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e","createdFromOwnerAddress":"","checksum":"0x8266d9ae63588"},"transactions":[{"to":"0x5a18FE4D7a2bd5A39CCa4F9D05D073F21FAE28EE","value":"0","data":null,"contractMethod":{"inputs":[{"name":"gaugeAddresses","type":"address[]","internalType":"address[]"},{"name":"amountsPerPeriod","type":"uint256[]","internalType":"uint256[]"},{"name":"maxPeriods","type":"uint8[]","internalType":"uint8[]"}],"name":"setRecipientList","payable":false},"contractInputsValues":{"gaugeAddresses":"[0x4B891340b51889f438a03DC0e8aAAFB0Bc89e7A6, 0x70A1c01902DAb7a45dcA1098Ca76A8314dd8aDbA, 0x1f3A4C8115629C33A28bF2F97F22D31d256317F6]","amountsPerPeriod":"[1062500000000000000000, 478100000000000000000, 796860000000000000000]","maxPeriods":"[2, 2, 2]"}}]} \ No newline at end of file +{ + "version": "1.0", + "chainId": "1", + "createdAt": 1734026402730, + "meta": { + "name": "Transactions Batch", + "description": "", + "txBuilderVersion": "1.17.0", + "createdFromSafeAddress": "0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e", + "createdFromOwnerAddress": "", + "checksum": "0x8266d9ae63588" + }, + "transactions": [ + { + "to": "0x5a18FE4D7a2bd5A39CCa4F9D05D073F21FAE28EE", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { + "name": "gaugeAddresses", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "amountsPerPeriod", + "type": "uint256[]", + "internalType": "uint256[]" + }, + { "name": "maxPeriods", "type": "uint8[]", "internalType": "uint8[]" } + ], + "name": "setRecipientList", + "payable": false + }, + "contractInputsValues": { + "gaugeAddresses": "[0x4B891340b51889f438a03DC0e8aAAFB0Bc89e7A6, 0x70A1c01902DAb7a45dcA1098Ca76A8314dd8aDbA, 0x1f3A4C8115629C33A28bF2F97F22D31d256317F6]", + "amountsPerPeriod": "[1062500000000000000000, 478100000000000000000, 796860000000000000000]", + "maxPeriods": "[2, 2, 2]" + } + } + ] +} diff --git a/MaxiOps/injectorScheduling/[chain]/injector-configurator.report.txt b/MaxiOps/injectorScheduling/[chain]/injector-configurator.report.txt new file mode 100644 index 000000000..7d101efbb --- /dev/null +++ b/MaxiOps/injectorScheduling/[chain]/injector-configurator.report.txt @@ -0,0 +1,17 @@ +FILENAME: `MaxiOps/injectorScheduling/[chain]/injector-configurator.json` +MULTISIG: `multisigs/maxi_omni (mainnet:0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e)` +COMMIT: `545ade7f197b9b837630a1095eba86be66ab472f` +CHAIN(S): `mainnet` +TENDERLY: [`🟩 SUCCESS`](https://www.tdly.co/shared/simulation/896cc5fe-b60b-4e9e-ad84-e4e78d09f1f1) + +``` ++------------------+--------------------------------------------------------------------------------------------+--------+-----------------------------------------------------------------------------------------------+------------------------------------------+---------+--------------------------------------------+----------+ +| function | injector | symbol | gaugeList | amounts_per_period | periods | total_amount_first_period | tx_index | ++------------------+--------------------------------------------------------------------------------------------+--------+-----------------------------------------------------------------------------------------------+------------------------------------------+---------+--------------------------------------------+----------+ +| setRecipientList | 0x5a18FE4D7a2bd5A39CCa4F9D05D073F21FAE28EE(maxiKeepers/gaugeRewardsInjectors/Balancer_BAL) | BAL | [ | [ | [ | raw: 2337460000000000000000/1e18 = 2337.46 | 0 | +| | | | "0x4B891340b51889f438a03DC0e8aAAFB0Bc89e7A6 (Balancer Aave Lido wETH-wstETH Gauge Deposit)", | "1062500000000000000000/1e18 = 1062.5", | "2", | | | +| | | | "0x70A1c01902DAb7a45dcA1098Ca76A8314dd8aDbA (Balancer osETH-waWETH Gauge Deposit)", | "478100000000000000000/1e18 = 478.1", | "2", | | | +| | | | "0x1f3A4C8115629C33A28bF2F97F22D31d256317F6 (Balancer ETHx waWETH Gauge Deposit)" | "796860000000000000000/1e18 = 796.86" | "2" | | | +| | | | ] | ] | ] | | | ++------------------+--------------------------------------------------------------------------------------------+--------+-----------------------------------------------------------------------------------------------+------------------------------------------+---------+--------------------------------------------+----------+ +```