UNPKG

@chainsafe/eth2.0-ssz-types

Version:
52 lines (49 loc) 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BLSSignature = exports.BLSPubkey = exports.Version = exports.Hash = exports.Gwei = exports.ValidatorIndex = exports.Shard = exports.Epoch = exports.Slot = exports.uint256 = exports.uint64 = exports.number64 = exports.uint16 = exports.uint8 = exports.bytes96 = exports.bytes48 = exports.bytes32 = exports.bytes8 = exports.bytes4 = exports.bool = void 0; /** * @module sszTypes/generators */ const bool = "bool"; exports.bool = bool; const bytes4 = "bytes4"; exports.bytes4 = bytes4; const bytes8 = "bytes8"; exports.bytes8 = bytes8; const bytes32 = "bytes32"; exports.bytes32 = bytes32; const bytes48 = "bytes48"; exports.bytes48 = bytes48; const bytes96 = "bytes96"; exports.bytes96 = bytes96; const uint8 = "uint8"; exports.uint8 = uint8; const uint16 = "uint16"; exports.uint16 = uint16; const number64 = "number64"; exports.number64 = number64; const uint64 = "uint64"; exports.uint64 = uint64; const uint256 = "uint256"; // Custom types, defined for type hinting and readability exports.uint256 = uint256; const Slot = number64; exports.Slot = Slot; const Epoch = number64; exports.Epoch = Epoch; const Shard = number64; exports.Shard = Shard; const ValidatorIndex = number64; exports.ValidatorIndex = ValidatorIndex; const Gwei = uint64; exports.Gwei = Gwei; const Hash = bytes32; exports.Hash = Hash; const Version = bytes4; exports.Version = Version; const BLSPubkey = bytes48; exports.BLSPubkey = BLSPubkey; const BLSSignature = bytes96; exports.BLSSignature = BLSSignature; //# sourceMappingURL=primitive.js.map