@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.
Files changed (170) hide show
  1. package/abstract/Array.js +1 -1
  2. package/abstract/Base.js +1 -1
  3. package/abstract/Int.d.ts +2 -2
  4. package/abstract/Int.js +3 -5
  5. package/abstract/Object.js +1 -1
  6. package/abstract/index.js +1 -1
  7. package/base/Compact.d.ts +1 -1
  8. package/base/Compact.js +2 -3
  9. package/base/DoNotConstruct.js +1 -1
  10. package/base/Enum.js +1 -1
  11. package/base/Int.js +1 -1
  12. package/base/Null.d.ts +1 -1
  13. package/base/Null.js +2 -3
  14. package/base/Option.js +1 -1
  15. package/base/Result.js +1 -1
  16. package/base/Tuple.js +1 -1
  17. package/base/UInt.js +1 -1
  18. package/base/Vec.d.ts +1 -1
  19. package/base/Vec.js +6 -6
  20. package/base/VecAny.js +1 -1
  21. package/base/VecFixed.js +1 -1
  22. package/base/index.js +1 -1
  23. package/bundle.js +1 -1
  24. package/cjs/abstract/Array.js +1 -1
  25. package/cjs/abstract/Base.js +1 -1
  26. package/cjs/abstract/Int.js +3 -5
  27. package/cjs/abstract/Object.js +1 -1
  28. package/cjs/abstract/index.js +1 -1
  29. package/cjs/base/Compact.js +2 -3
  30. package/cjs/base/DoNotConstruct.js +1 -1
  31. package/cjs/base/Enum.js +1 -1
  32. package/cjs/base/Int.js +1 -1
  33. package/cjs/base/Null.js +2 -3
  34. package/cjs/base/Option.js +1 -1
  35. package/cjs/base/Result.js +1 -1
  36. package/cjs/base/Tuple.js +1 -1
  37. package/cjs/base/UInt.js +1 -1
  38. package/cjs/base/Vec.js +6 -6
  39. package/cjs/base/VecAny.js +1 -1
  40. package/cjs/base/VecFixed.js +1 -1
  41. package/cjs/base/index.js +1 -1
  42. package/cjs/bundle.js +1 -1
  43. package/cjs/detectOther.js +1 -1
  44. package/cjs/detectPackage.js +1 -1
  45. package/cjs/extended/BTreeMap.js +1 -1
  46. package/cjs/extended/BTreeSet.js +1 -1
  47. package/cjs/extended/BitVec.js +1 -1
  48. package/cjs/extended/Bytes.js +1 -1
  49. package/cjs/extended/HashMap.js +1 -1
  50. package/cjs/extended/Linkage.js +1 -1
  51. package/cjs/extended/Map.js +1 -1
  52. package/cjs/extended/OptionBool.js +1 -1
  53. package/cjs/extended/Range.js +1 -1
  54. package/cjs/extended/RangeInclusive.js +1 -1
  55. package/cjs/extended/Type.js +1 -1
  56. package/cjs/extended/U8aFixed.js +1 -1
  57. package/cjs/extended/WrapperKeepOpaque.js +1 -1
  58. package/cjs/extended/WrapperOpaque.js +1 -1
  59. package/cjs/extended/index.js +1 -1
  60. package/cjs/index.js +1 -1
  61. package/cjs/native/Bool.js +2 -3
  62. package/cjs/native/Date.js +2 -3
  63. package/cjs/native/Float.js +1 -1
  64. package/cjs/native/Json.js +2 -3
  65. package/cjs/native/Raw.js +2 -3
  66. package/cjs/native/Set.js +2 -3
  67. package/cjs/native/Struct.data.js +1 -1
  68. package/cjs/native/Struct.js +2 -2
  69. package/cjs/native/Text.js +1 -1
  70. package/cjs/native/index.js +1 -1
  71. package/cjs/packageInfo.js +1 -1
  72. package/cjs/primitive/F32.js +1 -1
  73. package/cjs/primitive/F64.js +1 -1
  74. package/cjs/primitive/I128.js +1 -1
  75. package/cjs/primitive/I16.js +1 -1
  76. package/cjs/primitive/I256.js +1 -1
  77. package/cjs/primitive/I32.js +1 -1
  78. package/cjs/primitive/I64.js +1 -1
  79. package/cjs/primitive/I8.js +1 -1
  80. package/cjs/primitive/U128.js +1 -1
  81. package/cjs/primitive/U16.js +1 -1
  82. package/cjs/primitive/U256.js +1 -1
  83. package/cjs/primitive/U32.js +1 -1
  84. package/cjs/primitive/U64.js +1 -1
  85. package/cjs/primitive/U8.js +1 -1
  86. package/cjs/primitive/USize.js +1 -1
  87. package/cjs/primitive/index.js +1 -1
  88. package/cjs/types/codec.js +1 -1
  89. package/cjs/types/helpers.js +1 -1
  90. package/cjs/types/index.js +1 -1
  91. package/cjs/types/interfaces.js +1 -1
  92. package/cjs/types/registry.js +1 -1
  93. package/cjs/utils/compareArray.js +1 -1
  94. package/cjs/utils/compareMap.js +1 -1
  95. package/cjs/utils/compareSet.js +1 -1
  96. package/cjs/utils/decodeU8a.js +2 -2
  97. package/cjs/utils/index.js +1 -1
  98. package/cjs/utils/mapToTypeMap.js +1 -1
  99. package/cjs/utils/sanitize.js +1 -1
  100. package/cjs/utils/sortValues.js +1 -1
  101. package/cjs/utils/typeToConstructor.js +1 -1
  102. package/cjs/utils/typesToMap.js +1 -1
  103. package/cjs/utils/util.js +1 -1
  104. package/detectOther.js +1 -1
  105. package/detectPackage.js +1 -1
  106. package/extended/BTreeMap.js +1 -1
  107. package/extended/BTreeSet.js +1 -1
  108. package/extended/BitVec.js +1 -1
  109. package/extended/Bytes.js +1 -1
  110. package/extended/HashMap.js +1 -1
  111. package/extended/Linkage.js +1 -1
  112. package/extended/Map.js +1 -1
  113. package/extended/OptionBool.js +1 -1
  114. package/extended/Range.js +1 -1
  115. package/extended/RangeInclusive.js +1 -1
  116. package/extended/Type.js +1 -1
  117. package/extended/U8aFixed.js +1 -1
  118. package/extended/WrapperKeepOpaque.js +1 -1
  119. package/extended/WrapperOpaque.js +1 -1
  120. package/extended/index.js +1 -1
  121. package/index.js +1 -1
  122. package/native/Bool.d.ts +1 -1
  123. package/native/Bool.js +2 -3
  124. package/native/Date.d.ts +1 -1
  125. package/native/Date.js +2 -3
  126. package/native/Float.js +1 -1
  127. package/native/Json.d.ts +1 -1
  128. package/native/Json.js +2 -3
  129. package/native/Raw.d.ts +1 -1
  130. package/native/Raw.js +2 -3
  131. package/native/Set.d.ts +1 -1
  132. package/native/Set.js +2 -3
  133. package/native/Struct.data.js +1 -1
  134. package/native/Struct.js +2 -2
  135. package/native/Text.js +1 -1
  136. package/native/index.js +1 -1
  137. package/package.json +4 -6
  138. package/packageInfo.js +1 -1
  139. package/primitive/F32.js +1 -1
  140. package/primitive/F64.js +1 -1
  141. package/primitive/I128.js +1 -1
  142. package/primitive/I16.js +1 -1
  143. package/primitive/I256.js +1 -1
  144. package/primitive/I32.js +1 -1
  145. package/primitive/I64.js +1 -1
  146. package/primitive/I8.js +1 -1
  147. package/primitive/U128.js +1 -1
  148. package/primitive/U16.js +1 -1
  149. package/primitive/U256.js +1 -1
  150. package/primitive/U32.js +1 -1
  151. package/primitive/U64.js +1 -1
  152. package/primitive/U8.js +1 -1
  153. package/primitive/USize.js +1 -1
  154. package/primitive/index.js +1 -1
  155. package/types/codec.js +1 -1
  156. package/types/helpers.js +1 -1
  157. package/types/index.js +1 -1
  158. package/types/interfaces.js +1 -1
  159. package/types/registry.js +1 -1
  160. package/utils/compareArray.js +1 -1
  161. package/utils/compareMap.js +1 -1
  162. package/utils/compareSet.js +1 -1
  163. package/utils/decodeU8a.js +2 -2
  164. package/utils/index.js +1 -1
  165. package/utils/mapToTypeMap.js +1 -1
  166. package/utils/sanitize.js +1 -1
  167. package/utils/sortValues.js +1 -1
  168. package/utils/typeToConstructor.js +1 -1
  169. package/utils/typesToMap.js +1 -1
  170. package/utils/util.js +1 -1
