diff --git a/src/client/browserClient.ts b/src/client/browserClient.ts index 8230b0e..f703212 100644 --- a/src/client/browserClient.ts +++ b/src/client/browserClient.ts @@ -1,15 +1,15 @@ -import {EnvironmentType} from "@kwilteam/kwil-js/dist/core/enums"; -import {WebKwil} from "@kwilteam/kwil-js"; -import {BaseTSNClient, TSNClientOptions} from "./client"; +import { EnvironmentType } from "@kwilteam/kwil-js/dist/core/enums"; +import { WebKwil } from "@kwilteam/kwil-js"; +import { BaseTSNClient, TSNClientOptions } from "./client"; export class BrowserTSNClient extends BaseTSNClient { - constructor(options: TSNClientOptions) { - super(options); - this.kwilClient = new WebKwil({ - ...options, - kwilProvider: options.endpoint, - }); - } + constructor(options: TSNClientOptions) { + super(options); + this.kwilClient = new WebKwil({ + ...options, + kwilProvider: options.endpoint, + }); + } } -export default BrowserTSNClient; \ No newline at end of file +export default BrowserTSNClient; diff --git a/src/client/client.test.ts b/src/client/client.test.ts index cf2fc42..52b2b0f 100644 --- a/src/client/client.test.ts +++ b/src/client/client.test.ts @@ -1,7 +1,7 @@ -import {describe, expect, it} from "vitest"; -import {ethers} from "ethers"; -import {StreamId} from "../util/StreamId"; -import {NodeTSNClient} from "./nodeClient"; +import { describe, expect, it } from "vitest"; +import { ethers } from "ethers"; +import { StreamId } from "../util/StreamId"; +import { NodeTSNClient } from "./nodeClient"; describe.sequential("Client", { timeout: 30000 }, () => { // Skip in CI, because it needs a local node diff --git a/src/client/client.ts b/src/client/client.ts index ae9acc4..715e601 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -1,21 +1,21 @@ -import {Client, KwilSigner, NodeKwil, WebKwil} from "@kwilteam/kwil-js"; -import {KwilConfig} from "@kwilteam/kwil-js/dist/api_client/config"; -import {Kwil} from "@kwilteam/kwil-js/dist/client/kwil"; -import {EthSigner} from "@kwilteam/kwil-js/dist/core/builders"; -import {EnvironmentType} from "@kwilteam/kwil-js/dist/core/enums"; -import {GenericResponse} from "@kwilteam/kwil-js/dist/core/resreq"; -import {TxReceipt} from "@kwilteam/kwil-js/dist/core/tx"; -import {TxInfoReceipt} from "@kwilteam/kwil-js/dist/core/txQuery"; -import {ComposedStream} from "../contracts-api/composedStream"; -import {deployStream} from "../contracts-api/deployStream"; -import {destroyStream} from "../contracts-api/destroyStream"; -import {PrimitiveStream} from "../contracts-api/primitiveStream"; -import {Stream} from "../contracts-api/stream"; -import {StreamType} from "../contracts-api/contractValues"; -import {StreamLocator} from "../types/stream"; -import {EthereumAddress} from "../util/EthereumAddress"; -import {StreamId} from "../util/StreamId"; -import {listAllStreams} from "./listAllStreams"; +import { Client, KwilSigner, NodeKwil, WebKwil } from "@kwilteam/kwil-js"; +import { KwilConfig } from "@kwilteam/kwil-js/dist/api_client/config"; +import { Kwil } from "@kwilteam/kwil-js/dist/client/kwil"; +import { EthSigner } from "@kwilteam/kwil-js/dist/core/builders"; +import { EnvironmentType } from "@kwilteam/kwil-js/dist/core/enums"; +import { GenericResponse } from "@kwilteam/kwil-js/dist/core/resreq"; +import { TxReceipt } from "@kwilteam/kwil-js/dist/core/tx"; +import { TxInfoReceipt } from "@kwilteam/kwil-js/dist/core/txQuery"; +import { ComposedStream } from "../contracts-api/composedStream"; +import { deployStream } from "../contracts-api/deployStream"; +import { destroyStream } from "../contracts-api/destroyStream"; +import { PrimitiveStream } from "../contracts-api/primitiveStream"; +import { Stream } from "../contracts-api/stream"; +import { StreamType } from "../contracts-api/contractValues"; +import { StreamLocator } from "../types/stream"; +import { EthereumAddress } from "../util/EthereumAddress"; +import { StreamId } from "../util/StreamId"; +import { listAllStreams } from "./listAllStreams"; export interface EthProvider { getAddress(): string; @@ -215,4 +215,3 @@ export abstract class BaseTSNClient { return chainInfo.data?.chain_id; } } - diff --git a/src/client/nodeClient.ts b/src/client/nodeClient.ts index c36dfd7..502b896 100644 --- a/src/client/nodeClient.ts +++ b/src/client/nodeClient.ts @@ -1,15 +1,15 @@ -import {EnvironmentType} from "@kwilteam/kwil-js/dist/core/enums"; -import {NodeKwil} from "@kwilteam/kwil-js"; -import {BaseTSNClient, TSNClientOptions} from "./client"; +import { EnvironmentType } from "@kwilteam/kwil-js/dist/core/enums"; +import { NodeKwil } from "@kwilteam/kwil-js"; +import { BaseTSNClient, TSNClientOptions } from "./client"; export class NodeTSNClient extends BaseTSNClient { - constructor(options: TSNClientOptions) { - super(options); - this.kwilClient = new NodeKwil({ - ...options, - kwilProvider: options.endpoint, - }); - } + constructor(options: TSNClientOptions) { + super(options); + this.kwilClient = new NodeKwil({ + ...options, + kwilProvider: options.endpoint, + }); + } } -export default NodeTSNClient; \ No newline at end of file +export default NodeTSNClient; diff --git a/src/contracts-api/composedStream.ts b/src/contracts-api/composedStream.ts index 24b8c6f..47d5ced 100644 --- a/src/contracts-api/composedStream.ts +++ b/src/contracts-api/composedStream.ts @@ -1,13 +1,13 @@ -import {KwilSigner, NodeKwil, WebKwil} from "@kwilteam/kwil-js"; -import {ActionInput} from "@kwilteam/kwil-js/dist/core/action"; -import {GenericResponse} from "@kwilteam/kwil-js/dist/core/resreq"; -import {TxReceipt} from "@kwilteam/kwil-js/dist/core/tx"; -import {StreamType} from "./contractValues"; -import {DateString} from "../types/other"; -import {StreamLocator} from "../types/stream"; -import {EthereumAddress} from "../util/EthereumAddress"; -import {StreamId} from "../util/StreamId"; -import {Stream} from "./stream"; +import { KwilSigner, NodeKwil, WebKwil } from "@kwilteam/kwil-js"; +import { ActionInput } from "@kwilteam/kwil-js/dist/core/action"; +import { GenericResponse } from "@kwilteam/kwil-js/dist/core/resreq"; +import { TxReceipt } from "@kwilteam/kwil-js/dist/core/tx"; +import { StreamType } from "./contractValues"; +import { DateString } from "../types/other"; +import { StreamLocator } from "../types/stream"; +import { EthereumAddress } from "../util/EthereumAddress"; +import { StreamId } from "../util/StreamId"; +import { Stream } from "./stream"; export const ErrorStreamNotComposed = "stream is not a composed stream"; diff --git a/src/types/stream.ts b/src/types/stream.ts index 8cdeff4..eebe07a 100644 --- a/src/types/stream.ts +++ b/src/types/stream.ts @@ -1,5 +1,5 @@ -import {StreamId} from "../util/StreamId"; -import {EthereumAddress} from "../util/EthereumAddress"; +import { StreamId } from "../util/StreamId"; +import { EthereumAddress } from "../util/EthereumAddress"; export interface StreamLocator { /**