@pancakeswap/token-lists 0.0.17 → 0.1.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pancakeswap/token-lists@0.0.17 build /home/runner/work/pancake-frontend/pancake-frontend/packages/token-lists
2
+ > @pancakeswap/token-lists@0.1.1 build /home/runner/work/pancake-frontend/pancake-frontend/packages/token-lists
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: {"index":"./src/index.ts","react":"./react/index.ts"}
@@ -9,16 +9,16 @@ CLI Using tsup config: /home/runner/work/pancake-frontend/pancake-frontend/packa
9
9
  CLI Target: es6
10
10
  ESM Build start
11
11
  CJS Build start
12
- CJS dist/index.js 783.00 B
13
- CJS dist/chunk-YOAEDKQH.js 4.28 KB
14
- CJS dist/react.js 24.16 KB
15
- CJS ⚡️ Build success in 1283ms
16
- ESM dist/chunk-DC45HQOL.mjs 4.05 KB
17
- ESM dist/react.mjs 23.29 KB
18
- ESM dist/index.mjs 129.00 B
19
- ESM ⚡️ Build success in 1284ms
12
+ CJS dist/chunk-Y2NTTLTJ.js 2.30 KB
13
+ CJS dist/index.js 2.68 KB
14
+ CJS dist/react.js 33.13 KB
15
+ CJS ⚡️ Build success in 3052ms
16
+ ESM dist/chunk-UUVLERWJ.mjs 2.18 KB
17
+ ESM dist/index.mjs 2.28 KB
18
+ ESM dist/react.mjs 31.72 KB
19
+ ESM ⚡️ Build success in 3052ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 13650ms
22
- DTS dist/index.d.ts 1.68 KB
23
- DTS dist/react.d.ts 3.50 KB
24
- DTS dist/types-92a8b029.d.ts 1.06 KB
21
+ DTS ⚡️ Build success in 32179ms
22
+ DTS dist/index.d.ts 3.23 KB
23
+ DTS dist/react.d.ts 5.01 KB
24
+ DTS dist/types-dcc7ec4a.d.ts 1.11 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @pancakeswap/token-lists
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [851a494]
8
+ - @pancakeswap/swap-sdk-core@1.6.1
9
+
10
+ ## 0.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - ed68c36: merge solana liquidity to evm
15
+
16
+ ### Patch Changes
17
+
18
+ - cecbc32: Add cn symbol/name support
19
+ - Updated dependencies [ed68c36]
20
+ - @pancakeswap/swap-sdk-core@1.6.0
21
+
3
22
  ## 0.0.17
4
23
 
5
24
  ### Patch Changes
@@ -1,5 +1,3 @@
1
- import { Token } from '@pancakeswap/swap-sdk-core';
2
-
3
1
  var __defProp = Object.defineProperty;
4
2
  var __defProps = Object.defineProperties;
5
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -39,43 +37,6 @@ var __async = (__this, __arguments, generator) => {
39
37
  step((generator = generator.apply(__this, __arguments)).next());
40
38
  });
41
39
  };
42
- var WrappedTokenInfo = class extends Token {
43
- constructor(tokenInfo) {
44
- super(tokenInfo.chainId, tokenInfo.address, tokenInfo.decimals, tokenInfo.symbol, tokenInfo.name);
45
- this.logoURI = tokenInfo.logoURI;
46
- }
47
- get serialize() {
48
- return {
49
- address: this.address,
50
- chainId: this.chainId,
51
- decimals: this.decimals,
52
- symbol: this.symbol,
53
- name: this.name,
54
- projectLink: this.projectLink,
55
- logoURI: this.logoURI
56
- };
57
- }
58
- };
59
- function deserializeToken(serializedToken) {
60
- if (serializedToken.logoURI) {
61
- return new WrappedTokenInfo({
62
- chainId: serializedToken.chainId,
63
- address: serializedToken.address,
64
- decimals: serializedToken.decimals,
65
- symbol: serializedToken.symbol || "Unknown",
66
- name: serializedToken.name || "Unknown",
67
- logoURI: serializedToken.logoURI
68
- });
69
- }
70
- return new Token(
71
- serializedToken.chainId,
72
- serializedToken.address,
73
- serializedToken.decimals,
74
- serializedToken.symbol,
75
- serializedToken.name,
76
- serializedToken.projectLink
77
- );
78
- }
79
40
 
