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

Refactor Repo to Drift #1623

Merged
merged 43 commits into from
Nov 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c5ec6dd
Remove unnecessary morpho hyperdrive
ryangoree Oct 7, 2024
39b7839
Symlink drift packages
ryangoree Nov 3, 2024
bb0afeb
Add drift to SDK core
ryangoree Nov 3, 2024
2040ba7
Refactor sdk core to drift
ryangoree Nov 3, 2024
12ba2b0
Update exports
ryangoree Nov 3, 2024
df4c213
Remove unnecessary repetition
ryangoree Nov 4, 2024
d46c5bc
Refactor `setupReadHyperdrive` to Drift
ryangoree Nov 4, 2024
cdc88a4
Remove `syncCacheWithTransaction` in favor of `onMined`
ryangoree Nov 4, 2024
ee562a4
Remove unnecessary type casting
ryangoree Nov 4, 2024
a93a35b
Refactor tests to drift
ryangoree Nov 4, 2024
1339dff
Rename "Models" to "Clients" in sdk core
ryangoree Nov 6, 2024
2d7bfa6
Remove evm-client from sdk core
ryangoree Nov 6, 2024
2019ba2
Add drift to viem sdk
ryangoree Nov 6, 2024
e66521f
Refactor hyperdrive-viem to drift
ryangoree Nov 6, 2024
cc8d745
Remove evm-client from viem sdk
ryangoree Nov 6, 2024
6aed48a
Update appconfig for drift
ryangoree Nov 6, 2024
0631649
Add drift to UI, update SDK usage
ryangoree Nov 6, 2024
6d1bf99
Fix ReadClient
ryangoree Nov 6, 2024
a3eabf6
Remove symlinks, bump drift versions
ryangoree Nov 6, 2024
a5286b1
Add `getHyperdrive` functions
ryangoree Nov 6, 2024
9bb1611
Consolidate `client` and `drift` dirs in sdk core
ryangoree Nov 6, 2024
a3389c5
Add sdk core to sandbox and ui, bump drift-viem version
ryangoree Nov 6, 2024
393261b
Fix `getHyperdrive` in sdk core for v1.0.14 pools
ryangoree Nov 6, 2024
19a5ead
Change `HyperdriveSdkError` base to `DriftError` for better stack tra…
ryangoree Nov 6, 2024
98fb5a9
Bump drift versions
ryangoree Nov 6, 2024
38a26c6
Refactor UI to use sdk core directly
ryangoree Nov 7, 2024
87b1f5e
Remove unused prop from `OpenLongForm`
ryangoree Nov 7, 2024
ff1f8fb
Bump drift version
ryangoree Nov 8, 2024
d226fba
Copy sdk core to new pkg
ryangoree Nov 8, 2024
b7f7ee7
Switch hyperdrive-viem to new pkg
ryangoree Nov 8, 2024
bdf7c4a
Change version
ryangoree Nov 8, 2024
871ff38
Update changeset config
ryangoree Nov 8, 2024
fd6a6d0
Switch UI to new pkg
ryangoree Nov 8, 2024
a8498f6
Update sandbox
ryangoree Nov 8, 2024
8e5b5c8
Revert hyperdrive-js-core
ryangoree Nov 8, 2024
66d30ab
Remove one-off errors
ryangoree Nov 8, 2024
4fcdbbc
Consolidate hyperdrive dirs
ryangoree Nov 8, 2024
fc346ef
Move `NULL_BYTES` to base, assetId utils to new dir
ryangoree Nov 8, 2024
8b034cf
add `MarketState` to exports
ryangoree Nov 8, 2024
634f6e4
Fix exports in viem sdk
ryangoree Nov 8, 2024
2d07282
Remove comment
ryangoree Nov 9, 2024
dbf5544
Add changesets
ryangoree Nov 10, 2024
33c5b20
Remove overwriting of Registry data type
ryangoree Nov 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add MarketState to exports
  • Loading branch information
ryangoree committed Nov 10, 2024
commit 8b034cfb31ac2e30cc35a375d56dcd8061cd7b8b
8 changes: 3 additions & 5 deletions packages/hyperdrive-js/src/exports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export {
type HyperdriveOptions,
} from "src/hyperdrive/getHyperdrive";

export type { MarketState, PoolConfig, PoolInfo } from "src/hyperdrive/types";

export { hyperdriveAbi, type HyperdriveAbi } from "src/hyperdrive/abi";
export {
ReadHyperdrive,
Expand Down Expand Up @@ -50,11 +52,6 @@ export {
type ReadWriteStEthHyperdriveOptions,
} from "src/hyperdrive/steth/ReadWriteStEthHyperdrive";

export { calculateAprFromPrice } from "src/base/calculateAprFromPrice";

// pool
export type { PoolConfig, PoolInfo } from "src/hyperdrive/types";

// shorts
export type {
ClosedShort,
Expand Down Expand Up @@ -160,6 +157,7 @@ export {
// Base //

export { adjustAmountByPercentage } from "src/base/adjustAmountByPercentage";
export { calculateAprFromPrice } from "src/base/calculateAprFromPrice";
export { getHprFromApr } from "src/base/getHprFromApr";
export { getHprFromApy } from "src/base/getHprFromApy";
export type { Constructor } from "src/base/types";