fix: made price_feed_meta_info nullable (#46)

Co-authored-by: kuduzow <admin@intocode.ru>
This commit is contained in:
Kuduzow Akhmad
2023-02-09 17:03:35 +03:00
committed by GitHub
parent 82bd1ced4c
commit 80ffa4a31d
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;