Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rabby-wallet/rabby-api

Package Overview
Dependencies
Maintainers
6
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rabby-wallet/rabby-api - npm Package Compare versions

Comparing version 0.7.24-alpha.1 to 0.7.24-alpha.2

13

dist/index.d.ts

@@ -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;

23

dist/index.js

@@ -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', {

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc