feat: tickers schema was updated

This commit is contained in:
Mikhail Gladchenko
2024-04-25 12:15:53 +01:00
parent e3fc4ace19
commit 704bcbca1b
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.79-rc9",
"version": "0.20.79-rc10",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -1,11 +1,12 @@
import { z } from 'zod';
import { SupportedChainId } from '../../../types';
export const tickerSchema = z.object({
pair: z.string(),
volume24: z.number(),
change24: z.number(),
lastPrice: z.number(),
networks: z.array(z.number()),
networks: z.array(z.nativeEnum(SupportedChainId)),
});
export const tickersSchema = z.array(tickerSchema);