mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
- Removed all Snow consensus code and dependencies - Replaced snow.Context with consensuscontext.Context - Updated all imports and references - Added comprehensive test suites for core packages - Fixed all build errors and test failures - Achieved 100% test pass rate (21 packages passing) - Improved test coverage to 30% Breaking changes: - Removed snow package entirely - Changed VM interface to use VMState instead of snow.State - Updated ChainContext structure Tests added: - core/app_error_test.go: 100% coverage - core/bootstrap_test.go: comprehensive concurrent tests - core/health_test.go: full integration tests - validators/validators_test.go: complete interface tests - version/version_test.go: 100% coverage - codec/codec_test.go: marshal/unmarshal tests - context/context_test.go: all functions tested
24 lines
1.3 KiB
TypeScript
24 lines
1.3 KiB
TypeScript
import type { Document } from '../doc/Document';
|
|
import type { Alias } from './Alias';
|
|
import type { Node } from './Node';
|
|
import type { Pair } from './Pair';
|
|
import type { Scalar } from './Scalar';
|
|
import type { YAMLMap } from './YAMLMap';
|
|
import type { YAMLSeq } from './YAMLSeq';
|
|
export declare const ALIAS: unique symbol;
|
|
export declare const DOC: unique symbol;
|
|
export declare const MAP: unique symbol;
|
|
export declare const PAIR: unique symbol;
|
|
export declare const SCALAR: unique symbol;
|
|
export declare const SEQ: unique symbol;
|
|
export declare const NODE_TYPE: unique symbol;
|
|
export declare const isAlias: (node: any) => node is Alias;
|
|
export declare const isDocument: <T extends Node = Node>(node: any) => node is Document<T>;
|
|
export declare const isMap: <K = unknown, V = unknown>(node: any) => node is YAMLMap<K, V>;
|
|
export declare const isPair: <K = unknown, V = unknown>(node: any) => node is Pair<K, V>;
|
|
export declare const isScalar: <T = unknown>(node: any) => node is Scalar<T>;
|
|
export declare const isSeq: <T = unknown>(node: any) => node is YAMLSeq<T>;
|
|
export declare function isCollection<K = unknown, V = unknown>(node: any): node is YAMLMap<K, V> | YAMLSeq<V>;
|
|
export declare function isNode<T = unknown>(node: any): node is Node<T>;
|
|
export declare const hasAnchor: <K = unknown, V = unknown>(node: unknown) => node is Scalar<V> | YAMLMap<K, V> | YAMLSeq<V>;
|