Skip to content

Add gopher package and /bridge route #1195

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

Merged
merged 4 commits into from
Jun 20, 2024
Merged

Add gopher package and /bridge route #1195

merged 4 commits into from
Jun 20, 2024

Conversation

sentilesdal
Copy link
Contributor

Adds the /bridge route to the app under the 'bridge' flag.
Adds a basic packages/gopher with generated typescript api for gopher's swagger api.

Copy link

vercel bot commented Jun 20, 2024

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

Name Status Preview Comments Updated (UTC)
hyperdrive-monorepo-hyperdrive-trading ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2024 8:12pm
hyperdrive-sepolia-production ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2024 8:12pm
hyperdrive-sepolia-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2024 8:12pm
testnet-v1 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 20, 2024 8:12pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
hyperdrive-js ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 8:12pm
trading-competition ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 8:12pm

Copy link

changeset-bot bot commented Jun 20, 2024

⚠️ No Changeset found

Latest commit: cc527f2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@DannyDelott DannyDelott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@sentilesdal sentilesdal merged commit bda893f into main Jun 20, 2024
12 checks passed
@sentilesdal sentilesdal deleted the matt/add-gopher branch June 20, 2024 20:23
mcclurejt added a commit that referenced this pull request Jun 28, 2024
* Fix convertToShares when StETH (#1169)

* check if shares is pegged

* move into variable

* adds adjust slippage error (#1166)

* Show effective short apr in preview (#1165)

* show short apr after open

* adds short apr after open

* Rename label

* updates per comments

* Fix total values to include closed (#1175)

* check if closed longs

* fix total values for closed

* remove console log

* remove typecasting

* move total variable

* split into two hooks

* moved is loading

* adds enabled param

* Migrate steth -> lidoShares conversion from sdk to frontend (#1176)

* Remove conversions from ReadStethHyperdrive and ReadWriteStethHyperdrive

* Create usePrepareSharesIn and usePrepareSharesOut

* minor cleanup in aisle useAccruedYield

* Update usePreviewOpenLong to prepare shares in

* Update usePreviewCloseLong to prepare shares out

* Update useMaxLong to prepare shares out

* Update useCloseLong to prepare shares in

* Update useOpenLong to prepare shares in

* Update useAddLiquidity to prepare shares in

* Update usePreviewAddLiquidity to prepare shares in

* Update usePreviewRedeemWithdrawalShares to convert shares out

* Update useRedeemWithdrawalShares to prepare shares in

* Update useRemoveLiquidity to prepare shares in

* Update usePreviewRemoveLiquidity to prepare shares in and out

* Update useMaxShort to prepare shares out

* Update useOpenShort to prepare shares in

* Update usePreviewOpenShort to prepare shares out

* Update useCloseShort to prepare shares in

* Update usePreviewCloseShort to prepare shares out

* Fix sign in prepareSharesOut

* Remove unnecessary extra conversions that caused loss of precision

* early return

* color net short rate red/green (#1177)

* anonymize ip (#1178)

* Polish modal forms for all position types (#1181)

* Upgrade to latest daisy

* Add texture svgs

* Darken backdrop on modals

* Add size prop to LabelValue

* Add size and horizontal props to Stat

* Add modalHeader prop to Modal

* Remove Well from TransactionPreview component

* Add header to open long modal

* Re-organize the OpenLongPreview, put market impact in daisy-collapse

* Refactor to ModalHeader component

* Fix layout shift on focus

* Add xsmall size to Stat component

* move getRemainingTimeLabel to own file

* Refactor CloseLongForm and CloseLongModalButton to use new modal style

* Create base component for CollapseSection

* Refactor OpenShort

* Refactor Close Short

* Tweak stat size

* Add '.00' if rate is a whole number

* tweak spacing

* Slightly dim the before text color for market impact

* Refactor Add Liquidity modal

* Refactor Remove liquidity form

* Refactor withdrawal shares

* Throw error in getSubheadingLabel utils

* inline

* Throw test error for rollbar (#1182)

* throw test error

* updates per comments

* udpate footer links, adds icons (#1183)

* remove unused tableheader on mobile (#1184)

* Polish open and close position modals (#1188)

* Fix gap when using stat without a label

* Prevent wrapping by using condensed label

* Simplify props to just what's used

* Code cleanups

* Polish Term Completed badges in close modals

* Add docblock

* adds error for total value (#1193)

* Add gopher package and /bridge route (#1195)

* add step to README

* add bridge page

* add gopher package

* cleanup

* Remove spark package (#1196)

* give tos modal some breating room (#1198)

* show insufficient balance second (#1199)

* Add calcShortMarketValue to hyperdrive-wasm (#1167)

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

* Display Negative Short APR/ROI in Red in Yield Stats (#1200)

* Add VPN and Restricted Countries pages (#1201)

* Add VPN page

* Remove pasted code from trm message

* Add restricted countries route

* Fill out Bridge page with stats. (#1202)

* add gopher dependency

* move this to the consumer

* use index for file names, ignore out dir

* add hooks

* add stats to bridge page.

* update hooks to match repo style

* flatten, use makeQueryKey

* prevent error

TS18003: No inputs were found in config file

* Polish Preview Transaction sections in open position modals (#1203)

* Polish tooltips in OpenLong and OpenShort previews

* Remove bolding

* Make the text color less bright on zeros when empty state in OpenLongPreview

* Update tooltips and text brightness on OpenShortPreview

* Cleanup layout in AddLiquidityPreview, fix active color on LP stat

* Show market short rate by default in Open Short preview

* Indent balances for easier scanning

* Flip condition

* Add Your Transactions table to market details (#1204)

* Re-use type

* Add Your Transaction table

* Remove unused z index

* Default to all transactions if no account connected

* Add Gopher Stubs (#1207)

* add gopher stubs

* add comment

* Navbar Cleanup (#1206)

* updates connect button

* version picker added

* version picker cleanup

* cleanup

* updates per comments

* add ui to switch to bridge modal (#1208)

* add ui to switch to bridge modal

* refactor OpenLongModal

* add BridgeAssetsModal

* allow multi modal mode

* toggle between modal uis

* put behind feature flag

* capitalize DELV (#1209)

* capitalize delv

* cap github

* Update repo to 1.0.12 (#1210)

* Update artifacts to 1.0.12

* Update appconfig

* Add missing field to 42069 config.

* Fix SDK types

* Update hyperwasm

* Final fixes

* Add link to v1.0.6 pools in version picker (#1212)

* Add link to v1.0.6 pools in version picker"

* Add link to v1.0.6 pools in version picker, remove version picker from behind feature flag

* updates mainnet wagmi client (#1211)

* Fix flag for Bridge UI (#1213)

* Build mock app config for mainnet (#1214)

Co-authored-by: Danny Delott <[email protected]>

* adds new text (#1216)

* Add mainnet appconfig (#1215)

* Add registry address for mainnet and generation script

* Build appconfig for mainnet

* Bump husky version, use npx

---------

Co-authored-by: Ryan Goree <[email protected]>

* new fork appconfig (#1217)

---------

Co-authored-by: Jack Burrus <[email protected]>
Co-authored-by: Danny Delott <[email protected]>
Co-authored-by: Matthew Brown <[email protected]>
Co-authored-by: MazyGio <[email protected]>
Co-authored-by: Ryan Goree <[email protected]>
Co-authored-by: Danny Delott <[email protected]>
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.

2 participants