Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 0.8.1 #207

Merged
merged 42 commits into from
May 24, 2019
Merged

version 0.8.1 #207

merged 42 commits into from
May 24, 2019

Conversation

cmeisl
Copy link
Member

@cmeisl cmeisl commented May 24, 2019

No description provided.

lnbc1QWFyb24 and others added 30 commits May 8, 2019 21:50
)

* Test contract decoration matches snapshot

* Update yarn.lock

* Improve Contract test coverage

* Classify existing Contract tests as unit tests

* Run contract tests with multiple web3 versions

* Clear localStorage between contract tests

* Improve comment

* Remove redundant comment

* Mock websocket in contract test

* Remove mock-socket from contract tests

* Only snapshot test a subset of decoratedContract

* Remove redundant logic

* Mock the web3 websocket connection

* Cleanup

* Use a complex ABI for contract decoration tests

* Refactor contract delegation for web3 >beta.37

* Improve comments

* Hardcode userAgent in tests
* - Allow user to spawn custom notifications
- Allow specifying custom timeouts for notifications

* - Improve userInitiatedNotify func name
- Validate userInitiatedNotify arguments

* Check assist is ready for userInitiatedNotify

* Remove options param from userInitiatedNotify

* Move notify method to assistInstance

* Add notity docs

* Improve notify docs

* Improve comment

* Don't call setHeight when no notifications

* Fix userInitiatedNotify validation

* Improve docs

* Fix notify function signature in docs

* Improve notify docs example

* Improve import syntax

* Test for a potential difficult to detect bug

* Fix notify customTimeout not working sometimes

* Mention HMTL can be embedded in customNotify msgs

* Show timer in custom "pending" notification

* Add ui-rendering tests for custom notify events

* Test that customTimeout works

* Specify notify customTimeout in an options object

* - Fix customNotify bug
- Improve customNotify test suite

* Specify customTimeout type

* Log custom events to the server

* Improve test

* Update yarn.lock

* Improve tests

* Improve comment

* Validate customCode

* Limit customCode to 24 characters

* Improve user-initiated-notify tests

* Increase test run speed

* Improve customCode default

* change eventCode for custom notification
* Create updateStyle method

* Add updateStyle docs

* Allow updating notificationsPosition

* Test updating notifPos doesn't throw an error

* Update notify docs

* Improve comments
* onboard returns current user state upon completion

* fixed tests

* remove describe statement

* remove test.only
* update tests

* onboard reject now returns state
* modify eslint config

* refactor network functions to resolve values

