@cybertools/address-registry 0.0.0-stage → 1.0.0
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/LICENSE +201 -0
- package/README.md +44 -2
- package/dist/arbitrum/dex.cjs +76 -0
- package/dist/arbitrum/dex.d.cts +4 -0
- package/dist/arbitrum/dex.d.mts +4 -0
- package/dist/arbitrum/dex.mjs +76 -0
- package/dist/arbitrum/index.cjs +16 -0
- package/dist/arbitrum/index.d.cts +7 -0
- package/dist/arbitrum/index.d.mts +7 -0
- package/dist/arbitrum/index.mjs +13 -0
- package/dist/arbitrum/tokens.cjs +53 -0
- package/dist/arbitrum/tokens.d.cts +4 -0
- package/dist/arbitrum/tokens.d.mts +4 -0
- package/dist/arbitrum/tokens.mjs +53 -0
- package/dist/avax/dex.cjs +73 -0
- package/dist/avax/dex.d.cts +4 -0
- package/dist/avax/dex.d.mts +4 -0
- package/dist/avax/dex.mjs +73 -0
- package/dist/avax/index.cjs +16 -0
- package/dist/avax/index.d.cts +7 -0
- package/dist/avax/index.d.mts +7 -0
- package/dist/avax/index.mjs +13 -0
- package/dist/avax/tokens.cjs +47 -0
- package/dist/avax/tokens.d.cts +4 -0
- package/dist/avax/tokens.d.mts +4 -0
- package/dist/avax/tokens.mjs +47 -0
- package/dist/base/dex.cjs +85 -0
- package/dist/base/dex.d.cts +4 -0
- package/dist/base/dex.d.mts +4 -0
- package/dist/base/dex.mjs +85 -0
- package/dist/base/index.cjs +16 -0
- package/dist/base/index.d.cts +7 -0
- package/dist/base/index.d.mts +7 -0
- package/dist/base/index.mjs +13 -0
- package/dist/base/tokens.cjs +35 -0
- package/dist/base/tokens.d.cts +4 -0
- package/dist/base/tokens.d.mts +4 -0
- package/dist/base/tokens.mjs +35 -0
- package/dist/blast/dex.cjs +85 -0
- package/dist/blast/dex.d.cts +4 -0
- package/dist/blast/dex.d.mts +4 -0
- package/dist/blast/dex.mjs +85 -0
- package/dist/blast/index.cjs +16 -0
- package/dist/blast/index.d.cts +7 -0
- package/dist/blast/index.d.mts +7 -0
- package/dist/blast/index.mjs +13 -0
- package/dist/blast/tokens.cjs +23 -0
- package/dist/blast/tokens.d.cts +4 -0
- package/dist/blast/tokens.d.mts +4 -0
- package/dist/blast/tokens.mjs +23 -0
- package/dist/bsc/addresses.cjs +1977 -0
- package/dist/bsc/addresses.d.cts +4 -0
- package/dist/bsc/addresses.d.mts +4 -0
- package/dist/bsc/addresses.mjs +1977 -0
- package/dist/bsc/blacklists/gnosisSafeMultisign.cjs +10030 -0
- package/dist/bsc/blacklists/gnosisSafeMultisign.d.cts +3 -0
- package/dist/bsc/blacklists/gnosisSafeMultisign.d.mts +3 -0
- package/dist/bsc/blacklists/gnosisSafeMultisign.mjs +10030 -0
- package/dist/bsc/blacklists/index.cjs +11 -0
- package/dist/bsc/blacklists/index.d.cts +3 -0
- package/dist/bsc/blacklists/index.d.mts +3 -0
- package/dist/bsc/blacklists/index.mjs +11 -0
- package/dist/bsc/blacklists/sanctioned.cjs +37 -0
- package/dist/bsc/blacklists/sanctioned.d.cts +3 -0
- package/dist/bsc/blacklists/sanctioned.d.mts +3 -0
- package/dist/bsc/blacklists/sanctioned.mjs +37 -0
- package/dist/bsc/blacklists/usdt.cjs +645 -0
- package/dist/bsc/blacklists/usdt.d.cts +3 -0
- package/dist/bsc/blacklists/usdt.d.mts +3 -0
- package/dist/bsc/blacklists/usdt.mjs +645 -0
- package/dist/bsc/index.cjs +42 -0
- package/dist/bsc/index.d.cts +11 -0
- package/dist/bsc/index.d.mts +11 -0
- package/dist/bsc/index.mjs +35 -0
- package/dist/bsc/tokens.cjs +155 -0
- package/dist/bsc/tokens.d.cts +4 -0
- package/dist/bsc/tokens.d.mts +4 -0
- package/dist/bsc/tokens.mjs +155 -0
- package/dist/bscTestnet/index.cjs +36 -0
- package/dist/bscTestnet/index.d.cts +6 -0
- package/dist/bscTestnet/index.d.mts +6 -0
- package/dist/bscTestnet/index.mjs +34 -0
- package/dist/bscTestnet/tokens.cjs +53 -0
- package/dist/bscTestnet/tokens.d.cts +4 -0
- package/dist/bscTestnet/tokens.d.mts +4 -0
- package/dist/bscTestnet/tokens.mjs +53 -0
- package/dist/cro/dex.cjs +12 -0
- package/dist/cro/dex.d.cts +4 -0
- package/dist/cro/dex.d.mts +4 -0
- package/dist/cro/dex.mjs +12 -0
- package/dist/cro/index.cjs +3 -0
- package/dist/cro/index.d.cts +2 -0
- package/dist/cro/index.d.mts +2 -0
- package/dist/cro/index.mjs +2 -0
- package/dist/eth/cex.cjs +1080 -0
- package/dist/eth/cex.d.cts +4 -0
- package/dist/eth/cex.d.mts +4 -0
- package/dist/eth/cex.mjs +1080 -0
- package/dist/eth/dex.cjs +76 -0
- package/dist/eth/dex.d.cts +4 -0
- package/dist/eth/dex.d.mts +4 -0
- package/dist/eth/dex.mjs +76 -0
- package/dist/eth/exploit.cjs +3210 -0
- package/dist/eth/exploit.d.cts +4 -0
- package/dist/eth/exploit.d.mts +4 -0
- package/dist/eth/exploit.mjs +3210 -0
- package/dist/eth/index.cjs +31 -0
- package/dist/eth/index.d.cts +11 -0
- package/dist/eth/index.d.mts +11 -0
- package/dist/eth/index.mjs +24 -0
- package/dist/eth/rest.cjs +915 -0
- package/dist/eth/rest.d.cts +4 -0
- package/dist/eth/rest.d.mts +4 -0
- package/dist/eth/rest.mjs +915 -0
- package/dist/eth/tokens.cjs +23 -0
- package/dist/eth/tokens.d.cts +4 -0
- package/dist/eth/tokens.d.mts +4 -0
- package/dist/eth/tokens.mjs +23 -0
- package/dist/eth/tornado.cjs +300 -0
- package/dist/eth/tornado.d.cts +4 -0
- package/dist/eth/tornado.d.mts +4 -0
- package/dist/eth/tornado.mjs +300 -0
- package/dist/index.cjs +102 -0
- package/dist/index.d.cts +50 -0
- package/dist/index.d.mts +50 -0
- package/dist/index.mjs +96 -0
- package/dist/klay/dex.cjs +12 -0
- package/dist/klay/dex.d.cts +4 -0
- package/dist/klay/dex.d.mts +4 -0
- package/dist/klay/dex.mjs +12 -0
- package/dist/klay/index.cjs +3 -0
- package/dist/klay/index.d.cts +2 -0
- package/dist/klay/index.d.mts +2 -0
- package/dist/klay/index.mjs +2 -0
- package/dist/makeByAddress.cjs +12 -0
- package/dist/makeByAddress.d.cts +5 -0
- package/dist/makeByAddress.d.mts +5 -0
- package/dist/makeByAddress.mjs +12 -0
- package/dist/matic/dex.cjs +86 -0
- package/dist/matic/dex.d.cts +4 -0
- package/dist/matic/dex.d.mts +4 -0
- package/dist/matic/dex.mjs +86 -0
- package/dist/matic/index.cjs +16 -0
- package/dist/matic/index.d.cts +7 -0
- package/dist/matic/index.d.mts +7 -0
- package/dist/matic/index.mjs +13 -0
- package/dist/matic/tokens.cjs +155 -0
- package/dist/matic/tokens.d.cts +4 -0
- package/dist/matic/tokens.d.mts +4 -0
- package/dist/matic/tokens.mjs +155 -0
- package/dist/one/dex.cjs +12 -0
- package/dist/one/dex.d.cts +4 -0
- package/dist/one/dex.d.mts +4 -0
- package/dist/one/dex.mjs +12 -0
- package/dist/one/index.cjs +3 -0
- package/dist/one/index.d.cts +2 -0
- package/dist/one/index.d.mts +2 -0
- package/dist/one/index.mjs +2 -0
- package/dist/sepolia/dex.cjs +26 -0
- package/dist/sepolia/dex.d.cts +4 -0
- package/dist/sepolia/dex.d.mts +4 -0
- package/dist/sepolia/dex.mjs +26 -0
- package/dist/sepolia/index.cjs +15 -0
- package/dist/sepolia/index.d.cts +7 -0
- package/dist/sepolia/index.d.mts +7 -0
- package/dist/sepolia/index.mjs +12 -0
- package/dist/sepolia/tokens.cjs +71 -0
- package/dist/sepolia/tokens.d.cts +4 -0
- package/dist/sepolia/tokens.d.mts +4 -0
- package/dist/sepolia/tokens.mjs +71 -0
- package/dist/types.d.cts +20 -0
- package/dist/types.d.mts +20 -0
- package/package.json +96 -3
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_makeByAddress = require("./makeByAddress.cjs");
|
|
3
|
+
const require_index = require("./bsc/blacklists/index.cjs");
|
|
4
|
+
const require_bsc_index = require("./bsc/index.cjs");
|
|
5
|
+
const require_eth_index = require("./eth/index.cjs");
|
|
6
|
+
const require_arbitrum_index = require("./arbitrum/index.cjs");
|
|
7
|
+
const require_avax_index = require("./avax/index.cjs");
|
|
8
|
+
const require_dex = require("./cro/dex.cjs");
|
|
9
|
+
const require_matic_index = require("./matic/index.cjs");
|
|
10
|
+
const require_base_index = require("./base/index.cjs");
|
|
11
|
+
const require_blast_index = require("./blast/index.cjs");
|
|
12
|
+
const require_dex$1 = require("./one/dex.cjs");
|
|
13
|
+
const require_dex$2 = require("./klay/dex.cjs");
|
|
14
|
+
const require_bscTestnet_index = require("./bscTestnet/index.cjs");
|
|
15
|
+
const require_sepolia_index = require("./sepolia/index.cjs");
|
|
16
|
+
//#region src/index.ts
|
|
17
|
+
const allNetworks = require_makeByAddress.makeByAddress("ETH", [
|
|
18
|
+
...require_bsc_index.entries,
|
|
19
|
+
...require_eth_index.entries,
|
|
20
|
+
...require_arbitrum_index.entries,
|
|
21
|
+
...require_avax_index.entries,
|
|
22
|
+
...require_dex.dex,
|
|
23
|
+
...require_matic_index.entries,
|
|
24
|
+
...require_base_index.entries,
|
|
25
|
+
...require_blast_index.entries,
|
|
26
|
+
...require_dex$1.dex,
|
|
27
|
+
...require_dex$2.dex,
|
|
28
|
+
...require_bscTestnet_index.entries,
|
|
29
|
+
...require_sepolia_index.entries
|
|
30
|
+
]);
|
|
31
|
+
const addressRegistry = {
|
|
32
|
+
BSC: {
|
|
33
|
+
byAddress: require_makeByAddress.makeByAddress("BSC", require_bsc_index.entries),
|
|
34
|
+
blacklists: require_index.blacklist
|
|
35
|
+
},
|
|
36
|
+
ETH: {
|
|
37
|
+
byAddress: require_makeByAddress.makeByAddress("ETH", require_eth_index.entries),
|
|
38
|
+
blacklists: /* @__PURE__ */ new Set()
|
|
39
|
+
},
|
|
40
|
+
ARBITRUM: { byAddress: require_makeByAddress.makeByAddress("ARBITRUM", require_arbitrum_index.entries) },
|
|
41
|
+
AVAX: { byAddress: require_makeByAddress.makeByAddress("AVAX", require_avax_index.entries) },
|
|
42
|
+
CRO: { byAddress: require_makeByAddress.makeByAddress("CRO", require_dex.dex) },
|
|
43
|
+
MATIC: { byAddress: require_makeByAddress.makeByAddress("MATIC", require_matic_index.entries) },
|
|
44
|
+
BASE: { byAddress: require_makeByAddress.makeByAddress("BASE", require_base_index.entries) },
|
|
45
|
+
BLAST: { byAddress: require_makeByAddress.makeByAddress("BLAST", require_blast_index.entries) },
|
|
46
|
+
ONE: { byAddress: require_makeByAddress.makeByAddress("ONE", require_dex$1.dex) },
|
|
47
|
+
KLAY: { byAddress: require_makeByAddress.makeByAddress("KLAY", require_dex$2.dex) },
|
|
48
|
+
BSC_TESTNET: { byAddress: require_makeByAddress.makeByAddress("BSC_TESTNET", require_bscTestnet_index.entries) },
|
|
49
|
+
SEPOLIA: { byAddress: require_makeByAddress.makeByAddress("SEPOLIA", require_sepolia_index.entries) }
|
|
50
|
+
};
|
|
51
|
+
const getTokens = (network) => network.filter(({ type }) => type === "Token");
|
|
52
|
+
const tokensByNetwork = {
|
|
53
|
+
BSC: getTokens(require_bsc_index.entries),
|
|
54
|
+
ETH: getTokens(require_eth_index.entries),
|
|
55
|
+
ARBITRUM: getTokens(require_arbitrum_index.entries),
|
|
56
|
+
AVAX: getTokens(require_avax_index.entries),
|
|
57
|
+
CRO: getTokens(require_dex.dex),
|
|
58
|
+
MATIC: getTokens(require_matic_index.entries),
|
|
59
|
+
BASE: getTokens(require_base_index.entries),
|
|
60
|
+
BLAST: getTokens(require_blast_index.entries),
|
|
61
|
+
ONE: getTokens(require_dex$1.dex),
|
|
62
|
+
KLAY: getTokens(require_dex$2.dex),
|
|
63
|
+
BSC_TESTNET: getTokens(require_bscTestnet_index.entries),
|
|
64
|
+
SEPOLIA: getTokens(require_sepolia_index.entries)
|
|
65
|
+
};
|
|
66
|
+
const getDexes = (network) => network.filter(({ type, version }) => type === "DEX" && version);
|
|
67
|
+
const dexesByNetwork = {
|
|
68
|
+
BSC: getDexes(require_bsc_index.entries),
|
|
69
|
+
ETH: getDexes(require_eth_index.entries),
|
|
70
|
+
ARBITRUM: getDexes(require_arbitrum_index.entries),
|
|
71
|
+
AVAX: getDexes(require_avax_index.entries),
|
|
72
|
+
CRO: getDexes(require_dex.dex),
|
|
73
|
+
MATIC: getDexes(require_matic_index.entries),
|
|
74
|
+
BASE: getDexes(require_base_index.entries),
|
|
75
|
+
BLAST: getDexes(require_blast_index.entries),
|
|
76
|
+
ONE: getDexes(require_dex$1.dex),
|
|
77
|
+
KLAY: getDexes(require_dex$2.dex),
|
|
78
|
+
BSC_TESTNET: getDexes(require_bscTestnet_index.entries),
|
|
79
|
+
SEPOLIA: getDexes(require_sepolia_index.entries)
|
|
80
|
+
};
|
|
81
|
+
const getStablecoin = (network, tokenSymbol = "USDT") => network.find(({ symbol }) => symbol === tokenSymbol);
|
|
82
|
+
const stablecoinByNetwork = {
|
|
83
|
+
BSC: getStablecoin(tokensByNetwork.BSC),
|
|
84
|
+
ETH: getStablecoin(tokensByNetwork.ETH),
|
|
85
|
+
ARBITRUM: getStablecoin(tokensByNetwork.ARBITRUM, "USDC"),
|
|
86
|
+
AVAX: getStablecoin(tokensByNetwork.AVAX, "USDt"),
|
|
87
|
+
CRO: getStablecoin(tokensByNetwork.CRO),
|
|
88
|
+
MATIC: getStablecoin(tokensByNetwork.MATIC),
|
|
89
|
+
BASE: getStablecoin(tokensByNetwork.BASE, "USDC"),
|
|
90
|
+
BLAST: getStablecoin(tokensByNetwork.BLAST, "USDB"),
|
|
91
|
+
ONE: getStablecoin(tokensByNetwork.ONE),
|
|
92
|
+
KLAY: getStablecoin(tokensByNetwork.KLAY),
|
|
93
|
+
BSC_TESTNET: getStablecoin(tokensByNetwork.BSC_TESTNET),
|
|
94
|
+
SEPOLIA: getStablecoin(tokensByNetwork.SEPOLIA)
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
exports.addressRegistry = addressRegistry;
|
|
98
|
+
exports.allNetworks = allNetworks;
|
|
99
|
+
exports.dexesByNetwork = dexesByNetwork;
|
|
100
|
+
exports.makeByAddress = require_makeByAddress.makeByAddress;
|
|
101
|
+
exports.stablecoinByNetwork = stablecoinByNetwork;
|
|
102
|
+
exports.tokensByNetwork = tokensByNetwork;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AddressBook, AddressEntry, TokenInfo } from "./types.cjs";
|
|
2
|
+
import { makeByAddress } from "./makeByAddress.cjs";
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
export declare const allNetworks: AddressBook;
|
|
5
|
+
export declare const addressRegistry: {
|
|
6
|
+
BSC: {
|
|
7
|
+
byAddress: AddressBook;
|
|
8
|
+
blacklists: Set<string>;
|
|
9
|
+
};
|
|
10
|
+
ETH: {
|
|
11
|
+
byAddress: AddressBook;
|
|
12
|
+
blacklists: Set<string>;
|
|
13
|
+
};
|
|
14
|
+
ARBITRUM: {
|
|
15
|
+
byAddress: AddressBook;
|
|
16
|
+
};
|
|
17
|
+
AVAX: {
|
|
18
|
+
byAddress: AddressBook;
|
|
19
|
+
};
|
|
20
|
+
CRO: {
|
|
21
|
+
byAddress: AddressBook;
|
|
22
|
+
};
|
|
23
|
+
MATIC: {
|
|
24
|
+
byAddress: AddressBook;
|
|
25
|
+
};
|
|
26
|
+
BASE: {
|
|
27
|
+
byAddress: AddressBook;
|
|
28
|
+
};
|
|
29
|
+
BLAST: {
|
|
30
|
+
byAddress: AddressBook;
|
|
31
|
+
};
|
|
32
|
+
ONE: {
|
|
33
|
+
byAddress: AddressBook;
|
|
34
|
+
};
|
|
35
|
+
KLAY: {
|
|
36
|
+
byAddress: AddressBook;
|
|
37
|
+
};
|
|
38
|
+
BSC_TESTNET: {
|
|
39
|
+
byAddress: AddressBook;
|
|
40
|
+
};
|
|
41
|
+
SEPOLIA: {
|
|
42
|
+
byAddress: AddressBook;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type RegistryNetworkId = keyof typeof addressRegistry;
|
|
46
|
+
export declare const tokensByNetwork: Record<RegistryNetworkId, AddressEntry[]>;
|
|
47
|
+
export declare const dexesByNetwork: Record<RegistryNetworkId, AddressEntry[]>;
|
|
48
|
+
export declare const stablecoinByNetwork: Record<RegistryNetworkId, AddressEntry | undefined>;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { type AddressBook, type AddressEntry, type TokenInfo, makeByAddress };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AddressBook, AddressEntry, TokenInfo } from "./types.mjs";
|
|
2
|
+
import { makeByAddress } from "./makeByAddress.mjs";
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
export declare const allNetworks: AddressBook;
|
|
5
|
+
export declare const addressRegistry: {
|
|
6
|
+
BSC: {
|
|
7
|
+
byAddress: AddressBook;
|
|
8
|
+
blacklists: Set<string>;
|
|
9
|
+
};
|
|
10
|
+
ETH: {
|
|
11
|
+
byAddress: AddressBook;
|
|
12
|
+
blacklists: Set<string>;
|
|
13
|
+
};
|
|
14
|
+
ARBITRUM: {
|
|
15
|
+
byAddress: AddressBook;
|
|
16
|
+
};
|
|
17
|
+
AVAX: {
|
|
18
|
+
byAddress: AddressBook;
|
|
19
|
+
};
|
|
20
|
+
CRO: {
|
|
21
|
+
byAddress: AddressBook;
|
|
22
|
+
};
|
|
23
|
+
MATIC: {
|
|
24
|
+
byAddress: AddressBook;
|
|
25
|
+
};
|
|
26
|
+
BASE: {
|
|
27
|
+
byAddress: AddressBook;
|
|
28
|
+
};
|
|
29
|
+
BLAST: {
|
|
30
|
+
byAddress: AddressBook;
|
|
31
|
+
};
|
|
32
|
+
ONE: {
|
|
33
|
+
byAddress: AddressBook;
|
|
34
|
+
};
|
|
35
|
+
KLAY: {
|
|
36
|
+
byAddress: AddressBook;
|
|
37
|
+
};
|
|
38
|
+
BSC_TESTNET: {
|
|
39
|
+
byAddress: AddressBook;
|
|
40
|
+
};
|
|
41
|
+
SEPOLIA: {
|
|
42
|
+
byAddress: AddressBook;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type RegistryNetworkId = keyof typeof addressRegistry;
|
|
46
|
+
export declare const tokensByNetwork: Record<RegistryNetworkId, AddressEntry[]>;
|
|
47
|
+
export declare const dexesByNetwork: Record<RegistryNetworkId, AddressEntry[]>;
|
|
48
|
+
export declare const stablecoinByNetwork: Record<RegistryNetworkId, AddressEntry | undefined>;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { type AddressBook, type AddressEntry, type TokenInfo, makeByAddress };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { makeByAddress } from "./makeByAddress.mjs";
|
|
2
|
+
import { blacklist } from "./bsc/blacklists/index.mjs";
|
|
3
|
+
import { entries } from "./bsc/index.mjs";
|
|
4
|
+
import { entries as entries$1 } from "./eth/index.mjs";
|
|
5
|
+
import { entries as entries$2 } from "./arbitrum/index.mjs";
|
|
6
|
+
import { entries as entries$3 } from "./avax/index.mjs";
|
|
7
|
+
import { dex } from "./cro/dex.mjs";
|
|
8
|
+
import { entries as entries$4 } from "./matic/index.mjs";
|
|
9
|
+
import { entries as entries$5 } from "./base/index.mjs";
|
|
10
|
+
import { entries as entries$6 } from "./blast/index.mjs";
|
|
11
|
+
import { dex as dex$1 } from "./one/dex.mjs";
|
|
12
|
+
import { dex as dex$2 } from "./klay/dex.mjs";
|
|
13
|
+
import { entries as entries$7 } from "./bscTestnet/index.mjs";
|
|
14
|
+
import { entries as entries$8 } from "./sepolia/index.mjs";
|
|
15
|
+
//#region src/index.ts
|
|
16
|
+
const allNetworks = makeByAddress("ETH", [
|
|
17
|
+
...entries,
|
|
18
|
+
...entries$1,
|
|
19
|
+
...entries$2,
|
|
20
|
+
...entries$3,
|
|
21
|
+
...dex,
|
|
22
|
+
...entries$4,
|
|
23
|
+
...entries$5,
|
|
24
|
+
...entries$6,
|
|
25
|
+
...dex$1,
|
|
26
|
+
...dex$2,
|
|
27
|
+
...entries$7,
|
|
28
|
+
...entries$8
|
|
29
|
+
]);
|
|
30
|
+
const addressRegistry = {
|
|
31
|
+
BSC: {
|
|
32
|
+
byAddress: makeByAddress("BSC", entries),
|
|
33
|
+
blacklists: blacklist
|
|
34
|
+
},
|
|
35
|
+
ETH: {
|
|
36
|
+
byAddress: makeByAddress("ETH", entries$1),
|
|
37
|
+
blacklists: /* @__PURE__ */ new Set()
|
|
38
|
+
},
|
|
39
|
+
ARBITRUM: { byAddress: makeByAddress("ARBITRUM", entries$2) },
|
|
40
|
+
AVAX: { byAddress: makeByAddress("AVAX", entries$3) },
|
|
41
|
+
CRO: { byAddress: makeByAddress("CRO", dex) },
|
|
42
|
+
MATIC: { byAddress: makeByAddress("MATIC", entries$4) },
|
|
43
|
+
BASE: { byAddress: makeByAddress("BASE", entries$5) },
|
|
44
|
+
BLAST: { byAddress: makeByAddress("BLAST", entries$6) },
|
|
45
|
+
ONE: { byAddress: makeByAddress("ONE", dex$1) },
|
|
46
|
+
KLAY: { byAddress: makeByAddress("KLAY", dex$2) },
|
|
47
|
+
BSC_TESTNET: { byAddress: makeByAddress("BSC_TESTNET", entries$7) },
|
|
48
|
+
SEPOLIA: { byAddress: makeByAddress("SEPOLIA", entries$8) }
|
|
49
|
+
};
|
|
50
|
+
const getTokens = (network) => network.filter(({ type }) => type === "Token");
|
|
51
|
+
const tokensByNetwork = {
|
|
52
|
+
BSC: getTokens(entries),
|
|
53
|
+
ETH: getTokens(entries$1),
|
|
54
|
+
ARBITRUM: getTokens(entries$2),
|
|
55
|
+
AVAX: getTokens(entries$3),
|
|
56
|
+
CRO: getTokens(dex),
|
|
57
|
+
MATIC: getTokens(entries$4),
|
|
58
|
+
BASE: getTokens(entries$5),
|
|
59
|
+
BLAST: getTokens(entries$6),
|
|
60
|
+
ONE: getTokens(dex$1),
|
|
61
|
+
KLAY: getTokens(dex$2),
|
|
62
|
+
BSC_TESTNET: getTokens(entries$7),
|
|
63
|
+
SEPOLIA: getTokens(entries$8)
|
|
64
|
+
};
|
|
65
|
+
const getDexes = (network) => network.filter(({ type, version }) => type === "DEX" && version);
|
|
66
|
+
const dexesByNetwork = {
|
|
67
|
+
BSC: getDexes(entries),
|
|
68
|
+
ETH: getDexes(entries$1),
|
|
69
|
+
ARBITRUM: getDexes(entries$2),
|
|
70
|
+
AVAX: getDexes(entries$3),
|
|
71
|
+
CRO: getDexes(dex),
|
|
72
|
+
MATIC: getDexes(entries$4),
|
|
73
|
+
BASE: getDexes(entries$5),
|
|
74
|
+
BLAST: getDexes(entries$6),
|
|
75
|
+
ONE: getDexes(dex$1),
|
|
76
|
+
KLAY: getDexes(dex$2),
|
|
77
|
+
BSC_TESTNET: getDexes(entries$7),
|
|
78
|
+
SEPOLIA: getDexes(entries$8)
|
|
79
|
+
};
|
|
80
|
+
const getStablecoin = (network, tokenSymbol = "USDT") => network.find(({ symbol }) => symbol === tokenSymbol);
|
|
81
|
+
const stablecoinByNetwork = {
|
|
82
|
+
BSC: getStablecoin(tokensByNetwork.BSC),
|
|
83
|
+
ETH: getStablecoin(tokensByNetwork.ETH),
|
|
84
|
+
ARBITRUM: getStablecoin(tokensByNetwork.ARBITRUM, "USDC"),
|
|
85
|
+
AVAX: getStablecoin(tokensByNetwork.AVAX, "USDt"),
|
|
86
|
+
CRO: getStablecoin(tokensByNetwork.CRO),
|
|
87
|
+
MATIC: getStablecoin(tokensByNetwork.MATIC),
|
|
88
|
+
BASE: getStablecoin(tokensByNetwork.BASE, "USDC"),
|
|
89
|
+
BLAST: getStablecoin(tokensByNetwork.BLAST, "USDB"),
|
|
90
|
+
ONE: getStablecoin(tokensByNetwork.ONE),
|
|
91
|
+
KLAY: getStablecoin(tokensByNetwork.KLAY),
|
|
92
|
+
BSC_TESTNET: getStablecoin(tokensByNetwork.BSC_TESTNET),
|
|
93
|
+
SEPOLIA: getStablecoin(tokensByNetwork.SEPOLIA)
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
export { addressRegistry, allNetworks, dexesByNetwork, makeByAddress, stablecoinByNetwork, tokensByNetwork };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/klay/dex.ts
|
|
2
|
+
const dex = [{
|
|
3
|
+
type: "DEX",
|
|
4
|
+
address: "0xe0fbb27d0e7f3a397a67a9d4864d4f4dd7cf8cb9",
|
|
5
|
+
label: "KlaySwap Router"
|
|
6
|
+
}, {
|
|
7
|
+
type: "DEXFactory",
|
|
8
|
+
address: "0xc6a2ad8cc6e4a7e08fc37cc5954be07d499e7654",
|
|
9
|
+
label: "KlaySwap Factory"
|
|
10
|
+
}];
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.dex = dex;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/klay/dex.ts
|
|
2
|
+
const dex = [{
|
|
3
|
+
type: "DEX",
|
|
4
|
+
address: "0xe0fbb27d0e7f3a397a67a9d4864d4f4dd7cf8cb9",
|
|
5
|
+
label: "KlaySwap Router"
|
|
6
|
+
}, {
|
|
7
|
+
type: "DEXFactory",
|
|
8
|
+
address: "0xc6a2ad8cc6e4a7e08fc37cc5954be07d499e7654",
|
|
9
|
+
label: "KlaySwap Factory"
|
|
10
|
+
}];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { dex };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
let _cybertools_networks = require("@cybertools/networks");
|
|
2
|
+
//#region src/makeByAddress.ts
|
|
3
|
+
const makeByAddress = (network, collection) => collection.reduce((acc, v) => {
|
|
4
|
+
const address = _cybertools_networks.networks[network].normalizeAddress(v.address);
|
|
5
|
+
acc[address] = {
|
|
6
|
+
...v,
|
|
7
|
+
address
|
|
8
|
+
};
|
|
9
|
+
return acc;
|
|
10
|
+
}, {});
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.makeByAddress = makeByAddress;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { networks } from "@cybertools/networks";
|
|
2
|
+
//#region src/makeByAddress.ts
|
|
3
|
+
const makeByAddress = (network, collection) => collection.reduce((acc, v) => {
|
|
4
|
+
const address = networks[network].normalizeAddress(v.address);
|
|
5
|
+
acc[address] = {
|
|
6
|
+
...v,
|
|
7
|
+
address
|
|
8
|
+
};
|
|
9
|
+
return acc;
|
|
10
|
+
}, {});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { makeByAddress };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//#region src/matic/dex.ts
|
|
2
|
+
const dex = [
|
|
3
|
+
{
|
|
4
|
+
address: "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff",
|
|
5
|
+
factory: "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",
|
|
6
|
+
type: "DEX",
|
|
7
|
+
label: "QuickSwap: Router V2",
|
|
8
|
+
group: "QuickSwap",
|
|
9
|
+
version: "v2"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
type: "DEXFactory",
|
|
13
|
+
address: "0x5757371414417b8c6caad45baef941abc7d3ab32",
|
|
14
|
+
label: "QuickSwap"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
address: "0x0aF89E1620b96170e2a9D0b68fEebb767eD044c3",
|
|
18
|
+
factory: "0x917933899c6a5F8E37F31E19f92CdBFF7e8FF0e2",
|
|
19
|
+
type: "DEX",
|
|
20
|
+
label: "SushiSwap: Router V3",
|
|
21
|
+
group: "SushiSwap",
|
|
22
|
+
version: "v3"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
address: "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",
|
|
26
|
+
factory: "0xc35DADB65012eC5796536bD9864eD8773aBc74C4",
|
|
27
|
+
type: "DEX",
|
|
28
|
+
label: "SushiSwap: Router V2",
|
|
29
|
+
group: "SushiSwap",
|
|
30
|
+
version: "v2"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "DEXFactory",
|
|
34
|
+
address: "0xc35dadb65012ec5796536bd9864ed8773abc74c4",
|
|
35
|
+
label: "SushiSwap"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
address: "0xedf6066a2b290C185783862C7F4776A2C8077AD1",
|
|
39
|
+
factory: "0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C",
|
|
40
|
+
type: "DEX",
|
|
41
|
+
label: "Uniswap: Router V2",
|
|
42
|
+
group: "Uniswap",
|
|
43
|
+
version: "v2"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
address: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
47
|
+
factory: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
48
|
+
type: "DEX",
|
|
49
|
+
label: "Uniswap: Router V3",
|
|
50
|
+
group: "Uniswap",
|
|
51
|
+
version: "v3"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: "DEXFactory",
|
|
55
|
+
address: "0x1f98431c8ad98523631ae4a59f267346ea31f984",
|
|
56
|
+
label: "Uniswap"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "DEX",
|
|
60
|
+
address: "0x546C79662E028B661dFB4767664d0273184E4dD1",
|
|
61
|
+
label: "KyberSwap"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: "DEXFactory",
|
|
65
|
+
address: "0x5f1fe642060b5b9658c15721ea22e982643c095c",
|
|
66
|
+
label: "KyberSwap"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
address: "0x1891783cb3497Fdad1F25C933225243c2c7c4102",
|
|
70
|
+
factory: "0x91e1B99072f238352f59e58de875691e20Dc19c1",
|
|
71
|
+
type: "DEX",
|
|
72
|
+
label: "Retro: Router V3",
|
|
73
|
+
group: "Retro",
|
|
74
|
+
version: "v3"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
address: "0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429",
|
|
78
|
+
factory: "0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B",
|
|
79
|
+
type: "DEX",
|
|
80
|
+
label: "DFYN Network: Router V2",
|
|
81
|
+
group: "DFYN",
|
|
82
|
+
version: "v2"
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
//#endregion
|
|
86
|
+
exports.dex = dex;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//#region src/matic/dex.ts
|
|
2
|
+
const dex = [
|
|
3
|
+
{
|
|
4
|
+
address: "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff",
|
|
5
|
+
factory: "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",
|
|
6
|
+
type: "DEX",
|
|
7
|
+
label: "QuickSwap: Router V2",
|
|
8
|
+
group: "QuickSwap",
|
|
9
|
+
version: "v2"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
type: "DEXFactory",
|
|
13
|
+
address: "0x5757371414417b8c6caad45baef941abc7d3ab32",
|
|
14
|
+
label: "QuickSwap"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
address: "0x0aF89E1620b96170e2a9D0b68fEebb767eD044c3",
|
|
18
|
+
factory: "0x917933899c6a5F8E37F31E19f92CdBFF7e8FF0e2",
|
|
19
|
+
type: "DEX",
|
|
20
|
+
label: "SushiSwap: Router V3",
|
|
21
|
+
group: "SushiSwap",
|
|
22
|
+
version: "v3"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
address: "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",
|
|
26
|
+
factory: "0xc35DADB65012eC5796536bD9864eD8773aBc74C4",
|
|
27
|
+
type: "DEX",
|
|
28
|
+
label: "SushiSwap: Router V2",
|
|
29
|
+
group: "SushiSwap",
|
|
30
|
+
version: "v2"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "DEXFactory",
|
|
34
|
+
address: "0xc35dadb65012ec5796536bd9864ed8773abc74c4",
|
|
35
|
+
label: "SushiSwap"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
address: "0xedf6066a2b290C185783862C7F4776A2C8077AD1",
|
|
39
|
+
factory: "0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C",
|
|
40
|
+
type: "DEX",
|
|
41
|
+
label: "Uniswap: Router V2",
|
|
42
|
+
group: "Uniswap",
|
|
43
|
+
version: "v2"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
address: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
47
|
+
factory: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
48
|
+
type: "DEX",
|
|
49
|
+
label: "Uniswap: Router V3",
|
|
50
|
+
group: "Uniswap",
|
|
51
|
+
version: "v3"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: "DEXFactory",
|
|
55
|
+
address: "0x1f98431c8ad98523631ae4a59f267346ea31f984",
|
|
56
|
+
label: "Uniswap"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "DEX",
|
|
60
|
+
address: "0x546C79662E028B661dFB4767664d0273184E4dD1",
|
|
61
|
+
label: "KyberSwap"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: "DEXFactory",
|
|
65
|
+
address: "0x5f1fe642060b5b9658c15721ea22e982643c095c",
|
|
66
|
+
label: "KyberSwap"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
address: "0x1891783cb3497Fdad1F25C933225243c2c7c4102",
|
|
70
|
+
factory: "0x91e1B99072f238352f59e58de875691e20Dc19c1",
|
|
71
|
+
type: "DEX",
|
|
72
|
+
label: "Retro: Router V3",
|
|
73
|
+
group: "Retro",
|
|
74
|
+
version: "v3"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
address: "0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429",
|
|
78
|
+
factory: "0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B",
|
|
79
|
+
type: "DEX",
|
|
80
|
+
label: "DFYN Network: Router V2",
|
|
81
|
+
group: "DFYN",
|
|
82
|
+
version: "v2"
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
//#endregion
|
|
86
|
+
export { dex };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_dex = require("./dex.cjs");
|
|
3
|
+
const require_tokens = require("./tokens.cjs");
|
|
4
|
+
//#region src/matic/index.ts
|
|
5
|
+
const entries = [...require_dex.dex, ...require_tokens.tokens.map((token) => ({
|
|
6
|
+
address: token.address,
|
|
7
|
+
decimals: token.decimals,
|
|
8
|
+
symbol: token.symbol,
|
|
9
|
+
label: token.name,
|
|
10
|
+
group: "ERC20",
|
|
11
|
+
type: "Token"
|
|
12
|
+
}))];
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.dex = require_dex.dex;
|
|
15
|
+
exports.entries = entries;
|
|
16
|
+
exports.tokens = require_tokens.tokens;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { dex } from "./dex.mjs";
|
|
2
|
+
import { tokens } from "./tokens.mjs";
|
|
3
|
+
//#region src/matic/index.ts
|
|
4
|
+
const entries = [...dex, ...tokens.map((token) => ({
|
|
5
|
+
address: token.address,
|
|
6
|
+
decimals: token.decimals,
|
|
7
|
+
symbol: token.symbol,
|
|
8
|
+
label: token.name,
|
|
9
|
+
group: "ERC20",
|
|
10
|
+
type: "Token"
|
|
11
|
+
}))];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { dex, entries, tokens };
|