* Makes getGasEstimationTxResponse exportable
* Add check for failing txs on approveTxModal
* Adds styles for reviewTx
* Adds useTxSuccessCheck hook
* Adds checkIfTxWillFail function
* Uses checkIfTxWillFailAsync on reviewTx modal
* Improves approveTx modal
* Add check for failing transaction in contract interaction modal
* Add check for reviewCollectible
* Fix check on sendFunds reviewTx
* Adds styling for contractInteraction modal
* Fix gas calculation for native token transfers
* Rename estimateDataGasCosts to parseRequiredTxGasResponse
Adds getPreValidatedSignatures
Refactor estimateTxGasCosts
Refactor checkIfExecTxWillFail
* Refactor checkIfExecTxWill usage
* Refactor checkIfTxWillFailAsync in ReviewTx
* Use getPreValidatedSignatures in createTransaction()
* Refactor estimateTxGasCosts
Rename estimateSafeTxGas to estimateExecTransactionGas
* Refactor ReviewTx: extract useEffects to hooks
* Remove unnecessary gas transfer amount
* Refactor estimateTxGasCosts: extract checkIfTxIsExecution and estimateTxGas
* Fix tx amount
Remove console log
* Moves useCheckIfTransactionWillFail to logic/hooks folder
* Replaces useEffect usage with useCheckIfTransactionWillFail hook
Also fix how some modals fetch the safeAddress
* Improves modal's wording
* Fix error parsing the cancel transaction error message from GETH nodes
* Remove useCheckIfTransactionWillFail
Adds useEstimateTransactionGas
Renames estimateTxGas to estimateTransactionGas
Removes estimateTxGasCosts
Removes checkIfExecTxWillFail
* Replace useCheckIfTransactionWillFail from modals with useEstimateTransactionGas
* Replace estimateGasCosts from every review tx modal with useEstimateTransactionGas
* Replace estimateGasCosts from every review tx modal with useEstimateTransactionGas
* Extract isExecution calculation to useEstimateTransactionGas
* Creates TransactionFailText
* Uses TransactionFailText in the review modals
* Fix wrong selector usage
* Fix missing null check on cancel tx confirmations
* Add guard for CLOSE_SNACKBAR action when tx was already dismissed
* Improves useEstimateTransactionGas in review custom tx and contract interaction review
* Fix review replace/remove/add owner modals styling
* Refactor response of useEstimateTransactionGas
* Remove safeAddress as param to the useEstimateTransactionGas
* Improves how threshold is obtained in useEstimateTransactionGas.tsx
* Rename gasCostHumanReadable to gasCostFormatted
* Add operation to useEstimateTransactionGas
* Refactor ConfirmTransactionModal to use useEstimateTransactionGas
* Refactor proccessTransaction to use getPreValidatedSignatures method
* Fix default export of ApproveTxModal
* Rename estimateExecTransactionGas to estimateGasForTransactionCreation
Remove estimateTransactionGas from gas.ts
* Make estimateGasForTransactionCreation throw error instead of 0 gas
* Adds estimateGasForTransactionExecution and estimateGasForTransactionApproval to gas.ts
* Move estimateTransactionGas to useEstimateTransactionGas
Refactors useEstimateTransactionGas to return isCreation and isOffChainSignature
* Type and refactor generateSignaturesFromTxConfirmations
Moves getPreValidatedSignatures to safeTxSigner.ts
* Uses confirmations to estimateGasForTransactionExecution
* Adds TransactionFeesText component
Uses TransactionFeesText on ApproveTxModal
* Pass more parameters to estimateGasForTransactionExecution
* Removes unnecessary parameter in getNewTxNonce
* Moves checkIfOffChainSignatureIsPossible to safeTxSigner.ts
* Fix check for null confirmations
* Uses checkIfOffChainSignatureIsPossible on createTransaction.ts
* Move TransactionFailText inside TransactionFees component
* Pass safeTxGas to useEstimateTransactionGas.tsx
Improves how we use default params
* Fix gas iteration on estimateGasForTransactionExecution
* Fix estimateGasForTransactionExecution calculation
* Fix generateSignaturesFromTxConfirmations calculation
* Remove unnecessary Promise and await
* Fix estimateGasForTransactionExecution for preApproving owner case
* Improve logging
* Uses operation in useEstimateTransactionGas
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: Fernando <fernando.greco@gmail.com>
* Deduplicate dependencies
* Upgrade @truffle/contract to latest v4.3.0
* Upgrade dependencies with minor changes
* Upgrade electron-builder configuration
* Upgrade typescript to latest version
* Upgrade safe-apps-sdk to latest version
Remove autoprefixer dependency
* Avoid displaying notification for non updated owner
* Remove old selector usage on welcome page
* Remove provider props on WelcomeLayout
Fix removing safe behaviour
* Fix missing undefined property check on cancelThresholdReached
* Removes the default safe when removing the safe marked as default
* Remove index
* Change react import
* Fix relative path for relocate url
* Adds removeLocalSafe action
Uses removeLocalSafe on onRemoveSafeHandler also removes default safe
* Refactor SafeListSidebar uses redux-hooks approach
* Disabled save button when the owner name input is pristine
* Adds shouldSafeBeUpdated to avoid updating unnecessary the safe
* Fix css typing
* Moves equalArrays to utils function
Improves how updateSafe is dispatched within checkAndUpdateSafe to avoid unnecessary re renders
* Revert some default cases fixes
* Adds equalArrays tests
* Add test to arrays.test.ts
* Improves shouldSafeStoreBeUpdated order and renames it
* Adds shouldSafeStoreBeUpdated.test.ts
* Uses shouldSafeStoreBeUpdated within safe reducer
* Replaces equalArrays with isEqual from lodash
* Simplify shouldSafeStoreBeUpdated using isEqual from lodash
* Remove lodash to compare Immutable objects correctly
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* Adds shouldSafeBeUpdated to avoid updating unnecessary the safe
* Fix css typing
* Moves equalArrays to utils function
Improves how updateSafe is dispatched within checkAndUpdateSafe to avoid unnecessary re renders
* Revert some default cases fixes
* Adds equalArrays tests
* Add test to arrays.test.ts
* Improves shouldSafeStoreBeUpdated order and renames it
* Adds shouldSafeStoreBeUpdated.test.ts
* Uses shouldSafeStoreBeUpdated within safe reducer
* Replaces equalArrays with isEqual from lodash
* Simplify shouldSafeStoreBeUpdated using isEqual from lodash
* Remove lodash to compare Immutable objects correctly
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* Makes getGasEstimationTxResponse exportable
* Removes the race condition between useLoadSafe and useSafeScheduledUpdates
* Reword safeLoaded
* Improve check for setIsSafeLoaded
* add cards and styles on texts
* add styles and content
* align card content
* fix text about Safe Multisig
* add new components from SRC
* update SRC
* changes to welcome page
* fix margins
* update SRC
* fix icon size
* update SRC hash
* Dot: replace number by check when wallet is connected
* fix card width
* add url to help to connect wallet.
* remove underline on button as a link (Load Safe).
* Fix buttons
* disable connect wallet button when there is a connected wallet
* fix padding in New Transaction button
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* Remove Warning: React.createFactory() is deprecated
* make TS recognize Window definition by adding an empty export
* Silent MM warning ethereum.autoRefreshOnNetworkChange
* remove warning when requesting data from contract with null address.
* use createStyles/makeStyles
* simplify `addressBookQueryParamsSelector`
* avoid using `createSelector`
as memoization in this scenario is not working as expected and list is not refreshed
* refactor `uniqueAddress` curried function and strategy to validate
- `selectedEntry` being `null` made the code harder to follow
* fix `uniqueAddress` validator tests
* use arrow function
* reactGA bump
* remove address from GA
* remove unneeded option
* Disable travis cache
* Set travis to use latest linux build image
* Update to use python3 dependencies
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
* Fix black notification
* Fix executing tx even if the user rejected it
* Fix hidden metamask error code
* Fix proccessTransaction notifications and metamask sign reject handling
* add form level validation for OwnersForm
- also fixed `calculateValuesAfterRemoving` function that removed an owner's row by clicking on the trash icon
* add tests for `calculateValuesAfterRemoving` function
* reformat with prettier
* Upgrade dependencies without breaking changes
* Upgrade react-scripts to v4
* Use import instead of require in icons
* Update styles dependencies
* Remove react-app-rewired as is deprecated and not needed anymore
* Update prettier and testing-library/react dependencies
* Upgrade @ledger for desktop app
* Fix types in fetchSafeTokens test
* Use rescripts to remove ESLint plugin from react-scripts webpack
* Disable travis cache
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>