Skip to content

Commit a9f5004

Browse files
authored
Parameterize SmartTransactionsController state by ChainId for MultiChain + Integrate PollingController Mixin (#210)
* integrating multichain controller upgrades * add test * cleanup * need to move confirmSmartTransaction tests into another test since confirmSmartTransaction is now private * actually for now leave it as a public method * cleanup * fix typeerror? * add test + cleanup * add a test + bump test coverage * update type * fix type issue * address feedback * fix provider logic * update test coverage threshholds * make a private and public version of updateSmartTransaction * fix capitalization" * addressing feedback * replace @ethersproject/providers with @metamask/eth-query * cleanup * address more feedback * remove @ethersproject/bignumber * make confirmSmartTransaction a private method * remove comment * getTransaction -> getTransactionByHash * fix ethquery mock
1 parent a7920ff commit a9f5004

8 files changed

+627
-432
lines changed

jest.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ module.exports = {
66
coverageReporters: ['text', 'html'],
77
coverageThreshold: {
88
global: {
9-
branches: 77,
10-
functions: 89,
11-
lines: 92,
12-
statements: 91,
9+
branches: 76.5,
10+
functions: 92.5,
11+
lines: 93.35,
12+
statements: 93.35,
1313
},
1414
},
1515
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
"test:watch": "jest --watchAll"
2626
},
2727
"dependencies": {
28-
"@ethersproject/bignumber": "^5.7.0",
2928
"@ethersproject/bytes": "^5.7.0",
30-
"@ethersproject/providers": "^5.7.0",
3129
"@metamask/base-controller": "^3.2.1",
3230
"@metamask/controller-utils": "^5.0.0",
31+
"@metamask/eth-query": "^3.0.1",
3332
"@metamask/network-controller": "^15.0.0",
33+
"@metamask/polling-controller": "^0.2.0",
3434
"bignumber.js": "^9.0.1",
3535
"fast-json-patch": "^3.1.0",
3636
"lodash": "^4.17.21"

0 commit comments

Comments
 (0)