Releases: warp-contracts/warp
SmartWeave.transaction.origin
This release adds an option to check the transaction origin inside the contract code - via the SmartWeave.transaction.origin
.
Returned values are:
L1
- for the directarweave
transactionsL2
- for the transactions registered via Warp Sequencer
Additionally - SmartWeave.transaction.reward
for L2
transactions is now set to '0'
.
What's Changed
- feat: transaction origin by @ppedziwiatr in #421
Full Changelog: v1.4.9...v1.4.10
Internal Writes discovery fix
This release fixes an issue with internal writes discovery - in certain scenarios 'view' functions could be considered as 'writes'.
What's Changed
- fix: inner writes evaluator fix - verify inner call type by @ppedziwiatr in #417
Full Changelog: v1.4.8...v1.4.9
v1.4.8
This release fixes a bug (#404) in setting the error messages map - which in case of certain caches implementation (like the lmdb) could cause wrong state evaluation.
What's Changed
Full Changelog: v1.4.7...v1.4.8
v1.4.7
Dedicated interface for State Cache
In order to utilze other state cache implementations, such as Warp Contracts Sqlite a dedicated interface is introduced: BasicSortKeyCache
What's Changed
Full Changelog: v1.4.6...v1.4.7
Arweave transactions loader fix
This release fixes a bug in Arweave GQL transactions fetcher (which is used when 'useArweaveGw
parameter is set to true
in WarpFactory.forMainnet
).
What's Changed
- fix: Arweave fetcher fix by @ppedziwiatr in #411
Full Changelog: v1.4.5...v1.4.6
Make SDK fit again
This release extracts the VRF feature to a separate plugin.
As a result - the SDK bundle size was reduced from ~650kb to ~280kb.
The arweave-js library has been updated to the latest available version (1.13.7).
What's Changed
- adding moduleNameMapper to jest config so that warp workdir is includ… by @Tadeuchi in #399
- fix: extract VRF to a plugin #248 by @ppedziwiatr in #401
Full Changelog: v1.4.2...v1.4.4
SortKeyCache API update
The SortKeyCache methods rollback
and commit
now both return Promises.
What's Changed
Full Changelog: v1.4.1...v1.4.2
web bundle, VM2 plugin
- VM2 dependency and implementation for executing contract in an isolated environment has been moved to a dedicated plugin, more info about how to use it in the Warp Academy.
- A dedicated web bundle has been created in order to stop forcing the user to import a web version of the sdk (
import ... from 'warp-contracts/web'
) when in browser. From now on, it can be imported with a regular import (import ... from 'warp-contracts'
. - Fix for relative import in
BundlerSigner
class. - Fixes in KV API implementation.
What's Changed
- feat: move VM2 to a plugin by @asiaziola in #393
- feat: web bundle by @asiaziola in #394
- fix: Add functions to the Kv API in order to query ranges - getLessOr… by @Tadeuchi in #396
Full Changelog: 1.4.0...v1.4.1
1.4.0 KV Storage enhancements
This release adds new features to the KV Storage:
- feat: kvStorage is now available for internal writes, reads and views
- feat: kvStorage.del functionality
- feat: kvStorage.keys - allows to fetch a set of keys for a specified range
- feat: kvStorage.kvMap - allows to fetch key-value map for a specified range
It also adds a feature of SmartWeave extensions for Rust contracts.
What's Changed
- feat : make custom signature on testnet great by @koonopek in #381
- feat: extend plugins to rust contracts by @rpiszczatowski in #380
- Security fix for VM2 by @loganaden in #390
- feat: skip evaluation for blacklisted contracts by @asiaziola in #384
- feat: add signDataItem method to BundlerSigner by @asiaziola in #389
- feat: Contract deployment module should use the warp gw address passe… by @ppedziwiatr in #386
- Twl/the one with kv storage query ranges internal writes kv del by @Tadeuchi in #383
New Contributors
- @loganaden made their first contribution in #390
Full Changelog: v1.3.3...1.4.0
Plugins for rust contracts
We've added support for custom extensions to rust contracts.