Skip to content

Commit

Permalink
Merge pull request #1185 from BalancerMaxis/fix/tenderly_partial_reverts
Browse files Browse the repository at this point in the history
feat: check for partial reverts in tenderly result
  • Loading branch information
gosuto-inzasheru authored Jul 28, 2024
2 parents 06de8ff + 54ef25f commit e0c5697
Show file tree
Hide file tree
Showing 18 changed files with 234 additions and 52 deletions.
14 changes: 0 additions & 14 deletions BIPs/4269-W69/BIP-535.report.txt

This file was deleted.

14 changes: 0 additions & 14 deletions BIPs/4269-W69/BIP-536.report.txt

This file was deleted.

12 changes: 0 additions & 12 deletions BIPs/4269-W69/BIP-537.report.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"payable": false
},
"contractInputsValues": {
"gauge": "0xCC9723faDed81a9448a9664c39C0Df2e77FDfA2E",
"gauge": [],
"gaugeType": "Ethereum"
}
}
Expand Down
16 changes: 16 additions & 0 deletions BIPs/4269-W69/BIP-605-corrupt.report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FILENAME: `BIPs/4269-W69/BIP-605-corrupt.json`
MULTISIG: `multisigs/lm (mainnet:0xc38c5f97B34E175FFd35407fc91a937300E33860)`
COMMIT: `ae088b4beb46018fb71670d841fa127dbbc89066`
CHAIN(S): `mainnet`
TENDERLY: `🟪 SKIPPED (TypeError("Unsupported type: '<class 'list'>'. Must be one of: bool, str, bytes, bytearrayor int."))`
```
+----------+---------------------------------------------------------------------------------+-------+------------------+------------+----------+
| fx_name | to | value | inputs | bip_number | tx_index |
+----------+---------------------------------------------------------------------------------+-------+------------------+------------+----------+
| addGauge | 0x5DbAd78818D4c8958EfF2d5b95b28385A22113Cd (20230519-gauge-adder-v4/GaugeAdder) | 0 | { | BIP-605 | N/A |
| | | | "gaugeType": [ | | |
| | | | "Ethereum" | | |
| | | | ] | | |
| | | | } | | |
+----------+---------------------------------------------------------------------------------+-------+------------------+------------+----------+
```
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions BIPs/4269-W69/test/BIP-535.report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FILENAME: `BIPs/4269-W69/test/BIP-535.json`
MULTISIG: `multisigs/dao (mainnet:0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f)`
COMMIT: `ae088b4beb46018fb71670d841fa127dbbc89066`
CHAIN(S): `mainnet`
TENDERLY: [`🟩 SUCCESS`](https://www.tdly.co/shared/simulation/832a081f-ab40-44b6-85c7-279af783371f)
```
+----------+-------------------------------------------------+------------------------------------------------+---------------------------+---------+----------+
| function | token_symbol | recipient | amount | bip | tx_index |
+----------+-------------------------------------------------+------------------------------------------------+---------------------------+---------+----------+
| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | N/A:0xDe5cbE25c58c49Ee7635216de6998f8dAcD63b96 | 4382.14 (RAW: 4382140000) | BIP-535 | 0 |
| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | N/A:0xc4F95f674b393a49410acE864833abE836848526 | 4088.24 (RAW: 4088240000) | BIP-535 | 1 |
+----------+-------------------------------------------------+------------------------------------------------+---------------------------+---------+----------+
```
File renamed without changes.
14 changes: 14 additions & 0 deletions BIPs/4269-W69/test/BIP-536.report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FILENAME: `BIPs/4269-W69/test/BIP-536.json`
MULTISIG: `multisigs/lm (mainnet:0xc38c5f97B34E175FFd35407fc91a937300E33860)`
COMMIT: `ae088b4beb46018fb71670d841fa127dbbc89066`
CHAIN(S): `mainnet`
TENDERLY: [`🟥 FAILURE`](https://www.tdly.co/shared/simulation/74aa0f95-3a5b-4be4-81fa-4f7dddb55e1a)
```
+-----------------------+---------------------------------------------------------------------+-----------------+--------------------------------------------+------------------------------------------------------------+--------------------------------------------+----------------+---------+----------+
| function | pool_id_and_address | symbol_and_info | gauge_address_and_info | tokens | rate_providers | review_summary | bip | tx_index |
+-----------------------+---------------------------------------------------------------------+-----------------+--------------------------------------------+------------------------------------------------------------+--------------------------------------------+----------------+---------+----------+
| GaugeAdderV4/addGauge | 0x383e7859271b2d0589b013b6d944572a0a8be3cb000000000000000000000657 | DOLA-mkUSD BSP | 0x6D560CbE3Cc25Eca8c930835Ec3d296a6C16B210 | 0x383e7859271B2D0589B013b6d944572a0a8bE3cB: DOLA-mkUSD BSP | 0x0000000000000000000000000000000000000000 | -- | BIP-536 | 0 |
| | pool_address: 0x383e7859271B2D0589B013b6d944572a0a8bE3cB | fee: 0.04 | Style: mainnet | 0x4591DBfF62656E7859Afe5e45f6f47D3669fBB28: mkUSD | 0x0000000000000000000000000000000000000000 | -- | | |
| | | a-factor: 100 | cap: 100.0% | 0x865377367054516e17014CcdED1e7d814EDC9ce4: DOLA | 0x0000000000000000000000000000000000000000 | -- | | |
+-----------------------+---------------------------------------------------------------------+-----------------+--------------------------------------------+------------------------------------------------------------+--------------------------------------------+----------------+---------+----------+
```
File renamed without changes.
12 changes: 12 additions & 0 deletions BIPs/4269-W69/test/BIP-537.report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FILENAME: `BIPs/4269-W69/test/BIP-537.json`
MULTISIG: `multisigs/dao (mainnet:0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f)`
COMMIT: `ae088b4beb46018fb71670d841fa127dbbc89066`
CHAIN(S): `mainnet`
TENDERLY: [`🟩 SUCCESS`](https://www.tdly.co/shared/simulation/18cc3280-bb5b-4ef4-8219-a187a2110da1)
```
+----------+------------------------------------------------+---------------------------------------------------------+--------------------------------------+---------+----------+
| function | token_symbol | recipient | amount | bip | tx_index |
+----------+------------------------------------------------+---------------------------------------------------------+--------------------------------------+---------+----------+
| transfer | BAL:0xba100000625a3754423978a60c9317c58a424e3D | multisigs/lm:0xc38c5f97B34E175FFd35407fc91a937300E33860 | 6545.0 (RAW: 6545000000000000000000) | BIP-537 | 0 |
+----------+------------------------------------------------+---------------------------------------------------------+--------------------------------------+---------+----------+
```
100 changes: 100 additions & 0 deletions BIPs/4269-W69/test/BIP-653.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"version": "1.0",
"chainId": "1",
"createdAt": 1719444309555,
"meta": {
"name": "Update Paladins Reward Distributors",
"description": "",
"txBuilderVersion": "1.16.5",
"createdFromSafeAddress": "0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f",
"createdFromOwnerAddress": "",
"checksum": "0xeeb50b8f3abf0c5f23b17181f1c01b629930f08c059f6685e08c564e84530b0a"
},
"transactions": [
{
"to": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "internalType": "address", "name": "account", "type": "address" }
],
"name": "grantRole",
"payable": false
},
"contractInputsValues": {
"role": "0xd0090a09f425bba74e6c801fba7c6d15b44147ab0bd319e40076ce07e95168b6",
"account": "0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f"
}
},
{
"to": "0xBC02eF87f4E15EF78A571f3B2aDcC726Fee70d8b",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "name": "_reward_token", "type": "address" },
{ "name": "_distributor", "type": "address" }
],
"name": "set_reward_distributor",
"payable": false
},
"contractInputsValues": {
"_reward_token": "0x41D5D79431A913C4aE7d69a668ecdfE5fF9DFB68",
"_distributor": "0xfEb352930cA196a80B708CDD5dcb4eCA94805daB"
}
},
{
"to": "0xCD19892916929F013930ed628547Cc1F439b230e",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "name": "_reward_token", "type": "address" },
{ "name": "_distributor", "type": "address" }
],
"name": "set_reward_distributor",
"payable": false
},
"contractInputsValues": {
"_reward_token": "0x41D5D79431A913C4aE7d69a668ecdfE5fF9DFB68",
"_distributor": "0xfEb352930cA196a80B708CDD5dcb4eCA94805daB"
}
},
{
"to": "0x21c377cBB2bEdDd8534308E5CdfeBE35fDF817E8",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "name": "_reward_token", "type": "address" },
{ "name": "_distributor", "type": "address" }
],
"name": "set_reward_distributor",
"payable": false
},
"contractInputsValues": {
"_reward_token": "0xCdF7028ceAB81fA0C6971208e83fa7872994beE5",
"_distributor": "0xfEb352930cA196a80B708CDD5dcb4eCA94805daB"
}
},
{
"to": "0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "internalType": "address", "name": "account", "type": "address" }
],
"name": "revokeRole",
"payable": false
},
"contractInputsValues": {
"role": "0xd0090a09f425bba74e6c801fba7c6d15b44147ab0bd319e40076ce07e95168b6",
"account": "0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f"
}
}
]
}
Loading

0 comments on commit e0c5697

Please sign in to comment.