1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers
Olusegun Akintayo 028850899e
Replace uses of updateTransaction (from the tx controller) with less powerful methods for each specific state transition (#13496)
* Draft methods to brak updateTransaction into smaller more targeted
methods.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* normalize and validate tx params.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Method to normalize tx and check if it's unapproved.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Move the methods to controllers/transactions/index.js

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Flesh out the methods to update transaction with custom notes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* enforce that only the properties for the specific methid can be updated via the method.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Rename calls to check transaction status.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Test update gas fees

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Test update estimated base fee

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Update swap approval transaction

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* use lodash to remove undefined properties
update swap transaction tests

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Updates transaction user settings.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Remove commented log lines

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Add more parameters to updateSwapTransaction
    approvalTxId
    estimatedBaseFee

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix documentation for updateSwapTransaction

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Add Update Transaction Metrics

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Update transaction gas fees actions.js

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Update EIP 1559 Params.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint Fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Documentations.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Remove metrics from this PR

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes: Removed unused variables

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Add more params to updateTransactionGasFees.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Update eip1559 method to editableParams.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* lint fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix Mocha tests

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* add gasPrice to updateEditableParams

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Remove duplicated Params in notes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* A few more tests to cover if
    transaction status is not unapproved
    transaction is passed more parameters than it requires.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2022-02-24 22:26:58 +04:00
..
ens use safer toChecksum utility (#11117) 2021-05-17 16:19:39 -05:00
network Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
permissions Add Snaps via Flask (#13462) 2022-02-14 16:02:51 -08:00
transactions Replace uses of updateTransaction (from the tx controller) with less powerful methods for each specific state transition (#13496) 2022-02-24 22:26:58 +04:00
alert.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
app-state.js More nft ux fixes (#13388) 2022-01-27 11:26:33 -06:00
cached-balances.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
cached-balances.test.js Use strict assertion mode everywhere (#11012) 2021-05-07 17:08:24 -02:30
detect-tokens.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
detect-tokens.test.js Turning OFF token detection for test nets (#12232) 2021-09-29 14:53:56 -04:00
incoming-transactions.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
incoming-transactions.test.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
metametrics.js batch fix misspelling (#13449) 2022-01-28 09:09:07 -06:00
metametrics.test.js Implement event fragments (#12251) 2022-01-12 13:31:54 -06:00
onboarding.js fix registerOnboarding method to correctly access completedOnboarding state value (#13723) 2022-02-22 18:59:26 -06:00
preferences.js fix opensea/autodetect setting dependency relation (#13575) 2022-02-10 14:02:06 -06:00
preferences.test.js Remove nodeify (#13003) 2021-12-08 18:06:53 -03:30
swaps.js Small fixes for Swaps (#13732) 2022-02-23 22:10:28 +01:00
swaps.test.js Add support for Smart Transactions (#12676) 2022-02-18 17:48:38 +01:00
threebox.js eth-json-rpc-middleware@8.0.0 (#10738) 2021-11-11 12:26:49 -08:00