Releases: blocknative/assist
Minor fixes, performance improvement, more tests
This release contains small bug fixes and additional tests.
- FIX: Handle window resize events while modal is open
- FIX: removed regex check that was causing inconsistent behavior for overloaded contract methods
- Parallelize some async calls to reduce latency for sendTransaction and contract methods
- New suite of integration tests:
- Library initialization
- Websocket logic
- Event to UI logic
Speedup and Cancel
This release adds support for "speedup" and "cancel" actions within MetaMask wallets (or equivalent in other wallets).
Building on previous work to support darkMode
, Assist now can handle a custom CSS string that can override existing dialog and notification css. See https://github.com/blocknative/assist/tree/master/src/css for the builtin CSS.
Also in this release is a re-work of our error handling to ensure Assist plays well with Dapp error handling.
- added "speedup" support
- added "cancel" support (#99)
- added ability to inject custom css string into iframe (details in readme)
- refactored css so that font-family is set globally on the body for easy override
- several bug fixes related to transitions when show dialogs
- fixes to resolve promises correctly and improve error handling
- refactored the internal transaction queue to support speedups and cancels
- added support for contracts instantiated with truffle-contract
- fixed height of scroll container to auto when removing element
- update to 0.6.0
Fix for regression from 0.5.1
Fixed destructuring so that it wouldn't error when no style property in the provided config
Dark mode and notification corners
This release adds darkMode
and notificationsPosition
config options to help Assist
look better in your Dapp.
Please note that getState()
is simplified to only return the essential pieces of state that would be required by a Dapp dev. The readme is updated to reflect what getState()
returns.
- added uuid for each transaction, general refactoring (#71)
- filter the state object (#68)
- fixed image bug for browser onboarding (#75)
- added check to not render iframe if user is on mobile and mobile isn't blocked so that touch events work correctly on mobile (#74)
- made txRepeat notification persist when txConfirmReminder notification is shown (#78)
- added inline custom tx messages (#79)
- dark mode option (#77)
- position notifications (#81)
- fixed transaction timer bug (#83)
Bundled images and new txRequest notification
Numerous bug fixes and documentation updates, including:
- added
txRequest
toaster UI (#57) - moved on-boarding dialog images into bundle so they display immediately (no additional GET request) (#51)
- fixed infinite stacking of the same modal if it is called multiple times (#60)
- fixed creating iFrame that is not used in
headlessMode
(#49) - removed UI for contract query fail event (#45)
- log initial state via getState call in init() (#48)
- refactored
separateArgs
function to be more robust (#52) - fixed how callbacks are called (#53)
- added support for overloaded method calls (#54)
- added onboarding status persistence
- fixed bug where checks were using
payable
instead ofconstant
to determine whether it was a send or call function - added more robust checking of custom tx message callbacks
- fixed type bug on network check in
onboardingWarningMsg
(and addedtxRequest
key in transactionMsgs) - added check to see if
txObj
exists to remove race condition between server and client confirms - added linting check and test run before build
- change notifications to use confirm to be consistent with MM dialog
Work with latest web3.js
This release refactors our internal handling of the web3 Contract
object.
Assist.js
initially took a "decoration" approach to augmenting the functionality of Web3
's Contract
objects. This modified the properties and methods of an existing Contract
object in a way that enabled Assist to hook in and do extra work.
The library now uses a "delegation" approach, which takes an existing Contract
object and returns a new object with the additional Assist functionality. This new object maintains references to the methods on the original Contract
object so that transactions and contract calls can be delegated to those methods after Assist performs its pre-flight and notification work.
note: 1.0 beta versions 38, 39, 40, 41, 42, 43, 44, 45 have bugs when interacting with MetaMask, we recommend you avoid these versions of web3.js
Improve contract handling
0.3.4 update to version 0.3.4
Documentation update
0.3.3 update to 0.3.3 to fix incorrect doc versions
Documentation update
0.3.2 build with 0.3.2
Documentation update
0.3.1 update to 0.3.1