diff --git a/.gitignore b/.gitignore index 9d32365..33d015e 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ yarn-error.log* *.pem schema.json +.npmrc diff --git a/apps/example/package.json b/apps/example/package.json index 995ece5..ac23920 100644 --- a/apps/example/package.json +++ b/apps/example/package.json @@ -23,14 +23,14 @@ "dependencies": { "@cardano-ogmios/client": "^6.11.0", "@minswap/tiny-invariant": "^1.2.0", - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", - "@repo/minswap-dex-v2": "workspace:*", - "@repo/sundaeswap-v1": "workspace:*", - "@repo/sundaeswap-v3": "workspace:*", - "@repo/syncer": "workspace:*", - "@repo/provider": "workspace:*", - "@repo/tx-builder": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", + "@minswap/felis-dex-v2": "workspace:*", + "@minswap/felis-sundaeswap-v1": "workspace:*", + "@minswap/felis-sundaeswap-v3": "workspace:*", + "@minswap/felis-syncer": "workspace:*", + "@minswap/felis-provider": "workspace:*", + "@minswap/felis-tx-builder": "workspace:*", "socket.io-client": "^4.8.3" } } diff --git a/apps/example/src/cardanoscan.ts b/apps/example/src/cardanoscan.ts index 6b56493..b5bd710 100644 --- a/apps/example/src/cardanoscan.ts +++ b/apps/example/src/cardanoscan.ts @@ -1,9 +1,9 @@ import fs from "node:fs"; -import { RustModule } from "@repo/ledger-utils"; -import { MinswapStableswapSyncer, MinswapV1Syncer, MinswapV2Syncer, SplashSyncer, SundaeSwapV1Syncer, SundaeSwapV3Syncer, Transaction, WingridersV1Syncer, WingridersV2Syncer } from "@repo/syncer"; +import { RustModule } from "@minswap/felis-ledger-utils"; +import { MinswapStableswapSyncer, MinswapV1Syncer, MinswapV2Syncer, SplashSyncer, SundaeSwapV1Syncer, SundaeSwapV3Syncer, Transaction, WingridersV1Syncer, WingridersV2Syncer } from "@minswap/felis-syncer"; import socketIO from "socket.io-client"; import { NetworkEnvironment } from "../../../packages/ledger-core/dist/network-id"; -import { Bytes } from "@repo/ledger-core"; +import { Bytes } from "@minswap/felis-ledger-core"; const main = async () => { await RustModule.load(); diff --git a/apps/example/src/fetchMapPools.ts b/apps/example/src/fetchMapPools.ts index 052b44b..75aafa6 100644 --- a/apps/example/src/fetchMapPools.ts +++ b/apps/example/src/fetchMapPools.ts @@ -1,10 +1,10 @@ import fs from "node:fs"; -import { Bytes, NetworkEnvironment, Utxo, XJSON } from "@repo/ledger-core"; -import { getDexV2Configs, PoolV2 } from "@repo/minswap-dex-v2"; -import { KupoService } from "@repo/provider"; -import { MinswapV2Syncer, SundaeSwapV1Syncer, SundaeSwapV3Syncer } from "@repo/syncer"; -import { SundaeSwapV1 } from "@repo/sundaeswap-v1"; -import { SundaeSwapV3 } from "@repo/sundaeswap-v3"; +import { Bytes, NetworkEnvironment, Utxo, XJSON } from "@minswap/felis-ledger-core"; +import { getDexV2Configs, PoolV2 } from "@minswap/felis-dex-v2"; +import { KupoService } from "@minswap/felis-provider"; +import { MinswapV2Syncer, SundaeSwapV1Syncer, SundaeSwapV3Syncer } from "@minswap/felis-syncer"; +import { SundaeSwapV1 } from "@minswap/felis-sundaeswap-v1"; +import { SundaeSwapV3 } from "@minswap/felis-sundaeswap-v3"; const fetchMinswapV2Pools = async (kupo: KupoService, networkEnv: NetworkEnvironment) => { const minswapDexV2Configs = getDexV2Configs(networkEnv); diff --git a/apps/example/src/syncer.ts b/apps/example/src/syncer.ts index 9f872c8..21f3791 100644 --- a/apps/example/src/syncer.ts +++ b/apps/example/src/syncer.ts @@ -1,9 +1,9 @@ import fs from "node:fs"; import * as Ogmios from "@cardano-ogmios/client"; import invariant from "@minswap/tiny-invariant"; -import { NetworkEnvironment } from "@repo/ledger-core"; -import { RustModule } from "@repo/ledger-utils"; -import { MinswapStableswapSyncer, MinswapV1Syncer, MinswapV2Syncer, SplashSyncer, SundaeSwapV1Syncer, SundaeSwapV3Syncer, Transaction, WingridersV1Syncer, WingridersV2Syncer } from "@repo/syncer"; +import { NetworkEnvironment } from "@minswap/felis-ledger-core"; +import { RustModule } from "@minswap/felis-ledger-utils"; +import { MinswapStableswapSyncer, MinswapV1Syncer, MinswapV2Syncer, SplashSyncer, SundaeSwapV1Syncer, SundaeSwapV3Syncer, Transaction, WingridersV1Syncer, WingridersV2Syncer } from "@minswap/felis-syncer"; const main = async () => { await RustModule.load(); diff --git a/apps/web/app/atoms/walletAtom.ts b/apps/web/app/atoms/walletAtom.ts index 6b5272f..28169d4 100644 --- a/apps/web/app/atoms/walletAtom.ts +++ b/apps/web/app/atoms/walletAtom.ts @@ -1,5 +1,5 @@ -import { XJSON } from "@repo/ledger-core"; -import type { LendingMarket } from "@repo/minswap-lending-market"; +import { XJSON } from "@minswap/felis-ledger-core"; +import type { LendingMarket } from "@minswap/felis-lending-market"; import { atom } from "jotai"; import type { Asset } from "../../../../packages/ledger-core/dist/asset"; import { LocalStorageKey } from "../constants/storage"; diff --git a/apps/web/app/components/deposit-withdraw.tsx b/apps/web/app/components/deposit-withdraw.tsx index 65947a4..0a306a6 100644 --- a/apps/web/app/components/deposit-withdraw.tsx +++ b/apps/web/app/components/deposit-withdraw.tsx @@ -1,9 +1,9 @@ "use client"; import { ArrowDownOutlined, ArrowUpOutlined } from "@ant-design/icons"; -import { RustModule } from "@repo/ledger-utils"; -import { NitroWallet } from "@repo/minswap-lending-market"; -import { TxComplete } from "@repo/tx-builder"; +import { RustModule } from "@minswap/felis-ledger-utils"; +import { NitroWallet } from "@minswap/felis-lending-market"; +import { TxComplete } from "@minswap/felis-tx-builder"; import { Alert, App, Button, Card, Col, Form, Input, Modal, Row, Space, Statistic } from "antd"; import { useAtomValue, useSetAtom } from "jotai"; import { useEffect, useState } from "react"; diff --git a/apps/web/app/components/margin-trading-position-tab.tsx b/apps/web/app/components/margin-trading-position-tab.tsx index f374da1..00f1ef5 100644 --- a/apps/web/app/components/margin-trading-position-tab.tsx +++ b/apps/web/app/components/margin-trading-position-tab.tsx @@ -1,9 +1,9 @@ "use client"; import { CloseOutlined, DollarOutlined, SwapOutlined, TrophyOutlined } from "@ant-design/icons"; +import { ADA, Asset, Utxo, XJSON } from "@minswap/felis-ledger-core"; +import { LendingMarket, type LiqwidProvider, NitroWallet } from "@minswap/felis-lending-market"; import invariant from "@minswap/tiny-invariant"; -import { ADA, Asset, Utxo, XJSON } from "@repo/ledger-core"; -import { LendingMarket, type LiqwidProvider, NitroWallet } from "@repo/minswap-lending-market"; import { Alert, App, Button, Card, Col, Divider, Progress, Row, Space, Statistic, Tag } from "antd"; import { useAtomValue, useSetAtom } from "jotai"; import { useCallback, useEffect, useRef } from "react"; diff --git a/apps/web/app/components/margin-trading-trade-tab.tsx b/apps/web/app/components/margin-trading-trade-tab.tsx index 6ab312c..dcce637 100644 --- a/apps/web/app/components/margin-trading-trade-tab.tsx +++ b/apps/web/app/components/margin-trading-trade-tab.tsx @@ -1,11 +1,11 @@ "use client"; import { ArrowRightOutlined, InfoCircleOutlined } from "@ant-design/icons"; +import { DexV2Calculation, OrderV2Direction } from "@minswap/felis-dex-v2"; +import { ADA, Asset, Bytes } from "@minswap/felis-ledger-core"; +import { sha3 } from "@minswap/felis-ledger-utils"; +import { LendingMarket } from "@minswap/felis-lending-market"; import invariant from "@minswap/tiny-invariant"; -import { ADA, Asset, Bytes } from "@repo/ledger-core"; -import { sha3 } from "@repo/ledger-utils"; -import { DexV2Calculation, OrderV2Direction } from "@repo/minswap-dex-v2"; -import { LendingMarket } from "@repo/minswap-lending-market"; import { Alert, App, diff --git a/apps/web/app/components/short-trading-position-tab.tsx b/apps/web/app/components/short-trading-position-tab.tsx index b7e6878..d3f8793 100644 --- a/apps/web/app/components/short-trading-position-tab.tsx +++ b/apps/web/app/components/short-trading-position-tab.tsx @@ -1,10 +1,10 @@ "use client"; import { CloseOutlined, DollarOutlined, SwapOutlined, TrophyOutlined } from "@ant-design/icons"; +import { DexV2Calculation, OrderV2Direction } from "@minswap/felis-dex-v2"; +import { Address, Asset } from "@minswap/felis-ledger-core"; +import { LendingMarket, LiqwidProvider } from "@minswap/felis-lending-market"; import invariant from "@minswap/tiny-invariant"; -import { Address, Asset } from "@repo/ledger-core"; -import { DexV2Calculation, OrderV2Direction } from "@repo/minswap-dex-v2"; -import { LendingMarket, LiqwidProvider } from "@repo/minswap-lending-market"; import { Alert, App, Button, Card, Col, Divider, Progress, Row, Space, Statistic, Tag } from "antd"; import { useAtomValue, useSetAtom } from "jotai"; import { useCallback, useEffect, useState } from "react"; diff --git a/apps/web/app/components/short-trading-trade-tab.tsx b/apps/web/app/components/short-trading-trade-tab.tsx index 0dbac48..8e9b428 100644 --- a/apps/web/app/components/short-trading-trade-tab.tsx +++ b/apps/web/app/components/short-trading-trade-tab.tsx @@ -1,11 +1,11 @@ "use client"; import { ArrowRightOutlined, InfoCircleOutlined } from "@ant-design/icons"; +import { DexV2Calculation, OrderV2Direction } from "@minswap/felis-dex-v2"; +import { Asset, Bytes } from "@minswap/felis-ledger-core"; +import { sha3 } from "@minswap/felis-ledger-utils"; +import { LendingMarket } from "@minswap/felis-lending-market"; import invariant from "@minswap/tiny-invariant"; -import { Asset, Bytes } from "@repo/ledger-core"; -import { sha3 } from "@repo/ledger-utils"; -import { DexV2Calculation, OrderV2Direction } from "@repo/minswap-dex-v2"; -import { LendingMarket } from "@repo/minswap-lending-market"; import { Alert, App, Button, Card, Col, Divider, Form, InputNumber, Radio, Row, Space, Statistic, Tooltip } from "antd"; import { useAtomValue, useSetAtom } from "jotai"; import { useEffect, useState } from "react"; diff --git a/apps/web/app/config/index.ts b/apps/web/app/config/index.ts index 4db7599..e57ce77 100644 --- a/apps/web/app/config/index.ts +++ b/apps/web/app/config/index.ts @@ -1,4 +1,4 @@ -import { NetworkEnvironment } from "@repo/ledger-core"; +import { NetworkEnvironment } from "@minswap/felis-ledger-core"; type Config = { networkEnv: NetworkEnvironment; diff --git a/apps/web/app/lib/helpers.ts b/apps/web/app/lib/helpers.ts index 8232ae3..052066c 100644 --- a/apps/web/app/lib/helpers.ts +++ b/apps/web/app/lib/helpers.ts @@ -1,5 +1,5 @@ -import { type Address, NetworkEnvironment, Utxo } from "@repo/ledger-core"; -import { NitroWallet } from "@repo/minswap-lending-market"; +import { type Address, NetworkEnvironment, Utxo } from "@minswap/felis-ledger-core"; +import { NitroWallet } from "@minswap/felis-lending-market"; import { CONFIG } from "../config"; export namespace Helpers { diff --git a/apps/web/app/lib/use-nitro-wallet.ts b/apps/web/app/lib/use-nitro-wallet.ts index 6beb321..96f51b8 100644 --- a/apps/web/app/lib/use-nitro-wallet.ts +++ b/apps/web/app/lib/use-nitro-wallet.ts @@ -1,7 +1,7 @@ -import { baseWalletFromEntropy } from "@repo/cip"; -import { Address } from "@repo/ledger-core"; -import { sha3 } from "@repo/ledger-utils"; -import { NitroWallet } from "@repo/minswap-lending-market"; +import { baseWalletFromEntropy } from "@minswap/felis-cip"; +import { Address } from "@minswap/felis-ledger-core"; +import { sha3 } from "@minswap/felis-ledger-utils"; +import { NitroWallet } from "@minswap/felis-lending-market"; import { useAtom, useSetAtom } from "jotai"; import { useCallback, useEffect, useState } from "react"; import { setNitroBalanceAtom, setNitroWalletAtom } from "../atoms/walletAtom"; diff --git a/apps/web/app/lib/use-position.ts b/apps/web/app/lib/use-position.ts index cd2981d..8a31d29 100644 --- a/apps/web/app/lib/use-position.ts +++ b/apps/web/app/lib/use-position.ts @@ -1,10 +1,10 @@ +import { DEXOrderTransaction } from "@minswap/felis-build-tx"; +import { DexV2Calculation, DexVersion, OrderV2Direction, OrderV2StepType } from "@minswap/felis-dex-v2"; +import { PrivateKey, Utxo, Value } from "@minswap/felis-ledger-core"; +import { Result } from "@minswap/felis-ledger-utils"; +import { type LiqwidProvider, NitroWallet } from "@minswap/felis-lending-market"; +import { CoinSelectionAlgorithm, EmulatorProvider } from "@minswap/felis-tx-builder"; import invariant from "@minswap/tiny-invariant"; -import { PrivateKey, Utxo, Value } from "@repo/ledger-core"; -import { Result } from "@repo/ledger-utils"; -import { DEXOrderTransaction } from "@repo/minswap-build-tx"; -import { DexV2Calculation, DexVersion, OrderV2Direction, OrderV2StepType } from "@repo/minswap-dex-v2"; -import { type LiqwidProvider, NitroWallet } from "@repo/minswap-lending-market"; -import { CoinSelectionAlgorithm, EmulatorProvider } from "@repo/tx-builder"; import { App } from "antd"; import { useAtomValue, useSetAtom } from "jotai"; import { useCallback, useRef } from "react"; diff --git a/apps/web/app/lib/wallet-utils.ts b/apps/web/app/lib/wallet-utils.ts index 04db261..507b990 100644 --- a/apps/web/app/lib/wallet-utils.ts +++ b/apps/web/app/lib/wallet-utils.ts @@ -1,5 +1,5 @@ -import { Address, Value } from "@repo/ledger-core"; -import { RustModule } from "@repo/ledger-utils"; +import { Address, Value } from "@minswap/felis-ledger-core"; +import { RustModule } from "@minswap/felis-ledger-utils"; /** * CIP-30 Wallet utilities for Cardano diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index c48c014..eaa7463 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { LendingMarket } from "@repo/minswap-lending-market"; +import { LendingMarket } from "@minswap/felis-lending-market"; import { App, Button, Layout, Space } from "antd"; import { useAtomValue, useSetAtom } from "jotai"; import { useEffect, useState } from "react"; diff --git a/apps/web/package.json b/apps/web/package.json index 7249fde..c9e2d60 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -14,14 +14,14 @@ "@ant-design/icons": "5.x", "@ant-design/nextjs-registry": "^1.1.0", "@minswap/tiny-invariant": "^1.2.0", - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", - "@repo/tx-builder": "workspace:*", - "@repo/cip": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", + "@minswap/felis-tx-builder": "workspace:*", + "@minswap/felis-cip": "workspace:*", "@repo/ui": "workspace:*", - "@repo/minswap-lending-market": "workspace:*", - "@repo/minswap-dex-v2": "workspace:*", - "@repo/minswap-build-tx": "workspace:*", + "@minswap/felis-lending-market": "workspace:*", + "@minswap/felis-dex-v2": "workspace:*", + "@minswap/felis-build-tx": "workspace:*", "antd": "^5.27.6", "next": "^16.0.10", "react": "^19.2.3", diff --git a/package.json b/package.json index 8ab8d14..601e344 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,10 @@ { "name": "minswap-felis", "private": true, + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis" + }, "scripts": { "build": "turbo run build", "dev": "turbo run dev", @@ -10,7 +14,9 @@ "format-and-lint": "biome check .", "format-and-lint:fix": "biome check . --write --unsafe", "test": "turbo run test", - "test:watch": "turbo run test:watch" + "test:watch": "turbo run test:watch", + "publish:dry": "pnpm -r publish --dry-run --no-git-checks", + "publish:release": "pnpm -r publish --no-git-checks" }, "devDependencies": { "@biomejs/biome": "2.1.4", diff --git a/packages/cip/package.json b/packages/cip/package.json index 19bfae6..f7c16ef 100644 --- a/packages/cip/package.json +++ b/packages/cip/package.json @@ -1,10 +1,24 @@ { - "name": "@repo/cip", + "name": "@minswap/felis-cip", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/cip" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": [ + "dist" + ], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -23,8 +37,8 @@ "vitest": "^3.2.4" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "@minswap/tiny-invariant": "^1.2.0", "bip39": "^3.1.0" } diff --git a/packages/cip/src/bip32.ts b/packages/cip/src/bip32.ts index c31496f..3135904 100644 --- a/packages/cip/src/bip32.ts +++ b/packages/cip/src/bip32.ts @@ -1,4 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; import { Address, AddressType, @@ -9,14 +8,15 @@ import { networkEnvironmentToNetworkID, PrivateKey, type Utxo, -} from "@repo/ledger-core"; +} from "@minswap/felis-ledger-core"; import { type CSLBip32PrivateKey, type CSLBip32PublicKey, Maybe, RustModule, safeFreeRustObjects, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import { mnemonicToEntropy } from "bip39"; /** diff --git a/packages/cip/src/bip39.ts b/packages/cip/src/bip39.ts index 44ffd9f..a16cbc9 100644 --- a/packages/cip/src/bip39.ts +++ b/packages/cip/src/bip39.ts @@ -1,4 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; import { Address, AddressType, @@ -7,8 +6,9 @@ import { networkEnvironmentToNetworkID, PrivateKey, RewardAddress, -} from "@repo/ledger-core"; -import { RustModule } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { RustModule } from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import { mnemonicToEntropy } from "bip39"; const harden = (num: number): number => 0x80000000 + num; diff --git a/packages/cip/src/cip-25.ts b/packages/cip/src/cip-25.ts index 78be428..f3fd282 100644 --- a/packages/cip/src/cip-25.ts +++ b/packages/cip/src/cip-25.ts @@ -1,4 +1,4 @@ -import type { Asset } from "@repo/ledger-core"; +import type { Asset } from "@minswap/felis-ledger-core"; export type CIP25File = { name: string; diff --git a/packages/cip/src/cip-68.ts b/packages/cip/src/cip-68.ts index 03fd068..7e7a43a 100644 --- a/packages/cip/src/cip-68.ts +++ b/packages/cip/src/cip-68.ts @@ -1,6 +1,6 @@ +import { Asset, Bytes, DatumSourceType, type InlineDatum } from "@minswap/felis-ledger-core"; +import { type Maybe, RustModule, safeFreeRustObjects } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; -import { Asset, Bytes, DatumSourceType, type InlineDatum } from "@repo/ledger-core"; -import { type Maybe, RustModule, safeFreeRustObjects } from "@repo/ledger-utils"; export const CIP_LABEL_LENGTH = 8; diff --git a/packages/cip/test/bip32.test.ts b/packages/cip/test/bip32.test.ts index 05d3589..92bc9ec 100644 --- a/packages/cip/test/bip32.test.ts +++ b/packages/cip/test/bip32.test.ts @@ -1,5 +1,5 @@ -import { NetworkEnvironment, PrivateKey } from "@repo/ledger-core"; -import { RustModule } from "@repo/ledger-utils"; +import { NetworkEnvironment, PrivateKey } from "@minswap/felis-ledger-core"; +import { RustModule } from "@minswap/felis-ledger-utils"; import { beforeAll, describe, expect, it } from "vitest"; import { Bip32, baseAddressWalletFromSeed } from "../src"; diff --git a/packages/felis/package.json b/packages/felis/package.json new file mode 100644 index 0000000..532149f --- /dev/null +++ b/packages/felis/package.json @@ -0,0 +1,52 @@ +{ + "name": "@minswap/felis", + "version": "0.0.1", + "description": "Minswap Felis - A comprehensive TypeScript SDK for Cardano DEX infrastructure with leveraged trading", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/felis" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], + "exports": { + ".": "./dist/index.js" + }, + "publishConfig": { + "access": "public" + }, + "scripts": { + "dev": "tsc --watch --preserveWatchOutput", + "build": "tsc", + "check-circular-imports": "dpdm --no-warning --no-tree src" + }, + "devDependencies": { + "@repo/eslint-config": "workspace:*", + "@repo/typescript-config": "workspace:*", + "@types/node": "^22.15.3", + "eslint": "^9.31.0", + "typescript": "5.8.2", + "dpdm": "^3.14.0" + }, + "dependencies": { + "@minswap/felis-ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-cip": "workspace:*", + "@minswap/felis-tx-builder": "workspace:*", + "@minswap/felis-provider": "workspace:*", + "@minswap/felis-dex-v1": "workspace:*", + "@minswap/felis-dex-v2": "workspace:*", + "@minswap/felis-build-tx": "workspace:*", + "@minswap/felis-stableswap": "workspace:*", + "@minswap/felis-lending-market": "workspace:*", + "@minswap/felis-splash": "workspace:*", + "@minswap/felis-sundaeswap-v1": "workspace:*", + "@minswap/felis-sundaeswap-v3": "workspace:*", + "@minswap/felis-wingriders-v1": "workspace:*", + "@minswap/felis-wingriders-v2": "workspace:*", + "@minswap/felis-syncer": "workspace:*" + } +} diff --git a/packages/felis/src/index.ts b/packages/felis/src/index.ts new file mode 100644 index 0000000..af83af8 --- /dev/null +++ b/packages/felis/src/index.ts @@ -0,0 +1,43 @@ +/** + * @minswap/felis - All-in-one package for Minswap Felis SDK + * + * This package re-exports all Felis packages for convenient single-import usage. + * For production, consider importing individual packages for better tree-shaking. + * + * @example + * // Single import for discovery/exploration + * import { LedgerCore, DexV2, TxBuilder } from "@minswap/felis"; + * + * // Or use individual packages for tree-shaking + * import { Address, Tx } from "@minswap/felis-ledger-core"; + */ + +// Core utilities and primitives +export * as LedgerUtils from "@minswap/felis-ledger-utils"; +export * as LedgerCore from "@minswap/felis-ledger-core"; + +// CIP implementations (BIP32/39, CIP-25, CIP-68) +export * as Cip from "@minswap/felis-cip"; + +// Transaction building +export * as TxBuilder from "@minswap/felis-tx-builder"; +export * as Provider from "@minswap/felis-provider"; + +// Minswap DEX protocols +export * as DexV1 from "@minswap/felis-dex-v1"; +export * as DexV2 from "@minswap/felis-dex-v2"; +export * as BuildTx from "@minswap/felis-build-tx"; +export * as Stableswap from "@minswap/felis-stableswap"; + +// Lending integration +export * as LendingMarket from "@minswap/felis-lending-market"; + +// Third-party DEX integrations +export * as Splash from "@minswap/felis-splash"; +export * as SundaeswapV1 from "@minswap/felis-sundaeswap-v1"; +export * as SundaeswapV3 from "@minswap/felis-sundaeswap-v3"; +export * as WingridersV1 from "@minswap/felis-wingriders-v1"; +export * as WingridersV2 from "@minswap/felis-wingriders-v2"; + +// Syncer for blockchain data +export * as Syncer from "@minswap/felis-syncer"; diff --git a/packages/felis/tsconfig.json b/packages/felis/tsconfig.json new file mode 100644 index 0000000..31fbdf6 --- /dev/null +++ b/packages/felis/tsconfig.json @@ -0,0 +1,28 @@ +{ + "ts-node": { + "transpileOnly": true, + "experimentalSpecifierResolution": "node" + }, + "compilerOptions": { + "outDir": "./dist", + "strict": true, + "forceConsistentCasingInFileNames": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noFallthroughCasesInSwitch": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "target": "ES2022", + "lib": ["ES2022", "DOM"], + "module": "ES2022", + "moduleResolution": "bundler", + "declaration": true, + "sourceMap": true, + "esModuleInterop": true, + "skipLibCheck": true, + "resolveJsonModule": true + }, + "include": ["src"], + "exclude": ["node_modules", "test"] +} diff --git a/packages/ledger-core/package.json b/packages/ledger-core/package.json index 5bc9cbc..bfec973 100644 --- a/packages/ledger-core/package.json +++ b/packages/ledger-core/package.json @@ -1,8 +1,24 @@ { - "name": "@repo/ledger-core", + "name": "@minswap/felis-ledger-core", + "version": "0.0.1", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/ledger-core" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": [ + "dist" + ], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -20,7 +36,7 @@ "fast-check": "^3.23.2" }, "dependencies": { - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "bignumber.js": "^9.1.2", "@stricahq/cbors": "^1.0.3", "@minswap/tiny-invariant": "^1.2.0", diff --git a/packages/ledger-core/src/address.ts b/packages/ledger-core/src/address.ts index fa6a23d..3b757b5 100644 --- a/packages/ledger-core/src/address.ts +++ b/packages/ledger-core/src/address.ts @@ -1,5 +1,4 @@ import type * as Ogmios from "@cardano-ogmios/schema"; -import invariant from "@minswap/tiny-invariant"; import { type CborHex, type CSLAddress, @@ -8,7 +7,8 @@ import { Maybe, RustModule, safeFreeRustObjects, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import { Bytes } from "./bytes"; import { AddressType, diff --git a/packages/ledger-core/src/asset.ts b/packages/ledger-core/src/asset.ts index be8288b..c354e15 100644 --- a/packages/ledger-core/src/asset.ts +++ b/packages/ledger-core/src/asset.ts @@ -1,6 +1,5 @@ +import { sha3 } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; - -import { sha3 } from "@repo/ledger-utils"; import { Bytes } from "./bytes"; import { PlutusConstr, type PlutusData } from "./plutus-json"; diff --git a/packages/ledger-core/src/bytes.ts b/packages/ledger-core/src/bytes.ts index 45e8148..3c6d0e1 100644 --- a/packages/ledger-core/src/bytes.ts +++ b/packages/ledger-core/src/bytes.ts @@ -5,7 +5,7 @@ import { isValidHex, RustModule, safeFreeRustObjects, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; import { PlutusBytes, type PlutusData } from "./plutus-json"; diff --git a/packages/ledger-core/src/cardano-address.ts b/packages/ledger-core/src/cardano-address.ts index 494e021..2ecf145 100644 --- a/packages/ledger-core/src/cardano-address.ts +++ b/packages/ledger-core/src/cardano-address.ts @@ -1,4 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; import { type CSLAddress, type CSLStakeCredential, @@ -7,7 +6,8 @@ import { Result, RustModule, safeFreeRustObjects, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import * as Typhon from "@stricahq/typhonjs"; import { Bytes } from "./bytes"; import { NetworkID } from "./network-id"; diff --git a/packages/ledger-core/src/cbor-serializer.ts b/packages/ledger-core/src/cbor-serializer.ts index 95cea88..ba37536 100644 --- a/packages/ledger-core/src/cbor-serializer.ts +++ b/packages/ledger-core/src/cbor-serializer.ts @@ -1,5 +1,5 @@ +import { blake2b256, Maybe, RustModule, safeFreeRustObjects } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; -import { blake2b256, Maybe, RustModule, safeFreeRustObjects } from "@repo/ledger-utils"; import * as cbors from "@stricahq/cbors"; import BigNumber from "bignumber.js"; import * as cbor from "cbor"; diff --git a/packages/ledger-core/src/crypto.ts b/packages/ledger-core/src/crypto.ts index 58d8b37..b07c7bf 100644 --- a/packages/ledger-core/src/crypto.ts +++ b/packages/ledger-core/src/crypto.ts @@ -1,4 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; import { type CborHex, type CSLEd25519KeyHash, @@ -7,7 +6,8 @@ import { type ECSLPrivateKey, RustModule, safeFreeRustObjects, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import * as cbor from "cbor"; import { Bytes } from "./bytes"; import type { NativeScript } from "./native-script"; diff --git a/packages/ledger-core/src/drep.ts b/packages/ledger-core/src/drep.ts index 59f10d4..2844424 100644 --- a/packages/ledger-core/src/drep.ts +++ b/packages/ledger-core/src/drep.ts @@ -1,4 +1,4 @@ -import { type CSLDRep, RustModule } from "@repo/ledger-utils"; +import { type CSLDRep, RustModule } from "@minswap/felis-ledger-utils"; import type { Bytes } from "./bytes"; import type { PublicKeyHash } from "./crypto"; diff --git a/packages/ledger-core/src/native-script.ts b/packages/ledger-core/src/native-script.ts index f3381de..3585aba 100644 --- a/packages/ledger-core/src/native-script.ts +++ b/packages/ledger-core/src/native-script.ts @@ -1,4 +1,4 @@ -import { type CSLScriptPubkey, RustModule, safeFreeRustObjects } from "@repo/ledger-utils"; +import { type CSLScriptPubkey, RustModule, safeFreeRustObjects } from "@minswap/felis-ledger-utils"; import { Bytes } from "./bytes"; export type NativeScriptPubKeyHash = { diff --git a/packages/ledger-core/src/plutus-json.ts b/packages/ledger-core/src/plutus-json.ts index f9aac56..8605a72 100644 --- a/packages/ledger-core/src/plutus-json.ts +++ b/packages/ledger-core/src/plutus-json.ts @@ -1,5 +1,5 @@ +import { type CSLPlutusData, Maybe, RustModule, safeFreeRustObjects } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; -import { type CSLPlutusData, Maybe, RustModule, safeFreeRustObjects } from "@repo/ledger-utils"; import * as cbors from "@stricahq/cbors"; import { BigNumber } from "bignumber.js"; diff --git a/packages/ledger-core/src/plutus-version.ts b/packages/ledger-core/src/plutus-version.ts index b15d254..e054773 100644 --- a/packages/ledger-core/src/plutus-version.ts +++ b/packages/ledger-core/src/plutus-version.ts @@ -1,4 +1,4 @@ -import { type CSLLanguage, type ECSLLanguage, RustModule } from "@repo/ledger-utils"; +import { type CSLLanguage, type ECSLLanguage, RustModule } from "@minswap/felis-ledger-utils"; import type { Bytes } from "./bytes"; export enum PlutusVersion { diff --git a/packages/ledger-core/src/plutus.ts b/packages/ledger-core/src/plutus.ts index a9406f8..c8f5d26 100644 --- a/packages/ledger-core/src/plutus.ts +++ b/packages/ledger-core/src/plutus.ts @@ -1,4 +1,4 @@ -import type { CborHex, CSLNativeScript, CSLPlutusScript } from "@repo/ledger-utils"; +import type { CborHex, CSLNativeScript, CSLPlutusScript } from "@minswap/felis-ledger-utils"; import type { Address, RewardAddress } from "./address"; import type { Asset } from "./asset"; import type { PlutusData } from "./plutus-json"; diff --git a/packages/ledger-core/src/redeemer.ts b/packages/ledger-core/src/redeemer.ts index 75d7b6d..6b129b6 100644 --- a/packages/ledger-core/src/redeemer.ts +++ b/packages/ledger-core/src/redeemer.ts @@ -7,7 +7,7 @@ import { RustModule, safeFreeRustObjects, unwrapRustVec, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; import * as cbors from "@stricahq/cbors"; import type { Bytes } from "./bytes"; import { PlutusData, type PreEncodedPlutusData } from "./plutus-json"; diff --git a/packages/ledger-core/src/slot-config.ts b/packages/ledger-core/src/slot-config.ts index eaa1bb3..0740edb 100644 --- a/packages/ledger-core/src/slot-config.ts +++ b/packages/ledger-core/src/slot-config.ts @@ -1,4 +1,4 @@ -import { Duration } from "@repo/ledger-utils"; +import { Duration } from "@minswap/felis-ledger-utils"; import { NetworkEnvironment } from "./network-id"; // Default timeout for txs in ms (to set TTL field) diff --git a/packages/ledger-core/src/stake-pool.ts b/packages/ledger-core/src/stake-pool.ts index df87e37..94fd630 100644 --- a/packages/ledger-core/src/stake-pool.ts +++ b/packages/ledger-core/src/stake-pool.ts @@ -1,4 +1,4 @@ -import { RustModule, safeFreeRustObjects } from "@repo/ledger-utils"; +import { RustModule, safeFreeRustObjects } from "@minswap/felis-ledger-utils"; import type { RewardAddress } from "./address"; import { Bytes } from "./bytes"; diff --git a/packages/ledger-core/src/tx.ts b/packages/ledger-core/src/tx.ts index 1979fb6..8fa757c 100644 --- a/packages/ledger-core/src/tx.ts +++ b/packages/ledger-core/src/tx.ts @@ -4,7 +4,7 @@ import type { CSLPlutusScript, ECSLVotingProcedures, ECSLVotingProposals, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; import type { RewardAddress } from "./address"; import type { PublicKeyHash } from "./crypto"; import { DRep } from "./drep"; diff --git a/packages/ledger-core/src/utxo.ts b/packages/ledger-core/src/utxo.ts index 9c5672f..5c5a001 100644 --- a/packages/ledger-core/src/utxo.ts +++ b/packages/ledger-core/src/utxo.ts @@ -1,5 +1,4 @@ import type * as Ogmios from "@cardano-ogmios/schema"; -import invariant from "@minswap/tiny-invariant"; import { type CborHex, type CSLPlutusData, @@ -15,7 +14,8 @@ import { RustModule, safeFreeRustObjects, unwrapRustVec, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import * as cbor from "cbor"; import { Address } from "./address"; import { ADA, type Asset } from "./asset"; diff --git a/packages/ledger-core/src/validity-range.ts b/packages/ledger-core/src/validity-range.ts index 2a78ae6..9865205 100644 --- a/packages/ledger-core/src/validity-range.ts +++ b/packages/ledger-core/src/validity-range.ts @@ -1,4 +1,4 @@ -import { type Maybe, Result } from "@repo/ledger-utils"; +import { type Maybe, Result } from "@minswap/felis-ledger-utils"; export type ValidityRange = { validFrom: Maybe; diff --git a/packages/ledger-core/src/value.ts b/packages/ledger-core/src/value.ts index e91d12f..bab4fa9 100644 --- a/packages/ledger-core/src/value.ts +++ b/packages/ledger-core/src/value.ts @@ -1,5 +1,5 @@ import type * as Ogmios from "@cardano-ogmios/schema"; -import { type CborHex, type CSLValue, RustModule, safeFreeRustObjects } from "@repo/ledger-utils"; +import { type CborHex, type CSLValue, RustModule, safeFreeRustObjects } from "@minswap/felis-ledger-utils"; import JSONBig from "json-bigint"; import { isDeepEqual } from "remeda"; import { ADA, Asset } from "./asset"; diff --git a/packages/ledger-core/test/address.test.ts b/packages/ledger-core/test/address.test.ts index 6667806..232fba2 100644 --- a/packages/ledger-core/test/address.test.ts +++ b/packages/ledger-core/test/address.test.ts @@ -1,4 +1,4 @@ -import { RustModule } from "@repo/ledger-utils"; +import { RustModule } from "@minswap/felis-ledger-utils"; import { beforeAll, describe, expect, it, test } from "vitest"; import { Address, NetworkEnvironment, RewardAddress } from "../src"; diff --git a/packages/ledger-core/test/asset.test.ts b/packages/ledger-core/test/asset.test.ts index 38a5e71..0a9c8e6 100644 --- a/packages/ledger-core/test/asset.test.ts +++ b/packages/ledger-core/test/asset.test.ts @@ -1,4 +1,4 @@ -import { RustModule } from "@repo/ledger-utils"; +import { RustModule } from "@minswap/felis-ledger-utils"; import * as fc from "fast-check"; import { beforeAll, describe, it } from "vitest"; import { Asset } from "../src"; diff --git a/packages/ledger-core/test/bytes.test.ts b/packages/ledger-core/test/bytes.test.ts index 48f2d97..71f1fbb 100644 --- a/packages/ledger-core/test/bytes.test.ts +++ b/packages/ledger-core/test/bytes.test.ts @@ -1,4 +1,4 @@ -import { RustModule } from "@repo/ledger-utils"; +import { RustModule } from "@minswap/felis-ledger-utils"; import * as fc from "fast-check"; import { beforeAll, describe, expect, it } from "vitest"; import { Bytes } from "../src"; diff --git a/packages/ledger-core/test/cardano-address.test.ts b/packages/ledger-core/test/cardano-address.test.ts index 95bfd63..2e77163 100644 --- a/packages/ledger-core/test/cardano-address.test.ts +++ b/packages/ledger-core/test/cardano-address.test.ts @@ -1,4 +1,4 @@ -import { Result, RustModule } from "@repo/ledger-utils"; +import { Result, RustModule } from "@minswap/felis-ledger-utils"; import * as fc from "fast-check"; import { isDeepEqual } from "remeda"; import { beforeAll, describe, test } from "vitest"; diff --git a/packages/ledger-core/test/redeemer.test.ts b/packages/ledger-core/test/redeemer.test.ts index 492afea..1745493 100644 --- a/packages/ledger-core/test/redeemer.test.ts +++ b/packages/ledger-core/test/redeemer.test.ts @@ -1,4 +1,4 @@ -import { RustModule } from "@repo/ledger-utils"; +import { RustModule } from "@minswap/felis-ledger-utils"; import { beforeAll, describe, expect, test } from "vitest"; import { Bytes, PlutusBytes, PlutusInt, Redeemer, RedeemerType } from "../src"; diff --git a/packages/ledger-core/test/tx.test.ts b/packages/ledger-core/test/tx.test.ts index d9a5565..5302fbd 100644 --- a/packages/ledger-core/test/tx.test.ts +++ b/packages/ledger-core/test/tx.test.ts @@ -1,5 +1,5 @@ import type * as Ogmios from "@cardano-ogmios/schema"; -import { RustModule } from "@repo/ledger-utils"; +import { RustModule } from "@minswap/felis-ledger-utils"; import * as fc from "fast-check"; import JSONBig from "json-bigint"; import { beforeAll, describe, expect, it } from "vitest"; diff --git a/packages/ledger-core/test/value.test.ts b/packages/ledger-core/test/value.test.ts index 7b66140..756c8f7 100644 --- a/packages/ledger-core/test/value.test.ts +++ b/packages/ledger-core/test/value.test.ts @@ -1,4 +1,4 @@ -import { RustModule } from "@repo/ledger-utils"; +import { RustModule } from "@minswap/felis-ledger-utils"; import * as fc from "fast-check"; import { beforeAll, describe, expect, it } from "vitest"; import { ADA, Asset, Bytes, Value } from "../src"; diff --git a/packages/ledger-utils/package.json b/packages/ledger-utils/package.json index 6895fe6..c06da3a 100644 --- a/packages/ledger-utils/package.json +++ b/packages/ledger-utils/package.json @@ -1,10 +1,24 @@ { - "name": "@repo/ledger-utils", + "name": "@minswap/felis-ledger-utils", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/ledger-utils" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": [ + "dist" + ], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -28,8 +42,8 @@ "@minswap/cardano-serialization-lib-browser": "11.1.0-minswap.33", "@minswap/cardano-serialization-lib-nodejs": "11.1.0-minswap.33", "@minswap/tiny-invariant": "^1.2.0", - "@repo/uplc-node": "workspace:*", - "@repo/uplc-web": "workspace:*", + "@minswap/felis-uplc-node": "workspace:*", + "@minswap/felis-uplc-web": "workspace:*", "blakejs": "^1.2.1", "sha3": "^2.1.4", "json-bigint": "^1.0.0" diff --git a/packages/ledger-utils/src/loader.ts b/packages/ledger-utils/src/loader.ts index ad69c89..a047543 100644 --- a/packages/ledger-utils/src/loader.ts +++ b/packages/ledger-utils/src/loader.ts @@ -1,6 +1,6 @@ export type Lib = typeof import("@minswap/cardano-serialization-lib-nodejs"); export type ELib = typeof import("@emurgo/cardano-serialization-lib-nodejs"); -export type ULib = typeof import("@repo/uplc-node"); +export type ULib = typeof import("@minswap/felis-uplc-node"); class Module { private _wasm: Lib | null = null; @@ -37,7 +37,7 @@ class Module { const [_wasm, _eWasm, _uWasm] = await Promise.all([ import("@minswap/cardano-serialization-lib-browser"), import("@emurgo/cardano-serialization-lib-browser"), - import("@repo/uplc-web"), + import("@minswap/felis-uplc-web"), ]); this._wasm = _wasm; this._eWasm = _eWasm; @@ -46,7 +46,7 @@ class Module { const [_wasm, _eWasm, _uWasm] = await Promise.all([ import("@minswap/cardano-serialization-lib-nodejs"), import("@emurgo/cardano-serialization-lib-nodejs"), - import("@repo/uplc-node"), + import("@minswap/felis-uplc-node"), ]); this._wasm = _wasm; this._eWasm = _eWasm; diff --git a/packages/minswap-build-tx/package.json b/packages/minswap-build-tx/package.json index aab294a..80e28c7 100644 --- a/packages/minswap-build-tx/package.json +++ b/packages/minswap-build-tx/package.json @@ -1,10 +1,24 @@ { - "name": "@repo/minswap-build-tx", + "name": "@minswap/felis-build-tx", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/minswap-build-tx" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": [ + "dist" + ], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -23,10 +37,10 @@ "vitest": "^3.2.4" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", - "@repo/tx-builder": "workspace:*", - "@repo/minswap-dex-v2": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", + "@minswap/felis-tx-builder": "workspace:*", + "@minswap/felis-dex-v2": "workspace:*", "@minswap/tiny-invariant": "^1.2.0", "bignumber.js": "^9.1.2" } diff --git a/packages/minswap-build-tx/src/dex-order-transaction.ts b/packages/minswap-build-tx/src/dex-order-transaction.ts index 77400a2..4c676fc 100644 --- a/packages/minswap-build-tx/src/dex-order-transaction.ts +++ b/packages/minswap-build-tx/src/dex-order-transaction.ts @@ -1,15 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; -import { - ADA, - type Address, - type Asset, - Bytes, - DatumSource, - type NetworkEnvironment, - TxOut, - Value, -} from "@repo/ledger-core"; -import { Maybe } from "@repo/ledger-utils"; import { BATCHER_FEE_DEX_V2, buildDexV2OrderAddress, @@ -26,8 +14,20 @@ import { OrderV2StepType, type OrderV2SwapRouting, OUTPUT_ADA, -} from "@repo/minswap-dex-v2"; -import { TxBuilder } from "@repo/tx-builder"; +} from "@minswap/felis-dex-v2"; +import { + ADA, + type Address, + type Asset, + Bytes, + DatumSource, + type NetworkEnvironment, + TxOut, + Value, +} from "@minswap/felis-ledger-core"; +import { Maybe } from "@minswap/felis-ledger-utils"; +import { TxBuilder } from "@minswap/felis-tx-builder"; +import invariant from "@minswap/tiny-invariant"; import { MetadataMessage } from "./metadata"; export namespace DEXOrderTransaction { diff --git a/packages/minswap-build-tx/src/djed.ts b/packages/minswap-build-tx/src/djed.ts index 59468a8..965db9e 100644 --- a/packages/minswap-build-tx/src/djed.ts +++ b/packages/minswap-build-tx/src/djed.ts @@ -1,4 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; import { ADA, Address, @@ -14,9 +13,10 @@ import { TxOut, Utxo, Value, -} from "@repo/ledger-core"; -import { Result } from "@repo/ledger-utils"; -import type { TxBuilder } from "@repo/tx-builder"; +} from "@minswap/felis-ledger-core"; +import { Result } from "@minswap/felis-ledger-utils"; +import type { TxBuilder } from "@minswap/felis-tx-builder"; +import invariant from "@minswap/tiny-invariant"; import BigNumber from "bignumber.js"; export namespace Djed { diff --git a/packages/minswap-build-tx/test/dex-order-transaction.test.ts b/packages/minswap-build-tx/test/dex-order-transaction.test.ts index a07d3b7..239e46f 100644 --- a/packages/minswap-build-tx/test/dex-order-transaction.test.ts +++ b/packages/minswap-build-tx/test/dex-order-transaction.test.ts @@ -1,7 +1,7 @@ -import { ADA, Address, Bytes, NetworkEnvironment, TxOut, Value } from "@repo/ledger-core"; -import { RustModule } from "@repo/ledger-utils"; -import { OrderV2Direction } from "@repo/minswap-dex-v2"; -import { CoinSelectionAlgorithm, EmulatorProvider } from "@repo/tx-builder"; +import { OrderV2Direction } from "@minswap/felis-dex-v2"; +import { ADA, Address, Bytes, NetworkEnvironment, TxOut, Value } from "@minswap/felis-ledger-core"; +import { RustModule } from "@minswap/felis-ledger-utils"; +import { CoinSelectionAlgorithm, EmulatorProvider } from "@minswap/felis-tx-builder"; import { beforeAll, describe, expect, it } from "vitest"; import { Asset } from "../../ledger-core/src"; import { DexVersion, OrderV2StepType } from "../../minswap-dex-v2/dist/order-step"; diff --git a/packages/minswap-build-tx/test/djed.test.ts b/packages/minswap-build-tx/test/djed.test.ts index 62a147b..55b739c 100644 --- a/packages/minswap-build-tx/test/djed.test.ts +++ b/packages/minswap-build-tx/test/djed.test.ts @@ -12,8 +12,8 @@ import { TxOut, Utxo, Value, -} from "@repo/ledger-core"; -import { CoinSelectionAlgorithm, EmulatorProvider, TxBuilder } from "@repo/tx-builder"; +} from "@minswap/felis-ledger-core"; +import { CoinSelectionAlgorithm, EmulatorProvider, TxBuilder } from "@minswap/felis-tx-builder"; import { beforeAll, describe, expect, it } from "vitest"; import { RustModule } from "../../ledger-utils/dist/loader"; import { Djed } from "../src"; diff --git a/packages/minswap-dex-v1/package.json b/packages/minswap-dex-v1/package.json index 3a9b57b..5ac1d50 100644 --- a/packages/minswap-dex-v1/package.json +++ b/packages/minswap-dex-v1/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/minswap-dex-v1", + "name": "@minswap/felis-dex-v1", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/minswap-dex-v1" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -20,8 +32,8 @@ "dpdm": "^3.14.0" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "@minswap/tiny-invariant": "^1.2.0" } } diff --git a/packages/minswap-dex-v1/src/constants.ts b/packages/minswap-dex-v1/src/constants.ts index cd1269f..3bf174a 100644 --- a/packages/minswap-dex-v1/src/constants.ts +++ b/packages/minswap-dex-v1/src/constants.ts @@ -11,8 +11,8 @@ import { CredentialType, NetworkID, RewardAddress, -} from "@repo/ledger-core"; -import { NetworkEnvironment, networkEnvironmentToNetworkID } from "@repo/ledger-core"; +} from "@minswap/felis-ledger-core"; +import { NetworkEnvironment, networkEnvironmentToNetworkID } from "@minswap/felis-ledger-core"; import { factoryPolicyID, lpPolicyID, nftPolicyID } from "./scripts"; let orderEnterpriseAddrTestnet: CardanoEnterpriseAddress | undefined = undefined; diff --git a/packages/minswap-dex-v1/src/invalid-order.ts b/packages/minswap-dex-v1/src/invalid-order.ts index caface1..5c33377 100644 --- a/packages/minswap-dex-v1/src/invalid-order.ts +++ b/packages/minswap-dex-v1/src/invalid-order.ts @@ -1,5 +1,5 @@ -import { type Address, type TxIn, type Value, XJSON } from "@repo/ledger-core"; -import { getErrorMessage } from "@repo/ledger-utils"; +import { type Address, type TxIn, type Value, XJSON } from "@minswap/felis-ledger-core"; +import { getErrorMessage } from "@minswap/felis-ledger-utils"; export type InvalidOrder = { dexVersion: "DEX_V1"; diff --git a/packages/minswap-dex-v1/src/order.ts b/packages/minswap-dex-v1/src/order.ts index 4778450..1d11304 100644 --- a/packages/minswap-dex-v1/src/order.ts +++ b/packages/minswap-dex-v1/src/order.ts @@ -1,5 +1,5 @@ -import { Asset, PlutusData, PlutusConstr, PlutusInt, Bytes, NetworkEnvironment, Address, PlutusMaybe, PlutusBytes, TxIn, Value, BaseUtxoModel, ADA, Utxo } from "@repo/ledger-core"; -import { CborHex, CSLPlutusData, Maybe, Result } from "@repo/ledger-utils"; +import { Asset, PlutusData, PlutusConstr, PlutusInt, Bytes, NetworkEnvironment, Address, PlutusMaybe, PlutusBytes, TxIn, Value, BaseUtxoModel, ADA, Utxo } from "@minswap/felis-ledger-core"; +import { CborHex, CSLPlutusData, Maybe, Result } from "@minswap/felis-ledger-utils"; import { getDexV1OrderScriptHash, LP_CURRENCY_SYMBOL } from "./constants"; import { InvalidOrder } from "./invalid-order"; import { isNormalizePair, normalizePair } from "./utils"; diff --git a/packages/minswap-dex-v1/src/utils.ts b/packages/minswap-dex-v1/src/utils.ts index 9f34f6e..29cc950 100644 --- a/packages/minswap-dex-v1/src/utils.ts +++ b/packages/minswap-dex-v1/src/utils.ts @@ -1,4 +1,4 @@ -import { Asset } from "@repo/ledger-core"; +import { Asset } from "@minswap/felis-ledger-core"; export function normalizePair([a, b]: [Asset, Asset]): [Asset, Asset] { if (a.compare(b) > 0) { diff --git a/packages/minswap-dex-v2/package.json b/packages/minswap-dex-v2/package.json index 91e4f52..2ddd22f 100644 --- a/packages/minswap-dex-v2/package.json +++ b/packages/minswap-dex-v2/package.json @@ -1,10 +1,24 @@ { - "name": "@repo/minswap-dex-v2", + "name": "@minswap/felis-dex-v2", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/minswap-dex-v2" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": [ + "dist" + ], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -23,8 +37,8 @@ "vitest": "^3.2.4" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "@minswap/tiny-invariant": "^1.2.0" } } diff --git a/packages/minswap-dex-v2/src/constants.ts b/packages/minswap-dex-v2/src/constants.ts index af6d28e..8f13d17 100644 --- a/packages/minswap-dex-v2/src/constants.ts +++ b/packages/minswap-dex-v2/src/constants.ts @@ -1,5 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; - import { Address, AddressType, @@ -18,8 +16,9 @@ import { TxOut, Utxo, Value, -} from "@repo/ledger-core"; -import { Maybe } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { Maybe } from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import { getMinswapStakeAddresses } from "./data/constants"; import mainnetRawScripts from "./scripts/mainnet/dex-v2-script.json"; import mainnetReferenceScripts from "./scripts/mainnet/references-script.json"; diff --git a/packages/minswap-dex-v2/src/data/constants.ts b/packages/minswap-dex-v2/src/data/constants.ts index d074e91..16c6321 100644 --- a/packages/minswap-dex-v2/src/data/constants.ts +++ b/packages/minswap-dex-v2/src/data/constants.ts @@ -7,7 +7,7 @@ import { NetworkID, networkEnvironmentToNetworkID, RewardAddress, -} from "@repo/ledger-core"; +} from "@minswap/felis-ledger-core"; import rawLpStakeAddressMainnet from "../data/mainnet/liquidity-pool-stake-addresses.json"; import rawLpStakeAddressTestnet from "../data/testnet/liquidity-pool-stake-addresses.json"; diff --git a/packages/minswap-dex-v2/src/invalid-order.ts b/packages/minswap-dex-v2/src/invalid-order.ts index ff42ec6..52295ab 100644 --- a/packages/minswap-dex-v2/src/invalid-order.ts +++ b/packages/minswap-dex-v2/src/invalid-order.ts @@ -1,5 +1,5 @@ -import { type Address, type TxIn, type Value, XJSON } from "@repo/ledger-core"; -import { getErrorMessage } from "@repo/ledger-utils"; +import { type Address, type TxIn, type Value, XJSON } from "@minswap/felis-ledger-core"; +import { getErrorMessage } from "@minswap/felis-ledger-utils"; import type { DexVersion } from "./order-step"; export type InvalidOrder = { diff --git a/packages/minswap-dex-v2/src/order.ts b/packages/minswap-dex-v2/src/order.ts index 95fef87..8d264b8 100644 --- a/packages/minswap-dex-v2/src/order.ts +++ b/packages/minswap-dex-v2/src/order.ts @@ -17,8 +17,8 @@ import { TxIn, type Utxo, type Value, -} from "@repo/ledger-core"; -import { type CborHex, type CSLPlutusData, Maybe, Result } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { type CborHex, type CSLPlutusData, Maybe, Result } from "@minswap/felis-ledger-utils"; import { getDexV2Configs, getDexV2OrderScriptHash } from "./constants"; import { InvalidOrder } from "./invalid-order"; import { DexVersion, OrderV2StepType } from "./order-step"; diff --git a/packages/minswap-dex-v2/src/pool.ts b/packages/minswap-dex-v2/src/pool.ts index 46313bf..fc05281 100644 --- a/packages/minswap-dex-v2/src/pool.ts +++ b/packages/minswap-dex-v2/src/pool.ts @@ -1,5 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; - import { ADA, type Address, @@ -20,8 +18,9 @@ import { UnwrapPlutusDataError, type Utxo, type Value, -} from "@repo/ledger-core"; -import { type CborHex, type CSLPlutusData, Maybe, Result, sha3 } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { type CborHex, type CSLPlutusData, Maybe, Result, sha3 } from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import { DEX_V2_DEFAULT_POOL_ADA, getDexV2Configs } from "./constants"; import { OrderV2Direction } from "./order"; diff --git a/packages/minswap-dex-v2/src/utils.ts b/packages/minswap-dex-v2/src/utils.ts index 70e3dfe..3ff8636 100644 --- a/packages/minswap-dex-v2/src/utils.ts +++ b/packages/minswap-dex-v2/src/utils.ts @@ -1,5 +1,5 @@ -import type { Asset } from "@repo/ledger-core"; -import { type Maybe, Result } from "@repo/ledger-utils"; +import type { Asset } from "@minswap/felis-ledger-core"; +import { type Maybe, Result } from "@minswap/felis-ledger-utils"; import { OrderV2Direction } from "./order"; import type { PoolV2BaseFee } from "./pool"; import { bigIntPow, sqrt } from "./sqrt"; diff --git a/packages/minswap-dex-v2/test/order-datum.test.ts b/packages/minswap-dex-v2/test/order-datum.test.ts index b649fe5..3f18e29 100644 --- a/packages/minswap-dex-v2/test/order-datum.test.ts +++ b/packages/minswap-dex-v2/test/order-datum.test.ts @@ -1,5 +1,5 @@ -import { NetworkEnvironment } from "@repo/ledger-core"; -import { RustModule } from "@repo/ledger-utils"; +import { NetworkEnvironment } from "@minswap/felis-ledger-core"; +import { RustModule } from "@minswap/felis-ledger-utils"; import { beforeAll, describe, expect, it } from "vitest"; import { OrderV2Datum, OrderV2StepType } from "../src"; diff --git a/packages/minswap-lending-market/package.json b/packages/minswap-lending-market/package.json index d612f24..89fb814 100644 --- a/packages/minswap-lending-market/package.json +++ b/packages/minswap-lending-market/package.json @@ -1,10 +1,24 @@ { - "name": "@repo/minswap-lending-market", + "name": "@minswap/felis-lending-market", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/minswap-lending-market" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": [ + "dist" + ], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -20,12 +34,12 @@ "dpdm": "^3.14.0" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", - "@repo/tx-builder": "workspace:*", - "@repo/minswap-build-tx": "workspace:*", - "@repo/minswap-dex-v2": "workspace:*", - "@repo/cip": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", + "@minswap/felis-tx-builder": "workspace:*", + "@minswap/felis-build-tx": "workspace:*", + "@minswap/felis-dex-v2": "workspace:*", + "@minswap/felis-cip": "workspace:*", "remeda": "^2.19.2", "@minswap/tiny-invariant": "^1.2.0", "bignumber.js": "^9.1.2", diff --git a/packages/minswap-lending-market/src/lending-market.ts b/packages/minswap-lending-market/src/lending-market.ts index 207cc53..1d36876 100644 --- a/packages/minswap-lending-market/src/lending-market.ts +++ b/packages/minswap-lending-market/src/lending-market.ts @@ -1,9 +1,17 @@ +import { DEXOrderTransaction } from "@minswap/felis-build-tx"; +import { DexVersion, OrderV2Direction, OrderV2StepType } from "@minswap/felis-dex-v2"; +import { + type Address, + Asset, + NetworkEnvironment, + PrivateKey, + Utxo, + type Value, + XJSON, +} from "@minswap/felis-ledger-core"; +import { Result } from "@minswap/felis-ledger-utils"; +import { CoinSelectionAlgorithm, EmulatorProvider } from "@minswap/felis-tx-builder"; import invariant from "@minswap/tiny-invariant"; -import { type Address, Asset, NetworkEnvironment, PrivateKey, Utxo, type Value, XJSON } from "@repo/ledger-core"; -import { Result } from "@repo/ledger-utils"; -import { DEXOrderTransaction } from "@repo/minswap-build-tx"; -import { DexVersion, OrderV2Direction, OrderV2StepType } from "@repo/minswap-dex-v2"; -import { CoinSelectionAlgorithm, EmulatorProvider } from "@repo/tx-builder"; import { LiqwidProvider } from "./liqwid-provider"; import type { NitroWallet } from "./nitro-wallet"; diff --git a/packages/minswap-lending-market/src/liqwid-provider.ts b/packages/minswap-lending-market/src/liqwid-provider.ts index 5b9ae0d..7ff6bff 100644 --- a/packages/minswap-lending-market/src/liqwid-provider.ts +++ b/packages/minswap-lending-market/src/liqwid-provider.ts @@ -1,5 +1,5 @@ -import { NetworkEnvironment, type PrivateKey, XJSON } from "@repo/ledger-core"; -import { blake2b256, Result, RustModule } from "@repo/ledger-utils"; +import { NetworkEnvironment, type PrivateKey, XJSON } from "@minswap/felis-ledger-core"; +import { blake2b256, Result, RustModule } from "@minswap/felis-ledger-utils"; import * as cbor from "cbor"; export namespace LiqwidProvider { diff --git a/packages/minswap-lending-market/src/nitro-wallet.ts b/packages/minswap-lending-market/src/nitro-wallet.ts index a581f97..f18b76e 100644 --- a/packages/minswap-lending-market/src/nitro-wallet.ts +++ b/packages/minswap-lending-market/src/nitro-wallet.ts @@ -1,7 +1,7 @@ -import { baseWalletFromEntropy } from "@repo/cip"; -import { ADA, type Address, NetworkEnvironment, PrivateKey, TxOut, Utxo, Value } from "@repo/ledger-core"; -import { sha3 } from "@repo/ledger-utils"; -import { CoinSelectionAlgorithm, EmulatorProvider, TxBuilder } from "@repo/tx-builder"; +import { baseWalletFromEntropy } from "@minswap/felis-cip"; +import { ADA, type Address, NetworkEnvironment, PrivateKey, TxOut, Utxo, Value } from "@minswap/felis-ledger-core"; +import { sha3 } from "@minswap/felis-ledger-utils"; +import { CoinSelectionAlgorithm, EmulatorProvider, TxBuilder } from "@minswap/felis-tx-builder"; export namespace NitroWallet { export type Wallet = { diff --git a/packages/minswap-stableswap/package.json b/packages/minswap-stableswap/package.json index e700304..6cf4306 100644 --- a/packages/minswap-stableswap/package.json +++ b/packages/minswap-stableswap/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/minswap-stableswap", + "name": "@minswap/felis-stableswap", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/minswap-stableswap" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -25,11 +37,11 @@ }, "dependencies": { "@minswap/tiny-invariant": "^1.2.0", - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", - "@repo/minswap-build-tx": "workspace:*", - "@repo/minswap-dex-v2": "workspace:*", - "@repo/tx-builder": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", + "@minswap/felis-build-tx": "workspace:*", + "@minswap/felis-dex-v2": "workspace:*", + "@minswap/felis-tx-builder": "workspace:*", "bignumber.js": "^9.1.2", "json-bigint": "^1.0.0", "remeda": "^2.19.2" diff --git a/packages/minswap-stableswap/src/build-tx.ts b/packages/minswap-stableswap/src/build-tx.ts index 2c24a7e..5d6b54e 100644 --- a/packages/minswap-stableswap/src/build-tx.ts +++ b/packages/minswap-stableswap/src/build-tx.ts @@ -12,10 +12,10 @@ import { TxOut, type Utxo, Value, -} from "@repo/ledger-core"; -import { Maybe } from "@repo/ledger-utils"; -import { MetadataMessage } from "@repo/minswap-build-tx"; -import { TxBuilder } from "@repo/tx-builder"; +} from "@minswap/felis-ledger-core"; +import { Maybe } from "@minswap/felis-ledger-utils"; +import { MetadataMessage } from "@minswap/felis-build-tx"; +import { TxBuilder } from "@minswap/felis-tx-builder"; import { getStableswapPoolConfig, getStableswapReferencesScript } from "./configs"; import { type StableswapOrder, StableswapOrderRedeemer } from "./order"; import { diff --git a/packages/minswap-stableswap/src/configs.ts b/packages/minswap-stableswap/src/configs.ts index 7be57c7..799ddc1 100644 --- a/packages/minswap-stableswap/src/configs.ts +++ b/packages/minswap-stableswap/src/configs.ts @@ -12,8 +12,8 @@ import { Value, NetworkEnvironment as NetworkEnv, ADA, -} from "@repo/ledger-core"; -import { Maybe, Result } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { Maybe, Result } from "@minswap/felis-ledger-utils"; import mainnetRawReferencesScripts from "./scripts/mainnet/references-script.json"; import mainnetRawScripts from "./scripts/mainnet/stableswap-script.json"; import testnetRawReferencesScripts from "./scripts/testnet/references-script.json"; diff --git a/packages/minswap-stableswap/src/order.ts b/packages/minswap-stableswap/src/order.ts index bee0368..a70752f 100644 --- a/packages/minswap-stableswap/src/order.ts +++ b/packages/minswap-stableswap/src/order.ts @@ -14,9 +14,9 @@ import { TxIn, type Utxo, type Value, -} from "@repo/ledger-core"; -import { type CborHex, type CSLPlutusData, Maybe, Result } from "@repo/ledger-utils"; -import { DexVersion, InvalidOrder } from "@repo/minswap-dex-v2"; +} from "@minswap/felis-ledger-core"; +import { type CborHex, type CSLPlutusData, Maybe, Result } from "@minswap/felis-ledger-utils"; +import { DexVersion, InvalidOrder } from "@minswap/felis-dex-v2"; import { getLPAssetFromStableswapOrderAddress, getStableswapPoolConfigByLPAsset } from "./configs"; export type AssetAmount = { diff --git a/packages/minswap-stableswap/src/pool.ts b/packages/minswap-stableswap/src/pool.ts index 881f554..496e01e 100644 --- a/packages/minswap-stableswap/src/pool.ts +++ b/packages/minswap-stableswap/src/pool.ts @@ -13,8 +13,8 @@ import { UnwrapPlutusDataError, type Utxo, type Value, -} from "@repo/ledger-core"; -import { type CborHex, type CSLPlutusData, Result } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { type CborHex, type CSLPlutusData, Result } from "@minswap/felis-ledger-utils"; import JSONBig from "json-bigint"; import { zipWith } from "remeda"; import { type StableswapPoolConfig, getStableswapPoolConfigs } from "./configs"; diff --git a/packages/minswap-stableswap/src/utils.ts b/packages/minswap-stableswap/src/utils.ts index d2a90bf..e8554f0 100644 --- a/packages/minswap-stableswap/src/utils.ts +++ b/packages/minswap-stableswap/src/utils.ts @@ -1,8 +1,8 @@ import BigNumber from "bignumber.js"; import { zipWith } from "remeda"; -import { type Asset, NetworkID } from "@repo/ledger-core"; -import { Result } from "@repo/ledger-utils"; +import { type Asset, NetworkID } from "@minswap/felis-ledger-core"; +import { Result } from "@minswap/felis-ledger-utils"; import { StableswapCalculationErrorCode, StableswapPoolCalculationError } from "./error"; /** diff --git a/packages/minswap-stableswap/test/stableswap.test.ts b/packages/minswap-stableswap/test/stableswap.test.ts index 5a6427b..6489e4b 100644 --- a/packages/minswap-stableswap/test/stableswap.test.ts +++ b/packages/minswap-stableswap/test/stableswap.test.ts @@ -1,7 +1,7 @@ import BigNumber from "bignumber.js"; import * as fc from "fast-check"; -import { Result } from "@repo/ledger-utils"; +import { Result } from "@minswap/felis-ledger-utils"; import { describe, expect, it } from "vitest"; import { StableswapCalculation } from "../src/utils"; diff --git a/packages/provider/example/example.ts b/packages/provider/example/example.ts index e4052e0..2cb919d 100644 --- a/packages/provider/example/example.ts +++ b/packages/provider/example/example.ts @@ -1,6 +1,6 @@ -import { Asset, Bytes, NetworkEnvironment } from "@repo/ledger-core"; +import { Asset, Bytes, NetworkEnvironment } from "@minswap/felis-ledger-core"; import { KupoService } from "../src"; -import { PoolV2 } from "@repo/minswap-dex-v2"; +import { PoolV2 } from "@minswap/felis-dex-v2"; const fetchMinswapV2Pools = async (kupo: KupoService, networkEnv: NetworkEnvironment) => { const poolHash = Bytes.fromHex("d6ba9b7509eac866288ff5072d2a18205ac56f744bc82dcd808cb8fe"); diff --git a/packages/provider/package.json b/packages/provider/package.json index 4d0bc96..9db2571 100644 --- a/packages/provider/package.json +++ b/packages/provider/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/provider", + "name": "@minswap/felis-provider", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/provider" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -18,12 +30,12 @@ "dpdm": "^3.14.0", "eslint": "^9.31.0", "typescript": "5.8.2", - "@repo/minswap-dex-v2": "workspace:*" + "@minswap/felis-dex-v2": "workspace:*" }, "dependencies": { "@minswap/tiny-invariant": "^1.2.0", - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "remeda": "^2.19.2" } } diff --git a/packages/provider/src/kupo.ts b/packages/provider/src/kupo.ts index d1a3495..8480fa9 100644 --- a/packages/provider/src/kupo.ts +++ b/packages/provider/src/kupo.ts @@ -1,6 +1,6 @@ import invariant from "@minswap/tiny-invariant"; -import { Address, type Asset, type Bytes, type KupoUtxo, type TxIn, Utxo, Value } from "@repo/ledger-core"; -import { type CborHex, type CSLTransactionUnspentOutput, Maybe } from "@repo/ledger-utils"; +import { Address, type Asset, type Bytes, type KupoUtxo, type TxIn, Utxo, Value } from "@minswap/felis-ledger-core"; +import { type CborHex, type CSLTransactionUnspentOutput, Maybe } from "@minswap/felis-ledger-utils"; import * as R from "remeda"; import { uniq } from "./lodash"; diff --git a/packages/splash/package.json b/packages/splash/package.json index 27a1e48..7827981 100644 --- a/packages/splash/package.json +++ b/packages/splash/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/splash", + "name": "@minswap/felis-splash", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/splash" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -20,8 +32,8 @@ "dpdm": "^3.14.0" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "@minswap/tiny-invariant": "^1.2.0", "blakejs": "^1.2.1" } diff --git a/packages/splash/src/splash.ts b/packages/splash/src/splash.ts index 1e896fe..d450a91 100644 --- a/packages/splash/src/splash.ts +++ b/packages/splash/src/splash.ts @@ -24,8 +24,8 @@ import { PublicKeyHash, type Utxo, Value, -} from "@repo/ledger-core"; -import { type CborHex, Maybe, Result } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { type CborHex, Maybe, Result } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; export namespace Splash { diff --git a/packages/sundaeswap-v1/package.json b/packages/sundaeswap-v1/package.json index 0337d55..06565f5 100644 --- a/packages/sundaeswap-v1/package.json +++ b/packages/sundaeswap-v1/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/sundaeswap-v1", + "name": "@minswap/felis-sundaeswap-v1", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/sundaeswap-v1" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -23,8 +35,8 @@ "vitest": "^3.2.4" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "@minswap/tiny-invariant": "^1.2.0" } } diff --git a/packages/sundaeswap-v1/src/sundaeswap-v1.ts b/packages/sundaeswap-v1/src/sundaeswap-v1.ts index 3a0c723..338b323 100644 --- a/packages/sundaeswap-v1/src/sundaeswap-v1.ts +++ b/packages/sundaeswap-v1/src/sundaeswap-v1.ts @@ -22,8 +22,8 @@ import { TxOut, type Utxo, Value, -} from "@repo/ledger-core"; -import { CborHex, Maybe, Result } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { CborHex, Maybe, Result } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; export namespace SundaeSwapV1 { diff --git a/packages/sundaeswap-v1/test/sample.test.ts b/packages/sundaeswap-v1/test/sample.test.ts index 68e75eb..fa9486a 100644 --- a/packages/sundaeswap-v1/test/sample.test.ts +++ b/packages/sundaeswap-v1/test/sample.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect } from "vitest"; import * as S1 from "../src"; -import { ADA, Asset, NetworkEnvironment, Value, XJSON } from "@repo/ledger-core"; +import { ADA, Asset, NetworkEnvironment, Value, XJSON } from "@minswap/felis-ledger-core"; describe("sample", () => { it("order datum", () => { diff --git a/packages/sundaeswap-v3/package.json b/packages/sundaeswap-v3/package.json index b9d3ae6..2668b43 100644 --- a/packages/sundaeswap-v3/package.json +++ b/packages/sundaeswap-v3/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/sundaeswap-v3", + "name": "@minswap/felis-sundaeswap-v3", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/sundaeswap-v3" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -20,8 +32,8 @@ "dpdm": "^3.14.0" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "@minswap/tiny-invariant": "^1.2.0" } } diff --git a/packages/sundaeswap-v3/src/sundaeswap-v3.ts b/packages/sundaeswap-v3/src/sundaeswap-v3.ts index 7664067..d36a2bc 100644 --- a/packages/sundaeswap-v3/src/sundaeswap-v3.ts +++ b/packages/sundaeswap-v3/src/sundaeswap-v3.ts @@ -22,8 +22,8 @@ import { PlutusMaybe, type Utxo, Value, -} from "@repo/ledger-core"; -import { type CborHex, Maybe, Result } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { type CborHex, Maybe, Result } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; export namespace SundaeSwapV3 { diff --git a/packages/syncer/README.md b/packages/syncer/README.md index b22cfa7..0a22fd8 100644 --- a/packages/syncer/README.md +++ b/packages/syncer/README.md @@ -1,11 +1,11 @@ -# @repo/syncer +# @minswap/felis-syncer A library for parsing Cardano DEX transactions from various protocols. This package provides syncers that can extract order and pool creation information from raw transactions. ## Installation ```bash -pnpm add @repo/syncer +pnpm add @minswap/felis-syncer ``` ## Prerequisites @@ -13,7 +13,7 @@ pnpm add @repo/syncer Before using the syncers, you must initialize the WASM module: ```typescript -import { RustModule } from "@repo/ledger-utils"; +import { RustModule } from "@minswap/felis-ledger-utils"; await RustModule.load(); ``` @@ -38,8 +38,8 @@ await RustModule.load(); The `Transaction` type is the input format for all syncers. Convert from CSL (Cardano Serialization Lib) transaction: ```typescript -import { Transaction } from "@repo/syncer"; -import { RustModule } from "@repo/ledger-utils"; +import { Transaction } from "@minswap/felis-syncer"; +import { RustModule } from "@minswap/felis-ledger-utils"; // From CBOR hex const cslTx = RustModule.getE.Transaction.from_hex(txCborHex); @@ -77,8 +77,8 @@ type WrapAddress = string; // Bech32 address, e.g. "addr1..." ### MinswapV1Syncer ```typescript -import { MinswapV1Syncer, Transaction } from "@repo/syncer"; -import { NetworkEnvironment } from "@repo/ledger-core"; +import { MinswapV1Syncer, Transaction } from "@minswap/felis-syncer"; +import { NetworkEnvironment } from "@minswap/felis-ledger-core"; const result = MinswapV1Syncer.parseTx({ tx: transaction, @@ -103,8 +103,8 @@ if (result) { MinswapV2Syncer requires a `MapPool` to resolve LP assets to their underlying pair: ```typescript -import { MinswapV2Syncer, Transaction } from "@repo/syncer"; -import { NetworkEnvironment } from "@repo/ledger-core"; +import { MinswapV2Syncer, Transaction } from "@minswap/felis-syncer"; +import { NetworkEnvironment } from "@minswap/felis-ledger-core"; // MapPool: LP asset string -> { assetA, assetB } const mapPool: MinswapV2Syncer.MapPool = { @@ -147,8 +147,8 @@ if (result) { Stableswap syncer doesn't require a MapPool - pool configs are loaded from the package: ```typescript -import { MinswapStableswapSyncer, Transaction } from "@repo/syncer"; -import { NetworkEnvironment } from "@repo/ledger-core"; +import { MinswapStableswapSyncer, Transaction } from "@minswap/felis-syncer"; +import { NetworkEnvironment } from "@minswap/felis-ledger-core"; const result = MinswapStableswapSyncer.parseTx({ tx: transaction, @@ -180,8 +180,8 @@ if (result) { ### SundaeSwapV3Syncer ```typescript -import { SundaeSwapV3Syncer, Transaction } from "@repo/syncer"; -import { NetworkEnvironment } from "@repo/ledger-core"; +import { SundaeSwapV3Syncer, Transaction } from "@minswap/felis-syncer"; +import { NetworkEnvironment } from "@minswap/felis-ledger-core"; // MapPool: pool ident hex -> { assetA, assetB } const mapPool: SundaeSwapV3Syncer.MapPool = { @@ -220,7 +220,7 @@ if (result) { The `Helper` namespace provides utility functions for quick transaction filtering: ```typescript -import { Helper, Transaction } from "@repo/syncer"; +import { Helper, Transaction } from "@minswap/felis-syncer"; // Check if transaction pays to any address in a set const addressSet = new Set(["addr1...", "addr2..."]); @@ -329,15 +329,15 @@ Pool creation output varies by protocol: Typical integration flow for syncing transactions: ```typescript -import { RustModule } from "@repo/ledger-utils"; -import { NetworkEnvironment } from "@repo/ledger-core"; +import { RustModule } from "@minswap/felis-ledger-utils"; +import { NetworkEnvironment } from "@minswap/felis-ledger-core"; import { Transaction, Helper, MinswapV1Syncer, MinswapV2Syncer, MinswapStableswapSyncer, -} from "@repo/syncer"; +} from "@minswap/felis-syncer"; // Initialize WASM await RustModule.load(); diff --git a/packages/syncer/package.json b/packages/syncer/package.json index 97b273c..2be198d 100644 --- a/packages/syncer/package.json +++ b/packages/syncer/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/syncer", + "name": "@minswap/felis-syncer", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/syncer" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -24,16 +36,16 @@ }, "dependencies": { "@minswap/tiny-invariant": "^1.2.0", - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", - "@repo/minswap-dex-v1": "workspace:*", - "@repo/minswap-dex-v2": "workspace:*", - "@repo/minswap-stableswap": "workspace:*", - "@repo/sundaeswap-v1": "workspace:*", - "@repo/sundaeswap-v3": "workspace:*", - "@repo/wingriders-v1": "workspace:*", - "@repo/wingriders-v2": "workspace:*", - "@repo/splash": "workspace:*", - "@repo/tx-builder": "workspace:*" + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", + "@minswap/felis-dex-v1": "workspace:*", + "@minswap/felis-dex-v2": "workspace:*", + "@minswap/felis-stableswap": "workspace:*", + "@minswap/felis-sundaeswap-v1": "workspace:*", + "@minswap/felis-sundaeswap-v3": "workspace:*", + "@minswap/felis-wingriders-v1": "workspace:*", + "@minswap/felis-wingriders-v2": "workspace:*", + "@minswap/felis-splash": "workspace:*", + "@minswap/felis-tx-builder": "workspace:*" } } diff --git a/packages/syncer/src/helper.ts b/packages/syncer/src/helper.ts index 1c2dd9c..a0851d7 100644 --- a/packages/syncer/src/helper.ts +++ b/packages/syncer/src/helper.ts @@ -1,4 +1,4 @@ -import { Maybe } from "@repo/ledger-utils"; +import { Maybe } from "@minswap/felis-ledger-utils"; import type { Transaction } from "./transaction"; export namespace Helper { diff --git a/packages/syncer/src/minswap-stableswap-syncer.ts b/packages/syncer/src/minswap-stableswap-syncer.ts index 3b7bf7f..80029fe 100644 --- a/packages/syncer/src/minswap-stableswap-syncer.ts +++ b/packages/syncer/src/minswap-stableswap-syncer.ts @@ -1,5 +1,5 @@ -import { ADA, type Asset, DatumSourceType, type NetworkEnvironment } from "@repo/ledger-core"; -import { Maybe } from "@repo/ledger-utils"; +import { ADA, type Asset, DatumSourceType, type NetworkEnvironment } from "@minswap/felis-ledger-core"; +import { Maybe } from "@minswap/felis-ledger-utils"; import { getStableswapPoolConfigByNFTAsset, getStableswapPoolConfigs, @@ -7,7 +7,7 @@ import { StableswapPoolDatum, type StableswapPoolConfig, StableswapStepType, -} from "@repo/minswap-stableswap"; +} from "@minswap/felis-stableswap"; import type { Transaction } from "./transaction"; import type { WrapAddress, WrapAsset, WrapNum } from "./types"; diff --git a/packages/syncer/src/minswap-v1-syncer.ts b/packages/syncer/src/minswap-v1-syncer.ts index 151acf9..ade1be9 100644 --- a/packages/syncer/src/minswap-v1-syncer.ts +++ b/packages/syncer/src/minswap-v1-syncer.ts @@ -1,6 +1,6 @@ -import { DatumSourceType, NetworkEnvironment, TxIn } from "@repo/ledger-core"; -import { Maybe, Result } from "@repo/ledger-utils"; -import { Order, StepType } from "@repo/minswap-dex-v1"; +import { DatumSourceType, NetworkEnvironment, TxIn } from "@minswap/felis-ledger-core"; +import { Maybe, Result } from "@minswap/felis-ledger-utils"; +import { Order, StepType } from "@minswap/felis-dex-v1"; import { Transaction } from "./transaction"; import { WrapAddress, WrapAsset, WrapNum } from "./types"; diff --git a/packages/syncer/src/minswap-v2-syncer.ts b/packages/syncer/src/minswap-v2-syncer.ts index 4a13a20..f7be1eb 100644 --- a/packages/syncer/src/minswap-v2-syncer.ts +++ b/packages/syncer/src/minswap-v2-syncer.ts @@ -1,12 +1,12 @@ -import { Asset, NetworkEnvironment, TxIn } from "@repo/ledger-core"; +import { Asset, NetworkEnvironment, TxIn } from "@minswap/felis-ledger-core"; import { getDexV2Configs, OrderV2, OrderV2StepType, PoolV2, -} from "@repo/minswap-dex-v2"; +} from "@minswap/felis-dex-v2"; import { Transaction } from "./transaction"; -import { Maybe, Result } from "@repo/ledger-utils"; +import { Maybe, Result } from "@minswap/felis-ledger-utils"; import { WrapAddress, WrapAsset, WrapNum } from "./types"; export namespace MinswapV2Syncer { diff --git a/packages/syncer/src/splash-syncer.ts b/packages/syncer/src/splash-syncer.ts index 905ce10..a98657f 100644 --- a/packages/syncer/src/splash-syncer.ts +++ b/packages/syncer/src/splash-syncer.ts @@ -1,6 +1,6 @@ -import { DatumSourceType, type NetworkEnvironment } from "@repo/ledger-core"; -import { Maybe } from "@repo/ledger-utils"; -import { Splash } from "@repo/splash"; +import { DatumSourceType, type NetworkEnvironment } from "@minswap/felis-ledger-core"; +import { Maybe } from "@minswap/felis-ledger-utils"; +import { Splash } from "@minswap/felis-splash"; import type { Transaction } from "./transaction"; import type { WrapAddress, WrapAsset, WrapNum } from "./types"; diff --git a/packages/syncer/src/sundaeswap-v1-syncer.ts b/packages/syncer/src/sundaeswap-v1-syncer.ts index 9e26bc6..b22bb2d 100644 --- a/packages/syncer/src/sundaeswap-v1-syncer.ts +++ b/packages/syncer/src/sundaeswap-v1-syncer.ts @@ -1,6 +1,6 @@ -import { Asset, DatumSourceType, NetworkEnvironment, TxIn } from "@repo/ledger-core"; -import { Maybe, Result } from "@repo/ledger-utils"; -import { SundaeSwapV1 } from "@repo/sundaeswap-v1"; +import { Asset, DatumSourceType, NetworkEnvironment, TxIn } from "@minswap/felis-ledger-core"; +import { Maybe, Result } from "@minswap/felis-ledger-utils"; +import { SundaeSwapV1 } from "@minswap/felis-sundaeswap-v1"; import { Transaction } from "./transaction"; import { WrapAddress, WrapAsset, WrapNum } from "./types"; diff --git a/packages/syncer/src/sundaeswap-v3-syncer.ts b/packages/syncer/src/sundaeswap-v3-syncer.ts index f4b9aa8..f8f01a2 100644 --- a/packages/syncer/src/sundaeswap-v3-syncer.ts +++ b/packages/syncer/src/sundaeswap-v3-syncer.ts @@ -1,6 +1,6 @@ -import { DatumSourceType, type NetworkEnvironment, TxIn } from "@repo/ledger-core"; -import { Maybe, Result } from "@repo/ledger-utils"; -import { SundaeSwapV3 } from "@repo/sundaeswap-v3"; +import { DatumSourceType, type NetworkEnvironment, TxIn } from "@minswap/felis-ledger-core"; +import { Maybe, Result } from "@minswap/felis-ledger-utils"; +import { SundaeSwapV3 } from "@minswap/felis-sundaeswap-v3"; import type { Transaction } from "./transaction"; import type { WrapAddress, WrapAsset, WrapNum } from "./types"; diff --git a/packages/syncer/src/transaction.ts b/packages/syncer/src/transaction.ts index 6ef4c57..781c94c 100644 --- a/packages/syncer/src/transaction.ts +++ b/packages/syncer/src/transaction.ts @@ -1,6 +1,6 @@ -import { Bytes, TxIn, TxOut, type Value } from "@repo/ledger-core"; -import { type ECSLTransaction, RustModule, safeFreeRustObjects } from "@repo/ledger-utils"; -import { ECSLConverter } from "@repo/tx-builder"; +import { Bytes, TxIn, TxOut, type Value } from "@minswap/felis-ledger-core"; +import { type ECSLTransaction, RustModule, safeFreeRustObjects } from "@minswap/felis-ledger-utils"; +import { ECSLConverter } from "@minswap/felis-tx-builder"; import { PlutusDataHash } from "./types"; export type TransactionBody = { diff --git a/packages/syncer/src/wingriders-v1-syncer.ts b/packages/syncer/src/wingriders-v1-syncer.ts index 511d1ee..e41af42 100644 --- a/packages/syncer/src/wingriders-v1-syncer.ts +++ b/packages/syncer/src/wingriders-v1-syncer.ts @@ -1,6 +1,6 @@ -import { DatumSourceType, type NetworkEnvironment } from "@repo/ledger-core"; -import { Maybe } from "@repo/ledger-utils"; -import { WingridersV1 } from "@repo/wingriders-v1"; +import { DatumSourceType, type NetworkEnvironment } from "@minswap/felis-ledger-core"; +import { Maybe } from "@minswap/felis-ledger-utils"; +import { WingridersV1 } from "@minswap/felis-wingriders-v1"; import type { Transaction } from "./transaction"; import type { WrapAddress, WrapAsset, WrapNum } from "./types"; diff --git a/packages/syncer/src/wingriders-v2-syncer.ts b/packages/syncer/src/wingriders-v2-syncer.ts index 51ef504..7ab45ae 100644 --- a/packages/syncer/src/wingriders-v2-syncer.ts +++ b/packages/syncer/src/wingriders-v2-syncer.ts @@ -1,6 +1,6 @@ -import { DatumSourceType, type NetworkEnvironment } from "@repo/ledger-core"; -import { Maybe } from "@repo/ledger-utils"; -import { WingridersV2 } from "@repo/wingriders-v2"; +import { DatumSourceType, type NetworkEnvironment } from "@minswap/felis-ledger-core"; +import { Maybe } from "@minswap/felis-ledger-utils"; +import { WingridersV2 } from "@minswap/felis-wingriders-v2"; import type { Transaction } from "./transaction"; import type { WrapAddress, WrapAsset, WrapNum } from "./types"; diff --git a/packages/syncer/test/sample.test.ts b/packages/syncer/test/sample.test.ts index 831c4db..d8ab057 100644 --- a/packages/syncer/test/sample.test.ts +++ b/packages/syncer/test/sample.test.ts @@ -1,5 +1,5 @@ -import { NetworkEnvironment, TxIn } from "@repo/ledger-core"; -import { RustModule } from "@repo/ledger-utils"; +import { NetworkEnvironment, TxIn } from "@minswap/felis-ledger-core"; +import { RustModule } from "@minswap/felis-ledger-utils"; import { beforeAll, describe, expect, it } from "vitest"; import * as S from "../src"; diff --git a/packages/tx-builder/package.json b/packages/tx-builder/package.json index 1d8a316..77391f4 100644 --- a/packages/tx-builder/package.json +++ b/packages/tx-builder/package.json @@ -1,10 +1,24 @@ { - "name": "@repo/tx-builder", + "name": "@minswap/felis-tx-builder", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/tx-builder" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": [ + "dist" + ], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -20,9 +34,9 @@ "dpdm": "^3.14.0" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", - "@repo/cip": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", + "@minswap/felis-cip": "workspace:*", "remeda": "^2.19.2", "@minswap/tiny-invariant": "^1.2.0", "bignumber.js": "^9.1.2", diff --git a/packages/tx-builder/src/certs-builder.ts b/packages/tx-builder/src/certs-builder.ts index fa5459c..16f35fb 100644 --- a/packages/tx-builder/src/certs-builder.ts +++ b/packages/tx-builder/src/certs-builder.ts @@ -1,5 +1,5 @@ -import { Credential, DRep, type RewardAddress, type StakePool, type VoteDelegation } from "@repo/ledger-core"; -import { type CSLCertificates, RustModule } from "@repo/ledger-utils"; +import { Credential, DRep, type RewardAddress, type StakePool, type VoteDelegation } from "@minswap/felis-ledger-core"; +import { type CSLCertificates, RustModule } from "@minswap/felis-ledger-utils"; import { uniqueWith } from "remeda"; export type StakeKeyDelegation = { diff --git a/packages/tx-builder/src/change-builder.ts b/packages/tx-builder/src/change-builder.ts index 9e080f3..e1a4377 100644 --- a/packages/tx-builder/src/change-builder.ts +++ b/packages/tx-builder/src/change-builder.ts @@ -1,7 +1,6 @@ +import { ADA, type Address, type NetworkEnvironment, TxOut, Utxo, Value } from "@minswap/felis-ledger-core"; +import { Result } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; - -import { ADA, type Address, type NetworkEnvironment, TxOut, Utxo, Value } from "@repo/ledger-core"; -import { Result } from "@repo/ledger-utils"; import { LEFT_OVER_ADA_SPLIT_THRESHOLD } from "./constants"; import { selectUtxos, splitChangeOut } from "./select-utxos"; import { diff --git a/packages/tx-builder/src/ecsl-converter.ts b/packages/tx-builder/src/ecsl-converter.ts index 1c3119f..05eb889 100644 --- a/packages/tx-builder/src/ecsl-converter.ts +++ b/packages/tx-builder/src/ecsl-converter.ts @@ -9,7 +9,7 @@ import { type TxIn, TxOut, Value, -} from "@repo/ledger-core"; +} from "@minswap/felis-ledger-core"; import { blake2b256, type ECSLTransaction, @@ -18,7 +18,7 @@ import { RustModule, safeFreeRustObjects, unwrapRustVec, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; export namespace ECSLConverter { export function getTransactionFromHex(data: string): ECSLTransaction { diff --git a/packages/tx-builder/src/emulator-provider.ts b/packages/tx-builder/src/emulator-provider.ts index 884877c..f6527e2 100644 --- a/packages/tx-builder/src/emulator-provider.ts +++ b/packages/tx-builder/src/emulator-provider.ts @@ -1,4 +1,8 @@ -import { DEFAULT_PROTOCOL_PARAMS, type NetworkEnvironment, type UnstableProtocolParams } from "@repo/ledger-core"; +import { + DEFAULT_PROTOCOL_PARAMS, + type NetworkEnvironment, + type UnstableProtocolParams, +} from "@minswap/felis-ledger-core"; import type { ITxBuilderProvider } from "./tx-builder"; export class EmulatorProvider implements ITxBuilderProvider { diff --git a/packages/tx-builder/src/select-utxos.ts b/packages/tx-builder/src/select-utxos.ts index 3c4800e..628f736 100644 --- a/packages/tx-builder/src/select-utxos.ts +++ b/packages/tx-builder/src/select-utxos.ts @@ -1,5 +1,5 @@ -import { ADA, type Address, type Asset, type NetworkEnvironment, TxOut, Utxo, Value } from "@repo/ledger-core"; -import { Result } from "@repo/ledger-utils"; +import { ADA, type Address, type Asset, type NetworkEnvironment, TxOut, Utxo, Value } from "@minswap/felis-ledger-core"; +import { Result } from "@minswap/felis-ledger-utils"; import { MAX_TOKEN_BUNDLE_SIZE } from "./constants"; import { SelectUtxosError } from "./tx-builder-error"; import { SplitChangeOutError, type SplitChangeOutResult } from "./types"; diff --git a/packages/tx-builder/src/serializer.ts b/packages/tx-builder/src/serializer.ts index 734fd1b..c400c5d 100644 --- a/packages/tx-builder/src/serializer.ts +++ b/packages/tx-builder/src/serializer.ts @@ -1,4 +1,3 @@ -import invariant from "@minswap/tiny-invariant"; import { ADA, Bytes, @@ -19,7 +18,7 @@ import { TxIn, Utxo, Value, -} from "@repo/ledger-core"; +} from "@minswap/felis-ledger-core"; import { type CSLPlutusData, type CSLPlutusList, @@ -36,7 +35,8 @@ import { safeFreeRustObjects, unwrapRustMap, unwrapRustVec, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; +import invariant from "@minswap/tiny-invariant"; import JSONBig from "json-bigint"; import { CertsBuilder } from "./certs-builder"; import { ECSLConverter } from "./ecsl-converter"; diff --git a/packages/tx-builder/src/tx-builder-error.ts b/packages/tx-builder/src/tx-builder-error.ts index 496dbb5..76380b2 100644 --- a/packages/tx-builder/src/tx-builder-error.ts +++ b/packages/tx-builder/src/tx-builder-error.ts @@ -1,5 +1,5 @@ -import type { Value } from "@repo/ledger-core"; -import { getErrorMessage } from "@repo/ledger-utils"; +import type { Value } from "@minswap/felis-ledger-core"; +import { getErrorMessage } from "@minswap/felis-ledger-utils"; import type { CoverForFeesResult, DebugInfo } from "./types"; export type ExtendedDebugInfo = DebugInfo & { diff --git a/packages/tx-builder/src/tx-builder.ts b/packages/tx-builder/src/tx-builder.ts index e0f442d..aeaae01 100644 --- a/packages/tx-builder/src/tx-builder.ts +++ b/packages/tx-builder/src/tx-builder.ts @@ -1,4 +1,4 @@ -import type { CIP25Metadata, CIP25NFT } from "@repo/cip"; +import type { CIP25Metadata, CIP25NFT } from "@minswap/felis-cip"; import { ADA, type Address, @@ -26,7 +26,7 @@ import { type Validator, Value, XJSON, -} from "@repo/ledger-core"; +} from "@minswap/felis-ledger-core"; import { type CborHex, type CSLTransaction, @@ -38,7 +38,7 @@ import { RustModule, safeFreeRustObjects, unwrapRustVec, -} from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; import { unique } from "remeda"; import { ECSLConverter } from "./ecsl-converter"; import { CSLTxSerializer } from "./serializer"; diff --git a/packages/tx-builder/src/types.ts b/packages/tx-builder/src/types.ts index 15ced19..b8f3b06 100644 --- a/packages/tx-builder/src/types.ts +++ b/packages/tx-builder/src/types.ts @@ -10,7 +10,7 @@ import { TxIn, type TxOut, type Utxo, -} from "@repo/ledger-core"; +} from "@minswap/felis-ledger-core"; import type { CborHex, CSLEd25519KeyHash, @@ -22,8 +22,8 @@ import type { CSLTransactionInput, CSLTransactionOutput, CSLTransactionUnspentOutput, -} from "@repo/ledger-utils"; -import { Maybe } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-utils"; +import { Maybe } from "@minswap/felis-ledger-utils"; export interface CoverForFeesResult { finalCoins: TxOut[]; diff --git a/packages/tx-builder/src/utils.ts b/packages/tx-builder/src/utils.ts index 3c7d5a2..6f56c5c 100644 --- a/packages/tx-builder/src/utils.ts +++ b/packages/tx-builder/src/utils.ts @@ -11,8 +11,14 @@ import { TxOut, Utxo, Value, -} from "@repo/ledger-core"; -import { type CSLTransactionBuilder, Maybe, Result, RustModule, safeFreeRustObjects } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { + type CSLTransactionBuilder, + Maybe, + Result, + RustModule, + safeFreeRustObjects, +} from "@minswap/felis-ledger-utils"; import BigNumber from "bignumber.js"; import { selectUtxos, splitChangeOut } from "./select-utxos"; import { diff --git a/packages/uplc-node/package.json b/packages/uplc-node/package.json index b0c082b..be343c6 100644 --- a/packages/uplc-node/package.json +++ b/packages/uplc-node/package.json @@ -1,11 +1,23 @@ { - "name": "@repo/uplc-node", + "name": "@minswap/felis-uplc-node", "version": "0.1.0", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/uplc-node" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, "files": [ "wasm_helpers_bg.wasm", "wasm_helpers.js", "wasm_helpers.d.ts" ], "main": "wasm_helpers.js", - "types": "wasm_helpers.d.ts" + "types": "wasm_helpers.d.ts", + "publishConfig": { + "access": "public" + } } diff --git a/packages/uplc-web/package.json b/packages/uplc-web/package.json index 6ff1009..101f45a 100644 --- a/packages/uplc-web/package.json +++ b/packages/uplc-web/package.json @@ -1,7 +1,16 @@ { - "name": "@repo/uplc-web", + "name": "@minswap/felis-uplc-web", "type": "module", "version": "0.1.0", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/uplc-web" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, "files": [ "wasm_helpers_bg.wasm", "wasm_helpers.js", @@ -13,5 +22,8 @@ "sideEffects": [ "./wasm_helpers.js", "./snippets/*" - ] + ], + "publishConfig": { + "access": "public" + } } diff --git a/packages/wingriders-v1/package.json b/packages/wingriders-v1/package.json index 6de2ebe..7937ece 100644 --- a/packages/wingriders-v1/package.json +++ b/packages/wingriders-v1/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/wingriders-v1", + "name": "@minswap/felis-wingriders-v1", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/wingriders-v1" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -20,8 +32,8 @@ "dpdm": "^3.14.0" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "@minswap/tiny-invariant": "^1.2.0" } } diff --git a/packages/wingriders-v1/src/utils.ts b/packages/wingriders-v1/src/utils.ts index 9f34f6e..29cc950 100644 --- a/packages/wingriders-v1/src/utils.ts +++ b/packages/wingriders-v1/src/utils.ts @@ -1,4 +1,4 @@ -import { Asset } from "@repo/ledger-core"; +import { Asset } from "@minswap/felis-ledger-core"; export function normalizePair([a, b]: [Asset, Asset]): [Asset, Asset] { if (a.compare(b) > 0) { diff --git a/packages/wingriders-v1/src/wingriders-v1.ts b/packages/wingriders-v1/src/wingriders-v1.ts index 417180c..41cc454 100644 --- a/packages/wingriders-v1/src/wingriders-v1.ts +++ b/packages/wingriders-v1/src/wingriders-v1.ts @@ -18,8 +18,8 @@ import { PlutusInt, type Utxo, Value, -} from "@repo/ledger-core"; -import { type CborHex, Maybe, Result, sha3 } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { type CborHex, Maybe, Result, sha3 } from "@minswap/felis-ledger-utils"; import invariant from "@minswap/tiny-invariant"; import { normalizePair } from "./utils"; diff --git a/packages/wingriders-v2/package.json b/packages/wingriders-v2/package.json index e26db49..d8176ef 100644 --- a/packages/wingriders-v2/package.json +++ b/packages/wingriders-v2/package.json @@ -1,10 +1,22 @@ { - "name": "@repo/wingriders-v2", + "name": "@minswap/felis-wingriders-v2", "version": "0.0.1", - "private": true, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/minswap/felis", + "directory": "packages/wingriders-v2" + }, + "bugs": { + "url": "https://github.com/minswap/felis/issues" + }, + "files": ["dist"], "exports": { ".": "./dist/index.js" }, + "publishConfig": { + "access": "public" + }, "scripts": { "dev": "tsc --watch --preserveWatchOutput", "build": "tsc", @@ -20,8 +32,8 @@ "dpdm": "^3.14.0" }, "dependencies": { - "@repo/ledger-core": "workspace:*", - "@repo/ledger-utils": "workspace:*", + "@minswap/felis-ledger-core": "workspace:*", + "@minswap/felis-ledger-utils": "workspace:*", "@minswap/tiny-invariant": "^1.2.0", "blakejs": "^1.2.1" } diff --git a/packages/wingriders-v2/src/utils.ts b/packages/wingriders-v2/src/utils.ts index 9f34f6e..29cc950 100644 --- a/packages/wingriders-v2/src/utils.ts +++ b/packages/wingriders-v2/src/utils.ts @@ -1,4 +1,4 @@ -import { Asset } from "@repo/ledger-core"; +import { Asset } from "@minswap/felis-ledger-core"; export function normalizePair([a, b]: [Asset, Asset]): [Asset, Asset] { if (a.compare(b) > 0) { diff --git a/packages/wingriders-v2/src/wingriders-v2.ts b/packages/wingriders-v2/src/wingriders-v2.ts index 4be1fd6..a09e36f 100644 --- a/packages/wingriders-v2/src/wingriders-v2.ts +++ b/packages/wingriders-v2/src/wingriders-v2.ts @@ -19,8 +19,8 @@ import { PlutusInt, type Utxo, Value, -} from "@repo/ledger-core"; -import { type CborHex, Maybe, Result } from "@repo/ledger-utils"; +} from "@minswap/felis-ledger-core"; +import { type CborHex, Maybe, Result } from "@minswap/felis-ledger-utils"; import { blake2b } from "blakejs"; import invariant from "@minswap/tiny-invariant"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 24fdf47..b5096f5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,33 +23,33 @@ importers: '@cardano-ogmios/client': specifier: ^6.11.0 version: 6.14.0 - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-dex-v2': + specifier: workspace:* + version: link:../../packages/minswap-dex-v2 + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../../packages/ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../../packages/ledger-utils - '@repo/minswap-dex-v2': - specifier: workspace:* - version: link:../../packages/minswap-dex-v2 - '@repo/provider': + '@minswap/felis-provider': specifier: workspace:* version: link:../../packages/provider - '@repo/sundaeswap-v1': + '@minswap/felis-sundaeswap-v1': specifier: workspace:* version: link:../../packages/sundaeswap-v1 - '@repo/sundaeswap-v3': + '@minswap/felis-sundaeswap-v3': specifier: workspace:* version: link:../../packages/sundaeswap-v3 - '@repo/syncer': + '@minswap/felis-syncer': specifier: workspace:* version: link:../../packages/syncer - '@repo/tx-builder': + '@minswap/felis-tx-builder': specifier: workspace:* version: link:../../packages/tx-builder + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 socket.io-client: specifier: ^4.8.3 version: 4.8.3 @@ -84,30 +84,30 @@ importers: '@ant-design/nextjs-registry': specifier: ^1.1.0 version: 1.1.0(@ant-design/cssinjs@1.24.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(antd@5.27.6(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(next@16.0.10(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3) - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/cip': + '@minswap/felis-build-tx': + specifier: workspace:* + version: link:../../packages/minswap-build-tx + '@minswap/felis-cip': specifier: workspace:* version: link:../../packages/cip - '@repo/ledger-core': + '@minswap/felis-dex-v2': + specifier: workspace:* + version: link:../../packages/minswap-dex-v2 + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../../packages/ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../../packages/ledger-utils - '@repo/minswap-build-tx': - specifier: workspace:* - version: link:../../packages/minswap-build-tx - '@repo/minswap-dex-v2': - specifier: workspace:* - version: link:../../packages/minswap-dex-v2 - '@repo/minswap-lending-market': + '@minswap/felis-lending-market': specifier: workspace:* version: link:../../packages/minswap-lending-market - '@repo/tx-builder': + '@minswap/felis-tx-builder': specifier: workspace:* version: link:../../packages/tx-builder + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 '@repo/ui': specifier: workspace:* version: link:../../packages/ui @@ -151,15 +151,15 @@ importers: packages/cip: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 bip39: specifier: ^3.1.0 version: 3.1.0 @@ -225,17 +225,87 @@ importers: specifier: ^8.37.0 version: 8.37.0(eslint@9.31.0)(typescript@5.8.2) + packages/felis: + dependencies: + '@minswap/felis-build-tx': + specifier: workspace:* + version: link:../minswap-build-tx + '@minswap/felis-cip': + specifier: workspace:* + version: link:../cip + '@minswap/felis-dex-v1': + specifier: workspace:* + version: link:../minswap-dex-v1 + '@minswap/felis-dex-v2': + specifier: workspace:* + version: link:../minswap-dex-v2 + '@minswap/felis-ledger-core': + specifier: workspace:* + version: link:../ledger-core + '@minswap/felis-ledger-utils': + specifier: workspace:* + version: link:../ledger-utils + '@minswap/felis-lending-market': + specifier: workspace:* + version: link:../minswap-lending-market + '@minswap/felis-provider': + specifier: workspace:* + version: link:../provider + '@minswap/felis-splash': + specifier: workspace:* + version: link:../splash + '@minswap/felis-stableswap': + specifier: workspace:* + version: link:../minswap-stableswap + '@minswap/felis-sundaeswap-v1': + specifier: workspace:* + version: link:../sundaeswap-v1 + '@minswap/felis-sundaeswap-v3': + specifier: workspace:* + version: link:../sundaeswap-v3 + '@minswap/felis-syncer': + specifier: workspace:* + version: link:../syncer + '@minswap/felis-tx-builder': + specifier: workspace:* + version: link:../tx-builder + '@minswap/felis-wingriders-v1': + specifier: workspace:* + version: link:../wingriders-v1 + '@minswap/felis-wingriders-v2': + specifier: workspace:* + version: link:../wingriders-v2 + devDependencies: + '@repo/eslint-config': + specifier: workspace:* + version: link:../eslint-config + '@repo/typescript-config': + specifier: workspace:* + version: link:../typescript-config + '@types/node': + specifier: ^22.15.3 + version: 22.15.3 + dpdm: + specifier: ^3.14.0 + version: 3.14.0 + eslint: + specifier: ^9.31.0 + version: 9.31.0 + typescript: + specifier: 5.8.2 + version: 5.8.2 + packages/ledger-core: dependencies: '@cardano-ogmios/schema': specifier: ^6.11.0 version: 6.13.0 + '@minswap/felis-ledger-utils': + specifier: workspace:* + version: link:../ledger-utils '@minswap/tiny-invariant': specifier: ^1.2.0 version: 1.2.0 - '@repo/ledger-utils': - specifier: workspace:* - version: link:../ledger-utils '@stricahq/cbors': specifier: ^1.0.3 version: 1.0.3 @@ -291,15 +361,15 @@ importers: '@minswap/cardano-serialization-lib-nodejs': specifier: 11.1.0-minswap.33 version: 11.1.0-minswap.33 - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/uplc-node': + '@minswap/felis-uplc-node': specifier: workspace:* version: link:../uplc-node - '@repo/uplc-web': + '@minswap/felis-uplc-web': specifier: workspace:* version: link:../uplc-web + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 blakejs: specifier: ^1.2.1 version: 1.2.1 @@ -337,21 +407,21 @@ importers: packages/minswap-build-tx: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-dex-v2': + specifier: workspace:* + version: link:../minswap-dex-v2 + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils - '@repo/minswap-dex-v2': - specifier: workspace:* - version: link:../minswap-dex-v2 - '@repo/tx-builder': + '@minswap/felis-tx-builder': specifier: workspace:* version: link:../tx-builder + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 bignumber.js: specifier: ^9.1.2 version: 9.3.1 @@ -383,15 +453,15 @@ importers: packages/minswap-dex-v1: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -417,15 +487,15 @@ importers: packages/minswap-dex-v2: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -454,27 +524,27 @@ importers: packages/minswap-lending-market: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/cip': + '@minswap/felis-build-tx': + specifier: workspace:* + version: link:../minswap-build-tx + '@minswap/felis-cip': specifier: workspace:* version: link:../cip - '@repo/ledger-core': + '@minswap/felis-dex-v2': + specifier: workspace:* + version: link:../minswap-dex-v2 + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils - '@repo/minswap-build-tx': - specifier: workspace:* - version: link:../minswap-build-tx - '@repo/minswap-dex-v2': - specifier: workspace:* - version: link:../minswap-dex-v2 - '@repo/tx-builder': + '@minswap/felis-tx-builder': specifier: workspace:* version: link:../tx-builder + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 bignumber.js: specifier: ^9.1.2 version: 9.3.1 @@ -512,24 +582,24 @@ importers: packages/minswap-stableswap: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': - specifier: workspace:* - version: link:../ledger-core - '@repo/ledger-utils': - specifier: workspace:* - version: link:../ledger-utils - '@repo/minswap-build-tx': + '@minswap/felis-build-tx': specifier: workspace:* version: link:../minswap-build-tx - '@repo/minswap-dex-v2': + '@minswap/felis-dex-v2': specifier: workspace:* version: link:../minswap-dex-v2 - '@repo/tx-builder': + '@minswap/felis-ledger-core': + specifier: workspace:* + version: link:../ledger-core + '@minswap/felis-ledger-utils': + specifier: workspace:* + version: link:../ledger-utils + '@minswap/felis-tx-builder': specifier: workspace:* version: link:../tx-builder + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 bignumber.js: specifier: ^9.1.2 version: 9.3.1 @@ -570,25 +640,25 @@ importers: packages/provider: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 remeda: specifier: ^2.19.2 version: 2.28.0 devDependencies: + '@minswap/felis-dex-v2': + specifier: workspace:* + version: link:../minswap-dex-v2 '@repo/eslint-config': specifier: workspace:* version: link:../eslint-config - '@repo/minswap-dex-v2': - specifier: workspace:* - version: link:../minswap-dex-v2 '@repo/typescript-config': specifier: workspace:* version: link:../typescript-config @@ -610,15 +680,15 @@ importers: packages/splash: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 blakejs: specifier: ^1.2.1 version: 1.2.1 @@ -647,15 +717,15 @@ importers: packages/sundaeswap-v1: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -684,15 +754,15 @@ importers: packages/sundaeswap-v3: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -718,42 +788,42 @@ importers: packages/syncer: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': - specifier: workspace:* - version: link:../ledger-core - '@repo/ledger-utils': - specifier: workspace:* - version: link:../ledger-utils - '@repo/minswap-dex-v1': + '@minswap/felis-dex-v1': specifier: workspace:* version: link:../minswap-dex-v1 - '@repo/minswap-dex-v2': + '@minswap/felis-dex-v2': specifier: workspace:* version: link:../minswap-dex-v2 - '@repo/minswap-stableswap': + '@minswap/felis-ledger-core': specifier: workspace:* - version: link:../minswap-stableswap - '@repo/splash': + version: link:../ledger-core + '@minswap/felis-ledger-utils': + specifier: workspace:* + version: link:../ledger-utils + '@minswap/felis-splash': specifier: workspace:* version: link:../splash - '@repo/sundaeswap-v1': + '@minswap/felis-stableswap': + specifier: workspace:* + version: link:../minswap-stableswap + '@minswap/felis-sundaeswap-v1': specifier: workspace:* version: link:../sundaeswap-v1 - '@repo/sundaeswap-v3': + '@minswap/felis-sundaeswap-v3': specifier: workspace:* version: link:../sundaeswap-v3 - '@repo/tx-builder': + '@minswap/felis-tx-builder': specifier: workspace:* version: link:../tx-builder - '@repo/wingriders-v1': + '@minswap/felis-wingriders-v1': specifier: workspace:* version: link:../wingriders-v1 - '@repo/wingriders-v2': + '@minswap/felis-wingriders-v2': specifier: workspace:* version: link:../wingriders-v2 + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -782,18 +852,18 @@ importers: packages/tx-builder: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/cip': + '@minswap/felis-cip': specifier: workspace:* version: link:../cip - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 bignumber.js: specifier: ^9.1.2 version: 9.3.1 @@ -865,15 +935,15 @@ importers: packages/wingriders-v1: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -899,15 +969,15 @@ importers: packages/wingriders-v2: dependencies: - '@minswap/tiny-invariant': - specifier: ^1.2.0 - version: 1.2.0 - '@repo/ledger-core': + '@minswap/felis-ledger-core': specifier: workspace:* version: link:../ledger-core - '@repo/ledger-utils': + '@minswap/felis-ledger-utils': specifier: workspace:* version: link:../ledger-utils + '@minswap/tiny-invariant': + specifier: ^1.2.0 + version: 1.2.0 blakejs: specifier: ^1.2.1 version: 1.2.1