Skip to content

Releases: OpenZeppelin/stylus-test-helpers

v0.10.0

17 Jul 09:37
4e6082e

Choose a tag to compare

Summary

Added

  • Delegate call support. #105

Changed (Breaking)

  • Removed Context::init helper. #102

Full Changes List

Full Changelog: v0.9.1...v0.10.0

v0.9.1

11 Jun 13:25
034882d

Choose a tag to compare

Summary

Added

  • Added Contract::all_events method to retrieve all events emitted by the contract. #95

Full Changes List

  • feat: add method to get all events emitted by the contract by @isSerge in #95.

Full Changelog: v0.9.0...v0.9.1

v0.9.0

21 May 12:40
d937fca

Choose a tag to compare

Summary

Changed (Breaking)

  • Bump Stylus SDK to v0.9.0. #98

Full Changes List

  • build: bump Stylus SDK to v0.9 and motsu-proc to v0.9.0 by @bidzyyys in #98.

Full Changelog: v0.8.0...v0.9.0

v0.8.0

10 Apr 08:19
a2d4f1f

Choose a tag to compare

Summary

Added

  • Predeploy EcRecover precompile contract. #90
  • Support fallback and receive functions. #88
  • Derived PartialEq, Eq and Debug for Account. #81
  • Enabled additional conversions between PrivateKeySigner, Address and Account. #84

Changed (Breaking)

  • Bump Stylus SDK to v0.8.4. #92
  • Missing selector returns an error instead of panicking. #88
  • Api VMContext::current() simplified to VM::context(). #91
  • evm::gas_left and evm::ink_left return maximum values. #90

Full Changes List

  • feat: derive PartialEq, Eq and Debug, and impl From<PrivateKeySigner> for Account by @0xNeshi in #81.
  • feat: Add Additional Conversions between PrivateKeySigner, Address and Account by @0xNeshi in #84.
  • feat: Handle fallback and receive calls by @0xNeshi and @qalisander in #88.
  • feat: add ecRecover precompile by @0xNeshi in #90.
  • ref: rename VMContext::curent() -> VM::context() by @qalisander in #91.
  • build: SDK v0.8.4 by @bidzyyys in #92.

Full Changelog: v0.7.0...v0.8.0

v0.7.0

19 Mar 11:16
9a53917

Choose a tag to compare

Summary

Added

  • Enabled stylus-test SDK feature by default. #78
  • Account can be created from string and byte seeds, and can return a signer. #72
  • Implemented Balance trait for Accountand Contract<T>. #72
  • Added ability to set the chain ID in tests. #67

Changed (Breaking)

  • Bump Stylus SDK to v0.8.3 #77
  • Account can no longer be created at a predetermined address. #72
  • Funding::balance is removed. #72

Full Changes List

Full Changelog: v0.6.0...v0.7.0

v0.6.0

11 Mar 17:53
64b7ed4

Choose a tag to compare

Summary

Added

  • Fixed bug with invalid size of return data from external call #68
  • No randomness in address generation anymore.
    Addresses will be derived from a string representation of the argument name #62
  • State of the contract (on-chain data, events) and account balances can be
    reverted when call fails #62
  • String representation of address linked to a string tag (argument name),
    that is used for error message formatting #62

Full Changes List

Full Changelog: v0.5.0...v0.6.0

v0.5.0

06 Mar 15:44
de88332

Choose a tag to compare

Summary

Added

  • Possibility to assert emitted events. #34

Changed(Breaking)

  • Support for Stylus SDK v0.8.1. #46

Full Changes List

Full Changelog: v0.4.0...v0.5.0

v0.4.0

11 Feb 16:57
862770f

Choose a tag to compare

Summary

Added

  • Mocks for the msg::sender(). #14
  • Mocks for the msg::value() and contract::balance(). #31
  • Mocks for the external contract calls. Two and more contracts can be injected into a single test. #14
  • Option to inject Account or Address in the test. #14

Changed(Breaking)

  • Contract<..> wrapper is mandatory for the contract's argument. #14
  • To call contract's function it is mandatory to explicitly indicate the sender, through Contract::<..>::sender(..) function. #14
  • Contract<T>'s T type should implement TopLevelStorage. #14

Full Changes List

Full Changelog: v0.3.0...v0.4.0

v0.3.0

07 Jan 13:47
bd30c05

Choose a tag to compare

Summary

Changed(Breaking)

  • Bump Stylus SDK to v0.7.0. #17
  • Bump alloy to v0.8.14. #20

Full Changes List

Full Changelog: v0.2.1...v0.3.0

v0.2.1

17 Dec 21:26
e59f9c6

Choose a tag to compare

Migrate motsu to its own repository.