Skip to content

Commit

Permalink
registry has own folder now
Browse files Browse the repository at this point in the history
  • Loading branch information
mechanical-turk committed Nov 28, 2023
1 parent 70e2059 commit 02bdeea
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/nexus/src/chain/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./chain";
2 changes: 1 addition & 1 deletion packages/nexus/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from "zod";
import { defaultRegistry } from "./setup/data";
import { defaultRegistry } from "./registry/default-registry";
import type { Registry } from "./registry";

const RpxRelayRecoveryModeSchema = z.enum(["none", "cycle"]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Registry } from "@src/registry";
import { Registry } from "./registry";

export const defaultRegistry = new Registry();

Expand Down
2 changes: 2 additions & 0 deletions packages/nexus/src/registry/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./registry";
export * from "./default-registry";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Network, Chain } from "./chain/chain";
import type { ChainSupport } from "./service-provider/service-provider";
import { ServiceProvider } from "./service-provider/service-provider";
import { Network, Chain } from "@src/chain";
import type { ChainSupport } from "@src/service-provider";
import { ServiceProvider } from "@src/service-provider";

type RecursiveChainFn = (
chainId: number,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { defaultRegistry } from "../setup/data";
import { defaultRegistry } from "../registry/default-registry";
import { Config } from "../config";
import { RpcEndpointPoolFactory } from "./rpc-endpoint-pool-factory";

Expand Down
1 change: 1 addition & 0 deletions packages/nexus/src/service-provider/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./service-provider";

0 comments on commit 02bdeea

Please sign in to comment.