-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77b4d91
commit b616f6a
Showing
242 changed files
with
5,488 additions
and
16,365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/dist/esm/connectors/injected.js b/dist/esm/connectors/injected.js | ||
index 26f420d68ed9a12deea30a3dca195e2bcf3b3c44..70fc93a7db7b9f4db10e71edd73ee81bd0e28f1e 100644 | ||
--- a/dist/esm/connectors/injected.js | ||
+++ b/dist/esm/connectors/injected.js | ||
@@ -405,6 +405,18 @@ export function injected(parameters = {}) { | ||
onChainChanged(chain) { | ||
console.log('[injected] onChainChanged', chain); | ||
const chainId = Number(chain); | ||
+ if (this.id === 'io.metamask') | ||
+ this.getProvider() | ||
+ .then((provider) => | ||
+ provider | ||
+ ?.request({ | ||
+ method: 'wallet_switchEthereumChain', | ||
+ params: [{ chainId: numberToHex(chainId) }], | ||
+ }) | ||
+ .then(() => {}) | ||
+ .catch(() => {}), | ||
+ ) | ||
+ .catch(() => {}) | ||
config.emitter.emit('change', { chainId }); | ||
}, | ||
async onConnect(connectInfo) { |
13 changes: 13 additions & 0 deletions
13
.yarn/patches/@web3-react-coinbase-wallet-npm-8.2.3-9c7073f079.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index f38d06e2de52b5035560d63d6889dc54d5ca021b..4f8fa194b60c73a901dbce4a742f598b1c95c026 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -62,7 +62,7 @@ class CoinbaseWallet extends types_1.Connector { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this.eagerConnection) | ||
return; | ||
- yield (this.eagerConnection = Promise.resolve().then(() => __importStar(require('@coinbase/wallet-sdk'))).then((m) => { | ||
+ yield (this.eagerConnection = Promise.resolve().then(async () => __importStar(await import('@coinbase/wallet-sdk'))).then((m) => { | ||
const _a = this.options, { url } = _a, options = __rest(_a, ["url"]); | ||
this.coinbaseWallet = new m.default(options); | ||
this.provider = this.coinbaseWallet.makeWeb3Provider(url); |
15 changes: 15 additions & 0 deletions
15
.yarn/patches/@web3-react-gnosis-safe-npm-8.2.4-a7e2850335.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index 015a33c37fe87f13f31559d462351acd7ae9bac7..4cd7cdeb4437f30c1c063c0ffb8fd5692a399dbf 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -68,8 +68,8 @@ class GnosisSafe extends types_1.Connector { | ||
if (this.eagerConnection) | ||
return; | ||
// kick off import early to minimize waterfalls | ||
- const SafeAppProviderPromise = Promise.resolve().then(() => __importStar(require('@safe-global/safe-apps-provider'))).then(({ SafeAppProvider }) => SafeAppProvider); | ||
- yield (this.eagerConnection = Promise.resolve().then(() => __importStar(require('@safe-global/safe-apps-sdk'))).then((m) => __awaiter(this, void 0, void 0, function* () { | ||
+ const SafeAppProviderPromise = Promise.resolve().then(async () => __importStar(await import('@safe-global/safe-apps-provider'))).then(({ SafeAppProvider }) => SafeAppProvider); | ||
+ yield (this.eagerConnection = Promise.resolve().then(async () => __importStar(await import('@safe-global/safe-apps-sdk'))).then((m) => __awaiter(this, void 0, void 0, function* () { | ||
this.sdk = new m.default(this.options); | ||
const safe = yield Promise.race([ | ||
this.sdk.safe.getInfo(), |
13 changes: 13 additions & 0 deletions
13
.yarn/patches/@web3-react-metamask-npm-8.2.4-84b10de2d2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index c8476dd9b01c0599dfc545f4c86432081bd0fcec..c0bfce759654232df771724e59a650c92b392f78 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -54,7 +54,7 @@ class MetaMask extends types_1.Connector { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this.eagerConnection) | ||
return; | ||
- return (this.eagerConnection = Promise.resolve().then(() => __importStar(require('@metamask/detect-provider'))).then((m) => __awaiter(this, void 0, void 0, function* () { | ||
+ return (this.eagerConnection = Promise.resolve().then(async () => __importStar(await import('@metamask/detect-provider'))).then((m) => __awaiter(this, void 0, void 0, function* () { | ||
var _a, _b; | ||
const provider = yield m.default(this.options); | ||
if (provider) { |
28 changes: 28 additions & 0 deletions
28
.yarn/patches/@web3-react-walletconnect-v2-npm-8.5.1-933cac0534.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index 1a36d14c5d7c9ee55b2eccd11216c8adb6839daf..908b8c57a2d8cd565030e34e15c56caf7d182cfd 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -84,7 +84,7 @@ class WalletConnect extends types_1.Connector { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const rpcMap = this.rpcMap ? (0, utils_1.getBestUrlMap)(this.rpcMap, this.timeout) : undefined; | ||
const chainProps = this.getChainProps(this.chains, this.optionalChains, desiredChainId); | ||
- const ethProviderModule = yield Promise.resolve().then(() => __importStar(require('@walletconnect/ethereum-provider'))); | ||
+ const ethProviderModule = yield Promise.resolve().then(async () => __importStar(await import('@walletconnect/ethereum-provider'))); | ||
this.provider = yield ethProviderModule.default.init(Object.assign(Object.assign(Object.assign({}, this.options), chainProps), { rpcMap: yield rpcMap })); | ||
return this.provider | ||
.on('disconnect', this.disconnectListener) | ||
diff --git a/dist/utils.js b/dist/utils.js | ||
index 17539b6f910e65aeaebcc116395dce56ae4ce193..9ea637118844ebbdc55db71009b44849992603d2 100644 | ||
--- a/dist/utils.js | ||
+++ b/dist/utils.js | ||
@@ -62,8 +62,8 @@ function getBestUrl(urls, timeout) { | ||
if (urls.length === 1) | ||
return urls[0]; | ||
const [HttpConnection, JsonRpcProvider] = yield Promise.all([ | ||
- Promise.resolve().then(() => __importStar(require('@walletconnect/jsonrpc-http-connection'))).then(({ HttpConnection }) => HttpConnection), | ||
- Promise.resolve().then(() => __importStar(require('@walletconnect/jsonrpc-provider'))).then(({ JsonRpcProvider }) => JsonRpcProvider), | ||
+ Promise.resolve().then(async () => __importStar(await import('@walletconnect/jsonrpc-http-connection'))).then(({ HttpConnection }) => HttpConnection), | ||
+ Promise.resolve().then(async () => __importStar(await import('@walletconnect/jsonrpc-provider'))).then(({ JsonRpcProvider }) => JsonRpcProvider), | ||
]); | ||
// the below returns the first url for which there's been a successful call, prioritized by index | ||
return new Promise((resolve) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/lib/browser/eip1193.js b/lib/browser/eip1193.js | ||
index ce028c25a164d8af8d513bc0eae4cf104234f6e8..81ba2f29d379f18c04c57b5a560cc6c4f4b57e0d 100644 | ||
--- a/lib/browser/eip1193.js | ||
+++ b/lib/browser/eip1193.js | ||
@@ -70,6 +70,7 @@ class Eip1193 extends eip1193_bridge_1.Eip1193Bridge { | ||
yield _super.send.call(this, method, params); | ||
// Providers will not "rewind" to an older block number nor notice chain changes, so they must be reset. | ||
this.utils.providers.forEach((provider) => provider.reset()); | ||
+ this.emit('chainChanged', params[0].chainId); | ||
break; | ||
default: | ||
result = yield _super.send.call(this, method, params); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
IPFS hash of the deployment: | ||
- CIDv0: `QmbFgzr9RodJzRaqSY5enQfpZhKsNg5TJjRMpjwkVg2nEK` | ||
- CIDv1: `bafybeif74kosbexaqxwr65grk72zr55nec3ztvt5e4phcwuh64gf3milga` | ||
|
||
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org). | ||
|
||
You can also access the Uniswap Interface from an IPFS gateway. | ||
**BEWARE**: The Uniswap interface uses [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to remember your settings, such as which tokens you have imported. | ||
**You should always use an IPFS gateway that enforces origin separation**, or our hosted deployment of the latest release at [app.uniswap.org](https://app.uniswap.org). | ||
Your Uniswap settings are never remembered across different URLs. | ||
|
||
IPFS gateways: | ||
- https://bafybeif74kosbexaqxwr65grk72zr55nec3ztvt5e4phcwuh64gf3milga.ipfs.dweb.link/ | ||
- https://bafybeif74kosbexaqxwr65grk72zr55nec3ztvt5e4phcwuh64gf3milga.ipfs.cf-ipfs.com/ | ||
- [ipfs://QmbFgzr9RodJzRaqSY5enQfpZhKsNg5TJjRMpjwkVg2nEK/](ipfs://QmbFgzr9RodJzRaqSY5enQfpZhKsNg5TJjRMpjwkVg2nEK/) | ||
|
||
### 5.63.1 (2024-12-17) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **web:** Fix/prod web modal (#14601) 7e6c3f1 | ||
|
||
|
||
We are back with some new updates! Here’s the latest: | ||
|
||
Token Warnings: See more information about the tokens you’re attempting to swap, enriched with data from Blockaid. | ||
|
||
Transaction Failure improvements: See more granular warnings when your slippage is too low, and increase it straight from the swap review screen. | ||
|
||
Other changes: | ||
|
||
- Various bug fixes and performance improvements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web/5.63.1 | ||
extension/1.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
ignores: [ | ||
# Dependencies that depcheck thinks are unused but are actually used | ||
'react-native-web', | ||
'jest-environment-jsdom', | ||
'webpack-cli', | ||
"react-native-web", | ||
"jest-environment-jsdom", | ||
"webpack-cli", | ||
# Dependencies that depcheck thinks are missing but are actually present or never used | ||
## Internal packages / workspaces | ||
'src', | ||
'tsconfig', | ||
"src", | ||
"tsconfig", | ||
# Webpack plugins | ||
'@svgr/webpack', | ||
'tamagui-loader', | ||
'esbuild-loader', | ||
'style-loader', | ||
'css-loader', | ||
'swc-loader', | ||
"@svgr/webpack", | ||
"tamagui-loader", | ||
"esbuild-loader", | ||
"swc-loader", | ||
## Testing | ||
'@testing-library/dom', | ||
"@testing-library/dom", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.