|
1 | 1 | # thirdweb
|
2 | 2 |
|
| 3 | +## 5.84.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#5889](https://github.com/thirdweb-dev/js/pull/5889) [`7a3dff0`](https://github.com/thirdweb-dev/js/commit/7a3dff01cd4ef1b20b783312f4cb755dd2fddcbd) Thanks [@ElasticBottle](https://github.com/ElasticBottle)! - Exposes autoConnect as a standalone function for use outside of react. |
| 8 | + |
| 9 | + ```tsx |
| 10 | + import { autoConnect } from "thirdweb/wallets"; |
| 11 | + |
| 12 | + const autoConnected = await autoConnect({ |
| 13 | + client, |
| 14 | + onConnect: (wallet) => { |
| 15 | + console.log("wallet", wallet); /// wallet that is have been auto connected. |
| 16 | + }, |
| 17 | + }); |
| 18 | + console.log("isAutoConnected", isAutoConnected); // true or false |
| 19 | + ``` |
| 20 | + |
| 21 | +- [#5947](https://github.com/thirdweb-dev/js/pull/5947) [`d1c03b0`](https://github.com/thirdweb-dev/js/commit/d1c03b0cbc524d39d827f1e0d48f3532a837efb0) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Introducing `engineAccount()` for backend usage |
| 22 | + |
| 23 | + You can now use `engineAccount()` on the backend to create an account that can send transactions via your engine instance. |
| 24 | + |
| 25 | + This lets you use the full catalog of thirdweb SDK functions and extensions on the backend, with the performance, reliability, and monitoring of your engine instance. |
| 26 | + |
| 27 | + ```ts |
| 28 | + // get your engine url, auth token, and wallet address from your engine instance on the dashboard |
| 29 | + const engine = engineAccount({ |
| 30 | + engineUrl: process.env.ENGINE_URL, |
| 31 | + authToken: process.env.ENGINE_AUTH_TOKEN, |
| 32 | + walletAddress: process.env.ENGINE_WALLET_ADDRESS, |
| 33 | + }); |
| 34 | + |
| 35 | + // Now you can use engineAcc to send transactions, deploy contracts, etc. |
| 36 | + // For example, you can prepare extension functions: |
| 37 | + const tx = await claimTo({ |
| 38 | + contract: getContract({ client, chain, address: "0x..." }), |
| 39 | + to: "0x...", |
| 40 | + tokenId: 0n, |
| 41 | + quantity: 1n, |
| 42 | + }); |
| 43 | + |
| 44 | + // And then send the transaction via engine |
| 45 | + // this will automatically wait for the transaction to be mined and return the transaction hash |
| 46 | + const result = await sendTransaction({ |
| 47 | + account: engine, // forward the transaction to your engine instance |
| 48 | + transaction: tx, |
| 49 | + }); |
| 50 | + |
| 51 | + console.log(result.transactionHash); |
| 52 | + ``` |
| 53 | + |
| 54 | +- [#5948](https://github.com/thirdweb-dev/js/pull/5948) [`b10f306`](https://github.com/thirdweb-dev/js/commit/b10f306fba2140cf7a702d4fc5c55c316986a6b6) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Introducing Nebula API |
| 55 | + |
| 56 | + You can now chat with Nebula and ask it to execute transactions with your wallet. |
| 57 | + |
| 58 | + Ask questions about real time blockchain data. |
| 59 | + |
| 60 | + ```ts |
| 61 | + import { Nebula } from "thirdweb/ai"; |
| 62 | + |
| 63 | + const response = await Nebula.chat({ |
| 64 | + client: TEST_CLIENT, |
| 65 | + prompt: |
| 66 | + "What's the symbol of this contract: 0xe2cb0eb5147b42095c2FfA6F7ec953bb0bE347D8", |
| 67 | + context: { |
| 68 | + chains: [sepolia], |
| 69 | + }, |
| 70 | + }); |
| 71 | + |
| 72 | + console.log("chat response:", response.message); |
| 73 | + ``` |
| 74 | + |
| 75 | + Ask it to execute transactions with your wallet. |
| 76 | + |
| 77 | + ```ts |
| 78 | + import { Nebula } from "thirdweb/ai"; |
| 79 | + |
| 80 | + const wallet = createWallet("io.metamask"); |
| 81 | + const account = await wallet.connect({ client }); |
| 82 | + |
| 83 | + const result = await Nebula.execute({ |
| 84 | + client, |
| 85 | + prompt: "send 0.0001 ETH to vitalik.eth", |
| 86 | + account, |
| 87 | + context: { |
| 88 | + chains: [sepolia], |
| 89 | + }, |
| 90 | + }); |
| 91 | + |
| 92 | + console.log("executed transaction:", result.transactionHash); |
| 93 | + ``` |
| 94 | + |
| 95 | +### Patch Changes |
| 96 | + |
| 97 | +- [#5926](https://github.com/thirdweb-dev/js/pull/5926) [`4b5661b`](https://github.com/thirdweb-dev/js/commit/4b5661b9817d1e0d67a8574d7c5931d3e892a006) Thanks [@MananTank](https://github.com/MananTank)! - Export `toEventSelector` utility function from "thirdweb/utils" |
| 98 | + |
| 99 | +- [#5923](https://github.com/thirdweb-dev/js/pull/5923) [`42a313f`](https://github.com/thirdweb-dev/js/commit/42a313f3b2d89696d5374e5a705e9f144bf46ebe) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Fix deploy version for published contracts |
| 100 | + |
| 101 | +- [#5924](https://github.com/thirdweb-dev/js/pull/5924) [`7fb5ce1`](https://github.com/thirdweb-dev/js/commit/7fb5ce1cc3af8bc9d99fef52018d3e1c7b558eaa) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Ensure resetting deploy flag on bundler errors |
| 102 | + |
| 103 | +- [#5937](https://github.com/thirdweb-dev/js/pull/5937) [`0e2b3df`](https://github.com/thirdweb-dev/js/commit/0e2b3df42aee57f30b7e8c32dbf034f5deb37303) Thanks [@MananTank](https://github.com/MananTank)! - Add `isValidENSName` utility function for checking if a string is a valid ENS name. It does not check if the name is actually registered, it only checks if the string is in a valid format. |
| 104 | + |
| 105 | + ```ts |
| 106 | + import { isValidENSName } from "thirdweb/utils"; |
| 107 | + |
| 108 | + isValidENSName("thirdweb.eth"); // true |
| 109 | + isValidENSName("foo.bar.com"); // true |
| 110 | + isValidENSName("foo"); // false |
| 111 | + ``` |
| 112 | + |
| 113 | +- [#5790](https://github.com/thirdweb-dev/js/pull/5790) [`e331e43`](https://github.com/thirdweb-dev/js/commit/e331e433ac90920fc3bd710d8aa00bc9ec03fa22) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Migrated underlying functionality to Ox |
| 114 | + |
| 115 | +- [#5914](https://github.com/thirdweb-dev/js/pull/5914) [`c5c6f9d`](https://github.com/thirdweb-dev/js/commit/c5c6f9d7415a438ddb0823764884d9c77b687163) Thanks [@MananTank](https://github.com/MananTank)! - Do not prompt user for signing message for SIWE auth in Connect UI for Ecosystem wallets |
| 116 | + |
3 | 117 | ## 5.83.1
|
4 | 118 |
|
5 | 119 | ### Patch Changes
|
|
0 commit comments