diff --git a/src/stacks-api/index.ts b/src/stacks-api/index.ts index 1876ab6..6c51566 100644 --- a/src/stacks-api/index.ts +++ b/src/stacks-api/index.ts @@ -13,9 +13,6 @@ export type * as Info from "./info/index.js"; import { proofOfTransfer } from "./proof-of-transfer/index.js"; export type * as ProofOfTransfer from "./proof-of-transfer/index.js"; -import { smartContracts } from "./smart-contracts/index.js"; -export type * as SmartContracts from "./smart-contracts/index.js"; - import { stackingPool } from "./stacking-pool/index.js"; export type * as StackingPool from "./stacking-pool/index.js"; @@ -28,7 +25,6 @@ export const stacksApi = { faucets, info, proofOfTransfer, - smartContracts, stackingPool, transactions, }; diff --git a/src/stacks-api/smart-contracts/index.ts b/src/stacks-api/smart-contracts/index.ts deleted file mode 100644 index c0f37ff..0000000 --- a/src/stacks-api/smart-contracts/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { readOnly } from "./read-only.js"; -export type * as ReadOnly from "./read-only.js"; - -export const smartContracts = { - readOnly, -}; diff --git a/src/stacks-rpc-api/smart-contracts/index.ts b/src/stacks-rpc-api/smart-contracts/index.ts index fa2dd3b..6726cb3 100644 --- a/src/stacks-rpc-api/smart-contracts/index.ts +++ b/src/stacks-rpc-api/smart-contracts/index.ts @@ -1,6 +1,9 @@ import { mapEntry } from "./map-entry.js"; export type * as MapEntry from "./map-entry.js"; +import { readOnly } from "./read-only.js"; +export type * as ReadOnly from "./read-only.js"; export const smartContracts = { mapEntry, + readOnly, }; diff --git a/src/stacks-api/smart-contracts/read-only.ts b/src/stacks-rpc-api/smart-contracts/read-only.ts similarity index 96% rename from src/stacks-api/smart-contracts/read-only.ts rename to src/stacks-rpc-api/smart-contracts/read-only.ts index 9f08623..fa10939 100644 --- a/src/stacks-api/smart-contracts/read-only.ts +++ b/src/stacks-rpc-api/smart-contracts/read-only.ts @@ -1,5 +1,5 @@ import { error, safePromise, success, type Result } from "../../utils/safe.js"; -import type { ApiRequestOptions } from "../types.js"; +import type { ApiRequestOptions } from "../../stacks-api/types.js"; import * as v from "valibot"; export type Args = {