@@ -14,4 +14,4 @@ class u32 extends UInt_js_1.UInt.with(32) {
14
14
  this.__UIntType = 'u32';
15
15
  }
16
16
  }
17
- exports.u32 = u32;
17
+ exports.u32 = u32;
@@ -14,4 +14,4 @@ class u64 extends UInt_js_1.UInt.with(64) {
14
14
  this.__UIntType = 'u64';
15
15
  }
16
16
  }
17
- exports.u64 = u64;
17
+ exports.u64 = u64;
@@ -14,4 +14,4 @@ class u8 extends UInt_js_1.UInt.with(8) {
14
14
  this.__UIntType = 'u8';
15
15
  }
16
16
  }
17
- exports.u8 = u8;
17
+ exports.u8 = u8;
@@ -15,4 +15,4 @@ class usize extends U32_js_1.u32 {
15
15
  throw new Error('The `usize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally u64) and WASM (always u32) code. Use one of the `u32` or `u64` types explicitly.');
16
16
  }
17
17
  }
18
- exports.usize = usize;
18
+ exports.usize = usize;
@@ -45,4 +45,4 @@ Object.defineProperty(exports, "u256", { enumerable: true, get: function () { re
45
45
  Object.defineProperty(exports, "U256", { enumerable: true, get: function () { return U256_js_1.u256; } });
46
46
  var USize_js_1 = require("./USize.js");
47
47
  Object.defineProperty(exports, "usize", { enumerable: true, get: function () { return USize_js_1.usize; } });
48
- Object.defineProperty(exports, "USize", { enumerable: true, get: function () { return USize_js_1.usize; } });
48
+ Object.defineProperty(exports, "USize", { enumerable: true, get: function () { return USize_js_1.usize; } });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,4 +4,4 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./codec.js"), exports);
5
5
  tslib_1.__exportStar(require("./helpers.js"), exports);
6
6
  tslib_1.__exportStar(require("./interfaces.js"), exports);
7
- tslib_1.__exportStar(require("./registry.js"), exports);
7
+ tslib_1.__exportStar(require("./registry.js"), exports);
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,4 +11,4 @@ function compareArray(a, b) {
11
11
  }
12
12
  return false;
13
13
  }
14
- exports.compareArray = compareArray;
14
+ exports.compareArray = compareArray;
@@ -28,4 +28,4 @@ function compareMap(a, b) {
28
28
  }
29
29
  return false;
30
30
  }
31
- exports.compareMap = compareMap;
31
+ exports.compareMap = compareMap;
@@ -18,4 +18,4 @@ function compareSet(a, b) {
18
18
  }
19
19
  return false;
20
20
  }
