Skip to content

Commit 523b1e9

Browse files
committed
migrates setprice to components
1 parent e500595 commit 523b1e9

File tree

13 files changed

+5407
-6714
lines changed

13 files changed

+5407
-6714
lines changed

filepathSlugs.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,14 +2981,13 @@
29812981
"response",
29822982
"examples",
29832983
"command-with-volume",
2984+
"command-with-timeout-in-minutes",
29842985
"command-max-true",
29852986
"command-rational-representation-in-num-rational-crate-format",
29862987
"command-rational-representation-as-fraction-object",
29872988
"command-with-min-volume",
29882989
"command-with-confirmations-and-notarization-settings",
2989-
"command-set-to-not-save-order-history",
2990-
"response-success",
2991-
"response-error"
2990+
"command-set-to-not-save-order-history"
29922991
],
29932992
"src/pages/komodo-defi-framework/api/legacy/show_priv_key/index.mdx": [
29942993
"show-priv-key",

src/data/kdf_methods_legacy.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,36 @@
124124
"legacy"
125125
]
126126
},
127+
"setprice": {
128+
"errors_table": "N/A",
129+
"examples": {
130+
"SetpriceVolume": "Setprice with explicit volume",
131+
"SetpriceTimeout": "Setprice with timeout_in_minutes",
132+
"SetpriceMax": "Setprice using max balance",
133+
"SetpriceRationalArray": "Setprice (num-rational arrays)",
134+
"SetpriceFraction": "Setprice (fraction objects)",
135+
"SetpriceMinVolume": "Setprice with min_volume",
136+
"SetpriceConfSettings": "Setprice with custom confirmations",
137+
"SetpriceNoHistory": "Setprice without saving history"
138+
},
139+
"prerequisites": [],
140+
"request_table": "SetpriceRequest",
141+
"requirements": {
142+
"environments": [
143+
"native",
144+
"wasm"
145+
],
146+
"wallet_types": [
147+
"hd",
148+
"iguana"
149+
]
150+
},
151+
"response_table": "SetpriceResponse",
152+
"sequence": 240,
153+
"tags": [
154+
"legacy"
155+
]
156+
},
127157
"coins_needed_for_kick_start": {
128158
"errors_table": "CoinsNeededForKickStartErrors",
129159
"examples": {

src/data/requests/kdf/legacy/coin_activation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"method": "enable",
135135
"swap_contract_address": "0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80",
136136
"urls": [
137-
"https://eth.drpc.org",
137+
"https://0xrpc.io/eth",
138138
"https://eth3.cipig.net:18555",
139139
"https://ethereum-rpc.publicnode.com"
140140
],
@@ -165,7 +165,7 @@
165165
"urls": [
166166
"https://node.komodo.earth:8080/polygon",
167167
"https://pol3.cipig.net:18755",
168-
"https://polygon-bor-rpc.publicnode.com"
168+
"https://polygon.gateway.tenderly.co"
169169
],
170170
"userpass": "RPC_UserP@SSW0RD"
171171
},

src/data/requests/kdf/legacy/swaps_and_orders.json

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,5 +313,126 @@
313313
"denom": "2",
314314
"numer": "3"
315315
}
316+
},
317+
"SetpriceConfSettings": {
318+
"base": "HELLO",
319+
"base_confs": 2,
320+
"base_nota": true,
321+
"method": "setprice",
322+
"price": {
323+
"denom": "1",
324+
"numer": "2"
325+
},
326+
"rel": "WORLD",
327+
"rel_confs": 5,
328+
"rel_nota": false,
329+
"userpass": "RPC_UserP@SSW0RD",
330+
"volume": {
331+
"denom": "2",
332+
"numer": "3"
333+
}
334+
},
335+
"SetpriceFraction": {
336+
"base": "HELLO",
337+
"method": "setprice",
338+
"price": {
339+
"denom": "1",
340+
"numer": "2"
341+
},
342+
"rel": "WORLD",
343+
"userpass": "RPC_UserP@SSW0RD",
344+
"volume": {
345+
"denom": "2",
346+
"numer": "3"
347+
}
348+
},
349+
"SetpriceMax": {
350+
"base": "BASE",
351+
"max": true,
352+
"method": "setprice",
353+
"price": "0.9",
354+
"rel": "REL",
355+
"userpass": "RPC_UserP@SSW0RD"
356+
},
357+
"SetpriceMinVolume": {
358+
"base": "HELLO",
359+
"method": "setprice",
360+
"min_volume": "1",
361+
"price": {
362+
"denom": "1",
363+
"numer": "2"
364+
},
365+
"rel": "WORLD",
366+
"userpass": "RPC_UserP@SSW0RD",
367+
"volume": {
368+
"denom": "2",
369+
"numer": "3"
370+
}
371+
},
372+
"SetpriceNoHistory": {
373+
"base": "KMD",
374+
"method": "setprice",
375+
"price": {
376+
"denom": "12",
377+
"numer": "7"
378+
},
379+
"rel": "TKL",
380+
"save_in_history": false,
381+
"userpass": "RPC_UserP@SSW0RD",
382+
"volume": {
383+
"denom": "3",
384+
"numer": "4"
385+
}
386+
},
387+
"SetpriceRationalArray": {
388+
"base": "HELLO",
389+
"method": "setprice",
390+
"price": [
391+
[
392+
1,
393+
[
394+
1
395+
]
396+
],
397+
[
398+
1,
399+
[
400+
1
401+
]
402+
]
403+
],
404+
"rel": "WORLD",
405+
"userpass": "RPC_UserP@SSW0RD",
406+
"volume": [
407+
[
408+
1,
409+
[
410+
1
411+
]
412+
],
413+
[
414+
1,
415+
[
416+
1
417+
]
418+
]
419+
]
420+
},
421+
"SetpriceTimeout": {
422+
"base": "BASE",
423+
"method": "setprice",
424+
"price": "1.25",
425+
"rel": "REL",
426+
"timeout_in_minutes": 45,
427+
"userpass": "RPC_UserP@SSW0RD",
428+
"volume": "2"
429+
},
430+
"SetpriceVolume": {
431+
"base": "BASE",
432+
"method": "setprice",
433+
"price": "0.9",
434+
"rel": "REL",
435+
"userpass": "RPC_UserP@SSW0RD",
436+
"volume": "1"
316437
}
317438
}

