-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from astriaorg/develop
Release 10/24/24-1
- Loading branch information
Showing
30 changed files
with
239 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,51 @@ | ||
import type { EvmChains, IbcChains } from "./chainConfigs"; | ||
import { | ||
type EvmChainInfo, | ||
type EvmChains, | ||
type EvmCurrency, | ||
evmCurrencyBelongsToChain, | ||
type IbcChainInfo, | ||
type IbcChains, | ||
type IbcCurrency, | ||
ibcCurrencyBelongsToChain, | ||
toChainInfo, | ||
} from "./chainConfigs"; | ||
import { ConfigContextProvider } from "./contexts/ConfigContext"; | ||
import { getEnvVariable } from "./env"; | ||
import { useConfig } from "./hooks/useConfig"; | ||
|
||
/** | ||
* Represents the configuration object for the application. | ||
* | ||
* @typedef {Object} AppConfig | ||
* @property {IbcChains} ibcChains - The configurations for IBC chains. | ||
* @property {EvmChains} evmChains - The configurations for EVM chains. | ||
* @property {string} brandURL - The URL for the brand link in the navbar. | ||
* @property {string} bridgeURL - The URL for the bridge link in the navbar. | ||
* @property {string} swapURL - The URL for the swap link in the navbar. | ||
* @property {string} poolURL - The URL for the pool link in the navbar. | ||
* @property {function} getEvmChainById - Retrieves the EVM chain with the given chain ID from the config context. | ||
*/ | ||
export type AppConfig = { | ||
ibcChains: IbcChains; | ||
evmChains: EvmChains; | ||
brandURL: string; | ||
bridgeURL: string; | ||
swapURL: string; | ||
poolURL: string; | ||
getEvmChainById(chainIdHex: string): EvmChainInfo; | ||
}; | ||
|
||
export { | ||
ConfigContextProvider, | ||
type EvmChainInfo, | ||
type EvmChains, | ||
type EvmCurrency, | ||
evmCurrencyBelongsToChain, | ||
getEnvVariable, | ||
type IbcChainInfo, | ||
type IbcChains, | ||
type IbcCurrency, | ||
ibcCurrencyBelongsToChain, | ||
toChainInfo, | ||
useConfig, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.