diff --git a/BIPs/2023-W36/BIP-420.json b/BIPs/2023-W36/BIP-420.json new file mode 100644 index 000000000..830ab1eba --- /dev/null +++ b/BIPs/2023-W36/BIP-420.json @@ -0,0 +1,115 @@ +{ + "version": "1.0", + "chainId": "1", + "createdAt": 1693966694034, + "meta": { + "name": "Transactions Batch", + "description": "", + "txBuilderVersion": "1.16.2", + "createdFromSafeAddress": "0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f", + "createdFromOwnerAddress": "", + "checksum": "0x3517f71125c83728d931656021b9be6234f273ff3cb99205762cad9322af1a3a" + }, + "transactions": [ + { + "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "name": "transfer", + "payable": false + }, + "contractInputsValues": { + "to": "0x68258012DA3B933a81617FD08c9382a60B87cA98", + "value": "8700000000" + } + }, + { + "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "name": "transfer", + "payable": false + }, + "contractInputsValues": { + "to": "0xc38c5f97B34E175FFd35407fc91a937300E33860", + "value": "2500000000" + } + }, + { + "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "name": "transfer", + "payable": false + }, + "contractInputsValues": { + "to": "0x7b065Fcb0760dF0CEA8CFd144e08554F3CeA73D1", + "value": "4600000000" + } + }, + { + "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "name": "transfer", + "payable": false + }, + "contractInputsValues": { + "to": "0x1bf019A44a708FBEBA7ADc79bdaD3D0769fF3a7b", + "value": "3800000000" + } + } + ] +} diff --git a/BIPs/2023-W36/BIP-420.report.txt b/BIPs/2023-W36/BIP-420.report.txt new file mode 100644 index 000000000..da599aade --- /dev/null +++ b/BIPs/2023-W36/BIP-420.report.txt @@ -0,0 +1,16 @@ +File name: BIPs/2023-W36/BIP-420.json +COMMIT: `89181b31a0ab17b93c16311ae52cf2ae601489fc` +CHAIN(S): `mainnet` +``` ++------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+ +| function | token_symbol | recipient | amount | bip | tx_index | ++============+=================================================+=========================================================+==========================+=========+============+ +| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | N/A:0x68258012DA3B933a81617FD08c9382a60B87cA98 | 8700.0 (RAW: 8700000000) | BIP-420 | 0 | ++------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+ +| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | multisigs/lm:0xc38c5f97B34E175FFd35407fc91a937300E33860 | 2500.0 (RAW: 2500000000) | BIP-420 | 1 | ++------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+ +| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | N/A:0x7b065Fcb0760dF0CEA8CFd144e08554F3CeA73D1 | 4600.0 (RAW: 4600000000) | BIP-420 | 2 | ++------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+ +| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | N/A:0x1bf019A44a708FBEBA7ADc79bdaD3D0769fF3a7b | 3800.0 (RAW: 3800000000) | BIP-420 | 3 | ++------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+ +``` diff --git a/action-scripts/brownie/scripts/report_gauges.py b/action-scripts/brownie/scripts/report_gauges.py index c8f279a51..5b5b280ba 100644 --- a/action-scripts/brownie/scripts/report_gauges.py +++ b/action-scripts/brownie/scripts/report_gauges.py @@ -312,7 +312,7 @@ def _parse_transfer(transaction: dict, **kwargs) -> Optional[dict]: ) amount = int(raw_amount) / 10 ** token.decimals() if raw_amount else "N/A" symbol = token.symbol() - recipient_name = ADDR_BOOK.reversebook[recipient_address] or "N/A" + recipient_name = ADDR_BOOK.reversebook.get(recipient_address, "N/A") return { "function": "transfer", "chain": chain_name.replace("-main", "") if chain_name else "mainnet",