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

Substrate: Support contracts node v0.22 #1080

Merged

Conversation

xermicus
Copy link
Contributor

@xermicus xermicus commented Nov 24, 2022

  • Change the linker to use stabilized APIs for any remaining __unstable__
  • Update integration tests:
    • Introduce a helper for the (currently) broken contracts query API
    • Use WeightV2 for gas limits
    • Use estimated gas from dry run instead of hardcoded value
    • Compile test contracts in parallel
  • Updates to the latest contracts CI image for pallet contracts v0.22.1. I'm aware that this is not ideal but it's what's available right now. There shouldn't be a breaking release soon, we can switch to production as soon as its here.

xermicus and others added 19 commits November 23, 2022 17:14
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: xermicus <cyrill@parity.io>
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
@xermicus xermicus marked this pull request as ready for review November 24, 2022 21:05
@xermicus xermicus requested a review from seanyoung as a code owner November 24, 2022 21:05
@xermicus xermicus requested a review from LucasSte November 24, 2022 21:05
@xermicus xermicus added this to the ink! v4 compatibility milestone Nov 24, 2022
@xermicus xermicus changed the title Substrate support contracts node v0 22 Substrate: Support contracts node v0.22 Nov 24, 2022
@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "tsc; ts-mocha -t 20000 *.spec.ts",
"build": "solang compile *.sol test/*.sol --target substrate -v"
"build": "parallel solang compile -v --target substrate ::: *.sol test/*.sol"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make solang parallel at some point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I imagine compiling all contracts in parallel should be easy to do

@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "tsc; ts-mocha -t 20000 *.spec.ts",
"build": "solang compile *.sol test/*.sol --target substrate -v"
"build": "parallel solang compile -v --target substrate ::: *.sol test/*.sol"
},
"author": "Sean Young <sean@mess.org>",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This really needs updating, you could add your name here (I think it has to be contributors rather than author.

@xermicus xermicus merged commit 46c2822 into hyperledger-solang:main Nov 25, 2022
@xermicus xermicus deleted the substrate-support-contracts-node-v0_22 branch June 6, 2023 08:36
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