Skip to content

Commit 1745001

Browse files
committed
feat(FB): ✨ added ripple spec
1 parent 7fffc43 commit 1745001

File tree

1 file changed

+301
-0
lines changed

1 file changed

+301
-0
lines changed

specs/mainnet-1/specs/ripple.json

+301
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,301 @@
1+
{
2+
"proposal": {
3+
"title": "Add Specs: ripple",
4+
"description": "Adding new specification support for relaying ripple data on Lava",
5+
"specs": [
6+
{
7+
"index": "XRP",
8+
"name": "ripple mainnet",
9+
"enabled": true,
10+
"reliability_threshold": 268435455,
11+
"data_reliability_enabled": true,
12+
"block_distance_for_finalized_data": 4,
13+
"blocks_in_finalization_proof": 3,
14+
"average_block_time": 4000,
15+
"allowed_block_lag_for_qos_sync": 5,
16+
"imports": [],
17+
"shares": 1,
18+
"min_stake_provider": {
19+
"denom": "ulava",
20+
"amount": "50000000"
21+
},
22+
"api_collections": [
23+
{
24+
"enabled": true,
25+
"collection_data": {
26+
"api_interface": "rest",
27+
"internal_path": "",
28+
"type": "POST",
29+
"add_on": ""
30+
},
31+
"apis": [
32+
{
33+
"name": "account_info",
34+
"block_parsing": {
35+
"parser_arg": [
36+
"latest"
37+
],
38+
"parser_func": "DEFAULT"
39+
},
40+
"compute_units": 10,
41+
"enabled": true,
42+
"category": {
43+
"deterministic": true,
44+
"local": false,
45+
"subscription": false,
46+
"stateful": 0
47+
},
48+
"extra_compute_units": 0
49+
},
50+
{
51+
"name": "gateway_balances",
52+
"block_parsing": {
53+
"parser_arg": [
54+
"latest"
55+
],
56+
"parser_func": "DEFAULT"
57+
},
58+
"compute_units": 10,
59+
"enabled": true,
60+
"category": {
61+
"deterministic": true,
62+
"local": false,
63+
"subscription": false,
64+
"stateful": 0
65+
},
66+
"extra_compute_units": 0
67+
},
68+
{
69+
"name": "account_lines",
70+
"block_parsing": {
71+
"parser_arg": [
72+
"latest"
73+
],
74+
"parser_func": "DEFAULT"
75+
},
76+
"compute_units": 10,
77+
"enabled": true,
78+
"category": {
79+
"deterministic": true,
80+
"local": false,
81+
"subscription": false,
82+
"stateful": 0
83+
},
84+
"extra_compute_units": 0
85+
},
86+
{
87+
"name": "submit",
88+
"block_parsing": {
89+
"parser_arg": [
90+
"latest"
91+
],
92+
"parser_func": "DEFAULT"
93+
},
94+
"compute_units": 10,
95+
"enabled": true,
96+
"category": {
97+
"deterministic": false,
98+
"local": false,
99+
"subscription": false,
100+
"stateful": 1
101+
},
102+
"extra_compute_units": 0
103+
},
104+
{
105+
"name": "server_state",
106+
"block_parsing": {
107+
"parser_arg": [
108+
"latest"
109+
],
110+
"parser_func": "DEFAULT"
111+
},
112+
"compute_units": 10,
113+
"enabled": true,
114+
"category": {
115+
"deterministic": true,
116+
"local": false,
117+
"subscription": false,
118+
"stateful": 0
119+
},
120+
"extra_compute_units": 0
121+
},
122+
{
123+
"name": "fee",
124+
"block_parsing": {
125+
"parser_arg": [
126+
"latest"
127+
],
128+
"parser_func": "DEFAULT"
129+
},
130+
"compute_units": 10,
131+
"enabled": true,
132+
"category": {
133+
"deterministic": true,
134+
"local": false,
135+
"subscription": false,
136+
"stateful": 0
137+
},
138+
"extra_compute_units": 0
139+
},
140+
{
141+
"name": "tx",
142+
"block_parsing": {
143+
"parser_arg": [
144+
"latest"
145+
],
146+
"parser_func": "DEFAULT"
147+
},
148+
"compute_units": 10,
149+
"enabled": true,
150+
"category": {
151+
"deterministic": true,
152+
"local": false,
153+
"subscription": false,
154+
"stateful": 0
155+
},
156+
"extra_compute_units": 0
157+
},
158+
{
159+
"name": "ledger",
160+
"block_parsing": {
161+
"parser_arg": [
162+
"0",
163+
"result",
164+
"ledger_index"
165+
],
166+
"parser_func": "PARSE_CANONICAL"
167+
},
168+
"compute_units": 10,
169+
"enabled": true,
170+
"category": {
171+
"deterministic": true,
172+
"local": false,
173+
"subscription": false,
174+
"stateful": 0
175+
},
176+
"extra_compute_units": 0
177+
},
178+
{
179+
"name": "server_info",
180+
"block_parsing": {
181+
"parser_arg": [
182+
"latest"
183+
],
184+
"parser_func": "DEFAULT"
185+
},
186+
"compute_units": 10,
187+
"enabled": true,
188+
"category": {
189+
"deterministic": true,
190+
"local": false,
191+
"subscription": false,
192+
"stateful": 0
193+
},
194+
"extra_compute_units": 0
195+
}
196+
],
197+
"headers": [],
198+
"inheritance_apis": [],
199+
"parse_directives": [
200+
{
201+
"function_tag": "GET_BLOCK_BY_NUM",
202+
"function_template": "{\"method\":\"ledger\",\"params\":[{\"ledger_index\":\"%d\",\"transactions\":false,\"expand\":false,\"owner_funds\":false}]}",
203+
"result_parsing": {
204+
"parser_arg": [
205+
"0",
206+
"result",
207+
"ledger",
208+
"ledger_index"
209+
],
210+
"parser_func": "PARSE_CANONICAL"
211+
},
212+
"api_name": "ledger"
213+
},
214+
{
215+
"function_tag": "GET_BLOCKNUM",
216+
"function_template": "{\"method\":\"ledger\",\"params\":[{\"ledger_index\":\"validated\",\"transactions\":false,\"expand\":false,\"owner_funds\":false}]}",
217+
"result_parsing": {
218+
"parser_arg": [
219+
"0",
220+
"result",
221+
"ledger",
222+
"ledger_index"
223+
],
224+
"parser_func": "PARSE_CANONICAL"
225+
},
226+
"api_name": "ledger"
227+
}
228+
],
229+
"verifications": [
230+
{
231+
"name": "chain-id",
232+
"parse_directive": {
233+
"function_template": "{\"method\":\"server_info\",\"params\":[{\"counters\":false}]}",
234+
"function_tag": "VERIFICATION",
235+
"result_parsing": {
236+
"parser_arg": [
237+
"0",
238+
"result",
239+
"info",
240+
"network_id"
241+
],
242+
"parser_func": "PARSE_CANONICAL"
243+
},
244+
"api_name": "server_info"
245+
},
246+
"values": [
247+
{
248+
"expected_value": "0"
249+
}
250+
]
251+
}
252+
],
253+
"extensions": []
254+
}
255+
]
256+
},
257+
{
258+
"index": "XRPT",
259+
"name": "ripple testnet",
260+
"enabled": true,
261+
"reliability_threshold": 268435455,
262+
"data_reliability_enabled": true,
263+
"block_distance_for_finalized_data": 4,
264+
"blocks_in_finalization_proof": 3,
265+
"average_block_time": 4000,
266+
"allowed_block_lag_for_qos_sync": 5,
267+
"imports": [
268+
"XRP"
269+
],
270+
"shares": 1,
271+
"min_stake_provider": {
272+
"denom": "ulava",
273+
"amount": "50000000"
274+
},
275+
"api_collections": [
276+
{
277+
"enabled": true,
278+
"collection_data": {
279+
"api_interface": "rest",
280+
"internal_path": "",
281+
"type": "POST",
282+
"add_on": ""
283+
},
284+
"apis": [],
285+
"verifications": [
286+
{
287+
"name": "chain-id",
288+
"values": [
289+
{
290+
"expected_value": "1"
291+
}
292+
]
293+
}
294+
]
295+
}
296+
]
297+
}
298+
]
299+
},
300+
"deposit": "10000000ulava"
301+
}

0 commit comments

Comments
 (0)