Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] Dashboard show all trades if wallet connected to a wrong network #309

Closed
ugolino opened this issue Dec 22, 2022 · 0 comments · Fixed by #308
Closed

[FE] Dashboard show all trades if wallet connected to a wrong network #309

ugolino opened this issue Dec 22, 2022 · 0 comments · Fixed by #308
Assignees
Labels
bug Something isn't working front-end Front-end new features

Comments

@ugolino
Copy link
Contributor

ugolino commented Dec 22, 2022

The Dashbord shows all the trades made by DHV if the wallet is connected to the wrong network instead of showing only the user positions.

I assume the issue is with subgraph query in case the address is undefined or something related to that.

@ugolino ugolino added bug Something isn't working front-end Front-end new features labels Dec 22, 2022
bestatigen added a commit that referenced this issue Dec 23, 2022
otherwise it retrieves all of Graphs option as empty string is passed

Closes #309
@bestatigen bestatigen linked a pull request Dec 24, 2022 that will close this issue
10 tasks
ugolino pushed a commit that referenced this issue Dec 27, 2022
* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311
kjr217 added a commit that referenced this issue Jan 18, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
kjr217 added a commit that referenced this issue Jan 24, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
MeanBoyCousin added a commit that referenced this issue Jan 31, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
kjr217 added a commit that referenced this issue Feb 1, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
kjr217 added a commit that referenced this issue Feb 1, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
MeanBoyCousin added a commit that referenced this issue Feb 6, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
kjr217 added a commit that referenced this issue Feb 7, 2023
* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* feat: implement fixes

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* feat: make collateral to remove a variable

* install dependancies

* fix unknown tx error

* add tests for price variance during pending orders

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh <[email protected]>
MeanBoyCousin added a commit that referenced this issue Feb 13, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bestatigen added a commit that referenced this issue Feb 14, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bestatigen added a commit that referenced this issue Feb 15, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bestatigen pushed a commit that referenced this issue Feb 15, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