* add network checks to call methods and show wrong network modal if user is on the wrong network
* updated readme to reflect how onboard resolves with the state object (#161)

* Fix/onboard reject state (#160)

* update tests

* onboard reject now returns state

* Enhancement/network check contract call (#163)

* modify eslint config

* refactor network functions to resolve values

* add network checks to call methods and show wrong network modal if user is on the wrong network

* update to version 0.7.1
* Test contract decoration matches snapshot

* Update yarn.lock

* Improve Contract test coverage

* Classify existing Contract tests as unit tests

* Run contract tests with multiple web3 versions

* Clear localStorage between contract tests

* Improve comment

* Remove redundant comment

* Mock websocket in contract test

* Remove mock-socket from contract tests

* Only snapshot test a subset of decoratedContract

* Remove redundant logic

* Mock the web3 websocket connection

* Cleanup

* Use a complex ABI for contract decoration tests

* Refactor contract delegation for web3 >beta.37

* Improve comments

* Hardcode userAgent in tests

* Setup a ganache instance for use in the test env

* Improve ganache error handling

* Create web3.js test structure

* - Add test for web3Func bigNumber
- Add test for web3Func gasPrice

* Handle restarting ganache when jest is watching

* Add test for web3Funcs.contractGas

* Set ganache account generation to be deterministic

* - Add test for web3Func txGas
- Add test for web3Func balance
- Add test for web3Func accounts
- Add test for web3Func txReceipt

* Create ganacheConfig.js

* Deploy contract to testing ganache chain

* Remove redundant console.log

* Add truffle-contract dependency

* Change the contract deployed to test ganache chain

* Test estimating gas of a truffle method call

* Reduce logic duplication

* Improve comments

* Explicitly end tests once ganache is shutdown

* Fix estimateGas on truffle contract methods

* use latest web3 beta 55 in tests
* fixed bug where txStall event would be fired when the transaction has not stalled

* added check for status approved
* fixed bug where txStall event would be fired when the transaction has not stalled

* added check for status approved

* resolve with promiEvent
* added extra check for confirmed

* dont remomve from queue
* Test contract decoration matches snapshot

* Update yarn.lock

* Improve Contract test coverage

* Classify existing Contract tests as unit tests

* Run contract tests with multiple web3 versions

* Clear localStorage between contract tests

* Improve comment

* Remove redundant comment

* Mock websocket in contract test

* Remove mock-socket from contract tests

* Only snapshot test a subset of decoratedContract

* Remove redundant logic

* Mock the web3 websocket connection

* Cleanup

* Use a complex ABI for contract decoration tests

* Refactor contract delegation for web3 >beta.37

* Improve comments

* Hardcode userAgent in tests

* Setup a ganache instance for use in the test env

* Improve ganache error handling

* Create web3.js test structure

* - Add test for web3Func bigNumber
- Add test for web3Func gasPrice

* Handle restarting ganache when jest is watching

* Add test for web3Funcs.contractGas

* Set ganache account generation to be deterministic

* - Add test for web3Func txGas
- Add test for web3Func balance
- Add test for web3Func accounts
- Add test for web3Func txReceipt

* Create ganacheConfig.js

* Deploy contract to testing ganache chain

* Remove redundant console.log

* Add truffle-contract dependency

* Change the contract deployed to test ganache chain

* Test estimating gas of a truffle method call

* Reduce logic duplication

* Improve comments

* Explicitly end tests once ganache is shutdown

* Fix estimateGas on truffle contract methods

* Test truffle contract decoration

* Update snapshot
* remove check for window.web3.version as it shouldn't be there

* make onboard call ethereum.enable() if on mobile device, but show no UI
cmeisl and others added 12 commits May 20, 2019 01:00
* started implementing mobile notifications, needs more testing

* removed mobile warnings

* remove unnecessary async keywords

* adjust styles to flexbox suit mobile

* adjust border to bottom if notifications are to be on top, add touch listener to close notification

* make adjustments for mobile notifications

* edit paragrapgh width

* remove alert

* changed conditional styles from inline to using classnames

* adjust styles

* add check for mobile device in headless mode

* add check to not log mobile events to server for the moment

* add mobile events to eventCodeToStep function

* styled adjustments

* remove todo comment

* add mobile device checks and eventcodes

* add content for mbile specific events

* add classes to objects to add style changes, add touchhandler functions

* add touch handlers to elements if mobile device

* add check for txConfirmedClient as it is already dealt with

* content adjustments

* add body position fixed so no scroll on IOS when swiping

* update snapshots to reflect changes

* update snapshots

* fixed string concatenation bug

* add mobile specific events to server logging

* add new assets for mobileWalletFail event

* fix bug with notifications and document body being fixed, also fixed bug when notifications are manually dismissed

* add timeout to changing of fixed body position

* add trust and coinbase images and deep links

* updated readme

* add husky back in to package.json

* use prevent default to prevent page scroll on swipe instead of position fixed

* add check to make sure _metamask prop is available, which is needed for mobile wallets that implement connect/enable functionality

* update snapshot

* add mobileWalletEnable eventCode

* add ontouchstart handlers and allow for modals with no images

* fix errors from merge

* add media-queries back in

* move assist styles to iframe.js

* fix errors with exponents on non-firefox browsers

* Change mobile content so it fits on screen

* remove ethers documentation as it is not included in this branch
* Enhancement/mobile ui (#193)

* started implementing mobile notifications, needs more testing

* removed mobile warnings

* remove unnecessary async keywords

* adjust styles to flexbox suit mobile

* adjust border to bottom if notifications are to be on top, add touch listener to close notification

* make adjustments for mobile notifications

* edit paragrapgh width

* remove alert

* changed conditional styles from inline to using classnames

* adjust styles

* add check for mobile device in headless mode

* add check to not log mobile events to server for the moment

* add mobile events to eventCodeToStep function

* styled adjustments

* remove todo comment

* add mobile device checks and eventcodes

* add content for mbile specific events

* add classes to objects to add style changes, add touchhandler functions

* add touch handlers to elements if mobile device

* add check for txConfirmedClient as it is already dealt with

* content adjustments

* add body position fixed so no scroll on IOS when swiping

* update snapshots to reflect changes

* update snapshots

* fixed string concatenation bug

* add mobile specific events to server logging

* add new assets for mobileWalletFail event

* fix bug with notifications and document body being fixed, also fixed bug when notifications are manually dismissed

* add timeout to changing of fixed body position

* add trust and coinbase images and deep links

* updated readme

* add husky back in to package.json

* use prevent default to prevent page scroll on swipe instead of position fixed

* add check to make sure _metamask prop is available, which is needed for mobile wallets that implement connect/enable functionality

* update snapshot

* add mobileWalletEnable eventCode

* add ontouchstart handlers and allow for modals with no images

* fix errors from merge

* add media-queries back in

* move assist styles to iframe.js

* fix errors with exponents on non-firefox browsers

* Change mobile content so it fits on screen

* remove ethers documentation as it is not included in this branch

* update to version 0.8.0
#200)

* update readme with mobile support info and web3 initialization example

* add mobile section
@cmeisl cmeisl merged commit bec0928 into master May 24, 2019
cmeisl added a commit that referenced this pull request May 24, 2019
* resize iframe after hiding modal (#198)

* update readme with mobile support info and web3 initialization example (#200)

* update readme with mobile support info and web3 initialization example

* add mobile section

* update to version 0.8.1

* change pageY and pageX to screenY and screenX (#204)

* add correct click handlers to close button touch start event (#206)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants