@talismn/balances 0.0.0-pr2091-20250721015613 → 0.0.0-pr2091-20250727075918
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 +12 -0
- package/dist/declarations/src/modules/sol-spl/config.d.ts +3 -0
- package/dist/declarations/src/modules/sol-spl/fetchBalances.d.ts +3 -0
- package/dist/declarations/src/modules/sol-spl/fetchTokens.d.ts +3 -0
- package/dist/declarations/src/modules/sol-spl/getMiniMetadata.d.ts +3 -0
- package/dist/declarations/src/modules/sol-spl/getTransferCallData.d.ts +3 -0
- package/dist/declarations/src/modules/sol-spl/index.d.ts +2 -0
- package/dist/declarations/src/modules/sol-spl/module.d.ts +3 -0
- package/dist/declarations/src/modules/sol-spl/subscribeBalances.d.ts +3 -0
- package/dist/declarations/src/modules/sol-spl/types.d.ts +14 -0
- package/dist/declarations/src/types/balances.d.ts +15 -0
- package/dist/talismn-balances.cjs.dev.js +415 -158
- package/dist/talismn-balances.cjs.prod.js +415 -158
- package/dist/talismn-balances.esm.js +415 -160
- package/package.json +13 -10
@@ -118,6 +118,17 @@ export declare const BALANCE_MODULES: (import("../types/IBalanceModule").IBalanc
|
|
118
118
|
coingeckoId?: string | undefined;
|
119
119
|
noDiscovery?: boolean | undefined;
|
120
120
|
mirrorOf?: string | undefined;
|
121
|
+
}, unknown, unknown> | import("../types/IBalanceModule").IBalanceModule<"sol-spl", {
|
122
|
+
mintAddress: string;
|
123
|
+
symbol?: string | undefined;
|
124
|
+
networkId?: string | undefined;
|
125
|
+
isDefault?: boolean | undefined;
|
126
|
+
decimals?: number | undefined;
|
127
|
+
name?: string | undefined;
|
128
|
+
logo?: string | undefined;
|
129
|
+
coingeckoId?: string | undefined;
|
130
|
+
noDiscovery?: boolean | undefined;
|
131
|
+
mirrorOf?: string | undefined;
|
121
132
|
}, unknown, unknown>)[];
|
122
133
|
export type AnyBalanceModule = (typeof BALANCE_MODULES)[number];
|
123
134
|
export * from "./evm-native";
|
@@ -130,5 +141,6 @@ export * from "./substrate-hydration";
|
|
130
141
|
export * from "./substrate-psp22";
|
131
142
|
export * from "./substrate-tokens";
|
132
143
|
export * from "./sol-native";
|
144
|
+
export * from "./sol-spl";
|
133
145
|
export * from "./abis";
|
134
146
|
export * from "../types/IBalanceModule";
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import z from "zod/v4";
|
2
|
+
export declare const SolSplTokenConfigSchema: z.ZodObject<{
|
3
|
+
symbol: z.ZodOptional<z.ZodString>;
|
4
|
+
networkId: z.ZodOptional<z.ZodString>;
|
5
|
+
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
6
|
+
decimals: z.ZodOptional<z.ZodInt>;
|
7
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
8
|
+
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
9
|
+
coingeckoId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
10
|
+
noDiscovery: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
11
|
+
mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
12
|
+
mintAddress: z.ZodString;
|
13
|
+
}, z.core.$strict>;
|
14
|
+
export type SolSplTokenConfig = z.infer<typeof SolSplTokenConfigSchema>;
|
@@ -241,6 +241,7 @@ export declare class Balance {
|
|
241
241
|
genesisHash?: string | undefined;
|
242
242
|
balancesConfig?: {
|
243
243
|
"sol-native"?: undefined;
|
244
|
+
"sol-spl"?: undefined;
|
244
245
|
} | undefined;
|
245
246
|
} | null;
|
246
247
|
get tokenId(): string;
|
@@ -401,6 +402,20 @@ export declare class Balance {
|
|
401
402
|
coingeckoId?: string | undefined;
|
402
403
|
noDiscovery?: boolean | undefined;
|
403
404
|
mirrorOf?: string | undefined;
|
405
|
+
} | {
|
406
|
+
id: string;
|
407
|
+
networkId: string;
|
408
|
+
decimals: number;
|
409
|
+
symbol: string;
|
410
|
+
type: "sol-spl";
|
411
|
+
platform: "solana";
|
412
|
+
mintAddress: string;
|
413
|
+
isDefault?: boolean | undefined;
|
414
|
+
name?: string | undefined;
|
415
|
+
logo?: string | undefined;
|
416
|
+
coingeckoId?: string | undefined;
|
417
|
+
noDiscovery?: boolean | undefined;
|
418
|
+
mirrorOf?: string | undefined;
|
404
419
|
} | null;
|
405
420
|
get decimals(): number | null;
|
406
421
|
get rates(): TokenRates | null;
|