-
Notifications
You must be signed in to change notification settings - Fork 544
Version Packages #7207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version Packages #7207
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,5 +1,106 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# thirdweb | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
## 5.102.0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
### Minor Changes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- [#7190](https://github.com/thirdweb-dev/js/pull/7190) [`861e623`](https://github.com/thirdweb-dev/js/commit/861e623a1b7519bcac09c0c6d975cad2c0c5be4f) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Enhanced Engine functionality with server wallet management, search transactions and batch transaction support: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Added `Engine.createServerWallet()` to create a new server wallet with a custom label | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
```ts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
import { Engine } from "thirdweb"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const serverWallet = await Engine.createServerWallet({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
client, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
label: "My Server Wallet", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
console.log(serverWallet.address); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
console.log(serverWallet.smartAccountAddress); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Added `Engine.getServerWallets()` to list all existing server wallets | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
```ts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
import { Engine } from "thirdweb"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const serverWallets = await Engine.getServerWallets({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
client, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
console.log(serverWallets); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Added `Engine.searchTransactions()` to search for transactions by various filters (id, chainId, from address, etc.) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
```ts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Search by transaction IDs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const transactions = await Engine.searchTransactions({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
client, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
filters: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
field: "id", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
values: ["1", "2", "3"], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Search by chain ID and sender address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const transactions = await Engine.searchTransactions({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
client, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
filters: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
filters: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
field: "from", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
values: ["0x1234567890123456789012345678901234567890"], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
field: "chainId", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
values: ["8453"], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
operation: "AND", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pageSize: 100, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
page: 0, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Added `serverWallet.enqueueBatchTransaction()` to enqueue multiple transactions in a single batch | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
```ts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Prepare multiple transactions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const transaction1 = claimTo({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contract, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
to: firstRecipient, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
quantity: 1n, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const transaction2 = claimTo({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contract, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
to: secondRecipient, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
quantity: 1n, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Enqueue as a batch | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const { transactionId } = await serverWallet.enqueueBatchTransaction({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
transactions: [transaction1, transaction2], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Wait for batch completion | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const { transactionHash } = await Engine.waitForTransactionHash({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
client, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
transactionId, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+70
to
+95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing changelog entry for Please insert a bullet, for example: - Added `serverWallet.enqueueBatchTransaction()` to enqueue multiple transactions in a single batch
+ - Added `Engine.waitForTransactionHash()` to await batch transaction completion by transaction ID
- Improved server wallet transaction handling with better error reporting 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Improved server wallet transaction handling with better error reporting | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
### Patch Changes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Updated dependencies [[`861e623`](https://github.com/thirdweb-dev/js/commit/861e623a1b7519bcac09c0c6d975cad2c0c5be4f)]: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- @thirdweb-dev/engine@3.0.3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
## 5.101.2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
### Patch Changes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,5 +1,7 @@ | ||||||||||||||
# @thirdweb-dev/wagmi-adapter | ||||||||||||||
|
||||||||||||||
## 0.2.86 | ||||||||||||||
|
||||||||||||||
Comment on lines
+3
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Missing changelog entry details for 0.2.86 Please populate the ## 0.2.86
+### Patch Changes
+- Bump `@thirdweb-dev/engine` to 3.0.3 for Engine API updates
+- Update compatibility with `@thirdweb-dev/thirdweb` v5.102.0 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||
## 0.2.85 | ||||||||||||||
|
||||||||||||||
## 0.2.84 | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix changelog header to reference the correct package
The header currently reads
# @thirdweb-dev/insight
but this is the changelog for the Engine package. It should be updated to# @thirdweb-dev/engine
.Apply this diff:
📝 Committable suggestion
🤖 Prompt for AI Agents