From 1b70a1d6a126fd86a24d16ddcd38d151d7aebafd Mon Sep 17 00:00:00 2001 From: Xeonus Date: Thu, 19 Dec 2024 09:10:35 +0100 Subject: [PATCH 1/4] CowAMM GEAR: Seed Injector - Send 158974.37 so we can fund 2 injections, 158974.35 GEAR per injection as per requested program --- .../mainnet/SEND-GEAR-GEAR-Injector-v2.json | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.json diff --git a/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.json b/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.json new file mode 100644 index 000000000..59c4e4620 --- /dev/null +++ b/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.json @@ -0,0 +1,40 @@ +{ + "version": "1.0", + "chainId": "1", + "createdAt": 1734595690566, + "meta": { + "name": "Transactions Batch", + "description": "Send GEAR for first 2 week program to GEAR injector v2", + "txBuilderVersion": "1.17.1", + "createdFromSafeAddress": "0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e", + "createdFromOwnerAddress": "", + "checksum": "0xf280d79c5549790517c6a89a581203faad4fa5de5b39a01d01dc2309bdbf27fc" + }, + "transactions": [ + { + "to": "0xBa3335588D9403515223F109EdC4eB7269a9Ab5D", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { + "internalType": "address", + "name": "dst", + "type": "address" + }, + { + "internalType": "uint256", + "name": "rawAmount", + "type": "uint256" + } + ], + "name": "transfer", + "payable": false + }, + "contractInputsValues": { + "dst": "0xfa7b21B30325DBbd4A71ee2B2EDE74A7d8A2c0E4", + "rawAmount": "158974370000000000000000" + } + } + ] +} From f116e609a9b2bfd7fe19b4c9071ce1101af70bf9 Mon Sep 17 00:00:00 2001 From: Xeonus Date: Thu, 19 Dec 2024 08:12:26 +0000 Subject: [PATCH 2/4] Automated processing of Payload PR (validations, transformations, and reports) + reformat JSON --- .../mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt diff --git a/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt b/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt new file mode 100644 index 000000000..41513365e --- /dev/null +++ b/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt @@ -0,0 +1,13 @@ +FILENAME: `MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.json` +MULTISIG: `multisigs/maxi_omni (mainnet:0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e)` +COMMIT: `1b70a1d6a126fd86a24d16ddcd38d151d7aebafd` +CHAIN(S): `mainnet` +TENDERLY: [`🟩 SUCCESS`](https://www.tdly.co/shared/simulation/d345cce8-b262-4777-a24d-42ada5f6b76f) + +``` ++----------+-------------------------------------------------+------------------------------------------------------------------------+-----------------+-----+----------+ +| function | token_symbol | recipient | amount | bip | tx_index | ++----------+-------------------------------------------------+------------------------------------------------------------------------+-----------------+-----+----------+ +| transfer | GEAR:0xBa3335588D9403515223F109EdC4eB7269a9Ab5D | maxiKeepers/injectorV2/GEAR:0xfa7b21B30325DBbd4A71ee2B2EDE74A7d8A2c0E4 | N/A (RAW: None) | N/A | 0 | ++----------+-------------------------------------------------+------------------------------------------------------------------------+-----------------+-----+----------+ +``` From 77b550433ddeaf690a5a8451e83ca54acae93a4e Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Thu, 19 Dec 2024 10:27:14 +0100 Subject: [PATCH 3/4] fix: support more amount arg names --- action-scripts/brownie/scripts/reports.py | 1 + 1 file changed, 1 insertion(+) diff --git a/action-scripts/brownie/scripts/reports.py b/action-scripts/brownie/scripts/reports.py index 3ce3a94da..88eccd7c4 100644 --- a/action-scripts/brownie/scripts/reports.py +++ b/action-scripts/brownie/scripts/reports.py @@ -622,6 +622,7 @@ def _parse_transfer(transaction: dict, **kwargs) -> Optional[dict]: or transaction["contractInputsValues"].get("value") or transaction["contractInputsValues"].get("wad") or transaction["contractInputsValues"].get("_value") + or transaction["contractInputsValues"].get("rawAmount") ) amount = int(raw_amount) / 10 ** token.decimals() if raw_amount else "N/A" symbol = token.symbol() From 458c8f88a8f7dbbaf64d2f5a4a012ee710f00bd0 Mon Sep 17 00:00:00 2001 From: gosuto-inzasheru Date: Thu, 19 Dec 2024 09:29:03 +0000 Subject: [PATCH 4/4] Automated processing of Payload PR (validations, transformations, and reports) + reformat JSON --- .../mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt b/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt index 41513365e..0d5cadb53 100644 --- a/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt +++ b/MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.report.txt @@ -1,13 +1,13 @@ FILENAME: `MaxiOps/injectorScheduling/mainnet/SEND-GEAR-GEAR-Injector-v2.json` MULTISIG: `multisigs/maxi_omni (mainnet:0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e)` -COMMIT: `1b70a1d6a126fd86a24d16ddcd38d151d7aebafd` +COMMIT: `77b550433ddeaf690a5a8451e83ca54acae93a4e` CHAIN(S): `mainnet` -TENDERLY: [`🟩 SUCCESS`](https://www.tdly.co/shared/simulation/d345cce8-b262-4777-a24d-42ada5f6b76f) +TENDERLY: [`🟩 SUCCESS`](https://www.tdly.co/shared/simulation/9de9d34a-47dd-414e-96f0-d11822ac8c9a) ``` -+----------+-------------------------------------------------+------------------------------------------------------------------------+-----------------+-----+----------+ -| function | token_symbol | recipient | amount | bip | tx_index | -+----------+-------------------------------------------------+------------------------------------------------------------------------+-----------------+-----+----------+ -| transfer | GEAR:0xBa3335588D9403515223F109EdC4eB7269a9Ab5D | maxiKeepers/injectorV2/GEAR:0xfa7b21B30325DBbd4A71ee2B2EDE74A7d8A2c0E4 | N/A (RAW: None) | N/A | 0 | -+----------+-------------------------------------------------+------------------------------------------------------------------------+-----------------+-----+----------+ ++----------+-------------------------------------------------+------------------------------------------------------------------------+-------------------------------------------+-----+----------+ +| function | token_symbol | recipient | amount | bip | tx_index | ++----------+-------------------------------------------------+------------------------------------------------------------------------+-------------------------------------------+-----+----------+ +| transfer | GEAR:0xBa3335588D9403515223F109EdC4eB7269a9Ab5D | maxiKeepers/injectorV2/GEAR:0xfa7b21B30325DBbd4A71ee2B2EDE74A7d8A2c0E4 | 158974.37 (RAW: 158974370000000000000000) | N/A | 0 | ++----------+-------------------------------------------------+------------------------------------------------------------------------+-------------------------------------------+-----+----------+ ```