- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
18 lines
360 B
TypeScript
18 lines
360 B
TypeScript
export const hardforks = [
|
|
'genesis',
|
|
't0',
|
|
't1',
|
|
't1a',
|
|
't1b',
|
|
't1c',
|
|
't2',
|
|
't3',
|
|
] as const
|
|
|
|
export type Hardfork = (typeof hardforks)[number]
|
|
|
|
/** Returns `true` if `current` is before `target`. */
|
|
export function lt(current: string, target: Hardfork): boolean {
|
|
return hardforks.indexOf(current as Hardfork) < hardforks.indexOf(target)
|
|
}
|