Skip to content

Commit

Permalink
addmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Jun 13, 2024
1 parent 487069d commit 37f4712
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
9 changes: 7 additions & 2 deletions lavamoat/build-webpack/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,13 @@
"define": true
},
"packages": {
"jest>@jest/core>jest-snapshot>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": true,
"webpack>terser-webpack-plugin>@jridgewell/trace-mapping>@jridgewell/resolve-uri": true
"jest>@jest/core>jest-snapshot>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/resolve-uri": true,
"jest>@jest/core>jest-snapshot>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": true
}
},
"jest>@jest/core>jest-snapshot>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/resolve-uri": {
"globals": {
"define": true
}
},
"jest>@jest/core>jest-snapshot>@babel/traverse>@babel/generator>@jridgewell/trace-mapping>@jridgewell/sourcemap-codec": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"@radix-ui/react-select": "1.2.1",
"@radix-ui/react-tabs": "1.0.4",
"@radix-ui/react-tooltip": "1.0.3",
"@rainbow-me/provider": "0.1.0",
"@rainbow-me/provider": "../rainbow-provider/rainbow-me-provider-v0.1.1.tgz",
"@rainbow-me/swaps": "0.19.0",
"@rudderstack/analytics-js-service-worker": "3.0.6",
"@scure/bip39": "1.2.1",
Expand Down Expand Up @@ -324,4 +324,4 @@
"wagmi>@wagmi/connectors>@metamask/sdk>eciesjs>secp256k1": false
}
}
}
}
2 changes: 2 additions & 0 deletions src/entries/background/handlers/handleProviderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ export const handleProviderRequest = ({
SUPPORTED_CHAIN_IDS.includes(chainId) || isCustomChain(chainId),
getActiveSession: ({ host }: { host: string }) =>
appSessionsStore.getState().getActiveSession({ host }),
removeAppSession: ({ host }: { host: string }) =>
appSessionsStore.getState().removeAppSession({ host }),
getChainNativeCurrency: (chainId: number) =>
SUPPORTED_CHAINS.find((chain) => chain.id === Number(chainId))
?.nativeCurrency,
Expand Down
7 changes: 3 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3523,10 +3523,9 @@
dependencies:
"@babel/runtime" "^7.13.10"

"@rainbow-me/[email protected]":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@rainbow-me/provider/-/provider-0.1.0.tgz#7b577604be26f3397085f90b3440aa7528e71e03"
integrity sha512-Omn4GTA92aRMRKj+cT/ixP/aQYCt5WXTQ1ZTBYt4E2B99s68MKlIAKLvqXMtk9KuhMJm5H1rUtjViZ3uuudfvA==
"@rainbow-me/provider@../rainbow-provider/rainbow-me-provider-v0.1.1.tgz":
version "0.1.1"
resolved "../rainbow-provider/rainbow-me-provider-v0.1.1.tgz#5e1b60432eb843f5d222e0bc3c8a93ffa9b33271"
dependencies:
"@ethersproject/abstract-provider" "5.7.0"
"@ethersproject/bignumber" "5.7.0"
Expand Down

0 comments on commit 37f4712

Please sign in to comment.