Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Release v2.19.0 #1828

Merged
merged 25 commits into from
Feb 2, 2021
Merged

Release v2.19.0 #1828

merged 25 commits into from
Feb 2, 2021

Conversation

dasanra
Copy link
Collaborator

@dasanra dasanra commented Jan 29, 2021

Added

Fixed

Chore

  • Upgrade dependencies

mmv08 and others added 19 commits January 13, 2021 17:28
* Use list instead of programmable navigation

* move color style to appcard

* use color from theme

* add declaration for styled-components theme
add data-testid for sidebar

add id for recipient field

Co-authored-by: Daniel Sanchez <[email protected]>
Co-authored-by: Fernando <[email protected]>
Backmerge release v2.18.0 to development
…tion

Mergeback hotfix v2.18.1 to development
* Fix checkIfTxIsExecution method implementation

* Add tests for checkIfTxIsExecution/checkIfTxIsCreation/checkIfTxIsApproveAndExecution/

* Minimice number of ifs with same result

Co-authored-by: Mati Dastugue <[email protected]>
Co-authored-by: Daniel Sanchez <[email protected]>
* Fix gas estimation for transaction creation

* Adds missing logs

Co-authored-by: Daniel Sanchez <[email protected]>
…1792)

* Don't use multisend if txs.length = 1

* calc txData inside useMemo

* fix sending txs from apps, use correct operation/recipient

Co-authored-by: Fernando <[email protected]>
Co-authored-by: Daniel Sanchez <[email protected]>
* Add dHedge safe app

* Disable volta build for all PRs and leave only for release branch and master
* Adds isTupleParameter validation to the extractMethodArgs

* Improves tuples parsing

* Show examples for txs inputs

* Remove MethodsInputExamples

Co-authored-by: Mati Dastugue <[email protected]>
* Guard for empty result

* Type TextField

* Fix warning of InputAdornment in SendFunds modal

* Re-enable gas estimation for wallet connect

* Replace web3.call on parseRequiredTxGasResponse with axios post to infura

* Adds estimateGasWithInfura and estimateGasWithWeb3Provider for changing the estimation method if we are in a non-infura-supported network

* Revert calculateMinimumGasForTransaction change to leave the change for the already-open pr

* Renames estimateGasWithInfura with estimateGasWithRPCCall
Replaces web3 with web3ReadOnly in estimateGasWithRPCCall

Co-authored-by: Mati Dastugue <[email protected]>
Co-authored-by: Fernando <[email protected]>
Co-authored-by: Daniel Sanchez <[email protected]>
* (Feature) - Support for .crypto resolution

* Fix EthereumAddress validator error msg

* Extract unstoppable domains logic to an util

* Add singleton to UnstoppableDomains instance

* Shorten address or domain validation error message

Co-authored-by: sudoryan <[email protected]>
@dasanra dasanra self-assigned this Jan 29, 2021
@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@mmv08
Copy link
Member

mmv08 commented Jan 29, 2021

So we're not including the WC app? :(

@github-actions
Copy link

github-actions bot commented Jan 29, 2021

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 3 0
Ignored 7 N/A
  • Result: ✅ success

  • Annotations: 3 total


[warning] @typescript-eslint/explicit-module-boundary-types

Require explicit return and argument types on exported functions' and classes' public class methods


Report generated by eslint-plus-action

@dasanra dasanra requested a review from francovenica January 29, 2021 12:18
@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/xdai/app

@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/xdai/app

@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/volta/app

* Makes getGasEstimationTxResponse exportable

* Add check for failing txs on approveTxModal

* Adds styles for reviewTx

* Adds useTxSuccessCheck hook

* Remove 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

* Remove logs

* 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

* Remove comment

* 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

* Remove unnecessary styles

* Fix imports

* Remove css

* Fix missing style

* Remove duplicated function

* Fix modal height

* 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 hook dependency

* Add active screen types in send modal

* SafeInfo: replace AddressInfo by EthHashInfo

* Fix review replace/remove/add owner modals styling

* AdvancedOptions without funcionality

* change button text

* fix margins and texts

* fix close button margin

* rename ReviewTx by ReviewSendFundsTx

* safe params: partial implementation

* make use of useTransactionParameters hook

* 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

* form, accordion, validations

* 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

* Add in contractInteraction

* review custom TX

* review collectible

* Type and refactor generateSignaturesFromTxConfirmations
Moves getPreValidatedSignatures to safeTxSigner.ts

* Uses confirmations to estimateGasForTransactionExecution

* Adds TransactionFeesText component
Uses TransactionFeesText on ApproveTxModal

* Update text

* Update text

* Remove unnecessary condition

* Pass more parameters to estimateGasForTransactionExecution

* Removes unnecessary parameter in getNewTxNonce

* Moves checkIfOffChainSignatureIsPossible to safeTxSigner.ts

* rename AdvancedOptions and add parameters in add owner

* replace owner - remove owner

* Fix check for null confirmations

* Uses checkIfOffChainSignatureIsPossible on createTransaction.ts

* Policies

* Move TransactionFailText inside TransactionFees component

* spending limit

* fix textfields gap and margins

* fix margins, text size and textfields disposition

* Remove unnecessary awaits

* Update Accordion comp

* 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

* Remove log

* Fix typo

* merge fixes

* Uses operation in useEstimateTransactionGas

* Uses operation in useEstimateTransactionGas

* add txParameters in ApproveTx

* useEstimateTransactionGas add gasPriceFormatted

* reviewSendFundsTx gasFormatted

* add gasLimit to useEstimateTransactionGas

