Skip to content

Commit 82bec80

Browse files
committed
fix internal links and update sidebar
1 parent c0a01af commit 82bec80

File tree

10 files changed

+426
-368
lines changed

10 files changed

+426
-368
lines changed

filepathSlugs.json

+54-1
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,11 @@
20922092
"order-data-v1",
20932093
"order-data-v2",
20942094
"order-summary-data",
2095-
"match-by"
2095+
"match-by",
2096+
"1inch-token-info",
2097+
"1inch-protocol-info",
2098+
"1inch-tx-fields",
2099+
"1inch-protocol-image"
20962100
],
20972101
"src/pages/komodo-defi-framework/api/common_structures/swaps/index.mdx": [
20982102
"swap-structures",
@@ -3226,6 +3230,14 @@
32263230
"invalid-request-wrong-parameter-type",
32273231
"invalid-fee-policy-attempt-to-use-eth-gas-for-utxo-coin"
32283232
],
3233+
"src/pages/komodo-defi-framework/api/v20-dev/approve_token/index.mdx": [
3234+
"approve-token",
3235+
"arguments",
3236+
"response",
3237+
"examples",
3238+
"command",
3239+
"response-2"
3240+
],
32293241
"src/pages/komodo-defi-framework/api/v20-dev/get_locked_amount/index.mdx": [
32303242
"get-locked-amount",
32313243
"arguments",
@@ -3235,6 +3247,14 @@
32353247
"response-success",
32363248
"response-error"
32373249
],
3250+
"src/pages/komodo-defi-framework/api/v20-dev/get_token_allowance/index.mdx": [
3251+
"get-token-allowance",
3252+
"arguments",
3253+
"response",
3254+
"examples",
3255+
"command",
3256+
"response-2"
3257+
],
32383258
"src/pages/komodo-defi-framework/api/v20-dev/hd_address_management/index.mdx": [
32393259
"hierarchical-deterministic-address-management",
32403260
"get-new-address",
@@ -3518,6 +3538,39 @@
35183538
"transport-error-unable-to-estimate-gas",
35193539
"not-enough-nfts-amount-trying-to-send-more-nfts-than-you-have"
35203540
],
3541+
"src/pages/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_create/index.mdx": [
3542+
"1inch-v6-0-classic-swap-create",
3543+
"arguments",
3544+
"response",
3545+
"examples",
3546+
"command",
3547+
"response-2"
3548+
],
3549+
"src/pages/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_liquidity_sources/index.mdx": [
3550+
"1inch-v6-0-classic-swap-liquidity-sources",
3551+
"arguments",
3552+
"response",
3553+
"examples",
3554+
"command",
3555+
"response-2"
3556+
],
3557+
"src/pages/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_quote/index.mdx": [
3558+
"1inch-v6-0-classic-swap-quote",
3559+
"arguments",
3560+
"response",
3561+
"examples",
3562+
"command",
3563+
"response-2"
3564+
],
3565+
"src/pages/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_tokens/index.mdx": [
3566+
"1inch-v6-0-classic-swap-tokens",
3567+
"arguments",
3568+
"response",
3569+
"token-info",
3570+
"examples",
3571+
"command",
3572+
"response-2"
3573+
],
35213574
"src/pages/komodo-defi-framework/api/v20-dev/task_account_balance/index.mdx": [
35223575
"account-balance-tasks",
35233576
"init",

src/data/sidebar.json

+29
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,35 @@
589589
"titleLink": "/komodo-defi-framework/api/v20-dev/",
590590
"links": []
591591
},
592+
{
593+
"title": "1inch Integration",
594+
"links": [
595+
{
596+
"title": "approve_token",
597+
"href": "/komodo-defi-framework/api/v20-dev/approve_token/"
598+
},
599+
{
600+
"title": "get_token_allowance",
601+
"href": "/komodo-defi-framework/api/v20-dev/get_token_allowance/"
602+
},
603+
{
604+
"title": "one_inch_v6_0_classic_swap_create",
605+
"href": "/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_create/"
606+
},
607+
{
608+
"title": "one_inch_v6_0_classic_swap_liquidity_sources",
609+
"href": "/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_liquidity_sources/"
610+
},
611+
{
612+
"title": "one_inch_v6_0_classic_swap_quote",
613+
"href": "/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_quote/"
614+
},
615+
{
616+
"title": "one_inch_v6_0_classic_swap_tokens",
617+
"href": "/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_tokens/"
618+
}
619+
]
620+
},
592621
{
593622
"title": "HD Wallet Tasks",
594623
"links": [

src/pages/komodo-defi-framework/api/common_structures/orders/index.mdx

+42
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,45 @@ export const description = "Each order on the Komodo Defi oderbook can be querie
337337
}
338338
```
339339
</CollapsibleSection>
340+
341+
### 1inchTokenInfo
342+
343+
| Structure | Type | Description |
344+
| --------- | -------------- | ---------------------------------------------------------- |
345+
| address | string | Token contract address. |
346+
| symbol | string | Token symbol. |
347+
| name | string | Token name. |
348+
| decimals | numeric | Number of digits after decimal point for the token amount. |
349+
| eip2612 | boolean | Is Eip-2612 supported. |
350+
| is\_fot | boolean | Is FoT token. |
351+
| logo\_uri | string | Token logo uri. |
352+
| tags | list of string | Token tags. |
353+
354+
### 1inchProtocolInfo
355+
356+
| Structure | Type | Description |
357+
| -------------------- | ------- | ---------------------------- |
358+
| name | string | Liquidity source name. |
359+
| part | numeric | Protocol part. |
360+
| from\_token\_address | string | From-token contract address. |
361+
| to\_token\_address | numeric | To-token contract address. |
362+
363+
### 1inchTxFields
364+
365+
| Structure | Type | Description |
366+
| ---------- | ------- | ----------------- |
367+
| from | string | From address |
368+
| to | string | To address |
369+
| data | string | Transaction data |
370+
| value | numeric | Transaction value |
371+
| gas\_price | float | Gas price |
372+
| gas | numeric | Gas |
373+
374+
### 1inchProtocolImage
375+
376+
| Structure | Type | Description |
377+
| ---------- | ------ | ----------------------------- |
378+
| id | string | Protocol id. |
379+
| title | string | Protocol title. |
380+
| img | string | Link to protocol image. |
381+
| img\_color | string | Link to protocol image color. |

0 commit comments

Comments
 (0)