Skip to content

Commit f05f45b

Browse files
[Engine] Update server wallet config types for EOA and EIP-7702 execution
1 parent 31d7173 commit f05f45b

File tree

7 files changed

+268
-44
lines changed

7 files changed

+268
-44
lines changed

.changeset/large-hornets-scream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/engine": patch
3+
---
4+
5+
Update to latest API

.changeset/whole-ducks-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Update server wallet config types for 7702 and EOA execution

packages/engine/src/client/sdk.gen.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,13 @@ export const signTypedData = <ThrowOnError extends boolean = false>(
169169

170170
/**
171171
* Read Contract
172-
* Read from multiple smart contracts using multicall
172+
* Read from smart contracts with intelligent execution strategy:
173+
* - Single calls: Always executed directly for efficiency
174+
* - Multiple calls: Uses multicall by default, or direct calls if disabled
175+
* - Failed preparations: Returns preparation errors directly
176+
*
177+
* If multicall is not specified, it will be used by default. In case of multicall related errors, engine will fallback to direct calls.
178+
* Only in the case where multicall is explicitly enabled, engine will not fallback to direct calls.
173179
*/
174180
export const readContract = <ThrowOnError extends boolean = false>(
175181
options: Options<ReadContractData, ThrowOnError>,
@@ -268,8 +274,8 @@ export const listAccounts = <ThrowOnError extends boolean = false>(
268274
};
269275

270276
/**
271-
* Create Server Wallet
272-
* Create a new engine server wallet. This is a helper route for creating a new EOA with your KMS provider, provided as a convenient alternative to creating an EOA directly with your KMS provider. Your KMS credentials are not stored, and usage of created accounts require your KMS credentials to be sent with requests.
277+
* Get or Create Server Wallet
278+
* Create a new engine server wallet or retrieve an existing one. If the EOA already exists for the given label, it will be returned without creating a new one.
273279
*/
274280
export const createAccount = <ThrowOnError extends boolean = false>(
275281
options?: Options<CreateAccountData, ThrowOnError>,

0 commit comments

Comments
 (0)