@pancakeswap/token-lists 0.0.6 → 0.0.7
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 +7 -0
- package/LICENSE +674 -0
- package/dist/chunk-2L3ZO4UM.mjs +1 -5
- package/dist/chunk-4TPCCB4K.js +45 -0
- package/dist/{chunk-YBVZDUCZ.mjs → chunk-COROHIJN.mjs} +23 -7
- package/dist/chunk-OGWZ2K32.js +92 -0
- package/dist/getTokenList-2FAKUE6D.mjs +5 -11
- package/dist/getTokenList-YNKBKHZ3.js +472 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +23 -95
- package/dist/index.mjs +2 -13
- package/dist/react.js +51 -641
- package/dist/react.mjs +10 -37
- package/package.json +13 -10
- package/src/filtering.ts +34 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +1 -1
- package/tsup.config.ts +2 -0
- package/.turbo/turbo-build.log +0 -23
package/dist/index.js
CHANGED
|
@@ -1,99 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOGWZ2K32_js = require('./chunk-OGWZ2K32.js');
|
|
4
|
+
require('./chunk-4TPCCB4K.js');
|
|
19
5
|
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
VersionUpgrade: () => VersionUpgrade,
|
|
24
|
-
WrappedTokenInfo: () => WrappedTokenInfo,
|
|
25
|
-
deserializeToken: () => deserializeToken,
|
|
26
|
-
getVersionUpgrade: () => getVersionUpgrade
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
6
|
|
|
30
|
-
// src/wrappedTokenInfo.ts
|
|
31
|
-
var import_swap_sdk_core = require("@pancakeswap/swap-sdk-core");
|
|
32
|
-
var WrappedTokenInfo = class extends import_swap_sdk_core.Token {
|
|
33
|
-
constructor(tokenInfo) {
|
|
34
|
-
super(tokenInfo.chainId, tokenInfo.address, tokenInfo.decimals, tokenInfo.symbol, tokenInfo.name);
|
|
35
|
-
this.logoURI = tokenInfo.logoURI;
|
|
36
|
-
}
|
|
37
|
-
get serialize() {
|
|
38
|
-
return {
|
|
39
|
-
address: this.address,
|
|
40
|
-
chainId: this.chainId,
|
|
41
|
-
decimals: this.decimals,
|
|
42
|
-
symbol: this.symbol,
|
|
43
|
-
name: this.name,
|
|
44
|
-
projectLink: this.projectLink,
|
|
45
|
-
logoURI: this.logoURI
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
function deserializeToken(serializedToken) {
|
|
50
|
-
if (serializedToken.logoURI) {
|
|
51
|
-
return new WrappedTokenInfo({
|
|
52
|
-
chainId: serializedToken.chainId,
|
|
53
|
-
address: serializedToken.address,
|
|
54
|
-
decimals: serializedToken.decimals,
|
|
55
|
-
symbol: serializedToken.symbol || "Unknown",
|
|
56
|
-
name: serializedToken.name || "Unknown",
|
|
57
|
-
logoURI: serializedToken.logoURI
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
return new import_swap_sdk_core.Token(
|
|
61
|
-
serializedToken.chainId,
|
|
62
|
-
serializedToken.address,
|
|
63
|
-
serializedToken.decimals,
|
|
64
|
-
serializedToken.symbol,
|
|
65
|
-
serializedToken.name,
|
|
66
|
-
serializedToken.projectLink
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
7
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return 0 /* NONE */;
|
|
90
|
-
}
|
|
91
|
-
return update.patch > base.patch ? 1 /* PATCH */ : 0 /* NONE */;
|
|
92
|
-
}
|
|
93
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
-
0 && (module.exports = {
|
|
95
|
-
VersionUpgrade,
|
|
96
|
-
WrappedTokenInfo,
|
|
97
|
-
deserializeToken,
|
|
98
|
-
getVersionUpgrade
|
|
8
|
+
Object.defineProperty(exports, 'VersionUpgrade', {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkOGWZ2K32_js.VersionUpgrade; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, 'WrappedTokenInfo', {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkOGWZ2K32_js.WrappedTokenInfo; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, 'createFilterToken', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkOGWZ2K32_js.createFilterToken; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, 'deserializeToken', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkOGWZ2K32_js.deserializeToken; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, 'getVersionUpgrade', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkOGWZ2K32_js.getVersionUpgrade; }
|
|
99
27
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
WrappedTokenInfo,
|
|
4
|
-
deserializeToken,
|
|
5
|
-
getVersionUpgrade
|
|
6
|
-
} from "./chunk-YBVZDUCZ.mjs";
|
|
7
|
-
import "./chunk-2L3ZO4UM.mjs";
|
|
8
|
-
export {
|
|
9
|
-
VersionUpgrade,
|
|
10
|
-
WrappedTokenInfo,
|
|
11
|
-
deserializeToken,
|
|
12
|
-
getVersionUpgrade
|
|
13
|
-
};
|
|
1
|
+
export { VersionUpgrade, WrappedTokenInfo, createFilterToken, deserializeToken, getVersionUpgrade } from './chunk-COROHIJN.mjs';
|
|
2
|
+
import './chunk-2L3ZO4UM.mjs';
|