Skip to content

Commit aa4e6e7

Browse files
committed
2 parents 6edacf9 + 0d61b7c commit aa4e6e7

File tree

42 files changed

+5610
-1198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+5610
-1198
lines changed

data-for-gpts/all-content.txt

+1,295-292
Large diffs are not rendered by default.

data-for-gpts/komodefi-api/all-api-content.txt

+1,101-289
Large diffs are not rendered by default.

data-for-gpts/komodefi-api/v20-api-content.txt

+607-78
Large diffs are not rendered by default.

data-for-gpts/komodefi-api/v20-dev-api-content.txt

+200-26
Large diffs are not rendered by default.

data-for-gpts/komodo-defi-framework-content.txt

+1,295-292
Large diffs are not rendered by default.

filepathSlugs.json

+58-15
Original file line numberDiff line numberDiff line change
@@ -2020,6 +2020,7 @@
20202020
"tendermint-node",
20212021
"v2-1-0-current-release-2",
20222022
"v2-2-0-2",
2023+
"swap-v2-contracts",
20232024
"tokens-request",
20242025
"utxo-merge-params"
20252026
],
@@ -2071,12 +2072,14 @@
20712072
],
20722073
"src/pages/komodo-defi-framework/api/common_structures/nfts/index.mdx": [
20732074
"non-fungible-token-structures",
2075+
"nft-info-basic",
20742076
"nft-info",
20752077
"nft-filter",
20762078
"nft-transfer",
20772079
"nft-transfer-filter",
20782080
"nft-metadata",
2079-
"withdraw-nft-data"
2081+
"withdraw-nft-data",
2082+
"nft-provider"
20802083
],
20812084
"src/pages/komodo-defi-framework/api/common_structures/orders/index.mdx": [
20822085
"order-structures",
@@ -2783,14 +2786,19 @@
27832786
"response",
27842787
"request-with-get-balances-set-to-false",
27852788
"response-2",
2789+
"request-including-nft-initialization",
2790+
"response-3",
2791+
"error-responses",
27862792
"error-types",
27872793
"platform-is-already-activated-error",
27882794
"platform-config-is-not-found-error",
27892795
"coin-protocol-parse-error-error",
27902796
"unexpected-platform-protocol-error",
27912797
"token-config-is-not-found-error",
27922798
"token-protocol-parse-error-error",
2793-
"unexpected-token-protocol-error"
2799+
"unexpected-token-protocol-error",
2800+
"invalid-request-error",
2801+
"transport-error"
27942802
],
27952803
"src/pages/komodo-defi-framework/api/v20/enable_slp/index.mdx": [
27962804
"enable-slp",
@@ -2864,6 +2872,16 @@
28642872
"command",
28652873
"response-2"
28662874
],
2875+
"src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx": [
2876+
"get-mnemonic",
2877+
"arguments",
2878+
"response",
2879+
"examples",
2880+
"for-encrypted-output",
2881+
"response-success",
2882+
"for-plain-text-output",
2883+
"response-success-2"
2884+
],
28672885
"src/pages/komodo-defi-framework/api/v20/get_public_key/index.mdx": [
28682886
"get-public-key",
28692887
"arguments",
@@ -3414,7 +3432,15 @@
34143432
"example-to-clear-binance-smart-chain-and-polygon-nft-data",
34153433
"example-to-clear-all-nft-data",
34163434
"error-responses",
3417-
"unsupported-chain-type"
3435+
"unsupported-chain-type",
3436+
"invalid-request"
3437+
],
3438+
"src/pages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/enable_nft/index.mdx": [
3439+
"enable-nft",
3440+
"response",
3441+
"error-platform-coin-is-not-yet-activated",
3442+
"error-token-already-activated",
3443+
"error-token-config-not-found-in-coins-file"
34183444
],
34193445
"src/pages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/index.mdx": [
34203446
"get-a-list-of-nfts",
@@ -3442,7 +3468,8 @@
34423468
"src/pages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/index.mdx": [
34433469
"non-fungible-tokens-nfts",
34443470
"nft-information-methods",
3445-
"nft-transaction-methods"
3471+
"nft-transaction-methods",
3472+
"nft-utility-methods"
34463473
],
34473474
"src/pages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/query_nft_database_tables/index.mdx": [
34483475
"query-nft-database-tables",
@@ -3456,12 +3483,16 @@
34563483
"src/pages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/index.mdx": [
34573484
"refresh-nft-metadata",
34583485
"request-parameters",
3459-
"example"
3486+
"example",
3487+
"error-responses"
34603488
],
34613489
"src/pages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/index.mdx": [
34623490
"update-nft",
34633491
"request-parameters",
3464-
"example"
3492+
"example",
3493+
"error-types",
3494+
"token-is-already-activated",
3495+
"token-is-already-activated-2"
34653496
],
34663497
"src/pages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/index.mdx": [
34673498
"withdraw-nfts",
@@ -3671,18 +3702,27 @@
36713702
],
36723703
"src/pages/komodo-defi-framework/changelog/index.mdx": [
36733704
"change-log",
3674-
"komodo-de-fi-framework-v2-1-0-beta",
3675-
"essential-new-features-trading-protocol-upgrade-hd-wallet-event-streaming-and-seeds-management",
3705+
"komodo-de-fi-framework-v2-2-0-beta",
3706+
"custom-token-support-and-various-optimizations",
36763707
"release-notes",
36773708
"features",
3678-
"nb-backwards-compatibility-breaking-changes",
3679-
"new-contributors",
36803709
"enhancements",
3710+
"nb-backwards-compatibility-breaking-changes",
3711+
"removals",
3712+
"api-changes",
36813713
"bug-fixes",
3682-
"komodo-de-fi-framework-v2-0-0-beta",
3683-
"network-evolution-and-kmd-burn-enhancing-kmds-role-in-komodos-de-fi-framework",
3714+
"komodo-de-fi-framework-v2-1-0-beta",
3715+
"essential-new-features-trading-protocol-upgrade-hd-wallet-event-streaming-and-seeds-management",
36843716
"release-notes-2",
3717+
"features-2",
36853718
"nb-backwards-compatibility-breaking-changes-2",
3719+
"new-contributors",
3720+
"enhancements-2",
3721+
"bug-fixes-2",
3722+
"komodo-de-fi-framework-v2-0-0-beta",
3723+
"network-evolution-and-kmd-burn-enhancing-kmds-role-in-komodos-de-fi-framework",
3724+
"release-notes-3",
3725+
"nb-backwards-compatibility-breaking-changes-3",
36863726
"komodo-de-fi-framework-v1-0-7-beta",
36873727
"komodo-de-fi-framework-v1-0-6-beta",
36883728
"atomic-dex-v1-0-5-beta",
@@ -3713,6 +3753,7 @@
37133753
"example-not-allowing-weak-password",
37143754
"example-using-gas-api",
37153755
"example-wss-with-certificates",
3756+
"example-with-wallet-name-and-wallet-password",
37163757
"example-for-hd-wallets",
37173758
"coins-file-configuration",
37183759
"optional-environment-variables",
@@ -3923,9 +3964,11 @@
39233964
"nodes",
39243965
"query-4",
39253966
"respose",
3926-
"stats-nodes",
3927-
"query-5",
3928-
"response-4"
3967+
"coin-tables",
3968+
"kmd-block-headers-cache",
3969+
"kmd-tx-address",
3970+
"kmd-tx-cache",
3971+
"kmd-tx-history"
39293972
],
39303973
"src/pages/komodo-defi-framework/tutorials/setup-komodefi-api-aws/index.mdx": [
39313974
"how-to-setup-and-use-the-komodo-de-fi-framework-api-on-an-aws-ec-2-instance",

postman/collections/komodo_defi.postman_collection.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5887,7 +5887,7 @@
58875887
"header": [],
58885888
"body": {
58895889
"mode": "raw",
5890-
"raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"enable_sia\",\n \"params\": {\n \"ticker\": \"TSIA\",\n \"activation_params\": {\n \"client_conf\": {\n \"server_url\": \"https://sia-walletd.komodo.earth/\",\n \"password\": \"dummy\"\n }\n }\n }\n}\n",
5890+
"raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"enable_sia\",\n \"params\": {\n \"ticker\": \"TSIA\",\n \"activation_params\": {\n \"client_conf\": {\n \"server_url\": \"https://api.siascan.com/anagami/wallet/\",\n \"password\": \"dummy\"\n }\n }\n }\n}\n",
58915891
"options": {
58925892
"raw": {
58935893
"language": "json"
@@ -5909,7 +5909,7 @@
59095909
"header": [],
59105910
"body": {
59115911
"mode": "raw",
5912-
"raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"enable_sia\",\n \"params\": {\n \"ticker\": \"TSIA\",\n \"activation_params\": {\n \"client_conf\": {\n \"server_url\": \"https://sia-walletd.komodo.earth/\",\n \"password\": \"dummy\"\n }\n }\n }\n}\n",
5912+
"raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"enable_sia\",\n \"params\": {\n \"ticker\": \"TSIA\",\n \"activation_params\": {\n \"client_conf\": {\n \"server_url\": \"https://api.siascan.com/anagami/wallet/\",\n \"password\": \"dummy\"\n }\n }\n }\n}\n",
59135913
"options": {
59145914
"raw": {
59155915
"language": "json"
Loading
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

src/data/sidebar.json

+8
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,10 @@
529529
"title": "get_public_key_hash",
530530
"href": "/komodo-defi-framework/api/v20/get_public_key_hash/"
531531
},
532+
{
533+
"title": "get_mnemonic",
534+
"href": "/komodo-defi-framework/api/v20/get_mnemonic/"
535+
},
532536
{
533537
"title": "get_wallet_names",
534538
"href": "/komodo-defi-framework/api/v20/get_wallet_names/"
@@ -609,6 +613,10 @@
609613
"title": "Overview",
610614
"href": "/komodo-defi-framework/api/v20-dev/non_fungible_tokens/"
611615
},
616+
{
617+
"title": "Enable NFT",
618+
"href": "/komodo-defi-framework/api/v20-dev/non_fungible_tokens/enable_nft/"
619+
},
612620
{
613621
"title": "Clear NFT Database Tables",
614622
"href": "/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/"

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

+20
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,26 @@ The `TendermintNode` object includes the following items for a given coin or tok
210210
```
211211
</CollapsibleSection>
212212

213+
### SwapV2Contracts
214+
215+
The `SwapV2Contracts` object includes the following items for a given coin or token:
216+
217+
| Parameter | Type | Description |
218+
| ------------------------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------- |
219+
| maker\_swap\_v2\_contract | string | Address for the maker's new V2 swap smart contract. Must be provided if "use\_trading\_proto\_v2"is true in mm2 configuration |
220+
| taker\_swap\_v2\_contract | string | Address for the taker's new V2 swap smart contract. Must be provided if "use\_trading\_proto\_v2"is true in mm2 configuration |
221+
| nft\_maker\_swap\_v2\_contract | string | Address for the maker's new V2 NFT swap smart contract. Must be provided if "use\_trading\_proto\_v2"is true in mm2 configuration |
222+
223+
<CollapsibleSection expandedText="Hide Example" collapsedText="Show Example">
224+
```json
225+
{
226+
"maker_swap_v2_contract": "0x9130b257D37A52E52F21054c4DA3450c72f595CE",
227+
"taker_swap_v2_contract": "0x9130b257D37A52E52F21054c4DA3450c72f595CE",
228+
"nft_maker_swap_v2_contract": "0x9130b257D37A52E52F21054c4DA3450c72f595CE"
229+
}
230+
```
231+
</CollapsibleSection>
232+
213233
### TokensRequest
214234

215235
The `TokensRequest` object includes the following items for a given coin or token:

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

+35
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ export const description = "Starting with version beta-2.1.3434, the Komodo DeFi
55

66
The following structures are used in the Komodo DeFi SDK for non-fungible tokens (NFTs).
77

8+
### NftInfoBasic
9+
10+
The `NftInfoBasic` object includes the following items for a given token:
11+
12+
| Parameter | Type | Description |
13+
| -------------- | ------ | --------------------------------------------------------------------- |
14+
| amount | string | The amount of this NFT the user owns (used by `ERC1155`). |
15+
| chain | string | Chain name. One of `AVALANCHE`, `BSC`, `ETH`, `FANTOM`, or `POLYGON`. |
16+
| contract\_type | string | The type of NFT contract standard. One of `ERC721` or `ERC1155`. |
17+
| token\_address | string | The address of the NFT contract. |
18+
| token\_id | string | The token ID of the NFT. |
19+
820
### NftInfo
921

1022
The `NftInfo` object includes the following items for a given token:
@@ -197,3 +209,26 @@ The `WithdrawNftData` object is used for withdrawals of NFTs on ERC721 and ERC11
197209
Due to this difference, the `amount` and `max` fields are only used the when
198210
the `type` value is `withdraw_erc1155`.
199211
</Note>
212+
213+
### NftProvider
214+
215+
The `NftProvider` object is used in the 'enable\_nft' RPC method. It defines the NFT providers that are avaialable and their configuration.
216+
217+
| Parameter | Type | Description |
218+
| ------------------ | ------- | ---------------------------------------------------------------------------- |
219+
| type | string | Specifies the type of the provider. |
220+
| info | object | Additional information about the provider |
221+
| info.url | string | URL of the provider's endpoint |
222+
| info.komodo\_proxy | boolean | Optional. Indicates whether proxy authentication is enabled for the endpoint |
223+
224+
<CollapsibleSection expandedText="Hide Example" collapsedText="Show Example">
225+
```json
226+
{
227+
"type": "Moralis",
228+
"info": {
229+
"url": "https://moralis-proxy.komodo.earth",
230+
"komodo_proxy": true
231+
}
232+
}
233+
```
234+
</CollapsibleSection>

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

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods:
3232
| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | |
3333
| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | |
3434
| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | |
35+
| | | [enable\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/enable_nft/#enable-nft) |
3536
| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | |
3637
| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | |
3738
| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | |
@@ -45,6 +46,7 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods:
4546
| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | |
4647
| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | |
4748
| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) |
49+
| | [get\_mnemonic](/komodo-defi-framework/api/v20/get_mnemonic/#get-mnemonic) | |
4850
| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | |
4951
| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) |
5052
| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) |

src/pages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/index.mdx

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const title = "Komodo DeFi Framework Method: Non Fungible Tokens";
22
export const description =
3-
"This document describes the clear_nft_db method Komodo DeFi Framework provides to clear NFT data from your local database";
3+
"This document describes the clear_nft_db method Komodo DeFi Framework provides to clear NFT data from your local database";
44

55
# Clear NFT Database {{label : 'clear_nft_db', tag : 'API-v2'}}
66

@@ -88,3 +88,17 @@ Returned when the `chains` parameter contains an unsupported network.
8888
"id": null
8989
}
9090
```
91+
92+
#### InvalidRequest
93+
94+
Returned when neither the `chains` or `clear_all` parameters are present.
95+
96+
```json
97+
{
98+
"mmrpc":"2.0",
99+
"error":"Invalid request: Nothing to clear was specified","error_path":"nft","error_trace":"nft:1512]",
100+
"error_type":"InvalidRequest",
101+
"error_data":"Nothing to clear was specified",
102+
"id":null
103+
}
104+
```

0 commit comments

Comments
 (0)