* Bug: Use link tag instead of javascript navigation in apps list (#1770)
* Use list instead of programmable navigation
* add declaration for styled-components theme
* (Fix) - Calculates gas for SpendingLimit transactions (#1773)
* Calculates gas for spendingLimit transactions
* Adds TransactionFees component inside UpdateSafeModal
* Fix send collectible gas calculation
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
* 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.