Releases: massalabs/massa-as-sdk
Releases · massalabs/massa-as-sdk
v3.0.0
⚠️ 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
v2.5.4
v2.5.3
What's Changed
- Update params name as sdk by @AurelienFT in #306
- add keccak256 mock by @peterjah in #308
- add mocks for evm signature functions by @peterjah in #309
- fix vm dependencies by @peterjah in #310
- Add chainId external function by @sydhds in #313
- Revert "Add chainId external function" by @Ben-Rey in #314
- Feature/chainid 2 by @sydhds in #316
- release v2.5.3 by @damip in #317
New Contributors
Full Changelog: v2.5.2...v2.5.3
v2.5.2
What's Changed
- export context methods by @peterjah in #297
- fix storage append in vm-mock by @peterjah in #300
- move getKeys to storage by @peterjah in #301
- Rename
digest
todata
inisSignatureValid
andisEvmSignatureValid
by @Ben-Rey in #303 - Update version to 2.5.2 by @Ben-Rey in #304
Full Changelog: v2.5.1...v2.5.2
v2.5.1
v2.5.0
What's Changed
- Add AbiEncode & friends + Bytes32 + Bytes4 classes by @sydhds in #289
- Add proper credits for persistentMap by @sydhds in #291
- Add prefix for getOpKeys by @sydhds in #292
- PersistentMap: add support for StaticArray + Serilizable object by @sydhds in #290
- update version minor by @Ben-Rey in #293
Full Changelog: v2.4.0...v2.5.0
v2.4.0
v2.3.0
What's Changed
- [npm] update version to latest by @Ben-Rey in #273
- Bump yaml from 2.2.1 to 2.2.2 by @dependabot in #266
- Keccak256 and EVM verify by @Eitu33 in #277
- get_operation_id by @Eitu33 in #278
- update version by @Ben-Rey in #280
New Contributors
- @dependabot made their first contribution in #266
Full Changelog: v2.1.0...v2.3.0
v2.1.0
Testnet compatibility
Testnet version 20, 21
Improvements
- Documentation
- Tests
Breaking changes
- Rename getBytecodeFor -> getBytecodeOf
- Rename toBase58 -> blake3
New feature
- new validateAddress function
What's Changed
- Breaking change: rename two ABI exports by @Leo-Besancon in #142
- serialize Address by @Thykof in #145
- fixed hashmap collection with StaticArray usage and Result types by @BatiGencho in #149
- 147 add sha256 external function by @Ben-Rey in #148
- Test serialization of array of address by @Ben-Rey in #151
- fixed hashmap tests by @BatiGencho in #155
- renamed base58 to blake3 by @BatiGencho in #156
- update test to fit new address style by @Ben-Rey in #153
- added print function by @BatiGencho in #159
- Fix/sha by @BatiGencho in #157
- make address memebers private by @Thykof in #160
- add prefix param to getKeys and getKeysOf functions by @Ben-Rey in #163
- implement validate address by @Ben-Rey in #164
- [devops] enable test coverage with as-pect by @Ben-Rey in #167
- 170 add a test coverage badge to the readme file by @Ben-Rey in #172
- 168 improve test coverage if necessary by @Ben-Rey in #169
- 173 enhance or add to git documentation readme installation contribute license and powered by by @Ben-Rey in #174
- update storage documentation by @gregLibert in #189
- created an alias method for env exported function callerHasWriteAccess by @BatiGencho in #187
- [doc] v1 update context by @Ben-Rey in #199
- [documentation update] 193 documentation address class by @Elli610 in #197
- [CI] update ci to run update readme only one time by @Ben-Rey in #206
- Update powered-by.yml by @qdrn in #209
- 217 operation datastore functions by @0xSwapFeeder in #223
- [vm test] execution functions by @Ben-Rey in #218
- [vm test] test helpers functions by @Ben-Rey in #221
- 211 Add VM external Storage related functions by @Ben-Rey in #212
- 213 mock coins related functions by @Ben-Rey in #214
- 216 mock account related functions by @Elli610 in #224
- Documentation: Updated index module documentation. by @0xSwapFeeder in #208
- 210 add unit test for assembly script local call in vm mock by @Elli610 in #220
- add massabot as author for power-by ci commit by @gregLibert in #232
- set an address to the author of power-by commit by @gregLibert in #233
- set correct address to massabot by @gregLibert in #234
- set correct address to massabot by @gregLibert in #236
- set correct address to massabot by @gregLibert in #237
- [fix] add range to address verification to match variable length by @Ben-Rey in #230
- 222 sdk new architecture by @0xSwapFeeder in #227
- fix generate powered-by CI by @gregLibert in #247
- 242 address remove valider and isvalid now that we have a result object by @Ben-Rey in #248
- [archi] move fileToByteArray in contract by @Ben-Rey in #250
- [archi] move setBytecode to contract by @Ben-Rey in #255
- Move currentThread and currentPeriod to Context namespace by @Elli610 in #249
- Remove duplication of ci (18.x and 16.x) by @Elli610 in #256
- Feature: Added mock context helpers functions by @0xSwapFeeder in #243
- Documentation: Explained namespaces for contributing by @0xSwapFeeder in #258
- Format CI files by @gregLibert in #262
- fix(mock-storage): fixed missing exceptions and exceptions format by @0xSwapFeeder in #254
- fix unit-test CI by @gregLibert in #261
- fix CI - adds on workflow call for unit-test by @gregLibert in #264
- [doc] improve localCall doc by @Ben-Rey in #267
New Contributors
- @Leo-Besancon made their first contribution in #142
- @0xSwapFeeder made their first contribution in #223
Full Changelog: v2.0.1...v2.1.0
v2.0.1
Testnet compatibility
Testnet version 18, 19
New features
- HTML documentation
- New mock for smart-contract call and "callerHasWriteAccess"
What's Changed
- added some hashmap extra functonalities by @BatiGencho in #26
- creates issue templates by @SlnPons in #125
- Transfer Event to index by @0xMazout in #128
- 🎨 format code by @Thykof in #117
- format code createEvent by @Thykof in #129
- generate documentation by @gregLibert in #123
- Push update package.json by @0xMazout in #133
- update readme by @SebastienValla in #131
- deploy typedoc by @Thykof in #134
- add mock for sc call by @peterjah in #132
- add event tests by @peterjah in #138
- improve doc and sendMessage by @Thykof in #140
- 116 add caller has right access mock by @Thykof in #141
- Bump versions by @Thykof in #143
- Bump versions by @Thykof in #144
New Contributors
Full Changelog: v2.0.0...v2.0.1