mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-15 22:52:36 +03:00
update schema
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.20.74-rc106",
|
||||
"version": "0.20.74-rc107",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { z } from 'zod';
|
||||
import { networkCodes } from '../../../constants';
|
||||
import uppercasedNetworkCodes from '../../../constants/uppercasedNetworkCodes';
|
||||
|
||||
const volumeInfoSchema = z.object({
|
||||
volume24: z.number(),
|
||||
volume7d: z.number(),
|
||||
volumeAllTime: z.number(),
|
||||
networks: z.array(z.enum(networkCodes)),
|
||||
networks: z.array(z.enum(uppercasedNetworkCodes)),
|
||||
})
|
||||
|
||||
const supplyMetricsSchema = z.object({
|
||||
@@ -19,7 +19,7 @@ const governanceMetricsSchema = z.object({
|
||||
totalVeLumia: z.number(),
|
||||
totalVeLumiaInVoting: z.number(),
|
||||
weeklyLumiaReward: z.number(),
|
||||
networks: z.array(z.enum(networkCodes)),
|
||||
networks: z.array(z.enum(uppercasedNetworkCodes)),
|
||||
})
|
||||
|
||||
export const aggregatedMetricsSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user