@galacticcouncil/sdk-next 0.14.0-pr220-de485c9 → 0.14.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,2 +1,5 @@
1
1
  import { PolkadotClient } from 'polkadot-api';
2
- export declare const getWs: (wsUrl: string | string[]) => Promise<PolkadotClient>;
2
+ import { getWsProvider } from 'polkadot-api/ws-provider';
3
+ type WsProviderConfig = Parameters<typeof getWsProvider>[1];
4
+ export declare const getWs: (wsUrl: string | string[], config?: WsProviderConfig) => Promise<PolkadotClient>;
5
+ export {};
@@ -1,10 +1,8 @@
1
- export declare const RUNTIME_DECIMALS = 18;
2
1
  export declare const PERMILL_DENOMINATOR = 1000000;
3
2
  export declare const PERBILL_DENOMINATOR = 1000000000;
4
3
  export declare const SYSTEM_ASSET_ID = 0;
5
4
  export declare const SYSTEM_ASSET_DECIMALS = 12;
6
5
  export declare const HYDRATION_PARACHAIN_ID = 2034;
7
- export declare const HYDRATION_SS58_PREFIX = 63;
8
6
  export declare const HYDRATION_OMNIPOOL_ADDRESS = "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1";
9
7
  export declare const HUB_ASSET_ID = 1;
10
8
  export declare const TRADEABLE_DEFAULT = 15;
@@ -1,8 +1,4 @@
1
- export * as big from './big';
2
- export * as erc20 from './erc20';
3
1
  export * as fmt from './format';
4
- export * as h160 from './h160';
5
2
  export * as json from './json';
6
3
  export * as math from './math';
7
- export * as xc from './xc';
8
4
  export * from './QueryBus';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacticcouncil/sdk-next",
3
- "version": "0.14.0-pr220-de485c9",
3
+ "version": "0.14.0",
4
4
  "description": "Galactic next gen sdk (papi)",
5
5
  "author": "GalacticCouncil",
6
6
  "repository": {
@@ -35,6 +35,7 @@
35
35
  "@types/big.js": "^6.2.2"
36
36
  },
37
37
  "dependencies": {
38
+ "@galacticcouncil/common": "^0.1.0",
38
39
  "@galacticcouncil/descriptors": "^1.5.0",
39
40
  "@galacticcouncil/math-hsm": "^1.1.0",
40
41
  "@galacticcouncil/math-lbp": "^1.2.0",
@@ -1,4 +0,0 @@
1
- import Big, { RoundingMode } from 'big.js';
2
- export declare function toDecimal(amount: bigint, decimals: number, maxDecimal?: number, roundType?: RoundingMode): string;
3
- export declare function toBigInt(amount: string | number, decimals: number): bigint;
4
- export declare function asBigInt(value: Big): bigint;
@@ -1,5 +0,0 @@
1
- export declare class ERC20 {
2
- static fromAssetId(assetId: number): string;
3
- static toAssetId(address: string): number | null;
4
- static isAssetAddress(address: string): boolean;
5
- }
@@ -1,9 +0,0 @@
1
- export declare function isEvmAccount(ss58addr: string): boolean;
2
- export declare function isEvmAddress(address: string): boolean;
3
- export declare function isSs58Address(address: string): boolean;
4
- export declare class H160 {
5
- static toAccount: (address: string) => import("polkadot-api").SS58String;
6
- static fromAccount: (address: string) => string;
7
- static fromSS58: (address: string) => string;
8
- static fromAny: (address: string) => string;
9
- }
@@ -1 +0,0 @@
1
- export declare function convertToId(xcAddress: string): number;