@talismn/balances 0.0.0-pr2043-20250619153855 → 0.0.0-pr2043-20250619163256
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/dist/declarations/src/modules/index.d.ts +195 -1
- package/dist/declarations/src/modules/util/buildStorageCoders.d.ts +1 -1
- package/dist/declarations/src/types/balances.d.ts +206 -5
- package/dist/talismn-balances.cjs.dev.js +2 -2
- package/dist/talismn-balances.cjs.prod.js +2 -2
- package/dist/talismn-balances.esm.js +3 -3
- package/package.json +8 -8
@@ -1,4 +1,198 @@
|
|
1
|
-
export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-erc20",
|
1
|
+
export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-erc20", {
|
2
|
+
id: string;
|
3
|
+
decimals: number;
|
4
|
+
symbol: string;
|
5
|
+
name: string;
|
6
|
+
networkId: string;
|
7
|
+
type: "evm-erc20";
|
8
|
+
platform: "ethereum";
|
9
|
+
contractAddress: `0x${string}`;
|
10
|
+
isDefault?: boolean | undefined;
|
11
|
+
logo?: string | undefined;
|
12
|
+
coingeckoId?: string | undefined;
|
13
|
+
noDiscovery?: boolean | undefined;
|
14
|
+
mirrorOf?: string | undefined;
|
15
|
+
isCustom?: boolean | undefined;
|
16
|
+
} | {
|
17
|
+
id: string;
|
18
|
+
decimals: number;
|
19
|
+
symbol: string;
|
20
|
+
name: string;
|
21
|
+
networkId: string;
|
22
|
+
type: "evm-erc20";
|
23
|
+
platform: "ethereum";
|
24
|
+
contractAddress: `0x${string}`;
|
25
|
+
isCustom: true;
|
26
|
+
isDefault?: boolean | undefined;
|
27
|
+
logo?: string | undefined;
|
28
|
+
coingeckoId?: string | undefined;
|
29
|
+
noDiscovery?: boolean | undefined;
|
30
|
+
mirrorOf?: string | undefined;
|
31
|
+
}, import("..").DefaultChainMeta, import("./EvmErc20Module").EvmErc20ModuleConfig> | import("..").NewBalanceModule<"evm-native", {
|
32
|
+
id: string;
|
33
|
+
decimals: number;
|
34
|
+
symbol: string;
|
35
|
+
name: string;
|
36
|
+
networkId: string;
|
37
|
+
type: "evm-native";
|
38
|
+
platform: "ethereum";
|
39
|
+
isDefault?: boolean | undefined;
|
40
|
+
logo?: string | undefined;
|
41
|
+
coingeckoId?: string | undefined;
|
42
|
+
noDiscovery?: boolean | undefined;
|
43
|
+
mirrorOf?: string | undefined;
|
44
|
+
} | {
|
45
|
+
id: string;
|
46
|
+
decimals: number;
|
47
|
+
symbol: string;
|
48
|
+
name: string;
|
49
|
+
networkId: string;
|
50
|
+
type: "evm-native";
|
51
|
+
platform: "ethereum";
|
52
|
+
isCustom: true;
|
53
|
+
isDefault?: boolean | undefined;
|
54
|
+
logo?: string | undefined;
|
55
|
+
coingeckoId?: string | undefined;
|
56
|
+
noDiscovery?: boolean | undefined;
|
57
|
+
mirrorOf?: string | undefined;
|
58
|
+
}, import("..").DefaultChainMeta, import("@talismn/chaindata-provider").BalancesConfigTokenParams> | import("..").NewBalanceModule<"evm-uniswapv2", {
|
59
|
+
id: string;
|
60
|
+
decimals: number;
|
61
|
+
symbol: string;
|
62
|
+
name: string;
|
63
|
+
networkId: string;
|
64
|
+
type: "evm-uniswapv2";
|
65
|
+
platform: "ethereum";
|
66
|
+
contractAddress: `0x${string}`;
|
67
|
+
symbol0: string;
|
68
|
+
symbol1: string;
|
69
|
+
decimals0: number;
|
70
|
+
decimals1: number;
|
71
|
+
tokenAddress0: `0x${string}`;
|
72
|
+
tokenAddress1: `0x${string}`;
|
73
|
+
isDefault?: boolean | undefined;
|
74
|
+
logo?: string | undefined;
|
75
|
+
coingeckoId?: string | undefined;
|
76
|
+
noDiscovery?: boolean | undefined;
|
77
|
+
mirrorOf?: string | undefined;
|
78
|
+
isCustom?: boolean | undefined;
|
79
|
+
coingeckoId0?: string | undefined;
|
80
|
+
coingeckoId1?: string | undefined;
|
81
|
+
} | {
|
82
|
+
id: string;
|
83
|
+
decimals: number;
|
84
|
+
symbol: string;
|
85
|
+
name: string;
|
86
|
+
networkId: string;
|
87
|
+
type: "evm-uniswapv2";
|
88
|
+
platform: "ethereum";
|
89
|
+
contractAddress: `0x${string}`;
|
90
|
+
symbol0: string;
|
91
|
+
symbol1: string;
|
92
|
+
decimals0: number;
|
93
|
+
decimals1: number;
|
94
|
+
tokenAddress0: `0x${string}`;
|
95
|
+
tokenAddress1: `0x${string}`;
|
96
|
+
isCustom: true;
|
97
|
+
isDefault?: boolean | undefined;
|
98
|
+
logo?: string | undefined;
|
99
|
+
coingeckoId?: string | undefined;
|
100
|
+
noDiscovery?: boolean | undefined;
|
101
|
+
mirrorOf?: string | undefined;
|
102
|
+
coingeckoId0?: string | undefined;
|
103
|
+
coingeckoId1?: string | undefined;
|
104
|
+
}, import("..").DefaultChainMeta, import("./EvmUniswapV2Module").EvmUniswapV2ModuleConfig> | import("..").NewBalanceModule<"substrate-assets", {
|
105
|
+
id: string;
|
106
|
+
decimals: number;
|
107
|
+
symbol: string;
|
108
|
+
name: string;
|
109
|
+
networkId: string;
|
110
|
+
type: "substrate-assets";
|
111
|
+
platform: "polkadot";
|
112
|
+
assetId: string;
|
113
|
+
existentialDeposit: string;
|
114
|
+
isDefault?: boolean | undefined;
|
115
|
+
logo?: string | undefined;
|
116
|
+
coingeckoId?: string | undefined;
|
117
|
+
noDiscovery?: boolean | undefined;
|
118
|
+
mirrorOf?: string | undefined;
|
119
|
+
isFrozen?: boolean | undefined;
|
120
|
+
}, import("./SubstrateAssetsModule").SubAssetsChainMeta, import("./SubstrateAssetsModule").SubAssetsModuleConfig, import("./SubstrateAssetsModule").SubAssetsTransferParams> | import("..").NewBalanceModule<"substrate-foreignassets", {
|
121
|
+
id: string;
|
122
|
+
decimals: number;
|
123
|
+
symbol: string;
|
124
|
+
name: string;
|
125
|
+
networkId: string;
|
126
|
+
type: "substrate-foreignassets";
|
127
|
+
platform: "polkadot";
|
128
|
+
onChainId: string;
|
129
|
+
existentialDeposit: string;
|
130
|
+
isDefault?: boolean | undefined;
|
131
|
+
logo?: string | undefined;
|
132
|
+
coingeckoId?: string | undefined;
|
133
|
+
noDiscovery?: boolean | undefined;
|
134
|
+
mirrorOf?: string | undefined;
|
135
|
+
isFrozen?: boolean | undefined;
|
136
|
+
}, import("..").DefaultChainMeta, import("./SubstrateForeignAssetsModule").SubForeignAssetsModuleConfig, import("./SubstrateForeignAssetsModule").SubForeignAssetsTransferParams> | import("..").NewBalanceModule<"substrate-native", {
|
137
|
+
id: string;
|
138
|
+
decimals: number;
|
139
|
+
symbol: string;
|
140
|
+
name: string;
|
141
|
+
networkId: string;
|
142
|
+
type: "substrate-native";
|
143
|
+
platform: "polkadot";
|
144
|
+
existentialDeposit: string;
|
145
|
+
isDefault?: boolean | undefined;
|
146
|
+
logo?: string | undefined;
|
147
|
+
coingeckoId?: string | undefined;
|
148
|
+
noDiscovery?: boolean | undefined;
|
149
|
+
mirrorOf?: string | undefined;
|
150
|
+
} | {
|
151
|
+
id: string;
|
152
|
+
decimals: number;
|
153
|
+
symbol: string;
|
154
|
+
name: string;
|
155
|
+
networkId: string;
|
156
|
+
type: "substrate-native";
|
157
|
+
platform: "polkadot";
|
158
|
+
existentialDeposit: string;
|
159
|
+
isCustom: true;
|
160
|
+
isDefault?: boolean | undefined;
|
161
|
+
logo?: string | undefined;
|
162
|
+
coingeckoId?: string | undefined;
|
163
|
+
noDiscovery?: boolean | undefined;
|
164
|
+
mirrorOf?: string | undefined;
|
165
|
+
}, import("./SubstrateNativeModule").SubNativeChainMeta, import("./SubstrateNativeModule").SubNativeModuleConfig, import("./SubstrateNativeModule").SubNativeTransferParams> | import("..").NewBalanceModule<"substrate-psp22", {
|
166
|
+
id: string;
|
167
|
+
decimals: number;
|
168
|
+
symbol: string;
|
169
|
+
name: string;
|
170
|
+
networkId: string;
|
171
|
+
type: "substrate-psp22";
|
172
|
+
platform: "polkadot";
|
173
|
+
existentialDeposit: string;
|
174
|
+
contractAddress: string;
|
175
|
+
isDefault?: boolean | undefined;
|
176
|
+
logo?: string | undefined;
|
177
|
+
coingeckoId?: string | undefined;
|
178
|
+
noDiscovery?: boolean | undefined;
|
179
|
+
mirrorOf?: string | undefined;
|
180
|
+
}, import("..").DefaultChainMeta, import("./SubstratePsp22Module").SubPsp22ModuleConfig, import("./SubstratePsp22Module").SubPsp22TransferParams> | import("..").NewBalanceModule<"substrate-tokens", {
|
181
|
+
id: string;
|
182
|
+
decimals: number;
|
183
|
+
symbol: string;
|
184
|
+
name: string;
|
185
|
+
networkId: string;
|
186
|
+
type: "substrate-tokens";
|
187
|
+
platform: "polkadot";
|
188
|
+
onChainId: string | number;
|
189
|
+
existentialDeposit: string;
|
190
|
+
isDefault?: boolean | undefined;
|
191
|
+
logo?: string | undefined;
|
192
|
+
coingeckoId?: string | undefined;
|
193
|
+
noDiscovery?: boolean | undefined;
|
194
|
+
mirrorOf?: string | undefined;
|
195
|
+
}, import("./SubstrateTokensModule").SubTokensChainMeta, import("./SubstrateTokensModule").SubTokensModuleConfig, import("./SubstrateTokensModule").SubTokensTransferParams>)[];
|
2
196
|
export * from "./EvmErc20Module";
|
3
197
|
export * from "./EvmNativeModule";
|
4
198
|
export * from "./EvmUniswapV2Module";
|
@@ -16,7 +16,7 @@ export declare const buildStorageCoders: <TBalanceModule extends AnyNewBalanceMo
|
|
16
16
|
chains: Record<NetworkId, DotNetwork>;
|
17
17
|
miniMetadatas: Map<DotNetworkId, MiniMetadata<TBalanceModule>>;
|
18
18
|
coders: TCoders;
|
19
|
-
}) => Map<
|
19
|
+
}) => Map<string, { [Property in keyof TCoders]: {
|
20
20
|
args: [import("scale-ts").Encoder<any[]>, import("scale-ts").Decoder<any[]>] & {
|
21
21
|
enc: import("scale-ts").Encoder<any[]>;
|
22
22
|
dec: import("scale-ts").Decoder<any[]>;
|
@@ -127,11 +127,212 @@ export declare class Balance {
|
|
127
127
|
get source(): "evm-erc20" | "evm-native" | "evm-uniswapv2" | "substrate-assets" | "substrate-foreignassets" | "substrate-native" | "substrate-psp22" | "substrate-tokens";
|
128
128
|
get status(): import("./balancetypes").BalanceStatus;
|
129
129
|
get address(): string;
|
130
|
-
get networkId():
|
131
|
-
get network():
|
132
|
-
|
133
|
-
|
134
|
-
|
130
|
+
get networkId(): string;
|
131
|
+
get network(): {
|
132
|
+
id: string;
|
133
|
+
name: string;
|
134
|
+
nativeTokenId: string;
|
135
|
+
nativeCurrency: {
|
136
|
+
decimals: number;
|
137
|
+
symbol: string;
|
138
|
+
name: string;
|
139
|
+
coingeckoId?: string | undefined;
|
140
|
+
mirrorOf?: string | undefined;
|
141
|
+
logo?: string | undefined;
|
142
|
+
};
|
143
|
+
blockExplorerUrls: string[];
|
144
|
+
genesisHash: `0x${string}`;
|
145
|
+
platform: "polkadot";
|
146
|
+
chainName: string;
|
147
|
+
specName: string;
|
148
|
+
specVersion: number;
|
149
|
+
account: "*25519" | "secp256k1";
|
150
|
+
prefix: number;
|
151
|
+
rpcs: string[];
|
152
|
+
topology: {
|
153
|
+
type: "standalone";
|
154
|
+
} | {
|
155
|
+
type: "relay";
|
156
|
+
} | {
|
157
|
+
type: "parachain";
|
158
|
+
relayId: string;
|
159
|
+
paraId: number;
|
160
|
+
};
|
161
|
+
isTestnet?: boolean | undefined;
|
162
|
+
isDefault?: boolean | undefined;
|
163
|
+
forceScan?: boolean | undefined;
|
164
|
+
logo?: string | undefined;
|
165
|
+
themeColor?: string | undefined;
|
166
|
+
chainspecQrUrl?: string | undefined;
|
167
|
+
latestMetadataQrUrl?: string | undefined;
|
168
|
+
overrideNativeTokenId?: string | undefined;
|
169
|
+
oldPrefix?: number | undefined;
|
170
|
+
registryTypes?: any;
|
171
|
+
signedExtensions?: any;
|
172
|
+
hasCheckMetadataHash?: boolean | undefined;
|
173
|
+
hasExtrinsicSignatureTypePrefix?: boolean | undefined;
|
174
|
+
isUnknownFeeToken?: boolean | undefined;
|
175
|
+
} | {
|
176
|
+
id: string;
|
177
|
+
name: string;
|
178
|
+
nativeTokenId: string;
|
179
|
+
nativeCurrency: {
|
180
|
+
decimals: number;
|
181
|
+
symbol: string;
|
182
|
+
name: string;
|
183
|
+
coingeckoId?: string | undefined;
|
184
|
+
mirrorOf?: string | undefined;
|
185
|
+
logo?: string | undefined;
|
186
|
+
};
|
187
|
+
blockExplorerUrls: string[];
|
188
|
+
platform: "ethereum";
|
189
|
+
rpcs: string[];
|
190
|
+
isTestnet?: boolean | undefined;
|
191
|
+
isDefault?: boolean | undefined;
|
192
|
+
forceScan?: boolean | undefined;
|
193
|
+
logo?: string | undefined;
|
194
|
+
themeColor?: string | undefined;
|
195
|
+
substrateChainId?: string | undefined;
|
196
|
+
preserveGasEstimate?: boolean | undefined;
|
197
|
+
feeType?: "eip-1559" | "legacy" | undefined;
|
198
|
+
l2FeeType?: {
|
199
|
+
type: "op-stack";
|
200
|
+
} | {
|
201
|
+
type: "scroll";
|
202
|
+
l1GasPriceOracle: `0x${string}`;
|
203
|
+
} | undefined;
|
204
|
+
contracts?: Partial<Record<"Erc20Aggregator" | "Multicall3", `0x${string}`>> | undefined;
|
205
|
+
} | null;
|
206
|
+
get tokenId(): string;
|
207
|
+
get token(): {
|
208
|
+
id: string;
|
209
|
+
decimals: number;
|
210
|
+
symbol: string;
|
211
|
+
name: string;
|
212
|
+
networkId: string;
|
213
|
+
type: "evm-erc20";
|
214
|
+
platform: "ethereum";
|
215
|
+
contractAddress: `0x${string}`;
|
216
|
+
isDefault?: boolean | undefined;
|
217
|
+
logo?: string | undefined;
|
218
|
+
coingeckoId?: string | undefined;
|
219
|
+
noDiscovery?: boolean | undefined;
|
220
|
+
mirrorOf?: string | undefined;
|
221
|
+
isCustom?: boolean | undefined;
|
222
|
+
} | {
|
223
|
+
id: string;
|
224
|
+
decimals: number;
|
225
|
+
symbol: string;
|
226
|
+
name: string;
|
227
|
+
networkId: string;
|
228
|
+
type: "evm-native";
|
229
|
+
platform: "ethereum";
|
230
|
+
isDefault?: boolean | undefined;
|
231
|
+
logo?: string | undefined;
|
232
|
+
coingeckoId?: string | undefined;
|
233
|
+
noDiscovery?: boolean | undefined;
|
234
|
+
mirrorOf?: string | undefined;
|
235
|
+
} | {
|
236
|
+
id: string;
|
237
|
+
decimals: number;
|
238
|
+
symbol: string;
|
239
|
+
name: string;
|
240
|
+
networkId: string;
|
241
|
+
type: "evm-uniswapv2";
|
242
|
+
platform: "ethereum";
|
243
|
+
contractAddress: `0x${string}`;
|
244
|
+
symbol0: string;
|
245
|
+
symbol1: string;
|
246
|
+
decimals0: number;
|
247
|
+
decimals1: number;
|
248
|
+
tokenAddress0: `0x${string}`;
|
249
|
+
tokenAddress1: `0x${string}`;
|
250
|
+
isDefault?: boolean | undefined;
|
251
|
+
logo?: string | undefined;
|
252
|
+
coingeckoId?: string | undefined;
|
253
|
+
noDiscovery?: boolean | undefined;
|
254
|
+
mirrorOf?: string | undefined;
|
255
|
+
isCustom?: boolean | undefined;
|
256
|
+
coingeckoId0?: string | undefined;
|
257
|
+
coingeckoId1?: string | undefined;
|
258
|
+
} | {
|
259
|
+
id: string;
|
260
|
+
decimals: number;
|
261
|
+
symbol: string;
|
262
|
+
name: string;
|
263
|
+
networkId: string;
|
264
|
+
type: "substrate-assets";
|
265
|
+
platform: "polkadot";
|
266
|
+
assetId: string;
|
267
|
+
existentialDeposit: string;
|
268
|
+
isDefault?: boolean | undefined;
|
269
|
+
logo?: string | undefined;
|
270
|
+
coingeckoId?: string | undefined;
|
271
|
+
noDiscovery?: boolean | undefined;
|
272
|
+
mirrorOf?: string | undefined;
|
273
|
+
isFrozen?: boolean | undefined;
|
274
|
+
} | {
|
275
|
+
id: string;
|
276
|
+
decimals: number;
|
277
|
+
symbol: string;
|
278
|
+
name: string;
|
279
|
+
networkId: string;
|
280
|
+
type: "substrate-foreignassets";
|
281
|
+
platform: "polkadot";
|
282
|
+
onChainId: string;
|
283
|
+
existentialDeposit: string;
|
284
|
+
isDefault?: boolean | undefined;
|
285
|
+
logo?: string | undefined;
|
286
|
+
coingeckoId?: string | undefined;
|
287
|
+
noDiscovery?: boolean | undefined;
|
288
|
+
mirrorOf?: string | undefined;
|
289
|
+
isFrozen?: boolean | undefined;
|
290
|
+
} | {
|
291
|
+
id: string;
|
292
|
+
decimals: number;
|
293
|
+
symbol: string;
|
294
|
+
name: string;
|
295
|
+
networkId: string;
|
296
|
+
type: "substrate-native";
|
297
|
+
platform: "polkadot";
|
298
|
+
existentialDeposit: string;
|
299
|
+
isDefault?: boolean | undefined;
|
300
|
+
logo?: string | undefined;
|
301
|
+
coingeckoId?: string | undefined;
|
302
|
+
noDiscovery?: boolean | undefined;
|
303
|
+
mirrorOf?: string | undefined;
|
304
|
+
} | {
|
305
|
+
id: string;
|
306
|
+
decimals: number;
|
307
|
+
symbol: string;
|
308
|
+
name: string;
|
309
|
+
networkId: string;
|
310
|
+
type: "substrate-psp22";
|
311
|
+
platform: "polkadot";
|
312
|
+
existentialDeposit: string;
|
313
|
+
contractAddress: string;
|
314
|
+
isDefault?: boolean | undefined;
|
315
|
+
logo?: string | undefined;
|
316
|
+
coingeckoId?: string | undefined;
|
317
|
+
noDiscovery?: boolean | undefined;
|
318
|
+
mirrorOf?: string | undefined;
|
319
|
+
} | {
|
320
|
+
id: string;
|
321
|
+
decimals: number;
|
322
|
+
symbol: string;
|
323
|
+
name: string;
|
324
|
+
networkId: string;
|
325
|
+
type: "substrate-tokens";
|
326
|
+
platform: "polkadot";
|
327
|
+
onChainId: string | number;
|
328
|
+
existentialDeposit: string;
|
329
|
+
isDefault?: boolean | undefined;
|
330
|
+
logo?: string | undefined;
|
331
|
+
coingeckoId?: string | undefined;
|
332
|
+
noDiscovery?: boolean | undefined;
|
333
|
+
mirrorOf?: string | undefined;
|
334
|
+
} | null;
|
335
|
+
get decimals(): number | null;
|
135
336
|
get rates(): TokenRates | null;
|
136
337
|
/**
|
137
338
|
* A general method to get formatted values matching a certain type from this balance.
|
@@ -128,7 +128,7 @@ class EvmTokenFetcher {
|
|
128
128
|
|
129
129
|
var pkg = {
|
130
130
|
name: "@talismn/balances",
|
131
|
-
version: "0.0.0-pr2043-
|
131
|
+
version: "0.0.0-pr2043-20250619163256"};
|
132
132
|
|
133
133
|
var log = anylogger__default.default(pkg.name);
|
134
134
|
|
@@ -2432,7 +2432,7 @@ const EvmUniswapV2Module = hydrate => {
|
|
2432
2432
|
symbol: `${symbol0 ?? "UNKNOWN"}/${symbol1 ?? "UNKNOWN"}`,
|
2433
2433
|
name: name ?? `${symbol0 ?? "UNKNOWN"}/${symbol1 ?? "UNKNOWN"}`,
|
2434
2434
|
decimals,
|
2435
|
-
logo: tokenConfig?.logo || chaindataProvider.
|
2435
|
+
logo: tokenConfig?.logo || chaindataProvider.getGithubTokenLogoUrl("uniswap"),
|
2436
2436
|
symbol0,
|
2437
2437
|
decimals0,
|
2438
2438
|
symbol1,
|
@@ -128,7 +128,7 @@ class EvmTokenFetcher {
|
|
128
128
|
|
129
129
|
var pkg = {
|
130
130
|
name: "@talismn/balances",
|
131
|
-
version: "0.0.0-pr2043-
|
131
|
+
version: "0.0.0-pr2043-20250619163256"};
|
132
132
|
|
133
133
|
var log = anylogger__default.default(pkg.name);
|
134
134
|
|
@@ -2432,7 +2432,7 @@ const EvmUniswapV2Module = hydrate => {
|
|
2432
2432
|
symbol: `${symbol0 ?? "UNKNOWN"}/${symbol1 ?? "UNKNOWN"}`,
|
2433
2433
|
name: name ?? `${symbol0 ?? "UNKNOWN"}/${symbol1 ?? "UNKNOWN"}`,
|
2434
2434
|
decimals,
|
2435
|
-
logo: tokenConfig?.logo || chaindataProvider.
|
2435
|
+
logo: tokenConfig?.logo || chaindataProvider.getGithubTokenLogoUrl("uniswap"),
|
2436
2436
|
symbol0,
|
2437
2437
|
decimals0,
|
2438
2438
|
symbol1,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dexie } from 'dexie';
|
2
2
|
import anylogger from 'anylogger';
|
3
|
-
import { evmErc20TokenId, EvmErc20TokenSchema, networkIdFromTokenId, evmNativeTokenId, evmUniswapV2TokenId,
|
3
|
+
import { evmErc20TokenId, EvmErc20TokenSchema, networkIdFromTokenId, evmNativeTokenId, evmUniswapV2TokenId, getGithubTokenLogoUrl, parseSubAssetTokenId, subAssetTokenId, parseSubForeignAssetTokenId, subForeignAssetTokenId, parseTokenId, subNativeTokenId, subPsp22TokenId, parseSubTokensTokenId, subTokensTokenId } from '@talismn/chaindata-provider';
|
4
4
|
import { newTokenRates } from '@talismn/token-rates';
|
5
5
|
import { isBigInt, BigMath, planckToTokens, isArrayOf, isTruthy, isEthereumAddress, hasOwnProperty, decodeAnyAddress, isNotNil, blake2Concat, Deferred } from '@talismn/util';
|
6
6
|
import BigNumber from 'bignumber.js';
|
@@ -113,7 +113,7 @@ class EvmTokenFetcher {
|
|
113
113
|
|
114
114
|
var pkg = {
|
115
115
|
name: "@talismn/balances",
|
116
|
-
version: "0.0.0-pr2043-
|
116
|
+
version: "0.0.0-pr2043-20250619163256"};
|
117
117
|
|
118
118
|
var log = anylogger(pkg.name);
|
119
119
|
|
@@ -2417,7 +2417,7 @@ const EvmUniswapV2Module = hydrate => {
|
|
2417
2417
|
symbol: `${symbol0 ?? "UNKNOWN"}/${symbol1 ?? "UNKNOWN"}`,
|
2418
2418
|
name: name ?? `${symbol0 ?? "UNKNOWN"}/${symbol1 ?? "UNKNOWN"}`,
|
2419
2419
|
decimals,
|
2420
|
-
logo: tokenConfig?.logo ||
|
2420
|
+
logo: tokenConfig?.logo || getGithubTokenLogoUrl("uniswap"),
|
2421
2421
|
symbol0,
|
2422
2422
|
decimals0,
|
2423
2423
|
symbol1,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@talismn/balances",
|
3
|
-
"version": "0.0.0-pr2043-
|
3
|
+
"version": "0.0.0-pr2043-20250619163256",
|
4
4
|
"author": "Talisman",
|
5
5
|
"homepage": "https://talisman.xyz",
|
6
6
|
"license": "GPL-3.0-or-later",
|
@@ -35,13 +35,13 @@
|
|
35
35
|
"scale-ts": "^1.6.1",
|
36
36
|
"viem": "^2.27.3",
|
37
37
|
"zod": "^3.25.62",
|
38
|
-
"@talismn/chain-connector": "0.0.0-pr2043-
|
39
|
-
"@talismn/
|
40
|
-
"@talismn/
|
41
|
-
"@talismn/sapi": "0.0.0-pr2043-
|
38
|
+
"@talismn/chain-connector": "0.0.0-pr2043-20250619163256",
|
39
|
+
"@talismn/chaindata-provider": "0.0.0-pr2043-20250619163256",
|
40
|
+
"@talismn/chain-connector-evm": "0.0.0-pr2043-20250619163256",
|
41
|
+
"@talismn/sapi": "0.0.0-pr2043-20250619163256",
|
42
42
|
"@talismn/scale": "0.1.2",
|
43
43
|
"@talismn/util": "0.4.2",
|
44
|
-
"@talismn/token-rates": "0.0.0-pr2043-
|
44
|
+
"@talismn/token-rates": "0.0.0-pr2043-20250619163256"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@polkadot/api-contract": "16.1.2",
|
@@ -56,8 +56,8 @@
|
|
56
56
|
"jest": "^29.7.0",
|
57
57
|
"ts-jest": "^29.2.5",
|
58
58
|
"typescript": "^5.6.3",
|
59
|
-
"@talismn/
|
60
|
-
"@talismn/
|
59
|
+
"@talismn/tsconfig": "0.0.2",
|
60
|
+
"@talismn/eslint-config": "0.0.3"
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|
63
63
|
"@polkadot/api-contract": "*",
|