This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Known Addresses v3:
dataDecoded
(#372)
* Naive implementation not covering multiSend fixed tests * Added unit tests with expected business logic * Added simplest case test * Added test for array_value * Added skip for duplicate and 0x0 values * Added test for empty result * Added test and implementation for multisig. Multisig with nesting still needed * Added json for a multiSend nested in another multiSend * Doctored json in order to test that we reaaally don't call info_provider for nested addresses in nested multiSends * Added feature flag
- Loading branch information
1 parent
e9cf668
commit 4634ced
Showing
10 changed files
with
580 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
src/json/commons/DOCTORED_data_decoded_nested_multi_sends.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"method": "multiSend", | ||
"parameters": [ | ||
{ | ||
"name": "transactions", | ||
"type": "bytes", | ||
"value": "0x0084fd13abadf6f5f6c20f5482f264b71f353cc22d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb00000000000000000000000084fd13abadf6f5f6c20f5482f264b71f353cc22d0000000000000000000000000000000000000000000000000000000000bc614e0068881260bd04e9dac7f77a314360ce05435b4818000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e48d80ff0a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000990084fd13abadf6f5f6c20f5482f264b71f353cc22d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb00000000000000000000000084fd13abadf6f5f6c20f5482f264b71f353cc22d0000000000000000000000000000000000000000000000000000000000bc614e00000000000000", | ||
"valueDecoded": [ | ||
{ | ||
"operation": 0, | ||
"to": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", | ||
"value": "0", | ||
"data": "0xa9059cbb00000000000000000000000084fd13abadf6f5f6c20f5482f264b71f353cc22d0000000000000000000000000000000000000000000000000000000000bc614e", | ||
"dataDecoded": { | ||
"method": "transfer", | ||
"parameters": [ | ||
{ | ||
"name": "to", | ||
"type": "address", | ||
"value": "0x991c44331f0E59510Bcff76edBA06C3f552Eef8B" | ||
}, | ||
{ | ||
"name": "value", | ||
"type": "uint256", | ||
"value": "12345678" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"operation": 0, | ||
"to": "0x68881260bd04E9dAc7F77a314360ce05435B4818", | ||
"value": "0", | ||
"data": "0x8d80ff0a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000990084fd13abadf6f5f6c20f5482f264b71f353cc22d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb00000000000000000000000084fd13abadf6f5f6c20f5482f264b71f353cc22d0000000000000000000000000000000000000000000000000000000000bc614e00000000000000", | ||
"dataDecoded": { | ||
"method": "multiSend", | ||
"parameters": [ | ||
{ | ||
"name": "transactions", | ||
"type": "bytes", | ||
"value": "0x0084fd13abadf6f5f6c20f5482f264b71f353cc22d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb00000000000000000000000084fd13abadf6f5f6c20f5482f264b71f353cc22d0000000000000000000000000000000000000000000000000000000000bc614e", | ||
"valueDecoded": [ | ||
{ | ||
"operation": 0, | ||
"to": "0x84fd13aBadF6F5F6c20F5482F264b71F353cc22d", | ||
"value": "0", | ||
"data": "0xa9059cbb00000000000000000000000084fd13abadf6f5f6c20f5482f264b71f353cc22d0000000000000000000000000000000000000000000000000000000000bc614e", | ||
"dataDecoded": { | ||
"method": "transfer", | ||
"parameters": [ | ||
{ | ||
"name": "to", | ||
"type": "address", | ||
"value": "0x84fd13aBadF6F5F6c20F5482F264b71F353cc22d" | ||
}, | ||
{ | ||
"name": "value", | ||
"type": "uint256", | ||
"value": "12345678" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.