-
Notifications
You must be signed in to change notification settings - Fork 973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add versioned transaction methods to adapter interface #558
Merged
+329
−206
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
5269c16
Bump @solana/web3.js version to v1.59.1
jstarry 5ce4a3c
Add versioned transaction methods to adapter interface
jstarry 1529a5b
feedback
jstarry 9ce97d6
update web3.js consistent with master
jordaaash d5e9fd8
Merge branch 'master' into versioned-tx
jordaaash 6762d53
update lockfile
jordaaash 8098e7b
organize imports, lint fix
jordaaash f2f13b2
refactor versioned transaction methods
jordaaash f395866
fix react types
jordaaash af2257a
add type guard for versioned txs
jordaaash f731ea1
alpha adapter test
jordaaash 98ca6e8
fixes
jordaaash aed4d7a
fixes
jordaaash 793b161
check out wallets from master
jordaaash 4b9132b
add supportedTransactionVersions flag to wallets
jordaaash eb4011d
infer types
jordaaash 20bc5ed
organize imports
jordaaash 04a6205
have signAllTransactions check for versioned txs
jordaaash 80d1d48
infer supportedTransactionVersions type from field
jordaaash f2d50d6
fix sign / signAll in all adapters
jordaaash 46ef36c
remove hack
jordaaash a46ff71
Add versioned transaction methods to adapter interface
jstarry 43cde10
feedback
jstarry 6505731
organize imports, lint fix
jordaaash aa1e381
refactor versioned transaction methods
jordaaash 1e8b5ee
fix react types
jordaaash 87b3943
add type guard for versioned txs
jordaaash 6cc7d90
alpha adapter test
jordaaash 4369e40
fixes
jordaaash 8819905
fixes
jordaaash bde0bb2
check out wallets from master
jordaaash c2d14da
add supportedTransactionVersions flag to wallets
jordaaash a801e06
infer types
jordaaash ebe79ec
organize imports
jordaaash 1c0b0f6
have signAllTransactions check for versioned txs
jordaaash 6266bd8
infer supportedTransactionVersions type from field
jordaaash 6533919
fix sign / signAll in all adapters
jordaaash 18878eb
remove hack
jordaaash ddf04df
Merge branch 'versioned-tx' of https://github.com/jstarry/wallet-adap…
jordaaash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix sign / signAll in all adapters
- @solana/wallet-adapter-xdefi@0.1.7
- @solana/wallet-adapter-xdefi@0.1.6
- @solana/wallet-adapter-xdefi@0.1.5
- @solana/wallet-adapter-xdefi@0.1.4
- @solana/wallet-adapter-xdefi@0.1.3
- @solana/wallet-adapter-wallets@0.19.32
- @solana/wallet-adapter-wallets@0.19.31
- @solana/wallet-adapter-wallets@0.19.30
- @solana/wallet-adapter-wallets@0.19.29
- @solana/wallet-adapter-wallets@0.19.28
- @solana/wallet-adapter-wallets@0.19.27
- @solana/wallet-adapter-wallets@0.19.26
- @solana/wallet-adapter-wallets@0.19.25
- @solana/wallet-adapter-wallets@0.19.24
- @solana/wallet-adapter-wallets@0.19.23
- @solana/wallet-adapter-wallets@0.19.22
- @solana/wallet-adapter-wallets@0.19.21
- @solana/wallet-adapter-wallets@0.19.20
- @solana/wallet-adapter-wallets@0.19.19
- @solana/wallet-adapter-wallets@0.19.18
- @solana/wallet-adapter-wallets@0.19.17
- @solana/wallet-adapter-wallets@0.19.16
- @solana/wallet-adapter-wallets@0.19.15
- @solana/wallet-adapter-wallets@0.19.14
- @solana/wallet-adapter-wallets@0.19.12
- @solana/wallet-adapter-wallets@0.19.11
- @solana/wallet-adapter-wallets@0.19.10
- @solana/wallet-adapter-wallets@0.19.9
- @solana/wallet-adapter-wallets@0.19.8
- @solana/wallet-adapter-wallets@0.19.7
- @solana/wallet-adapter-wallets@0.19.6
- @solana/wallet-adapter-walletconnect@0.1.16
- @solana/wallet-adapter-walletconnect@0.1.15
- @solana/wallet-adapter-walletconnect@0.1.14
- @solana/wallet-adapter-walletconnect@0.1.13
- @solana/wallet-adapter-walletconnect@0.1.11
- @solana/wallet-adapter-walletconnect@0.1.10
- @solana/wallet-adapter-walletconnect@0.1.9
- @solana/wallet-adapter-unsafe-burner@0.1.7
- @solana/wallet-adapter-unsafe-burner@0.1.6
- @solana/wallet-adapter-unsafe-burner@0.1.5
- @solana/wallet-adapter-unsafe-burner@0.1.4
- @solana/wallet-adapter-unsafe-burner@0.1.3
- @solana/wallet-adapter-trust@0.1.13
- @solana/wallet-adapter-trust@0.1.12
- @solana/wallet-adapter-trust@0.1.11
- @solana/wallet-adapter-trust@0.1.10
- @solana/wallet-adapter-trust@0.1.9
- @solana/wallet-adapter-trezor@0.1.2
- @solana/wallet-adapter-trezor@0.1.1
- @solana/wallet-adapter-trezor@0.1.0
- @solana/wallet-adapter-torus@0.11.28
- @solana/wallet-adapter-torus@0.11.27
- @solana/wallet-adapter-torus@0.11.26
- @solana/wallet-adapter-torus@0.11.25
- @solana/wallet-adapter-torus@0.11.24
- @solana/wallet-adapter-tokenpocket@0.4.19
- @solana/wallet-adapter-tokenpocket@0.4.18
- @solana/wallet-adapter-tokenpocket@0.4.17
- @solana/wallet-adapter-tokenpocket@0.4.16
- @solana/wallet-adapter-tokenpocket@0.4.15
- @solana/wallet-adapter-tokenary@0.1.12
- @solana/wallet-adapter-tokenary@0.1.11
- @solana/wallet-adapter-tokenary@0.1.10
- @solana/wallet-adapter-tokenary@0.1.9
- @solana/wallet-adapter-tokenary@0.1.8
- @solana/wallet-adapter-strike@0.1.13
- @solana/wallet-adapter-strike@0.1.12
- @solana/wallet-adapter-strike@0.1.11
- @solana/wallet-adapter-strike@0.1.10
- @solana/wallet-adapter-strike@0.1.9
- @solana/wallet-adapter-spot@0.1.15
- @solana/wallet-adapter-spot@0.1.14
- @solana/wallet-adapter-spot@0.1.13
- @solana/wallet-adapter-spot@0.1.12
- @solana/wallet-adapter-spot@0.1.11
- @solana/wallet-adapter-solong@0.9.18
- @solana/wallet-adapter-solong@0.9.17
- @solana/wallet-adapter-solong@0.9.16
- @solana/wallet-adapter-solong@0.9.15
- @solana/wallet-adapter-solong@0.9.14
- @solana/wallet-adapter-sollet@0.11.17
- @solana/wallet-adapter-sollet@0.11.16
- @solana/wallet-adapter-sollet@0.11.15
- @solana/wallet-adapter-sollet@0.11.14
- @solana/wallet-adapter-sollet@0.11.13
- @solana/wallet-adapter-solflare@0.6.28
- @solana/wallet-adapter-solflare@0.6.27
- @solana/wallet-adapter-solflare@0.6.26
- @solana/wallet-adapter-solflare@0.6.25
- @solana/wallet-adapter-solflare@0.6.24
- @solana/wallet-adapter-solflare@0.6.23
- @solana/wallet-adapter-solflare@0.6.22
- @solana/wallet-adapter-solflare@0.6.21
- @solana/wallet-adapter-solflare@0.6.20
- @solana/wallet-adapter-solflare@0.6.19
- @solana/wallet-adapter-slope@0.5.21
- @solana/wallet-adapter-slope@0.5.20
- @solana/wallet-adapter-slope@0.5.19
- @solana/wallet-adapter-slope@0.5.18
- @solana/wallet-adapter-slope@0.5.17
- @solana/wallet-adapter-sky@0.1.15
- @solana/wallet-adapter-sky@0.1.14
- @solana/wallet-adapter-sky@0.1.13
- @solana/wallet-adapter-sky@0.1.12
- @solana/wallet-adapter-sky@0.1.11
- @solana/wallet-adapter-salmon@0.1.14
- @solana/wallet-adapter-salmon@0.1.13
- @solana/wallet-adapter-salmon@0.1.12
- @solana/wallet-adapter-salmon@0.1.11
- @solana/wallet-adapter-salmon@0.1.10
- @solana/wallet-adapter-saifu@0.1.15
- @solana/wallet-adapter-saifu@0.1.14
- @solana/wallet-adapter-saifu@0.1.13
- @solana/wallet-adapter-saifu@0.1.12
- @solana/wallet-adapter-saifu@0.1.11
- @solana/wallet-adapter-safepal@0.5.18
- @solana/wallet-adapter-safepal@0.5.17
- @solana/wallet-adapter-safepal@0.5.16
- @solana/wallet-adapter-safepal@0.5.15
- @solana/wallet-adapter-safepal@0.5.14
- @solana/wallet-adapter-react-ui-starter@0.9.33
- @solana/wallet-adapter-react-ui-starter@0.9.32
- @solana/wallet-adapter-react-ui-starter@0.9.31
- @solana/wallet-adapter-react-ui-starter@0.9.30
- @solana/wallet-adapter-react-ui-starter@0.9.29
- @solana/wallet-adapter-react-ui-starter@0.9.28
- @solana/wallet-adapter-react-ui-starter@0.9.27
- @solana/wallet-adapter-react-ui-starter@0.9.26
- @solana/wallet-adapter-react-ui-starter@0.9.25
- @solana/wallet-adapter-react-ui-starter@0.9.24
- @solana/wallet-adapter-react-ui-starter@0.9.23
- @solana/wallet-adapter-react-ui-starter@0.9.22
- @solana/wallet-adapter-react-ui-starter@0.9.21
- @solana/wallet-adapter-react-ui-starter@0.9.20
- @solana/wallet-adapter-react-ui-starter@0.9.19
- @solana/wallet-adapter-react-ui-starter@0.9.18
- @solana/wallet-adapter-react-ui-starter@0.9.17
- @solana/wallet-adapter-react-ui-starter@0.9.16
- @solana/wallet-adapter-react-ui@0.9.35
- @solana/wallet-adapter-react-ui@0.9.34
- @solana/wallet-adapter-react-ui@0.9.33
- @solana/wallet-adapter-react-ui@0.9.32
- @solana/wallet-adapter-react-ui@0.9.31
- @solana/wallet-adapter-react-ui@0.9.30
- @solana/wallet-adapter-react-ui@0.9.29
- @solana/wallet-adapter-react-ui@0.9.28
- @solana/wallet-adapter-react-ui@0.9.27
- @solana/wallet-adapter-react-ui@0.9.26
- @solana/wallet-adapter-react-ui@0.9.25
- @solana/wallet-adapter-react-ui@0.9.24
- @solana/wallet-adapter-react-ui@0.9.23
- @solana/wallet-adapter-react-ui@0.9.22
- @solana/wallet-adapter-react-ui@0.9.21
- @solana/wallet-adapter-react-ui@0.9.20
- @solana/wallet-adapter-react@0.15.35
- @solana/wallet-adapter-react@0.15.34
- @solana/wallet-adapter-react@0.15.33
- @solana/wallet-adapter-react@0.15.32
- @solana/wallet-adapter-react@0.15.31
- @solana/wallet-adapter-react@0.15.30
- @solana/wallet-adapter-react@0.15.29
- @solana/wallet-adapter-react@0.15.28
- @solana/wallet-adapter-react@0.15.27
- @solana/wallet-adapter-react@0.15.26
- @solana/wallet-adapter-react@0.15.25
- @solana/wallet-adapter-react@0.15.24
- @solana/wallet-adapter-react@0.15.23
- @solana/wallet-adapter-react@0.15.22
- @solana/wallet-adapter-phantom@0.9.24
- @solana/wallet-adapter-phantom@0.9.23
- @solana/wallet-adapter-phantom@0.9.22
- @solana/wallet-adapter-phantom@0.9.21
- @solana/wallet-adapter-phantom@0.9.20
- @solana/wallet-adapter-phantom@0.9.19
- @solana/wallet-adapter-phantom@0.9.18
- @solana/wallet-adapter-particle@0.1.12
- @solana/wallet-adapter-particle@0.1.11
- @solana/wallet-adapter-particle@0.1.10
- @solana/wallet-adapter-particle@0.1.9
- @solana/wallet-adapter-particle@0.1.8
- @solana/wallet-adapter-particle@0.1.7
- @solana/wallet-adapter-particle@0.1.6
- @solana/wallet-adapter-onto@0.1.7
- @solana/wallet-adapter-onto@0.1.6
- @solana/wallet-adapter-onto@0.1.5
- @solana/wallet-adapter-onto@0.1.4
- @solana/wallet-adapter-onto@0.1.3
- @solana/wallet-adapter-nufi@0.1.17
- @solana/wallet-adapter-nufi@0.1.16
- @solana/wallet-adapter-nufi@0.1.15
- @solana/wallet-adapter-nufi@0.1.14
- @solana/wallet-adapter-nufi@0.1.13
- @solana/wallet-adapter-nufi@0.1.12
- @solana/wallet-adapter-nightly@0.1.16
- @solana/wallet-adapter-nightly@0.1.15
- @solana/wallet-adapter-nightly@0.1.14
- @solana/wallet-adapter-nightly@0.1.13
- @solana/wallet-adapter-nightly@0.1.12
- @solana/wallet-adapter-nightly@0.1.11
- @solana/wallet-adapter-nextjs-starter@0.8.32
- @solana/wallet-adapter-nextjs-starter@0.8.31
- @solana/wallet-adapter-nextjs-starter@0.8.30
- @solana/wallet-adapter-nextjs-starter@0.8.29
- @solana/wallet-adapter-nextjs-starter@0.8.28
- @solana/wallet-adapter-nextjs-starter@0.8.27
- @solana/wallet-adapter-nextjs-starter@0.8.26
- @solana/wallet-adapter-nextjs-starter@0.8.25
- @solana/wallet-adapter-nextjs-starter@0.8.24
- @solana/wallet-adapter-nextjs-starter@0.8.23
- @solana/wallet-adapter-nextjs-starter@0.8.22
- @solana/wallet-adapter-nextjs-starter@0.8.21
- @solana/wallet-adapter-nextjs-starter@0.8.20
- @solana/wallet-adapter-nextjs-starter@0.8.19
- @solana/wallet-adapter-nextjs-starter@0.8.18
- @solana/wallet-adapter-nextjs-starter@0.8.17
- @solana/wallet-adapter-nextjs-starter@0.8.16
- @solana/wallet-adapter-nextjs-starter@0.8.15
- @solana/wallet-adapter-neko@0.2.12
- @solana/wallet-adapter-neko@0.2.11
- @solana/wallet-adapter-neko@0.2.10
- @solana/wallet-adapter-neko@0.2.9
- @solana/wallet-adapter-neko@0.2.8
- @solana/wallet-adapter-mathwallet@0.9.18
- @solana/wallet-adapter-mathwallet@0.9.17
- @solana/wallet-adapter-mathwallet@0.9.16
- @solana/wallet-adapter-mathwallet@0.9.15
- @solana/wallet-adapter-mathwallet@0.9.14
- @solana/wallet-adapter-material-ui-starter@0.13.32
- @solana/wallet-adapter-material-ui-starter@0.13.31
- @solana/wallet-adapter-material-ui-starter@0.13.30
- @solana/wallet-adapter-material-ui-starter@0.13.29
- @solana/wallet-adapter-material-ui-starter@0.13.28
- @solana/wallet-adapter-material-ui-starter@0.13.27
- @solana/wallet-adapter-material-ui-starter@0.13.26
- @solana/wallet-adapter-material-ui-starter@0.13.25
- @solana/wallet-adapter-material-ui-starter@0.13.24
- @solana/wallet-adapter-material-ui-starter@0.13.23
- @solana/wallet-adapter-material-ui-starter@0.13.22
- @solana/wallet-adapter-material-ui-starter@0.13.21
- @solana/wallet-adapter-material-ui-starter@0.13.20
- @solana/wallet-adapter-material-ui-starter@0.13.19
- @solana/wallet-adapter-material-ui-starter@0.13.18
- @solana/wallet-adapter-material-ui-starter@0.13.17
- @solana/wallet-adapter-material-ui-starter@0.13.16
- @solana/wallet-adapter-material-ui-starter@0.13.15
- @solana/wallet-adapter-material-ui@0.16.34
- @solana/wallet-adapter-material-ui@0.16.33
- @solana/wallet-adapter-material-ui@0.16.32
- @solana/wallet-adapter-material-ui@0.16.31
- @solana/wallet-adapter-material-ui@0.16.30
- @solana/wallet-adapter-material-ui@0.16.29
- @solana/wallet-adapter-material-ui@0.16.28
- @solana/wallet-adapter-material-ui@0.16.27
- @solana/wallet-adapter-material-ui@0.16.26
- @solana/wallet-adapter-material-ui@0.16.25
- @solana/wallet-adapter-material-ui@0.16.24
- @solana/wallet-adapter-material-ui@0.16.23
- @solana/wallet-adapter-material-ui@0.16.22
- @solana/wallet-adapter-material-ui@0.16.21
- @solana/wallet-adapter-material-ui@0.16.20
- @solana/wallet-adapter-material-ui@0.16.19
- @solana/wallet-adapter-material-ui@0.16.18
- @solana/wallet-adapter-magiceden@0.1.13
- @solana/wallet-adapter-magiceden@0.1.12
- @solana/wallet-adapter-magiceden@0.1.11
- @solana/wallet-adapter-magiceden@0.1.10
- @solana/wallet-adapter-magiceden@0.1.9
- @solana/wallet-adapter-ledger@0.9.25
- @solana/wallet-adapter-ledger@0.9.24
- @solana/wallet-adapter-ledger@0.9.23
- @solana/wallet-adapter-ledger@0.9.22
- @solana/wallet-adapter-ledger@0.9.21
- @solana/wallet-adapter-krystal@0.1.12
- @solana/wallet-adapter-krystal@0.1.11
- @solana/wallet-adapter-krystal@0.1.10
- @solana/wallet-adapter-krystal@0.1.9
- @solana/wallet-adapter-krystal@0.1.8
- @solana/wallet-adapter-keystone@0.1.15
- @solana/wallet-adapter-keystone@0.1.14
- @solana/wallet-adapter-keystone@0.1.13
- @solana/wallet-adapter-keystone@0.1.12
- @solana/wallet-adapter-keystone@0.1.11
- @solana/wallet-adapter-keystone@0.1.10
- @solana/wallet-adapter-keystone@0.1.9
- @solana/wallet-adapter-keystone@0.1.8
- @solana/wallet-adapter-hyperpay@0.1.14
- @solana/wallet-adapter-hyperpay@0.1.13
- @solana/wallet-adapter-hyperpay@0.1.12
- @solana/wallet-adapter-hyperpay@0.1.11
- @solana/wallet-adapter-hyperpay@0.1.10
- @solana/wallet-adapter-huobi@0.1.15
- @solana/wallet-adapter-huobi@0.1.14
- @solana/wallet-adapter-huobi@0.1.13
- @solana/wallet-adapter-huobi@0.1.12
- @solana/wallet-adapter-huobi@0.1.11
- @solana/wallet-adapter-glow@0.1.18
- @solana/wallet-adapter-glow@0.1.17
- @solana/wallet-adapter-glow@0.1.16
- @solana/wallet-adapter-glow@0.1.15
- @solana/wallet-adapter-glow@0.1.14
- @solana/wallet-adapter-fractal@0.1.8
- @solana/wallet-adapter-fractal@0.1.7
- @solana/wallet-adapter-fractal@0.1.6
- @solana/wallet-adapter-fractal@0.1.5
- @solana/wallet-adapter-fractal@0.1.4
- @solana/wallet-adapter-fractal@0.1.3
- @solana/wallet-adapter-exodus@0.1.18
- @solana/wallet-adapter-exodus@0.1.17
- @solana/wallet-adapter-exodus@0.1.16
- @solana/wallet-adapter-exodus@0.1.15
- @solana/wallet-adapter-exodus@0.1.14
- @solana/wallet-adapter-example@0.18.36
- @solana/wallet-adapter-example@0.18.35
- @solana/wallet-adapter-example@0.18.34
- @solana/wallet-adapter-example@0.18.33
- @solana/wallet-adapter-example@0.18.32
- @solana/wallet-adapter-example@0.18.31
- @solana/wallet-adapter-example@0.18.30
- @solana/wallet-adapter-example@0.18.29
- @solana/wallet-adapter-example@0.18.28
- @solana/wallet-adapter-example@0.18.27
- @solana/wallet-adapter-example@0.18.26
- @solana/wallet-adapter-example@0.18.25
- @solana/wallet-adapter-example@0.18.24
- @solana/wallet-adapter-example@0.18.23
- @solana/wallet-adapter-example@0.18.22
- @solana/wallet-adapter-example@0.18.21
- @solana/wallet-adapter-example@0.18.20
- @solana/wallet-adapter-example@0.18.19
- @solana/wallet-adapter-example@0.18.18
- @solana/wallet-adapter-example@0.18.17
- @solana/wallet-adapter-example@0.18.16
- @solana/wallet-adapter-create-react-app-starter@0.1.30
- @solana/wallet-adapter-create-react-app-starter@0.1.29
- @solana/wallet-adapter-create-react-app-starter@0.1.28
- @solana/wallet-adapter-create-react-app-starter@0.1.27
- @solana/wallet-adapter-create-react-app-starter@0.1.26
- @solana/wallet-adapter-create-react-app-starter@0.1.25
- @solana/wallet-adapter-create-react-app-starter@0.1.24
- @solana/wallet-adapter-create-react-app-starter@0.1.23
- @solana/wallet-adapter-create-react-app-starter@0.1.22
- @solana/wallet-adapter-create-react-app-starter@0.1.21
- @solana/wallet-adapter-create-react-app-starter@0.1.20
- @solana/wallet-adapter-create-react-app-starter@0.1.19
- @solana/wallet-adapter-create-react-app-starter@0.1.18
- @solana/wallet-adapter-create-react-app-starter@0.1.17
- @solana/wallet-adapter-create-react-app-starter@0.1.16
- @solana/wallet-adapter-create-react-app-starter@0.1.15
- @solana/wallet-adapter-create-react-app-starter@0.1.14
- @solana/wallet-adapter-create-react-app-starter@0.1.13
- @solana/wallet-adapter-coinhub@0.3.18
- @solana/wallet-adapter-coinhub@0.3.17
- @solana/wallet-adapter-coinhub@0.3.16
- @solana/wallet-adapter-coinhub@0.3.15
- @solana/wallet-adapter-coinhub@0.3.14
- @solana/wallet-adapter-coinbase@0.1.19
- @solana/wallet-adapter-coinbase@0.1.18
- @solana/wallet-adapter-coinbase@0.1.17
- @solana/wallet-adapter-coinbase@0.1.16
- @solana/wallet-adapter-coinbase@0.1.15
- @solana/wallet-adapter-coinbase@0.1.14
- @solana/wallet-adapter-coin98@0.5.20
- @solana/wallet-adapter-coin98@0.5.19
- @solana/wallet-adapter-coin98@0.5.18
- @solana/wallet-adapter-coin98@0.5.17
- @solana/wallet-adapter-coin98@0.5.16
- @solana/wallet-adapter-clover@0.4.19
- @solana/wallet-adapter-clover@0.4.18
- @solana/wallet-adapter-clover@0.4.17
- @solana/wallet-adapter-clover@0.4.16
- @solana/wallet-adapter-clover@0.4.15
- @solana/wallet-adapter-censo@0.1.4
- @solana/wallet-adapter-censo@0.1.3
- @solana/wallet-adapter-censo@0.1.2
- @solana/wallet-adapter-censo@0.1.1
- @solana/wallet-adapter-brave@0.1.17
- @solana/wallet-adapter-brave@0.1.16
- @solana/wallet-adapter-brave@0.1.15
- @solana/wallet-adapter-brave@0.1.14
- @solana/wallet-adapter-brave@0.1.13
- @solana/wallet-adapter-blocto@0.5.22
- @solana/wallet-adapter-blocto@0.5.21
- @solana/wallet-adapter-blocto@0.5.20
- @solana/wallet-adapter-blocto@0.5.19
- @solana/wallet-adapter-blocto@0.5.18
- @solana/wallet-adapter-bitpie@0.5.18
- @solana/wallet-adapter-bitpie@0.5.17
- @solana/wallet-adapter-bitpie@0.5.16
- @solana/wallet-adapter-bitpie@0.5.15
- @solana/wallet-adapter-bitpie@0.5.14
- @solana/wallet-adapter-bitkeep@0.3.20
- @solana/wallet-adapter-bitkeep@0.3.19
- @solana/wallet-adapter-bitkeep@0.3.18
- @solana/wallet-adapter-bitkeep@0.3.17
- @solana/wallet-adapter-bitkeep@0.3.16
- @solana/wallet-adapter-bitkeep@0.3.15
- @solana/wallet-adapter-base-ui@0.1.2
- @solana/wallet-adapter-base-ui@0.1.1
- @solana/wallet-adapter-base-ui@0.1.0
- @solana/wallet-adapter-base@0.9.23
- @solana/wallet-adapter-base@0.9.22
- @solana/wallet-adapter-base@0.9.21
- @solana/wallet-adapter-base@0.9.20
- @solana/wallet-adapter-base@0.9.19
- @solana/wallet-adapter-backpack@0.1.14
- @solana/wallet-adapter-backpack@0.1.13
- @solana/wallet-adapter-backpack@0.1.12
- @solana/wallet-adapter-backpack@0.1.11
- @solana/wallet-adapter-backpack@0.1.10
- @solana/wallet-adapter-avana@0.1.13
- @solana/wallet-adapter-avana@0.1.12
- @solana/wallet-adapter-avana@0.1.11
- @solana/wallet-adapter-avana@0.1.10
- @solana/wallet-adapter-avana@0.1.9
- @solana/wallet-adapter-ant-design@0.11.32
- @solana/wallet-adapter-ant-design@0.11.31
- @solana/wallet-adapter-ant-design@0.11.30
- @solana/wallet-adapter-ant-design@0.11.29
- @solana/wallet-adapter-ant-design@0.11.28
- @solana/wallet-adapter-ant-design@0.11.27
- @solana/wallet-adapter-ant-design@0.11.26
- @solana/wallet-adapter-ant-design@0.11.25
- @solana/wallet-adapter-ant-design@0.11.24
- @solana/wallet-adapter-ant-design@0.11.23
- @solana/wallet-adapter-ant-design@0.11.22
- @solana/wallet-adapter-ant-design@0.11.21
- @solana/wallet-adapter-ant-design@0.11.20
- @solana/wallet-adapter-ant-design@0.11.19
- @solana/wallet-adapter-ant-design@0.11.18
- @solana/wallet-adapter-ant-design@0.11.17
- @solana/wallet-adapter-alpha@0.1.10
- @solana/wallet-adapter-alpha@0.1.9
- @solana/wallet-adapter-alpha@0.1.8
- @solana/wallet-adapter-alpha@0.1.7
- @solana/wallet-adapter-alpha@0.1.6
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,13 +186,13 @@ export class AlphaWalletAdapter extends BaseMessageSignerWalletAdapter { | |
} | ||
} | ||
|
||
async signTransaction(transaction: Transaction): Promise<Transaction> { | ||
async signTransaction<T extends Transaction>(transaction: T): Promise<T> { | ||
try { | ||
const wallet = this._wallet; | ||
if (!wallet) throw new WalletNotConnectedError(); | ||
|
||
try { | ||
return (await wallet.signTransaction(transaction)) || transaction; | ||
return ((await wallet.signTransaction(transaction)) as T) || transaction; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here we have to perform the one ugly bit, where we cast |
||
} catch (error: any) { | ||
throw new WalletSignTransactionError(error?.message, error); | ||
} | ||
|
@@ -202,13 +202,13 @@ export class AlphaWalletAdapter extends BaseMessageSignerWalletAdapter { | |
} | ||
} | ||
|
||
async signAllTransactions(transactions: Transaction[]): Promise<Transaction[]> { | ||
async signAllTransactions<T extends Transaction>(transactions: T[]): Promise<T[]> { | ||
try { | ||
const wallet = this._wallet; | ||
if (!wallet) throw new WalletNotConnectedError(); | ||
|
||
try { | ||
return (await wallet.signAllTransactions(transactions)) || transactions; | ||
return ((await wallet.signAllTransactions(transactions)) as T[]) || transactions; | ||
} catch (error: any) { | ||
throw new WalletSignTransactionError(error?.message, error); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We know that transaction will only ever be
Transaction
now becausesupportedTransactionVersions
is null, but we still have to implement it this way because the interface declares it like this. All this means is that if a subtype ofTransaction
was passed tosignTransaction
, the wallet should return the same subtype. In practice, this doesn't matter because there are no subclasses ofTransaction
in web3.js to worry about.