@galacticcouncil/sdk 1.0.1 → 1.1.0

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,4 +1,4 @@
1
- import type { PalletAssetRegistryAssetMetadata, PalletStableswapPoolInfo } from '@polkadot/types/lookup';
1
+ import type { HydradxRuntimeXcmAssetLocation, PalletAssetRegistryAssetMetadata, 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';
@@ -10,9 +10,11 @@ export declare class AssetClient extends PolkadotApiClient {
10
10
  safeSharesQuery(): Promise<Map<string, PalletStableswapPoolInfo>>;
11
11
  safeBondsQuery(): Promise<Map<string, ITuple<[u32, u64]>>>;
12
12
  metadataQuery(): Promise<Map<string, PalletAssetRegistryAssetMetadata>>;
13
+ locationsQuery(): Promise<Map<string, HydradxRuntimeXcmAssetLocation>>;
13
14
  private getTokens;
14
15
  private getBonds;
15
16
  private getShares;
16
17
  getOnChainAssets(): Promise<Asset[]>;
17
18
  private isSupportedType;
19
+ private parseLocation;
18
20
  }
@@ -125,5 +125,6 @@ export interface Asset {
125
125
  icon: string;
126
126
  type: string;
127
127
  existentialDeposit: string;
128
+ origin?: number;
128
129
  meta?: Record<string, string>;
129
130
  }
@@ -0,0 +1,2 @@
1
+ export declare function findNestedKey(obj: any, keyToFind: any): any;
2
+ export declare function findNestedObj(obj: any, keyToFind: any, valToFind: any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacticcouncil/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Galactic off-chain routing & optimization of orders across pools for best price execution",
5
5
  "author": "GalacticCouncil",
6
6
  "repository": {