From a60c6945012b6b6804218635f2bc329f2f1bea16 Mon Sep 17 00:00:00 2001 From: tritium-vlk <11885129+Tritium-VLK@users.noreply.github.com> Date: Fri, 3 Feb 2023 17:09:19 +0100 Subject: [PATCH 1/6] add types to action. --- .github/workflows/run_feesweep.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_feesweep.yaml b/.github/workflows/run_feesweep.yaml index 7b4799cfb..ee217d9ad 100644 --- a/.github/workflows/run_feesweep.yaml +++ b/.github/workflows/run_feesweep.yaml @@ -1,7 +1,9 @@ -on: ["pull_request"] - name: Run Sweep Fees if new input data is there +on: + pull_request: + types: [ labeled ] + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 477cefd9fe33b88defdac59402ca86d23fd95e57 Mon Sep 17 00:00:00 2001 From: tritium-vlk <11885129+Tritium-VLK@users.noreply.github.com> Date: Fri, 3 Feb 2023 17:12:52 +0100 Subject: [PATCH 2/6] update requiremetns and debugging in action. --- .github/workflows/run_feesweep.yaml | 3 +++ tools/python/requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/run_feesweep.yaml b/.github/workflows/run_feesweep.yaml index ee217d9ad..94695dc55 100644 --- a/.github/workflows/run_feesweep.yaml +++ b/.github/workflows/run_feesweep.yaml @@ -22,6 +22,9 @@ jobs: - name: Go to tools run: cd tools/python + - name: print working dir + run: pwd + - name: Install Requirements run: pip install -r requirements.txt diff --git a/tools/python/requirements.txt b/tools/python/requirements.txt index 0b076fb62..93f0a607f 100644 --- a/tools/python/requirements.txt +++ b/tools/python/requirements.txt @@ -1 +1,2 @@ datetime +dotmap From 85efe9bca9a378b39b1a4d4ad4df98327a3cdccd Mon Sep 17 00:00:00 2001 From: tritium-vlk <11885129+Tritium-VLK@users.noreply.github.com> Date: Fri, 3 Feb 2023 17:22:05 +0100 Subject: [PATCH 3/6] CD doesn't carry across steps. --- .github/workflows/run_feesweep.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_feesweep.yaml b/.github/workflows/run_feesweep.yaml index 94695dc55..fd8fcb3b0 100644 --- a/.github/workflows/run_feesweep.yaml +++ b/.github/workflows/run_feesweep.yaml @@ -11,6 +11,9 @@ jobs: sweepFees: if: github.event.label.name == 'Sweep Fees' runs-on: ubuntu-latest + defaults: + run: + working-directory: tools/python steps: - uses: actions/checkout@v2 @@ -19,9 +22,6 @@ jobs: with: python-version: 3.9 - - name: Go to tools - run: cd tools/python - - name: print working dir run: pwd From a7c58e31e9acbf4eda016646effd9eb88c2706a9 Mon Sep 17 00:00:00 2001 From: Tritium <11885129+Tritium-VLK@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:01:58 +0100 Subject: [PATCH 4/6] chore: add payload file --- MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json diff --git a/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json b/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json new file mode 100644 index 000000000..0e281a1a3 --- /dev/null +++ b/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json @@ -0,0 +1 @@ +{"version":"1.0","chainId":"1","createdAt":1734530468173,"meta":{"name":"Transactions Batch","description":"","txBuilderVersion":"1.16.5","createdFromSafeAddress":"0xc38c5f97B34E175FFd35407fc91a937300E33860","createdFromOwnerAddress":"","checksum":"0x90f4c82078ec24e1c5389807a2084a2e7a3c9904d86f418ef33e7b6a67722ee5"},"transactions":[{"to":"0xf5dECDB1f3d1ee384908Fbe16D2F0348AE43a9eA","value":"0","data":null,"contractMethod":{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"performAction","payable":true},"contractInputsValues":{"target":"0x5612876e6f6ca370d93873fe28c874e89e741fb9","data":"0xe8de0d4d0000000000000000000000005612...1fB9000000000000000000000000fa7b21b30325dbbd4a71ee2b2ede74a7d8a2c0e4"}}]} \ No newline at end of file From 6e87d9d073b798d81ab6543440255d2702397b95 Mon Sep 17 00:00:00 2001 From: Tritium <11885129+Tritium-VLK@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:07:50 +0100 Subject: [PATCH 5/6] Update run_feesweep.yaml Fix merge conflict --- .github/workflows/run_feesweep.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/run_feesweep.yaml b/.github/workflows/run_feesweep.yaml index 4200a5762..c5efe8971 100644 --- a/.github/workflows/run_feesweep.yaml +++ b/.github/workflows/run_feesweep.yaml @@ -4,10 +4,6 @@ on: pull_request: types: [labeled, synchronize] -on: - pull_request: - types: [ labeled ] - env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LABEL: Sweep Fees From 26dee90840ec0c0023cf1bc4e15db62695c9e422 Mon Sep 17 00:00:00 2001 From: Tritium-VLK Date: Wed, 18 Dec 2024 14:10:54 +0000 Subject: [PATCH 6/6] Automated processing of Payload PR (validations, transformations, and reports) + reformat JSON --- .../ethereum/add-reward-to-gauge.json | 33 ++++++++++++++++++- .../ethereum/add-reward-to-gauge.report.txt | 20 +++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 MaxiOps/add_rewards/ethereum/add-reward-to-gauge.report.txt diff --git a/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json b/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json index 0e281a1a3..39ba9e7c0 100644 --- a/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json +++ b/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json @@ -1 +1,32 @@ -{"version":"1.0","chainId":"1","createdAt":1734530468173,"meta":{"name":"Transactions Batch","description":"","txBuilderVersion":"1.16.5","createdFromSafeAddress":"0xc38c5f97B34E175FFd35407fc91a937300E33860","createdFromOwnerAddress":"","checksum":"0x90f4c82078ec24e1c5389807a2084a2e7a3c9904d86f418ef33e7b6a67722ee5"},"transactions":[{"to":"0xf5dECDB1f3d1ee384908Fbe16D2F0348AE43a9eA","value":"0","data":null,"contractMethod":{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"performAction","payable":true},"contractInputsValues":{"target":"0x5612876e6f6ca370d93873fe28c874e89e741fb9","data":"0xe8de0d4d0000000000000000000000005612...1fB9000000000000000000000000fa7b21b30325dbbd4a71ee2b2ede74a7d8a2c0e4"}}]} \ No newline at end of file +{ + "version": "1.0", + "chainId": "1", + "createdAt": 1734530468173, + "meta": { + "name": "Transactions Batch", + "description": "", + "txBuilderVersion": "1.16.5", + "createdFromSafeAddress": "0xc38c5f97B34E175FFd35407fc91a937300E33860", + "createdFromOwnerAddress": "", + "checksum": "0x90f4c82078ec24e1c5389807a2084a2e7a3c9904d86f418ef33e7b6a67722ee5" + }, + "transactions": [ + { + "to": "0xf5dECDB1f3d1ee384908Fbe16D2F0348AE43a9eA", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { "internalType": "address", "name": "target", "type": "address" }, + { "internalType": "bytes", "name": "data", "type": "bytes" } + ], + "name": "performAction", + "payable": true + }, + "contractInputsValues": { + "target": "0x5612876e6f6ca370d93873fe28c874e89e741fb9", + "data": "0xe8de0d4d0000000000000000000000005612...1fB9000000000000000000000000fa7b21b30325dbbd4a71ee2b2ede74a7d8a2c0e4" + } + } + ] +} diff --git a/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.report.txt b/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.report.txt new file mode 100644 index 000000000..d18c0deb9 --- /dev/null +++ b/MaxiOps/add_rewards/ethereum/add-reward-to-gauge.report.txt @@ -0,0 +1,20 @@ +FILENAME: `MaxiOps/add_rewards/ethereum/add-reward-to-gauge.json` +MULTISIG: `multisigs/lm (mainnet:0xc38c5f97B34E175FFd35407fc91a937300E33860)` +COMMIT: `6e87d9d073b798d81ab6543440255d2702397b95` +CHAIN(S): `mainnet` +TENDERLY: `🟪 SKIPPED (Web3ValidationError("\nCould not identify the intended function with name `performAction`, positional arguments with type(s) `address,str` and keyword arguments with type(s) `{}`.\nFound 1 function(s) with the name `performAction`: ['performAction(address,bytes)']\nFunction invocation failed due to no matching argument types."))` + +``` ++---------------+-----------------------------------------------------------------------------------------------------------------+-------+---------------------------------------------------------------------------------------------------------------------+------------+----------+ +| fx_name | to | value | inputs | bip_number | tx_index | ++---------------+-----------------------------------------------------------------------------------------------------------------+-------+---------------------------------------------------------------------------------------------------------------------+------------+----------+ +| performAction | 0xf5dECDB1f3d1ee384908Fbe16D2F0348AE43a9eA (20221124-authorizer-adaptor-entrypoint/AuthorizerAdaptorEntrypoint) | 0 | { | N/A | N/A | +| | | | "target": [ | | | +| | | | "0x5612876e6f6ca370d93873fe28c874e89e741fb9 (gauges/USDC-DAI-USDT-gauge-5612)" | | | +| | | | ], | | | +| | | | "data": [ | | | +| | | | "0xe8de0d4d0000000000000000000000005612...1fB9000000000000000000000000fa7b21b30325dbbd4a71ee2b2ede74a7d8a2c0e4" | | | +| | | | ] | | | +| | | | } | | | ++---------------+-----------------------------------------------------------------------------------------------------------------+-------+---------------------------------------------------------------------------------------------------------------------+------------+----------+ +```