Skip to content

Commit 13bc8eb

Browse files
[v6] chore: update sequence v2 WaaS related packages and remove unused code (#594)
* chore: update sequence v2 packages and remove unused code * fix: preserve native token pricing in hooks
1 parent 9274368 commit 13bc8eb

20 files changed

Lines changed: 402 additions & 4150 deletions

File tree

examples/next/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
"@0xsequence/connect": "workspace:*",
1616
"@0xsequence/design-system": "3.2.9",
1717
"@0xsequence/hooks": "workspace:*",
18-
"@0xsequence/waas": "^2.3.38",
1918
"@0xsequence/wallet-widget": "workspace:*",
20-
"@imtbl/config": "^2.2.0",
21-
"@imtbl/sdk": "^2.2.0",
22-
"@radix-ui/react-select": "^2.2.5",
2319
"@tanstack/react-query": "^5.74.11",
2420
"example-shared-components": "workspace:*",
2521
"next": "14.2.3",

examples/next/src/app/auth-callback/page.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/next/src/components/ImmutableCallback.tsx

Lines changed: 0 additions & 38 deletions
This file was deleted.

examples/next/src/config.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { SequenceCheckoutConfig } from '@0xsequence/checkout'
22
import { ConnectConfig, createConfig, createContractPermission } from '@0xsequence/connect'
33
import { ChainId } from '@0xsequence/connect'
4-
import { Environment } from '@imtbl/config'
5-
import { passport } from '@imtbl/sdk'
64
import { zeroAddress } from 'viem'
75
import { cookieStorage, createStorage } from 'wagmi'
86

@@ -74,31 +72,6 @@ export const connectConfig: ConnectConfig = {
7472
: undefined
7573
}
7674

77-
let passportInstance: passport.Passport | undefined
78-
79-
export const getPassportInstance = () => {
80-
if (typeof window === 'undefined') {
81-
return undefined
82-
}
83-
84-
if (!passportInstance) {
85-
passportInstance = new passport.Passport({
86-
baseConfig: {
87-
environment: Environment.SANDBOX,
88-
publishableKey: 'pk_imapik-test-VEMeW7wUX7hE7LHg3FxY'
89-
},
90-
forceScwDeployBeforeMessageSignature: true,
91-
clientId: 'ap8Gv3188GLFROiBFBNFz77DojRpqxnS',
92-
redirectUri: `${defaultOrigin}/auth-callback`,
93-
logoutRedirectUri: `${defaultOrigin}`,
94-
audience: 'platform_api',
95-
scope: 'openid offline_access email transact'
96-
})
97-
}
98-
99-
return passportInstance
100-
}
101-
10275
export const config = createConfig({
10376
...connectConfig,
10477
walletUrl: 'https://v3.sequence-dev.app',

examples/react-waas/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
"@0xsequence/connect": "workspace:*",
1515
"@0xsequence/design-system": "3.2.9",
1616
"@0xsequence/hooks": "workspace:*",
17-
"@0xsequence/waas": "^2.3.36",
1817
"@0xsequence/wallet-widget": "workspace:*",
19-
"@imtbl/config": "^2.2.0",
20-
"@imtbl/sdk": "^2.2.0",
21-
"@radix-ui/react-select": "^2.2.5",
2218
"@tanstack/react-query": "^5.74.11",
2319
"example-shared-components": "workspace:*",
2420
"react": "^19.1.0",

examples/react-waas/src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { SequenceWalletProvider } from '@0xsequence/wallet-widget'
55
import { BrowserRouter, Route, Routes } from 'react-router-dom'
66

77
import { Homepage } from './components/Homepage'
8-
import { ImmutableCallback } from './components/ImmutableCallback'
98
import { InlineDemo } from './components/InlineDemo'
109
import { XAuthCallback } from './components/XAuthCallback'
1110
import { checkoutConfig, config } from './config'
@@ -20,7 +19,6 @@ export const App = () => {
2019
<Routes>
2120
<Route path="/" element={<Homepage />} />
2221
<Route path="/inline" element={<InlineDemo />} />
23-
<Route path="/auth-callback" element={<ImmutableCallback />} />
2422
<Route path="/auth-callback-X" element={<XAuthCallback />} />
2523
</Routes>
2624
</BrowserRouter>

examples/react-waas/src/components/ImmutableCallback.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/react-waas/src/config.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { SequenceCheckoutConfig } from '@0xsequence/checkout'
22
import { ConnectConfig, createConfig } from '@0xsequence/connect'
33
import { ChainId } from '@0xsequence/connect'
4-
import { Environment } from '@imtbl/config'
5-
import { passport } from '@imtbl/sdk'
64
import { zeroAddress } from 'viem'
75

86
const searchParams = new URLSearchParams(location.search)
@@ -72,19 +70,6 @@ export const connectConfig: ConnectConfig = {
7270
: undefined
7371
}
7472

75-
export const passportInstance = new passport.Passport({
76-
baseConfig: {
77-
environment: Environment.SANDBOX,
78-
publishableKey: 'pk_imapik-test-VEMeW7wUX7hE7LHg3FxY'
79-
},
80-
forceScwDeployBeforeMessageSignature: true,
81-
clientId: 'ap8Gv3188GLFROiBFBNFz77DojRpqxnS',
82-
redirectUri: `${window.location.origin}/auth-callback`,
83-
logoutRedirectUri: `${window.location.origin}`,
84-
audience: 'platform_api',
85-
scope: 'openid offline_access email transact'
86-
})
87-
8873
export const config = createConfig('waas', {
8974
...connectConfig,
9075
appName: 'Sequence Web SDK Demo',

examples/react/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
"@0xsequence/connect": "workspace:*",
1717
"@0xsequence/design-system": "3.2.9",
1818
"@0xsequence/hooks": "workspace:*",
19-
"@0xsequence/waas": "^2.3.38",
2019
"@0xsequence/wallet-widget": "workspace:*",
21-
"@imtbl/config": "^2.2.0",
22-
"@imtbl/sdk": "^2.2.0",
23-
"@radix-ui/react-select": "^2.2.5",
2420
"@tanstack/react-query": "^5.74.11",
2521
"example-shared-components": "workspace:*",
2622
"react": "^19.1.0",

examples/react/src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { useCallback, useMemo, useState } from 'react'
55
import { BrowserRouter, Route, Routes } from 'react-router-dom'
66

77
import { Homepage } from './components/Homepage'
8-
import { ImmutableCallback } from './components/ImmutableCallback'
98
import { InlineDemo } from './components/InlineDemo'
109
import { XAuthCallback } from './components/XAuthCallback'
1110
import { createExampleConfig, loadWalletUrl, persistWalletUrl, sanitizeWalletUrl } from './config'
@@ -48,7 +47,6 @@ const AppContent = () => {
4847
<Routes>
4948
<Route path="/" element={<Homepage walletUrl={walletUrl} onWalletUrlChange={handleWalletUrlChange} />} />
5049
<Route path="/inline" element={<InlineDemo config={config} />} />
51-
<Route path="/auth-callback" element={<ImmutableCallback />} />
5250
<Route path="/auth-callback-X" element={<XAuthCallback />} />
5351
</Routes>
5452
</BrowserRouter>

0 commit comments

Comments
 (0)