Skip to content

Commit

Permalink
Merge pull request #1854 from lavanet/CNS-arbitrum-trace
Browse files Browse the repository at this point in the history
feat: add arbitrum trace apis
  • Loading branch information
ranlavanet authored Dec 22, 2024
2 parents d4a01fd + 9f9aa0b commit 537c7ca
Showing 1 changed file with 168 additions and 0 deletions.
168 changes: 168 additions & 0 deletions specs/mainnet-1/specs/arbitrum.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,174 @@
}
}
]
},
{
"enabled": true,
"collection_data": {
"api_interface": "jsonrpc",
"internal_path": "",
"type": "POST",
"add_on": "trace"
},
"apis": [
{
"name": "arbtrace_block",
"block_parsing": {
"parser_arg": [
"0"
],
"parser_func": "PARSE_BY_ARG"
},
"compute_units": 50,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "arbtrace_call",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 200,
"enabled": true,
"category": {
"deterministic": false,
"local": true,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "arbtrace_callMany",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 200,
"enabled": true,
"category": {
"deterministic": false,
"local": true,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "arbtrace_filter",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 200,
"enabled": true,
"category": {
"deterministic": false,
"local": true,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "arbtrace_replayBlockTransactions",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 200,
"enabled": true,
"category": {
"deterministic": false,
"local": true,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "arbtrace_replayTransaction",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 200,
"enabled": true,
"category": {
"deterministic": false,
"local": true,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "arbtrace_transaction",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 200,
"enabled": true,
"category": {
"deterministic": false,
"local": true,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
}
],
"verifications": [
{
"name": "enabled",
"parse_directive": {
"function_template": "{\"jsonrpc\":\"2.0\",\"method\":\"arbtrace_block\",\"params\":[\"latest\"],\"id\":1}",
"function_tag": "VERIFICATION",
"result_parsing": {
"parser_arg": [
"0"
],
"parser_func": "PARSE_BY_ARG",
"encoding": "hex"
},
"api_name": "arbtrace_block"
},
"values": [
{
"expected_value": "*"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 284000
}
}
]
}
]
},
Expand Down

0 comments on commit 537c7ca

Please sign in to comment.