-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Connect 1.1.10, and Aptos WA update (#1228)
- Loading branch information
1 parent
a4cc328
commit 177e69e
Showing
10 changed files
with
2,093 additions
and
4,691 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 +1,30 @@ | ||
import { Chain, platformToChains } from "@wormhole-foundation/sdk"; | ||
|
||
export const PrivacyPolicyPath = "/privacy-policy"; | ||
|
||
export const isPreview = | ||
window.location.origin.includes("preview") || | ||
window.location.origin.includes("testnet"); | ||
|
||
export const isProduction = window.location.host === "portalbridge.com"; | ||
|
||
export const CosmWasmChainNames: Chain[] = [ | ||
"Terra", | ||
"Terra2", | ||
"Injective", | ||
"Xpla", | ||
"Sei", | ||
"Wormchain", | ||
"Osmosis", | ||
"Evmos", | ||
"Kujira", | ||
] as const; | ||
|
||
export const isCosmWasmChain = (chain: Chain) => { | ||
return CosmWasmChainNames.includes(chain); | ||
}; | ||
|
||
const evmChains = platformToChains("Evm"); | ||
export const isEVMChain = (chain: Chain) => { | ||
return evmChains.includes(chain as any); | ||
}; |
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