Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapt to eip-1193 provider changes #143

Merged
merged 4 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"/lib"
],
"dependencies": {
"@metamask/eth-block-tracker": "^10.0.0",
"@metamask/eth-block-tracker": "^10.1.0",
"@metamask/ethjs-contract": "^0.4.1",
"@metamask/ethjs-query": "^0.7.1",
"@metamask/safe-event-emitter": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions test/unit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ test('tracker with broken provider', async function (t) {
try {
tracker = new TokenTracker({
provider: {
sendAsync: () => {
request: () => {
throw new Error('Fake provider error')
}
},
Expand All @@ -392,7 +392,7 @@ test('tracker with broken provider and includeFailedTokens', async function (t)
try {
tracker = new TokenTracker({
provider: {
sendAsync: () => {
request: () => {
throw new Error('Fake provider error')
}
},
Expand Down
83 changes: 59 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1467,27 +1467,29 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-block-tracker@npm:^10.0.0":
version: 10.0.0
resolution: "@metamask/eth-block-tracker@npm:10.0.0"
"@metamask/eth-block-tracker@npm:^10.1.0":
version: 10.1.0
resolution: "@metamask/eth-block-tracker@npm:10.1.0"
dependencies:
"@metamask/eth-json-rpc-provider": ^4.0.0
"@metamask/eth-json-rpc-provider": ^4.1.0
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.1.0
json-rpc-random-id: ^1.0.1
pify: ^5.0.0
checksum: 3b897a41305debe9828d6d18e079289f05e07f99d829f7425ce8703b16d00f3fcd1f108b34f946dee892400e30f4fe87d8fad66311ba8b46c39258ad875f83a6
checksum: 9fb7deeb177c6989481f5e7c11015c274c5b43eec43fc05a5a02f284f805d06887d429c6568cdec4fac1c0c51a5f7e6814b9413cc0d7eef46d993ad10dbe696a
languageName: node
linkType: hard

"@metamask/eth-json-rpc-provider@npm:^4.0.0":
version: 4.0.0
resolution: "@metamask/eth-json-rpc-provider@npm:4.0.0"
"@metamask/eth-json-rpc-provider@npm:^4.1.0":
version: 4.1.1
resolution: "@metamask/eth-json-rpc-provider@npm:4.1.1"
dependencies:
"@metamask/json-rpc-engine": ^9.0.0
"@metamask/json-rpc-engine": ^9.0.1
"@metamask/rpc-errors": ^6.3.1
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.3.0
checksum: 4f8ad6a1737d54aeb83c5a1c7073a5cb17223e9cdacb0da4549aac7b57704b8239d9670c438eadf7974fe1167e59a9c54e6c32cce44b111c6514aae71429d6dd
"@metamask/utils": ^9.0.0
uuid: ^8.3.2
checksum: a429d9511f33a62eb5f2f2f82f26d30a2a8f27d48aa3c8819d6ba03c2c0eef0e7eee7894a0899dd9af4b7d7f3e2092c25304bb34ab6e8d0daffee717f4109b5c
languageName: node
linkType: hard

Expand All @@ -1503,7 +1505,7 @@ __metadata:
"@lavamoat/allow-scripts": ^2.3.1
"@lavamoat/preinstall-always-fail": ^2.0.0
"@metamask/auto-changelog": ^3.4.3
"@metamask/eth-block-tracker": ^10.0.0
"@metamask/eth-block-tracker": ^10.1.0
"@metamask/ethjs-contract": ^0.4.1
"@metamask/ethjs-query": ^0.7.1
"@metamask/safe-event-emitter": ^3.0.0
Expand Down Expand Up @@ -1594,14 +1596,14 @@ __metadata:
languageName: node
linkType: hard

"@metamask/json-rpc-engine@npm:^9.0.0":
version: 9.0.0
resolution: "@metamask/json-rpc-engine@npm:9.0.0"
"@metamask/json-rpc-engine@npm:^9.0.1":
version: 9.0.1
resolution: "@metamask/json-rpc-engine@npm:9.0.1"
dependencies:
"@metamask/rpc-errors": ^6.2.1
"@metamask/rpc-errors": ^6.3.1
"@metamask/safe-event-emitter": ^3.0.0
"@metamask/utils": ^8.3.0
checksum: b97170b36843145361015dabc5651df1d2c7f28f0756d3c9c05aef6a483098d562a9983cbe0e15f7fd1a66aa26481132b03ccb9061a2c48f0d3249c1f2348e97
"@metamask/utils": ^9.0.0
checksum: 60889825a633f2ae8f5998c3c426c52e580d761871983eb4e25bedc868fad1c367b496b3bd6913274b118444987eda64669a1eb49acda1a7fc2e2a0d75dd1e9a
languageName: node
linkType: hard

Expand All @@ -1615,13 +1617,13 @@ __metadata:
languageName: node
linkType: hard

"@metamask/rpc-errors@npm:^6.2.1":
version: 6.2.1
resolution: "@metamask/rpc-errors@npm:6.2.1"
"@metamask/rpc-errors@npm:^6.3.1":
version: 6.3.1
resolution: "@metamask/rpc-errors@npm:6.3.1"
dependencies:
"@metamask/utils": ^8.3.0
"@metamask/utils": ^9.0.0
fast-safe-stringify: ^2.0.6
checksum: a9223c3cb9ab05734ea0dda990597f90a7cdb143efa0c026b1a970f2094fe5fa3c341ed39b1e7623be13a96b98fb2c697ef51a2e2b87d8f048114841d35ee0a9
checksum: 8761f5c0161cb3b342abd3ccccbd7b792f36a987e1f22c3f89b1bd29f72a2e35a2c91b58164fdd9dc3e5b67157500dcbdb5d04245117c14310c34cf42f7b8463
languageName: node
linkType: hard

Expand All @@ -1632,7 +1634,14 @@ __metadata:
languageName: node
linkType: hard

"@metamask/utils@npm:^8.1.0, @metamask/utils@npm:^8.3.0":
"@metamask/superstruct@npm:^3.1.0":
version: 3.1.0
resolution: "@metamask/superstruct@npm:3.1.0"
checksum: 00e4d0c0aae8b25ccc1885c1db0bb4ed1590010570140c255e4deee3bf8a10c859c8fce5e475b4ae09c8a56316207af87585b91f7f5a5c028d668ccd111f19e3
languageName: node
linkType: hard

"@metamask/utils@npm:^8.1.0":
version: 8.4.0
resolution: "@metamask/utils@npm:8.4.0"
dependencies:
Expand All @@ -1649,6 +1658,23 @@ __metadata:
languageName: node
linkType: hard

"@metamask/utils@npm:^9.0.0":
version: 9.1.0
resolution: "@metamask/utils@npm:9.1.0"
dependencies:
"@ethereumjs/tx": ^4.2.0
"@metamask/superstruct": ^3.1.0
"@noble/hashes": ^1.3.1
"@scure/base": ^1.1.3
"@types/debug": ^4.1.7
debug: ^4.3.4
pony-cause: ^2.1.10
semver: ^7.5.4
uuid: ^9.0.1
checksum: 01f2c71a8f06158d5335bfe96bfd2f3aa39ec6b2323c5d0ff1d3136071a3e8ff7c1804d640ba1d4e07f96f3e68a95ff7729ddfcd34b373e5fefd86d6ef12d034
languageName: node
linkType: hard

"@nicolo-ribaudo/chokidar-2@npm:2.1.8-no-fsevents.3":
version: 2.1.8-no-fsevents.3
resolution: "@nicolo-ribaudo/chokidar-2@npm:2.1.8-no-fsevents.3"
Expand Down Expand Up @@ -5265,6 +5291,15 @@ __metadata:
languageName: node
linkType: hard

"uuid@npm:^8.3.2":
version: 8.3.2
resolution: "uuid@npm:8.3.2"
bin:
uuid: dist/bin/uuid
checksum: 5575a8a75c13120e2f10e6ddc801b2c7ed7d8f3c8ac22c7ed0c7b2ba6383ec0abda88c905085d630e251719e0777045ae3236f04c812184b7c765f63a70e58df
languageName: node
linkType: hard

"uuid@npm:^9.0.1":
version: 9.0.1
resolution: "uuid@npm:9.0.1"
Expand Down
Loading