-
Notifications
You must be signed in to change notification settings - Fork 4
/
types.ts
25 lines (22 loc) · 875 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { z } from 'zod';
import {
chainConfigSchema,
configSchema,
evmAddressSchema,
evmHashSchema,
merkleFunderDepositoriesSchema,
namedUnits,
valueSchema,
valuesSchema,
} from './config';
import { config as airnodeConfig } from '@api3/airnode-validator';
export type Secrets = Record<string, string | undefined>;
export type EvmAddress = z.infer<typeof evmAddressSchema>;
export type EvmHash = z.infer<typeof evmHashSchema>;
export type NamedUnits = z.infer<typeof namedUnits>;
export type Value = z.infer<typeof valueSchema>;
export type Values = z.infer<typeof valuesSchema>;
export type MerkleFunderDepositories = z.infer<typeof merkleFunderDepositoriesSchema>;
export type ChainConfig = z.infer<typeof chainConfigSchema>;
export type Config = z.infer<typeof configSchema>;
export type ChainOptions = z.infer<typeof airnodeConfig.chainOptionsSchema>;