All files / src/common redstone-constants.ts

100% Statements 12/12
100% Branches 0/0
100% Functions 0/0
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40        4x     4x     4x     4x     4x     4x     4x     4x       4x     4x     4x     4x  
// Abbreviations:
// * BS = Byte size
 
// Number of bytes reserved to store timestamp
export const TIMESTAMP_BS = 6;
 
// Number of bytes reserved to store the number of data points
export const DATA_POINTS_COUNT_BS = 3;
 
// Number of bytes reserved to store datapoints byte size
export const DATA_POINT_VALUE_BYTE_SIZE_BS = 4;
 
// Default value byte size for numeric values
export const DEFAULT_NUM_VALUE_BS = 32;
 
// Default precision for numeric values
export const DEFAULT_NUM_VALUE_DECIMALS = 8;
 
// Number of bytes reserved for data packages count
export const DATA_PACKAGES_COUNT_BS = 2;
 
// Number of bytes reserved for unsigned metadata byte size
export const UNSIGNED_METADATA_BYTE_SIZE_BS = 3;
 
// RedStone marker, which will be appended in the end of each transaction
export const REDSTONE_MARKER_HEX = "0x000002ed57011e0000";
 
// Byte size of RedStone marker
// we subtract 1 because of the 0x prefix
export const REDSTONE_MARKER_BS = REDSTONE_MARKER_HEX.length / 2 - 1;
 
// Byte size of signatures
export const SIGNATURE_BS = 65;
 
// Byte size of data feed id
export const DATA_FEED_ID_BS = 32;
 
// Key for big data package
export const ALL_FEEDS_KEY = "___ALL_FEEDS___";