Skip to content

Commit

Permalink
restore getNFTList method
Browse files Browse the repository at this point in the history
  • Loading branch information
nialexsan committed Feb 11, 2025
1 parent fc3f8a2 commit 586ae69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ui/views/api-test/openapi-methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,15 @@
"basicSignature": "async () =>",
"params": []
},
{
"name": "getNFTList",
"isAsync": true,
"fullBody": "async (network) => {\n const childType = await _index__WEBPACK_IMPORTED_MODULE_15__.userWalletService.getActiveWallet();\n let chainType = 'flow';\n if (childType === 'evm') {\n chainType = 'evm';\n }\n const nftList = await _background_webapi__WEBPACK_IMPORTED_MODULE_6__.storage.getExpiry(`NFTList${network}${chainType}`);\n if (nftList && nftList.length > 0) {\n return nftList;\n }\n const config = this.store.config.get_nft_list;\n const data = await this.sendRequest(config.method, config.path, {\n network,\n chain_type: chainType,\n });\n _background_webapi__WEBPACK_IMPORTED_MODULE_6__.storage.setExpiry(`NFTList${network}${chainType}`, data, 600000);\n return data;\n};",
"usesSendRequest": true,
"usesFetchDirectly": false,
"basicSignature": "async (address, offset, limit) =>",
"params": ["address", "offset", "limit"]
},
{
"name": "getAddressBook",
"isAsync": true,
Expand Down

0 comments on commit 586ae69

Please sign in to comment.