Skip to content

Commit

Permalink
Merge pull request #28 from AmbireTech/feat/use-npm-package-for-sdk-c…
Browse files Browse the repository at this point in the history
…hange-wallet-url

Use npm package for sdk react components and change to wallet2 endpoint
  • Loading branch information
cmihaylov authored Dec 13, 2023
2 parents 74fb7a3 + d14c8b1 commit b0ef52b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 520 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
"workbox-precaching": "^6.1.0",
"workbox-routing": "^6.1.0",
"zustand": "^4.0.0-rc.1",
"ambire-login-sdk": "AmbireTech/wallet-login-sdk#23076e3d9d10e9f90d09f1d17de983a114451e02"
"@ambire/login-sdk-web3-react": "^0.1.6"
},
"engines": {
"npm": "please-use-yarn",
Expand Down
8 changes: 4 additions & 4 deletions src/connection/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { AmbireConnector } from '@ambire/login-sdk-web3-react'
import { CoinbaseWallet } from '@web3-react/coinbase-wallet'
import { initializeConnector, Web3ReactHooks } from '@web3-react/core'
import { GnosisSafe } from '@web3-react/gnosis-safe'
import { MetaMask } from '@web3-react/metamask'
import { Network } from '@web3-react/network'
import { Connector } from '@web3-react/types'
import { WalletConnect } from '@web3-react/walletconnect'
import { AmbireWallet } from 'ambire-login-sdk'
import { SupportedChainId } from 'constants/chains'

import UNISWAP_LOGO_URL from '../assets/svg/logo.svg'
Expand Down Expand Up @@ -80,13 +80,13 @@ export const walletConnectConnection: Connection = {
}

const sdkOptions = {
walletUrl: 'https://wallet.ambire.com/sdk-login',
walletUrl: 'https://wallet2.ambire.com/sdk-login',
dappName: 'Uniswap-Ambire-SDK-Demo',
dappIconPath: 'https://ambiretech.github.io/uniswap-ambire-sdk-demo/favicon.png',
chainID: 1,
}
const [ambireConnect, ambireConnectHooks] = initializeConnector<AmbireWallet>(
(actions) => new AmbireWallet(actions, sdkOptions, onError)
const [ambireConnect, ambireConnectHooks] = initializeConnector<AmbireConnector>(
(actions) => new AmbireConnector(actions, sdkOptions, onError)
)
export const ambireConnection: Connection = {
connector: ambireConnect,
Expand Down
Loading

0 comments on commit b0ef52b

Please sign in to comment.