|
1 | 1 | # thirdweb
|
2 | 2 |
|
| 3 | +## 5.68.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#5354](https://github.com/thirdweb-dev/js/pull/5354) [`a1fc436`](https://github.com/thirdweb-dev/js/commit/a1fc436a92eb5fccbbcf5b3e8b8fbea3343d14e0) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Adds EIP1193 adapters that allow conversion between Thirdweb wallets and EIP-1193 providers: |
| 8 | + |
| 9 | + - `EIP1193.fromProvider()`: Creates a Thirdweb wallet from any EIP-1193 compatible provider (like MetaMask, WalletConnect) |
| 10 | + - `EIP1193.toProvider()`: Converts a Thirdweb wallet into an EIP-1193 provider that can be used with any web3 library |
| 11 | + |
| 12 | + Key features: |
| 13 | + |
| 14 | + - Full EIP-1193 compliance for seamless integration |
| 15 | + - Handles account management (connect, disconnect, chain switching) |
| 16 | + - Supports all standard Ethereum JSON-RPC methods |
| 17 | + - Comprehensive event system for state changes |
| 18 | + - Type-safe interfaces with full TypeScript support |
| 19 | + |
| 20 | + Examples: |
| 21 | + |
| 22 | + ```ts |
| 23 | + // Convert MetaMask's provider to a Thirdweb wallet |
| 24 | + const wallet = EIP1193.fromProvider({ |
| 25 | + provider: window.ethereum, |
| 26 | + walletId: "io.metamask", |
| 27 | + }); |
| 28 | + |
| 29 | + // Use like any other Thirdweb wallet |
| 30 | + const account = await wallet.connect({ |
| 31 | + client: createThirdwebClient({ clientId: "..." }), |
| 32 | + }); |
| 33 | + |
| 34 | + // Convert a Thirdweb wallet to an EIP-1193 provider |
| 35 | + const provider = EIP1193.toProvider({ |
| 36 | + wallet, |
| 37 | + chain: ethereum, |
| 38 | + client: createThirdwebClient({ clientId: "..." }), |
| 39 | + }); |
| 40 | + |
| 41 | + // Use with any EIP-1193 compatible library |
| 42 | + const accounts = await provider.request({ |
| 43 | + method: "eth_requestAccounts", |
| 44 | + }); |
| 45 | + |
| 46 | + // Listen for events |
| 47 | + provider.on("accountsChanged", (accounts) => { |
| 48 | + console.log("Active accounts:", accounts); |
| 49 | + }); |
| 50 | + ``` |
| 51 | + |
| 52 | +### Patch Changes |
| 53 | + |
| 54 | +- [#5335](https://github.com/thirdweb-dev/js/pull/5335) [`1e7e32f`](https://github.com/thirdweb-dev/js/commit/1e7e32f2cbb23dad48eda6e1224c09df89fc249d) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Added global transaction decorator, better eip712 transaction support |
| 55 | + |
| 56 | +- [#5349](https://github.com/thirdweb-dev/js/pull/5349) [`46d0b4b`](https://github.com/thirdweb-dev/js/commit/46d0b4bdc050b92886cfea5623a08aa8f7272006) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Use maxFeePerGas for Pay gas cost estimations in transaction flow |
| 57 | + |
| 58 | +- [#5366](https://github.com/thirdweb-dev/js/pull/5366) [`ef56304`](https://github.com/thirdweb-dev/js/commit/ef563041954958a6ae6fa58a4e2c1edd7ea88940) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds ox for internal utilities |
| 59 | + |
| 60 | +- [#5390](https://github.com/thirdweb-dev/js/pull/5390) [`6771cfe`](https://github.com/thirdweb-dev/js/commit/6771cfed62aedce6ccb22e3c092f117a1b7e4242) Thanks [@ElasticBottle](https://github.com/ElasticBottle)! - fix enclave transaction signing for transactions with 0 maxPriorityFeePerGas |
| 61 | + |
| 62 | +- [#5343](https://github.com/thirdweb-dev/js/pull/5343) [`5de5418`](https://github.com/thirdweb-dev/js/commit/5de541878cfd4102baa049a0d84ce9911746ac6c) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds chain ID to tracked analytics |
| 63 | + |
3 | 64 | ## 5.67.0
|
4 | 65 |
|
5 | 66 | ### Minor Changes
|
|
0 commit comments