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
4dbade52
Unverified
Commit
4dbade52
authored
Nov 02, 2018
by
Chi Kei Chan
Committed by
GitHub
Nov 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Documentation; Remove Pending Tx on reject (#114)
parent
058cfc26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
+36
-3
README.md
README.md
+21
-0
web3connect.js
src/ducks/web3connect.js
+15
-3
No files found.
README.md
View file @
4dbade52
...
...
@@ -5,3 +5,24 @@ This is the repository for [uniswap.io](https://uniswap.io/). Uniswap is an inte
*
Join the reddit:
[
https://www.reddit.com/r/Uniswap/
](
https://www.reddit.com/r/UniSwap/
)
*
Email us:
[
contact@uniswap.io
](
mailto:contact@uniswap.io
)
*
Read the whitepaper:
[
Link
](
https://hackmd.io/C-DvwDSfSxuh-Gd4WKE_ig
)
### To Start Development
###### Installing dependency
```
bash
yarn
```
###### Running locally on Rinkeby
```
bash
yarn start:rinkeby
```
###### Running locally on other testnet
```
bash
REACT_APP_NETWORK_ID
=
2
REACT_APP_NETWORK
=
'Ropsten Test Network'
react-scripts start
```
### Contributions
Please open all pull requests against
`dev`
branch.
src/ducks/web3connect.js
View file @
4dbade52
...
...
@@ -342,18 +342,30 @@ export const sync = () => async (dispatch, getState) => {
});
pending
.
forEach
(
async
txId
=>
{
const
data
=
await
web3
.
eth
.
getTransactionReceipt
(
txId
)
||
{};
if
(
data
.
status
)
{
try
{
const
data
=
await
web3
.
eth
.
getTransactionReceipt
(
txId
)
||
{};
dispatch
({
type
:
REMOVE_PENDING_TX
,
payload
:
txId
,
});
if
(
data
.
status
)
{
dispatch
({
type
:
ADD_CONFIRMED_TX
,
payload
:
txId
,
});
}
else
{
// TODO: dispatch ADD_REJECTED_TX
}
}
catch
(
err
)
{
dispatch
({
type
:
ADD_CONFIRMED
_TX
,
type
:
REMOVE_PENDING
_TX
,
payload
:
txId
,
});
// TODO: dispatch ADD_REJECTED_TX
}
});
};
...
...
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