Skip to content

Releases: blocknative/assist

Mobile notification position and truffle fixes

28 May 16:17
59d84df
Compare
Choose a tag to compare
  • Contract decoration improvements (#202)

    • Fix truffle contract decoration with web3 0.20
    • Fix contract method properties not being properly assigned on web3v1
    • Fix overloaded contract methods not being properly assigned
    • Improve contract tests
  • Truffle fixes (#217 and #218)

    • Fix legacyCall with truffle contracts
    • Fix truffle calls hanging forever
  • Configure mobile position and set default to top (#214)

  • Update README to document both APIs for notificationsPosition (#220)

Mobile bug fixes and doc update

28 May 16:05
bec0928
Compare
Choose a tag to compare
  • resize iframe after hiding modal (#197)
  • update readme with mobile support info and web3 initialization example (#199)
  • change pageY and pageX to screenY and screenX (#203)
  • add correct click handlers to close button touch start event (#205)

Mobile device support for On-boarding and Notifications

22 May 04:02
662c4be
Compare
Choose a tag to compare

This release adds mobile device support for:

  • transaction awareness notifications (toasters)
  • wallet readiness check dialogs (pre-flight)
  • on-boarding (only includes check for wallet browser, correct network, sufficient funds)
  • connect/enable modal for mobile wallets that have implemented privacy mode

Mobile on-boarding improvements

20 May 07:22
31b44f5
Compare
Choose a tag to compare

This release improves how Assist handles on-boarding on mobile platforms.

If mobileBlocked is false, onboard() will call window.ethereum.enable() if a modern provider so that the dapp can connect to the users wallet and get the current user state, then:

  • reject with the current state if the user is not ready to transact
  • resolve with the current state if the user is ready to transact

Bug fixes and more truffle contract tests

16 May 06:27
cea237c
Compare
Choose a tag to compare

This release addresses a few bugs and adds more tests. The bug fix for promiEvents on transaction send or correct contract methods required a small API change on the return value. See documentation for details at at https://github.com/blocknative/assist/blob/master/README.md#promievent

  • updated documentation on API change for promiEvent returned from contract method call
  • added more truffle contract tests
  • fixed transaction stall false positive (#177)
  • fixed race condition with MM confirmation of transactions (#174)
  • improved handling of promiEvent on transaction send (#179)
  • fixed dropping of some contract methods (#181)
  • improved determination of possible duplicate transaction (#183)
  • improved resilience of confirmation callback in web3 1.0 (#185)

Fix truffle contract call, additional tests with genache

13 May 16:27
de4038f
Compare
Choose a tag to compare
  • Fix truffle estimateGas call (#171)
  • More testing of web3 calls by adding genache into test suite (#153)

Fixed network check

10 May 23:27
77afd27
Compare
Choose a tag to compare

Fixed a regression handling incorrect network on transactions and contracts. If a transaction or contract is initiated and the user's wallet is on the wrong network, Assist will show an informative dialog, but allwed the transaction/contract to proceed when the dialog is dismissed. Now the transaction/contract will not proceed. The user needs to change their wallet's network and initiate the transaction/contract again.

Fix onboard reject and network check

10 May 21:55
8bdfcd0
Compare
Choose a tag to compare
  • updated readme to reflect how onboard resolves with the state object (#158
  • onboard reject now returns state (#159)
  • add network checks to call methods and show wrong network modal if user is on the wrong network (#162)

Custom notifications

09 May 22:52
67862b7
Compare
Choose a tag to compare

This release features custom notifications a dapp can trigger at any time by calling the new notify() method. Also included is a change to the API for onboard(), which now returns the current state object instead of a string with the last onboard step. This will help dapps with their post-onboard logic. Finally, Assist styling can be updated after initialization with the new updateStyle() method.

Opera wallet fix

09 May 22:42
Compare
Choose a tag to compare

This release fixes a conflict with Opera browser's built-in wallet. The web3 object created by this wallet is different and not currently supported. Assist gets out of the way when the Opera wallet is in use.