From 53a4374a81b1563465f9b444738da5ea6a3aa7e7 Mon Sep 17 00:00:00 2001 From: bluecco Date: Mon, 6 Jan 2025 12:52:02 +0100 Subject: [PATCH 1/3] fix: ts build errors --- src/connectors/argentMobile/index.ts | 14 +++++++------- src/connectors/argentMobile/modal/adapter.ts | 7 +++---- .../argentMobile/modal/starknet/adapter.ts | 2 +- .../argentMobile/modal/starknet/signer.ts | 2 +- .../modal/starknet/starknet.model.ts | 2 +- src/connectors/braavosMobile/index.ts | 16 ++++++++++------ src/connectors/connector.ts | 6 +++++- src/connectors/injected/index.ts | 12 ++++++------ src/connectors/webwallet/index.ts | 10 +++++----- src/helpers/getStarknetChainId.ts | 2 +- src/helpers/mapModalWallets.ts | 2 +- src/hooks/useStarknetkitConnectModal.ts | 2 +- src/main.ts | 6 +++++- src/types/modal.ts | 2 +- tsconfig.json | 2 +- 15 files changed, 49 insertions(+), 38 deletions(-) diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index 7361722..5f0d765 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -1,17 +1,17 @@ import { type AccountChangeEventHandler } from "@starknet-io/get-starknet-core" import { Permission, - RequestFnCall, - RpcMessage, - RpcTypeToMessageMap, + type RequestFnCall, + type RpcMessage, + type RpcTypeToMessageMap, type StarknetWindowObject, } from "@starknet-io/types-js" import { Account, AccountInterface, - ProviderInterface, - ProviderOptions, constants, + ProviderInterface, + type ProviderOptions, } from "starknet" import { ConnectorNotConnectedError, @@ -23,12 +23,12 @@ import { removeStarknetLastConnectedWallet } from "../../helpers/lastConnected" import { getRandomPublicRPCNode } from "../../helpers/publicRcpNodes" import { resetWalletConnect } from "../../helpers/resetWalletConnect" import { - ConnectArgs, Connector, + type ConnectArgs, type ConnectorData, type ConnectorIcons, } from "../connector" -import { InjectedConnector, InjectedConnectorOptions } from "../injected" +import { InjectedConnector, type InjectedConnectorOptions } from "../injected" import { DEFAULT_ARGENT_MOBILE_ICON, DEFAULT_PROJECT_ID } from "./constants" import { isInArgentMobileAppBrowser } from "./helpers" import type { StarknetAdapter } from "./modal/starknet/adapter" diff --git a/src/connectors/argentMobile/modal/adapter.ts b/src/connectors/argentMobile/modal/adapter.ts index 0ab6503..ccc8fc8 100644 --- a/src/connectors/argentMobile/modal/adapter.ts +++ b/src/connectors/argentMobile/modal/adapter.ts @@ -1,20 +1,19 @@ -import { EventEmitter } from "events" - import type { JsonRpcProvider } from "@walletconnect/jsonrpc-provider" import type SignClient from "@walletconnect/sign-client" +import type { SignerConnectionClientOpts } from "@walletconnect/signer-connection" import { SIGNER_EVENTS, SignerConnection, } from "@walletconnect/signer-connection" -import type { SignerConnectionClientOpts } from "@walletconnect/signer-connection" import type { ProposalTypes, SessionTypes } from "@walletconnect/types" import { getAccountsFromNamespaces, getChainsFromNamespaces, } from "@walletconnect/utils" +import { EventEmitter } from "events" -import type { EthereumRpcConfig } from "./starknet/adapter" import { ProviderInterface } from "starknet" +import type { EthereumRpcConfig } from "./starknet/adapter" export interface NamespaceAdapterOptions { client: SignClient diff --git a/src/connectors/argentMobile/modal/starknet/adapter.ts b/src/connectors/argentMobile/modal/starknet/adapter.ts index f4ab444..aa09df7 100644 --- a/src/connectors/argentMobile/modal/starknet/adapter.ts +++ b/src/connectors/argentMobile/modal/starknet/adapter.ts @@ -1,4 +1,4 @@ -import { +import type { AddInvokeTransactionParameters, RequestFn, TypedData, diff --git a/src/connectors/argentMobile/modal/starknet/signer.ts b/src/connectors/argentMobile/modal/starknet/signer.ts index 18f0e77..07681c8 100644 --- a/src/connectors/argentMobile/modal/starknet/signer.ts +++ b/src/connectors/argentMobile/modal/starknet/signer.ts @@ -7,7 +7,7 @@ import type { Signature, SignerInterface, } from "starknet" -import { TypedData } from "@starknet-io/types-js" +import type { TypedData } from "@starknet-io/types-js" import type { IStarknetRpc } from "./starknet.model" export class StarknetRemoteSigner implements SignerInterface { diff --git a/src/connectors/argentMobile/modal/starknet/starknet.model.ts b/src/connectors/argentMobile/modal/starknet/starknet.model.ts index 1b84924..0028774 100644 --- a/src/connectors/argentMobile/modal/starknet/starknet.model.ts +++ b/src/connectors/argentMobile/modal/starknet/starknet.model.ts @@ -5,7 +5,7 @@ import type { InvokeFunctionResponse, Signature, } from "starknet" -import { TypedData } from "@starknet-io/types-js" +import type { TypedData } from "@starknet-io/types-js" // see https://github.com/WalletConnect/walletconnect-docs/pull/288/files export interface IStarknetRpc { diff --git a/src/connectors/braavosMobile/index.ts b/src/connectors/braavosMobile/index.ts index 414c714..de1d4b7 100644 --- a/src/connectors/braavosMobile/index.ts +++ b/src/connectors/braavosMobile/index.ts @@ -1,20 +1,24 @@ import { type AccountChangeEventHandler } from "@starknet-io/get-starknet-core" -import { +import type { RequestFnCall, RpcMessage, RpcTypeToMessageMap, - type StarknetWindowObject, + StarknetWindowObject, } from "@starknet-io/types-js" -import { AccountInterface, ProviderInterface, ProviderOptions } from "starknet" import { - ConnectArgs, + AccountInterface, + ProviderInterface, + type ProviderOptions, +} from "starknet" +import { Connector, + type ConnectArgs, type ConnectorData, type ConnectorIcons, } from "../connector" -import { InjectedConnector, InjectedConnectorOptions } from "../injected" -import { isInBraavosMobileAppBrowser } from "./helpers/inAppBrowser" +import { InjectedConnector, type InjectedConnectorOptions } from "../injected" import { BRAAVOS_MOBILE_APP_ICON } from "./constants" +import { isInBraavosMobileAppBrowser } from "./helpers/inAppBrowser" export class BraavosMobileBaseConnector extends Connector { private _wallet: StarknetWindowObject | null = null diff --git a/src/connectors/connector.ts b/src/connectors/connector.ts index ba26227..0cbedc2 100644 --- a/src/connectors/connector.ts +++ b/src/connectors/connector.ts @@ -1,5 +1,9 @@ import EventEmitter from "eventemitter3" -import { AccountInterface, ProviderInterface, ProviderOptions } from "starknet" +import { + AccountInterface, + ProviderInterface, + type ProviderOptions, +} from "starknet" import type { RequestFnCall, RpcMessage, diff --git a/src/connectors/injected/index.ts b/src/connectors/injected/index.ts index 0d07165..1c89cfe 100644 --- a/src/connectors/injected/index.ts +++ b/src/connectors/injected/index.ts @@ -1,15 +1,15 @@ import { Permission, - RequestFnCall, - RpcMessage, - RpcTypeToMessageMap, + type RequestFnCall, + type RpcMessage, + type RpcTypeToMessageMap, type StarknetWindowObject, } from "@starknet-io/types-js" import { Account, AccountInterface, ProviderInterface, - ProviderOptions, + type ProviderOptions, } from "starknet" import { ConnectorNotConnectedError, @@ -18,8 +18,8 @@ import { } from "../../errors" import { removeStarknetLastConnectedWallet } from "../../helpers/lastConnected" import { - ConnectArgs, Connector, + type ConnectArgs, type ConnectorData, type ConnectorIcons, } from "../connector" @@ -46,7 +46,7 @@ const walletIcons = { "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgdmlld0JveD0iMCAwIDUwMCA1MDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0zMjMuNDQgNDEuMzg4NkMzMjQuMTk4IDQyLjY3MjggMzIzLjE5NSA0NC4yNjAzIDMyMS43MDQgNDQuMjYwM0MyOTEuNTEgNDQuMjYwMyAyNjYuOTY1IDY4LjE2NTYgMjY2LjM4OSA5Ny44NzFDMjU2LjA1IDk1Ljk0MDcgMjQ1LjMzNyA5NS43OTU2IDIzNC43NTQgOTcuNTc4N0MyMzQuMDIzIDY4LjAwOSAyMDkuNTQgNDQuMjYwMyAxNzkuNDQ1IDQ0LjI2MDNDMTc3Ljk1MyA0NC4yNjAzIDE3Ni45NDkgNDIuNjcxNiAxNzcuNzA3IDQxLjM4NjVDMTkyLjMyMyAxNi42MzMgMjE5LjQ4MyAwIDI1MC41NzMgMEMyODEuNjY0IDAgMzA4LjgyNCAxNi42MzM5IDMyMy40NCA0MS4zODg2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzIzMjRfNjE4NjkpIi8+CjxwYXRoIGQ9Ik00MTguNzU2IDIyNi44OTRDNDI2LjM3IDIyOS4yIDQ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iBwb2ludHM9Ijg4Ljg3NSA1OC41IDY0LjY4OCA3OC43NSA0Ni4xMjUgMTAxLjI1IDkyLjI1IDEwMi45MzgiLz48cG9seWdvbiBmaWxsPSIjMzkzOTM5IiBwb2ludHM9IjcwLjMxMyAxMTIuNSA2NC4xMjUgMTI1LjQzOCA4Ni4wNjMgMTE5LjgxMyIgdHJhbnNmb3JtPSJtYXRyaXgoLTEgMCAwIDEgMTUwLjE4OCAwKSIvPjxwb2x5Z29uIGZpbGw9IiNFODhGMzUiIHBvaW50cz0iMTIuMzc1IC41NjMgODguODc1IDU4LjUgNzUuOTM4IDI3Ii8+PHBhdGggZmlsbD0iIzhFNUEzMCIgZD0iTTEyLjM3NTAwMDIsMC41NjI1MDAwMDggTDIuMjUwMDAwMDMsMzEuNTAwMDAwNSBMNy44NzUwMDAxMiw2NS4yNTAwMDEgTDMuOTM3NTAwMDYsNjcuNTAwMDAxIEw5LjU2MjUwMDE0LDcyLjU2MjUgTDUuMDYyNTAwMDgsNzYuNTAwMDAxMSBMMTEuMjUsODIuMTI1MDAxMiBMNy4zMTI1MDAxMSw4NS41MDAwMDEzIEwxNi4zMTI1MDAyLDk2Ljc1MDAwMTQgTDU4LjUwMDAwMDksODMuODEyNTAxMiBDNzkuMTI1MDAxMiw2Ny4zMTI1MDA0IDg5LjI1MDAwMTMsNTguODc1MDAwMyA4OC44NzUwMDEzLDU4LjUwMDAwMDkgQzg4LjUwMDAwMTMsNTguMTI1MDAwOSA2My4wMDAwMDA5LDM4LjgxMjUwMDYgMTIuMzc1MDAwMiwwLjU2MjUwMDAwOCBaIi8+PC9nPjwvZz48L3N2Zz4=", } diff --git a/src/connectors/webwallet/index.ts b/src/connectors/webwallet/index.ts index 2c8091a..007c3f7 100644 --- a/src/connectors/webwallet/index.ts +++ b/src/connectors/webwallet/index.ts @@ -1,8 +1,8 @@ import { Permission, - RequestFnCall, - RpcMessage, - RpcTypeToMessageMap, + type RequestFnCall, + type RpcMessage, + type RpcTypeToMessageMap, type AccountChangeEventHandler, type StarknetWindowObject, } from "@starknet-io/types-js" @@ -10,7 +10,7 @@ import { Account, AccountInterface, ProviderInterface, - ProviderOptions, + type ProviderOptions, } from "starknet" import { ConnectorNotConnectedError, @@ -20,8 +20,8 @@ import { import { getStarknetChainId } from "../../helpers/getStarknetChainId" import { removeStarknetLastConnectedWallet } from "../../helpers/lastConnected" import { - ConnectArgs, Connector, + type ConnectArgs, type ConnectorData, type ConnectorIcons, } from "../connector" diff --git a/src/helpers/getStarknetChainId.ts b/src/helpers/getStarknetChainId.ts index 47384fe..489ca80 100644 --- a/src/helpers/getStarknetChainId.ts +++ b/src/helpers/getStarknetChainId.ts @@ -1,5 +1,5 @@ import { constants } from "starknet" -import { ChainId } from "@starknet-io/types-js" +import type { ChainId } from "@starknet-io/types-js" export const getStarknetChainId = ( chainId: ChainId, diff --git a/src/helpers/mapModalWallets.ts b/src/helpers/mapModalWallets.ts index 73e4636..9b80b64 100644 --- a/src/helpers/mapModalWallets.ts +++ b/src/helpers/mapModalWallets.ts @@ -1,4 +1,4 @@ -import { WalletProvider } from "@starknet-io/get-starknet-core" +import type { WalletProvider } from "@starknet-io/get-starknet-core" import { isString } from "lodash-es" import type { StarknetWindowObject } from "@starknet-io/types-js" import { StarknetkitConnector } from "../connectors/connector" diff --git a/src/hooks/useStarknetkitConnectModal.ts b/src/hooks/useStarknetkitConnectModal.ts index 186d43c..a9499e6 100644 --- a/src/hooks/useStarknetkitConnectModal.ts +++ b/src/hooks/useStarknetkitConnectModal.ts @@ -1,5 +1,5 @@ import { connect } from "../main" -import { ConnectOptionsWithConnectors, ModalResult } from "../types/modal" +import type { ConnectOptionsWithConnectors, ModalResult } from "../types/modal" type UseStarknetkitConnectors = { starknetkitConnectModal: () => Promise diff --git a/src/main.ts b/src/main.ts index f17df42..61f604f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,11 @@ import type { DisconnectOptions } from "@starknet-io/get-starknet" import sn from "@starknet-io/get-starknet-core" import type { StarknetWindowObject } from "@starknet-io/types-js" -import { Connector, ConnectorData, StarknetkitConnector } from "./connectors" +import { + Connector, + StarknetkitConnector, + type ConnectorData, +} from "./connectors" import { DEFAULT_WEBWALLET_URL } from "./connectors/webwallet/constants" import { defaultConnectors } from "./helpers/defaultConnectors" import { getStoreVersionFromBrowser } from "./helpers/getStoreVersionFromBrowser" diff --git a/src/types/modal.ts b/src/types/modal.ts index 3f0182a..b57f35d 100644 --- a/src/types/modal.ts +++ b/src/types/modal.ts @@ -1,5 +1,5 @@ import type { GetWalletOptions } from "@starknet-io/get-starknet-core" -import { StarknetWindowObject } from "@starknet-io/types-js" +import type { StarknetWindowObject } from "@starknet-io/types-js" import type { ArgentMobileConnectorOptions } from "../connectors/argentMobile" import type { ConnectorData, diff --git a/tsconfig.json b/tsconfig.json index df09da3..0a65ea3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,7 @@ "allowJs": true, "checkJs": true, "declaration": true, - "verbatimModuleSyntax": false + "verbatimModuleSyntax": true }, "include": ["src"], "exclude": ["node_modules"] From 1ddd9cfe8a3c45b37ad57af4da26ae6c5bb35901 Mon Sep 17 00:00:00 2001 From: bluecco Date: Mon, 6 Jan 2025 12:58:36 +0100 Subject: [PATCH 2/3] fix: ts build errors --- src/modal/ConnectorButton.svelte | 2 +- src/modal/Modal.svelte | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modal/ConnectorButton.svelte b/src/modal/ConnectorButton.svelte index 7cfd9a0..9411c1a 100644 --- a/src/modal/ConnectorButton.svelte +++ b/src/modal/ConnectorButton.svelte @@ -1,5 +1,5 @@