Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
bf9dad25
Commit
bf9dad25
authored
Feb 13, 2021
by
Jordan Frankfurt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump react
parent
b05c4c11
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4265 additions
and
5156 deletions
+4265
-5156
package.json
package.json
+8
-8
index.tsx
src/components/LineChart/index.tsx
+1
-1
V1.tsx
src/components/PositionCard/V1.tsx
+6
-7
NetworkConnector.ts
src/connectors/NetworkConnector.ts
+7
-2
updater.tsx
src/state/transactions/updater.tsx
+7
-4
tsconfig.json
tsconfig.json
+19
-5
yarn.lock
yarn.lock
+4217
-5129
No files found.
package.json
View file @
bf9dad25
...
@@ -24,9 +24,9 @@
...
@@ -24,9 +24,9 @@
"
@types/multicodec
"
:
"
^1.0.0
"
,
"
@types/multicodec
"
:
"
^1.0.0
"
,
"
@types/node
"
:
"
^13.13.5
"
,
"
@types/node
"
:
"
^13.13.5
"
,
"
@types/qs
"
:
"
^6.9.2
"
,
"
@types/qs
"
:
"
^6.9.2
"
,
"
@types/react
"
:
"
^1
6.9.34
"
,
"
@types/react
"
:
"
^1
7.0.2
"
,
"
@types/react-dom
"
:
"
^1
6.9.7
"
,
"
@types/react-dom
"
:
"
^1
7.0.1
"
,
"
@types/react-redux
"
:
"
^7.1.
8
"
,
"
@types/react-redux
"
:
"
^7.1.
16
"
,
"
@types/react-router-dom
"
:
"
^5.0.0
"
,
"
@types/react-router-dom
"
:
"
^5.0.0
"
,
"
@types/react-virtualized-auto-sizer
"
:
"
^1.0.0
"
,
"
@types/react-virtualized-auto-sizer
"
:
"
^1.0.0
"
,
"
@types/react-window
"
:
"
^1.8.2
"
,
"
@types/react-window
"
:
"
^1.8.2
"
,
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
"
copy-to-clipboard
"
:
"
^3.2.0
"
,
"
copy-to-clipboard
"
:
"
^3.2.0
"
,
"
cross-env
"
:
"
^7.0.2
"
,
"
cross-env
"
:
"
^7.0.2
"
,
"
cypress
"
:
"
^4.11.0
"
,
"
cypress
"
:
"
^4.11.0
"
,
"
eslint
"
:
"
^
6.8
.0
"
,
"
eslint
"
:
"
^
7.11
.0
"
,
"
eslint-config-prettier
"
:
"
^6.11.0
"
,
"
eslint-config-prettier
"
:
"
^6.11.0
"
,
"
eslint-plugin-prettier
"
:
"
^3.1.3
"
,
"
eslint-plugin-prettier
"
:
"
^3.1.3
"
,
"
eslint-plugin-react
"
:
"
^7.19.0
"
,
"
eslint-plugin-react
"
:
"
^7.19.0
"
,
...
@@ -73,18 +73,18 @@
...
@@ -73,18 +73,18 @@
"
polished
"
:
"
^3.3.2
"
,
"
polished
"
:
"
^3.3.2
"
,
"
prettier
"
:
"
^1.17.0
"
,
"
prettier
"
:
"
^1.17.0
"
,
"
qs
"
:
"
^6.9.4
"
,
"
qs
"
:
"
^6.9.4
"
,
"
react
"
:
"
^1
6.13
.1
"
,
"
react
"
:
"
^1
7.0
.1
"
,
"
react-confetti
"
:
"
^6.0.0
"
,
"
react-confetti
"
:
"
^6.0.0
"
,
"
react-device-detect
"
:
"
^1.6.2
"
,
"
react-device-detect
"
:
"
^1.6.2
"
,
"
react-dom
"
:
"
^1
6.13
.1
"
,
"
react-dom
"
:
"
^1
7.0
.1
"
,
"
react-feather
"
:
"
^2.0.8
"
,
"
react-feather
"
:
"
^2.0.8
"
,
"
react-ga
"
:
"
^2.5.7
"
,
"
react-ga
"
:
"
^2.5.7
"
,
"
react-i18next
"
:
"
^10.7.0
"
,
"
react-i18next
"
:
"
^10.7.0
"
,
"
react-markdown
"
:
"
^4.3.1
"
,
"
react-markdown
"
:
"
^4.3.1
"
,
"
react-popper
"
:
"
^2.2.3
"
,
"
react-popper
"
:
"
^2.2.3
"
,
"
react-redux
"
:
"
^7.2.
0
"
,
"
react-redux
"
:
"
^7.2.
2
"
,
"
react-router-dom
"
:
"
^5.0.0
"
,
"
react-router-dom
"
:
"
^5.0.0
"
,
"
react-scripts
"
:
"
^
3.4.1
"
,
"
react-scripts
"
:
"
^
4.0.2
"
,
"
react-spring
"
:
"
^8.0.27
"
,
"
react-spring
"
:
"
^8.0.27
"
,
"
react-use-gesture
"
:
"
^6.0.14
"
,
"
react-use-gesture
"
:
"
^6.0.14
"
,
"
react-virtualized-auto-sizer
"
:
"
^1.0.2
"
,
"
react-virtualized-auto-sizer
"
:
"
^1.0.2
"
,
...
...
src/components/LineChart/index.tsx
View file @
bf9dad25
...
@@ -153,7 +153,7 @@ const LineChart = ({
...
@@ -153,7 +153,7 @@ const LineChart = ({
chart
.
timeScale
().
fitContent
()
chart
.
timeScale
().
fitContent
()
setChart
(
chart
)
setChart
(
chart
)
}
}
},
[
chartCreated
,
currenValue
,
data
,
height
,
setValue
,
textColor
,
theme
.
bg1
])
},
[
c
olor
,
c
hartCreated
,
currenValue
,
data
,
height
,
setValue
,
textColor
,
theme
.
bg1
])
return
(
return
(
<
Wrapper
>
<
Wrapper
>
...
...
src/components/PositionCard/V1.tsx
View file @
bf9dad25
import
{
Token
,
TokenAmount
,
WETH
}
from
'
@uniswap/sdk
'
import
React
,
{
useContext
}
from
'
react
'
import
React
,
{
useContext
}
from
'
react
'
import
{
Link
,
RouteComponentProps
,
withRouter
}
from
'
react-router-dom
'
import
{
Link
,
RouteComponentProps
,
withRouter
}
from
'
react-router-dom
'
import
{
Token
,
TokenAmount
,
WETH
}
from
'
@uniswap/sdk
'
import
{
Text
}
from
'
rebass
'
import
{
Text
}
from
'
rebass
'
import
{
AutoColumn
}
from
'
../Column
'
import
{
ThemeContext
}
from
'
styled-components
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
ButtonSecondary
}
from
'
../Button
'
import
{
ButtonSecondary
}
from
'
../Button
'
import
{
AutoColumn
}
from
'
../Column
'
import
DoubleCurrencyLogo
from
'
../DoubleLogo
'
import
{
RowBetween
,
RowFixed
}
from
'
../Row
'
import
{
RowBetween
,
RowFixed
}
from
'
../Row
'
import
{
FixedHeightRow
,
HoverCard
}
from
'
./index
'
import
{
FixedHeightRow
,
HoverCard
}
from
'
./index
'
import
DoubleCurrencyLogo
from
'
../DoubleLogo
'
import
{
useActiveWeb3React
}
from
'
../../hooks
'
import
{
ThemeContext
}
from
'
styled-components
'
interface
PositionCardProps
extends
RouteComponentProps
<
{}
>
{
interface
PositionCardProps
extends
RouteComponentProps
<
Record
<
string
,
any
>
>
{
token
:
Token
token
:
Token
V1LiquidityBalance
:
TokenAmount
V1LiquidityBalance
:
TokenAmount
}
}
...
...
src/connectors/NetworkConnector.ts
View file @
bf9dad25
...
@@ -102,7 +102,12 @@ class MiniRpcProvider implements AsyncSendable {
...
@@ -102,7 +102,12 @@ class MiniRpcProvider implements AsyncSendable {
}
}
public
readonly
sendAsync
=
(
public
readonly
sendAsync
=
(
request
:
{
jsonrpc
:
'
2.0
'
;
id
:
number
|
string
|
null
;
method
:
string
;
params
?:
unknown
[]
|
object
},
request
:
{
jsonrpc
:
'
2.0
'
id
:
number
|
string
|
null
method
:
string
params
?:
unknown
[]
|
Record
<
string
,
unknown
>
},
callback
:
(
error
:
any
,
response
:
any
)
=>
void
callback
:
(
error
:
any
,
response
:
any
)
=>
void
):
void
=>
{
):
void
=>
{
this
.
request
(
request
.
method
,
request
.
params
)
this
.
request
(
request
.
method
,
request
.
params
)
...
@@ -112,7 +117,7 @@ class MiniRpcProvider implements AsyncSendable {
...
@@ -112,7 +117,7 @@ class MiniRpcProvider implements AsyncSendable {
public
readonly
request
=
async
(
public
readonly
request
=
async
(
method
:
string
|
{
method
:
string
;
params
:
unknown
[]
},
method
:
string
|
{
method
:
string
;
params
:
unknown
[]
},
params
?:
unknown
[]
|
object
params
?:
unknown
[]
|
Record
<
string
,
unknown
>
):
Promise
<
unknown
>
=>
{
):
Promise
<
unknown
>
=>
{
if
(
typeof
method
!==
'
string
'
)
{
if
(
typeof
method
!==
'
string
'
)
{
return
this
.
request
(
method
.
method
,
method
.
params
)
return
this
.
request
(
method
.
method
,
method
.
params
)
...
...
src/state/transactions/updater.tsx
View file @
bf9dad25
...
@@ -5,10 +5,13 @@ import { useAddPopup, useBlockNumber } from '../application/hooks'
...
@@ -5,10 +5,13 @@ import { useAddPopup, useBlockNumber } from '../application/hooks'
import
{
AppDispatch
,
AppState
}
from
'
../index
'
import
{
AppDispatch
,
AppState
}
from
'
../index
'
import
{
checkedTransaction
,
finalizeTransaction
}
from
'
./actions
'
import
{
checkedTransaction
,
finalizeTransaction
}
from
'
./actions
'
export
function
shouldCheck
(
interface
TxInterface
{
lastBlockNumber
:
number
,
addedTime
:
number
tx
:
{
addedTime
:
number
;
receipt
?:
{};
lastCheckedBlockNumber
?:
number
}
receipt
?:
Record
<
string
,
any
>
):
boolean
{
lastCheckedBlockNumber
?:
number
}
export
function
shouldCheck
(
lastBlockNumber
:
number
,
tx
:
TxInterface
):
boolean
{
if
(
tx
.
receipt
)
return
false
if
(
tx
.
receipt
)
return
false
if
(
!
tx
.
lastCheckedBlockNumber
)
return
true
if
(
!
tx
.
lastCheckedBlockNumber
)
return
true
const
blocksSinceCheck
=
lastBlockNumber
-
tx
.
lastCheckedBlockNumber
const
blocksSinceCheck
=
lastBlockNumber
-
tx
.
lastCheckedBlockNumber
...
...
tsconfig.json
View file @
bf9dad25
{
{
"compilerOptions"
:
{
"compilerOptions"
:
{
"target"
:
"es5"
,
"target"
:
"es5"
,
"lib"
:
[
"dom"
,
"dom.iterable"
,
"esnext"
],
"lib"
:
[
"dom"
,
"dom.iterable"
,
"esnext"
],
"allowJs"
:
true
,
"allowJs"
:
true
,
"skipLibCheck"
:
true
,
"skipLibCheck"
:
true
,
"forceConsistentCasingInFileNames"
:
true
,
"forceConsistentCasingInFileNames"
:
true
,
...
@@ -19,12 +23,22 @@
...
@@ -19,12 +23,22 @@
"moduleResolution"
:
"node"
,
"moduleResolution"
:
"node"
,
"resolveJsonModule"
:
true
,
"resolveJsonModule"
:
true
,
"isolatedModules"
:
true
,
"isolatedModules"
:
true
,
"jsx"
:
"
preserve
"
,
"jsx"
:
"
react
"
,
"downlevelIteration"
:
true
,
"downlevelIteration"
:
true
,
"allowSyntheticDefaultImports"
:
true
,
"allowSyntheticDefaultImports"
:
true
,
"types"
:
[
"react-spring"
,
"jest"
],
"types"
:
[
"react-spring"
,
"jest"
],
"baseUrl"
:
"src"
"baseUrl"
:
"src"
},
},
"exclude"
:
[
"node_modules"
,
"cypress"
],
"exclude"
:
[
"include"
:
[
"./src/**/*.ts"
,
"./src/**/*.tsx"
,
"src/components/Confetti/index.js"
]
"node_modules"
,
"cypress"
],
"include"
:
[
"./src/**/*.ts"
,
"./src/**/*.tsx"
,
"src/components/Confetti/index.js"
]
}
}
yarn.lock
View file @
bf9dad25
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment