This repository has been archived by the owner on Apr 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add error tab for swap * feat: redux-router * refactor: refund tab * feat: fee * feat: swap values
- Loading branch information
1 parent
a220992
commit 06ab368
Showing
20 changed files
with
368 additions
and
162 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const ENTER_SWAP_MODE = 'ENTER_SWAP_MODE'; | ||
export const ENTER_REFUND_MODE = 'ENTER_REFUND_MODE'; | ||
export const SET_SWAP_AMOUNT = 'SET_SWAP_AMOUNT'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const MIN = 0.005; | ||
export const MAX = 0.5; | ||
// TODO: get the fee from boltz-backend. | ||
export const FEE = 0.0001; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { applyMiddleware, createStore } from 'redux'; | ||
import { applyMiddleware, createStore, compose } from 'redux'; | ||
import { createBrowserHistory } from 'history'; | ||
import { routerMiddleware } from 'connected-react-router'; | ||
import createRootReducer from './rootReducer'; | ||
|
||
import logger from 'redux-logger'; | ||
import rootReducer from './rootReducer'; | ||
|
||
const store = createStore(rootReducer, applyMiddleware(logger)); | ||
const history = createBrowserHistory(); | ||
|
||
const store = createStore( | ||
createRootReducer(history), | ||
compose(applyMiddleware(logger, routerMiddleware(history))) | ||
); | ||
|
||
export { history }; | ||
export default store; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { combineReducers } from 'redux'; | ||
import swapReducer from '../views/landingPage/landingPageReducer'; | ||
import { connectRouter } from 'connected-react-router'; | ||
import swapReducer from '../views/swap/swapReducer'; | ||
import refundReducer from '../views/refund/refundReducer'; | ||
|
||
const rootReducer = combineReducers({ | ||
swapReducer, | ||
refundReducer, | ||
}); | ||
const createRootReducer = history => | ||
combineReducers({ | ||
router: connectRouter(history), | ||
swapReducer, | ||
refundReducer, | ||
}); | ||
|
||
export default rootReducer; | ||
export default createRootReducer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.