80
41
  // src/getVersionUpgrade.ts
81
42
  var VersionUpgrade = /* @__PURE__ */ ((VersionUpgrade2) => {
@@ -101,24 +62,4 @@ function getVersionUpgrade(base, update) {
101
62
  return update.patch > base.patch ? 1 /* PATCH */ : 0 /* NONE */;
102
63
  }
103
64
 
104
- // src/filtering.ts
105
- function createFilterToken(search, isAddress) {
106
- if (isAddress(search)) {
107
- const address = search.toLowerCase();
108
- return (t) => "address" in t && address === t.address.toLowerCase();
109
- }
110
- const lowerSearchParts = search.toLowerCase().split(/\s+/).filter((s) => s.length > 0);
111
- if (lowerSearchParts.length === 0) {
112
- return () => true;
113
- }
114
- const matchesSearch = (s) => {
115
- const sParts = s.toLowerCase().split(/\s+/).filter((s_) => s_.length > 0);
116
- return lowerSearchParts.every((p) => p.length === 0 || sParts.some((sp) => sp.startsWith(p) || sp.endsWith(p)));
117
- };
118
- return (token) => {
119
- const { symbol, name } = token;
120
- return Boolean(symbol && matchesSearch(symbol) || name && matchesSearch(name));
121
- };
122
- }
123
-
124
- export { VersionUpgrade, WrappedTokenInfo, __async, __spreadProps, __spreadValues, createFilterToken, deserializeToken, getVersionUpgrade };
65
+ export { VersionUpgrade, __async, __spreadProps, __spreadValues, getVersionUpgrade };
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var swapSdkCore = require('@pancakeswap/swap-sdk-core');
4
-
5
3
  var __defProp = Object.defineProperty;
6
4
  var __defProps = Object.defineProperties;
7
5
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -41,43 +39,6 @@ var __async = (__this, __arguments, generator) => {
41
39
  step((generator = generator.apply(__this, __arguments)).next());
42
40
  });
43
41
  };
44
- var WrappedTokenInfo = class extends swapSdkCore.Token {
45
- constructor(tokenInfo) {
46
- super(tokenInfo.chainId, tokenInfo.address, tokenInfo.decimals, tokenInfo.symbol, tokenInfo.name);
47
- this.logoURI = tokenInfo.logoURI;
48
- }
49
- get serialize() {
50
- return {
51
- address: this.address,
52
- chainId: this.chainId,
53
- decimals: this.decimals,
54
- symbol: this.symbol,
55
- name: this.name,
56
- projectLink: this.projectLink,
57
- logoURI: this.logoURI
58
- };
59
- }
60
- };
61
- function deserializeToken(serializedToken) {
62
- if (serializedToken.logoURI) {
63
- return new WrappedTokenInfo({
64
- chainId: serializedToken.chainId,
65
- address: serializedToken.address,
66
- decimals: serializedToken.decimals,
67
- symbol: serializedToken.symbol || "Unknown",
68
- name: serializedToken.name || "Unknown",
69
- logoURI: serializedToken.logoURI
70
- });
71
- }
72
- return new swapSdkCore.Token(
73
- serializedToken.chainId,
74
- serializedToken.address,
75
- serializedToken.decimals,
76
- serializedToken.symbol,
77
- serializedToken.name,
78
- serializedToken.projectLink
79
- );
80
- }
81
42
 
82
43
  // src/getVersionUpgrade.ts
