@polkadot/types-codec 10.1.2 → 10.1.4
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/abstract/Array.js +1 -1
- package/abstract/Base.js +1 -1
- package/abstract/Int.d.ts +2 -2
- package/abstract/Int.js +3 -5
- package/abstract/Object.js +1 -1
- package/abstract/index.js +1 -1
- package/base/Compact.d.ts +1 -1
- package/base/Compact.js +2 -3
- package/base/DoNotConstruct.js +1 -1
- package/base/Enum.js +1 -1
- package/base/Int.js +1 -1
- package/base/Null.d.ts +1 -1
- package/base/Null.js +2 -3
- package/base/Option.js +1 -1
- package/base/Result.js +1 -1
- package/base/Tuple.js +1 -1
- package/base/UInt.js +1 -1
- package/base/Vec.d.ts +1 -1
- package/base/Vec.js +6 -6
- package/base/VecAny.js +1 -1
- package/base/VecFixed.js +1 -1
- package/base/index.js +1 -1
- package/bundle.js +1 -1
- package/cjs/abstract/Array.js +1 -1
- package/cjs/abstract/Base.js +1 -1
- package/cjs/abstract/Int.js +3 -5
- package/cjs/abstract/Object.js +1 -1
- package/cjs/abstract/index.js +1 -1
- package/cjs/base/Compact.js +2 -3
- package/cjs/base/DoNotConstruct.js +1 -1
- package/cjs/base/Enum.js +1 -1
- package/cjs/base/Int.js +1 -1
- package/cjs/base/Null.js +2 -3
- package/cjs/base/Option.js +1 -1
- package/cjs/base/Result.js +1 -1
- package/cjs/base/Tuple.js +1 -1
- package/cjs/base/UInt.js +1 -1
- package/cjs/base/Vec.js +6 -6
- package/cjs/base/VecAny.js +1 -1
- package/cjs/base/VecFixed.js +1 -1
- package/cjs/base/index.js +1 -1
- package/cjs/bundle.js +1 -1
- package/cjs/detectOther.js +1 -1
- package/cjs/detectPackage.js +1 -1
- package/cjs/extended/BTreeMap.js +1 -1
- package/cjs/extended/BTreeSet.js +1 -1
- package/cjs/extended/BitVec.js +1 -1
- package/cjs/extended/Bytes.js +1 -1
- package/cjs/extended/HashMap.js +1 -1
- package/cjs/extended/Linkage.js +1 -1
- package/cjs/extended/Map.js +1 -1
- package/cjs/extended/OptionBool.js +1 -1
- package/cjs/extended/Range.js +1 -1
- package/cjs/extended/RangeInclusive.js +1 -1
- package/cjs/extended/Type.js +1 -1
- package/cjs/extended/U8aFixed.js +1 -1
- package/cjs/extended/WrapperKeepOpaque.js +1 -1
- package/cjs/extended/WrapperOpaque.js +1 -1
- package/cjs/extended/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/native/Bool.js +2 -3
- package/cjs/native/Date.js +2 -3
- package/cjs/native/Float.js +1 -1
- package/cjs/native/Json.js +2 -3
- package/cjs/native/Raw.js +2 -3
- package/cjs/native/Set.js +2 -3
- package/cjs/native/Struct.data.js +1 -1
- package/cjs/native/Struct.js +2 -2
- package/cjs/native/Text.js +1 -1
- package/cjs/native/index.js +1 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/primitive/F32.js +1 -1
- package/cjs/primitive/F64.js +1 -1
- package/cjs/primitive/I128.js +1 -1
- package/cjs/primitive/I16.js +1 -1
- package/cjs/primitive/I256.js +1 -1
- package/cjs/primitive/I32.js +1 -1
- package/cjs/primitive/I64.js +1 -1
- package/cjs/primitive/I8.js +1 -1
- package/cjs/primitive/U128.js +1 -1
- package/cjs/primitive/U16.js +1 -1
- package/cjs/primitive/U256.js +1 -1
- package/cjs/primitive/U32.js +1 -1
- package/cjs/primitive/U64.js +1 -1
- package/cjs/primitive/U8.js +1 -1
- package/cjs/primitive/USize.js +1 -1
- package/cjs/primitive/index.js +1 -1
- package/cjs/types/codec.js +1 -1
- package/cjs/types/helpers.js +1 -1
- package/cjs/types/index.js +1 -1
- package/cjs/types/interfaces.js +1 -1
- package/cjs/types/registry.js +1 -1
- package/cjs/utils/compareArray.js +1 -1
- package/cjs/utils/compareMap.js +1 -1
- package/cjs/utils/compareSet.js +1 -1
- package/cjs/utils/decodeU8a.js +2 -2
- package/cjs/utils/index.js +1 -1
- package/cjs/utils/mapToTypeMap.js +1 -1
- package/cjs/utils/sanitize.js +1 -1
- package/cjs/utils/sortValues.js +1 -1
- package/cjs/utils/typeToConstructor.js +1 -1
- package/cjs/utils/typesToMap.js +1 -1
- package/cjs/utils/util.js +1 -1
- package/detectOther.js +1 -1
- package/detectPackage.js +1 -1
- package/extended/BTreeMap.js +1 -1
- package/extended/BTreeSet.js +1 -1
- package/extended/BitVec.js +1 -1
- package/extended/Bytes.js +1 -1
- package/extended/HashMap.js +1 -1
- package/extended/Linkage.js +1 -1
- package/extended/Map.js +1 -1
- package/extended/OptionBool.js +1 -1
- package/extended/Range.js +1 -1
- package/extended/RangeInclusive.js +1 -1
- package/extended/Type.js +1 -1
- package/extended/U8aFixed.js +1 -1
- package/extended/WrapperKeepOpaque.js +1 -1
- package/extended/WrapperOpaque.js +1 -1
- package/extended/index.js +1 -1
- package/index.js +1 -1
- package/native/Bool.d.ts +1 -1
- package/native/Bool.js +2 -3
- package/native/Date.d.ts +1 -1
- package/native/Date.js +2 -3
- package/native/Float.js +1 -1
- package/native/Json.d.ts +1 -1
- package/native/Json.js +2 -3
- package/native/Raw.d.ts +1 -1
- package/native/Raw.js +2 -3
- package/native/Set.d.ts +1 -1
- package/native/Set.js +2 -3
- package/native/Struct.data.js +1 -1
- package/native/Struct.js +2 -2
- package/native/Text.js +1 -1
- package/native/index.js +1 -1
- package/package.json +4 -6
- package/packageInfo.js +1 -1
- package/primitive/F32.js +1 -1
- package/primitive/F64.js +1 -1
- package/primitive/I128.js +1 -1
- package/primitive/I16.js +1 -1
- package/primitive/I256.js +1 -1
- package/primitive/I32.js +1 -1
- package/primitive/I64.js +1 -1
- package/primitive/I8.js +1 -1
- package/primitive/U128.js +1 -1
- package/primitive/U16.js +1 -1
- package/primitive/U256.js +1 -1
- package/primitive/U32.js +1 -1
- package/primitive/U64.js +1 -1
- package/primitive/U8.js +1 -1
- package/primitive/USize.js +1 -1
- package/primitive/index.js +1 -1
- package/types/codec.js +1 -1
- package/types/helpers.js +1 -1
- package/types/index.js +1 -1
- package/types/interfaces.js +1 -1
- package/types/registry.js +1 -1
- package/utils/compareArray.js +1 -1
- package/utils/compareMap.js +1 -1
- package/utils/compareSet.js +1 -1
- package/utils/decodeU8a.js +2 -2
- package/utils/index.js +1 -1
- package/utils/mapToTypeMap.js +1 -1
- package/utils/sanitize.js +1 -1
- package/utils/sortValues.js +1 -1
- package/utils/typeToConstructor.js +1 -1
- package/utils/typesToMap.js +1 -1
- package/utils/util.js +1 -1
package/abstract/Array.js
CHANGED
package/abstract/Base.js
CHANGED
package/abstract/Int.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare abstract class AbstractInt extends BN implements INumber {
|
|
|
56
56
|
/**
|
|
57
57
|
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
|
58
58
|
*/
|
|
59
|
-
toHuman(
|
|
59
|
+
toHuman(_isExpanded?: boolean): string;
|
|
60
60
|
/**
|
|
61
61
|
* @description Converts the Object to JSON, typically used for RPC transfers
|
|
62
62
|
*/
|
|
@@ -78,5 +78,5 @@ export declare abstract class AbstractInt extends BN implements INumber {
|
|
|
78
78
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
79
79
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
80
80
|
*/
|
|
81
|
-
toU8a(
|
|
81
|
+
toU8a(_isBare?: boolean): Uint8Array;
|
|
82
82
|
}
|
package/abstract/Int.js
CHANGED
|
@@ -156,8 +156,7 @@ export class AbstractInt extends BN {
|
|
|
156
156
|
/**
|
|
157
157
|
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
|
158
158
|
*/
|
|
159
|
-
|
|
160
|
-
toHuman(isExpanded) {
|
|
159
|
+
toHuman(_isExpanded) {
|
|
161
160
|
const rawType = this.toRawType();
|
|
162
161
|
if (rawType === 'Balance') {
|
|
163
162
|
return this.isMax()
|
|
@@ -214,8 +213,7 @@ export class AbstractInt extends BN {
|
|
|
214
213
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
215
214
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
216
215
|
*/
|
|
217
|
-
|
|
218
|
-
toU8a(isBare) {
|
|
216
|
+
toU8a(_isBare) {
|
|
219
217
|
return bnToU8a(this, {
|
|
220
218
|
bitLength: this.bitLength(),
|
|
221
219
|
isLe: true,
|
|
@@ -223,4 +221,4 @@ export class AbstractInt extends BN {
|
|
|
223
221
|
});
|
|
224
222
|
}
|
|
225
223
|
}
|
|
226
|
-
_AbstractInt_bitLength = new WeakMap();
|
|
224
|
+
_AbstractInt_bitLength = new WeakMap();
|
package/abstract/Object.js
CHANGED
package/abstract/index.js
CHANGED
package/base/Compact.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export declare class Compact<T extends INumber> implements ICompact<T> {
|
|
|
86
86
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
87
87
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
88
88
|
*/
|
|
89
|
-
toU8a(
|
|
89
|
+
toU8a(_isBare?: boolean): Uint8Array;
|
|
90
90
|
/**
|
|
91
91
|
* @description Returns the embedded [[UInt]] or [[Moment]] value
|
|
92
92
|
*/
|
package/base/Compact.js
CHANGED
|
@@ -149,8 +149,7 @@ export class Compact {
|
|
|
149
149
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
150
150
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
151
151
|
*/
|
|
152
|
-
|
|
153
|
-
toU8a(isBare) {
|
|
152
|
+
toU8a(_isBare) {
|
|
154
153
|
return compactToU8a(__classPrivateFieldGet(this, _Compact_raw, "f").toBn());
|
|
155
154
|
}
|
|
156
155
|
/**
|
|
@@ -160,4 +159,4 @@ export class Compact {
|
|
|
160
159
|
return __classPrivateFieldGet(this, _Compact_raw, "f");
|
|
161
160
|
}
|
|
162
161
|
}
|
|
163
|
-
_Compact_Type = new WeakMap(), _Compact_raw = new WeakMap();
|
|
162
|
+
_Compact_Type = new WeakMap(), _Compact_raw = new WeakMap();
|
package/base/DoNotConstruct.js
CHANGED
package/base/Enum.js
CHANGED
|
@@ -369,4 +369,4 @@ export class Enum {
|
|
|
369
369
|
]);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
_Enum_def = new WeakMap(), _Enum_entryIndex = new WeakMap(), _Enum_indexes = new WeakMap(), _Enum_isBasic = new WeakMap(), _Enum_isIndexed = new WeakMap(), _Enum_raw = new WeakMap();
|
|
372
|
+
_Enum_def = new WeakMap(), _Enum_entryIndex = new WeakMap(), _Enum_indexes = new WeakMap(), _Enum_isBasic = new WeakMap(), _Enum_isIndexed = new WeakMap(), _Enum_raw = new WeakMap();
|
package/base/Int.js
CHANGED
package/base/Null.d.ts
CHANGED
|
@@ -53,5 +53,5 @@ export declare class Null implements Codec {
|
|
|
53
53
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
54
54
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
55
55
|
*/
|
|
56
|
-
toU8a(
|
|
56
|
+
toU8a(_isBare?: boolean): Uint8Array;
|
|
57
57
|
}
|
package/base/Null.js
CHANGED
|
@@ -69,8 +69,7 @@ export class Null {
|
|
|
69
69
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
70
70
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
toU8a(isBare) {
|
|
72
|
+
toU8a(_isBare) {
|
|
74
73
|
return new Uint8Array();
|
|
75
74
|
}
|
|
76
|
-
}
|
|
75
|
+
}
|
package/base/Option.js
CHANGED
package/base/Result.js
CHANGED
package/base/Tuple.js
CHANGED
package/base/UInt.js
CHANGED
package/base/Vec.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare class Vec<T extends Codec> extends AbstractArray<T> {
|
|
|
24
24
|
/**
|
|
25
25
|
* @description Finds the index of the value in the array
|
|
26
26
|
*/
|
|
27
|
-
indexOf(
|
|
27
|
+
indexOf(other?: unknown): number;
|
|
28
28
|
/**
|
|
29
29
|
* @description Returns the base runtime type name for this instance
|
|
30
30
|
*/
|
package/base/Vec.js
CHANGED
|
@@ -86,13 +86,13 @@ export class Vec extends AbstractArray {
|
|
|
86
86
|
/**
|
|
87
87
|
* @description Finds the index of the value in the array
|
|
88
88
|
*/
|
|
89
|
-
indexOf(
|
|
89
|
+
indexOf(other) {
|
|
90
90
|
// convert type first, this removes overhead from the eq
|
|
91
|
-
const
|
|
92
|
-
?
|
|
93
|
-
: new (__classPrivateFieldGet(this, _Vec_Type, "f"))(this.registry,
|
|
91
|
+
const check = other instanceof __classPrivateFieldGet(this, _Vec_Type, "f")
|
|
92
|
+
? other
|
|
93
|
+
: new (__classPrivateFieldGet(this, _Vec_Type, "f"))(this.registry, other);
|
|
94
94
|
for (let i = 0; i < this.length; i++) {
|
|
95
|
-
if (
|
|
95
|
+
if (check.eq(this[i])) {
|
|
96
96
|
return i;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -105,4 +105,4 @@ export class Vec extends AbstractArray {
|
|
|
105
105
|
return `Vec<${this.registry.getClassName(__classPrivateFieldGet(this, _Vec_Type, "f")) || new (__classPrivateFieldGet(this, _Vec_Type, "f"))(this.registry).toRawType()}>`;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
_Vec_Type = new WeakMap();
|
|
108
|
+
_Vec_Type = new WeakMap();
|
package/base/VecAny.js
CHANGED
package/base/VecFixed.js
CHANGED
package/base/index.js
CHANGED
package/bundle.js
CHANGED
package/cjs/abstract/Array.js
CHANGED
package/cjs/abstract/Base.js
CHANGED
package/cjs/abstract/Int.js
CHANGED
|
@@ -159,8 +159,7 @@ class AbstractInt extends util_1.BN {
|
|
|
159
159
|
/**
|
|
160
160
|
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
|
161
161
|
*/
|
|
162
|
-
|
|
163
|
-
toHuman(isExpanded) {
|
|
162
|
+
toHuman(_isExpanded) {
|
|
164
163
|
const rawType = this.toRawType();
|
|
165
164
|
if (rawType === 'Balance') {
|
|
166
165
|
return this.isMax()
|
|
@@ -217,8 +216,7 @@ class AbstractInt extends util_1.BN {
|
|
|
217
216
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
218
217
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
219
218
|
*/
|
|
220
|
-
|
|
221
|
-
toU8a(isBare) {
|
|
219
|
+
toU8a(_isBare) {
|
|
222
220
|
return (0, util_1.bnToU8a)(this, {
|
|
223
221
|
bitLength: this.bitLength(),
|
|
224
222
|
isLe: true,
|
|
@@ -227,4 +225,4 @@ class AbstractInt extends util_1.BN {
|
|
|
227
225
|
}
|
|
228
226
|
}
|
|
229
227
|
exports.AbstractInt = AbstractInt;
|
|
230
|
-
_AbstractInt_bitLength = new WeakMap();
|
|
228
|
+
_AbstractInt_bitLength = new WeakMap();
|
package/cjs/abstract/Object.js
CHANGED
package/cjs/abstract/index.js
CHANGED
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "AbstractArray", { enumerable: true, get: functio
|
|
|
6
6
|
var Base_js_1 = require("./Base.js");
|
|
7
7
|
Object.defineProperty(exports, "AbstractBase", { enumerable: true, get: function () { return Base_js_1.AbstractBase; } });
|
|
8
8
|
var Int_js_1 = require("./Int.js");
|
|
9
|
-
Object.defineProperty(exports, "AbstractInt", { enumerable: true, get: function () { return Int_js_1.AbstractInt; } });
|
|
9
|
+
Object.defineProperty(exports, "AbstractInt", { enumerable: true, get: function () { return Int_js_1.AbstractInt; } });
|
package/cjs/base/Compact.js
CHANGED
|
@@ -152,8 +152,7 @@ class Compact {
|
|
|
152
152
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
153
153
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
154
154
|
*/
|
|
155
|
-
|
|
156
|
-
toU8a(isBare) {
|
|
155
|
+
toU8a(_isBare) {
|
|
157
156
|
return (0, util_1.compactToU8a)(tslib_1.__classPrivateFieldGet(this, _Compact_raw, "f").toBn());
|
|
158
157
|
}
|
|
159
158
|
/**
|
|
@@ -164,4 +163,4 @@ class Compact {
|
|
|
164
163
|
}
|
|
165
164
|
}
|
|
166
165
|
exports.Compact = Compact;
|
|
167
|
-
_Compact_Type = new WeakMap(), _Compact_raw = new WeakMap();
|
|
166
|
+
_Compact_Type = new WeakMap(), _Compact_raw = new WeakMap();
|
package/cjs/base/Enum.js
CHANGED
|
@@ -373,4 +373,4 @@ class Enum {
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
exports.Enum = Enum;
|
|
376
|
-
_Enum_def = new WeakMap(), _Enum_entryIndex = new WeakMap(), _Enum_indexes = new WeakMap(), _Enum_isBasic = new WeakMap(), _Enum_isIndexed = new WeakMap(), _Enum_raw = new WeakMap();
|
|
376
|
+
_Enum_def = new WeakMap(), _Enum_entryIndex = new WeakMap(), _Enum_indexes = new WeakMap(), _Enum_isBasic = new WeakMap(), _Enum_isIndexed = new WeakMap(), _Enum_raw = new WeakMap();
|
package/cjs/base/Int.js
CHANGED
package/cjs/base/Null.js
CHANGED
|
@@ -72,9 +72,8 @@ class Null {
|
|
|
72
72
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
73
73
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
74
74
|
*/
|
|
75
|
-
|
|
76
|
-
toU8a(isBare) {
|
|
75
|
+
toU8a(_isBare) {
|
|
77
76
|
return new Uint8Array();
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
|
-
exports.Null = Null;
|
|
79
|
+
exports.Null = Null;
|
package/cjs/base/Option.js
CHANGED
package/cjs/base/Result.js
CHANGED
package/cjs/base/Tuple.js
CHANGED
package/cjs/base/UInt.js
CHANGED
package/cjs/base/Vec.js
CHANGED
|
@@ -90,13 +90,13 @@ class Vec extends Array_js_1.AbstractArray {
|
|
|
90
90
|
/**
|
|
91
91
|
* @description Finds the index of the value in the array
|
|
92
92
|
*/
|
|
93
|
-
indexOf(
|
|
93
|
+
indexOf(other) {
|
|
94
94
|
// convert type first, this removes overhead from the eq
|
|
95
|
-
const
|
|
96
|
-
?
|
|
97
|
-
: new (tslib_1.__classPrivateFieldGet(this, _Vec_Type, "f"))(this.registry,
|
|
95
|
+
const check = other instanceof tslib_1.__classPrivateFieldGet(this, _Vec_Type, "f")
|
|
96
|
+
? other
|
|
97
|
+
: new (tslib_1.__classPrivateFieldGet(this, _Vec_Type, "f"))(this.registry, other);
|
|
98
98
|
for (let i = 0; i < this.length; i++) {
|
|
99
|
-
if (
|
|
99
|
+
if (check.eq(this[i])) {
|
|
100
100
|
return i;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -110,4 +110,4 @@ class Vec extends Array_js_1.AbstractArray {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
exports.Vec = Vec;
|
|
113
|
-
_Vec_Type = new WeakMap();
|
|
113
|
+
_Vec_Type = new WeakMap();
|
package/cjs/base/VecAny.js
CHANGED
package/cjs/base/VecFixed.js
CHANGED
package/cjs/base/index.js
CHANGED
|
@@ -24,4 +24,4 @@ Object.defineProperty(exports, "Vec", { enumerable: true, get: function () { ret
|
|
|
24
24
|
var VecAny_js_1 = require("./VecAny.js");
|
|
25
25
|
Object.defineProperty(exports, "VecAny", { enumerable: true, get: function () { return VecAny_js_1.VecAny; } });
|
|
26
26
|
var VecFixed_js_1 = require("./VecFixed.js");
|
|
27
|
-
Object.defineProperty(exports, "VecFixed", { enumerable: true, get: function () { return VecFixed_js_1.VecFixed; } });
|
|
27
|
+
Object.defineProperty(exports, "VecFixed", { enumerable: true, get: function () { return VecFixed_js_1.VecFixed; } });
|
package/cjs/bundle.js
CHANGED
|
@@ -9,4 +9,4 @@ tslib_1.__exportStar(require("./base/index.js"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./extended/index.js"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./native/index.js"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./primitive/index.js"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./utils/index.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./utils/index.js"), exports);
|
package/cjs/detectOther.js
CHANGED
package/cjs/detectPackage.js
CHANGED
|
@@ -4,4 +4,4 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const util_1 = require("@polkadot/util");
|
|
5
5
|
const detectOther_js_1 = tslib_1.__importDefault(require("./detectOther.js"));
|
|
6
6
|
const packageInfo_js_1 = require("./packageInfo.js");
|
|
7
|
-
(0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
|
|
7
|
+
(0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
|
package/cjs/extended/BTreeMap.js
CHANGED
package/cjs/extended/BTreeSet.js
CHANGED
package/cjs/extended/BitVec.js
CHANGED
package/cjs/extended/Bytes.js
CHANGED
package/cjs/extended/HashMap.js
CHANGED
package/cjs/extended/Linkage.js
CHANGED
package/cjs/extended/Map.js
CHANGED
|
@@ -200,4 +200,4 @@ class CodecMap extends Map {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
exports.CodecMap = CodecMap;
|
|
203
|
-
_CodecMap_KeyClass = new WeakMap(), _CodecMap_ValClass = new WeakMap(), _CodecMap_type = new WeakMap();
|
|
203
|
+
_CodecMap_KeyClass = new WeakMap(), _CodecMap_ValClass = new WeakMap(), _CodecMap_type = new WeakMap();
|
package/cjs/extended/Range.js
CHANGED
package/cjs/extended/Type.js
CHANGED
package/cjs/extended/U8aFixed.js
CHANGED
|
@@ -103,4 +103,4 @@ class WrapperKeepOpaque extends Bytes_js_1.Bytes {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
exports.WrapperKeepOpaque = WrapperKeepOpaque;
|
|
106
|
-
_WrapperKeepOpaque_Type = new WeakMap(), _WrapperKeepOpaque_decoded = new WeakMap(), _WrapperKeepOpaque_opaqueName = new WeakMap();
|
|
106
|
+
_WrapperKeepOpaque_Type = new WeakMap(), _WrapperKeepOpaque_decoded = new WeakMap(), _WrapperKeepOpaque_opaqueName = new WeakMap();
|
package/cjs/extended/index.js
CHANGED
|
@@ -29,4 +29,4 @@ Object.defineProperty(exports, "U8aFixed", { enumerable: true, get: function ()
|
|
|
29
29
|
var WrapperKeepOpaque_js_1 = require("./WrapperKeepOpaque.js");
|
|
30
30
|
Object.defineProperty(exports, "WrapperKeepOpaque", { enumerable: true, get: function () { return WrapperKeepOpaque_js_1.WrapperKeepOpaque; } });
|
|
31
31
|
var WrapperOpaque_js_1 = require("./WrapperOpaque.js");
|
|
32
|
-
Object.defineProperty(exports, "WrapperOpaque", { enumerable: true, get: function () { return WrapperOpaque_js_1.WrapperOpaque; } });
|
|
32
|
+
Object.defineProperty(exports, "WrapperOpaque", { enumerable: true, get: function () { return WrapperOpaque_js_1.WrapperOpaque; } });
|
package/cjs/index.js
CHANGED
package/cjs/native/Bool.js
CHANGED
|
@@ -104,9 +104,8 @@ class bool extends Boolean {
|
|
|
104
104
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
105
105
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
106
106
|
*/
|
|
107
|
-
|
|
108
|
-
toU8a(isBare) {
|
|
107
|
+
toU8a(_isBare) {
|
|
109
108
|
return new Uint8Array([this.valueOf() ? 1 : 0]);
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
exports.bool = bool;
|
|
111
|
+
exports.bool = bool;
|
package/cjs/native/Date.js
CHANGED
|
@@ -135,9 +135,8 @@ class CodecDate extends Date {
|
|
|
135
135
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
136
136
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
137
137
|
*/
|
|
138
|
-
|
|
139
|
-
toU8a(isBare) {
|
|
138
|
+
toU8a(_isBare) {
|
|
140
139
|
return (0, util_1.bnToU8a)(this.toNumber(), U8A_OPTS);
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
|
-
exports.CodecDate = CodecDate;
|
|
142
|
+
exports.CodecDate = CodecDate;
|
package/cjs/native/Float.js
CHANGED
package/cjs/native/Json.js
CHANGED
|
@@ -110,9 +110,8 @@ class Json extends Map {
|
|
|
110
110
|
/**
|
|
111
111
|
* @description Unimplemented, will throw
|
|
112
112
|
*/
|
|
113
|
-
|
|
114
|
-
toU8a(isBare) {
|
|
113
|
+
toU8a(_isBare) {
|
|
115
114
|
throw new Error('Unimplemented');
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
exports.Json = Json;
|
|
117
|
+
exports.Json = Json;
|
package/cjs/native/Raw.js
CHANGED
|
@@ -125,8 +125,7 @@ class Raw extends Uint8Array {
|
|
|
125
125
|
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
|
126
126
|
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
|
127
127
|
*/
|
|
128
|
-
|
|
129
|
-
toU8a(isBare) {
|
|
128
|
+
toU8a(_isBare) {
|
|
130
129
|
return Uint8Array.from(this);
|
|
131
130
|
}
|
|
132
131
|
/**
|
|
@@ -139,4 +138,4 @@ class Raw extends Uint8Array {
|
|
|
139
138
|
return (0, util_1.u8aToString)(this);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
|
-
exports.Raw = Raw;
|
|
141
|
+
exports.Raw = Raw;
|