@polkadot/types-codec 6.12.2-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.
- package/abstract/AbstractArray.cjs +208 -0
- package/abstract/AbstractArray.d.ts +84 -0
- package/abstract/AbstractArray.js +197 -0
- package/abstract/AbstractInt.cjs +254 -0
- package/abstract/AbstractInt.d.ts +75 -0
- package/abstract/AbstractInt.js +231 -0
- package/abstract/index.cjs +21 -0
- package/abstract/index.d.ts +2 -0
- package/abstract/index.js +4 -0
- package/base/Base.cjs +109 -0
- package/base/Base.d.ts +54 -0
- package/base/Base.js +100 -0
- package/base/Compact.cjs +201 -0
- package/base/Compact.d.ts +83 -0
- package/base/Compact.js +186 -0
- package/base/DoNotConstruct.cjs +101 -0
- package/base/DoNotConstruct.d.ts +33 -0
- package/base/DoNotConstruct.js +88 -0
- package/base/Enum.cjs +437 -0
- package/base/Enum.d.ts +101 -0
- package/base/Enum.js +413 -0
- package/base/Int.cjs +45 -0
- package/base/Int.d.ts +16 -0
- package/base/Int.js +33 -0
- package/base/Null.cjs +111 -0
- package/base/Null.d.ts +54 -0
- package/base/Null.js +101 -0
- package/base/Option.cjs +256 -0
- package/base/Option.d.ts +88 -0
- package/base/Option.js +240 -0
- package/base/Result.cjs +109 -0
- package/base/Result.d.ts +46 -0
- package/base/Result.js +98 -0
- package/base/Tuple.cjs +132 -0
- package/base/Tuple.d.ts +39 -0
- package/base/Tuple.js +116 -0
- package/base/UInt.cjs +39 -0
- package/base/UInt.d.ts +15 -0
- package/base/UInt.js +29 -0
- package/base/Vec.cjs +126 -0
- package/base/Vec.d.ts +28 -0
- package/base/Vec.js +104 -0
- package/base/VecAny.cjs +31 -0
- package/base/VecAny.d.ts +15 -0
- package/base/VecAny.js +21 -0
- package/base/VecFixed.cjs +111 -0
- package/base/VecFixed.d.ts +26 -0
- package/base/VecFixed.js +93 -0
- package/base/index.cjs +109 -0
- package/base/index.d.ts +13 -0
- package/base/index.js +15 -0
- package/bundle.cjs +100 -0
- package/bundle.d.ts +7 -0
- package/bundle.js +9 -0
- package/detectPackage.cjs +9 -0
- package/detectPackage.d.ts +1 -0
- package/detectPackage.js +5 -0
- package/extended/BTreeMap.cjs +24 -0
- package/extended/BTreeMap.d.ts +5 -0
- package/extended/BTreeMap.js +14 -0
- package/extended/BTreeSet.cjs +227 -0
- package/extended/BTreeSet.d.ts +55 -0
- package/extended/BTreeSet.js +212 -0
- package/extended/BitVec.cjs +97 -0
- package/extended/BitVec.d.ts +26 -0
- package/extended/BitVec.js +82 -0
- package/extended/Bytes.cjs +86 -0
- package/extended/Bytes.d.ts +25 -0
- package/extended/Bytes.js +75 -0
- package/extended/HashMap.cjs +24 -0
- package/extended/HashMap.d.ts +5 -0
- package/extended/HashMap.js +14 -0
- package/extended/Linkage.cjs +89 -0
- package/extended/Linkage.d.ts +31 -0
- package/extended/Linkage.js +71 -0
- package/extended/Map.cjs +244 -0
- package/extended/Map.d.ts +50 -0
- package/extended/Map.js +225 -0
- package/extended/Range.cjs +92 -0
- package/extended/Range.d.ts +30 -0
- package/extended/Range.js +75 -0
- package/extended/Type.cjs +39 -0
- package/extended/Type.d.ts +16 -0
- package/extended/Type.js +27 -0
- package/extended/U8aFixed.cjs +66 -0
- package/extended/U8aFixed.d.ts +16 -0
- package/extended/U8aFixed.js +53 -0
- package/extended/WrapperOpaque.cjs +68 -0
- package/extended/WrapperOpaque.d.ts +18 -0
- package/extended/WrapperOpaque.js +57 -0
- package/extended/index.cjs +105 -0
- package/extended/index.d.ts +11 -0
- package/extended/index.js +13 -0
- package/index.cjs +20 -0
- package/index.d.ts +2 -0
- package/index.js +4 -0
- package/native/Bool.cjs +141 -0
- package/native/Bool.d.ts +62 -0
- package/native/Bool.js +130 -0
- package/native/Date.cjs +170 -0
- package/native/Date.d.ts +76 -0
- package/native/Date.js +158 -0
- package/native/Json.cjs +133 -0
- package/native/Json.d.ts +55 -0
- package/native/Json.js +117 -0
- package/native/Raw.cjs +192 -0
- package/native/Raw.d.ts +90 -0
- package/native/Raw.js +182 -0
- package/native/Set.cjs +268 -0
- package/native/Set.d.ts +76 -0
- package/native/Set.js +251 -0
- package/native/Struct.cjs +289 -0
- package/native/Struct.d.ts +92 -0
- package/native/Struct.js +273 -0
- package/native/Text.cjs +193 -0
- package/native/Text.d.ts +71 -0
- package/native/Text.js +178 -0
- package/native/index.cjs +79 -0
- package/native/index.d.ts +7 -0
- package/native/index.js +9 -0
- package/package.json +387 -0
- package/packageInfo.cjs +14 -0
- package/packageInfo.d.ts +4 -0
- package/packageInfo.js +7 -0
- package/primitive/I128.cjs +26 -0
- package/primitive/I128.d.ts +11 -0
- package/primitive/I128.js +16 -0
- package/primitive/I16.cjs +26 -0
- package/primitive/I16.d.ts +11 -0
- package/primitive/I16.js +16 -0
- package/primitive/I256.cjs +26 -0
- package/primitive/I256.d.ts +11 -0
- package/primitive/I256.js +16 -0
- package/primitive/I32.cjs +26 -0
- package/primitive/I32.d.ts +11 -0
- package/primitive/I32.js +16 -0
- package/primitive/I64.cjs +26 -0
- package/primitive/I64.d.ts +11 -0
- package/primitive/I64.js +16 -0
- package/primitive/I8.cjs +26 -0
- package/primitive/I8.d.ts +11 -0
- package/primitive/I8.js +16 -0
- package/primitive/U128.cjs +26 -0
- package/primitive/U128.d.ts +11 -0
- package/primitive/U128.js +16 -0
- package/primitive/U16.cjs +26 -0
- package/primitive/U16.d.ts +11 -0
- package/primitive/U16.js +16 -0
- package/primitive/U256.cjs +26 -0
- package/primitive/U256.d.ts +11 -0
- package/primitive/U256.js +16 -0
- package/primitive/U32.cjs +26 -0
- package/primitive/U32.d.ts +11 -0
- package/primitive/U32.js +16 -0
- package/primitive/U64.cjs +26 -0
- package/primitive/U64.d.ts +11 -0
- package/primitive/U64.js +16 -0
- package/primitive/U8.cjs +26 -0
- package/primitive/U8.d.ts +11 -0
- package/primitive/U8.js +16 -0
- package/primitive/USize.cjs +28 -0
- package/primitive/USize.d.ts +12 -0
- package/primitive/USize.js +18 -0
- package/primitive/index.cjs +187 -0
- package/primitive/index.d.ts +13 -0
- package/primitive/index.js +15 -0
- package/types/codec.cjs +1 -0
- package/types/codec.d.ts +77 -0
- package/types/codec.js +1 -0
- package/types/helpers.cjs +1 -0
- package/types/helpers.d.ts +14 -0
- package/types/helpers.js +1 -0
- package/types/index.cjs +57 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +6 -0
- package/types/interfaces.cjs +1 -0
- package/types/interfaces.d.ts +68 -0
- package/types/interfaces.js +1 -0
- package/types/registry.cjs +1 -0
- package/types/registry.d.ts +44 -0
- package/types/registry.js +1 -0
- package/utils/compareArray.cjs +22 -0
- package/utils/compareArray.d.ts +1 -0
- package/utils/compareArray.js +13 -0
- package/utils/compareMap.cjs +39 -0
- package/utils/compareMap.d.ts +1 -0
- package/utils/compareMap.js +31 -0
- package/utils/compareSet.cjs +29 -0
- package/utils/compareSet.d.ts +1 -0
- package/utils/compareSet.js +22 -0
- package/utils/decodeU8a.cjs +69 -0
- package/utils/decodeU8a.d.ts +13 -0
- package/utils/decodeU8a.js +60 -0
- package/utils/index.cjs +95 -0
- package/utils/index.d.ts +9 -0
- package/utils/index.js +11 -0
- package/utils/mapToTypeMap.cjs +25 -0
- package/utils/mapToTypeMap.d.ts +5 -0
- package/utils/mapToTypeMap.js +17 -0
- package/utils/sanitize.cjs +242 -0
- package/utils/sanitize.d.ts +16 -0
- package/utils/sanitize.js +215 -0
- package/utils/sortValues.cjs +89 -0
- package/utils/sortValues.d.ts +13 -0
- package/utils/sortValues.js +73 -0
- package/utils/typeToConstructor.cjs +14 -0
- package/utils/typeToConstructor.d.ts +2 -0
- package/utils/typeToConstructor.js +6 -0
- package/utils/typesToMap.cjs +20 -0
- package/utils/typesToMap.d.ts +2 -0
- package/utils/typesToMap.js +13 -0
- package/utils/util.cjs +15 -0
- package/utils/util.d.ts +3 -0
- package/utils/util.js +7 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Int } from '../base/Int';
|
|
2
|
+
declare const i64_base: import("../types").CodecClass<Int>;
|
|
3
|
+
/**
|
|
4
|
+
* @name i64
|
|
5
|
+
* @description
|
|
6
|
+
* A 64-bit signed integer
|
|
7
|
+
*/
|
|
8
|
+
export declare class i64 extends i64_base {
|
|
9
|
+
readonly __IntType = "i64";
|
|
10
|
+
}
|
|
11
|
+
export {};
|
package/primitive/I64.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { Int } from "../base/Int.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name i64
|
|
6
|
+
* @description
|
|
7
|
+
* A 64-bit signed integer
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class i64 extends Int.with(64) {
|
|
11
|
+
constructor(...args) {
|
|
12
|
+
super(...args);
|
|
13
|
+
this.__IntType = 'i64';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
package/primitive/I8.cjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.i8 = void 0;
|
|
7
|
+
|
|
8
|
+
var _Int = require("../base/Int.cjs");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name i8
|
|
15
|
+
* @description
|
|
16
|
+
* An 8-bit signed integer
|
|
17
|
+
*/
|
|
18
|
+
class i8 extends _Int.Int.with(8) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.__IntType = 'i8';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.i8 = i8;
|
package/primitive/I8.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { Int } from "../base/Int.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name i8
|
|
6
|
+
* @description
|
|
7
|
+
* An 8-bit signed integer
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class i8 extends Int.with(8) {
|
|
11
|
+
constructor(...args) {
|
|
12
|
+
super(...args);
|
|
13
|
+
this.__IntType = 'i8';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.u128 = void 0;
|
|
7
|
+
|
|
8
|
+
var _UInt = require("../base/UInt.cjs");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name u128
|
|
15
|
+
* @description
|
|
16
|
+
* A 128-bit unsigned integer
|
|
17
|
+
*/
|
|
18
|
+
class u128 extends _UInt.UInt.with(128) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.__UIntType = 'u128';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.u128 = u128;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UInt } from '../base/UInt';
|
|
2
|
+
declare const u128_base: import("../types").CodecClass<UInt>;
|
|
3
|
+
/**
|
|
4
|
+
* @name u128
|
|
5
|
+
* @description
|
|
6
|
+
* A 128-bit unsigned integer
|
|
7
|
+
*/
|
|
8
|
+
export declare class u128 extends u128_base {
|
|
9
|
+
readonly __UIntType = "u128";
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { UInt } from "../base/UInt.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name u128
|
|
6
|
+
* @description
|
|
7
|
+
* A 128-bit unsigned integer
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class u128 extends UInt.with(128) {
|
|
11
|
+
constructor(...args) {
|
|
12
|
+
super(...args);
|
|
13
|
+
this.__UIntType = 'u128';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.u16 = void 0;
|
|
7
|
+
|
|
8
|
+
var _UInt = require("../base/UInt.cjs");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name u16
|
|
15
|
+
* @description
|
|
16
|
+
* A 16-bit unsigned integer
|
|
17
|
+
*/
|
|
18
|
+
class u16 extends _UInt.UInt.with(16) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.__UIntType = 'u16';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.u16 = u16;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UInt } from '../base/UInt';
|
|
2
|
+
declare const u16_base: import("../types").CodecClass<UInt>;
|
|
3
|
+
/**
|
|
4
|
+
* @name u16
|
|
5
|
+
* @description
|
|
6
|
+
* A 16-bit unsigned integer
|
|
7
|
+
*/
|
|
8
|
+
export declare class u16 extends u16_base {
|
|
9
|
+
readonly __UIntType = "u16";
|
|
10
|
+
}
|
|
11
|
+
export {};
|
package/primitive/U16.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { UInt } from "../base/UInt.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name u16
|
|
6
|
+
* @description
|
|
7
|
+
* A 16-bit unsigned integer
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class u16 extends UInt.with(16) {
|
|
11
|
+
constructor(...args) {
|
|
12
|
+
super(...args);
|
|
13
|
+
this.__UIntType = 'u16';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.u256 = void 0;
|
|
7
|
+
|
|
8
|
+
var _UInt = require("../base/UInt.cjs");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name u256
|
|
15
|
+
* @description
|
|
16
|
+
* A 256-bit unsigned integer
|
|
17
|
+
*/
|
|
18
|
+
class u256 extends _UInt.UInt.with(256) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.__UIntType = 'u256';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.u256 = u256;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UInt } from '../base/UInt';
|
|
2
|
+
declare const u256_base: import("../types").CodecClass<UInt>;
|
|
3
|
+
/**
|
|
4
|
+
* @name u256
|
|
5
|
+
* @description
|
|
6
|
+
* A 256-bit unsigned integer
|
|
7
|
+
*/
|
|
8
|
+
export declare class u256 extends u256_base {
|
|
9
|
+
readonly __UIntType = "u256";
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { UInt } from "../base/UInt.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name u256
|
|
6
|
+
* @description
|
|
7
|
+
* A 256-bit unsigned integer
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class u256 extends UInt.with(256) {
|
|
11
|
+
constructor(...args) {
|
|
12
|
+
super(...args);
|
|
13
|
+
this.__UIntType = 'u256';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.u32 = void 0;
|
|
7
|
+
|
|
8
|
+
var _UInt = require("../base/UInt.cjs");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name u32
|
|
15
|
+
* @description
|
|
16
|
+
* A 32-bit unsigned integer
|
|
17
|
+
*/
|
|
18
|
+
class u32 extends _UInt.UInt.with(32) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.__UIntType = 'u32';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.u32 = u32;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UInt } from '../base/UInt';
|
|
2
|
+
declare const u32_base: import("../types").CodecClass<UInt>;
|
|
3
|
+
/**
|
|
4
|
+
* @name u32
|
|
5
|
+
* @description
|
|
6
|
+
* A 32-bit unsigned integer
|
|
7
|
+
*/
|
|
8
|
+
export declare class u32 extends u32_base {
|
|
9
|
+
readonly __UIntType = "u32";
|
|
10
|
+
}
|
|
11
|
+
export {};
|
package/primitive/U32.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { UInt } from "../base/UInt.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name u32
|
|
6
|
+
* @description
|
|
7
|
+
* A 32-bit unsigned integer
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class u32 extends UInt.with(32) {
|
|
11
|
+
constructor(...args) {
|
|
12
|
+
super(...args);
|
|
13
|
+
this.__UIntType = 'u32';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.u64 = void 0;
|
|
7
|
+
|
|
8
|
+
var _UInt = require("../base/UInt.cjs");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name u64
|
|
15
|
+
* @description
|
|
16
|
+
* A 64-bit unsigned integer
|
|
17
|
+
*/
|
|
18
|
+
class u64 extends _UInt.UInt.with(64) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.__UIntType = 'u64';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.u64 = u64;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UInt } from '../base/UInt';
|
|
2
|
+
declare const u64_base: import("../types").CodecClass<UInt>;
|
|
3
|
+
/**
|
|
4
|
+
* @name u64
|
|
5
|
+
* @description
|
|
6
|
+
* A 64-bit unsigned integer
|
|
7
|
+
*/
|
|
8
|
+
export declare class u64 extends u64_base {
|
|
9
|
+
readonly __UIntType = "u64";
|
|
10
|
+
}
|
|
11
|
+
export {};
|
package/primitive/U64.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { UInt } from "../base/UInt.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name u64
|
|
6
|
+
* @description
|
|
7
|
+
* A 64-bit unsigned integer
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class u64 extends UInt.with(64) {
|
|
11
|
+
constructor(...args) {
|
|
12
|
+
super(...args);
|
|
13
|
+
this.__UIntType = 'u64';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
package/primitive/U8.cjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.u8 = void 0;
|
|
7
|
+
|
|
8
|
+
var _UInt = require("../base/UInt.cjs");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name u8
|
|
15
|
+
* @description
|
|
16
|
+
* An 8-bit unsigned integer
|
|
17
|
+
*/
|
|
18
|
+
class u8 extends _UInt.UInt.with(8) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.__UIntType = 'u8';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.u8 = u8;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UInt } from '../base/UInt';
|
|
2
|
+
declare const u8_base: import("../types").CodecClass<UInt>;
|
|
3
|
+
/**
|
|
4
|
+
* @name u8
|
|
5
|
+
* @description
|
|
6
|
+
* An 8-bit unsigned integer
|
|
7
|
+
*/
|
|
8
|
+
export declare class u8 extends u8_base {
|
|
9
|
+
readonly __UIntType = "u8";
|
|
10
|
+
}
|
|
11
|
+
export {};
|
package/primitive/U8.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { UInt } from "../base/UInt.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name u8
|
|
6
|
+
* @description
|
|
7
|
+
* An 8-bit unsigned integer
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class u8 extends UInt.with(8) {
|
|
11
|
+
constructor(...args) {
|
|
12
|
+
super(...args);
|
|
13
|
+
this.__UIntType = 'u8';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.usize = void 0;
|
|
7
|
+
|
|
8
|
+
var _U = require("./U32.cjs");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name USize
|
|
15
|
+
* @description
|
|
16
|
+
* A System default unsigned number, typically used in RPC to report non-consensus
|
|
17
|
+
* data. It is a wrapper for [[U32]] as a WASM default (as generated by Rust bindings).
|
|
18
|
+
* It is not to be used, since it created consensus mismatches.
|
|
19
|
+
*/
|
|
20
|
+
class usize extends _U.u32 {
|
|
21
|
+
constructor(registry, value) {
|
|
22
|
+
super(registry, value);
|
|
23
|
+
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.');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.usize = usize;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CodecRegistry } from '../types';
|
|
2
|
+
import { u32 } from './U32';
|
|
3
|
+
/**
|
|
4
|
+
* @name USize
|
|
5
|
+
* @description
|
|
6
|
+
* A System default unsigned number, typically used in RPC to report non-consensus
|
|
7
|
+
* data. It is a wrapper for [[U32]] as a WASM default (as generated by Rust bindings).
|
|
8
|
+
* It is not to be used, since it created consensus mismatches.
|
|
9
|
+
*/
|
|
10
|
+
export declare class usize extends u32 {
|
|
11
|
+
constructor(registry: CodecRegistry, value?: unknown);
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { u32 } from "./U32.js";
|
|
4
|
+
/**
|
|
5
|
+
* @name USize
|
|
6
|
+
* @description
|
|
7
|
+
* A System default unsigned number, typically used in RPC to report non-consensus
|
|
8
|
+
* data. It is a wrapper for [[U32]] as a WASM default (as generated by Rust bindings).
|
|
9
|
+
* It is not to be used, since it created consensus mismatches.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export class usize extends u32 {
|
|
13
|
+
constructor(registry, value) {
|
|
14
|
+
super(registry, value);
|
|
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
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "I128", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _I5.i128;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "I16", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _I2.i16;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "I256", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _I6.i256;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "I32", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _I3.i32;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "I64", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _I4.i64;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "I8", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _I.i8;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "U128", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _U5.u128;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "U16", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _U2.u16;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "U256", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _U6.u256;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "U32", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _U3.u32;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "U64", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _U4.u64;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "U8", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _U.u8;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "USize", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _USize.usize;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "i128", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _I5.i128;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "i16", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _I2.i16;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "i256", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _I6.i256;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "i32", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _I3.i32;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "i64", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _I4.i64;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "i8", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _I.i8;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "u128", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _U5.u128;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "u16", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _U2.u16;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "u256", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _U6.u256;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "u32", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _U3.u32;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "u64", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _U4.u64;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "u8", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _U.u8;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "usize", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _USize.usize;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
var _I = require("./I8.cjs");
|
|
164
|
+
|
|
165
|
+
var _I2 = require("./I16.cjs");
|
|
166
|
+
|
|
167
|
+
var _I3 = require("./I32.cjs");
|
|
168
|
+
|
|
169
|
+
var _I4 = require("./I64.cjs");
|
|
170
|
+
|
|
171
|
+
var _I5 = require("./I128.cjs");
|
|
172
|
+
|
|
173
|
+
var _I6 = require("./I256.cjs");
|
|
174
|
+
|
|
175
|
+
var _U = require("./U8.cjs");
|
|
176
|
+
|
|
177
|
+
var _U2 = require("./U16.cjs");
|
|
178
|
+
|
|
179
|
+
var _U3 = require("./U32.cjs");
|
|
180
|
+
|
|
181
|
+
var _U4 = require("./U64.cjs");
|
|
182
|
+
|
|
183
|
+
var _U5 = require("./U128.cjs");
|
|
184
|
+
|
|
185
|
+
var _U6 = require("./U256.cjs");
|
|
186
|
+
|
|
187
|
+
var _USize = require("./USize.cjs");
|