* Files movement - EditParameters refactor

* tx parameters in creation

* set correct gasPrice

* createTx from contractInteraction

* Fix gas estimation for transaction creation

* disable button while calculating gas

* Add owner - reactor and creation options

* Add owner: remove unused code

* Threshold settings

* fix modal ui bug (tx)

* fix modal ui bug (settings)

* fix modal ui bug (Settings: Policies )

* fix ui bug modal (Spending Limit)

* (Fix) - Calculates gas for SpendingLimit transactions (#1773)

* 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 <[email protected]>

* speding limits

* Remove default exports for spendingLimits

* Fix warning in TxParametersDetail

* Extracts calculateSpendingLimitsTxData logic and add types

* Remove txParameters from setSpendingLimitMultiSendTx/spendingLimitMultiSendTx
Adds log for transaction creation success

* Refactor handleSubmit, now uses calculateSpendingLimitsTxData to calculate the spendingLimit transaction data before submitting
Also calculateSpendingLimitsTxData is used to estimate the amount of gas that the transaction will cost

* disable parameters when needed

* fix parametersStatus condition

* Some fixes

* more fixes

* send directly when tx nonce == safeNonce

* fix tests

* parameters in replace owner and remove owner

* Fix gas estimation issues for Metamask

* FIx Edit transaction parameters src route

* Remove default exports RemoveModuleModal

* Adds advanced parameters in RemoveModuleModal

* Fix css styling of UpdateSafeModal

* Adds EditableTxParameters within UpdateSafeModal

* Fix warning in <Accordion> for compact parameter

* Add advanced settings for RemoveLimitModal.tsx

* Fix txNonce usage in RemoveModuleModal.tsx

* Remove logs

* Fix txNonce param in RemoveLimitModal.tsx

* Remove TODOS for refactoring default case of getParametersStatus in EditableTxParameters

* Add advanced parameters to Safe apps modal

* Force gasPrice and safeTxGas 0 for cancelling transaction

* Invert validation of safeTxGas > ethGasLimit, safeTxGas should be < than ethGasLimit

* Add missing validation for approveTxModal submit button

* Fix checkIfTxIsApproveAndExecution  method
Add tests

* Remove duplication of gas value for calculateGasOf

* Fix gas estimation for execution & approval

* Adds EXTRA_NODE_GAS for the gasLimit calculation

* Revert duplicate of web3.eth.estimateGas

* Revert fix of execution & approval

* Adds closeEditModalCallback in EditableTxParameters

* Accept manual gas price in useEstimateTransactionGas.tsx

* Use manualPrice in sendFunds gas estimation

* Add safeTxGas estimation to Editable TX Parameters

* Set safeTx gasPrice to 0 on tx creation

* Refactor useTransactionParameters with initialValues support

* Refactor EditableTxParameters.tsx, fixs changing gasLimit or gasPrice

* Fix safeTxGas

* Add naming to minimum gas required for a transaction

* Remove log

* Fix nonce calculation for cancel transaction

* Update gas estimation to be more precise and avoid reverts

* Check that only the creator of the transaction or the executor could modify the advanced parameters

* Add validation to submit buttons on modals when the gas estimation is loading

* Fix advanced parameters display in change threshold

* Fix wrong commit

Co-authored-by: Agustin Pane <[email protected]>
Co-authored-by: Daniel Sanchez <[email protected]>
Co-authored-by: Fernando <[email protected]>
Co-authored-by: Agustín Longoni <[email protected]>
Co-authored-by: Mikhail Mikheev <[email protected]>
@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/xdai/app

@ghost
Copy link

ghost commented Jan 29, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/volta/app

@francovenica
Copy link
Contributor

francovenica commented Jan 30, 2021

The spending limit estimation is failing to simulate the tx in the backend.
image.png

If the tx is submitted anyways MM estimates an amount of gas for the tx
image.png

Note: Could it be because the tx is something that doesn't goes through the safe itself.

@francovenica
Copy link
Contributor

francovenica commented Jan 30, 2021

Naming the owners during the loding of a safe is not working properly. Is being moved 1 address in the review step
See how the address 0x11... is being named "trezr" and then in the step review the name is on the address 0x0dc...
Same happens with the other 2 addresses that were given names

Test by loading this safe: 0x9913B9180C20C6b0F21B6480c84422F6ebc4B808

Note: The issue seems to be only with that safe, maybe because it has a lot of owners (11 owners)

image.png
image.png

@francovenica
Copy link
Contributor

francovenica commented Jan 30, 2021

Adding owners is not fully showing the advance parameters. It needs a scroll or force the modal to extend itself
Same issue with "Owner Replacement" and "Owner removal"
image.png

@ghost
Copy link

ghost commented Feb 1, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/xdai/app

@ghost
Copy link

ghost commented Feb 1, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/volta/app

@francovenica
Copy link
Contributor

The issue with spending limit is actually expected since the tx goes through the user and not the safe, that's why that happens. We have to tackle it differently
The issue with the names in the Load safe form is already in prod, it seems that it was caused by a fix that didn't got to fix that specific scenario. Is a trivial issue since the user can fix it in the safe settings

@ghost
Copy link

ghost commented Feb 1, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Feb 1, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/xdai/app

@ghost
Copy link

ghost commented Feb 1, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Feb 2, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Feb 2, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/xdai/app

@ghost
Copy link

ghost commented Feb 2, 2021

Travis automatic deployment:
https://pr1828--safereact.review.gnosisdev.com/volta/app

@dasanra dasanra merged commit 2f6113d into master Feb 2, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants