Skip to content

Commit

Permalink
fix: update liquid auth use wallet client version
Browse files Browse the repository at this point in the history
chore: prettier

chore: fix test

chore: prettier

fix: replace with official @algorandfoundation

chore: remove unused ts expect error

chore: prettier fix
  • Loading branch information
HashMapsData2Value committed Jan 29, 2025
1 parent a7b4967 commit b8c4968
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 52 deletions.
2 changes: 1 addition & 1 deletion examples/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:e2e": "playwright test"
},
"dependencies": {
"@algorandfoundation/liquid-auth-use-wallet-client": "1.1.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.2.0",
"@blockshake/defly-connect": "^1.2.1",
"@perawallet/connect": "^1.4.1",
"@txnlab/use-wallet": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:e2e": "playwright test"
},
"dependencies": {
"@algorandfoundation/liquid-auth-use-wallet-client": "1.1.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.2.0",
"@blockshake/defly-connect": "^1.2.1",
"@perawallet/connect": "^1.4.1",
"@txnlab/use-wallet-react": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:e2e": "playwright test"
},
"dependencies": {
"@algorandfoundation/liquid-auth-use-wallet-client": "1.1.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.2.0",
"@blockshake/defly-connect": "^1.2.1",
"@perawallet/connect": "^1.4.1",
"@txnlab/use-wallet-solid": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"vite": "6.0.7"
},
"dependencies": {
"@algorandfoundation/liquid-auth-use-wallet-client": "1.1.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.2.0",
"@blockshake/defly-connect": "^1.2.1",
"@perawallet/connect": "^1.4.1",
"@txnlab/use-wallet": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:e2e": "playwright test"
},
"dependencies": {
"@algorandfoundation/liquid-auth-use-wallet-client": "1.1.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.2.0",
"@blockshake/defly-connect": "^1.2.1",
"@perawallet/connect": "^1.4.1",
"@txnlab/use-wallet-vue": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/use-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@agoralabs-sh/avm-web-provider": "1.7.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.1.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.2.0",
"@blockshake/defly-connect": "1.2.1",
"@magic-ext/algorand": "23.20.0",
"@magic-sdk/provider": "28.20.0",
Expand All @@ -59,7 +59,7 @@
},
"peerDependencies": {
"@agoralabs-sh/avm-web-provider": "^1.7.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.1.0",
"@algorandfoundation/liquid-auth-use-wallet-client": "1.2.0",
"@blockshake/defly-connect": "^1.2.1",
"@perawallet/connect": "^1.4.1",
"@walletconnect/modal": "^2.7.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/use-wallet/src/__tests__/wallets/liquid.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { StorageAdapter } from 'src/storage'
import { LOCAL_STORAGE_KEY, State, WalletState, DEFAULT_STATE } from 'src/store'
import { LiquidWallet } from 'src/wallets/liquid'
import { WalletId } from 'src/wallets/types'
import { DEFAULT_NETWORKS } from 'src/network'

// Mock logger
vi.mock('src/logger', () => ({
Expand Down Expand Up @@ -57,8 +56,7 @@ function createWalletWithStore(store: Store<State>): LiquidWallet {
metadata: {},
getAlgodClient: () => ({}) as any,
store,
subscribe: vi.fn(),
networks: DEFAULT_NETWORKS
subscribe: vi.fn()
})
}

Expand Down
6 changes: 2 additions & 4 deletions packages/use-wallet/src/wallets/liquid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ export class LiquidWallet extends BaseWallet {
subscribe,
getAlgodClient,
options,
metadata = {},
networks
metadata = {}
}: WalletConstructor<WalletId.LIQUID>) {
super({ id, metadata, getAlgodClient, store, subscribe, networks })
super({ id, metadata, getAlgodClient, store, subscribe })

this.store = store
this.options = options ?? {
Expand Down Expand Up @@ -140,7 +139,6 @@ export class LiquidWallet extends BaseWallet {
this.logger.debug('Signing transactions...', { txnGroup, indexesToSign })

const authClient = this.authClient || (await this.initializeClient())
// @ts-expect-error - TODO: update liquid-auth-use-wallet-client to use algosdk v3
return authClient.signTransactions(txnGroup, this.activeAddress, indexesToSign)
} catch (error) {
this.logger.error('Error signing transactions', error)
Expand Down
53 changes: 15 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b8c4968

Please sign in to comment.