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

Bump gstd from v1.0.2 to v1.4.0 #20

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github May 9, 2024

Bumps gstd from v1.0.2 to v1.4.0.

Release notes

Sourced from gstd's releases.

v1.4.0

Release v1.4.0 changes

  • Crates versions bumped to "v1.4.0", runtime spec version bumped to 1400 (#3951);
  • Weights of extrinsic and WASM calls were NOT updated, schedule version was bumped to 1400 in order to re-instrument codes with new restrictions check (#3952);

Update requirements

Name Character
JS clients 🔴 Required
Programs ⚪ Insubstantial / 🔴 Required (depending on logic of the program)
Node bin ⚪ Insubstantial

User-space

📚 Refactored gtest's structures Program and System to make their creation a bit more consistent (#3913);

[!NOTE] Some of methods were renamed but kept the same idea, please follow cargo recommendations while migrating. Programs now constructed using builder pattern.


📚 gstd's new macro actor_id! was implemented (#3916);

[!TIP] This macro improves user experience by adding an ability to calculate in compile-time bs58 and ss58 addresses conversion into ActorId. Check out the following code.

- ActorId::from_bs58(address)
+ actor_id!(address)

📚 gring from now on supports Vara-specific addresses instead of basic bs58 ones (#3918);


📚 New approach of building gear programs in Rust were implemented through cargo extension (#3835);

[!TIP] Check out cargo-gbuild extension that allows you to build optimised and valid gear programs (wasm) without gear-wasm-builder and any build script. This tool is about to be improved and extended, but for now is almost the most native approach while working outside cargo workspaces etc.

Runtime

📚 Underlying executor engine for gear protocol had redesigned and improved its stability and speed by new memory representation and type-safe accesses into memory through host calls (#3846; #3922);


📚 Minor bug of freeing all the pages program previously allocated, that they kept stored on-chain, was fixed (#3894);

⚠️ New gear program's code restrictions

[!IMPORTANT] Any program uploaded and that don't fit new requirements will become invalid, so unaccessible. But in general, program authors shouldn't worry - these cases don't match common development flow and can be produced mostly by purpose to break something.

📚 Global and table WASM imports now are forbidden in favour of security and platform stability (#3911);


... (truncated)

Changelog

Sourced from gstd's changelog.

FROM debian:12-slim

ARG RELEASE_VERSION

RUN apt-get update &&
apt-get install -y curl sudo xz-utils &&
rm -rf /var/lib/apt/lists/*

RUN if [ "$RELEASE_VERSION" = "latest" ]; then
curl -L https://github.com/gear-tech/gear/releases/latest/download/gear -o /usr/local/bin/gear &&
chmod +x /usr/local/bin/gear ;
else
curl -L https://github.com/gear-tech/gear/releases/download/$RELEASE_VERSION/gear -o /usr/local/bin/gear &&
chmod +x /usr/local/bin/gear ;
fi

RUN gear --version

CMD ["gear"]

Commits
  • aaadcdb chores(versioning): Bump schedule to force re-instrumentation (#3952)
  • 20aae8c chores(workspace): Bump versions after 1.3.1 release (#3951)
  • 9221f1a refactor(runtime): Dump constants (existential deposit; min voucher duration)...
  • b74b8b2 chores(workspace): Bump crates and runtime spec versions (#3946)
  • dee41ff feat(gear-bank): impl on-finalize transfers; optimise block-production gas pa...
  • 697570f feat(core,pallets): add data segments amount limit checks (#3938)
  • 9ad5f34 refactor(core): Context-dependent memory (#3922)
  • b2f4e17 feat(gtest): search program path from gbuild artifact (#3936)
  • a1f0023 chore(builtin): remove builtin dummy actors (#3940)
  • 4ad22b9 chore(ci): set --repeat=0 for all testing benchmarks run (#3939)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [gstd](https://github.com/gear-tech/gear) from v1.0.2 to v1.4.0.
- [Release notes](https://github.com/gear-tech/gear/releases)
- [Changelog](https://github.com/gear-tech/gear/blob/master/docker/Dockerfile-release)
- [Commits](gear-tech/gear@d02d306...aaadcdb)

---
updated-dependencies:
- dependency-name: gstd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the A4-insubstantial Not too important PR label May 9, 2024
Copy link
Author

dependabot bot commented on behalf of github May 13, 2024

Looks like gstd is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this May 13, 2024
@dependabot dependabot bot deleted the dependabot/cargo/gstd-v1.4.0 branch May 13, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A4-insubstantial Not too important PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants