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

Minor Alpha front-end fixes #308

Merged
merged 6 commits into from
Dec 27, 2022
Merged

Minor Alpha front-end fixes #308

merged 6 commits into from
Dec 27, 2022

Conversation

bestatigen
Copy link
Contributor

@bestatigen bestatigen commented Dec 22, 2022

Task:

Various front-end fixes and adjusments.

Description

Minor fix for Safari tab cards plus some better styling and fix #309 + #311.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Document update
  • Quality of life improvement

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have NATSPEC'd any new functions
  • If appropriate, I have properly tested my new functionality

otherwise the tab stays smaller than the text in it
@bestatigen bestatigen requested a review from ugolino December 22, 2022 11:10
@vercel
Copy link

vercel bot commented Dec 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
rysk-alpha 🔄 Building (Inspect) Dec 22, 2022 at 0:05AM (UTC)

@bestatigen bestatigen changed the title Fix svg card tabs to fit Minor Alpha front-end fixes Dec 22, 2022
@bestatigen bestatigen marked this pull request as draft December 23, 2022 09:41
otherwise it retrieves all of Graphs option as empty string is passed

Closes #309
already working for strangle but not single put or call order

Closes #311
@ugolino ugolino merged commit a385444 into rysk-alpha Dec 27, 2022
@kjr217 kjr217 deleted the fix/card-tabs branch January 8, 2023 06:32
kjr217 added a commit that referenced this pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FE] Show orders to non buyers [FE] Dashboard show all trades if wallet connected to a wrong network
2 participants