feat(deps): upgrade to algosdk v3 and algokit-utils v8#330
Merged
Conversation
Migrate to latest versions of core dependencies: - algosdk v3 - @algorandfoundation/algokit-utils v8 - @txnlab/use-wallet-react v4 Update code to use new APIs: - Use `toString()` for address handling - Update types to use `algosdk.modelsv2.*` - Refactor balance calculations to use `BigInt` - Update transaction signing and simulation interfaces
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…ions for algosdk v3 changes. Also update to latest algokit-client-generator and commit latest generated clients
Update test fixtures and interfaces to match the actual Algorand REST API format rather than the SDK v3 types. While migrating to algosdk v3.0.0, the mock data should continue using kebab-case and JSON format as returned by the REST API. Also fix `Application` approval/clear program properties in fixtures to use base64 strings instead of Uint8Arrays to match actual node responses.
- Remove redundant `BigInt` conversion since `entryRound` is already a bigint type - Fix import sort order
pbennett
reviewed
Dec 5, 2024
Remove custom `makeEmptyTransactionSigner` implementation and `AuthAddressProvider` since algosdk now correctly handles simulate calls from rekeyed accounts. This was originally added as a workaround in #89 but is no longer needed after algorand/go-algorand#5942.
Remove `makeEmptyTransactionSigner` in favor of `skipSignatures` flag for simulate transactions. This aligns with updated algosdk best practices for handling simulate calls without signatures (from normal or rekeyed accounts).
Upgraded @algorandfoundation/algokit-utils to 8.0.3 across all packages. Updated @algorandfoundation/algokit-client-generator to 4.0.6 and @algorandfoundation/tealscript to 0.106.1 in contracts for better compatibility
Updated multiple dependencies in go.mod and go.sum, including `go-algorand-sdk` to v2.7.0, `prometheus/client_golang` to v1.20.5, and `crypto` to v0.31.0.
- @blockshake/defly-connect from 1.1.6 to 1.2.1 - @perawallet/connect from 1.3.5 to 1.4.1 - @txnlab/use-wallet-react from 4.0.0-beta.2 to 4.0.0-beta.4
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR upgrades core dependencies to their latest major versions:
algosdkv3,@algorandfoundation/algokit-utilsv8, and@txnlab/use-wallet-reactv4. These updates require code changes to handle breaking changes in the SDKs, particularly around address handling and REST API types.Details
algosdk.modelsv2.*instead of custom interfacesunitNameinstead ofunit-name)toString()for Algorand address handlingAuthAddressProviderand custom transaction signer now that rekeyed account simulation is fixed