src/data/requests/kdf/v2/coin_activation.json

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@
218218
"url": "https://pol3.cipig.net:18755",
219219
"ws_url": "wss://pol3.cipig.net:38755"
220220
},
221-
{
222-
"url": "https://polygon-bor-rpc.publicnode.com",
223-
"ws_url": "wss://polygon-bor-rpc.publicnode.com"
224-
},
225221
{
226222
"url": "https://polygon.drpc.org",
227223
"ws_url": "wss://polygon.drpc.org"
224+
},
225+
{
226+
"url": "https://polygon.gateway.tenderly.co",
227+
"ws_url": "wss://polygon.gateway.tenderly.co"
228228
}
229229
],
230230
"required_confirmations": 5,
@@ -253,17 +253,17 @@
253253
"gas_station_url": "https://ethgasstation.info/json/ethgasAPI.json",
254254
"mm2": 1,
255255
"nodes": [
256+
{
257+
"url": "https://0xrpc.io/eth",
258+
"ws_url": "wss://0xrpc.io/eth"
259+
},
256260
{
257261
"url": "https://eth3.cipig.net:18555",
258262
"ws_url": "wss://eth3.cipig.net:38555"
259263
},
260264
{
261265
"url": "https://ethereum-rpc.publicnode.com",
262266
"ws_url": "wss://ethereum-rpc.publicnode.com"
263-
},
264-
{
265-
"url": "https://mainnet.gateway.tenderly.co",
266-
"ws_url": "wss://mainnet.gateway.tenderly.co"
267267
}
268268
],
269269
"priv_key_policy": {
@@ -286,37 +286,37 @@
286286
"activation_params": {
287287
"client_conf": {
288288
"headers": {},
289-
"server_url": "https://sia-walletd.komodo.earth/"
289+
"server_url": "https://api.siascan.com/wallet/api"
290290
},
291291
"required_confirmations": 3,
292292
"tx_history": true
293293
},
294294
"client_id": 0,
295-
"ticker": "SIA"
295+
"ticker": "SC"
296296
},
297297
"userpass": "RPC_UserP@SSW0RD"
298298
},
299299
"EnableSiaInit": {
300300
"id": 1,
301-
"method": "enable_sia::init",
301+
"method": "task::enable_sia::init",
302302
"mmrpc": "2.0",
303303
"params": {
304304
"activation_params": {
305305
"client_conf": {
306306
"headers": {},
307-
"server_url": "https://sia-walletd.komodo.earth/"
307+
"server_url": "https://api.siascan.com/wallet/api"
308308
},
309309
"required_confirmations": 3,
310310
"tx_history": true
311311
},
312312
"client_id": 0,
313-
"ticker": "SIA"
313+
"ticker": "SC"
314314
},
315315
"userpass": "RPC_UserP@SSW0RD"
316316
},
317317
"EnableSiaStatus": {
318318
"id": 2,
319-
"method": "enable_sia::status",
319+
"method": "task::enable_sia::status",
320320
"mmrpc": "2.0",
321321
"params": {
322322
"forget_if_finished": true,
@@ -345,6 +345,9 @@
345345
{
346346
"url": "https://iris-rpc.publicnode.com"
347347
},
348+
{
349+
"url": "https://rpc.cosmos.directory/irisnet"
350+
},
348351
{
349352
"url": "https://rpc.irishub-1.irisnet.org"
350353
}
@@ -368,6 +371,9 @@
368371
{
369372
"url": "https://iris-rpc.publicnode.com"
370373
},
374+
{
375+
"url": "https://rpc.cosmos.directory/irisnet"
376+
},
371377
{
372378
"url": "https://rpc.irishub-1.irisnet.org"
373379
}
@@ -396,13 +402,7 @@
396402
"get_balances": true,
397403
"nodes": [
398404
{
399-
"api_url": "https://cosmos-api.alpha.komodo.earth/",
400-
"grpc_url": "https://cosmos-grpc.alpha.komodo.earth/",
401-
"url": "https://cosmos-rpc.alpha.komodo.earth/",
402-
"ws_url": "wss://cosmos-rpc.alpha.komodo.earth/websocket"
403-
},
404-
{
405-
"url": "https://cosmoshub.rpc.stakin-nodes.com/"
405+
"url": "https://rpc.cosmos.directory/cosmoshub"
406406
}
407407
],
408408
"ticker": "ATOM",
@@ -524,13 +524,13 @@
524524
"url": "https://pol3.cipig.net:18755",
525525
"ws_url": "wss://pol3.cipig.net:38755"
526526
},
527-
{
528-
"url": "https://polygon-bor-rpc.publicnode.com",
529-
"ws_url": "wss://polygon-bor-rpc.publicnode.com"
530-
},
531527
{
532528
"url": "https://polygon.drpc.org",
533529
"ws_url": "wss://polygon.drpc.org"
530+
},
531+
{
532+
"url": "https://polygon.gateway.tenderly.co",
533+
"ws_url": "wss://polygon.gateway.tenderly.co"
534534
}
535535
],
536536
"path_to_address": {
@@ -649,6 +649,9 @@
649649
{
650650
"url": "https://iris-rpc.publicnode.com"
651651
},
652+
{
653+
"url": "https://rpc.cosmos.directory/irisnet"
654+
},
652655
{
653656
"url": "https://rpc.irishub-1.irisnet.org"
654657
}

src/data/responses/kdf/legacy/coin_activation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
{
9090
"json": {
9191
"address": "RDux85r5XE7xuUs5DCTt7jTY1cJZT7SKAW",
92-
"balance": "7.62",
92+
"balance": "7.60454375",
9393
"coin": "MARTY",
9494
"mature_confirmations": 100,
9595
"required_confirmations": 10,

0 commit comments

Comments
 (0)