* Remove the auto adding owners when the safe loads
* Let the user add "invalid names" in the addressbook and also shows them on the addressbook
* Fix update name of safe if addressbook updated
* Removes unused addSafe action, replaces it with addOrUpdateSafe
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* Bump new onboard.js version
* Detect if port is used and change it if needed before starting the server
* Fix icon creation
* Fix formatting
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
* Update travis script to execute tests
* Update ReviewInformation components to remove type error
* Fix tests and import types without .d
* Upgrade dependencies with minor changes
* Fix addressbook types
Restructure addressbook store type
* Add more safe types
* Fix imports
* Removes .toJS() usage
* Fix condition for saving addressBook
* Types & remove send button from addressbook if user not an owner
* Add types for addressBook actions
Remove unused saveAndUpdateAddressBook action
* Refactor addressBook: make it global and removes immutableJS
Removes unused addAddressBook action
* Fix edit and remove entries style when user is not owner
* Adds and updates safe name in addressBook
* Adds checkIfOwnerWasDeletedFromAddressBook
Let the user remove owners users without adding them again each time the safe loads
* Simplify loadAddressBookFromStorage
* Fix compilation errors included in pr #1301
* Uses sameAddress function
* Add migration function for old stored address books
* Replaces shouldAvoidUpdatesNotifications with addAddressBookEntryOptions on addAddressBookEntry
* Unify return on getOwnersWithNameFromAddressBook
* Adds the addressbook names in safe load
* Reword shouldAvoidUpdatesNotifications
* Replaces adbk with addressBook
* Renames adbk to AddressBook
* Types on Open and Layout
* Remove unused actions and selectors
* Replaces initialValuesFrom to a hook and retrieves the ownerName
* Uses addressBook names in safe creation
* Fix owner name on creating safe
* Renames getNameFromAddressBook to getNameFromAddressBookSelector
* Fixs addOrUpdateAddressBookEntry action
* Updates addressbook on safe load
* Revert load update addressbook behaviour
* Renames checkIfOwnerWasDeletedFromAddressBook to checkIfEntryWasDeletedFromAddressBook
* Feedback
* Type review informaiton
* Adds ADD_OR_UPDATE_SAFE action
* Replaces addSafe with addOrUpdateSafe on addSafeHandler
* Exports isValidAddressBookName util function
* Adds isValidAddressBookName test
* Add tests for checkIfEntryWasDeletedFromAddressBook
* Fix saveAddressBook test
* Fix fetchSafeTokens.test.ts
* Add update individually safe props in addOrUpdate
* Fix updating addressbook entries on safe load/create
* Fix always loading safe as LOADED SAFE instead of safe name
* Fix adding owner as UNKNOWN on addressBook when adding new owner
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* use `updateSafe` instead of `addSafe`
* fix SAFE_UPDATE reducer
- treat every key individually
* allow to load owners on the first request
* Set UPDATE_SAFE to individually handling all props
* Handle List special case
* Add comment to list check
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* use `safeFeaturesEnabled` selector
also organized a bit the code (styles) and added Types for the `ChooseTxType` component
* fix `getGnosisSafeInstanceAt` return type
* add types to `safeStorage`
refactor `getSafeName`
* use redux selector to obtain master contract version
* fix return type
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* fix address being used as name
* Restore ENS name when sending transaction
* use `addressName` as default value if it happens that the name in the addressBook is not defined
* use resolvedAddress to filter by address in the address book
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
* Fix addressbook types
Restructure addressbook store type
* Add more safe types
* Fix imports
* Removes .toJS() usage
* Fix condition for saving addressBook
* Types & remove send button from addressbook if user not an owner
* Add types for addressBook actions
Remove unused saveAndUpdateAddressBook action
* Refactor addressBook: make it global and removes immutableJS
Add types
Removes unused addAddressBook action
* Remove todo
* Fix edit and remove entries style when user is not owner
* Adds and updates safe name in addressBook
* Adds checkIfOwnerWasDeletedFromAddressBook
Let the user remove owners users without adding them again each time the safe loads
* Simplify loadAddressBookFromStorage
* Fix compilation errors included in pr #1301
* Uses sameAddress function
* Add migration function for old stored address books
* Update tests
* Replaces shouldAvoidUpdatesNotifications with addAddressBookEntryOptions on addAddressBookEntry
* Update tests
* Unify return on getOwnersWithNameFromAddressBook
* Reword shouldAvoidUpdatesNotifications
* Replaces adbk with addressBook
* Fix condition
* Fix typos
* Fix typo
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* fix currency middleware, actinos, cleanup & bugfix
* mergeDeep in reducer
* dont modify state in add_safe if same already exists
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* Fix load current session
* Fixs useMemo usage in filteredData
* Type fetchTokens
* Type useFetchTokens
* Type setCurrencyBalances
* Fixs ADD_SAFE reducer for existing safe, uses mergeDeep instead of merge, now the active tokens for the safe are not overwritten
* Fix save selected currency
* Adds excludeSpamTokens param in fetchTokenCurrenciesBalances
* Adds onlyTrustedTokens param in fetchTokenCurrenciesBalances
* Merge with development
* Remove onlyTrustedTokens param
* Fix unnecesary changes
* Replace Dispatch with ThunkDispatch
* Fix import consistency
* Type containsMethodByHash
* Fix blacklisted addresses calculation
* Adds types on updateActiveTokens
Adds types on updateBlacklistedTokens
* Refactor Tokens to TokenList, makes it functional component
also fix blacklisted addresses calculation
* Refactor Tokens to TokenList, makes it functional component
also fix blacklisted addresses calculation
* Refactor AddCustomToken, add types
Removes actions from Tokens
* Fix warning on useEffect
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* dep bump, enable strictNullChecks ts compiler option
* remove unused imports
* nullchecks errors wip
* fix clipboard func type errors
* fix send funds validation
* Update style load in ThresholdSettings
* Fix isValidAddress default state for SendCollectible
* fix OwnersColumn return type
* fix extractUsefulMethods typing
* Bug: incoming transactions do not load if it fails to fetch gas for a transaction (#1321)
* check if gas returned values are valid when loading token info for incoming tx
* Fix generateBatchRequests
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
(cherry picked from commit 372d27f5a6)
* Revert "Revert "Tech debt 1265: Enable strictNullChecks TS compiler option (#1301)" (#1335)"
This reverts commit 43bc4984b8.
* Fix safe clean load
Fix transaction nonce get
* Fix issue adding owners again after reloading the page
* Add viewedSafes correctly to current session
* Add typing and reduce dependency with immutable
* Rename SerializedSessionState to CurrentSessionState
* Remove immutable from currentSession
* Use Dispatch type defined using ThunkDispatch
* Remove if as parameter should always be defined
* Fix test typo issues
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
* Set desktop app build on workflow_dispatch
* Update workflow_dispatch
* Add yarn cache to build desktop app
Upgrade electron to latest compatible version
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
* fix: prevent runtime error when prev is `undefined`
* fix: prevent runtime error when prev is `undefined`
* fix: prevent runtime error when 'safes' is `undefined`
* fix: add `dataDecoded` to the mocked tx so information is properly displayed for known methods
* fix: set 'pending' status for tx being processed
- given that the confirmations key is no longer an empty array, tx status must be explicitly set this way
* fix: properly update mockedTx
* fix: hide buttons when tx is pending
* fix: type error
* Rollback patches trying to fix bug
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
* fix Sidebar position
* fix padding
* fix padding and margin Help Center and Not connected Icon
* add scroll to Sidebar List menu
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
* Add tooltip info
* Update icon and types
* Hide tooltip when value and balance are equal to 0
* Remove onClick + Improve perfomance issues
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>