mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-15 14:42:38 +03:00
Merge pull request #72 from orionprotocol/feat/OP-3565-add-governance-contracts
OP-3565 Fix governance contracts schema
This commit is contained in:
@@ -1,21 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
const governanceContractsSchema = z.array(
|
||||
z.object({
|
||||
controllerAddress: z.string(),
|
||||
veORNAddress: z.string(),
|
||||
veORNYieldDistributorV4Address: z.string(),
|
||||
orionGaugeORNRewardsDistributorAddress: z.string(),
|
||||
time_total: z.string(),
|
||||
info: z.record(
|
||||
z.string(),
|
||||
z.object({
|
||||
gaugeAddress: z.string(),
|
||||
gaugeType: z.number(),
|
||||
gaugeName: z.string(),
|
||||
})
|
||||
),
|
||||
})
|
||||
);
|
||||
const governanceContractsSchema = z.object({
|
||||
controllerAddress: z.string(),
|
||||
veORNAddress: z.string(),
|
||||
veORNYieldDistributorV4Address: z.string(),
|
||||
orionGaugeORNRewardsDistributorAddress: z.string(),
|
||||
time_total: z.string(),
|
||||
info: z.record(
|
||||
z.string(),
|
||||
z.object({
|
||||
gaugeAddress: z.string(),
|
||||
gaugeType: z.number(),
|
||||
gaugeName: z.string(),
|
||||
})
|
||||
),
|
||||
});
|
||||
|
||||
export default governanceContractsSchema;
|
||||
|
||||
Reference in New Issue
Block a user