-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathcontracts.ts
More file actions
25 lines (23 loc) · 889 Bytes
/
contracts.ts
File metadata and controls
25 lines (23 loc) · 889 Bytes
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";
const ContractLinkSchema = z.object({
name: z.string(),
address: z.string(),
link: z.string(),
});
export const ContractInfoSchema = z.object({
Controller: ContractLinkSchema.nullable(),
L1Migrator: ContractLinkSchema.nullable(),
L2Migrator: ContractLinkSchema.nullable(),
PollCreator: ContractLinkSchema.nullable(),
BondingManager: ContractLinkSchema.nullable(),
LivepeerToken: ContractLinkSchema.nullable(),
LivepeerTokenFaucet: ContractLinkSchema.nullable(),
MerkleSnapshot: ContractLinkSchema.nullable(),
Minter: ContractLinkSchema.nullable(),
RoundsManager: ContractLinkSchema.nullable(),
ServiceRegistry: ContractLinkSchema.nullable(),
TicketBroker: ContractLinkSchema.nullable(),
LivepeerGovernor: ContractLinkSchema.nullable(),
Treasury: ContractLinkSchema.nullable(),
BondingVotes: ContractLinkSchema.nullable(),
});