-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
4,132 additions
and
803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4,305 changes: 3,614 additions & 691 deletions
4,305
postman/collections/komodo_defi.postman_collection.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
...ages/komodo-defi-framework/api/v20-dev/non_fungible_tokens/enable_nft/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
export const title = "Komodo DeFi Framework Method: Enable NFT"; | ||
export const description = | ||
"The enable_nft method allows you to activate NFT-like tokens on the platform."; | ||
|
||
# enable\_nft | ||
|
||
The 'enable\_nft' method activates NFT-like tokens on the platform, if the NFT network was already activated with the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method, but without the `nft_req` parameter. | ||
|
||
| parameter | Type | Description | | ||
| ------------------ | ------ | ------------------------------------------------------------------------------------------------ | | ||
| ticker | string | The ticker of the NFT network, with `NFT_` as a prefix. | | ||
| activation\_params | object | A standard [NftProvider](/komodo-defi-framework/api/common_structures/nfts/#nft-provider) object | | ||
|
||
<CodeGroup title="" tag="POST" label="enable_nft" mm2MethodDecorate="true"> | ||
```json | ||
{ | ||
"userpass": "RPC_UserP@SSW0RD", | ||
"method": "enable_nft", | ||
"mmrpc": "2.0", | ||
"params": { | ||
"ticker": "NFT_MATIC", | ||
"activation_params": { | ||
"provider": { | ||
"type": "Moralis", | ||
"info": { | ||
"url": "https://moralis-proxy.komodo.earth", | ||
"komodo_proxy": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
</CodeGroup> | ||
|
||
## Response | ||
|
||
```json | ||
{ | ||
"mmrpc": "2.0", | ||
"result": { | ||
"nfts": { | ||
"0xc28a19e9a663d966cf99532bdb1229df1b0e344b,1": { | ||
"token_address": "0xc28a19e9a663d966cf99532bdb1229df1b0e344b", | ||
"token_id": "1", | ||
"chain": "POLYGON", | ||
"contract_type": "ERC1155", | ||
"amount": "1" | ||
}, | ||
"0xd25f13e4ba534ef625c75b84934689194b7bd59e,14": { | ||
"token_address": "0xd25f13e4ba534ef625c75b84934689194b7bd59e", | ||
"token_id": "14", | ||
"chain": "POLYGON", | ||
"contract_type": "ERC721", | ||
"amount": "1" | ||
} | ||
}, | ||
"platform_coin": "MATIC" | ||
}, | ||
"id": null | ||
} | ||
``` | ||
|
||
## Error - Platform coin is not yet activated | ||
|
||
```json | ||
{ | ||
"mmrpc": "2.0", | ||
"error": "Platform coin MATIC is not activated", | ||
"error_path": "token.lp_coins", | ||
"error_trace": "token:126] lp_coins:2797]", | ||
"error_type": "PlatformCoinIsNotActivated", | ||
"error_data": "MATIC", | ||
"id": null | ||
} | ||
``` | ||
|
||
## Error - Token already activated | ||
|
||
```json | ||
{ | ||
"mmrpc": "2.0", | ||
"error": "Token NFT_MATIC is already activated", | ||
"error_path": "token", | ||
"error_trace": "token:119]", | ||
"error_type": "TokenIsAlreadyActivated", | ||
"error_data": "NFT_MATIC", | ||
"id": null | ||
} | ||
``` | ||
|
||
## Error - Token config not found in coins file | ||
|
||
```json | ||
{ | ||
"mmrpc": "2.0", | ||
"error": "Token NFT_TESTTT config is not found", | ||
"error_path": "token.prelude", | ||
"error_trace": "token:122] prelude:79]", | ||
"error_type": "TokenConfigIsNotFound", | ||
"error_data": "NFT_TESTTT", | ||
"id": null | ||
} | ||
``` |
2 changes: 1 addition & 1 deletion
2
...es/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...omodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...modo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.