diff --git a/specs/mainnet-1/specs/ripple.json b/specs/mainnet-1/specs/ripple.json new file mode 100644 index 0000000000..8e72e9259a --- /dev/null +++ b/specs/mainnet-1/specs/ripple.json @@ -0,0 +1,301 @@ +{ + "proposal": { + "title": "Add Specs: ripple", + "description": "Adding new specification support for relaying ripple data on Lava", + "specs": [ + { + "index": "XRP", + "name": "ripple mainnet", + "enabled": true, + "reliability_threshold": 268435455, + "data_reliability_enabled": true, + "block_distance_for_finalized_data": 4, + "blocks_in_finalization_proof": 3, + "average_block_time": 4000, + "allowed_block_lag_for_qos_sync": 5, + "imports": [], + "shares": 1, + "min_stake_provider": { + "denom": "ulava", + "amount": "50000000" + }, + "api_collections": [ + { + "enabled": true, + "collection_data": { + "api_interface": "rest", + "internal_path": "", + "type": "POST", + "add_on": "" + }, + "apis": [ + { + "name": "account_info", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": true, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "gateway_balances", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": true, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "account_lines", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": true, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "submit", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 1 + }, + "extra_compute_units": 0 + }, + { + "name": "server_state", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": true, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "fee", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": true, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "tx", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": true, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "ledger", + "block_parsing": { + "parser_arg": [ + "0", + "result", + "ledger_index" + ], + "parser_func": "PARSE_CANONICAL" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": true, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "server_info", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": true, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + } + ], + "headers": [], + "inheritance_apis": [], + "parse_directives": [ + { + "function_tag": "GET_BLOCK_BY_NUM", + "function_template": "{\"method\":\"ledger\",\"params\":[{\"ledger_index\":\"%d\",\"transactions\":false,\"expand\":false,\"owner_funds\":false}]}", + "result_parsing": { + "parser_arg": [ + "0", + "result", + "ledger", + "ledger_index" + ], + "parser_func": "PARSE_CANONICAL" + }, + "api_name": "ledger" + }, + { + "function_tag": "GET_BLOCKNUM", + "function_template": "{\"method\":\"ledger\",\"params\":[{\"ledger_index\":\"validated\",\"transactions\":false,\"expand\":false,\"owner_funds\":false}]}", + "result_parsing": { + "parser_arg": [ + "0", + "result", + "ledger", + "ledger_index" + ], + "parser_func": "PARSE_CANONICAL" + }, + "api_name": "ledger" + } + ], + "verifications": [ + { + "name": "chain-id", + "parse_directive": { + "function_template": "{\"method\":\"server_info\",\"params\":[{\"counters\":false}]}", + "function_tag": "VERIFICATION", + "result_parsing": { + "parser_arg": [ + "0", + "result", + "info", + "network_id" + ], + "parser_func": "PARSE_CANONICAL" + }, + "api_name": "server_info" + }, + "values": [ + { + "expected_value": "0" + } + ] + } + ], + "extensions": [] + } + ] + }, + { + "index": "XRPT", + "name": "ripple testnet", + "enabled": true, + "reliability_threshold": 268435455, + "data_reliability_enabled": true, + "block_distance_for_finalized_data": 4, + "blocks_in_finalization_proof": 3, + "average_block_time": 4000, + "allowed_block_lag_for_qos_sync": 5, + "imports": [ + "XRP" + ], + "shares": 1, + "min_stake_provider": { + "denom": "ulava", + "amount": "50000000" + }, + "api_collections": [ + { + "enabled": true, + "collection_data": { + "api_interface": "rest", + "internal_path": "", + "type": "POST", + "add_on": "" + }, + "apis": [], + "verifications": [ + { + "name": "chain-id", + "values": [ + { + "expected_value": "1" + } + ] + } + ] + } + ] + } + ] + }, + "deposit": "10000000ulava" +} \ No newline at end of file