This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from dhedge/dev-functional
Add ability to Invest and Withdraw
- Loading branch information
Showing
30 changed files
with
4,156 additions
and
141 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"default": "dhedge-gnosis-app" | ||
} | ||
} |
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,49 @@ | ||
{ | ||
"hosting": { | ||
"public": "build", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
], | ||
"headers": [ | ||
{ | ||
"source": "/service-worker.js", | ||
"headers": [{ | ||
"key": "Cache-Control", | ||
"value": "no-cache" | ||
}]}, | ||
{ | ||
"source": "/manifest.json", | ||
"headers": [{ | ||
"key": "Access-Control-Allow-Origin", | ||
"value": "*" | ||
},{ | ||
"key": "Access-Control-Allow-Methods", | ||
"value": "GET" | ||
},{ | ||
"key": "Access-Control-Allow-Headers", | ||
"value": "X-Requested-With, content-type, Authorization" | ||
}] | ||
},{ | ||
"source": "**/*.@(svg|png)", | ||
"headers": [{ | ||
"key": "Access-Control-Allow-Origin", | ||
"value": "*" | ||
},{ | ||
"key": "Access-Control-Allow-Methods", | ||
"value": "GET" | ||
},{ | ||
"key": "Access-Control-Allow-Headers", | ||
"value": "X-Requested-With, content-type, Authorization" | ||
}] | ||
} | ||
] | ||
} | ||
} |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 +1,19 @@ | ||
import React, { createContext } from 'react' | ||
import { StateInterface } from 'types/state.types'; | ||
import Web3 from 'web3' | ||
import initSdk from '@gnosis.pm/safe-apps-sdk'; | ||
|
||
interface StateInterface { | ||
activeStep?: number | ||
} | ||
const web3 = new Web3(Web3.givenProvider); | ||
const appsSdk = initSdk(); | ||
|
||
const initialState: StateInterface = { | ||
activeStep: 0 | ||
activeStep: 0, | ||
web3, | ||
appsSdk | ||
} | ||
|
||
const initialContext: [StateInterface, React.Dispatch<React.SetStateAction<StateInterface>>] = [{}, () => ({})] | ||
const initialContext: [StateInterface, React.Dispatch<React.SetStateAction<StateInterface>>] = [{ web3, appsSdk }, () => ({})] | ||
|
||
const GlobalState = createContext(initialContext) | ||
|
||
export { GlobalState, initialState } | ||
export { GlobalState, initialState } |
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
Oops, something went wrong.