chore: migrate to typescript
This commit is contained in:
committed by
Justin Starry
parent
3eb9f7b3eb
commit
f912c63b22
23
web3.js/src/timing.ts
Normal file
23
web3.js/src/timing.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// TODO: These constants should be removed in favor of reading them out of a
|
||||
// Syscall account
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const NUM_TICKS_PER_SECOND = 160;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const DEFAULT_TICKS_PER_SLOT = 64;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const NUM_SLOTS_PER_SECOND =
|
||||
NUM_TICKS_PER_SECOND / DEFAULT_TICKS_PER_SLOT;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const MS_PER_SLOT = 1000 / NUM_SLOTS_PER_SECOND;
|
Reference in New Issue
Block a user