Skip to content

Commit f41f0f8

Browse files
zzmpcrowdin-botmicaelr95Justin Dominguemoodysalem
authored
chore: merge main into widgets (#2893)
* chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * fix: center focused outline card (#2625) * fix: add usdc to arbitrum/optimism common bases (#2641) * remove WETH from optimism bases (#2640) * use l2 logos in base pairs (#2634) * fix: split calls into more chunks if they fail due to out of gas errors (#2630) * fix: split calls into more chunks if they fail due to out of gas errors * set to 100m gas * back to 25m so we batch fewer calls * do not pass through gas limit, some simplification of the code * unused import * fix: restrict @davatar usage to avoid 3p fetches (#2649) * chore(i18n): synchronize translations from crowdin [skip ci] * fix(L2): ensure chainIds match before fetching pool data (#2652) * ensure chainIds match before fetching pool data * debounce both input currencies, and only look for pairs on currencies that share a chainId * pr feedback * fix: use optional operator for chainId (#2666) * chore: update token list (#2670) * update token list * Fix code style issues with ESLint Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * fix: update token list (#2671) * update token list * Fix code style issues with ESLint Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * feat: extend privacy and terms (#2623) * initial iteration * add logging * added hook * polish * remove unused import * add hash * addressed pr feedback * remove autorouter icon * use firebase store * style * adjust recat ga * log remove liquidity * update copy * addressed pr feedback * addressed pr feedback * prevent privacy content from dismissing modal * make top-level key origin * use hostname * restore trm * chore(i18n): synchronize translations from crowdin [skip ci] * log full signed tx (#2681) * refactor monitoring (#2682) * chore: set final privacy learn more link' (#2684) * add learn more button * add final link * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * fix: back arrow bug in wallet modal and fill tx for wallet (#2687) * add tx to wallet connect * remove id from env * restore env * block import of unsupported tokens (#2673) generalize custom import token block ui * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * chore(deps-dev): bump @uniswap/token-lists (#2699) * chore(i18n): synchronize translations from crowdin [skip ci] * try out 'dimension1' (#2704) * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * fix: walletconnect modal re-open after user rejection (#2693) Co-authored-by: M0kY <moky@example.com> * chore: update unsupported token list (#2689) * chore: update unsupported token list * Fix code style issues with ESLint Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * fix: memoize the list stuff so the tokens are consistently clickable (#2724) * chore(i18n): synchronize translations from crowdin [skip ci] * feat: update cmc list link (#2710) * update cmc lists * update CMC url * add token to unsupported list (#2732) * don't overwrite localstorage lists when fetch throws (#2723) * try cd1 for custom dimension (#2734) * fix: Update walletlink-connector to 6.2.8 (#2655) * Update walletlink-connector to 6.2.5 which has a walletlink update to support addEthereumChain+switchEthereumChain requests * Update walletlink-connector to 6.2.7 * Update walletlink-connector to 6.2.8 * fix: Parse latest proposal description correctly * add proposal start time (#2738) * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * fix: #2741 Increase liquidity form off center (#2746) * fix: bump to latest token list including ENS token * fix: remove deprecated optimism status url (#2771) * feat: Menu update. Add help center & feature requests. Remove analytics & github. (#2709) * Add help center, remove analytics from menu * Add canny feature requests link, remove github link * add coffee icon * no unused imports eslint rule (#2773) * chore(i18n): synchronize translations from crowdin [skip ci] * add protocols param to quote endpoint (#2774) * add protocols param to quote endpoint * Fix code style issues with ESLint Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * fix: lint error (#2775) * fix(optimism): Optimism regenesis support (#2703) * feat(optimism): optimistic kovan local regenesis changes * use the regenesis version of the sdk * remove the override no longer necessary * diff rpc url * back to kovan url * lint error * Optimism mainnet regenesis test (#2695) * remove the optimism mainnet specific code and point to the mainnet regenesis rpc url * point at the old mainnet multicall address * bump the sdk version * copy the list * multicall address regenesis change * revert the gas limit special casing for optimism * bump the sdk version * remove a couple other temporary edits * unused test case * specific version of v3-sdk * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * chore(i18n): synchronize translations from crowdin [skip ci] * feat: add support for 0.01% tier (#2769) * chore: add support for 0.01% tier * only show 1bps on mainnet * rename VERY_LOW to LOWEST * upgrade to v3-sdk 3.7.0 * add snapshot testing for lowest tier * fix integration test * fix integration test * use ALL_SUPPORTED_CHAIN_IDS over string all * consider 0.01% tier in pool (#2770) * merge main and only consider lowest tier for mainnet * chore(i18n): synchronize translations from crowdin [skip ci] * fix(L2): update block warning updater to check most recent block timestamp (#2777) * update block warning updater to check most recent block timestamp * stop doing dumb state manipulation * fix: copy in network alert * chore(i18n): synchronize translations from crowdin [skip ci] * fix(L2): remove redux from chain connectivity (#2781) * remove redux from chain connectivity * useMachineTimeMs instead of Date.now to force updates, useCurrentBlockTimestamp * use useInterval * change not created font size to 10 (#2785) * chore(i18n): synchronize translations from crowdin [skip ci] * fix: format date using Date.toLocaleString (#2459) * fix: format date using Date.toLocaleString Fixes #2458 * fix: date typings * chore(i18n): synchronize translations from crowdin [skip ci] * fix: broken link to docs (#2816) * chore: fix typo in useAllCurrencyCombinations.ts (#2778) occurence -> occurrence * chore: update typechain scripts for Windows (#2707) There are two errors when deploying on Windows system: 1. Using single quotes in path argument doesn't seem to be accepted in typechain command 2. `?(v3-core|v3-periphery)` operator doesn't work Here are fixes/workarounds. * perf: lazy load vote related routes (#2468) * perf: lazy load vote related routes * wrap Switch in Suspense * remove exact to match nested routes * fix nested routes * split Landing * fix * chore(i18n): synchronize translations from crowdin [skip ci] * fix: Enable 3085 requests for coinbase wallet (#2753) enable 3085 requests for coinbase wallet * feat: set the auto slippage tolerance by the dollar value of gas (#2815) * feat: set the auto slippage tolerance by the dollar value of gas * comments * min/max at 0.5% to 25% * oops on constant * address review feedback * Fixing #2818 (#2820) * Fix code style issues with ESLint * chore(i18n): synchronize translations from crowdin [skip ci] * fix: fix #2818 * chore(i18n): synchronize translations from crowdin [skip ci] * log an event on max click (#2827) * Add trailing slash to L2 info links (#2696) Some links were broken. For example on /pools/ page click the 'Top Pools' CTA. It would mistakenly direct you to info.uniswap.org/optimismpools instead of optimism/pools * fix(L2): block L2 tokens explicitly linked to L1 tokens that are blocked (#2721) * block L2 tokens explicitly linked to L1 tokens that are blocked * Fix code style issues with ESLint * check for support on all connectors, and disable when the connector (or lack thereof) no longer supports 3085 (#2824) * feat: display an ENS avatar (#2806) * feat: ens avatar resolution * chore: uninstall @davatar/react * fix: add avatar alt * feat: support data uris * feat: support arweave uris * feat: support erc721 avatars * feat: support erc1155 avatars * fix: jazzicon integration * fix: clean usage of status icon * fix: fix jazzicon svg offset * refactor: share status icon component * fix: pass memoized args to multicall * Update locales.ts (#2825) update Finnish from person (Suomalainen) to language (suomi) * chore(i18n): synchronize translations from crowdin [skip ci] * chore: fix the build blocking linter error * chore: run linters with auto_fix = false for forks (#2852) * fix: do not show urls if issue is not occurring on app.uniswap.org (#2855) * fix: do not show urls if issue is not occurring on app.uniswap.org fixes #2572 * address comment * fix: remove orphaned node (#2863) * fix: remove orphaned node * fix: react cleanup * refactor: use ref for jazzicon (#2874) * chore(i18n): synchronize translations from crowdin [skip ci] * chore(deps): bump ws from 5.2.2 to 5.2.3 (#2759) Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@5.2.2...5.2.3) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump url-parse from 1.5.1 to 1.5.3 (#2504) Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3. - [Release notes](https://github.com/unshiftio/url-parse/releases) - [Commits](unshiftio/url-parse@1.5.1...1.5.3) --- updated-dependencies: - dependency-name: url-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * add more tests for tryParseTick (#2110) * fix(lint): clean up the eslint config (#2886) * fix(lint): clean up the eslint config * Fix code style issues with ESLint * fix the linter errors that arose from using the proper config * clean up the rebass text renames * fix if statement, use the config * use the same name prefix for both steps * `TextPreset` -> `ThemedText` Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * fix: Add routes for stakewise tokens (#2832) * Add additional routes for stakewise tokens * Reference StakeWise addresses with sdk tokens * Sort token imports * chore: yarn-deduplicate * chore: lint widgets * fix: use lib useInterval Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Micael Rodrigues <micaelr95@outlook.pt> Co-authored-by: Justin Domingue <judo@uniswap.org> Co-authored-by: Moody Salem <moodysalem@users.noreply.github.com> Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com> Co-authored-by: Ian Lapham <ian@uniswap.org> Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: M0kY <46133205+M0kY@users.noreply.github.com> Co-authored-by: M0kY <moky@example.com> Co-authored-by: Will Hennessy <hennessywill@gmail.com> Co-authored-by: Brendan Weinstein <65564422+brendanww@users.noreply.github.com> Co-authored-by: Noah Zinsmeister <noahwz@gmail.com> Co-authored-by: Ben Krochta <35636764+bkrochta@users.noreply.github.com> Co-authored-by: Moody Salem <moody.salem@gmail.com> Co-authored-by: Raj <sukhrajghuman@live.com> Co-authored-by: Ikko Ashimine <eltociear@gmail.com> Co-authored-by: Matthew Salamon <35425388+Matthews3301@users.noreply.github.com> Co-authored-by: Sam Chen <chenxsan@gmail.com> Co-authored-by: Ali Eray Kısabacak <eraykisabacak@hotmail.com> Co-authored-by: Kimmo S <kkpsiren@gmail.com> Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>
1 parent f264797 commit f41f0f8

File tree

213 files changed

+7271
-4506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+7271
-4506
lines changed

.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ REACT_APP_INFURA_KEY="099fc58e0de9451d80b18d7c74caa7c1"
22
REACT_APP_PORTIS_ID="c0e2bf01-4b08-4fd5-ac7b-8e26b58cd236"
33
REACT_APP_FORTMATIC_KEY="pk_live_F937DF033A1666BF"
44
REACT_APP_GOOGLE_ANALYTICS_ID="UA-128182339-4"
5+
REACT_APP_FIREBASE_KEY="AIzaSyBcZWwTcTJHj_R6ipZcrJkXdq05PuX0Rs0"

.eslintrc.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,42 @@
88
"jsx": true
99
}
1010
},
11-
"ignorePatterns": ["node_modules/**/*"],
1211
"settings": {
1312
"react": {
1413
"version": "detect"
1514
}
1615
},
16+
"ignorePatterns": [
17+
"src/types/v3",
18+
"src/abis/types",
19+
"src/locales/**/*.js",
20+
"src/locales/**/en-US.po",
21+
"src/state/data/generated.ts",
22+
"node_modules",
23+
"coverage",
24+
"build",
25+
"dist",
26+
".DS_Store",
27+
".env.local",
28+
".env.development.local",
29+
".env.test.local",
30+
".env.production.local",
31+
".idea/",
32+
".vscode/",
33+
"package-lock.json",
34+
"yarn.lock"
35+
],
1736
"extends": [
37+
"react-app",
1838
"plugin:react/recommended",
1939
"plugin:@typescript-eslint/recommended",
2040
"plugin:react-hooks/recommended",
2141
"prettier/@typescript-eslint",
2242
"plugin:prettier/recommended"
2343
],
24-
"plugins": ["simple-import-sort"],
44+
"plugins": ["simple-import-sort", "unused-imports"],
2545
"rules": {
46+
"unused-imports/no-unused-imports": "error",
2647
"simple-import-sort/imports": "error",
2748
"simple-import-sort/exports": "error",
2849
"@typescript-eslint/explicit-function-return-type": "off",

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ updates:
77
interval: "daily"
88
allow:
99
- dependency-name: "@uniswap/token-lists"
10+
- dependency-name: "@uniswap/default-token-list"

.github/workflows/lint.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
jobs:
1414
run-linters:
1515
name: Run linters
16-
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
1716
runs-on: ubuntu-latest
1817

1918
steps:
@@ -41,10 +40,15 @@ jobs:
4140
- name: Install dependencies
4241
run: yarn install --frozen-lockfile
4342

44-
- name: Run linters
43+
- name: Run eslint w/ autofix
44+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
4545
uses: wearerequired/lint-action@36c7e6689e80d785d27a22f71d970f3a3b4fcb70
4646
with:
4747
github_token: ${{ secrets.github_token }}
4848
eslint: true
49-
eslint_extensions: js,jsx,ts,tsx,json
49+
eslint_args: "-c .eslintrc.json"
5050
auto_fix: true
51+
52+
- name: Run eslint
53+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != github.repository_owner }}
54+
run: yarn eslint .

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ An open source interface for Uniswap -- a protocol for decentralized exchange of
1010