21
- exports.compareSet = compareSet;
21
+ exports.compareSet = compareSet;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.decodeU8aVec = exports.decodeU8aStruct = exports.decodeU8a = void 0;
4
4
  const util_1 = require("@polkadot/util");
5
5
  /** @internal */
6
- function formatFailure(registry, fn, result, { message }, u8a, i, count, Type, key) {
6
+ function formatFailure(registry, fn, _result, { message }, u8a, i, count, Type, key) {
7
7
  let type = '';
8
8
  try {
9
9
  type = `: ${new Type(registry).toRawType()}`;
@@ -91,4 +91,4 @@ function decodeU8aVec(registry, result, u8a, startAt, Type) {
91
91
  }
92
92
  return [offset, offset - startAt];
93
93
  }
94
- exports.decodeU8aVec = decodeU8aVec;
94
+ exports.decodeU8aVec = decodeU8aVec;
@@ -22,4 +22,4 @@ Object.defineProperty(exports, "sortAsc", { enumerable: true, get: function () {
22
22
  Object.defineProperty(exports, "sortSet", { enumerable: true, get: function () { return sortValues_js_1.sortSet; } });
23
23
  Object.defineProperty(exports, "sortMap", { enumerable: true, get: function () { return sortValues_js_1.sortMap; } });
24
24
  var typesToMap_js_1 = require("./typesToMap.js");
25
- Object.defineProperty(exports, "typesToMap", { enumerable: true, get: function () { return typesToMap_js_1.typesToMap; } });
25
+ Object.defineProperty(exports, "typesToMap", { enumerable: true, get: function () { return typesToMap_js_1.typesToMap; } });
@@ -15,4 +15,4 @@ function mapToTypeMap(registry, input) {
15
15
  }
16
16
  return output;
17
17
  }
18
- exports.mapToTypeMap = mapToTypeMap;
18
+ exports.mapToTypeMap = mapToTypeMap;
@@ -231,4 +231,4 @@ function sanitize(value) {
231
231
  sanitizeMap.set(startValue, result);
232
232
  return result;
233
233
  }
234
- exports.sanitize = sanitize;
234
+ exports.sanitize = sanitize;
@@ -63,4 +63,4 @@ exports.sortSet = sortSet;
63
63
  function sortMap(map) {
64
64
  return new Map(Array.from(map.entries()).sort(([keyA], [keyB]) => sortAsc(keyA, keyB)));
65
65
  }
66
- exports.sortMap = sortMap;
66
+ exports.sortMap = sortMap;
@@ -7,4 +7,4 @@ function typeToConstructor(registry, type) {
7
7
  ? registry.createClassUnsafe(type)
8
8
  : type);
9
9
  }
10
- exports.typeToConstructor = typeToConstructor;
10
+ exports.typeToConstructor = typeToConstructor;
@@ -8,4 +8,4 @@ function typesToMap(registry, [Types, keys]) {
8
8
  }
9
9
  return result;
10
10
  }
11
- exports.typesToMap = typesToMap;
11
+ exports.typesToMap = typesToMap;
package/cjs/utils/util.js CHANGED
@@ -5,4 +5,4 @@ const util_1 = require("@polkadot/util");
5
5
  function hasEq(o) {
6
6
  return (0, util_1.isFunction)(o.eq);
7
7
  }
8
- exports.hasEq = hasEq;
8
+ exports.hasEq = hasEq;
package/detectOther.js CHANGED
@@ -1 +1 @@
1
- export default [];
1
+ export default [];
package/detectPackage.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { detectPackage } from '@polkadot/util';
2
2
  import others from './detectOther.js';
3
3
  import { packageInfo } from './packageInfo.js';
4
- detectPackage(packageInfo, null, others);
4
+ detectPackage(packageInfo, null, others);
@@ -7,4 +7,4 @@ export class BTreeMap extends CodecMap {
7
7
  }
8
8
  };
9
9
  }
