This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
contracts: Release as v3.0.0 and add reserved field to ContractInfoOf
#8175
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4c11443
contracts: Update README
athei 61c523c
contracts: Add CHANGELOG.md
athei 72c908b
contracts: Bump version to v3.0.0 and allow publish
athei 629f926
Typos
athei 2224f8d
Improve wording in the changelog
athei 9de3f3c
contracts: Add reserved field to ContractInfoOf for future proofing
athei 2117ac2
also bump frame-benchmarking
gnunicorn 7e2780b
update lockfile
gnunicorn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| The semantic versioning garantuees do cover the interface to the substrate runtime which | ||
| includes this pallet as a dependency. This module will also add storage migrations whenever | ||
| changes require this. Stability with regard to offchain tooling is explicitly excluded from | ||
| this garantuee: For example adding a new field to an in-storage data structure will require | ||
|
athei marked this conversation as resolved.
Outdated
|
||
| changes to frontends to properly display it. However, those changes will still be regarded | ||
| as a minor version bump. | ||
|
|
||
| The interface provided to smart contracts will adhere to semver to with one exception: Even | ||
|
athei marked this conversation as resolved.
Outdated
|
||
| major version bumps will be backwards compatible with regard to already deployed contracts. | ||
| In other words: Upgrading this pallet will not break pre-existing contracts. | ||
|
|
||
| ## [v3.0.0] | ||
|
|
||
| This version constitutes the first release that brings any stability garantuess (see above). | ||
|
athei marked this conversation as resolved.
Outdated
|
||
|
|
||
| ### Added | ||
|
|
||
| - Emit an event when a contract terminates (self-destructs). | ||
| [1](https://github.com/paritytech/substrate/pull/8014) | ||
|
|
||
| - Charge rent for code stored on the chain in addition to the already existing | ||
| rent that is payed for data storage. | ||
| [1](https://github.com/paritytech/substrate/pull/7935) | ||
|
|
||
| - Allow the runtime to configure per storage item costs in addition | ||
| to the already existing per byte costs. | ||
| [1](https://github.com/paritytech/substrate/pull/7819) | ||
|
|
||
| - Contracts are now deleted lazily so that the user who removes a contract | ||
| does not need to pay for the deletion of the contract storage. | ||
| [1](https://github.com/paritytech/substrate/pull/7740) | ||
|
|
||
| - Allow runtime authors to define chain extensions in order to provide custom | ||
| functionality to contracts. | ||
| [1](https://github.com/paritytech/substrate/pull/7548) | ||
| [2](https://github.com/paritytech/substrate/pull/8003) | ||
|
|
||
| - Proper weights which are fully automated by benchmarking. | ||
| [1](https://github.com/paritytech/substrate/pull/6715) | ||
| [2](https://github.com/paritytech/substrate/pull/7017) | ||
| [3](https://github.com/paritytech/substrate/pull/7361) | ||
|
|
||
| ### Changes | ||
|
|
||
| - Collect the rent for one block during instantiation. | ||
| [1](https://github.com/paritytech/substrate/pull/7847) | ||
|
|
||
| - Instantiation takes a `salt` argument to allow for easier instantion of the | ||
| same code by the same sender. | ||
| [1](https://github.com/paritytech/substrate/pull/7482) | ||
|
|
||
| - Improve the information returned by the `contracts_call` RPC. | ||
| [1](https://github.com/paritytech/substrate/pull/7468) | ||
|
|
||
| - Simplify the node configuration necessary to add this module. | ||
| [1](https://github.com/paritytech/substrate/pull/7409) | ||
|
|
||
| ### Fixed | ||
|
|
||
| - Consider the code size of a contract in the weight that is charged for | ||
| loading a contract from storage. | ||
| [1](https://github.com/paritytech/substrate/pull/8086) | ||
|
|
||
| - Fix possible overflow in storage size calculation | ||
| [1](https://github.com/paritytech/substrate/pull/7885) | ||
|
|
||
| - Cap the surcharge reward that can be claimed. | ||
| [1](https://github.com/paritytech/substrate/pull/7870) | ||
|
|
||
| - Fix a possible DoS vector where contracts could allocate too large buffers. | ||
| [1](https://github.com/paritytech/substrate/pull/7818) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.