@talismn/balances 0.0.0-pr2043-20250620085110 → 0.0.0-pr2043-20250620112438
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/EvmErc20Module.d.ts +2 -2
- package/dist/declarations/src/modules/EvmNativeModule.d.ts +2 -2
- package/dist/declarations/src/modules/EvmUniswapV2Module.d.ts +2 -2
- package/dist/declarations/src/modules/SubstrateAssetsModule.d.ts +2 -2
- package/dist/declarations/src/modules/SubstrateForeignAssetsModule.d.ts +2 -2
- package/dist/declarations/src/modules/SubstrateNativeModule/index.d.ts +2 -2
- package/dist/declarations/src/modules/SubstratePsp22Module.d.ts +2 -2
- package/dist/declarations/src/modules/SubstrateTokensModule.d.ts +2 -2
- package/dist/declarations/src/modules/index.d.ts +32 -32
- package/dist/declarations/src/types/balances.d.ts +16 -16
- package/dist/declarations/src/types/tokens.d.ts +2 -2
- package/dist/talismn-balances.cjs.dev.js +1 -1
- package/dist/talismn-balances.cjs.prod.js +1 -1
- package/dist/talismn-balances.esm.js +1 -1
- package/package.json +7 -7
@@ -10,12 +10,12 @@ export type EvmErc20ChainMeta = DefaultChainMeta;
|
|
10
10
|
export type EvmErc20ModuleConfig = DefaultModuleConfig;
|
11
11
|
export declare const EvmErc20TokenConfigSchema: z.ZodObject<{
|
12
12
|
symbol: z.ZodOptional<z.ZodString>;
|
13
|
+
networkId: z.ZodOptional<z.ZodString>;
|
13
14
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
14
15
|
decimals: z.ZodOptional<z.ZodInt>;
|
15
|
-
name: z.ZodOptional<z.ZodString
|
16
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
16
17
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
17
18
|
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
18
|
-
networkId: z.ZodOptional<z.ZodString>;
|
19
19
|
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
20
20
|
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
21
21
|
contractAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
@@ -8,12 +8,12 @@ export type EvmNativeModuleConfig = DefaultModuleConfig;
|
|
8
8
|
export type EvmNativeBalance = NewBalanceType<ModuleType, "simple">;
|
9
9
|
export declare const EvmNativeTokenConfigSchema: z.ZodObject<{
|
10
10
|
symbol: z.ZodOptional<z.ZodString>;
|
11
|
+
networkId: z.ZodOptional<z.ZodString>;
|
11
12
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
12
13
|
decimals: z.ZodOptional<z.ZodInt>;
|
13
|
-
name: z.ZodOptional<z.ZodString
|
14
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
14
15
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
15
16
|
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
16
|
-
networkId: z.ZodOptional<z.ZodString>;
|
17
17
|
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
18
18
|
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
19
19
|
}, z.core.$strict>;
|
@@ -8,12 +8,12 @@ type ModuleType = "evm-uniswapv2";
|
|
8
8
|
export type EvmUniswapV2ChainMeta = DefaultChainMeta;
|
9
9
|
export declare const EvmUniswapV2TokenConfigSchema: z.ZodObject<{
|
10
10
|
symbol: z.ZodOptional<z.ZodString>;
|
11
|
+
networkId: z.ZodOptional<z.ZodString>;
|
11
12
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
12
13
|
decimals: z.ZodOptional<z.ZodInt>;
|
13
|
-
name: z.ZodOptional<z.ZodString
|
14
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
14
15
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
15
16
|
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
16
|
-
networkId: z.ZodOptional<z.ZodString>;
|
17
17
|
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
18
18
|
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
19
19
|
contractAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
@@ -8,12 +8,12 @@ type ModuleType = "substrate-assets";
|
|
8
8
|
export type SubAssetsChainMeta = ChainMeta<null>;
|
9
9
|
export declare const SubAssetsTokenConfigSchema: z.ZodObject<{
|
10
10
|
symbol: z.ZodOptional<z.ZodString>;
|
11
|
+
networkId: z.ZodOptional<z.ZodString>;
|
11
12
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
12
13
|
decimals: z.ZodOptional<z.ZodInt>;
|
13
|
-
name: z.ZodOptional<z.ZodString
|
14
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
14
15
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
15
16
|
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
16
|
-
networkId: z.ZodOptional<z.ZodString>;
|
17
17
|
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
18
18
|
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
19
19
|
assetId: z.ZodPipe<z.ZodUnion<readonly [z.ZodUInt32, z.ZodString]>, z.ZodTransform<string, string | number>>;
|
@@ -8,12 +8,12 @@ type ModuleType = "substrate-foreignassets";
|
|
8
8
|
export type SubForeignAssetsChainMeta = DefaultChainMeta;
|
9
9
|
export declare const SubForeignAssetsTokenConfigSchema: z.ZodObject<{
|
10
10
|
symbol: z.ZodOptional<z.ZodString>;
|
11
|
+
networkId: z.ZodOptional<z.ZodString>;
|
11
12
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
12
13
|
decimals: z.ZodOptional<z.ZodInt>;
|
13
|
-
name: z.ZodOptional<z.ZodString
|
14
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
14
15
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
15
16
|
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
16
|
-
networkId: z.ZodOptional<z.ZodString>;
|
17
17
|
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
18
18
|
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
19
19
|
onChainId: z.ZodString;
|
@@ -8,12 +8,12 @@ export type { ModuleType, SubNativeBalance, SubNativeChainMeta, SubNativeModuleC
|
|
8
8
|
export * from "./util/subtensor";
|
9
9
|
export declare const SubNativeTokenConfigSchema: z.ZodObject<{
|
10
10
|
symbol: z.ZodOptional<z.ZodString>;
|
11
|
+
networkId: z.ZodOptional<z.ZodString>;
|
11
12
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
12
13
|
decimals: z.ZodOptional<z.ZodInt>;
|
13
|
-
name: z.ZodOptional<z.ZodString
|
14
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
14
15
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
15
16
|
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
16
|
-
networkId: z.ZodOptional<z.ZodString>;
|
17
17
|
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
18
18
|
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
19
19
|
}, z.core.$strict>;
|
@@ -7,12 +7,12 @@ import { NewBalanceType } from "../types";
|
|
7
7
|
type ModuleType = "substrate-psp22";
|
8
8
|
export declare const SubPsp22TokenConfigSchema: z.ZodObject<{
|
9
9
|
symbol: z.ZodOptional<z.ZodString>;
|
10
|
+
networkId: z.ZodOptional<z.ZodString>;
|
10
11
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
11
12
|
decimals: z.ZodOptional<z.ZodInt>;
|
12
|
-
name: z.ZodOptional<z.ZodString
|
13
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
13
14
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
14
15
|
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
15
|
-
networkId: z.ZodOptional<z.ZodString>;
|
16
16
|
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
17
17
|
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
18
18
|
contractAddress: z.ZodString;
|
@@ -7,12 +7,12 @@ import { NewBalanceType } from "../types";
|
|
7
7
|
type ModuleType = "substrate-tokens";
|
8
8
|
export declare const SubTokensTokenConfigSchema: z.ZodObject<{
|
9
9
|
symbol: z.ZodOptional<z.ZodString>;
|
10
|
+
networkId: z.ZodOptional<z.ZodString>;
|
10
11
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
11
12
|
decimals: z.ZodOptional<z.ZodInt>;
|
12
|
-
name: z.ZodOptional<z.ZodString
|
13
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
13
14
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
14
15
|
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
15
|
-
networkId: z.ZodOptional<z.ZodString>;
|
16
16
|
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
17
17
|
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
18
18
|
onChainId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
@@ -1,13 +1,13 @@
|
|
1
1
|
export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-erc20", {
|
2
2
|
id: string;
|
3
|
+
networkId: string;
|
3
4
|
decimals: number;
|
4
5
|
symbol: string;
|
5
|
-
name: string;
|
6
|
-
networkId: string;
|
7
6
|
type: "evm-erc20";
|
8
7
|
platform: "ethereum";
|
9
8
|
contractAddress: `0x${string}`;
|
10
9
|
isDefault?: boolean | undefined;
|
10
|
+
name?: string | undefined;
|
11
11
|
logo?: string | undefined;
|
12
12
|
coingeckoId?: string | undefined;
|
13
13
|
noDiscovery?: boolean | undefined;
|
@@ -15,15 +15,15 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
15
15
|
isCustom?: boolean | undefined;
|
16
16
|
} | {
|
17
17
|
id: string;
|
18
|
+
networkId: string;
|
18
19
|
decimals: number;
|
19
20
|
symbol: string;
|
20
|
-
name: string;
|
21
|
-
networkId: string;
|
22
21
|
type: "evm-erc20";
|
23
22
|
platform: "ethereum";
|
24
23
|
contractAddress: `0x${string}`;
|
25
24
|
isCustom: true;
|
26
25
|
isDefault?: boolean | undefined;
|
26
|
+
name?: string | undefined;
|
27
27
|
logo?: string | undefined;
|
28
28
|
coingeckoId?: string | undefined;
|
29
29
|
noDiscovery?: boolean | undefined;
|
@@ -31,57 +31,56 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
31
31
|
}, import("..").DefaultChainMeta, undefined, {
|
32
32
|
contractAddress: `0x${string}`;
|
33
33
|
symbol?: string | undefined;
|
34
|
+
networkId?: string | undefined;
|
34
35
|
isDefault?: boolean | undefined;
|
35
36
|
decimals?: number | undefined;
|
36
37
|
name?: string | undefined;
|
37
38
|
logo?: string | undefined;
|
38
39
|
coingeckoId?: string | undefined;
|
39
|
-
networkId?: string | undefined;
|
40
40
|
noDiscovery?: boolean | undefined;
|
41
41
|
mirrorOf?: string | undefined;
|
42
42
|
}> | import("..").NewBalanceModule<"evm-native", {
|
43
43
|
id: string;
|
44
|
+
networkId: string;
|
44
45
|
decimals: number;
|
45
46
|
symbol: string;
|
46
|
-
name: string;
|
47
|
-
networkId: string;
|
48
47
|
type: "evm-native";
|
49
48
|
platform: "ethereum";
|
50
49
|
isDefault?: boolean | undefined;
|
50
|
+
name?: string | undefined;
|
51
51
|
logo?: string | undefined;
|
52
52
|
coingeckoId?: string | undefined;
|
53
53
|
noDiscovery?: boolean | undefined;
|
54
54
|
mirrorOf?: string | undefined;
|
55
55
|
} | {
|
56
56
|
id: string;
|
57
|
+
networkId: string;
|
57
58
|
decimals: number;
|
58
59
|
symbol: string;
|
59
|
-
name: string;
|
60
|
-
networkId: string;
|
61
60
|
type: "evm-native";
|
62
61
|
platform: "ethereum";
|
63
62
|
isCustom: true;
|
64
63
|
isDefault?: boolean | undefined;
|
64
|
+
name?: string | undefined;
|
65
65
|
logo?: string | undefined;
|
66
66
|
coingeckoId?: string | undefined;
|
67
67
|
noDiscovery?: boolean | undefined;
|
68
68
|
mirrorOf?: string | undefined;
|
69
69
|
}, import("..").DefaultChainMeta, undefined, {
|
70
70
|
symbol?: string | undefined;
|
71
|
+
networkId?: string | undefined;
|
71
72
|
isDefault?: boolean | undefined;
|
72
73
|
decimals?: number | undefined;
|
73
74
|
name?: string | undefined;
|
74
75
|
logo?: string | undefined;
|
75
76
|
coingeckoId?: string | undefined;
|
76
|
-
networkId?: string | undefined;
|
77
77
|
noDiscovery?: boolean | undefined;
|
78
78
|
mirrorOf?: string | undefined;
|
79
79
|
}> | import("..").NewBalanceModule<"evm-uniswapv2", {
|
80
80
|
id: string;
|
81
|
+
networkId: string;
|
81
82
|
decimals: number;
|
82
83
|
symbol: string;
|
83
|
-
name: string;
|
84
|
-
networkId: string;
|
85
84
|
type: "evm-uniswapv2";
|
86
85
|
platform: "ethereum";
|
87
86
|
contractAddress: `0x${string}`;
|
@@ -92,6 +91,7 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
92
91
|
tokenAddress0: `0x${string}`;
|
93
92
|
tokenAddress1: `0x${string}`;
|
94
93
|
isDefault?: boolean | undefined;
|
94
|
+
name?: string | undefined;
|
95
95
|
logo?: string | undefined;
|
96
96
|
coingeckoId?: string | undefined;
|
97
97
|
noDiscovery?: boolean | undefined;
|
@@ -101,10 +101,9 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
101
101
|
coingeckoId1?: string | undefined;
|
102
102
|
} | {
|
103
103
|
id: string;
|
104
|
+
networkId: string;
|
104
105
|
decimals: number;
|
105
106
|
symbol: string;
|
106
|
-
name: string;
|
107
|
-
networkId: string;
|
108
107
|
type: "evm-uniswapv2";
|
109
108
|
platform: "ethereum";
|
110
109
|
contractAddress: `0x${string}`;
|
@@ -116,6 +115,7 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
116
115
|
tokenAddress1: `0x${string}`;
|
117
116
|
isCustom: true;
|
118
117
|
isDefault?: boolean | undefined;
|
118
|
+
name?: string | undefined;
|
119
119
|
logo?: string | undefined;
|
120
120
|
coingeckoId?: string | undefined;
|
121
121
|
noDiscovery?: boolean | undefined;
|
@@ -125,12 +125,12 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
125
125
|
}, import("..").DefaultChainMeta, undefined, {
|
126
126
|
contractAddress: `0x${string}`;
|
127
127
|
symbol?: string | undefined;
|
128
|
+
networkId?: string | undefined;
|
128
129
|
isDefault?: boolean | undefined;
|
129
130
|
decimals?: number | undefined;
|
130
131
|
name?: string | undefined;
|
131
132
|
logo?: string | undefined;
|
132
133
|
coingeckoId?: string | undefined;
|
133
|
-
networkId?: string | undefined;
|
134
134
|
noDiscovery?: boolean | undefined;
|
135
135
|
mirrorOf?: string | undefined;
|
136
136
|
symbol0?: string | undefined;
|
@@ -143,15 +143,15 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
143
143
|
coingeckoId1?: string | undefined;
|
144
144
|
}> | import("..").NewBalanceModule<"substrate-assets", {
|
145
145
|
id: string;
|
146
|
+
networkId: string;
|
146
147
|
decimals: number;
|
147
148
|
symbol: string;
|
148
|
-
name: string;
|
149
|
-
networkId: string;
|
150
149
|
type: "substrate-assets";
|
151
150
|
platform: "polkadot";
|
152
151
|
assetId: string;
|
153
152
|
existentialDeposit: string;
|
154
153
|
isDefault?: boolean | undefined;
|
154
|
+
name?: string | undefined;
|
155
155
|
logo?: string | undefined;
|
156
156
|
coingeckoId?: string | undefined;
|
157
157
|
noDiscovery?: boolean | undefined;
|
@@ -160,26 +160,26 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
160
160
|
}, import("./SubstrateAssetsModule").SubAssetsChainMeta, undefined, {
|
161
161
|
assetId: string;
|
162
162
|
symbol?: string | undefined;
|
163
|
+
networkId?: string | undefined;
|
163
164
|
isDefault?: boolean | undefined;
|
164
165
|
decimals?: number | undefined;
|
165
166
|
name?: string | undefined;
|
166
167
|
logo?: string | undefined;
|
167
168
|
coingeckoId?: string | undefined;
|
168
|
-
networkId?: string | undefined;
|
169
169
|
noDiscovery?: boolean | undefined;
|
170
170
|
mirrorOf?: string | undefined;
|
171
171
|
existentialDeposit?: string | undefined;
|
172
172
|
}, import("./SubstrateAssetsModule").SubAssetsTransferParams> | import("..").NewBalanceModule<"substrate-foreignassets", {
|
173
173
|
id: string;
|
174
|
+
networkId: string;
|
174
175
|
decimals: number;
|
175
176
|
symbol: string;
|
176
|
-
name: string;
|
177
|
-
networkId: string;
|
178
177
|
type: "substrate-foreignassets";
|
179
178
|
platform: "polkadot";
|
180
179
|
onChainId: string;
|
181
180
|
existentialDeposit: string;
|
182
181
|
isDefault?: boolean | undefined;
|
182
|
+
name?: string | undefined;
|
183
183
|
logo?: string | undefined;
|
184
184
|
coingeckoId?: string | undefined;
|
185
185
|
noDiscovery?: boolean | undefined;
|
@@ -188,40 +188,40 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
188
188
|
}, import("..").DefaultChainMeta, undefined, {
|
189
189
|
onChainId: string;
|
190
190
|
symbol?: string | undefined;
|
191
|
+
networkId?: string | undefined;
|
191
192
|
isDefault?: boolean | undefined;
|
192
193
|
decimals?: number | undefined;
|
193
194
|
name?: string | undefined;
|
194
195
|
logo?: string | undefined;
|
195
196
|
coingeckoId?: string | undefined;
|
196
|
-
networkId?: string | undefined;
|
197
197
|
noDiscovery?: boolean | undefined;
|
198
198
|
mirrorOf?: string | undefined;
|
199
199
|
existentialDeposit?: string | undefined;
|
200
200
|
}, import("./SubstrateForeignAssetsModule").SubForeignAssetsTransferParams> | import("..").NewBalanceModule<"substrate-native", {
|
201
201
|
id: string;
|
202
|
+
networkId: string;
|
202
203
|
decimals: number;
|
203
204
|
symbol: string;
|
204
|
-
name: string;
|
205
|
-
networkId: string;
|
206
205
|
type: "substrate-native";
|
207
206
|
platform: "polkadot";
|
208
207
|
existentialDeposit: string;
|
209
208
|
isDefault?: boolean | undefined;
|
209
|
+
name?: string | undefined;
|
210
210
|
logo?: string | undefined;
|
211
211
|
coingeckoId?: string | undefined;
|
212
212
|
noDiscovery?: boolean | undefined;
|
213
213
|
mirrorOf?: string | undefined;
|
214
214
|
} | {
|
215
215
|
id: string;
|
216
|
+
networkId: string;
|
216
217
|
decimals: number;
|
217
218
|
symbol: string;
|
218
|
-
name: string;
|
219
|
-
networkId: string;
|
220
219
|
type: "substrate-native";
|
221
220
|
platform: "polkadot";
|
222
221
|
existentialDeposit: string;
|
223
222
|
isCustom: true;
|
224
223
|
isDefault?: boolean | undefined;
|
224
|
+
name?: string | undefined;
|
225
225
|
logo?: string | undefined;
|
226
226
|
coingeckoId?: string | undefined;
|
227
227
|
noDiscovery?: boolean | undefined;
|
@@ -230,25 +230,25 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
230
230
|
disable?: boolean | undefined;
|
231
231
|
}, {
|
232
232
|
symbol?: string | undefined;
|
233
|
+
networkId?: string | undefined;
|
233
234
|
isDefault?: boolean | undefined;
|
234
235
|
decimals?: number | undefined;
|
235
236
|
name?: string | undefined;
|
236
237
|
logo?: string | undefined;
|
237
238
|
coingeckoId?: string | undefined;
|
238
|
-
networkId?: string | undefined;
|
239
239
|
noDiscovery?: boolean | undefined;
|
240
240
|
mirrorOf?: string | undefined;
|
241
241
|
}, import("./SubstrateNativeModule").SubNativeTransferParams> | import("..").NewBalanceModule<"substrate-psp22", {
|
242
242
|
id: string;
|
243
|
+
networkId: string;
|
243
244
|
decimals: number;
|
244
245
|
symbol: string;
|
245
|
-
name: string;
|
246
|
-
networkId: string;
|
247
246
|
type: "substrate-psp22";
|
248
247
|
platform: "polkadot";
|
249
248
|
existentialDeposit: string;
|
250
249
|
contractAddress: string;
|
251
250
|
isDefault?: boolean | undefined;
|
251
|
+
name?: string | undefined;
|
252
252
|
logo?: string | undefined;
|
253
253
|
coingeckoId?: string | undefined;
|
254
254
|
noDiscovery?: boolean | undefined;
|
@@ -256,26 +256,26 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
256
256
|
}, import("..").DefaultChainMeta, undefined, {
|
257
257
|
contractAddress: string;
|
258
258
|
symbol?: string | undefined;
|
259
|
+
networkId?: string | undefined;
|
259
260
|
isDefault?: boolean | undefined;
|
260
261
|
decimals?: number | undefined;
|
261
262
|
name?: string | undefined;
|
262
263
|
logo?: string | undefined;
|
263
264
|
coingeckoId?: string | undefined;
|
264
|
-
networkId?: string | undefined;
|
265
265
|
noDiscovery?: boolean | undefined;
|
266
266
|
mirrorOf?: string | undefined;
|
267
267
|
existentialDeposit?: string | undefined;
|
268
268
|
}, import("./SubstratePsp22Module").SubPsp22TransferParams> | import("..").NewBalanceModule<"substrate-tokens", {
|
269
269
|
id: string;
|
270
|
+
networkId: string;
|
270
271
|
decimals: number;
|
271
272
|
symbol: string;
|
272
|
-
name: string;
|
273
|
-
networkId: string;
|
274
273
|
type: "substrate-tokens";
|
275
274
|
platform: "polkadot";
|
276
275
|
onChainId: string | number;
|
277
276
|
existentialDeposit: string;
|
278
277
|
isDefault?: boolean | undefined;
|
278
|
+
name?: string | undefined;
|
279
279
|
logo?: string | undefined;
|
280
280
|
coingeckoId?: string | undefined;
|
281
281
|
noDiscovery?: boolean | undefined;
|
@@ -285,12 +285,12 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
|
|
285
285
|
}, {
|
286
286
|
onChainId: string | number;
|
287
287
|
symbol?: string | undefined;
|
288
|
+
networkId?: string | undefined;
|
288
289
|
isDefault?: boolean | undefined;
|
289
290
|
decimals?: number | undefined;
|
290
291
|
name?: string | undefined;
|
291
292
|
logo?: string | undefined;
|
292
293
|
coingeckoId?: string | undefined;
|
293
|
-
networkId?: string | undefined;
|
294
294
|
noDiscovery?: boolean | undefined;
|
295
295
|
mirrorOf?: string | undefined;
|
296
296
|
existentialDeposit?: string | undefined;
|
@@ -222,14 +222,14 @@ export declare class Balance {
|
|
222
222
|
get tokenId(): string;
|
223
223
|
get token(): {
|
224
224
|
id: string;
|
225
|
+
networkId: string;
|
225
226
|
decimals: number;
|
226
227
|
symbol: string;
|
227
|
-
name: string;
|
228
|
-
networkId: string;
|
229
228
|
type: "evm-erc20";
|
230
229
|
platform: "ethereum";
|
231
230
|
contractAddress: `0x${string}`;
|
232
231
|
isDefault?: boolean | undefined;
|
232
|
+
name?: string | undefined;
|
233
233
|
logo?: string | undefined;
|
234
234
|
coingeckoId?: string | undefined;
|
235
235
|
noDiscovery?: boolean | undefined;
|
@@ -237,23 +237,22 @@ export declare class Balance {
|
|
237
237
|
isCustom?: boolean | undefined;
|
238
238
|
} | {
|
239
239
|
id: string;
|
240
|
+
networkId: string;
|
240
241
|
decimals: number;
|
241
242
|
symbol: string;
|
242
|
-
name: string;
|
243
|
-
networkId: string;
|
244
243
|
type: "evm-native";
|
245
244
|
platform: "ethereum";
|
246
245
|
isDefault?: boolean | undefined;
|
246
|
+
name?: string | undefined;
|
247
247
|
logo?: string | undefined;
|
248
248
|
coingeckoId?: string | undefined;
|
249
249
|
noDiscovery?: boolean | undefined;
|
250
250
|
mirrorOf?: string | undefined;
|
251
251
|
} | {
|
252
252
|
id: string;
|
253
|
+
networkId: string;
|
253
254
|
decimals: number;
|
254
255
|
symbol: string;
|
255
|
-
name: string;
|
256
|
-
networkId: string;
|
257
256
|
type: "evm-uniswapv2";
|
258
257
|
platform: "ethereum";
|
259
258
|
contractAddress: `0x${string}`;
|
@@ -264,6 +263,7 @@ export declare class Balance {
|
|
264
263
|
tokenAddress0: `0x${string}`;
|
265
264
|
tokenAddress1: `0x${string}`;
|
266
265
|
isDefault?: boolean | undefined;
|
266
|
+
name?: string | undefined;
|
267
267
|
logo?: string | undefined;
|
268
268
|
coingeckoId?: string | undefined;
|
269
269
|
noDiscovery?: boolean | undefined;
|
@@ -273,15 +273,15 @@ export declare class Balance {
|
|
273
273
|
coingeckoId1?: string | undefined;
|
274
274
|
} | {
|
275
275
|
id: string;
|
276
|
+
networkId: string;
|
276
277
|
decimals: number;
|
277
278
|
symbol: string;
|
278
|
-
name: string;
|
279
|
-
networkId: string;
|
280
279
|
type: "substrate-assets";
|
281
280
|
platform: "polkadot";
|
282
281
|
assetId: string;
|
283
282
|
existentialDeposit: string;
|
284
283
|
isDefault?: boolean | undefined;
|
284
|
+
name?: string | undefined;
|
285
285
|
logo?: string | undefined;
|
286
286
|
coingeckoId?: string | undefined;
|
287
287
|
noDiscovery?: boolean | undefined;
|
@@ -289,15 +289,15 @@ export declare class Balance {
|
|
289
289
|
isFrozen?: boolean | undefined;
|
290
290
|
} | {
|
291
291
|
id: string;
|
292
|
+
networkId: string;
|
292
293
|
decimals: number;
|
293
294
|
symbol: string;
|
294
|
-
name: string;
|
295
|
-
networkId: string;
|
296
295
|
type: "substrate-foreignassets";
|
297
296
|
platform: "polkadot";
|
298
297
|
onChainId: string;
|
299
298
|
existentialDeposit: string;
|
300
299
|
isDefault?: boolean | undefined;
|
300
|
+
name?: string | undefined;
|
301
301
|
logo?: string | undefined;
|
302
302
|
coingeckoId?: string | undefined;
|
303
303
|
noDiscovery?: boolean | undefined;
|
@@ -305,44 +305,44 @@ export declare class Balance {
|
|
305
305
|
isFrozen?: boolean | undefined;
|
306
306
|
} | {
|
307
307
|
id: string;
|
308
|
+
networkId: string;
|
308
309
|
decimals: number;
|
309
310
|
symbol: string;
|
310
|
-
name: string;
|
311
|
-
networkId: string;
|
312
311
|
type: "substrate-native";
|
313
312
|
platform: "polkadot";
|
314
313
|
existentialDeposit: string;
|
315
314
|
isDefault?: boolean | undefined;
|
315
|
+
name?: string | undefined;
|
316
316
|
logo?: string | undefined;
|
317
317
|
coingeckoId?: string | undefined;
|
318
318
|
noDiscovery?: boolean | undefined;
|
319
319
|
mirrorOf?: string | undefined;
|
320
320
|
} | {
|
321
321
|
id: string;
|
322
|
+
networkId: string;
|
322
323
|
decimals: number;
|
323
324
|
symbol: string;
|
324
|
-
name: string;
|
325
|
-
networkId: string;
|
326
325
|
type: "substrate-psp22";
|
327
326
|
platform: "polkadot";
|
328
327
|
existentialDeposit: string;
|
329
328
|
contractAddress: string;
|
330
329
|
isDefault?: boolean | undefined;
|
330
|
+
name?: string | undefined;
|
331
331
|
logo?: string | undefined;
|
332
332
|
coingeckoId?: string | undefined;
|
333
333
|
noDiscovery?: boolean | undefined;
|
334
334
|
mirrorOf?: string | undefined;
|
335
335
|
} | {
|
336
336
|
id: string;
|
337
|
+
networkId: string;
|
337
338
|
decimals: number;
|
338
339
|
symbol: string;
|
339
|
-
name: string;
|
340
|
-
networkId: string;
|
341
340
|
type: "substrate-tokens";
|
342
341
|
platform: "polkadot";
|
343
342
|
onChainId: string | number;
|
344
343
|
existentialDeposit: string;
|
345
344
|
isDefault?: boolean | undefined;
|
345
|
+
name?: string | undefined;
|
346
346
|
logo?: string | undefined;
|
347
347
|
coingeckoId?: string | undefined;
|
348
348
|
noDiscovery?: boolean | undefined;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
export declare const TokenConfigBaseSchema: import("zod/v4").ZodObject<{
|
2
2
|
symbol: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
3
|
+
networkId: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
3
4
|
isDefault: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodBoolean>>;
|
4
5
|
decimals: import("zod/v4").ZodOptional<import("zod/v4").ZodInt>;
|
5
|
-
name: import("zod/v4").ZodOptional<import("zod/v4").ZodString
|
6
|
+
name: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
6
7
|
logo: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
7
8
|
coingeckoId: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
8
|
-
networkId: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
9
9
|
noDiscovery: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodBoolean>>;
|
10
10
|
mirrorOf: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
11
11
|
}, import("zod/v4/core").$strict>;
|
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-20250620112438",
|
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/chain-connector-evm": "0.0.0-pr2043-
|
40
|
-
"@talismn/chaindata-provider": "0.0.0-pr2043-
|
41
|
-
"@talismn/sapi": "0.0.0-pr2043-
|
38
|
+
"@talismn/chain-connector": "0.0.0-pr2043-20250620112438",
|
39
|
+
"@talismn/chain-connector-evm": "0.0.0-pr2043-20250620112438",
|
40
|
+
"@talismn/chaindata-provider": "0.0.0-pr2043-20250620112438",
|
41
|
+
"@talismn/sapi": "0.0.0-pr2043-20250620112438",
|
42
42
|
"@talismn/scale": "0.1.2",
|
43
|
-
"@talismn/
|
44
|
-
"@talismn/
|
43
|
+
"@talismn/util": "0.0.0-pr2043-20250620112438",
|
44
|
+
"@talismn/token-rates": "0.0.0-pr2043-20250620112438"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@polkadot/api-contract": "16.1.2",
|