Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
swap-v2-sdk
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
swap-v2-sdk
Commits
20b63757
Unverified
Commit
20b63757
authored
May 19, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix imports
parent
a09ca5c6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
10 deletions
+15
-10
route.test.ts
src/entities/route.test.ts
+1
-2
trade.test.ts
src/entities/trade.test.ts
+1
-2
trade.ts
src/entities/trade.ts
+11
-2
router.test.ts
src/router.test.ts
+1
-2
router.ts
src/router.ts
+1
-2
No files found.
src/entities/route.test.ts
View file @
20b63757
import
{
Token
,
WETH9
,
CurrencyAmount
}
from
'
@uniswap/sdk-core
'
import
{
Ether
}
from
'
../../../../sdk-core
'
import
{
Ether
,
Token
,
WETH9
,
CurrencyAmount
}
from
'
@uniswap/sdk-core
'
import
{
Pair
,
Route
}
from
'
./index
'
describe
(
'
Route
'
,
()
=>
{
...
...
src/entities/trade.test.ts
View file @
20b63757
import
{
Ether
}
from
'
../../../../sdk-core
'
import
{
Pair
}
from
'
./pair
'
import
{
Route
}
from
'
./route
'
import
{
Trade
}
from
'
./trade
'
import
JSBI
from
'
jsbi
'
import
{
CurrencyAmount
,
Percent
,
Token
,
TradeType
,
WETH9
,
Price
}
from
'
@uniswap/sdk-core
'
import
{
Ether
,
CurrencyAmount
,
Percent
,
Token
,
TradeType
,
WETH9
,
Price
}
from
'
@uniswap/sdk-core
'
describe
(
'
Trade
'
,
()
=>
{
const
ETHER
=
Ether
.
onChain
(
1
)
...
...
src/entities/trade.ts
View file @
20b63757
import
{
Currency
,
CurrencyAmount
,
Fraction
,
Percent
,
Price
,
sortedInsert
,
TradeType
}
from
'
@uniswap/sdk-core
'
import
{
computePriceImpact
,
Token
}
from
'
../../../../sdk-core
'
import
{
computePriceImpact
,
Token
,
Currency
,
CurrencyAmount
,
Fraction
,
Percent
,
Price
,
sortedInsert
,
TradeType
}
from
'
@uniswap/sdk-core
'
import
{
ONE
,
ZERO
}
from
'
../constants
'
import
invariant
from
'
tiny-invariant
'
...
...
src/router.test.ts
View file @
20b63757
import
JSBI
from
'
jsbi
'
import
{
Ether
}
from
'
../../../sdk-core
'
import
{
Pair
,
Route
,
Trade
}
from
'
./entities
'
import
{
Router
}
from
'
./router
'
import
invariant
from
'
tiny-invariant
'
import
{
CurrencyAmount
,
Percent
,
Token
,
WETH9
}
from
'
@uniswap/sdk-core
'
import
{
CurrencyAmount
,
Percent
,
Ether
,
Token
,
WETH9
}
from
'
@uniswap/sdk-core
'
function
checkDeadline
(
deadline
:
string
[]
|
string
):
void
{
expect
(
typeof
deadline
).
toBe
(
'
string
'
)
...
...
src/router.ts
View file @
20b63757
import
{
Currency
,
CurrencyAmount
,
Percent
,
TradeType
,
validateAndParseAddress
}
from
'
@uniswap/sdk-core
'
import
{
Token
,
Currency
,
CurrencyAmount
,
Percent
,
TradeType
,
validateAndParseAddress
}
from
'
@uniswap/sdk-core
'
import
{
Trade
}
from
'
entities
'
import
invariant
from
'
tiny-invariant
'
import
{
Token
}
from
'
../../../sdk-core
'
/**
* Options for producing the arguments to send call to the router.
...
...
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