From 76318bcc29f9900597ba904d6f2c746d5b9baae7 Mon Sep 17 00:00:00 2001 From: Erin Rivas Date: Tue, 27 Aug 2024 13:06:59 -0500 Subject: [PATCH] needs ModifyDeep --- package-lock.json | 4 ++-- package.json | 2 +- src/snackages/query/oracle.ts | 2 +- src/snackages/query/storage.ts | 2 +- src/types/oracle.ts | 11 ++++++++++- src/types/storage.ts | 14 +++++++++++++- 6 files changed, 28 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 28d6932..e589947 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jackallabs/jackal.js-protos", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jackallabs/jackal.js-protos", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "@cosmjs/amino": "^0.32.3", diff --git a/package.json b/package.json index 70f0667..382f2a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jackallabs/jackal.js-protos", - "version": "2.1.0", + "version": "2.1.1", "description": "Package of all protos used by Jackal.js", "keywords": [ "jackal", diff --git a/src/snackages/query/oracle.ts b/src/snackages/query/oracle.ts index 9f0bc47..0bdce56 100644 --- a/src/snackages/query/oracle.ts +++ b/src/snackages/query/oracle.ts @@ -41,7 +41,7 @@ export function createOracleExtension(base: QueryClient): IOracleExtension { throw err }) assertDefined(resp.feed) - return resp as TQueryFeedResponseStrict + return resp as unknown as TQueryFeedResponseStrict }, params: async ( request: DQueryOracleParams = {}, diff --git a/src/snackages/query/storage.ts b/src/snackages/query/storage.ts index aa3469a..a10061d 100644 --- a/src/snackages/query/storage.ts +++ b/src/snackages/query/storage.ts @@ -336,7 +336,7 @@ export function createStorageExtension(base: QueryClient): IStorageExtension { throw err }) assertDefined(resp.storagePaymentInfo) - return resp as TQueryStoragePaymentInfoResponseStrict + return resp as unknown as TQueryStoragePaymentInfoResponseStrict }, storageStats: async ( request: DQueryStorageStats = {}, diff --git a/src/types/oracle.ts b/src/types/oracle.ts index d602606..d7bb40a 100644 --- a/src/types/oracle.ts +++ b/src/types/oracle.ts @@ -14,7 +14,16 @@ export type DFeed = Documentation< lastUpdate: string name: string }, - Feed + MFeed +> +export type MFeed = ModifyDeep< + Feed, + { + owner: string + data: string + lastUpdate: string + name: string + } > export { Feed } diff --git a/src/types/storage.ts b/src/types/storage.ts index 6caaa9a..e723f05 100644 --- a/src/types/storage.ts +++ b/src/types/storage.ts @@ -133,8 +133,20 @@ export type DStoragePaymentInfo = Documentation< address: string coins: DCoin[] }, - StoragePaymentInfo + MStoragePaymentInfo > +export type MStoragePaymentInfo = ModifyDeep< + StoragePaymentInfo, + { + start: string + end: string + spaceAvailable: number + spaceUsed: number + address: string + coins: DCoin[] + } +> + /** * UnifiedFile Documentation