10
- }
10
+ }
@@ -181,4 +181,4 @@ export class BTreeSet extends Set {
181
181
  return u8aConcatStrict(encoded);
182
182
  }
183
183
  }
184
- _BTreeSet_ValClass = new WeakMap();
184
+ _BTreeSet_ValClass = new WeakMap();
@@ -78,4 +78,4 @@ export class BitVec extends Raw {
78
78
  : u8aConcatStrict([compactToU8a(__classPrivateFieldGet(this, _BitVec_decodedLength, "f")), bitVec]);
79
79
  }
80
80
  }
81
- _BitVec_decodedLength = new WeakMap(), _BitVec_isMsb = new WeakMap();
81
+ _BitVec_decodedLength = new WeakMap(), _BitVec_isMsb = new WeakMap();
package/extended/Bytes.js CHANGED
@@ -67,4 +67,4 @@ export class Bytes extends Raw {
67
67
  ? super.toU8a(isBare)
68
68
  : compactAddLength(this);
69
69
  }
70
- }
70
+ }
@@ -7,4 +7,4 @@ export class HashMap extends CodecMap {
7
7
  }
8
8
  };
9
9
  }
10
- }
10
+ }
@@ -56,4 +56,4 @@ export class LinkageResult extends Tuple {
56
56
  Values: Vec.with(TypeValue)
57
57
  }, [keys, values]);
58
58
  }
59
- }
59
+ }
package/extended/Map.js CHANGED
@@ -196,4 +196,4 @@ export class CodecMap extends Map {
196
196
  return u8aConcatStrict(encoded);
197
197
  }
