File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ export type HasAddressFor<ContractName extends string> = {
57
57
[ ChainT in keyof Addresses ] : Addresses [ ChainT ] extends Record < ContractName , string > ? ChainT : never ;
58
58
} [ keyof Addresses ] ;
59
59
60
+ export type SupportedConverters =
61
+ | "BTCBPrimeConverter"
62
+ | "ETHPrimeConverter"
63
+ | "RiskFundConverter"
64
+ | "USDCPrimeConverter"
65
+ | "USDTPrimeConverter"
66
+ | "XVSVaultConverter" ;
67
+
60
68
const network = process . env . FORKED_NETWORK as SUPPORTED_CHAINS ;
61
69
62
70
export default addresses [ network ] ;
Original file line number Diff line number Diff line change 1
1
import { bsc , bscTestnet } from "viem/chains" ;
2
+ import { HasAddressFor , SupportedConverters } from "./addresses" ;
2
3
3
4
export const chains = {
4
5
bscmainnet : bsc ,
5
6
bsctestnet : bscTestnet ,
6
7
} as const ;
8
+
9
+ export type SUPPORTED_CHAINS = HasAddressFor < "TokenConverterOperator" | SupportedConverters > ;
You can’t perform that action at this time.
0 commit comments