@polkadot/types-create 6.12.2-20 → 6.12.2-24
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/package.json +3 -15
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/bundle.d.ts +0 -4
- package/create/class.d.ts +0 -5
- package/create/index.d.ts +0 -2
- package/create/type.d.ts +0 -3
- package/detectPackage.d.ts +0 -1
- package/index.d.ts +0 -2
- package/packageInfo.d.ts +0 -4
- package/types.d.ts +0 -57
- package/util/encodeTypes.d.ts +0 -5
- package/util/getTypeDef.d.ts +0 -7
- package/util/index.d.ts +0 -4
- package/util/typeSplit.d.ts +0 -1
- package/util/xcm.d.ts +0 -2
package/package.json
CHANGED
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "6.12.2-
|
|
23
|
+
"version": "6.12.2-24",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
|
+
"@polkadot/types-codec": "6.12.2-24",
|
|
27
28
|
"@polkadot/util": "^8.2.2"
|
|
28
29
|
},
|
|
29
30
|
"exports": {
|
|
@@ -35,7 +36,6 @@
|
|
|
35
36
|
"require": "./bundle.cjs",
|
|
36
37
|
"default": "./bundle.js"
|
|
37
38
|
},
|
|
38
|
-
"./bundle.d.ts": "./bundle.d.ts",
|
|
39
39
|
"./create": {
|
|
40
40
|
"require": "./create/index.cjs",
|
|
41
41
|
"default": "./create/index.js"
|
|
@@ -44,30 +44,23 @@
|
|
|
44
44
|
"require": "./create/class.cjs",
|
|
45
45
|
"default": "./create/class.js"
|
|
46
46
|
},
|
|
47
|
-
"./create/class.d.ts": "./create/class.d.ts",
|
|
48
|
-
"./create/index.d.ts": "./create/index.d.ts",
|
|
49
47
|
"./create/type": {
|
|
50
48
|
"require": "./create/type.cjs",
|
|
51
49
|
"default": "./create/type.js"
|
|
52
50
|
},
|
|
53
|
-
"./create/type.d.ts": "./create/type.d.ts",
|
|
54
51
|
"./detectPackage": {
|
|
55
52
|
"require": "./detectPackage.cjs",
|
|
56
53
|
"default": "./detectPackage.js"
|
|
57
54
|
},
|
|
58
|
-
"./detectPackage.d.ts": "./detectPackage.d.ts",
|
|
59
|
-
"./index.d.ts": "./index.d.ts",
|
|
60
55
|
"./package.json": "./package.json",
|
|
61
56
|
"./packageInfo": {
|
|
62
57
|
"require": "./packageInfo.cjs",
|
|
63
58
|
"default": "./packageInfo.js"
|
|
64
59
|
},
|
|
65
|
-
"./packageInfo.d.ts": "./packageInfo.d.ts",
|
|
66
60
|
"./types": {
|
|
67
61
|
"require": "./types.cjs",
|
|
68
62
|
"default": "./types.js"
|
|
69
63
|
},
|
|
70
|
-
"./types.d.ts": "./types.d.ts",
|
|
71
64
|
"./util": {
|
|
72
65
|
"require": "./util/index.cjs",
|
|
73
66
|
"default": "./util/index.js"
|
|
@@ -76,22 +69,17 @@
|
|
|
76
69
|
"require": "./util/encodeTypes.cjs",
|
|
77
70
|
"default": "./util/encodeTypes.js"
|
|
78
71
|
},
|
|
79
|
-
"./util/encodeTypes.d.ts": "./util/encodeTypes.d.ts",
|
|
80
72
|
"./util/getTypeDef": {
|
|
81
73
|
"require": "./util/getTypeDef.cjs",
|
|
82
74
|
"default": "./util/getTypeDef.js"
|
|
83
75
|
},
|
|
84
|
-
"./util/getTypeDef.d.ts": "./util/getTypeDef.d.ts",
|
|
85
|
-
"./util/index.d.ts": "./util/index.d.ts",
|
|
86
76
|
"./util/typeSplit": {
|
|
87
77
|
"require": "./util/typeSplit.cjs",
|
|
88
78
|
"default": "./util/typeSplit.js"
|
|
89
79
|
},
|
|
90
|
-
"./util/typeSplit.d.ts": "./util/typeSplit.d.ts",
|
|
91
80
|
"./util/xcm": {
|
|
92
81
|
"require": "./util/xcm.cjs",
|
|
93
82
|
"default": "./util/xcm.js"
|
|
94
|
-
}
|
|
95
|
-
"./util/xcm.d.ts": "./util/xcm.d.ts"
|
|
83
|
+
}
|
|
96
84
|
}
|
|
97
85
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/bundle.d.ts
DELETED
package/create/class.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Codec, CodecClass, CodecRegistry } from '@polkadot/types-codec/types';
|
|
2
|
-
import type { TypeDef } from '../types';
|
|
3
|
-
export declare function constructTypeClass<T extends Codec = Codec>(registry: CodecRegistry, typeDef: TypeDef): CodecClass<T>;
|
|
4
|
-
export declare function getTypeClass<T extends Codec = Codec>(registry: CodecRegistry, typeDef: TypeDef): CodecClass<T>;
|
|
5
|
-
export declare function createClassUnsafe<T extends Codec = Codec, K extends string = string>(registry: CodecRegistry, type: K): CodecClass<T>;
|
package/create/index.d.ts
DELETED
package/create/type.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Codec, CodecRegistry } from '@polkadot/types-codec/types';
|
|
2
|
-
import type { CreateOptions } from '../types';
|
|
3
|
-
export declare function createTypeUnsafe<T extends Codec = Codec, K extends string = string>(registry: CodecRegistry, type: K, params?: unknown[], options?: CreateOptions): T;
|
package/detectPackage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/index.d.ts
DELETED
package/packageInfo.d.ts
DELETED
package/types.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { Codec, CodecClass, CodecRegistry, ICompact, INumber } from '@polkadot/types-codec/types';
|
|
2
|
-
export type { CodecCreateOptions as CreateOptions } from '@polkadot/types-codec/types';
|
|
3
|
-
export declare enum TypeDefInfo {
|
|
4
|
-
BTreeMap = 0,
|
|
5
|
-
BTreeSet = 1,
|
|
6
|
-
Compact = 2,
|
|
7
|
-
DoNotConstruct = 3,
|
|
8
|
-
Enum = 4,
|
|
9
|
-
HashMap = 5,
|
|
10
|
-
Int = 6,
|
|
11
|
-
Linkage = 7,
|
|
12
|
-
Null = 8,
|
|
13
|
-
Option = 9,
|
|
14
|
-
Plain = 10,
|
|
15
|
-
Range = 11,
|
|
16
|
-
Result = 12,
|
|
17
|
-
Set = 13,
|
|
18
|
-
Si = 14,
|
|
19
|
-
Struct = 15,
|
|
20
|
-
Tuple = 16,
|
|
21
|
-
UInt = 17,
|
|
22
|
-
Vec = 18,
|
|
23
|
-
VecFixed = 19,
|
|
24
|
-
WrapperOpaque = 20
|
|
25
|
-
}
|
|
26
|
-
export interface TypeDef {
|
|
27
|
-
alias?: Map<string, string>;
|
|
28
|
-
displayName?: string;
|
|
29
|
-
docs?: string[];
|
|
30
|
-
fallbackType?: string;
|
|
31
|
-
info: TypeDefInfo;
|
|
32
|
-
index?: number;
|
|
33
|
-
isFromSi?: boolean;
|
|
34
|
-
length?: number;
|
|
35
|
-
lookupIndex?: number;
|
|
36
|
-
lookupName?: string;
|
|
37
|
-
lookupNameRoot?: string;
|
|
38
|
-
name?: string;
|
|
39
|
-
namespace?: string;
|
|
40
|
-
sub?: TypeDef | TypeDef[];
|
|
41
|
-
type: string;
|
|
42
|
-
typeName?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface ILookup {
|
|
45
|
-
getSiType(lookupId: ICompact<INumber> | string | number): {
|
|
46
|
-
def: {
|
|
47
|
-
asTuple: ICompact<INumber>[];
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
getTypeDef(lookupId: ICompact<INumber> | string | number): TypeDef;
|
|
51
|
-
}
|
|
52
|
-
export interface CreateRegistry extends CodecRegistry {
|
|
53
|
-
lookup: ILookup;
|
|
54
|
-
createLookupType(lookupId: ICompact<INumber> | number): string;
|
|
55
|
-
setLookup(lookup: ILookup): void;
|
|
56
|
-
getUnsafe<T extends Codec = Codec, K extends string = string>(name: K, withUnknown?: boolean, knownTypeDef?: TypeDef): CodecClass<T> | undefined;
|
|
57
|
-
}
|
package/util/encodeTypes.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { CodecRegistry } from '@polkadot/types-codec/types';
|
|
2
|
-
import type { TypeDef } from '@polkadot/types-create/types';
|
|
3
|
-
export declare function paramsNotation<T>(outer: string, inner?: T | T[], transform?: (_: T) => string): string;
|
|
4
|
-
export declare function encodeTypeDef(CodecRegistry: CodecRegistry, typeDef: TypeDef): string;
|
|
5
|
-
export declare function withTypeString(CodecRegistry: CodecRegistry, typeDef: Omit<TypeDef, 'type'>): TypeDef;
|
package/util/getTypeDef.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeDef } from '@polkadot/types-create/types';
|
|
2
|
-
interface TypeDefOptions {
|
|
3
|
-
name?: string;
|
|
4
|
-
displayName?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function getTypeDef(_type: String | string, { displayName, name }?: TypeDefOptions, count?: number): TypeDef;
|
|
7
|
-
export {};
|
package/util/index.d.ts
DELETED
package/util/typeSplit.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function typeSplit(type: string): string[];
|
package/util/xcm.d.ts
DELETED