mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 14:12:35 +03:00
feature: up version to 0.20.10-rc10
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.20.10-rc9",
|
||||
"version": "0.20.10-rc10",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -3,22 +3,28 @@ import { evmAddressSchema } from './util-schemas.js';
|
||||
import basicPoolInfo from './basic-pool-info-schema.js';
|
||||
import infoSchema from './info-schema.js';
|
||||
|
||||
const poolItem = z.object({
|
||||
...basicPoolInfo.shape,
|
||||
weeklyReward: z.number(),
|
||||
type: z.string().nonempty(),
|
||||
}).or(z.null());
|
||||
|
||||
const poolOfListPoolSchema = z.object({
|
||||
token0: z.string().nonempty(),
|
||||
token1: z.string().nonempty(),
|
||||
name: z.string(),
|
||||
name0: z.string(),
|
||||
name1: z.string(),
|
||||
token0Address: evmAddressSchema,
|
||||
token1Address: evmAddressSchema,
|
||||
|
||||
token0Decimals: z.number().int().nonnegative().max(18),
|
||||
token1Decimals: z.number().int().nonnegative().max(18),
|
||||
totalLiquidity: z.number(),
|
||||
WETH9: evmAddressSchema,
|
||||
|
||||
...basicPoolInfo.shape,
|
||||
|
||||
type: z.string().nonempty(),
|
||||
pools: z.object({
|
||||
1: poolItem,
|
||||
0.3: poolItem,
|
||||
0.05: poolItem,
|
||||
0.01: poolItem,
|
||||
}),
|
||||
});
|
||||
|
||||
const listPoolV3ResponseSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user