Releases: OpenZeppelin/stylus-test-helpers
Releases · OpenZeppelin/stylus-test-helpers
v0.10.0
Summary
Added
- Delegate call support. #105
Changed (Breaking)
- Removed
Context::inithelper. #102
Full Changes List
- ref:: remove
Context::inithelper by @raymax0x in #102. - ref: fix lifetime flow warnings by @0xNeshi in #107.
- feat: Delegate call support by @0xNeshi in #105.
Full Changelog: v0.9.1...v0.10.0
v0.9.1
v0.9.0
v0.8.0
Summary
Added
- Predeploy
EcRecoverprecompile contract. #90 - Support
fallbackandreceivefunctions. #88 - Derived
PartialEq,EqandDebugforAccount. #81 - Enabled additional conversions between
PrivateKeySigner,AddressandAccount. #84
Changed (Breaking)
- Bump Stylus SDK to
v0.8.4. #92 - Missing selector returns an error instead of panicking. #88
- Api
VMContext::current()simplified toVM::context(). #91 evm::gas_leftandevm::ink_leftreturn maximum values. #90
Full Changes List
- feat: derive
PartialEq,EqandDebug, andimpl From<PrivateKeySigner>forAccountby @0xNeshi in #81. - feat: Add Additional Conversions between
PrivateKeySigner,AddressandAccountby @0xNeshi in #84. - feat: Handle
fallbackandreceivecalls by @0xNeshi and @qalisander in #88. - feat: add
ecRecoverprecompile by @0xNeshi in #90. - ref: rename
VMContext::curent()->VM::context()by @qalisander in #91. - build: SDK
v0.8.4by @bidzyyys in #92.
Full Changelog: v0.7.0...v0.8.0
v0.7.0
Summary
Added
- Enabled
stylus-testSDK feature by default. #78 Accountcan be created from string and byte seeds, and can return a signer. #72- Implemented
Balancetrait forAccountandContract<T>. #72 - Added ability to set the chain ID in tests. #67
Changed (Breaking)
- Bump Stylus SDK to
v0.8.3#77 Accountcan no longer be created at a predetermined address. #72Funding::balanceis removed. #72
Full Changes List
- feat: ability to set Chain ID in tests by @sumitvekariya and @0xNeshi in #67.
- feat: Expose a Signer from
Accountby @0xNeshi in #72. - build: bump Stylus SDK to
v0.8.3by @bidzyyys and @0xNeshi in #77. - build: bump
motsu-proctov0.7.0by @bidzyyys in #79. - build: bump
motsuv0.7.0 by @bidzyyys in #80.
Full Changelog: v0.6.0...v0.7.0
v0.6.0
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
- fix: return data size by @qalisander in #68
- feat: transaction revert + nondeterministic addresses by @qalisander in #62
- build: bump motsu proc to v0.6.0 by @qalisander in #70
- build: bump motsu v0.6.0 by @qalisander in #71
Full Changelog: v0.5.0...v0.6.0
v0.5.0
Summary
Added
- Possibility to assert emitted events. #34
Changed(Breaking)
- Support for Stylus SDK
v0.8.1. #46
Full Changes List
- Storage-related tests by @0xNeshi and @qalisander in #42.
- Possibility to assert emitted events by @qalisander in #34.
- Bump Stylus SDK to
v0.8.1.by @qalisander and @bidzyyys in #46.
Full Changelog: v0.4.0...v0.5.0
v0.4.0
Summary
Added
- Mocks for the
msg::sender(). #14 - Mocks for the
msg::value()andcontract::balance(). #31 - Mocks for the external contract calls. Two and more contracts can be injected into a single test. #14
- Option to inject
AccountorAddressin 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>'sTtype should implementTopLevelStorage. #14
Full Changes List
- feat: unit test external call +
msg::sendermocks by @qalisander in #14. - feat: option to set
msg::valuein unit tests and track balances by @qalisander and @0xNeshi in #31. - build: bump
motsu-proctov0.4.0by @qalisander in #40. - fix: cached storage bug + support reentrancy by @qalisander in #41.
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Summary
Changed(Breaking)
Full Changes List
- build: bump Stylus SDK to v0.7.0 by @qalisander and @bidzyyys in #17.
- build: bump motsu-proc to v0.3.0 and alloy to v0.8.14 by @bidzyyys in #20.
Full Changelog: v0.2.1...v0.3.0
v0.2.1
Migrate motsu to its own repository.