198
198
  }
199
- _CodecMap_KeyClass = new WeakMap(), _CodecMap_ValClass = new WeakMap(), _CodecMap_type = new WeakMap();
199
+ _CodecMap_KeyClass = new WeakMap(), _CodecMap_ValClass = new WeakMap(), _CodecMap_type = new WeakMap();
@@ -69,4 +69,4 @@ export class OptionBool extends Option {
69
69
  ? new Uint8Array([this.isTrue ? 1 : 2])
70
70
  : new Uint8Array([0]);
71
71
  }
72
- }
72
+ }
package/extended/Range.js CHANGED
@@ -38,4 +38,4 @@ export class Range extends Tuple {
38
38
  return `${__classPrivateFieldGet(this, _Range_rangeName, "f")}<${this.start.toRawType()}>`;
39
39
  }
40
40
  }
41
- _Range_rangeName = new WeakMap();
41
+ _Range_rangeName = new WeakMap();
@@ -10,4 +10,4 @@ export class RangeInclusive extends Range {
10
10
  }
11
11
  };
12
12
  }
13
- }
13
+ }
package/extended/Type.js CHANGED
@@ -18,4 +18,4 @@ export class Type extends Text {
18
18
  toRawType() {
19
19
  return 'Type';
20
20
  }
21
- }
21
+ }
@@ -39,4 +39,4 @@ export class U8aFixed extends Raw {
39
39
  toRawType() {
40
40
  return `[u8;${this.length}]`;
41
41
  }
42
- }
42
+ }
@@ -99,4 +99,4 @@ export class WrapperKeepOpaque extends Bytes {
99
99
  return __classPrivateFieldGet(this, _WrapperKeepOpaque_decoded, "f");
100
100
  }
101
101
  }
102
- _WrapperKeepOpaque_Type = new WeakMap(), _WrapperKeepOpaque_decoded = new WeakMap(), _WrapperKeepOpaque_opaqueName = new WeakMap();
102
+ _WrapperKeepOpaque_Type = new WeakMap(), _WrapperKeepOpaque_decoded = new WeakMap(), _WrapperKeepOpaque_opaqueName = new WeakMap();
@@ -16,4 +16,4 @@ export class WrapperOpaque extends WrapperKeepOpaque {
16
16
  get inner() {
17
17
  return this.unwrap();
18
18
  }
19
- }
19
+ }
package/extended/index.js CHANGED
@@ -11,4 +11,4 @@ export { RangeInclusive } from './RangeInclusive.js';
11
11
  export { Type } from './Type.js';
12
12
  export { U8aFixed } from './U8aFixed.js';
13
13
  export { WrapperKeepOpaque } from './WrapperKeepOpaque.js';
14
- export { WrapperOpaque } from './WrapperOpaque.js';
14
+ export { WrapperOpaque } from './WrapperOpaque.js';
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import './detectPackage.js';
2
- export * from './bundle.js';
2
+ export * from './bundle.js';
package/native/Bool.d.ts CHANGED
@@ -68,5 +68,5 @@ export declare class bool extends Boolean implements Codec {
68
68
  * @description Encodes the value as a Uint8Array as per the SCALE specifications
69
69
  * @param isBare true when the value has none of the type-specific prefixes (internal)
70
70
  */
71
- toU8a(isBare?: boolean): Uint8Array;
71
+ toU8a(_isBare?: boolean): Uint8Array;
72
72
  }
package/native/Bool.js CHANGED
@@ -101,8 +101,7 @@ export class bool extends Boolean {
101
101
  * @description Encodes the value as a Uint8Array as per the SCALE specifications
102
102
  * @param isBare true when the value has none of the type-specific prefixes (internal)
103
103
  */
104
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
105
- toU8a(isBare) {
104
+ toU8a(_isBare) {
106
105
  return new Uint8Array([this.valueOf() ? 1 : 0]);
107
106
  }
108
- }
107
+ }
package/native/Date.d.ts CHANGED
@@ -82,5 +82,5 @@ export declare class CodecDate extends Date implements INumber {
82
82
  * @description Encodes the value as a Uint8Array as per the SCALE specifications
83
83
  * @param isBare true when the value has none of the type-specific prefixes (internal)
84
84
  */
85
- toU8a(isBare?: boolean): Uint8Array;
85
+ toU8a(_isBare?: boolean): Uint8Array;
86
86
  }
