-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,355 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@turnkey/solana": minor | ||
--- | ||
|
||
Support awaiting consensus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@turnkey/ethers": minor | ||
--- | ||
|
||
Support awaiting consensus | ||
|
||
- Add a few new helper functions: | ||
- `serializeSignature` serializes a raw signature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"@turnkey/viem": minor | ||
--- | ||
|
||
Support awaiting consensus and improve error handling | ||
|
||
- Add new error types that extend `BaseError` (and thus implement `error.walk`) | ||
- `TurnkeyConsensusNeededError` wraps consensus-related errors | ||
- `TurnkeyActivityError` wraps base Turnkey errors | ||
- Add a few new helper functions: | ||
- `serializeSignature` serializes a raw signature | ||
- `isTurnkeyActivityConsensusNeededError` and `isTurnkeyActivityError` use `error.walk` to check the type of a Viem error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
"@turnkey/sdk-browser": minor | ||
"@turnkey/sdk-server": minor | ||
--- | ||
|
||
Support activity polling (e.g. for awaiting consensus) | ||
|
||
- [Breaking] Update the `activityPoller` parameter for configuring polling behavior | ||
- Polling continues until either a max number of retries is reached, or if the activity hits a terminal status | ||
|
||
The shape of the parameter has gone from: | ||
|
||
``` | ||
{ | ||
duration: number; | ||
timeout: number; | ||
} | ||
``` | ||
|
||
to | ||
|
||
``` | ||
{ | ||
intervalMs: number; | ||
numRetries: number; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"@turnkey/http": minor | ||
--- | ||
|
||
Add new helpers and update types and errors | ||
|
||
- `getSignatureFromActivity` returns the signature corresponding to a completed activity | ||
- `getSignedTransactionFromActivity` returns the signed transaction corresponding to a completed activity | ||
- `assertActivityCompleted` checks the state of an activity and throws an error if the activity either requires consensus or is otherwise not yet completed | ||
- `TERMINAL_ACTIVITY_STATUSES` is a const containing all terminal activity statuses. Useful for checking on an activity | ||
- `TurnkeyActivityError` now uses `undefined` instead of `null` | ||
- Export some additional types: `TActivity`, `TActivityId`, `TActivityStatus`, `TActivityType` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.