⚠️ Breaking Changes
- Caller Funds Check: When using mockTransferredCoins (or the deprecated setCallCoins), the caller must have sufficient funds in their wallet.
- Updated balance() Method: Now returns the actual contract balance plus any coins transferred via mockTransferredCoins.
- Updated balanceOf(smartContractAddress) Method: Now returns the sum of the smart contract's balance plus any coins transferred.
- Call Function Update: The caller must have enough funds to cover the coins parameter if set.
What's Changed
- Update transferred_coins documentation by @Leo-Besancon in #320
- Fix audit by @Ben-Rey in #311
- Add setCallCoins to mock SC call coins by @Ben-Rey in #322
- Fix getOriginOperationId description by @Ben-Rey in #323
- Balance mock by @peterjah in #325
- deprecate setCallCoin and add mockTransferredCoin by @peterjah in #326
- add mockOriginOperationId by @peterjah in #327
- Fix balance mock by @peterjah in #329
- vm-mock: add colored error message by @peterjah in #330
- Fix transfer mock by @peterjah in #331
- Add assertIsSmartContract function and tests by @Ben-Rey in #333
- add access control by @gregLibert in #335
- add liquidity manager by @gregLibert in #337
- 339 constant key manager by @gregLibert in #340
- Fix ConstantManager.set to accept array of serializable by @gregLibert in #343
- Add is contract address by @Ben-Rey in #341
- update as-types by @Ben-Rey in #344
- 345 add mapkeymanager by @gregLibert in #346
- Export liquidity and map managers by @gregLibert in #348
- vm-mock: sum transfered coins to current contract balance by @peterjah in #349
- vm-mock: get dynamic caller/callee by @peterjah in #351
- add generate raw event function by @Ben-Rey in #352
- major version bump with breaking changes in vm-mock by @Ben-Rey in #353
Full Changelog: v2.5.4...v3.0.0