@polkadot/types-codec 6.12.2-18 → 6.12.2-21
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 -78
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/abstract/AbstractArray.d.ts +0 -84
- package/abstract/AbstractInt.d.ts +0 -75
- package/abstract/index.d.ts +0 -2
- package/base/Base.d.ts +0 -56
- package/base/Compact.d.ts +0 -83
- package/base/DoNotConstruct.d.ts +0 -33
- package/base/Enum.d.ts +0 -105
- package/base/Int.d.ts +0 -16
- package/base/Null.d.ts +0 -54
- package/base/Option.d.ts +0 -88
- package/base/Result.d.ts +0 -46
- package/base/Tuple.d.ts +0 -39
- package/base/UInt.d.ts +0 -15
- package/base/Vec.d.ts +0 -28
- package/base/VecAny.d.ts +0 -15
- package/base/VecFixed.d.ts +0 -26
- package/base/index.d.ts +0 -13
- package/bundle.d.ts +0 -7
- package/checkTypes.manual.cjs +0 -12
- package/checkTypes.manual.js +0 -7
- package/detectPackage.d.ts +0 -1
- package/extended/BTreeMap.d.ts +0 -5
- package/extended/BTreeSet.d.ts +0 -55
- package/extended/BitVec.d.ts +0 -26
- package/extended/Bytes.d.ts +0 -25
- package/extended/HashMap.d.ts +0 -5
- package/extended/Linkage.d.ts +0 -31
- package/extended/Map.d.ts +0 -50
- package/extended/Range.d.ts +0 -30
- package/extended/Type.d.ts +0 -16
- package/extended/U8aFixed.d.ts +0 -16
- package/extended/WrapperOpaque.d.ts +0 -14
- package/extended/index.d.ts +0 -11
- package/index.d.ts +0 -2
- package/native/Bool.d.ts +0 -62
- package/native/Date.d.ts +0 -76
- package/native/Json.d.ts +0 -56
- package/native/Raw.d.ts +0 -90
- package/native/Set.d.ts +0 -76
- package/native/Struct.d.ts +0 -93
- package/native/Text.d.ts +0 -71
- package/native/index.d.ts +0 -7
- package/packageInfo.d.ts +0 -4
- package/primitive/I128.d.ts +0 -11
- package/primitive/I16.d.ts +0 -11
- package/primitive/I256.d.ts +0 -11
- package/primitive/I32.d.ts +0 -11
- package/primitive/I64.d.ts +0 -11
- package/primitive/I8.d.ts +0 -11
- package/primitive/U128.d.ts +0 -11
- package/primitive/U16.d.ts +0 -11
- package/primitive/U256.d.ts +0 -11
- package/primitive/U32.d.ts +0 -11
- package/primitive/U64.d.ts +0 -11
- package/primitive/U8.d.ts +0 -11
- package/primitive/USize.d.ts +0 -12
- package/primitive/index.d.ts +0 -13
- package/types/codec.d.ts +0 -77
- package/types/helpers.d.ts +0 -14
- package/types/index.d.ts +0 -4
- package/types/interfaces.d.ts +0 -69
- package/types/registry.d.ts +0 -61
- package/utils/compareArray.d.ts +0 -1
- package/utils/compareMap.d.ts +0 -1
- package/utils/compareSet.d.ts +0 -1
- package/utils/decodeU8a.d.ts +0 -13
- package/utils/index.d.ts +0 -9
- package/utils/mapToTypeMap.d.ts +0 -5
- package/utils/sanitize.d.ts +0 -16
- package/utils/sortValues.d.ts +0 -13
- package/utils/typeToConstructor.d.ts +0 -2
- package/utils/typesToMap.d.ts +0 -2
- package/utils/util.d.ts +0 -3
package/package.json
CHANGED
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "6.12.2-
|
|
23
|
+
"version": "6.12.2-21",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
27
|
"@polkadot/util": "^8.2.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@polkadot/types": "^6.12.2-
|
|
30
|
+
"@polkadot/types": "^6.12.2-21"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
@@ -42,13 +42,10 @@
|
|
|
42
42
|
"require": "./abstract/AbstractArray.cjs",
|
|
43
43
|
"default": "./abstract/AbstractArray.js"
|
|
44
44
|
},
|
|
45
|
-
"./abstract/AbstractArray.d.ts": "./abstract/AbstractArray.d.ts",
|
|
46
45
|
"./abstract/AbstractInt": {
|
|
47
46
|
"require": "./abstract/AbstractInt.cjs",
|
|
48
47
|
"default": "./abstract/AbstractInt.js"
|
|
49
48
|
},
|
|
50
|
-
"./abstract/AbstractInt.d.ts": "./abstract/AbstractInt.d.ts",
|
|
51
|
-
"./abstract/index.d.ts": "./abstract/index.d.ts",
|
|
52
49
|
"./base": {
|
|
53
50
|
"require": "./base/index.cjs",
|
|
54
51
|
"default": "./base/index.js"
|
|
@@ -57,82 +54,62 @@
|
|
|
57
54
|
"require": "./base/Base.cjs",
|
|
58
55
|
"default": "./base/Base.js"
|
|
59
56
|
},
|
|
60
|
-
"./base/Base.d.ts": "./base/Base.d.ts",
|
|
61
57
|
"./base/Compact": {
|
|
62
58
|
"require": "./base/Compact.cjs",
|
|
63
59
|
"default": "./base/Compact.js"
|
|
64
60
|
},
|
|
65
|
-
"./base/Compact.d.ts": "./base/Compact.d.ts",
|
|
66
61
|
"./base/DoNotConstruct": {
|
|
67
62
|
"require": "./base/DoNotConstruct.cjs",
|
|
68
63
|
"default": "./base/DoNotConstruct.js"
|
|
69
64
|
},
|
|
70
|
-
"./base/DoNotConstruct.d.ts": "./base/DoNotConstruct.d.ts",
|
|
71
65
|
"./base/Enum": {
|
|
72
66
|
"require": "./base/Enum.cjs",
|
|
73
67
|
"default": "./base/Enum.js"
|
|
74
68
|
},
|
|
75
|
-
"./base/Enum.d.ts": "./base/Enum.d.ts",
|
|
76
|
-
"./base/index.d.ts": "./base/index.d.ts",
|
|
77
69
|
"./base/Int": {
|
|
78
70
|
"require": "./base/Int.cjs",
|
|
79
71
|
"default": "./base/Int.js"
|
|
80
72
|
},
|
|
81
|
-
"./base/Int.d.ts": "./base/Int.d.ts",
|
|
82
73
|
"./base/Null": {
|
|
83
74
|
"require": "./base/Null.cjs",
|
|
84
75
|
"default": "./base/Null.js"
|
|
85
76
|
},
|
|
86
|
-
"./base/Null.d.ts": "./base/Null.d.ts",
|
|
87
77
|
"./base/Option": {
|
|
88
78
|
"require": "./base/Option.cjs",
|
|
89
79
|
"default": "./base/Option.js"
|
|
90
80
|
},
|
|
91
|
-
"./base/Option.d.ts": "./base/Option.d.ts",
|
|
92
81
|
"./base/Result": {
|
|
93
82
|
"require": "./base/Result.cjs",
|
|
94
83
|
"default": "./base/Result.js"
|
|
95
84
|
},
|
|
96
|
-
"./base/Result.d.ts": "./base/Result.d.ts",
|
|
97
85
|
"./base/Tuple": {
|
|
98
86
|
"require": "./base/Tuple.cjs",
|
|
99
87
|
"default": "./base/Tuple.js"
|
|
100
88
|
},
|
|
101
|
-
"./base/Tuple.d.ts": "./base/Tuple.d.ts",
|
|
102
89
|
"./base/UInt": {
|
|
103
90
|
"require": "./base/UInt.cjs",
|
|
104
91
|
"default": "./base/UInt.js"
|
|
105
92
|
},
|
|
106
|
-
"./base/UInt.d.ts": "./base/UInt.d.ts",
|
|
107
93
|
"./base/Vec": {
|
|
108
94
|
"require": "./base/Vec.cjs",
|
|
109
95
|
"default": "./base/Vec.js"
|
|
110
96
|
},
|
|
111
|
-
"./base/Vec.d.ts": "./base/Vec.d.ts",
|
|
112
97
|
"./base/VecAny": {
|
|
113
98
|
"require": "./base/VecAny.cjs",
|
|
114
99
|
"default": "./base/VecAny.js"
|
|
115
100
|
},
|
|
116
|
-
"./base/VecAny.d.ts": "./base/VecAny.d.ts",
|
|
117
101
|
"./base/VecFixed": {
|
|
118
102
|
"require": "./base/VecFixed.cjs",
|
|
119
103
|
"default": "./base/VecFixed.js"
|
|
120
104
|
},
|
|
121
|
-
"./base/VecFixed.d.ts": "./base/VecFixed.d.ts",
|
|
122
105
|
"./bundle": {
|
|
123
106
|
"require": "./bundle.cjs",
|
|
124
107
|
"default": "./bundle.js"
|
|
125
108
|
},
|
|
126
|
-
"./bundle.d.ts": "./bundle.d.ts",
|
|
127
|
-
"./checkTypes.manual": {
|
|
128
|
-
"require": "./checkTypes.manual.cjs",
|
|
129
|
-
"default": "./checkTypes.manual.js"
|
|
130
|
-
},
|
|
131
109
|
"./detectPackage": {
|
|
132
110
|
"require": "./detectPackage.cjs",
|
|
133
111
|
"default": "./detectPackage.js"
|
|
134
112
|
},
|
|
135
|
-
"./detectPackage.d.ts": "./detectPackage.d.ts",
|
|
136
113
|
"./extended": {
|
|
137
114
|
"require": "./extended/index.cjs",
|
|
138
115
|
"default": "./extended/index.js"
|
|
@@ -141,59 +118,46 @@
|
|
|
141
118
|
"require": "./extended/BitVec.cjs",
|
|
142
119
|
"default": "./extended/BitVec.js"
|
|
143
120
|
},
|
|
144
|
-
"./extended/BitVec.d.ts": "./extended/BitVec.d.ts",
|
|
145
121
|
"./extended/BTreeMap": {
|
|
146
122
|
"require": "./extended/BTreeMap.cjs",
|
|
147
123
|
"default": "./extended/BTreeMap.js"
|
|
148
124
|
},
|
|
149
|
-
"./extended/BTreeMap.d.ts": "./extended/BTreeMap.d.ts",
|
|
150
125
|
"./extended/BTreeSet": {
|
|
151
126
|
"require": "./extended/BTreeSet.cjs",
|
|
152
127
|
"default": "./extended/BTreeSet.js"
|
|
153
128
|
},
|
|
154
|
-
"./extended/BTreeSet.d.ts": "./extended/BTreeSet.d.ts",
|
|
155
129
|
"./extended/Bytes": {
|
|
156
130
|
"require": "./extended/Bytes.cjs",
|
|
157
131
|
"default": "./extended/Bytes.js"
|
|
158
132
|
},
|
|
159
|
-
"./extended/Bytes.d.ts": "./extended/Bytes.d.ts",
|
|
160
133
|
"./extended/HashMap": {
|
|
161
134
|
"require": "./extended/HashMap.cjs",
|
|
162
135
|
"default": "./extended/HashMap.js"
|
|
163
136
|
},
|
|
164
|
-
"./extended/HashMap.d.ts": "./extended/HashMap.d.ts",
|
|
165
|
-
"./extended/index.d.ts": "./extended/index.d.ts",
|
|
166
137
|
"./extended/Linkage": {
|
|
167
138
|
"require": "./extended/Linkage.cjs",
|
|
168
139
|
"default": "./extended/Linkage.js"
|
|
169
140
|
},
|
|
170
|
-
"./extended/Linkage.d.ts": "./extended/Linkage.d.ts",
|
|
171
141
|
"./extended/Map": {
|
|
172
142
|
"require": "./extended/Map.cjs",
|
|
173
143
|
"default": "./extended/Map.js"
|
|
174
144
|
},
|
|
175
|
-
"./extended/Map.d.ts": "./extended/Map.d.ts",
|
|
176
145
|
"./extended/Range": {
|
|
177
146
|
"require": "./extended/Range.cjs",
|
|
178
147
|
"default": "./extended/Range.js"
|
|
179
148
|
},
|
|
180
|
-
"./extended/Range.d.ts": "./extended/Range.d.ts",
|
|
181
149
|
"./extended/Type": {
|
|
182
150
|
"require": "./extended/Type.cjs",
|
|
183
151
|
"default": "./extended/Type.js"
|
|
184
152
|
},
|
|
185
|
-
"./extended/Type.d.ts": "./extended/Type.d.ts",
|
|
186
153
|
"./extended/U8aFixed": {
|
|
187
154
|
"require": "./extended/U8aFixed.cjs",
|
|
188
155
|
"default": "./extended/U8aFixed.js"
|
|
189
156
|
},
|
|
190
|
-
"./extended/U8aFixed.d.ts": "./extended/U8aFixed.d.ts",
|
|
191
157
|
"./extended/WrapperOpaque": {
|
|
192
158
|
"require": "./extended/WrapperOpaque.cjs",
|
|
193
159
|
"default": "./extended/WrapperOpaque.js"
|
|
194
160
|
},
|
|
195
|
-
"./extended/WrapperOpaque.d.ts": "./extended/WrapperOpaque.d.ts",
|
|
196
|
-
"./index.d.ts": "./index.d.ts",
|
|
197
161
|
"./native": {
|
|
198
162
|
"require": "./native/index.cjs",
|
|
199
163
|
"default": "./native/index.js"
|
|
@@ -202,33 +166,26 @@
|
|
|
202
166
|
"require": "./native/Bool.cjs",
|
|
203
167
|
"default": "./native/Bool.js"
|
|
204
168
|
},
|
|
205
|
-
"./native/Bool.d.ts": "./native/Bool.d.ts",
|
|
206
169
|
"./native/Date": {
|
|
207
170
|
"require": "./native/Date.cjs",
|
|
208
171
|
"default": "./native/Date.js"
|
|
209
172
|
},
|
|
210
|
-
"./native/Date.d.ts": "./native/Date.d.ts",
|
|
211
|
-
"./native/index.d.ts": "./native/index.d.ts",
|
|
212
173
|
"./native/Json": {
|
|
213
174
|
"require": "./native/Json.cjs",
|
|
214
175
|
"default": "./native/Json.js"
|
|
215
176
|
},
|
|
216
|
-
"./native/Json.d.ts": "./native/Json.d.ts",
|
|
217
177
|
"./native/Raw": {
|
|
218
178
|
"require": "./native/Raw.cjs",
|
|
219
179
|
"default": "./native/Raw.js"
|
|
220
180
|
},
|
|
221
|
-
"./native/Raw.d.ts": "./native/Raw.d.ts",
|
|
222
181
|
"./native/Set": {
|
|
223
182
|
"require": "./native/Set.cjs",
|
|
224
183
|
"default": "./native/Set.js"
|
|
225
184
|
},
|
|
226
|
-
"./native/Set.d.ts": "./native/Set.d.ts",
|
|
227
185
|
"./native/Struct": {
|
|
228
186
|
"require": "./native/Struct.cjs",
|
|
229
187
|
"default": "./native/Struct.js"
|
|
230
188
|
},
|
|
231
|
-
"./native/Struct.d.ts": "./native/Struct.d.ts",
|
|
232
189
|
"./native/Struct.data": {
|
|
233
190
|
"require": "./native/Struct.data.cjs",
|
|
234
191
|
"default": "./native/Struct.data.js"
|
|
@@ -237,13 +194,11 @@
|
|
|
237
194
|
"require": "./native/Text.cjs",
|
|
238
195
|
"default": "./native/Text.js"
|
|
239
196
|
},
|
|
240
|
-
"./native/Text.d.ts": "./native/Text.d.ts",
|
|
241
197
|
"./package.json": "./package.json",
|
|
242
198
|
"./packageInfo": {
|
|
243
199
|
"require": "./packageInfo.cjs",
|
|
244
200
|
"default": "./packageInfo.js"
|
|
245
201
|
},
|
|
246
|
-
"./packageInfo.d.ts": "./packageInfo.d.ts",
|
|
247
202
|
"./primitive": {
|
|
248
203
|
"require": "./primitive/index.cjs",
|
|
249
204
|
"default": "./primitive/index.js"
|
|
@@ -252,68 +207,54 @@
|
|
|
252
207
|
"require": "./primitive/I128.cjs",
|
|
253
208
|
"default": "./primitive/I128.js"
|
|
254
209
|
},
|
|
255
|
-
"./primitive/I128.d.ts": "./primitive/I128.d.ts",
|
|
256
210
|
"./primitive/I16": {
|
|
257
211
|
"require": "./primitive/I16.cjs",
|
|
258
212
|
"default": "./primitive/I16.js"
|
|
259
213
|
},
|
|
260
|
-
"./primitive/I16.d.ts": "./primitive/I16.d.ts",
|
|
261
214
|
"./primitive/I256": {
|
|
262
215
|
"require": "./primitive/I256.cjs",
|
|
263
216
|
"default": "./primitive/I256.js"
|
|
264
217
|
},
|
|
265
|
-
"./primitive/I256.d.ts": "./primitive/I256.d.ts",
|
|
266
218
|
"./primitive/I32": {
|
|
267
219
|
"require": "./primitive/I32.cjs",
|
|
268
220
|
"default": "./primitive/I32.js"
|
|
269
221
|
},
|
|
270
|
-
"./primitive/I32.d.ts": "./primitive/I32.d.ts",
|
|
271
222
|
"./primitive/I64": {
|
|
272
223
|
"require": "./primitive/I64.cjs",
|
|
273
224
|
"default": "./primitive/I64.js"
|
|
274
225
|
},
|
|
275
|
-
"./primitive/I64.d.ts": "./primitive/I64.d.ts",
|
|
276
226
|
"./primitive/I8": {
|
|
277
227
|
"require": "./primitive/I8.cjs",
|
|
278
228
|
"default": "./primitive/I8.js"
|
|
279
229
|
},
|
|
280
|
-
"./primitive/I8.d.ts": "./primitive/I8.d.ts",
|
|
281
|
-
"./primitive/index.d.ts": "./primitive/index.d.ts",
|
|
282
230
|
"./primitive/U128": {
|
|
283
231
|
"require": "./primitive/U128.cjs",
|
|
284
232
|
"default": "./primitive/U128.js"
|
|
285
233
|
},
|
|
286
|
-
"./primitive/U128.d.ts": "./primitive/U128.d.ts",
|
|
287
234
|
"./primitive/U16": {
|
|
288
235
|
"require": "./primitive/U16.cjs",
|
|
289
236
|
"default": "./primitive/U16.js"
|
|
290
237
|
},
|
|
291
|
-
"./primitive/U16.d.ts": "./primitive/U16.d.ts",
|
|
292
238
|
"./primitive/U256": {
|
|
293
239
|
"require": "./primitive/U256.cjs",
|
|
294
240
|
"default": "./primitive/U256.js"
|
|
295
241
|
},
|
|
296
|
-
"./primitive/U256.d.ts": "./primitive/U256.d.ts",
|
|
297
242
|
"./primitive/U32": {
|
|
298
243
|
"require": "./primitive/U32.cjs",
|
|
299
244
|
"default": "./primitive/U32.js"
|
|
300
245
|
},
|
|
301
|
-
"./primitive/U32.d.ts": "./primitive/U32.d.ts",
|
|
302
246
|
"./primitive/U64": {
|
|
303
247
|
"require": "./primitive/U64.cjs",
|
|
304
248
|
"default": "./primitive/U64.js"
|
|
305
249
|
},
|
|
306
|
-
"./primitive/U64.d.ts": "./primitive/U64.d.ts",
|
|
307
250
|
"./primitive/U8": {
|
|
308
251
|
"require": "./primitive/U8.cjs",
|
|
309
252
|
"default": "./primitive/U8.js"
|
|
310
253
|
},
|
|
311
|
-
"./primitive/U8.d.ts": "./primitive/U8.d.ts",
|
|
312
254
|
"./primitive/USize": {
|
|
313
255
|
"require": "./primitive/USize.cjs",
|
|
314
256
|
"default": "./primitive/USize.js"
|
|
315
257
|
},
|
|
316
|
-
"./primitive/USize.d.ts": "./primitive/USize.d.ts",
|
|
317
258
|
"./types": {
|
|
318
259
|
"require": "./types/index.cjs",
|
|
319
260
|
"default": "./types/index.js"
|
|
@@ -322,23 +263,18 @@
|
|
|
322
263
|
"require": "./types/codec.cjs",
|
|
323
264
|
"default": "./types/codec.js"
|
|
324
265
|
},
|
|
325
|
-
"./types/codec.d.ts": "./types/codec.d.ts",
|
|
326
266
|
"./types/helpers": {
|
|
327
267
|
"require": "./types/helpers.cjs",
|
|
328
268
|
"default": "./types/helpers.js"
|
|
329
269
|
},
|
|
330
|
-
"./types/helpers.d.ts": "./types/helpers.d.ts",
|
|
331
|
-
"./types/index.d.ts": "./types/index.d.ts",
|
|
332
270
|
"./types/interfaces": {
|
|
333
271
|
"require": "./types/interfaces.cjs",
|
|
334
272
|
"default": "./types/interfaces.js"
|
|
335
273
|
},
|
|
336
|
-
"./types/interfaces.d.ts": "./types/interfaces.d.ts",
|
|
337
274
|
"./types/registry": {
|
|
338
275
|
"require": "./types/registry.cjs",
|
|
339
276
|
"default": "./types/registry.js"
|
|
340
277
|
},
|
|
341
|
-
"./types/registry.d.ts": "./types/registry.d.ts",
|
|
342
278
|
"./utils": {
|
|
343
279
|
"require": "./utils/index.cjs",
|
|
344
280
|
"default": "./utils/index.js"
|
|
@@ -347,52 +283,41 @@
|
|
|
347
283
|
"require": "./utils/compareArray.cjs",
|
|
348
284
|
"default": "./utils/compareArray.js"
|
|
349
285
|
},
|
|
350
|
-
"./utils/compareArray.d.ts": "./utils/compareArray.d.ts",
|
|
351
286
|
"./utils/compareMap": {
|
|
352
287
|
"require": "./utils/compareMap.cjs",
|
|
353
288
|
"default": "./utils/compareMap.js"
|
|
354
289
|
},
|
|
355
|
-
"./utils/compareMap.d.ts": "./utils/compareMap.d.ts",
|
|
356
290
|
"./utils/compareSet": {
|
|
357
291
|
"require": "./utils/compareSet.cjs",
|
|
358
292
|
"default": "./utils/compareSet.js"
|
|
359
293
|
},
|
|
360
|
-
"./utils/compareSet.d.ts": "./utils/compareSet.d.ts",
|
|
361
294
|
"./utils/decodeU8a": {
|
|
362
295
|
"require": "./utils/decodeU8a.cjs",
|
|
363
296
|
"default": "./utils/decodeU8a.js"
|
|
364
297
|
},
|
|
365
|
-
"./utils/decodeU8a.d.ts": "./utils/decodeU8a.d.ts",
|
|
366
|
-
"./utils/index.d.ts": "./utils/index.d.ts",
|
|
367
298
|
"./utils/mapToTypeMap": {
|
|
368
299
|
"require": "./utils/mapToTypeMap.cjs",
|
|
369
300
|
"default": "./utils/mapToTypeMap.js"
|
|
370
301
|
},
|
|
371
|
-
"./utils/mapToTypeMap.d.ts": "./utils/mapToTypeMap.d.ts",
|
|
372
302
|
"./utils/sanitize": {
|
|
373
303
|
"require": "./utils/sanitize.cjs",
|
|
374
304
|
"default": "./utils/sanitize.js"
|
|
375
305
|
},
|
|
376
|
-
"./utils/sanitize.d.ts": "./utils/sanitize.d.ts",
|
|
377
306
|
"./utils/sortValues": {
|
|
378
307
|
"require": "./utils/sortValues.cjs",
|
|
379
308
|
"default": "./utils/sortValues.js"
|
|
380
309
|
},
|
|
381
|
-
"./utils/sortValues.d.ts": "./utils/sortValues.d.ts",
|
|
382
310
|
"./utils/typesToMap": {
|
|
383
311
|
"require": "./utils/typesToMap.cjs",
|
|
384
312
|
"default": "./utils/typesToMap.js"
|
|
385
313
|
},
|
|
386
|
-
"./utils/typesToMap.d.ts": "./utils/typesToMap.d.ts",
|
|
387
314
|
"./utils/typeToConstructor": {
|
|
388
315
|
"require": "./utils/typeToConstructor.cjs",
|
|
389
316
|
"default": "./utils/typeToConstructor.js"
|
|
390
317
|
},
|
|
391
|
-
"./utils/typeToConstructor.d.ts": "./utils/typeToConstructor.d.ts",
|
|
392
318
|
"./utils/util": {
|
|
393
319
|
"require": "./utils/util.cjs",
|
|
394
320
|
"default": "./utils/util.js"
|
|
395
|
-
}
|
|
396
|
-
"./utils/util.d.ts": "./utils/util.d.ts"
|
|
321
|
+
}
|
|
397
322
|
}
|
|
398
323
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { HexString } from '@polkadot/util/types';
|
|
2
|
-
import type { AnyJson, Codec, CodecRegistry, IU8a, IVec } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* @name AbstractArray
|
|
5
|
-
* @description
|
|
6
|
-
* This manages codec arrays. It is an extension to Array, providing
|
|
7
|
-
* specific encoding/decoding on top of the base type.
|
|
8
|
-
* @noInheritDoc
|
|
9
|
-
*/
|
|
10
|
-
export declare abstract class AbstractArray<T extends Codec> extends Array<T> implements IVec<T> {
|
|
11
|
-
readonly registry: CodecRegistry;
|
|
12
|
-
createdAtHash?: IU8a;
|
|
13
|
-
readonly initialU8aLength?: number;
|
|
14
|
-
protected constructor(registry: CodecRegistry, values: T[], initialU8aLength?: number);
|
|
15
|
-
/**
|
|
16
|
-
* @description The length of the value when encoded as a Uint8Array
|
|
17
|
-
*/
|
|
18
|
-
get encodedLength(): number;
|
|
19
|
-
/**
|
|
20
|
-
* @description returns a hash of the contents
|
|
21
|
-
*/
|
|
22
|
-
get hash(): IU8a;
|
|
23
|
-
/**
|
|
24
|
-
* @description Checks if the value is an empty value
|
|
25
|
-
*/
|
|
26
|
-
get isEmpty(): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @description The length of the value
|
|
29
|
-
*/
|
|
30
|
-
get length(): number;
|
|
31
|
-
/**
|
|
32
|
-
* @description Compares the value of the input to see if there is a match
|
|
33
|
-
*/
|
|
34
|
-
eq(other?: unknown): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* @description Converts the Object to an standard JavaScript Array
|
|
37
|
-
*/
|
|
38
|
-
toArray(): T[];
|
|
39
|
-
/**
|
|
40
|
-
* @description Returns a hex string representation of the value
|
|
41
|
-
*/
|
|
42
|
-
toHex(): HexString;
|
|
43
|
-
/**
|
|
44
|
-
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
|
45
|
-
*/
|
|
46
|
-
toHuman(isExtended?: boolean): AnyJson;
|
|
47
|
-
/**
|
|
48
|
-
* @description Converts the Object to JSON, typically used for RPC transfers
|
|
49
|
-
*/
|
|
50
|
-
toJSON(): AnyJson;
|
|
51
|
-
/**
|
|
52
|
-
* @description Returns the base runtime type name for this instance
|
|
53
|
-
*/
|
|
54
|
-
abstract toRawType(): string;
|
|
55
|
-
/**
|
|
56
|
-
* @description Returns the string representation of the value
|
|
57
|
-
*/
|
|
58
|
-
toString(): string;
|
|
59
|
-
/**
|
|
60
|
-
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
61
|
-
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
62
|
-
*/
|
|
63
|
-
toU8a(isBare?: boolean): Uint8Array;
|
|
64
|
-
/**
|
|
65
|
-
* @description Concatenates two arrays
|
|
66
|
-
*/
|
|
67
|
-
concat(other: T[]): T[];
|
|
68
|
-
/**
|
|
69
|
-
* @description Filters the array with the callback
|
|
70
|
-
*/
|
|
71
|
-
filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: unknown): T[];
|
|
72
|
-
/**
|
|
73
|
-
* @description Maps the array with the callback
|
|
74
|
-
*/
|
|
75
|
-
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: unknown): U[];
|
|
76
|
-
/**
|
|
77
|
-
* @description Checks if the array includes a specific value
|
|
78
|
-
*/
|
|
79
|
-
includes(check: unknown): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* @description Returns a slice of an array
|
|
82
|
-
*/
|
|
83
|
-
slice(start?: number, end?: number): T[];
|
|
84
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/// <reference types="bn.js" />
|
|
2
|
-
import type { HexString } from '@polkadot/util/types';
|
|
3
|
-
import type { AnyNumber, CodecRegistry, INumber, IU8a, UIntBitLength } from '../types';
|
|
4
|
-
import { BN } from '@polkadot/util';
|
|
5
|
-
export declare const DEFAULT_UINT_BITS = 64;
|
|
6
|
-
/**
|
|
7
|
-
* @name AbstractInt
|
|
8
|
-
* @ignore
|
|
9
|
-
* @noInheritDoc
|
|
10
|
-
*/
|
|
11
|
-
export declare abstract class AbstractInt extends BN implements INumber {
|
|
12
|
-
#private;
|
|
13
|
-
readonly registry: CodecRegistry;
|
|
14
|
-
createdAtHash?: IU8a;
|
|
15
|
-
readonly encodedLength: number;
|
|
16
|
-
constructor(registry: CodecRegistry, value?: AnyNumber, bitLength?: UIntBitLength, isSigned?: boolean);
|
|
17
|
-
/**
|
|
18
|
-
* @description returns a hash of the contents
|
|
19
|
-
*/
|
|
20
|
-
get hash(): IU8a;
|
|
21
|
-
/**
|
|
22
|
-
* @description Checks if the value is a zero value (align elsewhere)
|
|
23
|
-
*/
|
|
24
|
-
get isEmpty(): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* @description Checks if the value is an unsigned type
|
|
27
|
-
*/
|
|
28
|
-
get isUnsigned(): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @description Returns the number of bits in the value
|
|
31
|
-
*/
|
|
32
|
-
bitLength(): number;
|
|
33
|
-
/**
|
|
34
|
-
* @description Compares the value of the input to see if there is a match
|
|
35
|
-
*/
|
|
36
|
-
eq(other?: unknown): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* @description True if this value is the max of the type
|
|
39
|
-
*/
|
|
40
|
-
isMax(): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* @description Returns a BigInt representation of the number
|
|
43
|
-
*/
|
|
44
|
-
toBigInt(): bigint;
|
|
45
|
-
/**
|
|
46
|
-
* @description Returns the BN representation of the number. (Compatibility)
|
|
47
|
-
*/
|
|
48
|
-
toBn(): BN;
|
|
49
|
-
/**
|
|
50
|
-
* @description Returns a hex string representation of the value
|
|
51
|
-
*/
|
|
52
|
-
toHex(isLe?: boolean): HexString;
|
|
53
|
-
/**
|
|
54
|
-
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
|
55
|
-
*/
|
|
56
|
-
toHuman(isExpanded?: boolean): string;
|
|
57
|
-
/**
|
|
58
|
-
* @description Converts the Object to JSON, typically used for RPC transfers
|
|
59
|
-
*/
|
|
60
|
-
toJSON(onlyHex?: boolean): any;
|
|
61
|
-
/**
|
|
62
|
-
* @description Returns the base runtime type name for this instance
|
|
63
|
-
*/
|
|
64
|
-
toRawType(): string;
|
|
65
|
-
/**
|
|
66
|
-
* @description Returns the string representation of the value
|
|
67
|
-
* @param base The base to use for the conversion
|
|
68
|
-
*/
|
|
69
|
-
toString(base?: number): string;
|
|
70
|
-
/**
|
|
71
|
-
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
72
|
-
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
73
|
-
*/
|
|
74
|
-
toU8a(isBare?: boolean): Uint8Array;
|
|
75
|
-
}
|
package/abstract/index.d.ts
DELETED
package/base/Base.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { HexString } from '@polkadot/util/types';
|
|
2
|
-
import type { AnyJson, BareOpts, Codec, CodecRegistry, IU8a } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* @name Base
|
|
5
|
-
* @description A type extends the Base class, when it holds a value
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class Base<T extends Codec> implements Codec {
|
|
8
|
-
#private;
|
|
9
|
-
createdAtHash?: IU8a;
|
|
10
|
-
readonly initialU8aLength?: number;
|
|
11
|
-
protected constructor(registry: CodecRegistry, value: T, initialU8aLength?: number);
|
|
12
|
-
/**
|
|
13
|
-
* @description The length of the value when encoded as a Uint8Array
|
|
14
|
-
*/
|
|
15
|
-
get encodedLength(): number;
|
|
16
|
-
/**
|
|
17
|
-
* @description returns a hash of the contents
|
|
18
|
-
*/
|
|
19
|
-
get hash(): IU8a;
|
|
20
|
-
get inner(): T;
|
|
21
|
-
/**
|
|
22
|
-
* @description Checks if the value is an empty value
|
|
23
|
-
*/
|
|
24
|
-
get isEmpty(): boolean;
|
|
25
|
-
get registry(): CodecRegistry;
|
|
26
|
-
/**
|
|
27
|
-
* @description Compares the value of the input to see if there is a match
|
|
28
|
-
*/
|
|
29
|
-
eq(other?: unknown): boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @description Returns a hex string representation of the value. isLe returns a LE (number-only) representation
|
|
32
|
-
*/
|
|
33
|
-
toHex(isLe?: boolean): HexString;
|
|
34
|
-
/**
|
|
35
|
-
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
|
36
|
-
*/
|
|
37
|
-
toHuman(isExtended?: boolean): AnyJson;
|
|
38
|
-
/**
|
|
39
|
-
* @description Converts the Object to JSON, typically used for RPC transfers
|
|
40
|
-
*/
|
|
41
|
-
toJSON(): AnyJson;
|
|
42
|
-
/**
|
|
43
|
-
* @description Returns the string representation of the value
|
|
44
|
-
*/
|
|
45
|
-
toString(): string;
|
|
46
|
-
/**
|
|
47
|
-
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
48
|
-
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
49
|
-
*/
|
|
50
|
-
toU8a(isBare?: BareOpts): Uint8Array;
|
|
51
|
-
/**
|
|
52
|
-
* @description Returns the base runtime type name for this instance
|
|
53
|
-
*/
|
|
54
|
-
toRawType(): string;
|
|
55
|
-
unwrap(): T;
|
|
56
|
-
}
|