@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.
- package/build/index.cjs +1 -1
- package/build/index.mjs +1 -1
- package/build/types/api/client.d.ts +4 -1
- package/build/types/consts.d.ts +0 -2
- package/build/types/utils/index.d.ts +0 -4
- package/package.json +2 -1
- package/build/types/utils/big.d.ts +0 -4
- package/build/types/utils/erc20.d.ts +0 -5
- package/build/types/utils/h160.d.ts +0 -9
- package/build/types/utils/xc.d.ts +0 -1
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { PolkadotClient } from 'polkadot-api';
|
|
2
|
-
|
|
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 {};
|
package/build/types/consts.d.ts
CHANGED
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacticcouncil/sdk-next",
|
|
3
|
-
"version": "0.14.0
|
|
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,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;
|