@rabby-wallet/rabby-action 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,7 +42,7 @@ export const fetchDataContractCall = (options) => __awaiter(void 0, void 0, void
|
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
44
44
|
result.rank = contractInfo.credit.rank_at;
|
|
45
|
-
result.isDanger = !!
|
|
45
|
+
result.isDanger = !!contractInfo.is_phishing;
|
|
46
46
|
}
|
|
47
47
|
}));
|
|
48
48
|
queue.add(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -46,7 +46,7 @@ export const fetchDataSend = (options, likeSendAction) => __awaiter(void 0, void
|
|
|
46
46
|
result.hasTransfer = has_transfer;
|
|
47
47
|
}));
|
|
48
48
|
queue.add(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
-
var _a;
|
|
49
|
+
var _a, _b;
|
|
50
50
|
const { desc } = yield apiProvider.addrDesc(sendAction.to);
|
|
51
51
|
if ((_a = desc.cex) === null || _a === void 0 ? void 0 : _a.id) {
|
|
52
52
|
result.cex = {
|
|
@@ -66,6 +66,9 @@ export const fetchDataSend = (options, likeSendAction) => __awaiter(void 0, void
|
|
|
66
66
|
bornAt: desc.born_at,
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
+
if ((_b = desc.protocol) === null || _b === void 0 ? void 0 : _b[chainId]) {
|
|
70
|
+
result.protocol = desc.protocol[chainId];
|
|
71
|
+
}
|
|
69
72
|
result.usd_value = desc.usd_value;
|
|
70
73
|
if (result.cex) {
|
|
71
74
|
const { support } = yield apiProvider.depositCexSupport(sendAction.token.id, sendAction.token.chain, result.cex.id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rabby-wallet/rabby-action",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@babel/preset-env": "^7.19.1",
|
|
14
14
|
"@debank/common": "^0.3.60",
|
|
15
|
-
"@rabby-wallet/rabby-api": "0.7.
|
|
15
|
+
"@rabby-wallet/rabby-api": "0.7.33",
|
|
16
16
|
"@rabby-wallet/rabby-security-engine": "2.0.7",
|
|
17
17
|
"@types/jest": "^29.0.3",
|
|
18
18
|
"@types/lodash": "^4.14.185",
|