From 3d83886bcbd79db8b331d2b267e4c73a6313b819 Mon Sep 17 00:00:00 2001 From: JunichiSugiura Date: Wed, 18 Dec 2024 11:50:23 +0900 Subject: [PATCH] Apply package version as controller base provider version --- packages/controller/src/provider.ts | 3 ++- packages/controller/src/telegram/backend.ts | 2 +- packages/controller/tsconfig.json | 5 ++--- packages/profile/src/components/inventory/token/token.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/controller/src/provider.ts b/packages/controller/src/provider.ts index ab65cb2c6..bc32df4d3 100644 --- a/packages/controller/src/provider.ts +++ b/packages/controller/src/provider.ts @@ -10,6 +10,7 @@ import { WalletEventListener, WalletEvents, } from "@starknet-io/types-js"; +import manifest from "../package.json"; import { icon } from "./icon"; import { ProviderOptions } from "./types"; @@ -17,7 +18,7 @@ import { ProviderOptions } from "./types"; export default abstract class BaseProvider implements StarknetWindowObject { public id = "controller"; public name = "Controller"; - public version = "0.4.0"; + public version = manifest.version; public icon = icon; public rpc: URL; diff --git a/packages/controller/src/telegram/backend.ts b/packages/controller/src/telegram/backend.ts index 3e4b0264c..f4739cc57 100644 --- a/packages/controller/src/telegram/backend.ts +++ b/packages/controller/src/telegram/backend.ts @@ -1,5 +1,5 @@ import { cloudStorage, openLink } from "@telegram-apps/sdk"; -import { UnifiedBackend } from "src/session/backend"; +import { UnifiedBackend } from "../session/backend"; /** * Implements the UnifiedBackend interface for Telegram storage operations. diff --git a/packages/controller/tsconfig.json b/packages/controller/tsconfig.json index cd3387c49..3a795d5a3 100644 --- a/packages/controller/tsconfig.json +++ b/packages/controller/tsconfig.json @@ -2,12 +2,11 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "@cartridge/tsconfig/base.json", "compilerOptions": { - "baseUrl": ".", - "rootDir": "./src", + "rootDir": ".", "outDir": "./dist", "composite": false, "incremental": false, "moduleResolution": "node" }, - "include": ["src/**/*"] + "include": ["src/**/*", "package.json"] } diff --git a/packages/profile/src/components/inventory/token/token.tsx b/packages/profile/src/components/inventory/token/token.tsx index 4af310531..cd1d2c5ac 100644 --- a/packages/profile/src/components/inventory/token/token.tsx +++ b/packages/profile/src/components/inventory/token/token.tsx @@ -109,7 +109,7 @@ function ERC20() { const compatibility = useMemo(() => { if (!version) return false; - return compare(version, "0.4.0", ">="); + return compare(version, "0.5.6", ">="); }, [version]); if (!t) {