fix: made price_feed_meta_info nullable

This commit is contained in:
kuduzow
2023-02-09 16:52:24 +03:00
parent 81717fc3e3
commit a6a9efe91e
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.17.0",
"version": "0.17.1-rc.0",
"description": "Orion Protocol SDK",
"main": "./lib/esm/index.js",
"module": "./lib/esm/index.js",

View File

@@ -16,8 +16,10 @@ const rewardsMappingSchema = z.array(
timestamp_ms: z.number(),
block_height: z.number(),
tx_hash: z.string(),
price_feed_meta_info: z.record(z.string(), z.record(z.string(), z.number())),
}),
price_feed_meta_info: z
.record(z.string(), z.record(z.string(), z.number()))
.nullable(),
})
);
export default rewardsMappingSchema;