diff --git a/substrate/frame/contracts/CHANGELOG.md b/substrate/frame/contracts/CHANGELOG.md index 80615aaec8..2a93c838bc 100644 --- a/substrate/frame/contracts/CHANGELOG.md +++ b/substrate/frame/contracts/CHANGELOG.md @@ -20,20 +20,24 @@ In other words: Upgrading this pallet will not break pre-existing contracts. ### Added -- Replaced `seal_println` with `seal_debug_message` which allows output to an RPC client. -[1](https://github.com/paritytech/substrate/pull/8773) +- New **unstable** `seal_rent_params` and `seal_rent_status` contract callable function. +[#8231](https://github.com/paritytech/substrate/pull/8231) +[#8780](https://github.com/paritytech/substrate/pull/8780) -- Add new `instantiate` RPC that allows clients to dry-run contract instantiation. -[1](https://github.com/paritytech/substrate/pull/8451) +- New `instantiate` RPC that allows clients to dry-run contract instantiation. +[#8451](https://github.com/paritytech/substrate/pull/8451) + +- New version of `seal_random` which exposes additional information. +[#8329](https://github.com/paritytech/substrate/pull/8329) + +### Changed + +- Replaced `seal_println` with the **unstable** `seal_debug_message` API which allows +output to an RPC client. +[#8773](https://github.com/paritytech/substrate/pull/8773) - Make storage and fields of `Schedule` private to the crate. -[1](https://github.com/paritytech/substrate/pull/8359) - -- Add new version of `seal_random` which exposes additional information. -[1](https://github.com/paritytech/substrate/pull/8329) - -- Add `seal_rent_params` contract callable function. -[1](https://github.com/paritytech/substrate/pull/8231) +[#8359](https://github.com/paritytech/substrate/pull/8359) ## [v3.0.0] 2021-02-25 @@ -42,56 +46,56 @@ This version constitutes the first release that brings any stability guarantees ### Added - Emit an event when a contract terminates (self-destructs). -[1](https://github.com/paritytech/substrate/pull/8014) +[#8014](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) +[#7935](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) +[#7819](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) +[#7740](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) +[#7548](https://github.com/paritytech/substrate/pull/7548) +[#8003](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) +[#6715](https://github.com/paritytech/substrate/pull/6715) +[#7017](https://github.com/paritytech/substrate/pull/7017) +[#7361](https://github.com/paritytech/substrate/pull/7361) -### Changes +### Changed - Collect the rent for one block during instantiation. -[1](https://github.com/paritytech/substrate/pull/7847) +[#7847](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) +[#7482](https://github.com/paritytech/substrate/pull/7482) - Improve the information returned by the `contracts_call` RPC. -[1](https://github.com/paritytech/substrate/pull/7468) +[#7468](https://github.com/paritytech/substrate/pull/7468) - Simplify the node configuration necessary to add this module. -[1](https://github.com/paritytech/substrate/pull/7409) +[#7409](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) +[#8086](https://github.com/paritytech/substrate/pull/8086) - Fix possible overflow in storage size calculation -[1](https://github.com/paritytech/substrate/pull/7885) +[#7885](https://github.com/paritytech/substrate/pull/7885) - Cap the surcharge reward that can be claimed. -[1](https://github.com/paritytech/substrate/pull/7870) +[#7870](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) +[#7818](https://github.com/paritytech/substrate/pull/7818)