-
Notifications
You must be signed in to change notification settings - Fork 480
Update CONTRIBUTING.md: add Backwards Compatibility guide and update questions channels #1304
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
Changes from 1 commit
ffd5b96
553285a
4429495
b3e381d
1c57c9b
728d879
a32251c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,6 +9,7 @@ First of all, thank you for taking your time to contribute to ink! | |||||
| * [During Development](#during-development) | ||||||
| * [Commits](#commits) | ||||||
| * [Checklist](#checklist) | ||||||
| * [Backwards Compatibility](#backwards-compatibility) | ||||||
| * [Continuous Integraton](#continuous-integration) | ||||||
| * [Issues and Pull Requests](#issues-and-pull-requests) | ||||||
| * [Issues](#issues) | ||||||
|
|
@@ -64,6 +65,22 @@ Following these will ensure that your pull request is going to be accepted. | |||||
| This might seem pedantic but we believe that in essence this is going to improve overall comment and documentation quality. | ||||||
| 1. If possible try to sign your commits, e.g. using GPG keys. For more information about this go [here](https://help.github.com/en/articles/signing-commits). | ||||||
|
|
||||||
| ### Backwards Compatibility | ||||||
|
|
||||||
| ink! and pallet_contracts are the projects under active development. As contracts API functions evolve to their newer versions, we need to introduce them in ink! in a way that still keeps current *MAJOR* ink! version compatible with elder substrate nodes built with the pallet_contracts version having not this new functionality. | ||||||
|
||||||
| ink! and pallet_contracts are the projects under active development. As contracts API functions evolve to their newer versions, we need to introduce them in ink! in a way that still keeps current *MAJOR* ink! version compatible with elder substrate nodes built with the pallet_contracts version having not this new functionality. | |
| ink! and pallet_contracts are the projects under active development. As contracts API functions (denoted by the `seal_*` prefix) evolve to their newer versions, we need to introduce them in ink! in a way that still keeps current *MAJOR* ink! version compatible with older Substrate nodes. These older nodes may have a version of the Contracts pallet which does not support new seal APIs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left it to be Andrew's variant for the sake of concise
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Imagine there is a `[seal0] function()` in pallet\_contracts API and our `ink_env::function()` uses its import under the hood. | |
| Imagine there is a `[seal0] function()` in the Contract pallet API and our `ink_env::function()` imports it under the hood. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well function does not import, it uses an imported one
agryaznov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mark all of these as 1, the markdown render will handle the numbering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, this is an optional feature, btw it will work so even if you mark it with a randomly assigned set of integer numbers as well. However, I think it's good to have it numbered properly in the source itself.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 3. Always add the `# Compatibility` section to the docs comment of the new function. | |
| 3. Add a `# Compatibility` section to the docs comment of the new function. |
Uh oh!
There was an error while loading. Please reload this page.