@galacticcouncil/sdk 1.1.5 → 1.1.7

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,15 +1,15 @@
1
- import type { HydradxRuntimeXcmAssetLocation, PalletAssetRegistryAssetMetadata, PalletStableswapPoolInfo } from '@polkadot/types/lookup';
1
+ import type { HydradxRuntimeXcmAssetLocation, PalletStableswapPoolInfo } from '@polkadot/types/lookup';
2
2
  import { ITuple } from '@polkadot/types-codec/types';
3
3
  import { u32, u64 } from '@polkadot/types-codec';
4
4
  import { ApiPromise } from '@polkadot/api';
5
- import { Asset } from '../types';
5
+ import { Asset, AssetMetadata } from '../types';
6
6
  import { PolkadotApiClient } from './PolkadotApi';
7
7
  export declare class AssetClient extends PolkadotApiClient {
8
8
  private SUPPORTED_TYPES;
9
9
  constructor(api: ApiPromise);
10
10
  safeSharesQuery(): Promise<Map<string, PalletStableswapPoolInfo>>;
11
11
  safeBondsQuery(): Promise<Map<string, ITuple<[u32, u64]>>>;
12
- metadataQuery(): Promise<Map<string, PalletAssetRegistryAssetMetadata>>;
12
+ metadataQuery(): Promise<Map<string, AssetMetadata>>;
13
13
  locationsQuery(): Promise<Map<string, HydradxRuntimeXcmAssetLocation>>;
14
14
  private getTokens;
15
15
  private getBonds;
@@ -128,3 +128,7 @@ export interface Asset {
128
128
  origin?: number;
129
129
  meta?: Record<string, string>;
130
130
  }
131
+ export interface AssetMetadata {
132
+ decimals: number;
133
+ symbol: string;
134
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacticcouncil/sdk",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Galactic off-chain routing & optimization of orders across pools for best price execution",
5
5
  "author": "GalacticCouncil",
6
6
  "repository": {