@zerochain/sdk
Version:
The Züs JS SDK is a JavaScript client library that provides a convenient interface for interacting with the Züs Network. It allows developers to perform various operations such as creating and managing allocations, uploading and downloading files, executi
20 lines (17 loc) • 405 B
text/typescript
const LOG_CODES = [
'WASM_LOADING', // Info
'WASM_LOADED', // Info
'OUTDATED_WASM_VERSION', // Warn
'WASM_TYPE_MISMATCH_RETRY', // Warn
'INVALID_WASM_CONFIG', // Fatal
'WASM_TYPE_MISMATCH', // Fatal
] as const
type LogData = {
message: string
data?: any
code: (typeof LOG_CODES)[number]
}
export type OnLog = (
type: 'info' | 'error' | 'warn' | 'debug',
logData: LogData
) => void