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

feat: PRT - ripple spec #1982

Merged
merged 2 commits into from
Mar 6, 2025
Merged
Changes from all commits
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
301 changes: 301 additions & 0 deletions specs/mainnet-1/specs/ripple.json
Original file line number Diff line number Diff line change
@@ -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"
}
Loading