@bloks/api
Advanced tools
Comparing version 25.0.59 to 25.0.60
@@ -150,4 +150,5 @@ import { Api as ProtonApi, JsonRpc } from '@proton/js'; | ||
getAllOracleData: typeof PROTON.getAllOracleData; | ||
getSpecificOracleData: typeof PROTON.getSpecificOracleData; | ||
getProtonAvatar: typeof PROTON.getProtonAvatar; | ||
getProtonAvatars: typeof PROTON.getProtonAvatars; | ||
} |
@@ -1,2 +0,2 @@ | ||
import type { ApiClass } from '../index'; | ||
import type { ApiClass, OracleRow } from '../index'; | ||
import { RpcInterfaces } from '@proton/js'; | ||
@@ -37,4 +37,5 @@ export declare function getXprTotalStakedAndApr(this: ApiClass): Promise<0 | { | ||
export declare function getAllOracleFeeds(this: ApiClass, lower_bound?: any): Promise<any[]>; | ||
export declare function getAllOracleData(this: ApiClass, feed_index: number): Promise<any>; | ||
export declare function getSpecificOracleData(this: ApiClass, feed_index: number): Promise<OracleRow | undefined>; | ||
export declare function getAllOracleData(this: ApiClass): Promise<OracleRow[]>; | ||
export declare function getProtonAvatars(this: ApiClass, account: string, limit?: number): Promise<RpcInterfaces.UserInfo[]>; | ||
export declare function getProtonAvatar(this: ApiClass, account: string): Promise<RpcInterfaces.UserInfo | undefined>; |
@@ -146,1 +146,19 @@ import { z } from 'zod'; | ||
export declare type IChainInfo = z.infer<typeof chainInfoParser>; | ||
export interface OraclePoint { | ||
d_string: string | null; | ||
d_uint64_t: string | number | null; | ||
d_double: string | null; | ||
} | ||
export interface OracleRow { | ||
feed_index: number; | ||
aggregate: { | ||
d_string: string | null; | ||
d_uint64_t: string | number | null; | ||
d_double: string | null; | ||
}; | ||
points: Array<{ | ||
provider: string; | ||
time: string; | ||
data: OraclePoint; | ||
}>; | ||
} |
{ | ||
"name": "@bloks/api", | ||
"version": "25.0.59", | ||
"version": "25.0.60", | ||
"author": "jafri", | ||
@@ -43,3 +43,3 @@ "module": "dist/api.esm.js", | ||
}, | ||
"gitHead": "1cfd5cdd0b59ec1f46ccbcb72eb0e8d0ce796965" | ||
"gitHead": "aea0097dc52a8fef254ad4698afb1e8ab294af16" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1128806
12045