@rabby-wallet/rabby-api
Advanced tools
Comparing version 0.7.24-alpha.1 to 0.7.24-alpha.2
@@ -291,5 +291,12 @@ import { AxiosAdapter, AxiosRequestConfig } from 'axios'; | ||
}>; | ||
/** | ||
* @deprecated | ||
* 授权风险敞口 | ||
*/ | ||
tokenApproveExposure: (id: string, chainId: string) => Promise<{ | ||
usd_value: number; | ||
}>; | ||
tokenApproveTrustValue: (id: string, chainId: string) => Promise<{ | ||
usd_value: number; | ||
}>; | ||
addrDesc: (id: string) => Promise<AddrDescResponse>; | ||
@@ -303,5 +310,11 @@ hasTransfer: (chainId: string, from: string, to: string) => Promise<{ | ||
addrUsedChainList: (id: string) => Promise<UsedChain[]>; | ||
/** | ||
* @deprecated | ||
*/ | ||
getTokenNFTExposure: (chainId: string, id: string) => Promise<{ | ||
usd_value: number; | ||
}>; | ||
getTokenNFTTrustValue: (chainId: string, id: string) => Promise<{ | ||
usd_value: number; | ||
}>; | ||
getCollection: (chainId: string, id: string) => Promise<{ | ||
@@ -308,0 +321,0 @@ collection: CollectionWithFloorPrice; |
@@ -644,3 +644,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}); | ||
// 授权风险敞口 | ||
/** | ||
* @deprecated | ||
* 授权风险敞口 | ||
*/ | ||
this.tokenApproveExposure = (id, chainId) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -655,2 +658,11 @@ const { data } = yield this.request.get('/v1/engine/contract/token_approval_exposure', { | ||
}); | ||
this.tokenApproveTrustValue = (id, chainId) => __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield this.request.get('/v1/engine/contract/spend_usd_value', { | ||
params: { | ||
chain_id: chainId, | ||
id, | ||
}, | ||
}); | ||
return data; | ||
}); | ||
// 地址描述 | ||
@@ -691,2 +703,5 @@ this.addrDesc = (id) => __awaiter(this, void 0, void 0, function* () { | ||
}); | ||
/** | ||
* @deprecated | ||
*/ | ||
this.getTokenNFTExposure = (chainId, id) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -698,2 +713,8 @@ const { data } = yield this.request.get('/v1/engine/contract/top_nft_approval_exposure', { | ||
}); | ||
this.getTokenNFTTrustValue = (chainId, id) => __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield this.request.get('/v1/engine/contract/top_nft_spend_usd_value', { | ||
params: { chain_id: chainId, id }, | ||
}); | ||
return data; | ||
}); | ||
this.getCollection = (chainId, id) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -700,0 +721,0 @@ const { data } = yield this.request.get('/v1/engine/collection', { |
{ | ||
"name": "@rabby-wallet/rabby-api", | ||
"version": "0.7.24-alpha.1", | ||
"version": "0.7.24-alpha.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119504
3498