@metamask-previews/phishing-controller 17.4.0-preview-4f4c98e → 17.4.0-preview-eb263b0ee
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.
- package/CHANGELOG.md +0 -2
- package/dist/CacheManager.cjs +177 -0
- package/dist/CacheManager.cjs.map +1 -0
- package/dist/{CacheManager.d.ts → CacheManager.d.cts} +1 -1
- package/dist/CacheManager.d.cts.map +1 -0
- package/dist/CacheManager.d.mts +104 -0
- package/dist/CacheManager.d.mts.map +1 -0
- package/dist/{CacheManager.js → CacheManager.mjs} +2 -2
- package/dist/CacheManager.mjs.map +1 -0
- package/dist/PathTrie.cjs +169 -0
- package/dist/PathTrie.cjs.map +1 -0
- package/dist/{PathTrie.d.ts → PathTrie.d.cts} +1 -1
- package/dist/PathTrie.d.cts.map +1 -0
- package/dist/PathTrie.d.mts +46 -0
- package/dist/PathTrie.d.mts.map +1 -0
- package/dist/{PathTrie.js → PathTrie.mjs} +2 -2
- package/dist/PathTrie.mjs.map +1 -0
- package/dist/PhishingController-method-action-types.cjs +7 -0
- package/dist/PhishingController-method-action-types.cjs.map +1 -0
- package/dist/{PhishingController-method-action-types.d.ts → PhishingController-method-action-types.d.cts} +2 -2
- package/dist/PhishingController-method-action-types.d.cts.map +1 -0
- package/dist/PhishingController-method-action-types.d.mts +123 -0
- package/dist/PhishingController-method-action-types.d.mts.map +1 -0
- package/dist/{PhishingController-method-action-types.js → PhishingController-method-action-types.mjs} +1 -1
- package/dist/PhishingController-method-action-types.mjs.map +1 -0
- package/dist/PhishingController.cjs +1222 -0
- package/dist/PhishingController.cjs.map +1 -0
- package/dist/{PhishingController.d.ts → PhishingController.d.cts} +10 -10
- package/dist/PhishingController.d.cts.map +1 -0
- package/dist/PhishingController.d.mts +425 -0
- package/dist/PhishingController.d.mts.map +1 -0
- package/dist/{PhishingController.js → PhishingController.mjs} +12 -11
- package/dist/PhishingController.mjs.map +1 -0
- package/dist/PhishingDetector.cjs +277 -0
- package/dist/PhishingDetector.cjs.map +1 -0
- package/dist/{PhishingDetector.d.ts → PhishingDetector.d.cts} +4 -4
- package/dist/PhishingDetector.d.cts.map +1 -0
- package/dist/PhishingDetector.d.mts +73 -0
- package/dist/PhishingDetector.d.mts.map +1 -0
- package/dist/{PhishingDetector.js → PhishingDetector.mjs} +15 -21
- package/dist/PhishingDetector.mjs.map +1 -0
- package/dist/address-poisoning.cjs +71 -0
- package/dist/address-poisoning.cjs.map +1 -0
- package/dist/{address-poisoning.d.ts → address-poisoning.d.cts} +2 -2
- package/dist/address-poisoning.d.cts.map +1 -0
- package/dist/address-poisoning.d.mts +3 -0
- package/dist/address-poisoning.d.mts.map +1 -0
- package/dist/{address-poisoning.js → address-poisoning.mjs} +2 -2
- package/dist/address-poisoning.mjs.map +1 -0
- package/dist/index.cjs +36 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{index.d.ts → index.d.cts} +12 -12
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -0
- package/dist/tests/utils.cjs +102 -0
- package/dist/tests/utils.cjs.map +1 -0
- package/dist/tests/{utils.d.ts → utils.d.cts} +3 -3
- package/dist/tests/utils.d.cts.map +1 -0
- package/dist/tests/utils.d.mts +70 -0
- package/dist/tests/utils.d.mts.map +1 -0
- package/dist/tests/{utils.js → utils.mjs} +2 -2
- package/dist/tests/utils.mjs.map +1 -0
- package/dist/types.cjs +267 -0
- package/dist/types.cjs.map +1 -0
- package/dist/{types.d.ts → types.d.cts} +62 -62
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +338 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/{types.js → types.mjs} +1 -1
- package/dist/types.mjs.map +1 -0
- package/dist/utils.cjs +522 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/{utils.d.ts → utils.d.cts} +72 -74
- package/dist/utils.d.cts.map +1 -0
- package/dist/utils.d.mts +302 -0
- package/dist/utils.d.mts.map +1 -0
- package/dist/{utils.js → utils.mjs} +16 -16
- package/dist/utils.mjs.map +1 -0
- package/package.json +16 -12
- package/dist/CacheManager.d.ts.map +0 -1
- package/dist/CacheManager.js.map +0 -1
- package/dist/PathTrie.d.ts.map +0 -1
- package/dist/PathTrie.js.map +0 -1
- package/dist/PhishingController-method-action-types.d.ts.map +0 -1
- package/dist/PhishingController-method-action-types.js.map +0 -1
- package/dist/PhishingController.d.ts.map +0 -1
- package/dist/PhishingController.js.map +0 -1
- package/dist/PhishingDetector.d.ts.map +0 -1
- package/dist/PhishingDetector.js.map +0 -1
- package/dist/address-poisoning.d.ts.map +0 -1
- package/dist/address-poisoning.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/tests/utils.d.ts.map +0 -1
- package/dist/tests/utils.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { TransactionMeta } from "@metamask/transaction-controller";
|
|
2
|
+
import { SimulationTokenStandard } from "@metamask/transaction-controller";
|
|
3
|
+
/**
|
|
4
|
+
* Formats a hostname into a URL so we can parse it correctly
|
|
5
|
+
* and pass full URLs into the PhishingDetector class. Previously
|
|
6
|
+
* only hostnames were supported, but now only full URLs are
|
|
7
|
+
* supported since we want to block IPFS CIDs.
|
|
8
|
+
*
|
|
9
|
+
* @param hostname - the hostname of the URL.
|
|
10
|
+
* @returns the href property of a URL object.
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatHostnameToUrl: (hostname: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Test addresses for consistent use in tests
|
|
15
|
+
*/
|
|
16
|
+
export declare const TEST_ADDRESSES: {
|
|
17
|
+
MOCK_TOKEN_1: `0x${string}`;
|
|
18
|
+
USDC: `0x${string}`;
|
|
19
|
+
FROM_ADDRESS: `0x${string}`;
|
|
20
|
+
TO_ADDRESS: `0x${string}`;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Creates a mock token balance change object
|
|
24
|
+
*
|
|
25
|
+
* @param address - The address of the token
|
|
26
|
+
* @param options - The options for the token balance change
|
|
27
|
+
* @param options.difference - The difference in the token balance
|
|
28
|
+
* @param options.previousBalance - The previous balance of the token
|
|
29
|
+
* @param options.newBalance - The new balance of the token
|
|
30
|
+
* @param options.isDecrease - Whether the token balance is decreasing
|
|
31
|
+
* @param options.standard - The standard of the token
|
|
32
|
+
* @returns The mock token balance change object
|
|
33
|
+
*/
|
|
34
|
+
export declare const createMockTokenBalanceChange: (address: `0x${string}`, options?: {
|
|
35
|
+
difference?: `0x${string}`;
|
|
36
|
+
previousBalance?: `0x${string}`;
|
|
37
|
+
newBalance?: `0x${string}`;
|
|
38
|
+
isDecrease?: boolean;
|
|
39
|
+
standard?: SimulationTokenStandard;
|
|
40
|
+
}) => {
|
|
41
|
+
address: `0x${string}`;
|
|
42
|
+
standard: SimulationTokenStandard;
|
|
43
|
+
difference: `0x${string}`;
|
|
44
|
+
previousBalance: `0x${string}`;
|
|
45
|
+
newBalance: `0x${string}`;
|
|
46
|
+
isDecrease: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Creates a mock transaction with token balance changes
|
|
50
|
+
*
|
|
51
|
+
* @param id - The transaction ID
|
|
52
|
+
* @param tokenAddresses - Array of token addresses to include in balance changes
|
|
53
|
+
* @param overrides - Partial transaction metadata to override defaults
|
|
54
|
+
* @returns The mock transaction metadata object
|
|
55
|
+
*/
|
|
56
|
+
export declare const createMockTransaction: (id: string, tokenAddresses?: `0x${string}`[], overrides?: Partial<TransactionMeta>) => TransactionMeta;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a mock state change payload for TransactionController
|
|
59
|
+
*
|
|
60
|
+
* @param transactions - The transactions to include in the state change payload.
|
|
61
|
+
* @returns A mock state change payload.
|
|
62
|
+
*/
|
|
63
|
+
export declare const createMockStateChangePayload: (transactions: TransactionMeta[]) => {
|
|
64
|
+
transactions: TransactionMeta[];
|
|
65
|
+
transactionBatches: never[];
|
|
66
|
+
methodData: {};
|
|
67
|
+
lastFetchedBlockNumbers: {};
|
|
68
|
+
submitHistory: never[];
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=utils.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.mts","sourceRoot":"","sources":["../../src/tests/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,yCAAyC;AACxE,OAAO,EAGL,uBAAuB,EACxB,yCAAyC;AAE1C;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,MAQtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;CAK1B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B,YAC9B,KAAK,MAAM,EAAE,YACb;IACP,UAAU,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,uBAAuB,CAAC;CACpC;;;;;;;CAQD,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,OAC5B,MAAM,mBACM,KAAK,MAAM,EAAE,EAAE,cACpB,QAAQ,eAAe,CAAC,KAClC,eA2BF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,iBACzB,eAAe,EAAE;;;;;;CAO/B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransactionStatus, TransactionType, SimulationTokenStandard
|
|
1
|
+
import { TransactionStatus, TransactionType, SimulationTokenStandard } from "@metamask/transaction-controller";
|
|
2
2
|
/**
|
|
3
3
|
* Formats a hostname into a URL so we can parse it correctly
|
|
4
4
|
* and pass full URLs into the PhishingDetector class. Previously
|
|
@@ -92,4 +92,4 @@ export const createMockStateChangePayload = (transactions) => ({
|
|
|
92
92
|
lastFetchedBlockNumbers: {},
|
|
93
93
|
submitHistory: [],
|
|
94
94
|
});
|
|
95
|
-
//# sourceMappingURL=utils.
|
|
95
|
+
//# sourceMappingURL=utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../../src/tests/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACxB,yCAAyC;AAE1C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAU,EAAE;IAC9D,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,YAAY,EAAE,4CAA6D;IAC3E,IAAI,EAAE,4CAA6D;IACnE,YAAY,EAAE,4CAA6D;IAC3E,UAAU,EAAE,4CAA6D;CAC1E,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,OAAsB,EACtB,UAMI,EAAE,EACN,EAAE,CAAC,CAAC;IACJ,OAAO;IACP,QAAQ,EAAE,OAAO,CAAC,QAAQ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,EAAE;CAClB,CAAC,CAAC","sourcesContent":["import type { TransactionMeta } from '@metamask/transaction-controller';\nimport {\n TransactionStatus,\n TransactionType,\n SimulationTokenStandard,\n} from '@metamask/transaction-controller';\n\n/**\n * Formats a hostname into a URL so we can parse it correctly\n * and pass full URLs into the PhishingDetector class. Previously\n * only hostnames were supported, but now only full URLs are\n * supported since we want to block IPFS CIDs.\n *\n * @param hostname - the hostname of the URL.\n * @returns the href property of a URL object.\n */\nexport const formatHostnameToUrl = (hostname: string): string => {\n let url = '';\n try {\n url = new URL(hostname).href;\n } catch {\n url = new URL(['https://', hostname].join('')).href;\n }\n return url;\n};\n\n/**\n * Test addresses for consistent use in tests\n */\nexport const TEST_ADDRESSES = {\n MOCK_TOKEN_1: '0x1234567890123456789012345678901234567890' as `0x${string}`,\n USDC: '0xA0B86991c6218B36C1D19D4A2E9EB0CE3606EB48' as `0x${string}`,\n FROM_ADDRESS: '0x0987654321098765432109876543210987654321' as `0x${string}`,\n TO_ADDRESS: '0x1234567890123456789012345678901234567890' as `0x${string}`,\n};\n\n/**\n * Creates a mock token balance change object\n *\n * @param address - The address of the token\n * @param options - The options for the token balance change\n * @param options.difference - The difference in the token balance\n * @param options.previousBalance - The previous balance of the token\n * @param options.newBalance - The new balance of the token\n * @param options.isDecrease - Whether the token balance is decreasing\n * @param options.standard - The standard of the token\n * @returns The mock token balance change object\n */\nexport const createMockTokenBalanceChange = (\n address: `0x${string}`,\n options: {\n difference?: `0x${string}`;\n previousBalance?: `0x${string}`;\n newBalance?: `0x${string}`;\n isDecrease?: boolean;\n standard?: SimulationTokenStandard;\n } = {},\n) => ({\n address,\n standard: options.standard ?? SimulationTokenStandard.erc20,\n difference: options.difference ?? ('0xde0b6b3a7640000' as `0x${string}`),\n previousBalance: options.previousBalance ?? ('0x0' as `0x${string}`),\n newBalance: options.newBalance ?? ('0xde0b6b3a7640000' as `0x${string}`),\n isDecrease: options.isDecrease ?? false,\n});\n\n/**\n * Creates a mock transaction with token balance changes\n *\n * @param id - The transaction ID\n * @param tokenAddresses - Array of token addresses to include in balance changes\n * @param overrides - Partial transaction metadata to override defaults\n * @returns The mock transaction metadata object\n */\nexport const createMockTransaction = (\n id: string,\n tokenAddresses: `0x${string}`[] = [],\n overrides: Partial<TransactionMeta> = {},\n): TransactionMeta => {\n const simulationData =\n tokenAddresses.length > 0\n ? {\n tokenBalanceChanges: tokenAddresses.map((address) =>\n createMockTokenBalanceChange(address),\n ),\n }\n : overrides.simulationData;\n\n return {\n txParams: {\n from: TEST_ADDRESSES.FROM_ADDRESS,\n to: TEST_ADDRESSES.TO_ADDRESS,\n value: '0x0' as `0x${string}`,\n },\n chainId: '0x1' as `0x${string}`,\n id,\n networkClientId: 'mainnet',\n status: TransactionStatus.unapproved,\n time: Date.now(),\n type: TransactionType.contractInteraction,\n origin: 'https://metamask.io',\n submittedTime: Date.now(),\n simulationData,\n ...overrides,\n };\n};\n\n/**\n * Creates a mock state change payload for TransactionController\n *\n * @param transactions - The transactions to include in the state change payload.\n * @returns A mock state change payload.\n */\nexport const createMockStateChangePayload = (\n transactions: TransactionMeta[],\n) => ({\n transactions,\n transactionBatches: [],\n methodData: {},\n lastFetchedBlockNumbers: {},\n submitHistory: [],\n});\n"]}
|
package/dist/types.cjs
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApprovalFeatureType = exports.ApprovalResultType = exports.ADDRESS_SCAN_SUPPORTED_CHAINS = exports.TOKEN_SCAN_SUPPORTED_CHAINS = exports.APPROVAL_SUPPORTED_CHAINS = exports.AddressScanResultType = exports.DEFAULT_CHAIN_ID_TO_NAME = exports.TokenScanResultType = exports.RecommendedAction = exports.PhishingDetectorResultType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The type of list in which the domain was found.
|
|
6
|
+
*/
|
|
7
|
+
var PhishingDetectorResultType;
|
|
8
|
+
(function (PhishingDetectorResultType) {
|
|
9
|
+
/*
|
|
10
|
+
* "all" means that the domain was not found in any list.
|
|
11
|
+
*/
|
|
12
|
+
PhishingDetectorResultType["All"] = "all";
|
|
13
|
+
/*
|
|
14
|
+
* "fuzzy" means that the domain was found in the fuzzylist.
|
|
15
|
+
*/
|
|
16
|
+
PhishingDetectorResultType["Fuzzy"] = "fuzzy";
|
|
17
|
+
/*
|
|
18
|
+
* "blocklist" means that the domain was found in the blocklist.
|
|
19
|
+
*/
|
|
20
|
+
PhishingDetectorResultType["Blocklist"] = "blocklist";
|
|
21
|
+
/*
|
|
22
|
+
* "allowlist" means that the domain was found in the allowlist.
|
|
23
|
+
*/
|
|
24
|
+
PhishingDetectorResultType["Allowlist"] = "allowlist";
|
|
25
|
+
/*
|
|
26
|
+
* "blacklist" means that the domain was found in a blacklist of a legacy
|
|
27
|
+
* configuration object.
|
|
28
|
+
*/
|
|
29
|
+
PhishingDetectorResultType["Blacklist"] = "blacklist";
|
|
30
|
+
/*
|
|
31
|
+
* "whitelist" means that the domain was found in a whitelist of a legacy
|
|
32
|
+
* configuration object.
|
|
33
|
+
*/
|
|
34
|
+
PhishingDetectorResultType["Whitelist"] = "whitelist";
|
|
35
|
+
/*
|
|
36
|
+
* "c2DomainBlocklist" means that the domain was found in the C2 domain blocklist.
|
|
37
|
+
*/
|
|
38
|
+
PhishingDetectorResultType["C2DomainBlocklist"] = "c2DomainBlocklist";
|
|
39
|
+
})(PhishingDetectorResultType || (exports.PhishingDetectorResultType = PhishingDetectorResultType = {}));
|
|
40
|
+
/**
|
|
41
|
+
* Indicates the warning level based on risk factors
|
|
42
|
+
*/
|
|
43
|
+
var RecommendedAction;
|
|
44
|
+
(function (RecommendedAction) {
|
|
45
|
+
/**
|
|
46
|
+
* None means it is most likely safe
|
|
47
|
+
*/
|
|
48
|
+
RecommendedAction["None"] = "NONE";
|
|
49
|
+
/**
|
|
50
|
+
* Warn means there is some risk
|
|
51
|
+
*/
|
|
52
|
+
RecommendedAction["Warn"] = "WARN";
|
|
53
|
+
/**
|
|
54
|
+
* Block means it is highly likely to be malicious
|
|
55
|
+
*/
|
|
56
|
+
RecommendedAction["Block"] = "BLOCK";
|
|
57
|
+
/**
|
|
58
|
+
* Verified means it has been associated as an official domain of a
|
|
59
|
+
* company or organization and/or a top Web3 domain.
|
|
60
|
+
*/
|
|
61
|
+
RecommendedAction["Verified"] = "VERIFIED";
|
|
62
|
+
})(RecommendedAction || (exports.RecommendedAction = RecommendedAction = {}));
|
|
63
|
+
/**
|
|
64
|
+
* Result type of a token scan
|
|
65
|
+
*/
|
|
66
|
+
var TokenScanResultType;
|
|
67
|
+
(function (TokenScanResultType) {
|
|
68
|
+
TokenScanResultType["Benign"] = "Benign";
|
|
69
|
+
TokenScanResultType["Warning"] = "Warning";
|
|
70
|
+
TokenScanResultType["Malicious"] = "Malicious";
|
|
71
|
+
TokenScanResultType["Spam"] = "Spam";
|
|
72
|
+
})(TokenScanResultType || (exports.TokenScanResultType = TokenScanResultType = {}));
|
|
73
|
+
exports.DEFAULT_CHAIN_ID_TO_NAME = {
|
|
74
|
+
'0x1': 'ethereum',
|
|
75
|
+
'0x89': 'polygon',
|
|
76
|
+
'0x38': 'bsc',
|
|
77
|
+
'0xa4b1': 'arbitrum',
|
|
78
|
+
'0xa86a': 'avalanche',
|
|
79
|
+
'0x2105': 'base',
|
|
80
|
+
'0xa': 'optimism',
|
|
81
|
+
'0x76adf1': 'zora',
|
|
82
|
+
'0xe708': 'linea',
|
|
83
|
+
'0x27bc86aa': 'degen',
|
|
84
|
+
'0x144': 'zksync',
|
|
85
|
+
'0x82750': 'scroll',
|
|
86
|
+
'0x13e31': 'blast',
|
|
87
|
+
'0x74c': 'soneium',
|
|
88
|
+
'0x79a': 'soneium-minato',
|
|
89
|
+
'0x14a34': 'base-sepolia',
|
|
90
|
+
'0xab5': 'abstract',
|
|
91
|
+
'0x849ea': 'zero-network',
|
|
92
|
+
'0x138de': 'berachain',
|
|
93
|
+
'0x82': 'unichain',
|
|
94
|
+
'0x7e4': 'ronin',
|
|
95
|
+
'0x127': 'hedera',
|
|
96
|
+
'0x12c': 'zksync-sepolia',
|
|
97
|
+
'0xaa36a7': 'ethereum-sepolia',
|
|
98
|
+
'0xa869': 'avalanche-fuji',
|
|
99
|
+
'0x343b': 'immutable-zkevm',
|
|
100
|
+
'0x34a1': 'immutable-zkevm-testnet',
|
|
101
|
+
'0x64': 'gnosis',
|
|
102
|
+
'0x1e0': 'worldchain',
|
|
103
|
+
'0x8173': 'apechain',
|
|
104
|
+
'0x138c5': 'berachain-bartio',
|
|
105
|
+
'0xdef1': 'ink',
|
|
106
|
+
'0xba5ed': 'ink-sepolia',
|
|
107
|
+
'0x2b74': 'abstract-testnet',
|
|
108
|
+
'0x531': 'sei',
|
|
109
|
+
'0x2eb': 'flow-evm',
|
|
110
|
+
'0x8f': 'monad',
|
|
111
|
+
'0x3e7': 'hyperevm',
|
|
112
|
+
'0xc4': 'xlayer',
|
|
113
|
+
'0x10e6': 'megaeth',
|
|
114
|
+
'0x1079': 'tempo',
|
|
115
|
+
'0xa5bf': 'tempo-testnet',
|
|
116
|
+
'0x2019': 'kaia',
|
|
117
|
+
'0x1237': 'robinhood',
|
|
118
|
+
'0x13b2': 'arc',
|
|
119
|
+
'0x2611': 'plasma',
|
|
120
|
+
'0x1388': 'mantle',
|
|
121
|
+
'0xb67d2': 'katana',
|
|
122
|
+
'0x18232': 'plume',
|
|
123
|
+
'0x93e': 'kite-ai',
|
|
124
|
+
'0x279f': 'monad-testnet',
|
|
125
|
+
solana: 'solana',
|
|
126
|
+
starknet: 'starknet',
|
|
127
|
+
'starknet-sepolia': 'starknet-sepolia',
|
|
128
|
+
stellar: 'stellar',
|
|
129
|
+
bitcoin: 'bitcoin',
|
|
130
|
+
sui: 'sui',
|
|
131
|
+
tron: 'tron',
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Result type of an address scan
|
|
135
|
+
*/
|
|
136
|
+
var AddressScanResultType;
|
|
137
|
+
(function (AddressScanResultType) {
|
|
138
|
+
/**
|
|
139
|
+
* Address is benign/safe
|
|
140
|
+
*/
|
|
141
|
+
AddressScanResultType["Benign"] = "Benign";
|
|
142
|
+
/**
|
|
143
|
+
* Address has warning indicators
|
|
144
|
+
*/
|
|
145
|
+
AddressScanResultType["Warning"] = "Warning";
|
|
146
|
+
/**
|
|
147
|
+
* Address is malicious
|
|
148
|
+
*/
|
|
149
|
+
AddressScanResultType["Malicious"] = "Malicious";
|
|
150
|
+
/**
|
|
151
|
+
* Error occurred during scan
|
|
152
|
+
*/
|
|
153
|
+
AddressScanResultType["ErrorResult"] = "ErrorResult";
|
|
154
|
+
})(AddressScanResultType || (exports.AddressScanResultType = AddressScanResultType = {}));
|
|
155
|
+
exports.APPROVAL_SUPPORTED_CHAINS = [
|
|
156
|
+
'ethereum',
|
|
157
|
+
'polygon',
|
|
158
|
+
'bsc',
|
|
159
|
+
'avalanche',
|
|
160
|
+
'arbitrum',
|
|
161
|
+
'base',
|
|
162
|
+
'linea',
|
|
163
|
+
'optimism',
|
|
164
|
+
];
|
|
165
|
+
exports.TOKEN_SCAN_SUPPORTED_CHAINS = [
|
|
166
|
+
'arbitrum',
|
|
167
|
+
'avalanche',
|
|
168
|
+
'base',
|
|
169
|
+
'bsc',
|
|
170
|
+
'ethereum',
|
|
171
|
+
'optimism',
|
|
172
|
+
'polygon',
|
|
173
|
+
'zora',
|
|
174
|
+
'solana',
|
|
175
|
+
'starknet',
|
|
176
|
+
'starknet-sepolia',
|
|
177
|
+
'stellar',
|
|
178
|
+
'linea',
|
|
179
|
+
'degen',
|
|
180
|
+
'zksync',
|
|
181
|
+
'scroll',
|
|
182
|
+
'blast',
|
|
183
|
+
'soneium-minato',
|
|
184
|
+
'base-sepolia',
|
|
185
|
+
'bitcoin',
|
|
186
|
+
'abstract',
|
|
187
|
+
'soneium',
|
|
188
|
+
'ink',
|
|
189
|
+
'berachain',
|
|
190
|
+
'unichain',
|
|
191
|
+
'ronin',
|
|
192
|
+
'sui',
|
|
193
|
+
'hedera',
|
|
194
|
+
'hyperevm',
|
|
195
|
+
'xlayer',
|
|
196
|
+
'monad',
|
|
197
|
+
'megaeth',
|
|
198
|
+
'tempo',
|
|
199
|
+
'sei',
|
|
200
|
+
'kaia',
|
|
201
|
+
'tron',
|
|
202
|
+
'robinhood',
|
|
203
|
+
];
|
|
204
|
+
exports.ADDRESS_SCAN_SUPPORTED_CHAINS = [
|
|
205
|
+
'arbitrum',
|
|
206
|
+
'avalanche',
|
|
207
|
+
'base',
|
|
208
|
+
'base-sepolia',
|
|
209
|
+
'bsc',
|
|
210
|
+
'ethereum',
|
|
211
|
+
'optimism',
|
|
212
|
+
'polygon',
|
|
213
|
+
'zksync',
|
|
214
|
+
'zksync-sepolia',
|
|
215
|
+
'zora',
|
|
216
|
+
'linea',
|
|
217
|
+
'blast',
|
|
218
|
+
'scroll',
|
|
219
|
+
'ethereum-sepolia',
|
|
220
|
+
'degen',
|
|
221
|
+
'avalanche-fuji',
|
|
222
|
+
'gnosis',
|
|
223
|
+
'worldchain',
|
|
224
|
+
'soneium-minato',
|
|
225
|
+
'ronin',
|
|
226
|
+
'apechain',
|
|
227
|
+
'berachain',
|
|
228
|
+
'berachain-bartio',
|
|
229
|
+
'ink',
|
|
230
|
+
'ink-sepolia',
|
|
231
|
+
'abstract',
|
|
232
|
+
'abstract-testnet',
|
|
233
|
+
'soneium',
|
|
234
|
+
'unichain',
|
|
235
|
+
'sei',
|
|
236
|
+
'flow-evm',
|
|
237
|
+
'hyperevm',
|
|
238
|
+
'megaeth',
|
|
239
|
+
'katana',
|
|
240
|
+
'plume',
|
|
241
|
+
'xlayer',
|
|
242
|
+
'monad',
|
|
243
|
+
'monad-testnet',
|
|
244
|
+
'tempo',
|
|
245
|
+
'tempo-testnet',
|
|
246
|
+
'kite-ai',
|
|
247
|
+
'kaia',
|
|
248
|
+
'plasma',
|
|
249
|
+
'mantle',
|
|
250
|
+
'robinhood',
|
|
251
|
+
'arc',
|
|
252
|
+
];
|
|
253
|
+
var ApprovalResultType;
|
|
254
|
+
(function (ApprovalResultType) {
|
|
255
|
+
ApprovalResultType["Malicious"] = "Malicious";
|
|
256
|
+
ApprovalResultType["Warning"] = "Warning";
|
|
257
|
+
ApprovalResultType["Benign"] = "Benign";
|
|
258
|
+
ApprovalResultType["ErrorResult"] = "Error";
|
|
259
|
+
})(ApprovalResultType || (exports.ApprovalResultType = ApprovalResultType = {}));
|
|
260
|
+
var ApprovalFeatureType;
|
|
261
|
+
(function (ApprovalFeatureType) {
|
|
262
|
+
ApprovalFeatureType["Malicious"] = "Malicious";
|
|
263
|
+
ApprovalFeatureType["Warning"] = "Warning";
|
|
264
|
+
ApprovalFeatureType["Benign"] = "Benign";
|
|
265
|
+
ApprovalFeatureType["Info"] = "Info";
|
|
266
|
+
})(ApprovalFeatureType || (exports.ApprovalFeatureType = ApprovalFeatureType = {}));
|
|
267
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAuCA;;GAEG;AACH,IAAY,0BA+BX;AA/BD,WAAY,0BAA0B;IACpC;;OAEG;IACH,yCAAW,CAAA;IACX;;OAEG;IACH,6CAAe,CAAA;IACf;;OAEG;IACH,qDAAuB,CAAA;IACvB;;OAEG;IACH,qDAAuB,CAAA;IACvB;;;OAGG;IACH,qDAAuB,CAAA;IACvB;;;OAGG;IACH,qDAAuB,CAAA;IACvB;;OAEG;IACH,qEAAuC,CAAA;AACzC,CAAC,EA/BW,0BAA0B,0CAA1B,0BAA0B,QA+BrC;AA8BD;;GAEG;AACH,IAAY,iBAkBX;AAlBD,WAAY,iBAAiB;IAC3B;;OAEG;IACH,kCAAa,CAAA;IACb;;OAEG;IACH,kCAAa,CAAA;IACb;;OAEG;IACH,oCAAe,CAAA;IACf;;;OAGG;IACH,0CAAqB,CAAA;AACvB,CAAC,EAlBW,iBAAiB,iCAAjB,iB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L,MAAM;IACN,MAAM;IACN,WAAW;CACH,CAAC;AAKE,QAAA,6BAA6B,GAAG;IAC3C,UAAU;IACV,WAAW;IACX,MAAM;IACN,cAAc;IACd,KAAK;IACL,UAAU;IACV,UAAU;IACV,SAAS;IACT,QAAQ;IACR,gBAAgB;IAChB,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,kBAAkB;IAClB,OAAO;IACP,gBAAgB;IAChB,QAAQ;IACR,YAAY;IACZ,gBAAgB;IAChB,OAAO;IACP,UAAU;IACV,WAAW;IACX,kBAAkB;IAClB,KAAK;IACL,aAAa;IACb,UAAU;IACV,kBAAkB;IAClB,SAAS;IACT,UAAU;IACV,KAAK;IACL,UAAU;IACV,UAAU;IACV,SAAS;IACT,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,OAAO;IACP,eAAe;IACf,OAAO;IACP,eAAe;IACf,SAAS;IACT,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,KAAK;CACG,CAAC;AAKX,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;AACvB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,oCAAa,CAAA;AACf,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B","sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\n/**\n * Represents the result of checking a domain.\n */\nexport type PhishingDetectorResult = {\n /**\n * The name of the configuration object in which the domain was found within\n * an allowlist, blocklist, or fuzzylist.\n */\n name?: string;\n /**\n * The version associated with the configuration object in which the domain\n * was found within an allowlist, blocklist, or fuzzylist.\n */\n version?: string;\n /**\n * Whether the domain is regarded as allowed (true) or not (false).\n */\n result: boolean;\n /**\n * A normalized version of the domain, which is only constructed if the domain\n * is found within a list.\n */\n match?: string;\n /**\n * Which type of list in which the domain was found.\n *\n * - \"allowlist\" means that the domain was found in the allowlist.\n * - \"blocklist\" means that the domain was found in the blocklist.\n * - \"fuzzy\" means that the domain was found in the fuzzylist.\n * - \"blacklist\" means that the domain was found in a blacklist of a legacy\n * configuration object.\n * - \"whitelist\" means that the domain was found in a whitelist of a legacy\n * configuration object.\n * - \"all\" means that the domain was not found in any list.\n */\n type: PhishingDetectorResultType;\n};\n\n/**\n * The type of list in which the domain was found.\n */\nexport enum PhishingDetectorResultType {\n /*\n * \"all\" means that the domain was not found in any list.\n */\n All = 'all',\n /*\n * \"fuzzy\" means that the domain was found in the fuzzylist.\n */\n Fuzzy = 'fuzzy',\n /*\n * \"blocklist\" means that the domain was found in the blocklist.\n */\n Blocklist = 'blocklist',\n /*\n * \"allowlist\" means that the domain was found in the allowlist.\n */\n Allowlist = 'allowlist',\n /*\n * \"blacklist\" means that the domain was found in a blacklist of a legacy\n * configuration object.\n */\n Blacklist = 'blacklist',\n /*\n * \"whitelist\" means that the domain was found in a whitelist of a legacy\n * configuration object.\n */\n Whitelist = 'whitelist',\n /*\n * \"c2DomainBlocklist\" means that the domain was found in the C2 domain blocklist.\n */\n C2DomainBlocklist = 'c2DomainBlocklist',\n}\n\n/**\n * PhishingDetectionScanResult represents the result of a phishing detection scan.\n */\nexport type PhishingDetectionScanResult = {\n /**\n * The hostname that was scanned.\n */\n hostname: string;\n /**\n * Indicates the warning level based on risk factors.\n *\n * - \"NONE\" means it is most likely safe.\n * - \"WARN\" means there is some risk.\n * - \"BLOCK\" means it is highly likely to be malicious.\n * - \"VERIFIED\" means it has been associated as an official domain of a\n * company or organization and/or a top Web3 domain.\n */\n recommendedAction: RecommendedAction;\n /**\n * An optional error message that exists if:\n * - The link requested is not a valid web URL.\n * - Failed to fetch the result from the phishing detector.\n *\n * Consumers can use the existence of this field to retry.\n */\n fetchError?: string;\n};\n\n/**\n * Indicates the warning level based on risk factors\n */\nexport enum RecommendedAction {\n /**\n * None means it is most likely safe\n */\n None = 'NONE',\n /**\n * Warn means there is some risk\n */\n Warn = 'WARN',\n /**\n * Block means it is highly likely to be malicious\n */\n Block = 'BLOCK',\n /**\n * Verified means it has been associated as an official domain of a\n * company or organization and/or a top Web3 domain.\n */\n Verified = 'VERIFIED',\n}\n\n/**\n * Request for bulk token scan\n */\nexport type BulkTokenScanRequest = {\n chainId: string;\n tokens: string[];\n};\n\n/**\n * Result type of a token scan\n */\nexport enum TokenScanResultType {\n Benign = 'Benign',\n Warning = 'Warning',\n Malicious = 'Malicious',\n Spam = 'Spam',\n}\n\n/**\n * Result of a token scan\n */\nexport type TokenScanResult = {\n result_type: TokenScanResultType;\n chain: string;\n address: string;\n};\n\n/**\n * Response for bulk token scan requests\n */\nexport type BulkTokenScanResponse = Record<string, TokenScanResult>;\n\n/**\n * Token data stored in cache (excludes chain and address which are in the key)\n * For now, we only cache the result type, but we could add more data if needed in the future\n */\nexport type TokenScanCacheData = Omit<TokenScanResult, 'chain' | 'address'>;\n\n/**\n * API response from the bulk token scanning endpoint\n */\nexport type TokenScanApiResponse = {\n results: Record<\n string,\n {\n result_type: TokenScanResultType;\n chain?: string;\n address?: string;\n }\n >;\n};\n\nexport const DEFAULT_CHAIN_ID_TO_NAME = {\n '0x1': 'ethereum',\n '0x89': 'polygon',\n '0x38': 'bsc',\n '0xa4b1': 'arbitrum',\n '0xa86a': 'avalanche',\n '0x2105': 'base',\n '0xa': 'optimism',\n '0x76adf1': 'zora',\n '0xe708': 'linea',\n '0x27bc86aa': 'degen',\n '0x144': 'zksync',\n '0x82750': 'scroll',\n '0x13e31': 'blast',\n '0x74c': 'soneium',\n '0x79a': 'soneium-minato',\n '0x14a34': 'base-sepolia',\n '0xab5': 'abstract',\n '0x849ea': 'zero-network',\n '0x138de': 'berachain',\n '0x82': 'unichain',\n '0x7e4': 'ronin',\n '0x127': 'hedera',\n '0x12c': 'zksync-sepolia',\n '0xaa36a7': 'ethereum-sepolia',\n '0xa869': 'avalanche-fuji',\n '0x343b': 'immutable-zkevm',\n '0x34a1': 'immutable-zkevm-testnet',\n '0x64': 'gnosis',\n '0x1e0': 'worldchain',\n '0x8173': 'apechain',\n '0x138c5': 'berachain-bartio',\n '0xdef1': 'ink',\n '0xba5ed': 'ink-sepolia',\n '0x2b74': 'abstract-testnet',\n '0x531': 'sei',\n '0x2eb': 'flow-evm',\n '0x8f': 'monad',\n '0x3e7': 'hyperevm',\n '0xc4': 'xlayer',\n '0x10e6': 'megaeth',\n '0x1079': 'tempo',\n '0xa5bf': 'tempo-testnet',\n '0x2019': 'kaia',\n '0x1237': 'robinhood',\n '0x13b2': 'arc',\n '0x2611': 'plasma',\n '0x1388': 'mantle',\n '0xb67d2': 'katana',\n '0x18232': 'plume',\n '0x93e': 'kite-ai',\n '0x279f': 'monad-testnet',\n solana: 'solana',\n starknet: 'starknet',\n 'starknet-sepolia': 'starknet-sepolia',\n stellar: 'stellar',\n bitcoin: 'bitcoin',\n sui: 'sui',\n tron: 'tron',\n} as const;\n\nexport type ChainIdToNameMap = typeof DEFAULT_CHAIN_ID_TO_NAME;\n\n/**\n * Result type of an address scan\n */\nexport enum AddressScanResultType {\n /**\n * Address is benign/safe\n */\n Benign = 'Benign',\n /**\n * Address has warning indicators\n */\n Warning = 'Warning',\n /**\n * Address is malicious\n */\n Malicious = 'Malicious',\n /**\n * Error occurred during scan\n */\n ErrorResult = 'ErrorResult',\n}\n\n/**\n * Result of an address security scan\n */\nexport type AddressScanResult = {\n /**\n * The result type indicating the security assessment\n */\n result_type: AddressScanResultType;\n /**\n * Additional label or description for the result\n */\n label: string;\n};\n\n/**\n * Address data stored in cache (minimal data needed)\n */\nexport type AddressScanCacheData = {\n result_type: AddressScanResultType;\n label: string;\n};\n\n/**\n * Similar address match metadata for address poisoning detection.\n */\nexport type SimilarAddressMatch = {\n /**\n * The known recipient address that resembles the candidate address.\n */\n knownAddress: string;\n /**\n * Number of matching characters at the start of the address body.\n */\n prefixMatchLength: number;\n /**\n * Number of matching characters at the end of the address body.\n */\n suffixMatchLength: number;\n /**\n * Combined similarity score used to rank matches.\n */\n poisoningScore: number;\n /**\n * Character positions where the candidate and known addresses differ.\n * Indices are based on the full hex string, including the `0x` prefix.\n */\n diffIndices: number[];\n};\n\n/**\n * Thresholds for address poisoning similarity detection.\n */\nexport type SimilarityOptions = {\n /**\n * Minimum required prefix match length.\n */\n prefixLen?: number;\n /**\n * Minimum required suffix match length.\n */\n suffixLen?: number;\n};\n\nexport const APPROVAL_SUPPORTED_CHAINS = [\n 'ethereum',\n 'polygon',\n 'bsc',\n 'avalanche',\n 'arbitrum',\n 'base',\n 'linea',\n 'optimism',\n] as const;\n\nexport type ApprovalSupportedChain = (typeof APPROVAL_SUPPORTED_CHAINS)[number];\n\nexport const TOKEN_SCAN_SUPPORTED_CHAINS = [\n 'arbitrum',\n 'avalanche',\n 'base',\n 'bsc',\n 'ethereum',\n 'optimism',\n 'polygon',\n 'zora',\n 'solana',\n 'starknet',\n 'starknet-sepolia',\n 'stellar',\n 'linea',\n 'degen',\n 'zksync',\n 'scroll',\n 'blast',\n 'soneium-minato',\n 'base-sepolia',\n 'bitcoin',\n 'abstract',\n 'soneium',\n 'ink',\n 'berachain',\n 'unichain',\n 'ronin',\n 'sui',\n 'hedera',\n 'hyperevm',\n 'xlayer',\n 'monad',\n 'megaeth',\n 'tempo',\n 'sei',\n 'kaia',\n 'tron',\n 'robinhood',\n] as const;\n\nexport type TokenScanSupportedChain =\n (typeof TOKEN_SCAN_SUPPORTED_CHAINS)[number];\n\nexport const ADDRESS_SCAN_SUPPORTED_CHAINS = [\n 'arbitrum',\n 'avalanche',\n 'base',\n 'base-sepolia',\n 'bsc',\n 'ethereum',\n 'optimism',\n 'polygon',\n 'zksync',\n 'zksync-sepolia',\n 'zora',\n 'linea',\n 'blast',\n 'scroll',\n 'ethereum-sepolia',\n 'degen',\n 'avalanche-fuji',\n 'gnosis',\n 'worldchain',\n 'soneium-minato',\n 'ronin',\n 'apechain',\n 'berachain',\n 'berachain-bartio',\n 'ink',\n 'ink-sepolia',\n 'abstract',\n 'abstract-testnet',\n 'soneium',\n 'unichain',\n 'sei',\n 'flow-evm',\n 'hyperevm',\n 'megaeth',\n 'katana',\n 'plume',\n 'xlayer',\n 'monad',\n 'monad-testnet',\n 'tempo',\n 'tempo-testnet',\n 'kite-ai',\n 'kaia',\n 'plasma',\n 'mantle',\n 'robinhood',\n 'arc',\n] as const;\n\nexport type AddressScanSupportedChain =\n (typeof ADDRESS_SCAN_SUPPORTED_CHAINS)[number];\n\nexport enum ApprovalResultType {\n Malicious = 'Malicious',\n Warning = 'Warning',\n Benign = 'Benign',\n ErrorResult = 'Error',\n}\n\nexport enum ApprovalFeatureType {\n Malicious = 'Malicious',\n Warning = 'Warning',\n Benign = 'Benign',\n Info = 'Info',\n}\n\nexport type ApprovalFeature = {\n feature_id: string;\n type: ApprovalFeatureType;\n description: string;\n};\n\nexport type Allowance = {\n value?: string;\n usd_price?: string;\n};\n\nexport type ApprovalAsset = {\n address: string;\n symbol: string;\n name: string;\n decimals: number;\n logo_url?: string;\n type?: string;\n};\n\nexport type Exposure = {\n usd_price?: string;\n value: string;\n raw_value: string;\n};\n\nexport type Spender = {\n address: string;\n label?: string;\n features?: ApprovalFeature[];\n};\n\nexport type Approval = {\n allowance: Allowance;\n asset: ApprovalAsset;\n exposure: Exposure;\n spender: Spender;\n verdict: ApprovalResultType;\n};\n\nexport type ApprovalsResponse = {\n approvals: Approval[];\n};\n"]}
|
|
@@ -140,64 +140,64 @@ export type TokenScanApiResponse = {
|
|
|
140
140
|
}>;
|
|
141
141
|
};
|
|
142
142
|
export declare const DEFAULT_CHAIN_ID_TO_NAME: {
|
|
143
|
-
readonly '0x1':
|
|
144
|
-
readonly '0x89':
|
|
145
|
-
readonly '0x38':
|
|
146
|
-
readonly '0xa4b1':
|
|
147
|
-
readonly '0xa86a':
|
|
148
|
-
readonly '0x2105':
|
|
149
|
-
readonly '0xa':
|
|
150
|
-
readonly '0x76adf1':
|
|
151
|
-
readonly '0xe708':
|
|
152
|
-
readonly '0x27bc86aa':
|
|
153
|
-
readonly '0x144':
|
|
154
|
-
readonly '0x82750':
|
|
155
|
-
readonly '0x13e31':
|
|
156
|
-
readonly '0x74c':
|
|
157
|
-
readonly '0x79a':
|
|
158
|
-
readonly '0x14a34':
|
|
159
|
-
readonly '0xab5':
|
|
160
|
-
readonly '0x849ea':
|
|
161
|
-
readonly '0x138de':
|
|
162
|
-
readonly '0x82':
|
|
163
|
-
readonly '0x7e4':
|
|
164
|
-
readonly '0x127':
|
|
165
|
-
readonly '0x12c':
|
|
166
|
-
readonly '0xaa36a7':
|
|
167
|
-
readonly '0xa869':
|
|
168
|
-
readonly '0x343b':
|
|
169
|
-
readonly '0x34a1':
|
|
170
|
-
readonly '0x64':
|
|
171
|
-
readonly '0x1e0':
|
|
172
|
-
readonly '0x8173':
|
|
173
|
-
readonly '0x138c5':
|
|
174
|
-
readonly '0xdef1':
|
|
175
|
-
readonly '0xba5ed':
|
|
176
|
-
readonly '0x2b74':
|
|
177
|
-
readonly '0x531':
|
|
178
|
-
readonly '0x2eb':
|
|
179
|
-
readonly '0x8f':
|
|
180
|
-
readonly '0x3e7':
|
|
181
|
-
readonly '0xc4':
|
|
182
|
-
readonly '0x10e6':
|
|
183
|
-
readonly '0x1079':
|
|
184
|
-
readonly '0xa5bf':
|
|
185
|
-
readonly '0x2019':
|
|
186
|
-
readonly '0x1237':
|
|
187
|
-
readonly '0x13b2':
|
|
188
|
-
readonly '0x2611':
|
|
189
|
-
readonly '0x1388':
|
|
190
|
-
readonly '0xb67d2':
|
|
191
|
-
readonly '0x18232':
|
|
192
|
-
readonly '0x93e':
|
|
193
|
-
readonly '0x279f':
|
|
194
|
-
readonly solana:
|
|
195
|
-
readonly starknet:
|
|
196
|
-
readonly 'starknet-sepolia':
|
|
197
|
-
readonly stellar:
|
|
198
|
-
readonly bitcoin:
|
|
199
|
-
readonly sui:
|
|
200
|
-
readonly tron:
|
|
143
|
+
readonly '0x1': "ethereum";
|
|
144
|
+
readonly '0x89': "polygon";
|
|
145
|
+
readonly '0x38': "bsc";
|
|
146
|
+
readonly '0xa4b1': "arbitrum";
|
|
147
|
+
readonly '0xa86a': "avalanche";
|
|
148
|
+
readonly '0x2105': "base";
|
|
149
|
+
readonly '0xa': "optimism";
|
|
150
|
+
readonly '0x76adf1': "zora";
|
|
151
|
+
readonly '0xe708': "linea";
|
|
152
|
+
readonly '0x27bc86aa': "degen";
|
|
153
|
+
readonly '0x144': "zksync";
|
|
154
|
+
readonly '0x82750': "scroll";
|
|
155
|
+
readonly '0x13e31': "blast";
|
|
156
|
+
readonly '0x74c': "soneium";
|
|
157
|
+
readonly '0x79a': "soneium-minato";
|
|
158
|
+
readonly '0x14a34': "base-sepolia";
|
|
159
|
+
readonly '0xab5': "abstract";
|
|
160
|
+
readonly '0x849ea': "zero-network";
|
|
161
|
+
readonly '0x138de': "berachain";
|
|
162
|
+
readonly '0x82': "unichain";
|
|
163
|
+
readonly '0x7e4': "ronin";
|
|
164
|
+
readonly '0x127': "hedera";
|
|
165
|
+
readonly '0x12c': "zksync-sepolia";
|
|
166
|
+
readonly '0xaa36a7': "ethereum-sepolia";
|
|
167
|
+
readonly '0xa869': "avalanche-fuji";
|
|
168
|
+
readonly '0x343b': "immutable-zkevm";
|
|
169
|
+
readonly '0x34a1': "immutable-zkevm-testnet";
|
|
170
|
+
readonly '0x64': "gnosis";
|
|
171
|
+
readonly '0x1e0': "worldchain";
|
|
172
|
+
readonly '0x8173': "apechain";
|
|
173
|
+
readonly '0x138c5': "berachain-bartio";
|
|
174
|
+
readonly '0xdef1': "ink";
|
|
175
|
+
readonly '0xba5ed': "ink-sepolia";
|
|
176
|
+
readonly '0x2b74': "abstract-testnet";
|
|
177
|
+
readonly '0x531': "sei";
|
|
178
|
+
readonly '0x2eb': "flow-evm";
|
|
179
|
+
readonly '0x8f': "monad";
|
|
180
|
+
readonly '0x3e7': "hyperevm";
|
|
181
|
+
readonly '0xc4': "xlayer";
|
|
182
|
+
readonly '0x10e6': "megaeth";
|
|
183
|
+
readonly '0x1079': "tempo";
|
|
184
|
+
readonly '0xa5bf': "tempo-testnet";
|
|
185
|
+
readonly '0x2019': "kaia";
|
|
186
|
+
readonly '0x1237': "robinhood";
|
|
187
|
+
readonly '0x13b2': "arc";
|
|
188
|
+
readonly '0x2611': "plasma";
|
|
189
|
+
readonly '0x1388': "mantle";
|
|
190
|
+
readonly '0xb67d2': "katana";
|
|
191
|
+
readonly '0x18232': "plume";
|
|
192
|
+
readonly '0x93e': "kite-ai";
|
|
193
|
+
readonly '0x279f': "monad-testnet";
|
|
194
|
+
readonly solana: "solana";
|
|
195
|
+
readonly starknet: "starknet";
|
|
196
|
+
readonly 'starknet-sepolia': "starknet-sepolia";
|
|
197
|
+
readonly stellar: "stellar";
|
|
198
|
+
readonly bitcoin: "bitcoin";
|
|
199
|
+
readonly sui: "sui";
|
|
200
|
+
readonly tron: "tron";
|
|
201
201
|
};
|
|
202
202
|
export type ChainIdToNameMap = typeof DEFAULT_CHAIN_ID_TO_NAME;
|
|
203
203
|
/**
|
|
@@ -280,11 +280,11 @@ export type SimilarityOptions = {
|
|
|
280
280
|
*/
|
|
281
281
|
suffixLen?: number;
|
|
282
282
|
};
|
|
283
|
-
export declare const APPROVAL_SUPPORTED_CHAINS: readonly [
|
|
283
|
+
export declare const APPROVAL_SUPPORTED_CHAINS: readonly ["ethereum", "polygon", "bsc", "avalanche", "arbitrum", "base", "linea", "optimism"];
|
|
284
284
|
export type ApprovalSupportedChain = (typeof APPROVAL_SUPPORTED_CHAINS)[number];
|
|
285
|
-
export declare const TOKEN_SCAN_SUPPORTED_CHAINS: readonly [
|
|
285
|
+
export declare const TOKEN_SCAN_SUPPORTED_CHAINS: readonly ["arbitrum", "avalanche", "base", "bsc", "ethereum", "optimism", "polygon", "zora", "solana", "starknet", "starknet-sepolia", "stellar", "linea", "degen", "zksync", "scroll", "blast", "soneium-minato", "base-sepolia", "bitcoin", "abstract", "soneium", "ink", "berachain", "unichain", "ronin", "sui", "hedera", "hyperevm", "xlayer", "monad", "megaeth", "tempo", "sei", "kaia", "tron", "robinhood"];
|
|
286
286
|
export type TokenScanSupportedChain = (typeof TOKEN_SCAN_SUPPORTED_CHAINS)[number];
|
|
287
|
-
export declare const ADDRESS_SCAN_SUPPORTED_CHAINS: readonly [
|
|
287
|
+
export declare const ADDRESS_SCAN_SUPPORTED_CHAINS: readonly ["arbitrum", "avalanche", "base", "base-sepolia", "bsc", "ethereum", "optimism", "polygon", "zksync", "zksync-sepolia", "zora", "linea", "blast", "scroll", "ethereum-sepolia", "degen", "avalanche-fuji", "gnosis", "worldchain", "soneium-minato", "ronin", "apechain", "berachain", "berachain-bartio", "ink", "ink-sepolia", "abstract", "abstract-testnet", "soneium", "unichain", "sei", "flow-evm", "hyperevm", "megaeth", "katana", "plume", "xlayer", "monad", "monad-testnet", "tempo", "tempo-testnet", "kite-ai", "kaia", "plasma", "mantle", "robinhood", "arc"];
|
|
288
288
|
export type AddressScanSupportedChain = (typeof ADDRESS_SCAN_SUPPORTED_CHAINS)[number];
|
|
289
289
|
export declare enum ApprovalResultType {
|
|
290
290
|
Malicious = "Malicious",
|
|
@@ -335,4 +335,4 @@ export type Approval = {
|
|
|
335
335
|
export type ApprovalsResponse = {
|
|
336
336
|
approvals: Approval[];
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=types.d.
|
|
338
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;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