From 8c0e19583146251063274e3f57cd19c0eb5a2d00 Mon Sep 17 00:00:00 2001 From: Benedict Pak <10258208+Nanosync@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:15:50 +0800 Subject: [PATCH] feat(chain): export chain (#217) --- apps/browser-tests/src/App.tsx | 8 ++++++-- packages/sdk/src/addresses/types.ts | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/browser-tests/src/App.tsx b/apps/browser-tests/src/App.tsx index 8801b0b3..bd77565c 100644 --- a/apps/browser-tests/src/App.tsx +++ b/apps/browser-tests/src/App.tsx @@ -1,5 +1,10 @@ import { useCallback, useMemo, useState } from "react"; -import { Address, PSBTBuilder, PSBTBuilderOptions } from "@ordzaar/ordit-sdk"; +import { + Address, + Chain, + PSBTBuilder, + PSBTBuilderOptions, +} from "@ordzaar/ordit-sdk"; import * as leather from "@ordzaar/ordit-sdk/leather"; import * as magiceden from "@ordzaar/ordit-sdk/magiceden"; import * as okx from "@ordzaar/ordit-sdk/okx"; @@ -10,7 +15,6 @@ import { RadioInput } from "./components/RadioInput"; import { Select } from "./components/Select"; type WalletProvider = "unisat" | "xverse" | "magiceden" | "leather"; -type Chain = "bitcoin" | "fractal-bitcoin"; const NETWORK = "testnet" as const; diff --git a/packages/sdk/src/addresses/types.ts b/packages/sdk/src/addresses/types.ts index 8f35cc5b..1d7cc9cd 100644 --- a/packages/sdk/src/addresses/types.ts +++ b/packages/sdk/src/addresses/types.ts @@ -28,3 +28,5 @@ export type Address = { */ xKey?: string; }; + +export type { Chain } from "../config/types";