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

Add Codespaces to the repository #180

Merged
merged 33 commits into from
Jun 6, 2023
Merged

Conversation

hummusonrails
Copy link
Contributor

As discussed with @kianenigma, @PierreBesson and others, this pull request brings the ability to spin up a Codespace instance inside this repository. The PR has two components:

  • devContainer.json: The setup instructions to initialize the instance with
  • postCreateCommand.sh: A custom shell script to install the necessary dependencies for Substrate and the contracts node template on the Codespace instance that is invoked immediately after the instance is created

Once this is merged, we can then include links for folks to create their own Codespace with the contracts node template using their own GitHub account similar to the way Rustlings does do.

@athei
Copy link
Member

athei commented Apr 28, 2023

CI fails because we need to sync against the latest substrate release I think.

@SkymanOne
Copy link
Contributor

Yep. Please merge or rebase master for your branch

@hummusonrails
Copy link
Contributor Author

Thanks both. I'll go ahead and do that early this coming week.

German and others added 9 commits June 5, 2023 20:24
Add the wasm32-unknown-unknown target to the stable build as well
Minor improvements including spelling and fixing broken links.
… node (paritytech#187)

In recent PR
paritytech#182 (comment),
the CI step of running `cargo test` was commented out as a dirty
workaround for the pallet contracts integrity test failure. The test
checks that the pallet configuration is memory safe.

So to make the test pass, we enlarge the runtime memory limit in the
Schedule. We do this because this development node
[allows](https://github.com/paritytech/substrate-contracts-node/blob/8d13ddef3f5c728d1661e79c511a28cef206b298/runtime/src/lib.rs#L367)
larger contract size than it is normally allowed in a production running
node. This should be fine for the development node where possible
security implications could be neglected for the sake of development
convenience. **However, please DO NOT do this to your production node
config, unless you are sure that the limit you're setting is the real
memory limit of your runtime**.
@hummusonrails
Copy link
Contributor Author

@athei and @SkymanOne This is now ready for a review again. 🙏🏻

@hummusonrails hummusonrails merged commit d96a52d into paritytech:main Jun 6, 2023
@ascjones ascjones mentioned this pull request Jun 8, 2023
ascjones added a commit that referenced this pull request Jun 8, 2023
#180 upgraded to
[polkadot-v0.9.42](https://github.com/paritytech/substrate/tree/polkadot-v0.9.42).

This PR bumps the version to `0.26.0` in preparation for a release tag.
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.

5 participants