-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
149 changed files
with
9,735 additions
and
13,263 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,9 @@ | ||
.env | ||
.idea | ||
**/.idea | ||
.yarn | ||
coverage | ||
coverage.json | ||
node_modules | ||
|
||
# Hardhat files | ||
.docs | ||
artifacts | ||
artifacts-zk | ||
cache | ||
cache-zk | ||
deployments | ||
typechain | ||
typechain-types | ||
|
||
# Client | ||
dist | ||
## rollup-plugin-visualizer result file | ||
/client/bundleAnalysis.html | ||
|
||
# Oracle | ||
.pytest_cache | ||
__pycache__ | ||
venv | ||
|
||
# Subgraph | ||
/subgraph/build | ||
/subgraph/data | ||
/subgraph/generated | ||
/subgraph/networks.json | ||
/subgraph/tests/.* | ||
|
||
#logs | ||
/oracle/api_mock/*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,4 +1,14 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
cd client | ||
yarn install | ||
cd ../contracts | ||
yarn install | ||
cd ../coin-prices-server | ||
yarn install | ||
cd ../subgraph | ||
yarn install | ||
cd .. | ||
|
||
yarn lint-staged |
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,4 +1,13 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
cd client | ||
yarn install | ||
yarn type-check | ||
cd ../contracts | ||
yarn install | ||
yarn type-check | ||
cd ../coin-prices-server | ||
yarn install | ||
|
||
yarn type-check |
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,10 @@ | ||
dist | ||
node_modules | ||
typechain-types | ||
## rollup-plugin-visualizer result file | ||
/client/bundleAnalysis.html | ||
|
||
#logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,10 @@ | ||
## Known technical problems | ||
|
||
Typechain combines responses from contracts so that an array and object are joined together, e.g.: | ||
``` | ||
export type AllocationStructOutput = [BigNumber, BigNumber] & { | ||
allocation: BigNumber; | ||
proposalId: BigNumber; | ||
}; | ||
``` | ||
The problem with this approach is that the `react-query` package used for fetching and managing data from contracts does drop the latter object part on all but first after rerender requests. Hence, the remapping of array elements to named variables is required during response parsing phase. |
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 |
---|---|---|
|
@@ -7497,10 +7497,10 @@ [email protected]: | |
dependencies: | ||
is-typedarray "^1.0.0" | ||
|
||
typescript@^4.9.4: | ||
version "4.9.4" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" | ||
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== | ||
typescript@^5.0.2: | ||
version "5.0.2" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.2.tgz#891e1a90c5189d8506af64b9ef929fca99ba1ee5" | ||
integrity sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw== | ||
|
||
uint8arrays@^3.0.0, uint8arrays@^3.1.0: | ||
version "3.1.1" | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.