Skip to content

Commit 3645526

Browse files
Merge branch 'main' into winston/tool-2884-backend-server-wallets
2 parents a21ff2c + 2d996cc commit 3645526

34 files changed

+760
-94
lines changed

.changeset/polite-trains-kick.md

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

apps/dashboard/next.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,18 @@ function getConfig(): NextConfig {
192192
...baseNextConfig,
193193
experimental: {
194194
webpackBuildWorker: true,
195+
webpackMemoryOptimizations: true,
195196
},
196197
// @ts-expect-error - this is a valid option
197-
webpack: (config, { dev }) => {
198-
if (config.cache && !dev) {
198+
webpack: (config) => {
199+
if (config.cache) {
199200
config.cache = Object.freeze({
200201
type: "filesystem",
201202
maxMemoryGenerations: 0,
202203
});
204+
config.cache = Object.freeze({
205+
type: "memory",
206+
});
203207
}
204208
config.externals.push("pino-pretty");
205209
config.module = {

apps/dashboard/src/components/contract-components/contract-publish-form/abi-selector.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ export const AbiSelector: React.FC<AbiSelectorProps> = ({
3232
options={options}
3333
defaultValue={options.find((o) => o.value === defaultValue)}
3434
chakraStyles={{
35-
// @ts-expect-error - this works fine
3635
container: (provided) => ({
3736
...provided,
3837
width: "full",
3938
}),
4039
}}
4140
value={options.find((o) => o.value === value)}
42-
// @ts-expect-error - this works fine
4341
onChange={(selectedFn) => {
4442
if (selectedFn) {
4543
onChange((selectedFn as { label: string; value: string }).value);

apps/dashboard/src/components/contract-components/published-contract/markdown-renderer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const MarkdownRenderer: React.FC<{
9191

9292
a: (props) => (
9393
<Link
94-
href={props.href}
94+
href={props.href ?? "#"}
9595
target="_blank"
9696
{...cleanedProps(props)}
9797
className="mt-4 text-link-foreground hover:text-foreground"
@@ -103,6 +103,7 @@ export const MarkdownRenderer: React.FC<{
103103
if (code?.disableCodeHighlight) {
104104
return (
105105
<div className="my-4">
106+
{/* @ts-expect-error - TODO: fix this */}
106107
<PlainTextCodeBlock
107108
{...cleanedProps(props)}
108109
code={onlyText(props.children).trim()}
@@ -114,6 +115,7 @@ export const MarkdownRenderer: React.FC<{
114115
return (
115116
<div className="my-4">
116117
<CodeClient
118+
// @ts-expect-error - TODO: fix this
117119
lang={language}
118120
{...cleanedProps(props)}
119121
code={onlyText(props.children).trim()}

apps/dashboard/src/components/onboarding/ApplyForOpCreditsForm.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ export const ApplyForOpCreditsForm: React.FC<ApplyForOpCreditsFormProps> = ({
191191
}))}
192192
placeholder="Select industry"
193193
isRequired
194-
// @ts-expect-error - this works fine
195194
onChange={(value) => {
196195
if (value?.value) {
197196
form.setValue("superchain_verticals", value.value);
@@ -222,14 +221,10 @@ export const ApplyForOpCreditsForm: React.FC<ApplyForOpCreditsFormProps> = ({
222221
label: chain === "Optimism" ? "OP Mainnet" : chain,
223222
value: chain,
224223
}))}
225-
// @ts-expect-error - this works fine
226224
onChange={(values) => {
227225
form.setValue(
228226
"superchain_chain",
229-
values
230-
// @ts-expect-error - this works fine
231-
.map(({ value }) => value)
232-
.join(";"),
227+
values.map(({ value }) => value).join(";"),
233228
);
234229
}}
235230
isMulti

packages/thirdweb/CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# thirdweb
22

3+
## 5.82.0
4+
5+
### Minor Changes
6+
7+
- [#5801](https://github.com/thirdweb-dev/js/pull/5801) [`429e112`](https://github.com/thirdweb-dev/js/commit/429e1127b27354386cd2be1838c1b9e25c956117) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Feature: Adds beta support for EIP-7702 authorization lists
8+
9+
```ts
10+
import {
11+
prepareTransaction,
12+
sendTransaction,
13+
signAuthorization,
14+
} from "thirdweb";
15+
16+
const authorization = await signAuthorization({
17+
request: {
18+
address: "0x...",
19+
chainId: 911867,
20+
nonce: 100n,
21+
},
22+
account: myAccount,
23+
});
24+
25+
const transaction = prepareTransaction({
26+
chain: ANVIL_CHAIN,
27+
client: TEST_CLIENT,
28+
value: 100n,
29+
to: TEST_WALLET_B,
30+
authorizationList: [authorization],
31+
});
32+
33+
const res = await sendTransaction({
34+
account,
35+
transaction,
36+
});
37+
```
38+
39+
- [#5845](https://github.com/thirdweb-dev/js/pull/5845) [`b058f68`](https://github.com/thirdweb-dev/js/commit/b058f688a751486de1cffdcd5db4c846db6bb2ab) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Feature: Adds `deploySmartAccount` function to force the deployment of a smart account.
40+
41+
```ts
42+
const account = await deploySmartAccount({
43+
smartAccount,
44+
chain,
45+
client,
46+
accountContract,
47+
});
48+
```
49+
50+
Fix: Uses 1271 signatures if the smart account is already deployed.
51+
352
## 5.81.0
453

554
### Minor Changes

packages/thirdweb/biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"rules": {
2424
"nursery": {
2525
"noProcessEnv": "off"
26+
},
27+
"style": {
28+
"noUnusedTemplateLiteral": "off"
2629
}
2730
}
2831
}

packages/thirdweb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thirdweb",
3-
"version": "5.81.0",
3+
"version": "5.82.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

packages/thirdweb/src/adapters/ethers5.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ export async function toEthersSigner(
483483

484484
const response: ethers5.ethers.providers.TransactionResponse = {
485485
...serialized,
486-
nonce: serialized.nonce ?? 0,
486+
nonce: Number(serialized.nonce ?? 0),
487487
from: account.address,
488488
maxFeePerGas: serialized.maxFeePerGas
489489
? ethers.BigNumber.from(serialized.maxFeePerGas)

packages/thirdweb/src/exports/thirdweb.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,4 +303,12 @@ export {
303303
verifyTypedData,
304304
} from "../auth/verify-typed-data.js";
305305

306+
/**
307+
* EIP-7702
308+
*/
309+
export type {
310+
AuthorizationRequest,
311+
SignedAuthorization,
312+
} from "../transaction/actions/eip7702/authorization.js";
313+
export { signAuthorization } from "../transaction/actions/eip7702/authorization.js";
306314
export { deploySmartAccount } from "../wallets/smart/lib/signing.js";

0 commit comments

Comments
 (0)