1111
- Website: [uniswap.org](https://uniswap.org/)
1212
- Interface: [app.uniswap.org](https://app.uniswap.org)
13-
- Docs: [uniswap.org/docs/](https://uniswap.org/docs/)
13+
- Docs: [uniswap.org/docs/](https://docs.uniswap.org/)
1414
- Twitter: [@Uniswap](https://twitter.com/Uniswap)
1515
- Reddit: [/r/Uniswap](https://www.reddit.com/r/Uniswap/)
1616
- Email: [contact@uniswap.org](mailto:contact@uniswap.org)

cypress/fixtures/feeTierDistribution.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
}
66
},
77
"asToken0": [
8+
{
9+
"feeTier": "100",
10+
"totalValueLockedToken0": "0",
11+
"totalValueLockedToken1": "3"
12+
},
813
{
914
"feeTier": "500",
1015
"totalValueLockedToken0": "0",
@@ -13,7 +18,7 @@
1318
{
1419
"feeTier": "3000",
1520
"totalValueLockedToken0": "0",
16-
"totalValueLockedToken1": "7"
21+
"totalValueLockedToken1": "4"
1722
},
1823
{
1924
"feeTier": "10000",

cypress/integration/add-liquidity.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('Add Liquidity', () => {
5858
cy.wait('@feeTierDistributionQuery')
5959

6060
cy.get('#add-liquidity-selected-fee .selected-fee-label').should('contain.text', '0.3% fee tier')
61-
cy.get('#add-liquidity-selected-fee .selected-fee-percentage').should('contain.text', '70%')
61+
cy.get('#add-liquidity-selected-fee .selected-fee-percentage').should('contain.text', '40%')
6262
})
6363
})
6464
})

cypress/support/commands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class CustomizedBridge extends Eip1193Bridge {
7474
}
7575

7676
// sets up the injected provider to be a mock ethereum provider with the given mnemonic/index
77+
// eslint-disable-next-line no-undef
7778
Cypress.Commands.overwrite('visit', (original, url, options) => {
7879
return original(url.startsWith('/') && url.length > 2 && !url.startsWith('/#') ? `/#${url}` : url, {
7980
...options,

lingui.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default {
1+
const linguiConfig = {
22
catalogs: [
33
{
44
path: '<rootDir>/src/locales/{locale}',
@@ -54,3 +54,5 @@ export default {
5454
sourceLocale: 'en-US',
5555
pseudoLocale: 'pseudo',
5656
}
57+
58+
export default linguiConfig

package.json

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@
1111
],
1212
"private": true,
1313
"devDependencies": {
14-
"@davatar/react": "1.8.1",
1514
"@ethersproject/experimental": "^5.4.0",
1615
"@gnosis.pm/safe-apps-web3-react": "^0.6.0",
1716
"@graphql-codegen/cli": "1.21.5",
1817
"@graphql-codegen/typescript": "1.22.3",
1918
"@graphql-codegen/typescript-operations": "^1.18.2",
2019
"@graphql-codegen/typescript-rtk-query": "^1.1.1",
2120
"@lingui/cli": "^3.9.0",
22-
"@lingui/core": "^3.9.0",
21+
"@metamask/jazzicon": "^2.0.0",
2322
"@reach/dialog": "^0.10.3",
2423
"@reach/portal": "^0.10.3",
2524
"@react-hook/window-scroll": "^1.3.0",
@@ -37,7 +36,6 @@
3736
"@types/lingui__macro": "^2.7.4",
3837
"@types/lingui__react": "^2.8.3",
3938
"@types/lodash": "^4.14.176",
40-
"@types/luxon": "^1.24.4",
4139
"@types/ms.macro": "^2.0.0",
4240
"@types/multicodec": "^1.0.0",
4341
"@types/node": "^13.13.5",
@@ -55,26 +53,24 @@
5553
"@types/wcag-contrast": "^3.0.0",
5654
"@typescript-eslint/eslint-plugin": "^4.1.0",
5755
"@typescript-eslint/parser": "^4.1.0",
58-
"@uniswap/default-token-list": "^2.0.0",
56+
"@uniswap/default-token-list": "^2.1.0",
5957
"@uniswap/governance": "^1.0.2",
6058
"@uniswap/liquidity-staker": "^1.0.2",
6159
"@uniswap/merkle-distributor": "1.0.1",
6260
"@uniswap/sdk-core": "^3.0.1",
63-
"@uniswap/token-lists": "^1.0.0-beta.26",
61+
"@uniswap/token-lists": "^1.0.0-beta.27",
6462
"@uniswap/v2-core": "1.0.0",
6563
"@uniswap/v2-periphery": "^1.1.0-beta.0",
6664
"@uniswap/v2-sdk": "^3.0.0-alpha.2",
6765
"@uniswap/v3-core": "1.0.0",
6866
"@uniswap/v3-periphery": "^1.1.1",
69-
"@uniswap/v3-sdk": "^3.4.1",
67+
"@uniswap/v3-sdk": "^3.7.1",
7068
"@web3-react/core": "^6.0.9",
7169
"@web3-react/fortmatic-connector": "^6.0.9",
7270
"@web3-react/injected-connector": "^6.0.7",
7371
"@web3-react/portis-connector": "^6.0.9",
7472
"@web3-react/walletconnect-connector": "^7.0.2-alpha.0",
75-
"@web3-react/walletlink-connector": "^6.2.3",
76-
"@web3-react/types": "^6.0.7",
77-
"@web3-react/abstract-connector": "^6.0.7",
73+
"@web3-react/walletlink-connector": "^6.2.8",
7874
"ajv": "^6.12.3",
7975
"array.prototype.flat": "^1.2.4",
8076
"array.prototype.flatmap": "^1.2.4",
@@ -90,12 +86,13 @@
9086
"eslint-plugin-react": "^7.19.0",
9187
"eslint-plugin-react-hooks": "^4.0.0",
9288
"eslint-plugin-simple-import-sort": "^7.0.0",
89+
"eslint-plugin-unused-imports": "^2.0.0",
9390
"ethers": "^5.4.6",
91+
"firebase": "^9.1.3",
9492
"graphql": "^15.5.0",
9593
"graphql-request": "^3.4.0",
9694
"inter-ui": "^3.13.1",
9795
"jest-styled-components": "^7.0.5",
98-
"luxon": "^1.25.0",
9996
"microbundle": "^0.13.3",
10097
"ms.macro": "^2.0.0",
10198
"multicodec": "^3.0.1",
@@ -129,8 +126,8 @@
129126
"@walletconnect/ethereum-provider": "1.6.5"
130127
},
131128
"scripts": {
132-
"contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'",
133-
"contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'",
129+
"contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"",
130+
"contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 \"./node_modules/@uniswap/**/artifacts/contracts/**/*.json\"",
134131
"contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:v3",
135132
"graphql:generate": "graphql-codegen --config codegen.yml",
136133
"prei18n:extract": "touch src/locales/en-US.po",
@@ -146,12 +143,6 @@
146143
"bundle": "microbundle --tsconfig tsconfig.lib.json src/lib/index.tsx --format esm,cjs",
147144
"cosmos": "open http://localhost:5000 && cross-env FAST_REFRESH=false cosmos"
148145
},
149-
"eslintConfig": {
150-
"extends": "react-app",
151-
"ignorePatterns": [
152-
"node_modules"
153-
]
154-
},
155146
"browserslist": {
156147
"production": [
157148
">0.2%",
@@ -166,6 +157,7 @@
166157
},
167158
"license": "GPL-3.0-or-later",
168159
"dependencies": {
160+
"@lingui/core": "^3.9.0",
169161
"@lingui/macro": "^3.9.0",
170162
"@lingui/react": "^3.9.0",
171163
"@popperjs/core": "^2.4.4",

src/abis/erc1155.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[
2+
{
3+
"constant": true,
4+
"inputs": [
5+
{
6+
"internalType": "address",
7+
"name": "_owner",
8+
"type": "address"
9+
},
10+
{
11+
"internalType": "uint256",
12+
"name": "_id",
13+
"type": "uint256"
14+
}
15+
],
16+
"name": "balanceOf",
17+
"outputs": [
18+
{
19+
"internalType": "uint256",
20+
"name": "",
21+
"type": "uint256"
22+
}
23+
],
24+
"payable": false,
25+
"stateMutability": "view",
26+
"type": "function"
27+
},
28+
{
29+
"constant": true,
30+
"inputs": [
31+
{
32+
"internalType": "uint256",
33+
"name": "_id",
34+
"type": "uint256"
35+
}
36+
],
37+
"name": "uri",
38+
"outputs": [
39+
{
40+
"internalType": "string",
41+
"name": "",
42+
"type": "string"
43+
}
44+
],
45+
"payable": false,
46+
"stateMutability": "view",
47+
"type": "function"
48+
}
49+
]

src/abis/erc721.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "uint256",
6+
"name": "tokenId",
7+
"type": "uint256"
8+
}
9+
],
10+
"name": "ownerOf",
11+
"outputs": [
12+
{
13+
"internalType": "address",
14+
"name": "",
15+
"type": "address"
16+
}
17+
],
18+
"stateMutability": "view",
19+
"type": "function"
20+
},
21+
{
22+
"inputs": [
23+
{
24+
"internalType": "uint256",
25+
"name": "tokenId",
26+
"type": "uint256"
27+
}
28+
],
29+
"name": "tokenURI",
30+
"outputs": [
31+
{
32+
"internalType": "string",
33+
"name": "",
34+
"type": "string"
35+
}
36+
],
37+
"stateMutability": "view",
38+
"type": "function"
39+
}
40+
]

src/components/AccountDetails/TransactionSummary.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function ClaimSummary({ info: { recipient, uniAmountRaw } }: { info: ClaimTransa
8080
)
8181
}
8282

83-
function SubmitProposalTransactionSummary({}: { info: SubmitProposalTransactionInfo }) {
83+
function SubmitProposalTransactionSummary(_: { info: SubmitProposalTransactionInfo }) {
8484
return <Trans>Submit new proposal</Trans>
8585
}
8686

@@ -147,13 +147,13 @@ function WrapSummary({ info: { currencyAmountRaw, unwrapped } }: { info: WrapTra
147147
}
148148
}
149149

150-
function DepositLiquidityStakingSummary({}: { info: DepositLiquidityStakingTransactionInfo }) {
150+
function DepositLiquidityStakingSummary(_: { info: DepositLiquidityStakingTransactionInfo }) {
151151
// not worth rendering the tokens since you can should no longer deposit liquidity in the staking contracts
152152
// todo: deprecate and delete the code paths that allow this, show user more information
153153
return <Trans>Deposit liquidity</Trans>
154154
}
155155

156-
function WithdrawLiquidityStakingSummary({}: { info: WithdrawLiquidityStakingTransactionInfo }) {
156+
function WithdrawLiquidityStakingSummary(_: { info: WithdrawLiquidityStakingTransactionInfo }) {
157157
return <Trans>Withdraw deposited liquidity</Trans>
158158
}
159159

0 commit comments

Comments
 (0)