Tags: thirdweb-dev/engine
Tags
Support hex transaction types in fromTransactionType (#861) ## Changes - Linear: https://linear.app/thirdweb/issue/INF-171/ - Here is the problem being solved. - Here are the changes made. ## How this PR will be tested - [ ] Open the dashboard and click X. Result: A modal should appear. - [ ] Call the /foo/bar API. Result: Returns 200 with "baz" in the response body. ## Output (Example: Screenshot/GIF for UI changes, cURL output for API changes) <!-- start pr-codex --> --- ## PR-Codex overview This PR modifies the `src/shared/utils/sdk.ts` file by enhancing the `fromTransactionType` function and removing the `toTransactionType` function, streamlining transaction type handling. ### Detailed summary - Added `hexToNumber` and `isHex` imports from `thirdweb`. - Updated `fromTransactionType` to convert hex transaction types using `hexToNumber`. - Removed the entire `toTransactionType` function. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
update thirdweb SDK (#856) ## Changes - Linear: https://linear.app/thirdweb/issue/INF-171/ - Here is the problem being solved. - Here are the changes made. ## How this PR will be tested - [ ] Open the dashboard and click X. Result: A modal should appear. - [ ] Call the /foo/bar API. Result: Returns 200 with "baz" in the response body. ## Output (Example: Screenshot/GIF for UI changes, cURL output for API changes) <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new `Config` interface in the `abitype` module, updates several package versions in `package.json`, and modifies various TypeScript files to use types from the `ox` module instead of `abitype`. It also improves type definitions in several functions. ### Detailed summary - Added `Config` interface in `abitype` module. - Updated package versions in `package.json`: - `ox` from `^0.6.9` to `0.6.9` - `thirdweb` from `^5.83.0` to `5.89.0` - `viem` from `^2.21.54` to `2.22.17` - Changed imports from `abitype` to `ox` in multiple files. - Updated type definitions for `AbiEvent` and `AbiFunction` in various functions. - Improved type safety in function parameters and return types across several files. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
PreviousNext