@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.
@@ -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,3 @@
1
+ export declare const MODULE_TYPE: "sol-spl";
2
+ export declare const PLATFORM: "solana";
3
+ export { type SolSplTokenConfig as TokenConfig } from "./types";
@@ -0,0 +1,3 @@
1
+ import { IBalanceModule } from "../../types/IBalanceModule";
2
+ import { MODULE_TYPE } from "./config";
3
+ export declare const fetchBalances: IBalanceModule<typeof MODULE_TYPE>["fetchBalances"];
@@ -0,0 +1,3 @@
1
+ import { IBalanceModule } from "../../types/IBalanceModule";
2
+ import { MODULE_TYPE, TokenConfig } from "./config";
3
+ export declare const fetchTokens: IBalanceModule<typeof MODULE_TYPE, TokenConfig>["fetchTokens"];
@@ -0,0 +1,3 @@
1
+ import { IBalanceModule } from "../../types/IBalanceModule";
2
+ import { MODULE_TYPE } from "./config";
3
+ export declare const getMiniMetadata: IBalanceModule<typeof MODULE_TYPE>["getMiniMetadata"];
@@ -0,0 +1,3 @@
1
+ import { IBalanceModule } from "../../types/IBalanceModule";
2
+ import { MODULE_TYPE } from "./config";
3
+ export declare const getTransferCallData: IBalanceModule<typeof MODULE_TYPE>["getTransferCallData"];
@@ -0,0 +1,2 @@
1
+ export * from "./module";
2
+ export * from "./types";
@@ -0,0 +1,3 @@
1
+ import { IBalanceModule } from "../../types/IBalanceModule";
2
+ import { MODULE_TYPE, TokenConfig } from "./config";
3
+ export declare const SolSplBalanceModule: IBalanceModule<typeof MODULE_TYPE, TokenConfig>;
@@ -0,0 +1,3 @@
1
+ import { IBalanceModule } from "../../types/IBalanceModule";
2
+ import { MODULE_TYPE } from "./config";
3
+ export declare const subscribeBalances: IBalanceModule<typeof MODULE_TYPE>["subscribeBalances"];
@@ -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;