Releases: use-ink/cargo-contract
Releases · use-ink/cargo-contract
v1.0.0
v0.18.0
Interact with contracts: upload, instantiate and call commands
We added commands to upload, instantiate and call contracts!
This allows interacting with contracts on live chains with a compatible pallet-contracts
.
For command-line examples on how to use these commands see #79.
Linting rules for smart contracts
We are introducing a linter for ink! smart contracts in this release!
From now on cargo-contract
checks if the ink! smart contract that is build
or check
-ed follows certain rules.
As a starting point we've only added one linting rule so far; it asserts correct initialization of the ink_storage::Mapping
data structure.
In order for the linting to work with your smart contract, the contract has to be written in at least ink! 3.0.0-rc9. If it's older the linting will just always succeed.
Added
- Interact with contracts: upload, instantiate and call commands - #79
- Add linting to assert correct initialization of
ink_storage::Mapping
- #431
Changed
v0.17.0
Changed
- Updated
cargo contract new
template dependencies to ink!3.0.0-rc8
- #402 - Reverted the disabled overflow checks in the
cargo contract new
template - #376 - Migrated to 2021 edition, enforcing MSRV of
1.56.1
- #360
Added
- For contract size optimization added
workspace
section to override parentworkspace
- #378
v0.16.0
Changed
- Updated
cargo contract new
template dependencies to ink!3.0.0-rc7
- #374 - Disabled overflow checks in the
cargo contract new
template - #372 - Use
-Clinker-plugin-lto
iflto
is enabled (reduces the size of a contract) - #358 - Deserialize metadata - #368
Added
- Added a
--offline
flag to build contracts without network access - #356
v0.15.0
v0.14.0
v0.13.1
v0.13.0
v0.12.1
v0.12.0
Fixed
- Fixed
ERROR: The workspace root package should be a workspace member
when building a contract under Windows - #261