83
44
  var VersionUpgrade = /* @__PURE__ */ ((VersionUpgrade2) => {
@@ -103,31 +64,8 @@ function getVersionUpgrade(base, update) {
103
64
  return update.patch > base.patch ? 1 /* PATCH */ : 0 /* NONE */;
104
65
  }
105
66
 
106
- // src/filtering.ts
107
- function createFilterToken(search, isAddress) {
108
- if (isAddress(search)) {
109
- const address = search.toLowerCase();
110
- return (t) => "address" in t && address === t.address.toLowerCase();
111
- }
112
- const lowerSearchParts = search.toLowerCase().split(/\s+/).filter((s) => s.length > 0);
113
- if (lowerSearchParts.length === 0) {
114
- return () => true;
115
- }
116
- const matchesSearch = (s) => {
117
- const sParts = s.toLowerCase().split(/\s+/).filter((s_) => s_.length > 0);
118
- return lowerSearchParts.every((p) => p.length === 0 || sParts.some((sp) => sp.startsWith(p) || sp.endsWith(p)));
119
- };
120
- return (token) => {
121
- const { symbol, name } = token;
122
- return Boolean(symbol && matchesSearch(symbol) || name && matchesSearch(name));
123
- };
124
- }
125
-
126
67
  exports.VersionUpgrade = VersionUpgrade;
127
- exports.WrappedTokenInfo = WrappedTokenInfo;
128
68
  exports.__async = __async;
129
69
  exports.__spreadProps = __spreadProps;
130
70
  exports.__spreadValues = __spreadValues;
131
- exports.createFilterToken = createFilterToken;
132
- exports.deserializeToken = deserializeToken;
133
71
  exports.getVersionUpgrade = getVersionUpgrade;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SerializedToken, Token } from '@pancakeswap/swap-sdk-core';
2
- import { T as TokenInfo, a as TokenList, V as Version } from './types-92a8b029.js';
3
- export { b as Tags } from './types-92a8b029.js';
2
+ import { T as TokenInfo, a as TokenList, V as Version } from './types-dcc7ec4a.js';
3
+ export { b as Tags } from './types-dcc7ec4a.js';
4
4
 
5
5
  interface SerializedWrappedToken extends SerializedToken {
6
6
  chainId: number;
@@ -16,6 +16,12 @@ interface SerializedWrappedToken extends SerializedToken {
16
16
  */
17
17
  declare class WrappedTokenInfo extends Token {
18
18
  readonly logoURI: string | undefined;
19
+ /**
20
+ * Preserves the token-list `extensions` bag (curator-set metadata like
21
+ * `bridgeInfo`, `scaledUIAmount.enabled`, etc.). Stored as a readonly reference;
22
+ * not serialised back out of the class (kept in-memory only).
23
+ */
24
+ readonly extensions: TokenInfo['extensions'];
19
25
  constructor(tokenInfo: TokenInfo);
20
26
  get serialize(): SerializedWrappedToken;
21
27
  }
@@ -49,4 +55,30 @@ declare function getVersionUpgrade(base: Version, update: Version): VersionUpgra
49
55
 
50
56
  declare function createFilterToken<T extends TokenInfo | Token>(search: string, isAddress: (address: string) => boolean): (token: T) => boolean;
51
57
 
52
- export { SerializedWrappedToken, TokenAddressMap, TokenInfo, TokenList, Version, VersionUpgrade, WrappedTokenInfo, createFilterToken, deserializeToken, getVersionUpgrade };
58
+ /**
59
+ * Static metadata identifying an ERC-8056 (Scaled UI Amount) token in a token list.
60
+ * `enabled: true` is the only field FE consumes for routing decisions; everything
61
+ * else is hint/snapshot data refreshed live from chain.
62
+ */
63
+ interface ScaledUIAmountExtension {
64
+ /** Set to `true` for tokens that implement ERC-8056. The load-bearing FE check. */
65
+ enabled: boolean;
66
+ /** Optional snapshot of the live multiplier at the time of indexing (18-decimal fixed). */
67
+ multiplier?: string;
68
+ /** Optional human-readable multiplier (e.g. `"2.0"`). Display hint only. */
69
+ multiplierFormatted?: string;
70
+ /** ERC-165 interface IDs the contract claims to support. */
71
+ interfaceIds?: string[];
72
+ }
73
+ /**
74
+ * Returns true if a token-list entry is flagged as ERC-8056 enabled by the indexer.
75
+ * Tokens lacking the extension or with `enabled: false` are treated as standard ERC-20s
76
+ * (identity multiplier `1.0×`); the FE never falls into ScaledUI math for these.
77
+ *
78
+ * Note: the load-bearing decision lives here, not on the `Token` class. Token
79
+ * instances stay pure identity objects per the architectural decision in the
80
+ * implementation doc.
81
+ */
82
+ declare function isScaledUIAmountToken(token: Pick<TokenInfo, 'extensions'>): boolean;
83
+
84
+ export { ScaledUIAmountExtension, SerializedWrappedToken, TokenAddressMap, TokenInfo, TokenList, Version, VersionUpgrade, WrappedTokenInfo, createFilterToken, deserializeToken, getVersionUpgrade, isScaledUIAmountToken };
package/dist/index.js CHANGED
@@ -1,26 +1,85 @@
1
1
  'use strict';
2
2
 
3
- var chunkYOAEDKQH_js = require('./chunk-YOAEDKQH.js');
3
+ var chunkY2NTTLTJ_js = require('./chunk-Y2NTTLTJ.js');
4
+ var swapSdkCore = require('@pancakeswap/swap-sdk-core');
4
5
 
6
+ var WrappedTokenInfo = class extends swapSdkCore.Token {
7
+ constructor(tokenInfo) {
8
+ super(tokenInfo.chainId, tokenInfo.address, tokenInfo.decimals, tokenInfo.symbol, tokenInfo.name);
9
+ this.logoURI = tokenInfo.logoURI;
10
+ this.extensions = tokenInfo.extensions;
11
+ }
12
+ get serialize() {
13
+ return {
14
+ address: this.address,
15
+ chainId: this.chainId,
16
+ decimals: this.decimals,
17
+ symbol: this.symbol,
18
+ name: this.name,
19
+ projectLink: this.projectLink,
20
+ logoURI: this.logoURI
21
+ };
22
+ }
23
+ };
24
+ function deserializeToken(serializedToken) {
25
+ if (serializedToken.logoURI) {
26
+ return new WrappedTokenInfo({
27
+ chainId: serializedToken.chainId,
28
+ address: serializedToken.address,
29
+ decimals: serializedToken.decimals,
30
+ symbol: serializedToken.symbol || "Unknown",
31
+ name: serializedToken.name || "Unknown",
32
+ logoURI: serializedToken.logoURI
33
+ });
34
+ }
35
+ return new swapSdkCore.Token(
36
+ serializedToken.chainId,
37
+ serializedToken.address,
38
+ serializedToken.decimals,
39
+ serializedToken.symbol,
40
+ serializedToken.name,
41
+ serializedToken.projectLink
42
+ );
43
+ }
5
44
 
45
+ // src/filtering.ts
46
+ function createFilterToken(search, isAddress) {
47
+ if (isAddress(search)) {
48
+ const address = search.toLowerCase();
49
+ return (t) => "address" in t && address === t.address.toLowerCase();
50
+ }
51
+ const lowerSearchParts = search.toLowerCase().split(/\s+/).filter((s) => s.length > 0);
52
+ if (lowerSearchParts.length === 0) {
53
+ return () => true;
54
+ }
55
+ const matchesSearch = (s) => {
56
+ const sParts = s.toLowerCase().split(/\s+/).filter((s_) => s_.length > 0);
57
+ return lowerSearchParts.every((p) => p.length === 0 || sParts.some((sp) => sp.startsWith(p) || sp.endsWith(p)));
58
+ };
59
+ return (token) => {
60
+ const { symbol, name } = token;
61
+ return Boolean(symbol && matchesSearch(symbol) || name && matchesSearch(name));
62
+ };
63
+ }
64
+
65
+ // src/scaledUIAmount.ts
66
+ function isScaledUIAmountToken(token) {
67
+ var _a;
68
+ const ext = (_a = token.extensions) == null ? void 0 : _a.scaledUIAmount;
69
+ if (!ext || typeof ext !== "object" || Array.isArray(ext))
70
+ return false;
71
+ return ext.enabled === true;
72
+ }
6
73
 
7
74
  Object.defineProperty(exports, 'VersionUpgrade', {
8
75
  enumerable: true,
9
- get: function () { return chunkYOAEDKQH_js.VersionUpgrade; }
10
- });
11
- Object.defineProperty(exports, 'WrappedTokenInfo', {
12
- enumerable: true,
13
- get: function () { return chunkYOAEDKQH_js.WrappedTokenInfo; }
14
- });
15
- Object.defineProperty(exports, 'createFilterToken', {
16
- enumerable: true,
17
- get: function () { return chunkYOAEDKQH_js.createFilterToken; }
18
- });
19
- Object.defineProperty(exports, 'deserializeToken', {
20
- enumerable: true,
21
- get: function () { return chunkYOAEDKQH_js.deserializeToken; }
76
+ get: function () { return chunkY2NTTLTJ_js.VersionUpgrade; }
22
77
  });
23
78
  Object.defineProperty(exports, 'getVersionUpgrade', {
24
79
  enumerable: true,
25
- get: function () { return chunkYOAEDKQH_js.getVersionUpgrade; }
80
+ get: function () { return chunkY2NTTLTJ_js.getVersionUpgrade; }
26
81
  });
82
+ exports.WrappedTokenInfo = WrappedTokenInfo;
83
+ exports.createFilterToken = createFilterToken;
84
+ exports.deserializeToken = deserializeToken;
85
+ exports.isScaledUIAmountToken = isScaledUIAmountToken;
package/dist/index.mjs CHANGED
@@ -1 +1,72 @@
1
- export { VersionUpgrade, WrappedTokenInfo, createFilterToken, deserializeToken, getVersionUpgrade } from './chunk-DC45HQOL.mjs';
1
+ export { VersionUpgrade, getVersionUpgrade } from './chunk-UUVLERWJ.mjs';
2
+ import { Token } from '@pancakeswap/swap-sdk-core';
3
+
4
+ var WrappedTokenInfo = class extends Token {
5
+ constructor(tokenInfo) {
6
+ super(tokenInfo.chainId, tokenInfo.address, tokenInfo.decimals, tokenInfo.symbol, tokenInfo.name);
7
+ this.logoURI = tokenInfo.logoURI;
8
+ this.extensions = tokenInfo.extensions;
9
+ }
10
+ get serialize() {
11
+ return {
12
+ address: this.address,
13
+ chainId: this.chainId,
14
+ decimals: this.decimals,
15
+ symbol: this.symbol,
16
+ name: this.name,
17
+ projectLink: this.projectLink,
18
+ logoURI: this.logoURI
19
+ };
20
+ }
21
+ };
22
+ function deserializeToken(serializedToken) {
23
+ if (serializedToken.logoURI) {
24
+ return new WrappedTokenInfo({
25
+ chainId: serializedToken.chainId,
26
+ address: serializedToken.address,
27
+ decimals: serializedToken.decimals,
28
+ symbol: serializedToken.symbol || "Unknown",
29
+ name: serializedToken.name || "Unknown",
30
+ logoURI: serializedToken.logoURI
31
+ });
32
+ }
33
+ return new Token(
34
+ serializedToken.chainId,
35
+ serializedToken.address,
36
+ serializedToken.decimals,
37
+ serializedToken.symbol,
38
+ serializedToken.name,
39
+ serializedToken.projectLink
40
+ );
41
+ }
42
+
43
+ // src/filtering.ts
44
+ function createFilterToken(search, isAddress) {
45
+ if (isAddress(search)) {
46
+ const address = search.toLowerCase();
47
+ return (t) => "address" in t && address === t.address.toLowerCase();
48
+ }
49
+ const lowerSearchParts = search.toLowerCase().split(/\s+/).filter((s) => s.length > 0);
50
+ if (lowerSearchParts.length === 0) {
51
+ return () => true;
52
+ }
53
+ const matchesSearch = (s) => {
54
+ const sParts = s.toLowerCase().split(/\s+/).filter((s_) => s_.length > 0);
55
+ return lowerSearchParts.every((p) => p.length === 0 || sParts.some((sp) => sp.startsWith(p) || sp.endsWith(p)));
56
+ };
57
+ return (token) => {
58
+ const { symbol, name } = token;
59
+ return Boolean(symbol && matchesSearch(symbol) || name && matchesSearch(name));
60
+ };
61
+ }
62
+
63
+ // src/scaledUIAmount.ts
64
+ function isScaledUIAmountToken(token) {
65
+ var _a;
66
+ const ext = (_a = token.extensions) == null ? void 0 : _a.scaledUIAmount;
67
+ if (!ext || typeof ext !== "object" || Array.isArray(ext))
68
+ return false;
69
+ return ext.enabled === true;
70
+ }
71
+
72
+ export { WrappedTokenInfo, createFilterToken, deserializeToken, isScaledUIAmountToken };
package/dist/react.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
3
- import { a as TokenList, V as Version } from './types-92a8b029.js';
3
+ import { a as TokenList, V as Version, T as TokenInfo } from './types-dcc7ec4a.js';
4
4
  import * as jotai_vanilla_utils_atomFamily from 'jotai/vanilla/utils/atomFamily';
5
5
  import * as jotai from 'jotai';
6
- import * as src from 'src';
7
6
  import * as _reduxjs_toolkit_dist_createReducer from '@reduxjs/toolkit/dist/createReducer';
8
7
 
9
8
  declare const fetchTokenList: Readonly<{
@@ -29,6 +28,24 @@ declare const disableList: ActionCreatorWithPayload<string, string>;
29
28
  declare const acceptListUpdate: ActionCreatorWithPayload<string, string>;
30
29
  declare const rejectVersionUpdate: ActionCreatorWithPayload<Version, string>;
31
30
  declare const updateListVersion: _reduxjs_toolkit.ActionCreatorWithoutPayload<"lists/updateListVersion">;
31
+ declare const batchFetchTokenListPending: ActionCreatorWithPayload<{
32
+ urls: string[];
33
+ requestId: string;
34
+ }, string>;
35
+ declare const batchFetchTokenListFulfilled: ActionCreatorWithPayload<{
36
+ results: Array<{
37
+ url: string;
38
+ tokenList: TokenList;
39
+ requestId: string;
40
+ }>;
41
+ }, string>;
42
+ declare const batchFetchTokenListRejected: ActionCreatorWithPayload<{
43
+ errors: Array<{
44
+ url: string;
45
+ errorMessage: string;
46
+ requestId: string;
47
+ }>;
48
+ }, string>;
32
49
 
33
50
  /**
34
51
  * Contains the logic for resolving a list URL to a validated token list
@@ -52,25 +69,49 @@ type ListByUrlState = ListsState['byUrl'][string];
52
69
  declare const NEW_LIST_STATE: ListByUrlState;
53
70
  declare const createTokenListReducer: (initialState: ListsState, DEFAULT_LIST_OF_LISTS: string[], DEFAULT_ACTIVE_LIST_URLS: string[]) => _reduxjs_toolkit_dist_createReducer.ReducerWithInitialState<ListsState>;
54
71
 
55
- declare function findTokenByAddress(state: ListsState, chainId: number, address: string): src.TokenInfo | undefined;
56
- declare function findTokenBySymbol(state: ListsState, chainId: number, symbol: string): src.TokenInfo | undefined;
57
- declare const createListsAtom: (storeName: string, reducer: any, initialState: any) => {
58
- listsAtom: jotai.WritableAtom<ListsState, any, void>;
72
+ type GeoBlockList = {
73
+ rules?: Record<string, string[]>;
74
+ tokens?: Record<string, string[]>;
75
+ };
76
+ type CreateListsAtomOptions = {
77
+ geoBlockListUrl?: string;
78
+ };
79
+ type TokenKeyLike = {
80
+ chainId: number;
81
+ address: string;
82
+ };
83
+ declare function getGeoBlockTokenKey(token: TokenKeyLike): string;
84
+ declare function getGeoBlockedTokenKeys(geoBlockList?: GeoBlockList, countryCode?: string): Set<string>;
85
+ declare function isGeoBlockedToken(token: TokenKeyLike, geoBlockList?: GeoBlockList, countryCode?: string): boolean;
86
+ declare function findTokenByAddress(state: ListsState, chainId: number, address: string): TokenInfo | undefined;
87
+ declare function findTokenBySymbol(state: ListsState, chainId: number, symbol: string): TokenInfo | undefined;
88
+ declare const createListsAtom: (storeName: string, reducer: any, initialState: any, options?: CreateListsAtomOptions) => {
89
+ listsAtom: jotai.Atom<ListsState>;
90
+ updateListStateAtom: jotai.WritableAtom<null, any, void> & {
91
+ init: null;
92
+ };
59
93
  tokenAtom: jotai_vanilla_utils_atomFamily.AtomFamily<{
60
94
  chainId: number;
61
95
  address: string;
62
- }, jotai.Atom<src.TokenInfo | undefined>>;
96
+ }, jotai.Atom<TokenInfo | undefined>>;
63
97
  tokenBySymbolAtom: jotai_vanilla_utils_atomFamily.AtomFamily<{
64
98
  chainId: number;
65
99
  symbol: string;
66
- }, jotai.Atom<src.TokenInfo | undefined>>;
100
+ }, jotai.Atom<TokenInfo | undefined>>;
101
+ geoBlockListAtom: jotai.Atom<GeoBlockList | undefined>;
102
+ fetchGeoBlockListAtom: jotai.WritableAtom<null, [], Promise<void>> & {
103
+ init: null;
104
+ };
67
105
  fetchListAtom: jotai.WritableAtom<null, [string], Promise<void>> & {
68
106
  init: null;
69
107
  };
108
+ fetchListBatchAtom: jotai.WritableAtom<null, [string[]], Promise<void>> & {
109
+ init: null;
110
+ };
70
111
  useListStateReady: () => boolean;
71
- useListState: () => [ListsState, (...args: any) => void];
112
+ useListState: () => [ListsState, never];
72
113
  };
73
114
 
74
115
  declare function useFetchListCallback(dispatch: (action?: unknown) => void): (listUrl: string, sendDispatch?: boolean) => Promise<TokenList>;
75
116
 
76
- export { ListByUrlState, ListsState, NEW_LIST_STATE, acceptListUpdate, addList, createListsAtom, createTokenListReducer, disableList, enableList, fetchTokenList, findTokenByAddress, findTokenBySymbol, getTokenList, rejectVersionUpdate, removeList, updateListVersion, useFetchListCallback };
117
+ export { CreateListsAtomOptions, GeoBlockList, ListByUrlState, ListsState, NEW_LIST_STATE, acceptListUpdate, addList, batchFetchTokenListFulfilled, batchFetchTokenListPending, batchFetchTokenListRejected, createListsAtom, createTokenListReducer, disableList, enableList, fetchTokenList, findTokenByAddress, findTokenBySymbol, getGeoBlockTokenKey, getGeoBlockedTokenKeys, getTokenList, isGeoBlockedToken, rejectVersionUpdate, removeList, updateListVersion, useFetchListCallback };