Skip to content

Commit

Permalink
Merge pull request #11 from argentlabs/fix/walletconnect-default-proj-id
Browse files Browse the repository at this point in the history
fix: argent mobile project id and refactor constants
  • Loading branch information
bluecco authored Oct 12, 2023
2 parents f65d033 + 239b555 commit 4848a35
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/connectors/argentMobile/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DEFAULT_PROJECT_ID = "f2e613881f7a0e811295cdd57999e31b"
2 changes: 1 addition & 1 deletion src/connectors/argentMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
} from "get-starknet-core"
import type { AccountInterface } from "starknet"
import { constants } from "starknet"
import { DEFAULT_PROJECT_ID } from "../../constants"
import { DEFAULT_PROJECT_ID } from "./constants"
import {
ConnectorNotConnectedError,
ConnectorNotFoundError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export const DEFAULT_WEBWALLET_URL = "https://web.argent.xyz"

export const DEFAULT_PROJECT_ID = "d7615e8fcbb3757ec0771a14ca715d09"

export const ARGENT_X_ICON = `data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iOCIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTE4LjQwMTggNy41NTU1NkgxMy41OTgyQzEzLjQzNzcgNy41NTU1NiAxMy4zMDkxIDcuNjg3NDcgMTMuMzA1NiA3Ljg1MTQzQzEzLjIwODUgMTIuNDYwMyAxMC44NDg0IDE2LjgzNDcgNi43ODYwOCAxOS45MzMxQzYuNjU3MTEgMjAuMDMxNCA2LjYyNzczIDIwLjIxNjIgNi43MjIwMiAyMC4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LjczMjEzTDI2LjI5NSA4LjIzOTQ4QzI1Ljk4MTEgOC4zNDIxIDI1LjczNiA4LjU5NDA0IDI1LjYzOTMgOC45MTQwMkwyNS4xNjIxIDEwLjQ4ODVDMjUuMDk2MSAxMC43MDY1IDI0Ljc5MyAxMC43MDg4IDI0LjcyMzYgMTAuNDkyWiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==`
1 change: 1 addition & 0 deletions src/connectors/webwallet/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DEFAULT_WEBWALLET_URL = "https://web.argent.xyz"
3 changes: 1 addition & 2 deletions src/connectors/webwallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import {
UserRejectedRequestError,
} from "../../errors"
import { getWebWalletStarknetObject } from "./starknetWindowObject/getWebWalletStarknetObject"

const DEFAULT_WEBWALLET_URL = "https://web.argent.xyz"
import { DEFAULT_WEBWALLET_URL } from "./constants"

let _wallet: StarknetWindowObject | null = null

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/getWallets.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StarknetWindowObject, WalletProvider } from "get-starknet-core"
import { ARGENT_X_ICON } from "../constants"
import { ARGENT_X_ICON } from "../connectors/injected/constants"

export const replaceArgentXIcon = async (
wallets: StarknetWindowObject[] | WalletProvider[],
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/mapModalWallets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { StarknetWindowObject, WalletProvider } from "get-starknet-core"
import { Connector } from "../connectors/connector"
import { ARGENT_X_ICON } from "../constants"
import { ARGENT_X_ICON } from "../connectors/injected/constants"
import type { ModalWallet, StoreVersion } from "../types/modal"

interface SetConnectorsExpandedParams {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sn from "get-starknet-core"

import { getStoreVersionFromBrowser } from "./helpers/getStoreVersionFromBrowser"

import { DEFAULT_WEBWALLET_URL } from "./constants"
import { DEFAULT_WEBWALLET_URL } from "./connectors/webwallet/constants"
import { defaultConnectors } from "./helpers/defaultConnectors"
import { mapModalWallets } from "./helpers/mapModalWallets"
import { resetWalletConnect } from "./helpers/resetWalletConnect"
Expand Down

0 comments on commit 4848a35

Please sign in to comment.