Skip to content

Releases: use-ink/cargo-contract

v1.2.0

13 Apr 15:44
89e1f66
Compare
Choose a tag to compare

Added

  • decode command for event, message and constructor data decoding - #481

Fixed

  • Fix usage of check-only and remove need for FromStr impl - #499

v1.1.1

05 Apr 18:01
71edda9
Compare
Choose a tag to compare

Fixed

  • Fix linting support for Apple Silicon (and some other architectures) - #489
  • Allow multiple args values for call and instantiate commands - #480
  • Fix event decoding - c721b1

v1.1.0

18 Mar 14:12
27accdc
Compare
Choose a tag to compare

Added

  • --skip-linting flag that allows to skip the linting step during build process - #468

v1.0.1

18 Mar 11:19
c40da7c
Compare
Choose a tag to compare
  • Improved error reporting during installation - #469

v1.0.0

17 Mar 15:57
6fc0277
Compare
Choose a tag to compare

Changed

  • Updated cargo contract new template dependencies to ink! 3.0 - #466

v0.18.0

15 Mar 10:35
e6aff71
Compare
Choose a tag to compare

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

  • Upgrade subxt, SCALE crates, and substrate primitive sp-* crates #451.
  • Updated cargo contract new template dependencies to ink! 3.0.0-rc9 - #443

v0.17.0

20 Jan 15:22
3495c43
Compare
Choose a tag to compare

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 parent workspace - #378

v0.16.0

25 Nov 12:48
964ad1f
Compare
Choose a tag to compare

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 if lto 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

19 Oct 05:34
197e6ce
Compare
Choose a tag to compare

Changed

  • Update to scale-info 1.0 and support new metadata versioning - #342
  • Update cargo contract new template dependencies to ink! rc6 - #342

v0.14.0

13 Aug 07:01
7bbc95c
Compare
Choose a tag to compare

Added

  • Add option for JSON formatted output - #324

Changed

  • Use new dependency resolver for template contract - #325
  • Do not strip out panic messages in debug builds - #326