Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add app and evm data #9090

Merged
merged 16 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add new analyzer configuration for 0x90411a32 with trade conditions a…
…nd log patterns
  • Loading branch information
0xnekoya committed Jan 9, 2025
commit aa5ca412a2533d4b752b41179f949e2b6ebc60f2
105 changes: 105 additions & 0 deletions evms/analyzers/0x90411a32.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
[
{
"example": {
"chainId": 42161,
"hash": "0x75d1e9cd197ea6fabb961233be0e2d7d43c8e6034c3e14292539059bf9ef3032",
"addresses": ["0x4e5b5d18a6399a3e41c36dd45539e0fad63249eb"]
},
"condition": {
"related": {
"type": "array-in",
"values": [
{
"type": "from"
}
]
},
"value": {
"type": "between",
"max": "0"
},
"function": {
"id": "0x90411a32",
"interface": "swap(address, tuple, tuple[])"
},
"logs": {
"type": "some",
"patterns": [
{
"signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"indexedCount": 2,
"args": [
{
"index": 0,
"value": {
"type": "from"
}
}
],
"count": {
"type": "between",
"min": "1"
}
},
{
"signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"indexedCount": 2,
"args": [
{
"index": 1,
"value": {
"type": "from"
}
}
],
"count": {
"type": "between",
"min": "1"
}
}
]
}
},
"generators": [
{
"type": "trade",
"transfers": [
{
"type": "erc20",
"direction": "in",
"from": {
"type": "array-in",
"not": true,
"values": ["related"]
},
"to": {
"type": "array-in",
"values": ["related"]
},
"amount": {
"type": "between",
"min": "1"
}
},
{
"type": "erc20",
"direction": "out",
"from": {
"type": "array-in",
"values": ["related"]
},
"to": {
"type": "array-in",
"not": true,
"values": ["related"]
},
"amount": {
"type": "between",
"min": "1"
}
}
]
}
]
}
]
Loading