-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types: sync
- Loading branch information
Showing
3 changed files
with
114 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Keep in sync with crossmint-main @crossmint/common-types/payments/currencies/CryptoCurrency.ts | ||
|
||
import type { ObjectValues } from "@crossmint/common-sdk-base"; | ||
|
||
export const StableCoin = { | ||
USDC: "usdc", | ||
USDCE: "usdce", | ||
BUSD: "busd", | ||
} as const; | ||
export type StableCoin = ObjectValues<typeof StableCoin>; | ||
|
||
export const Erc20Currency = { | ||
...StableCoin, | ||
WETH: "weth", | ||
DEGEN: "degen", | ||
BRETT: "brett", | ||
TOSHI: "toshi", | ||
EURC: "eurc", | ||
} as const; | ||
export type Erc20Currency = ObjectValues<typeof Erc20Currency>; | ||
|
||
export const SplTokenCurrency = { | ||
USDC: "usdc", | ||
BONK: "bonk", | ||
WIF: "wif", | ||
MOTHER: "mother", | ||
EURC: "eurc", | ||
} as const; | ||
export type SplTokenCurrency = ObjectValues<typeof SplTokenCurrency>; | ||
|
||
export const EvmNativeCurrency = { | ||
ETH: "eth", | ||
MATIC: "matic", | ||
POL: "pol", | ||
SEI: "sei", | ||
CHZ: "chz", | ||
AVAX: "avax", | ||
XAI: "xai", | ||
FUEL: "fuel", | ||
} as const; | ||
export type EvmNativeCurrency = ObjectValues<typeof EvmNativeCurrency>; | ||
|
||
export const CryptoCurrency = { | ||
...EvmNativeCurrency, | ||
...Erc20Currency, | ||
...SplTokenCurrency, | ||
SOL: "sol", | ||
ADA: "ada", | ||
BNB: "bnb", | ||
SUI: "sui", | ||
APT: "apt", | ||
SFUEL: "sfuel", | ||
} as const; | ||
export type CryptoCurrency = ObjectValues<typeof CryptoCurrency>; |
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