Commit Graph

1936 Commits

Author SHA1 Message Date
Agustin Pane 971b2ee6d3
(Fix) - Fixs tab selection (#960)
* Fixs tab selection

* Refactor balances tab to use react router
2020-05-29 08:07:32 -03:00
Mikhail Mikheev 710f6a5ab6
Merge pull request #966 from gnosis/fix-awaitingTransactions
Fix app crashing when safeTransactions is undefined
2020-05-29 14:50:17 +04:00
Mikhail Mikheev fda93a53c8 fix generateSafeTxHash typing 2020-05-29 14:00:20 +04:00
Agustín Longoni c0dbfa0dbb fix flags css import 2020-05-28 16:22:51 -03:00
fernandomg 498f9a4d1b Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	package.json
#	src/logic/contracts/generateBatchRequests.ts
#	src/logic/tokens/utils/tokenHelpers.ts
2020-05-28 13:51:19 -03:00
nicolas 4065d5a007
Allow to load Safe Apps with ENS names (#911)
* Remove ethereum-ens in favour of web3.eth.ens

* Allow load Apps from ENS names

* remove comment

* review changes

* replace REACT_APP_IPFS_NODE by REACT_APP_IPFS_GATEWAY

* review fixes

* TS Errors

* fix paths

* Fix validtor

* Apps: Move App form to a separate file

* re-build

* review changes

* fix iframeEl type

* remove validation

* fix type

* update web3 version

* remove type in getContentFromENS

Co-authored-by: lukasschor <lukas.schor@gnosis.pm>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Fernando <fernando.greco@gmail.com>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-05-28 12:50:08 -03:00
Mati Dastugue 7a20aaac42
Merge pull request #935 from gnosis/fix/trezor-support
Add Trezor support
2020-05-28 12:23:13 -03:00
Agustin Pane 7a79579238 Revert initial fix
Add default transaction value for safes without outgoing transactions
2020-05-28 12:03:21 -03:00
Agustin Pane cf38e97907
(Feature) #416 - Add releases link (#936)
* - Add releases link

* - Adds border bottom

* Merge branch 'development' into 623-show-more

# Conflicts:
#	src/routes/safe/components/Transactions/TxsTable/ExpandedTx/TxDescription/index.tsx

* fix hooks import casing

* Improves css link

* Fix hooks import

* Fix hooks import

* Link styling

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-05-28 11:28:57 -03:00
Agustin Pane 2eeb9fc094
Fix icons on send and receive buttons (#962) 2020-05-28 07:33:37 -03:00
fernandomg 4e6741e1b9 fix: set proper transaction statuses 2020-05-28 01:07:05 -03:00
fernandomg 1453de1162 fix: avoid accessing `txHash` if it's not defined
This scenario can be reproduced by rejecting a tx in the owner's wallet
2020-05-28 01:03:08 -03:00
fernandomg aefe721e8f fix: owners column buttons statuses 2020-05-28 01:02:19 -03:00
Mati Dastugue bc2b6da5e4 Fix ledger issue 2020-05-27 21:11:52 -03:00
Mati Dastugue bf5a24d762 Fix merge 2020-05-27 21:08:20 -03:00
fernandomg a68a2d32d0 feature: calculate `safeTxHash` on client-side 2020-05-27 17:55:41 -03:00
fernandomg a5a99167f4 fix: set default values for decimals and symbol to ETH 2020-05-27 14:34:25 -03:00
fernandomg 62f1a82793 chore: fixes after merge 2020-05-27 13:37:51 -03:00
nicosampler afa1f92d3d Fix app crashing when safeTransactions is undefined 2020-05-27 13:17:11 -03:00
fernandomg 43acdfb95c Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	src/routes/safe/components/Balances/index.tsx
#	src/routes/safe/components/Transactions/TxsTable/index.tsx
#	src/routes/safe/container/hooks/useLoadSafe.tsx
#	src/routes/safe/container/index.tsx
#	src/routes/safe/store/actions/fetchTransactions.ts
#	src/routes/safe/store/actions/transactions/addOrUpdateTransactions.ts
#	src/routes/safe/store/middleware/notificationsMiddleware.ts
#	src/routes/safe/store/models/transaction.ts
#	src/routes/safe/store/reducer/transactions.ts
2020-05-27 13:12:09 -03:00
fernandomg 85b132de6b refactor: FetchTransactions.ts from class to module 2020-05-27 13:04:10 -03:00
fernandomg e08083743d refactor: fetch safe and tokens simultaneously 2020-05-27 10:13:28 -03:00
fernandomg 823fc40f7d refactor: simplify safe's fields selectors 2020-05-27 10:10:13 -03:00
fernandomg d0d19b0b3e refactor: use default values for immutable getters 2020-05-27 10:09:28 -03:00
fernandomg 7c2f27cf2d chore: clean file 2020-05-27 08:56:47 -03:00
fernandomg 3b94bc906c refactor: wrap `generateBatchRequest` into a more meaningful/descriptive funciton 2020-05-27 08:55:32 -03:00
fernandomg 6fb71d1ec4 chore: add types
Not sure right now how to properly deal with `d.ts` files. So, I decided to let those types that depend on others inside a module.
2020-05-27 08:55:30 -03:00
Agustin Pane de4d564955
(Feature) #554 - Safe creation tx details (#894)
* ChecksumAddresses when add new addressBook entry
ChecksumAddresses when add new owner
ChecksumAddresses when replaces owner

* Refactor expandedTx to show creation safe data

* Export CreationTx, IncomingTx and OutgoingTx render to components
Rename components

* Renames addMockSafeCreationTx to getCreationTx

* Avoid unnecessary fetch of creation tx after the first fetch

* - Loads creationTx once the safe loads
- Adds addOrUpdateTransactions.js
- Adds fetchSafeCreationTx.js
- Removes creationTx logic from fetchTransactions.js
- Updates notificationsMiddleware.js

* Fixs getAwaitingTransactions

* Remove creationTx selector

* Merge branch 'development' of https://github.com/gnosis/safe-react into 416-contract-version-improvements

# Conflicts:
#	src/routes/safe/components/Balances/index.tsx
#	src/routes/safe/container/index.tsx

* Merge branch 'development' of https://github.com/gnosis/safe-react into 416-contract-version-improvements

# Conflicts:
#	src/routes/safe/components/Balances/index.tsx
#	src/routes/safe/container/index.tsx

* Fix date column in safe creation

* Add copy and etherscanlinks to creation safe details

* Fix hooks import
2020-05-26 15:00:26 -03:00
fernandomg 1947f1c470 refactor: import web3ReadOnly as web3 2020-05-26 08:19:09 -03:00
fernandomg bce4cf60e0 fix: use selector for `cancellationTxs`.
This will prevent errors when there's no `cancellationTx` existent for the current safe as the selector defaults to an empty Map.
2020-05-26 08:17:20 -03:00
Mikhail Mikheev 5803ca0ea4 fix hooks import casing 2020-05-25 16:07:40 +04:00
Mikhail Mikheev 9e39b81f9c Merge branch 'development' of github.com:gnosis/safe-react into empty-space-validator 2020-05-25 16:01:12 +04:00
Mikhail Mikheev c8e9ef9a3a fix hooks import casing 2020-05-25 15:43:00 +04:00
fernandomg 9b257d901a fix: properly update txs status on safe's startup 2020-05-23 15:51:23 -03:00
fernandomg e9153c54d4 fix: wallet connection 2020-05-23 11:24:21 -03:00
Mikhail Mikheev fc89af57aa
Merge pull request #952 from gnosis/stepper-transparent-bg
Bug: Stepper component non-transparent bg
2020-05-23 12:10:24 +04:00
fernandomg 1742f84b86 fix: `Hooks` import 2020-05-23 03:08:58 -03:00
fernandomg bbf6d4a28d Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	src/routes/safe/container/index.tsx
2020-05-23 02:58:32 -03:00
fernandomg 00b1c7c3b0 chore: change hooks imports to relative paths 2020-05-23 02:53:14 -03:00
fernandomg 66b02b401d fix: update mocked tx status based on the tx receipt 2020-05-23 02:38:25 -03:00
fernandomg 46c9ac3e03 refactor: update tx status when provider changes 2020-05-23 02:09:21 -03:00
fernandomg 2c41105474 feature: set tx's owners pending status 2020-05-23 01:54:37 -03:00
fernandomg 165d0ff0d6 feature: add owner's _pending_ bullet icon 2020-05-22 23:49:22 -03:00
fernandomg 92ad62800e fix: typos and types 2020-05-22 23:48:24 -03:00
fernandomg 5a02cbfc9a fix: remove old `index.jsx` file 2020-05-22 17:19:35 -03:00
fernandomg 209d373516 fix: leave blank the default token for Send Funds modal 2020-05-22 17:05:27 -03:00
fernandomg 926795eef1 refactor: transactions table info and details 2020-05-22 16:50:24 -03:00
fernandomg 6c1bc100b6 refactor: allow adding mocked transactions 2020-05-22 16:50:17 -03:00
fernandomg 376af39f3c refactor: notifications middleware 2020-05-22 16:50:10 -03:00
fernandomg c9a01f6892 refactor: modify how transactions returned by server are processed 2020-05-22 16:49:59 -03:00
fernandomg 89261d0ed3 refactor: (cancellation)transactions reducers and actions 2020-05-22 16:49:48 -03:00
fernandomg d0dbd8a28c fix: prevent identicon error when no address is provided 2020-05-22 16:49:08 -03:00
fernandomg b4a470a770 chore: fix build after development merge 2020-05-22 16:48:57 -03:00
Mati Dastugue 5981ee111d Fix file name 2020-05-22 13:09:57 -03:00
Mati Dastugue f9493c1cd7 Merge with develop 2020-05-22 12:27:55 -03:00
Agustin Pane 425f1ad3e5
(Fix) - #623 Fixes short tx data (#928)
* Fixs short tx data

* Feedback
2020-05-22 11:46:20 -03:00
fernandomg 1be3aa0e3a Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	package.json
#	yarn.lock
2020-05-22 11:25:06 -03:00
Mikhail Mikheev 203c8b0ab3
Remove react_app_apps_disabled env var (#953) 2020-05-22 09:31:24 -03:00
Mikhail Mikheev 14d9a3a78f fix required validator 2020-05-22 14:33:08 +04:00
Mikhail Mikheev 26e9c1cb67 add transparent bg to stepper root in mui theme 2020-05-22 13:56:53 +04:00
nicolas 1ae63f6784
Clean up dependencies (#944)
* Clean up dependencies

* Fix css mixing not being called
2020-05-22 13:48:27 +04:00
fernandomg fb31bcad2b Merge branch 'development' into 536-notifications-status-labels-sync 2020-05-22 00:36:43 -03:00
Agustin Pane 7cc6349785
Fix: app crashing when safe address is null (#947)
* - Fixs non null check on notificationsMiddleware.ts

* - Fixs non null check on notificationsMiddleware.ts

* - Removes yarn.lock changes
2020-05-21 14:57:03 -03:00
Mati Dastugue 3a30db8068 Merge with dev. Fix ts 2020-05-21 13:06:00 -03:00
nicolas 982d79c0d0
Migrating to Typescript and bringing back react-scripts (#933)
* remove flow from src

* remove unused files

* remove rules from eslint

* replace absolute paths

* add tsconfig

* update package.json

* remove babel-polyfill

* eslint fix

* remove jsconfig.json

* replace .scss by .module.scss

* Revert "replace absolute paths"

This reverts commit e430c71263a1a4c190d50e72271bba7ea6356bc4.

* replace ~/ by src/

* js fixes

* scss fixes

* fix unused vars

* adding eslint

* adding back config folder

* fix eslint and prettier

* force build

* fix baseUrl

* rename js/jsx to ts/tsx

* some rules

* rename files with jsx syntax to tsx

* fix app build

* Revert "fix baseUrl"

This reverts commit 523f29c7b61e14dd6be0ffc3cd199ff399157467.

* some fixes

* replace ts to tsx

* some TS fixes

* more tsc changes

* more tsc fixes

* more fixes

* more ts fixes

* more fixes

* last fix

* fixes

* prettier fix

* some fixes

* fix safe information aligment

* add yarn.lock

* fix blockies and build memory space

* include blockies in tsconfig

* fix blockies

* fix blockies import

* fix Identicon component

* fix build command

* Fix ref type in Identicon

* add libusb-1.0-0-dev to travis

* build command fix [2]

* build command fix [3]

* fix margin layout

* Update  yarn lock

* remove @ts-ignore

* hide Critial dependency

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
2020-05-20 16:15:21 -03:00
Mati Dastugue 593b077ec4 Enable trezor 2020-05-19 17:52:09 -03:00
Mati Dastugue 51f6c9a3e8 Fix trezor connect 2020-05-19 17:42:41 -03:00
Mikhail Mikheev 6377c80e4f
Feature #739: Deployment screen improvements (#908)
* Dep bump

* add deps to useEffect hook

* Revert "Dep bump"

This reverts commit f22795296cd7989ecda594ffef4478c2f5d92911.

* fix / redirect

* Fix currency fetch 400 error

* extract tab labels to components

* fix currency dropdown not showing, rename DropdownCurrency component to CurrencyDropdown

* Fix loader component type

* move steps to a separate file

* make confirmation banner green

* track safe creation in analytics

* add back button

* remove width style from backbutton

* remove width style from backbutton (prev was just commented)

* remove components-v2 and use safe-react-components

* fix duplicated import

* bring back addressinfo component because it was not included in safe-react-components

* Fix broken import (CurrencyDropdown component was renamed)

* add CustomIconText component to fix transaction tab crash

* bring back ListLayoutComponent
2020-05-19 15:55:35 +04:00
Agustin Pane df8897c284
Adds copy to clipboard in owners table (#918) 2020-05-15 11:59:10 -03:00
nicolas 77e4987919
Inform the user if a Safe-App initiate a malformed TX (#895)
* @gnosis.pm/safe-react-components from NPM

* Infor is TX is malformed

* review fixes

* improve names

* review fixes

* trigger build
2020-05-14 10:50:04 -03:00
Fernando c396b3eaf8
(Feature) Easier Smart Contract Interaction (#741) 2020-05-13 17:06:01 -03:00
Agustin Pane 30ab99c79c
(Fix) #876 - Checksummed addresses (#884)
* Checksum addresses when build address book from localStorage
Checksum owner's addresses when build safe from localStorage

* ChecksumAddresses when add new addressBook entry
ChecksumAddresses when add new owner
ChecksumAddresses when replaces owner

* Adds checksumAddress function
Replaces old web3 usage with checksumAddress

* Refactors all web3.utils.toChecksumAddress with checksumAddress()

* Fix duplicating var name
2020-05-12 15:33:39 -03:00
Mikhail Mikheev 7c141ca1ad Fix currency fetch 400 error 2020-05-12 13:24:18 -03:00
Mati Dastugue 30105ecda0 Disable trezor fot the first release 2020-05-12 11:40:19 -03:00
Mikhail Mikheev c2c100550f Merge branch 'development' of github.com:gnosis/safe-react into 536-notifications-status-labels-sync 2020-05-12 13:42:27 +04:00
fernandomg 141e05c2e8 feature: WIP - add mocked tx to the list 2020-05-12 00:40:49 -03:00
fernandomg be4caa1baf refactor: remove duplicated and unused functions 2020-05-11 23:04:04 -03:00
fernandomg 363e9f3888 fix: evaluate storedTransactionIndex as number 2020-05-11 23:02:07 -03:00
Mati Dastugue f2dd025afc Add trezor support 2020-05-11 18:36:39 -03:00
fernandomg 5c95d1f220 Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	src/routes/safe/components/Balances/SendModal/screens/SendCollectible/index.jsx
2020-05-11 08:49:15 -03:00
fernandomg 21181400c8 fix: owner address lookup from tx.confirmation list 2020-05-10 17:40:04 -03:00
fernandomg 72d28470b2 Merge branch 'development' into dont-fetch-ownername-in-fetchTransactions 2020-05-10 17:31:00 -03:00
fernandomg b99cf3a02a fix: owner address lookup from tx.confirmation list 2020-05-10 17:26:39 -03:00
nicolas 7bc9cd7a94
remove trailing slash for Apps env var (#891) 2020-05-08 18:58:06 -03:00
Agustin Pane 4098a8b9cf
(Fix) #511 - QR scan button (#873)
* Creates ScanQRWrapper to avoid duplicated logic
Refactors components that uses ScanQRWrapper

* Adds closeQrModal to props.handleScan callback

* Fixs mutators usage on components with qrScanWrapper

* Exports getNameFromAdbk
Fixs displaying address on send funds, also displays the name

* Fixs sendCustomTx qrCode
Fixs sendCollectible qrCode
Fixs loadAddress qrCode
2020-05-08 17:09:49 -03:00
fernandomg de65b2914b Merge branch 'development' into 536-notifications-status-labels-sync
# Conflicts:
#	package.json
#	src/routes/safe/components/Transactions/TxsTable/columns.js
#	src/routes/safe/store/actions/fetchTransactions.js
#	yarn.lock
2020-05-07 19:25:19 -03:00
fernandomg 82b786cc54 fix: properly set safeAddress key for incomingTransactions 2020-05-07 19:19:40 -03:00
nicolas abb600d837
improve calculation of TX mined (#886) 2020-05-07 17:21:55 -03:00
Richard Meissner 051080c239
Fix #834: Do not remove trailing slash from Safe app url (#839)
* Fix #834: Do not remove trailing slash from Safe app url

* Use correct url in id

* prevent adding existing App

* Limiting App name length persisted in origin field

Co-authored-by: Richard Meissner <richard@gnosis.io>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
2020-05-07 08:47:51 -03:00
Agustin Pane a98652abe4
(Fix) - 772 safe zero balances (#832)
* Refactor currency values:
- Creates middleware to save currency values on actions
- Replaces currency values model to be safeAddress-dependant
-

* - Adds all the safes balances on safe load
- Saves the currency values status to localStorage on the middleware

* Fixs equals comparation used to avoid unnecessary dispatchs

* Update naming

* Fixs rate type

* Fixs wrong variable usage

* Removes currencyBalances from localStorage, just saves currencyRate and currencyValueSelected

* Renames currencyValueSelected to currencyValueSelected

* Refactors currencyValueSelected to selectedCurrencyValue

* Refactors selectedCurrencyValue to selectedCurrency
2020-05-06 17:03:59 -03:00
Mati Dastugue 377df43168
Merge pull request #880 from gnosis/fix/desktop-banner
Disable Analytics and Cookie Banner
2020-05-06 10:04:42 -03:00
Agustin Pane 498dca8afa
Fixs click away listener (#874) 2020-05-06 09:54:20 -03:00
fernandomg e402b51ff8 Merge branch 'development' into dont-fetch-ownername-in-fetchTransactions
# Conflicts:
#	yarn.lock
2020-05-05 17:11:46 -03:00
Agustín Longoni 05b3fd9b48
(Fix) Safe apps list is not scrolling #835 (#859)
* add scroll and styles

* Update Layout.jsx

Co-authored-by: lukasschor <lukas.schor@gnosis.pm>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
2020-05-05 15:44:55 -03:00
nicolas a79a86e5cc
Apps fixes (#871)
* Fix 850

* Fix 853

* Apps flag using string value

* Fix unresponsive app when switching to another app

* Fix Apps send TX

* Confirmation Modal, correct app name
2020-05-05 14:24:46 -03:00
Mati Dastugue c6f911b8ad
Merge pull request #854 from gnosis/feature/wallet-dashboard
Wallet dashboard
2020-05-05 10:59:33 -03:00
Mati Dastugue 0a38e3c4ea Remove cookie banner for the desktop app 2020-05-04 12:12:38 -03:00
Agustin Pane c6233a3fee
Fixs race condition when loading collectibles (#855) 2020-05-04 10:51:09 -03:00
Mikhail Mikheev a533f576c3 fetch transactions refactoring wip 2020-04-30 18:56:27 +04:00
Mati Dastugue 041e97c19c Merge branch 'development' of github.com:gnosis/safe-react into feature/wallet-dashboard 2020-04-30 10:34:04 -03:00