Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/dull-worms-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@delvtech/hyperdrive-appconfig": patch
---

First deploy to npm
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Packages
- [@delvtech/hyperdrive-artifacts](packages/hyperdrive-artifacts/) - ABIs and bytecode for Hyperdrive contracts.
- [@delvtech/fixed-point-wasm](packages/hyperdrive-artifacts/) - Wasm bindings for the [fixedpointmath](https://github.com/delvtech/hyperdrive-rs/tree/main/crates/fixedpointmath) Rust crate.
- [@delvtech/hyperdrive-wasm](packages/hyperdrive-artifacts/) - Wasm bindings for the [Hyperdrive Rust SDK](https://github.com/delvtech/hyperdrive-rs).
- [@hyperdrive/appconfig](packages/hyperdrive-appconfig/) - Hyperdrive static metadata by chain (eg: poolConfig, name, symbol, decimal, etc.)
- [@delvtech/hyperdrive-appconfig](packages/hyperdrive-appconfig/) - Hyperdrive static metadata by chain (eg: poolConfig, name, symbol, decimal, etc.)

Crates

Expand Down
2 changes: 1 addition & 1 deletion apps/hyperdrive-trading/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

- Updated dependencies [de73cff]
- Updated dependencies [de73cff]
- @hyperdrive/appconfig@0.0.1
- @delvtech/hyperdrive-appconfig@0.0.1
- @delvtech/hyperdrive-artifacts@0.0.3
- @delvtech/hyperdrive-viem@0.0.3

Expand Down
2 changes: 1 addition & 1 deletion apps/hyperdrive-trading/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This project uses many tools like:
#### Monorepo dependencies:

- [@delvtech/hyperdrive-viem](../../packages/hyperdrive-viem/)
- [@hyperdrive/appconfig](../../packages/hyperdrive-appconfig/)
- [@delvtech/hyperdrive-appconfig](../../packages/hyperdrive-appconfig/)

### Environment variables

Expand Down
2 changes: 1 addition & 1 deletion apps/hyperdrive-trading/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@delvtech/hyperdrive-viem": "^3.0.5",
"@headlessui/react": "^2.1.5",
"@heroicons/react": "^2.0.16",
"@hyperdrive/appconfig": "*",
"@delvtech/hyperdrive-appconfig": "^0.0.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@rainbow-me/rainbowkit": "^2.1.3",
"@rollbar/react": "^0.11.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/hyperdrive-trading/src/hyperdrive/getLpApy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { appConfig, HyperdriveConfig } from "@delvtech/hyperdrive-appconfig";
import { Block, ReadHyperdrive } from "@delvtech/hyperdrive-viem";
import { appConfig, HyperdriveConfig } from "@hyperdrive/appconfig";
import { convertMillisecondsToDays } from "src/base/convertMillisecondsToDays";
import { isForkChain } from "src/chains/isForkChain";

Expand Down
5 changes: 4 additions & 1 deletion apps/hyperdrive-trading/src/hyperdrive/getReadHyperdrive.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import {
AppConfig,
findHyperdriveConfig,
} from "@delvtech/hyperdrive-appconfig";
import {
ReadHyperdrive,
ReadHyperdriveOptions,
Expand All @@ -9,7 +13,6 @@ import {
ReadMetaMorphoHyperdrive_v1_0_14,
ReadStEthHyperdrive_v1_0_14,
} from "@delvtech/hyperdrive-viem/v1.0.14";
import { AppConfig, findHyperdriveConfig } from "@hyperdrive/appconfig";
import semver from "semver";
import { sdkCache } from "src/sdk/sdkCache";
import { failedRequestToast } from "src/ui/base/components/Toaster/failedRequestToast";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import {
AppConfig,
findHyperdriveConfig,
} from "@delvtech/hyperdrive-appconfig";
import {
ReadWriteHyperdrive,
ReadWriteHyperdriveOptions,
Expand All @@ -8,7 +12,6 @@ import {
ReadWriteHyperdrive_v1_0_14,
ReadWriteStEthHyperdrive_v1_0_14,
} from "@delvtech/hyperdrive-viem/v1.0.14";
import { AppConfig, findHyperdriveConfig } from "@hyperdrive/appconfig";
import semver from "semver";
import { sdkCache } from "src/sdk/sdkCache";
import { failedRequestToast } from "src/ui/base/components/Toaster/failedRequestToast";
Expand Down
4 changes: 2 additions & 2 deletions apps/hyperdrive-trading/src/hyperdrive/getYieldSourceRate.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Block, ReadHyperdrive } from "@delvtech/hyperdrive-viem";
import {
AppConfig,
findHyperdriveConfig,
HyperdriveConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { Block, ReadHyperdrive } from "@delvtech/hyperdrive-viem";
import { convertMillisecondsToDays } from "src/base/convertMillisecondsToDays";
import { isForkChain } from "src/chains/isForkChain";

Expand Down
10 changes: 5 additions & 5 deletions apps/hyperdrive-trading/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
// Import Routes

import { Route as rootRoute } from "./ui/routes/__root";
import { Route as VpnImport } from "./ui/routes/vpn";
import { Route as RestrictedcountriesImport } from "./ui/routes/restricted_countries";
import { Route as PortfolioImport } from "./ui/routes/portfolio";
import { Route as IneligibleImport } from "./ui/routes/ineligible";
import { Route as ErrorImport } from "./ui/routes/error";
import { Route as ChainlogImport } from "./ui/routes/chainlog";
import { Route as ErrorImport } from "./ui/routes/error";
import { Route as IndexImport } from "./ui/routes/index";
import { Route as IneligibleImport } from "./ui/routes/ineligible";
import { Route as MarketChainIdAddressImport } from "./ui/routes/market.$chainId.$address";
import { Route as PortfolioImport } from "./ui/routes/portfolio";
import { Route as RestrictedcountriesImport } from "./ui/routes/restricted_countries";
import { Route as VpnImport } from "./ui/routes/vpn";

// Create/Update Routes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
isMainnetChain,
mainnetAppConfig,
testnetAppConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { useChainId } from "wagmi";

export function useAppConfigForConnectedChain(): AppConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { appConfig, makeTransactionUrl } from "@delvtech/hyperdrive-appconfig";
import { ArrowRightIcon } from "@heroicons/react/24/outline";
import { appConfig, makeTransactionUrl } from "@hyperdrive/appconfig";
import { Hash } from "viem";

export default function TransactionToast({
Expand Down
2 changes: 1 addition & 1 deletion apps/hyperdrive-trading/src/ui/chainlog/AddressCell.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig, makeAddressUrl } from "@hyperdrive/appconfig";
import { appConfig, makeAddressUrl } from "@delvtech/hyperdrive-appconfig";
import { ReactElement } from "react";
import { formatAddress } from "src/ui/base/formatting/formatAddress";
import { Address } from "viem";
Expand Down
2 changes: 1 addition & 1 deletion apps/hyperdrive-trading/src/ui/chainlog/ChainCell.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@hyperdrive/appconfig";
import { appConfig } from "@delvtech/hyperdrive-appconfig";
import { ReactElement } from "react";

export function ChainCell({ chainId }: { chainId: number }): ReactElement {
Expand Down
2 changes: 1 addition & 1 deletion apps/hyperdrive-trading/src/ui/chainlog/Chainlog.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { appConfig, makeAddressUrl } from "@delvtech/hyperdrive-appconfig";
import { ArrowTopRightOnSquareIcon } from "@heroicons/react/24/outline";
import { appConfig, makeAddressUrl } from "@hyperdrive/appconfig";
import { useNavigate, useSearch } from "@tanstack/react-router";
import { ReactElement } from "react";
import { Tabs } from "src/ui/base/components/Tabs/Tabs";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HyperdriveConfig } from "@hyperdrive/appconfig";
import { HyperdriveConfig } from "@delvtech/hyperdrive-appconfig";
import classNames from "classnames";
import { ReactElement } from "react";
import { convertMillisecondsToDays } from "src/base/convertMillisecondsToDays";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { fixed } from "@delvtech/fixed-point-wasm";
import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
import {
AppConfig,
HyperdriveConfig,
appConfig,
findBaseToken,
makeAddressUrl,
makeTransactionUrl,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
import {
ColumnFiltersState,
Header,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { appConfig, findHyperdriveConfig } from "@hyperdrive/appconfig";
import {
appConfig,
findHyperdriveConfig,
} from "@delvtech/hyperdrive-appconfig";
import { useQuery } from "@tanstack/react-query";
import { useMemo } from "react";
import { makeQueryKey } from "src/base/makeQueryKey";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HyperdriveConfig, TokenConfig } from "@hyperdrive/appconfig";
import { HyperdriveConfig, TokenConfig } from "@delvtech/hyperdrive-appconfig";
import { ReactElement } from "react";
import { TokenChoice, TokenPicker } from "src/ui/token/TokenPicker";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HyperdriveConfig } from "@hyperdrive/appconfig";
import { HyperdriveConfig } from "@delvtech/hyperdrive-appconfig";
import { useQuery } from "@tanstack/react-query";
import { makeQueryKey } from "src/base/makeQueryKey";
import { QueryStatusWithIdle, getStatus } from "src/base/queryStatus";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HyperdriveConfig } from "@hyperdrive/appconfig";
import { HyperdriveConfig } from "@delvtech/hyperdrive-appconfig";
import { useEffect } from "react";
import { usePoolInfo } from "src/ui/hyperdrive/hooks/usePoolInfo";
import { formatUnits } from "viem";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HyperdriveConfig, appConfig } from "@hyperdrive/appconfig";
import { HyperdriveConfig, appConfig } from "@delvtech/hyperdrive-appconfig";
import { useBlockNumber } from "wagmi";

/**
Expand Down
5 changes: 4 additions & 1 deletion apps/hyperdrive-trading/src/ui/hyperdrive/hooks/useLpApy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { appConfig, findHyperdriveConfig } from "@hyperdrive/appconfig";
import {
appConfig,
findHyperdriveConfig,
} from "@delvtech/hyperdrive-appconfig";
import { useQuery } from "@tanstack/react-query";
import { makeQueryKey } from "src/base/makeQueryKey";
import { getLpApy, LpApyResult } from "src/hyperdrive/getLpApy";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ReadHyperdrive } from "@delvtech/hyperdrive-viem";
import {
AppConfig,
appConfig,
findHyperdriveConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { ReadHyperdrive } from "@delvtech/hyperdrive-viem";
import { useQuery } from "@tanstack/react-query";
import { makeQueryKey } from "src/base/makeQueryKey";
import { QueryStatusWithIdle, getStatus } from "src/base/queryStatus";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ReadHyperdrive } from "@delvtech/hyperdrive-viem";
import {
AppConfig,
appConfig,
findHyperdriveConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { ReadHyperdrive } from "@delvtech/hyperdrive-viem";
import { useQuery } from "@tanstack/react-query";
import { makeQueryKey } from "src/base/makeQueryKey";
import { QueryStatusWithIdle, getStatus } from "src/base/queryStatus";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppConfig } from "@hyperdrive/appconfig";
import { AppConfig } from "@delvtech/hyperdrive-appconfig";
import { getPublicClient } from "@wagmi/core";
import { wagmiConfig } from "src/network/wagmiClient";
import { PublicClient } from "viem";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { appConfig } from "@delvtech/hyperdrive-appconfig";
import { ReadHyperdrive } from "@delvtech/hyperdrive-viem";
import { appConfig } from "@hyperdrive/appconfig";
import { useQuery } from "@tanstack/react-query";
import { makeQueryKey } from "src/base/makeQueryKey";
import { getReadHyperdrive } from "src/hyperdrive/getReadHyperdrive";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { appConfig } from "@delvtech/hyperdrive-appconfig";
import { ReadWriteHyperdrive } from "@delvtech/hyperdrive-viem";
import { appConfig } from "@hyperdrive/appconfig";
import { useQuery } from "@tanstack/react-query";
import { makeQueryKey } from "src/base/makeQueryKey";
import { getReadWriteHyperdrive } from "src/hyperdrive/getReadWriteHyperdrive";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { appConfig, findHyperdriveConfig } from "@hyperdrive/appconfig";
import {
appConfig,
findHyperdriveConfig,
} from "@delvtech/hyperdrive-appconfig";
import { useQuery } from "@tanstack/react-query";
import { makeQueryKey } from "src/base/makeQueryKey";
import { useReadHyperdrive } from "src/ui/hyperdrive/hooks/useReadHyperdrive";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { fixed } from "@delvtech/fixed-point-wasm";
import { adjustAmountByPercentage, Long } from "@delvtech/hyperdrive-viem";
import {
appConfig,
findBaseToken,
findToken,
HyperdriveConfig,
TokenConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { adjustAmountByPercentage, Long } from "@delvtech/hyperdrive-viem";
import { ConnectButton } from "@rainbow-me/rainbowkit";
import { MouseEvent, ReactElement } from "react";
import { isTestnetChain } from "src/chains/isTestnetChain";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Long } from "@delvtech/hyperdrive-viem";
import {
HyperdriveConfig,
TokenConfig,
appConfig,
findBaseToken,
findToken,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { Long } from "@delvtech/hyperdrive-viem";
import { ReactElement } from "react";
import { Modal } from "src/ui/base/components/Modal/Modal";
import { ModalHeader } from "src/ui/base/components/Modal/ModalHeader";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { fixed } from "@delvtech/fixed-point-wasm";
import { adjustAmountByPercentage } from "@delvtech/hyperdrive-js-core";
import {
appConfig,
findBaseToken,
findToken,
HyperdriveConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { adjustAmountByPercentage } from "@delvtech/hyperdrive-js-core";
import { MouseEvent, ReactElement } from "react";
import { isTestnetChain } from "src/chains/isTestnetChain";
import { getIsValidTradeSize } from "src/hyperdrive/getIsValidTradeSize";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { parseFixed } from "@delvtech/fixed-point-wasm";
import { ArrowRightIcon } from "@heroicons/react/16/solid";
import { ChevronDownIcon } from "@heroicons/react/20/solid";
import {
HyperdriveConfig,
TokenConfig,
appConfig,
findBaseToken,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { ArrowRightIcon } from "@heroicons/react/16/solid";
import { ChevronDownIcon } from "@heroicons/react/20/solid";
import classNames from "classnames";
import { ReactElement, useState } from "react";
import Skeleton from "react-loading-skeleton";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { fixed } from "@delvtech/fixed-point-wasm";
import { calculateAprFromPrice } from "@delvtech/hyperdrive-viem";
import {
appConfig,
findBaseToken,
HyperdriveConfig,
TokenConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { calculateAprFromPrice } from "@delvtech/hyperdrive-viem";
import classNames from "classnames";
import Skeleton from "react-loading-skeleton";
import { convertMillisecondsToDays } from "src/base/convertMillisecondsToDays";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { OpenLongPositionReceived } from "@delvtech/hyperdrive-viem";
import { ExclamationTriangleIcon } from "@heroicons/react/20/solid";
import {
HyperdriveConfig,
appConfig,
findBaseToken,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { OpenLongPositionReceived } from "@delvtech/hyperdrive-viem";
import { ExclamationTriangleIcon } from "@heroicons/react/20/solid";
import classNames from "classnames";
import { ReactElement } from "react";
import Skeleton from "react-loading-skeleton";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {
calculateAprFromPrice,
OpenLongPositionReceived,
} from "@delvtech/hyperdrive-viem";
import { Cog8ToothIcon } from "@heroicons/react/20/solid";
import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
import {
AppConfig,
appConfig,
findBaseToken,
findToken,
HyperdriveConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import {
calculateAprFromPrice,
OpenLongPositionReceived,
} from "@delvtech/hyperdrive-viem";
import { Cog8ToothIcon } from "@heroicons/react/20/solid";
import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
import { Link } from "@tanstack/react-router";
import {
createColumnHelper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
appConfig,
findBaseToken,
HyperdriveConfig,
} from "@hyperdrive/appconfig";
} from "@delvtech/hyperdrive-appconfig";
import { ReactElement } from "react";
import { isTestnetChain } from "src/chains/isTestnetChain";
import { formatBalance } from "src/ui/base/formatting/formatBalance";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfig } from "@hyperdrive/appconfig";
import { appConfig } from "@delvtech/hyperdrive-appconfig";
import { useAddRecentTransaction } from "@rainbow-me/rainbowkit";
import {
MutationStatus,
Expand Down
Loading