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
563bbf1c
Unverified
Commit
563bbf1c
authored
Feb 28, 2020
by
Noah Zinsmeister
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update addresses
parent
71f4cd39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
constants.ts
src/constants.ts
+2
-2
data.test.ts
test/data.test.ts
+1
-1
No files found.
src/constants.ts
View file @
563bbf1c
...
...
@@ -12,12 +12,12 @@ export enum ChainId {
export
const
FACTORY_ADDRESS
=
{
[
ChainId
.
MAINNET
]:
''
,
[
ChainId
.
ROPSTEN
]:
''
,
[
ChainId
.
RINKEBY
]:
'
0x
be52bB8cCa36fcD6061C307f14bAB48F09A760f9
'
,
[
ChainId
.
RINKEBY
]:
'
0x
F231A51299c872040C002f3E1918D806F951Efcb
'
,
[
ChainId
.
G
Ö
RLI
]:
''
,
[
ChainId
.
KOVAN
]:
''
}
export
const
INIT_CODE_HASH
=
'
0x
ebe7ae2e909b82f0a14f5a09eb291778942ae66818008d407a7b67aa17be7052
'
export
const
INIT_CODE_HASH
=
'
0x
762dbd0ad132fda0dfcfbc963d8f43f78fc3e23b604fc4c34f61c2ca7b3e1b36
'
export
enum
TradeType
{
EXACT_INPUT
,
...
...
test/data.test.ts
View file @
563bbf1c
...
...
@@ -14,6 +14,6 @@ describe('data', () => {
it
(
'
Exchange
'
,
async
()
=>
{
const
token
=
new
Token
(
ChainId
.
RINKEBY
,
'
0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735
'
,
18
)
// DAI
const
exchange
=
await
Exchange
.
fetchData
(
WETH
[
ChainId
.
RINKEBY
],
token
)
expect
(
exchange
.
liquidityToken
.
address
).
toEqual
(
'
0x
C0568fA2FC63123B7352c506076DFa5623D62Db5
'
)
expect
(
exchange
.
liquidityToken
.
address
).
toEqual
(
'
0x
F52A46f3Ddc2A35aD1ed7166aC3dd3435DC4AC4A
'
)
})
})
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