Skip to content
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

web SDK v8 #385

Merged
merged 29 commits into from
Sep 10, 2024
Merged

web SDK v8 #385

merged 29 commits into from
Sep 10, 2024

Conversation

soerenbf
Copy link
Collaborator

@soerenbf soerenbf commented Aug 28, 2024

IMPORTANT

This should not be merged until the concordium node v7.0 has been released for mainnet. The release schedule below should be followed

SDK v8 Release schedule

  • @concordium/web-sdk@alpha = local/stagenet node 7.0 release
  • @concordium/web-sdk@latest = as soon as this has been merged

Changes

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

bisgardo and others added 10 commits April 26, 2024 11:54
#233)

## Purpose

Ensure that `getEmbeddedSchema` (on `ConcordiumGRPCClient`) is able to resolve legacy schemas (i.e. schemas without embedded versions).

Also make parsing of contract schema more precise based by using the module version information that is now exposed by the gRPC client. This in turn also documents the relationship between module and schema versions.

## Changes

The module version is now used to determine what custom sections to look for. Added comments explain the expected results.

The extraction code is migrated from the dapp-library [`@concordium/react-components`](https://github.com/Concordium/concordium-dapp-libraries/blob/a045f3b8bc11c7389190c789072f313686b6c639/packages/react-components/src/useModuleSchemaRpc.ts). Specifically, the contents of function `getEmbeddedModuleSchema` was replaced with the contents of `findSchema` and its helper function `findCustomSections` was added and adjusted to use the SDK types.

Finally, `getEmbeddedModuleSchema` was made non-async and `wasmToSchema` removed because it was nothing but a more limited version of `getEmbeddedModuleSchema`.

Addresses Concordium/concordium-dapp-libraries#66.
@soerenbf soerenbf mentioned this pull request Aug 28, 2024
5 tasks
@soerenbf soerenbf marked this pull request as ready for review August 29, 2024 07:51
@soerenbf soerenbf self-assigned this Aug 29, 2024
@soerenbf soerenbf requested a review from limemloh September 9, 2024 11:54
@soerenbf
Copy link
Collaborator Author

soerenbf commented Sep 9, 2024

Release schedule has been more or less removed as backwards compatibility was implemented in #389 to support the browser wallet in conformance to node version 7.

packages/sdk/src/types/VersionedModuleSource.ts Outdated Show resolved Hide resolved
packages/sdk/CHANGELOG.md Outdated Show resolved Hide resolved
packages/sdk/README.md Outdated Show resolved Hide resolved
@soerenbf soerenbf merged commit 48ecde2 into main Sep 10, 2024
20 checks passed
@soerenbf soerenbf deleted the release/web-sdk/8 branch September 10, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants