@polkadot/types-codec 10.10.1 → 10.11.2

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 (82) hide show
  1. package/abstract/Array.js +4 -0
  2. package/abstract/Base.js +5 -0
  3. package/abstract/Int.js +7 -0
  4. package/abstract/Object.js +5 -0
  5. package/base/Compact.js +6 -0
  6. package/base/DoNotConstruct.js +4 -0
  7. package/base/Enum.js +19 -11
  8. package/base/Null.js +6 -3
  9. package/base/Option.js +7 -1
  10. package/base/Tuple.js +1 -0
  11. package/base/Vec.js +1 -0
  12. package/base/VecFixed.js +1 -0
  13. package/cjs/abstract/Array.js +4 -0
  14. package/cjs/abstract/Base.js +5 -0
  15. package/cjs/abstract/Int.js +7 -0
  16. package/cjs/abstract/Object.js +5 -0
  17. package/cjs/base/Compact.js +6 -0
  18. package/cjs/base/DoNotConstruct.js +4 -0
  19. package/cjs/base/Enum.js +19 -11
  20. package/cjs/base/Null.js +6 -3
  21. package/cjs/base/Option.js +7 -1
  22. package/cjs/base/Tuple.js +1 -0
  23. package/cjs/base/Vec.js +1 -0
  24. package/cjs/base/VecFixed.js +1 -0
  25. package/cjs/extended/BTreeSet.js +5 -0
  26. package/cjs/extended/BitVec.js +2 -0
  27. package/cjs/extended/Map.js +7 -0
  28. package/cjs/extended/Range.js +1 -0
  29. package/cjs/extended/WrapperKeepOpaque.js +3 -0
  30. package/cjs/native/Bool.js +4 -1
  31. package/cjs/native/Date.js +4 -1
  32. package/cjs/native/Float.js +6 -0
  33. package/cjs/native/Json.js +4 -0
  34. package/cjs/native/Raw.js +4 -0
  35. package/cjs/native/Set.js +27 -23
  36. package/cjs/native/Struct.js +14 -10
  37. package/cjs/native/Text.js +5 -1
  38. package/cjs/packageInfo.js +1 -1
  39. package/cjs/primitive/F32.js +2 -5
  40. package/cjs/primitive/F64.js +2 -5
  41. package/cjs/primitive/I128.js +2 -5
  42. package/cjs/primitive/I16.js +2 -5
  43. package/cjs/primitive/I256.js +2 -5
  44. package/cjs/primitive/I32.js +2 -5
  45. package/cjs/primitive/I64.js +2 -5
  46. package/cjs/primitive/I8.js +2 -5
  47. package/cjs/primitive/U128.js +2 -5
  48. package/cjs/primitive/U16.js +2 -5
  49. package/cjs/primitive/U256.js +2 -5
  50. package/cjs/primitive/U32.js +2 -5
  51. package/cjs/primitive/U64.js +2 -5
  52. package/cjs/primitive/U8.js +2 -5
  53. package/extended/BTreeSet.js +5 -0
  54. package/extended/BitVec.js +2 -0
  55. package/extended/Map.js +7 -0
  56. package/extended/Range.js +1 -0
  57. package/extended/WrapperKeepOpaque.js +3 -0
  58. package/native/Bool.js +4 -1
  59. package/native/Date.js +4 -1
  60. package/native/Float.js +6 -0
  61. package/native/Json.js +4 -0
  62. package/native/Raw.js +4 -0
  63. package/native/Set.js +27 -23
  64. package/native/Struct.js +14 -10
  65. package/native/Text.js +5 -1
  66. package/package.json +4 -4
  67. package/packageInfo.js +1 -1
  68. package/primitive/F32.js +2 -5
  69. package/primitive/F64.js +2 -5
  70. package/primitive/I128.js +2 -5
  71. package/primitive/I16.js +2 -5
  72. package/primitive/I256.js +2 -5
  73. package/primitive/I32.js +2 -5
  74. package/primitive/I64.js +2 -5
  75. package/primitive/I8.js +2 -5
  76. package/primitive/U128.js +2 -5
  77. package/primitive/U16.js +2 -5
  78. package/primitive/U256.js +2 -5
  79. package/primitive/U32.js +2 -5
  80. package/primitive/U64.js +2 -5
  81. package/primitive/U8.js +2 -5
  82. package/types/registry.d.ts +1 -0
package/primitive/U16.js CHANGED
@@ -5,9 +5,6 @@ import { UInt } from '../base/UInt.js';
5
5
  * A 16-bit unsigned integer
6
6
  */
7
7
  export class u16 extends UInt.with(16) {
8
- constructor() {
9
- super(...arguments);
10
- // NOTE without this, we cannot properly determine extensions
11
- this.__UIntType = 'u16';
12
- }
8
+ // NOTE without this, we cannot properly determine extensions
9
+ __UIntType = 'u16';
13
10
  }
package/primitive/U256.js CHANGED
@@ -5,9 +5,6 @@ import { UInt } from '../base/UInt.js';
5
5
  * A 256-bit unsigned integer
6
6
  */
7
7
  export class u256 extends UInt.with(256) {
8
- constructor() {
9
- super(...arguments);
10
- // NOTE without this, we cannot properly determine extensions
11
- this.__UIntType = 'u256';
12
- }
8
+ // NOTE without this, we cannot properly determine extensions
9
+ __UIntType = 'u256';
13
10
  }
package/primitive/U32.js CHANGED
@@ -5,9 +5,6 @@ import { UInt } from '../base/UInt.js';
5
5
  * A 32-bit unsigned integer
6
6
  */
7
7
  export class u32 extends UInt.with(32) {
8
- constructor() {
9
- super(...arguments);
10
- // NOTE without this, we cannot properly determine extensions
11
- this.__UIntType = 'u32';
12
- }
8
+ // NOTE without this, we cannot properly determine extensions
9
+ __UIntType = 'u32';
13
10
  }
package/primitive/U64.js CHANGED
@@ -5,9 +5,6 @@ import { UInt } from '../base/UInt.js';
5
5
  * A 64-bit unsigned integer
6
6
  */
7
7
  export class u64 extends UInt.with(64) {
8
- constructor() {
9
- super(...arguments);
10
- // NOTE without this, we cannot properly determine extensions
11
- this.__UIntType = 'u64';
12
- }
8
+ // NOTE without this, we cannot properly determine extensions
9
+ __UIntType = 'u64';
13
10
  }
package/primitive/U8.js CHANGED
@@ -5,9 +5,6 @@ import { UInt } from '../base/UInt.js';
5
5
  * An 8-bit unsigned integer
6
6
  */
7
7
  export class u8 extends UInt.with(8) {
8
- constructor() {
9
- super(...arguments);
10
- // NOTE without this, we cannot properly determine extensions
11
- this.__UIntType = 'u8';
12
- }
8
+ // NOTE without this, we cannot properly determine extensions
9
+ __UIntType = 'u8';
13
10
  }
@@ -33,6 +33,7 @@ export interface CallFunction<A extends AnyTuple = AnyTuple, M = any> extends Ca
33
33
  }
34
34
  export interface Registry {
35
35
  readonly chainDecimals: number[];
36
+ readonly chainIsEthereum: boolean;
36
37
  readonly chainSS58: number | undefined;
37
38
  readonly chainTokens: string[];
38
39
  createdAtHash?: IU8a;