package/native/Date.js CHANGED
@@ -132,8 +132,7 @@ export class CodecDate extends Date {
132
132
  * @description Encodes the value as a Uint8Array as per the SCALE specifications
133
133
  * @param isBare true when the value has none of the type-specific prefixes (internal)
134
134
  */
135
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
136
- toU8a(isBare) {
135
+ toU8a(_isBare) {
137
136
  return bnToU8a(this.toNumber(), U8A_OPTS);
138
137
  }
139
- }
138
+ }
package/native/Float.js CHANGED
@@ -100,4 +100,4 @@ export class Float extends Number {
100
100
  return floatToU8a(this, { bitLength: __classPrivateFieldGet(this, _Float_bitLength, "f") });
101
101
  }
102
102
  }
103
- _Float_bitLength = new WeakMap();
103
+ _Float_bitLength = new WeakMap();
package/native/Json.d.ts CHANGED
@@ -65,5 +65,5 @@ export declare class Json extends Map<string, any> implements Codec {
65
65
  /**
66
66
  * @description Unimplemented, will throw
67
67
  */
68
- toU8a(isBare?: boolean): Uint8Array;
68
+ toU8a(_isBare?: boolean): Uint8Array;
69
69
  }
package/native/Json.js CHANGED
@@ -107,8 +107,7 @@ export class Json extends Map {
107
107
  /**
108
108
  * @description Unimplemented, will throw
109
109
  */
110
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
111
- toU8a(isBare) {
110
+ toU8a(_isBare) {
112
111
  throw new Error('Unimplemented');
113
112
  }
114
- }
113
+ }
package/native/Raw.d.ts CHANGED
@@ -80,7 +80,7 @@ export declare class Raw extends Uint8Array implements IU8a {
80
80
  * @description Encodes the value as a Uint8Array as per the SCALE specifications
81
81
  * @param isBare true when the value has none of the type-specific prefixes (internal)
82
82
  */
83
- toU8a(isBare?: boolean): Uint8Array;
83
+ toU8a(_isBare?: boolean): Uint8Array;
84
84
  /**
85
85
  * @description Returns the wrapped data as a UTF-8 string
86
86
  */
package/native/Raw.js CHANGED
@@ -122,8 +122,7 @@ export class Raw extends Uint8Array {
122
122
  * @description Encodes the value as a Uint8Array as per the SCALE specifications
123
123
  * @param isBare true when the value has none of the type-specific prefixes (internal)
124
124
  */
125
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
126
- toU8a(isBare) {
125
+ toU8a(_isBare) {
127
126
  return Uint8Array.from(this);
128
127
  }
129
128
  /**
@@ -135,4 +134,4 @@ export class Raw extends Uint8Array {
135
134
  }
136
135
  return u8aToString(this);
137
136
  }
138
- }
137
+ }
package/native/Set.d.ts CHANGED
@@ -81,6 +81,6 @@ export declare class CodecSet extends Set<string> implements ISet<string> {
81
81
  * @description Encodes the value as a Uint8Array as per the SCALE specifications
82
82
  * @param isBare true when the value has none of the type-specific prefixes (internal)
83
83
  */
84
- toU8a(isBare?: boolean): Uint8Array;
84
+ toU8a(_isBare?: boolean): Uint8Array;
85
85
  }
86
86
  export {};
package/native/Set.js CHANGED
@@ -205,12 +205,11 @@ export class CodecSet extends Set {
205
205
  * @description Encodes the value as a Uint8Array as per the SCALE specifications
206
206
  * @param isBare true when the value has none of the type-specific prefixes (internal)
207
207
  */
208
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
209
- toU8a(isBare) {
208
+ toU8a(_isBare) {
210
209
  return bnToU8a(this.valueEncoded, {
211
210
  bitLength: __classPrivateFieldGet(this, _CodecSet_byteLength, "f") * 8,
212
211
  isLe: true
213
212
  });
214
213
  }
215
214
  }
216
- _CodecSet_allowed = new WeakMap(), _CodecSet_byteLength = new WeakMap();
215
+ _CodecSet_allowed = new WeakMap(), _CodecSet_byteLength = new WeakMap();