feat(hooks): useTenderlySimulators.tsx
MeanBoyCousin added a commit that referenced this issue Feb 16, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
MeanBoyCousin added a commit that referenced this issue Apr 3, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
MeanBoyCousin added a commit that referenced this issue Apr 18, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
MeanBoyCousin added a commit that referenced this issue May 31, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
MeanBoyCousin added a commit that referenced this issue May 31, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
MeanBoyCousin added a commit that referenced this issue Jul 12, 2023
* Fix/buyback otc (#285)

* wip

* labels

* Feature - Performance Table with Price per Share (#282)

* Show growthSinceFirstEpoch as Cumulative Yield

* Fill PricePerShares Performance Chart

* Comment

* Copy

Co-authored-by: Dan

* Get first 1000 pricePerShares

Instead of 30

* chart labels

* Group PricePerShare Epochs by Day

* Minor adjustments to Performance plot

* Minor adjustments to Performance plot

* Set Performance Plot line to natural

* Revert group by day

Scaling XAxis by time with a tick gap is enough

Co-authored-by: Dan

* Add Prettier (#283)

* Add Prettier

* Add es-lint-config-prettier

+ extend in .eslintrc.json

* .prettierignore

* npx prettier --write ./front-end/src

* .prettierrc.json

* npx prettier --write ./front-end/src

* remove error if withdrawalAmount is 0 (#288)

* remove error if withdrawalAmount is 0

* add test case

* copy rinkeby deploy folder and rename to goerli (#287)

* copy rinkeby deploy folder and rename to goerli

* Bump @nomiclabs/hardhat-etherscan from 2.x to 3.x

* Setup arbitrumGoerli in hardhat.config.ts

* Refactor Arbitrum Rinkeby file copy for Goerli

+ lint file

* Add arbitrumGoerli addresses in contracts.json

* Add Arbitrum Goerli addresses TO Markdown

* delete redundant copied rinkeby files

* update ethers and remove deprecated testnets

* update full protocol deploy script for goerli

* update uniswap pool fee to 500

* edit deploy scripts for goerli and remove rinkeby network

* redeploy contracts and update addresses

* edit setup protocol script

* update packages to fix failing tests'

* resolve package conflicts

* remove goerli ethers infura provider

* remove arbitrum ethers infura provider

* update hardhat config

Co-authored-by: Yassine <[email protected]>

* Remove 11utc copy (#291)

Remove 11am UTCs

* fixed walletconnect (#295)

* fixed walletconnect

* Use react-app-rewired to include buffer

- Remove require from App.tsc

* Move react-app-rewired to dev dependencies

Co-authored-by: Yassine <[email protected]>

* Use correct chainId for Arbitrum (#296)

Use correct chain hex id for Arbitrum

* Fix Yield y-axis domain  (#298)

* fix: parseFloat growthSinceFirstEpoch

* docs: Comment about parseFloat of BigDecimal string

* Fix issue with Yield timestamp order (#299)

fix(charts): Use Array to build PPS graph data

Using the map return doesn't guarantee order

* Refresh style of Table (#304)

* style(trades): Refresh style of Table

* style(trades): Minor adjustments

align amount right
restyle trade tab column
use normal font for first
column

* build(packages): Add react-fullscreen

* feat(components): Fullscreen trades

* feat(hooks): useElementOnScreen.tsx

Hook that allows to check if an element is on screen or not.

* feat(app): Merge policies for paged query

For writeOptions, buybackOption and rebalanceDelta simply add incoming
to the end of array

* feat(components): 10 days paging for trades

Retrieve last 10 days of trades on scroll, 10 by 10

* fix(components): fetch more if trades on screen

In case last trade is still intersecting with viewport this triggers
fetch more anyway as we move the ref to the last trade on render

* build(package): react-content-loader

* feat(components): Loaders for table

* style(components): bg color of loaders

* fix(components): bg of last td while fullscreen

* Use correct epoch for Cumulative Yield (#306)

fix(graph): Order pricePerShares by timestamp

* Minor Alpha front-end fixes (#308)

* fix(components): Fix svg card tabs to fit

otherwise the tab stays smaller than the text in it

* refactor(components): Hide progress bar if no collateral

better ui

* style(components): Move home banner closer to top

better ui

* refactor(components): Show query error in trades table if any

+ add bg-bone to fullscreen component

* fix(graph): Skip query if !account in dashboard options

otherwise it retrieves all of Graphs option as empty string is passed

Closes #309

* fix(components): Allow any user to see orders

already working for strangle but not single put or call order

Closes #311

* Move front-end to Goerli (#292)

* Move to Goerli (from Rinkeby)

* Remove Rinkeby contracts

* Update Explorer to Goerli for Testnet

* Add deployed Opyn Gamma Goerli Subgraph

* refactor: alpha sort constants

* Only run hardhat on changes to SC code. (#329)

* Performance chart public launch (#321)

* Add eslint rule to remove unnecessary imports on React.

* Clean up unused component.

* Set baseUrl to allow cleaner imports.

* Package additions for handling dates and animations.

* Vault performance chart adjustments and readme.

* Clean up after moving file location.

* More readable text length.

* Use react-helmet to "noindex, nofollow" every deployment except prod. Use REACT_APP_NETWORK over REACT_APP_ENV to determine network to use.

* React 18 (#337)

* Upgrade to React 18.2.0 and fix typing issues.

* Fix react imports and typing issues.

* Bump npm from 8.9.0 to 8.11.0

Bumps [npm](https://github.com/npm/cli) from 8.9.0 to 8.11.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/v8.11.0/CHANGELOG.md)
- [Commits](npm/cli@v8.9.0...v8.11.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Yarn workspaces (#338)

* Clean up package.json files for better consistency.

* Move to Yarn and Yarn workspaces.

* Build without bash script.

* Fix syntax errors.

* Remove non-existent files.

* Workspaces with nohoist for typechain packages.

* Update docs.

* Lock updates.

* Remove console.logs and fix bad test.

* Package upgrades and cleaning (#347)

* Clean and upgrade contacts packages. Hoist shared packages to top level package file.

* chore: remove bad test

* Move non-package details to their own config files.

* Remove unused code for @nivo package.

* Remove unused code for react-scroll package.

* API changes for framer-motion.

* Remove unused code for humanize-duration package.

* Remove singular use of Axios for native fetch.

* Better typing.

* Better typings.

* Switch to dayjs.

* chore: downgrade ethers to 5.4.0

Co-authored-by: kjr217 <[email protected]>

* chore: get branch level with alpha

* chore: remove mention of rinkeby

* chore: fix config bug

* chore: update arbitrum with alchemy provider

* chore: change arbitrum rpc creation location

* Update hardhat.yml

* chore: fix arbi rpc

* chore: upgrade to dayjs from moments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dan <[email protected]>
Co-authored-by: Yassine <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Tim Dunphy <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front-end Front-end new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants