@entangle-labs/udf-sdk
Version:
SDK for interacting with UDF Oracle
16 lines (15 loc) • 527 B
TypeScript
import { DecodedVote, LastVotesResponse } from "./types";
declare class UdfSdk {
private baseUrl;
constructor(baseUrl?: string);
private bytesToHex;
private decodeVoteValue;
private processVote;
getCallData(feedKeys: string[]): Promise<string>;
getVotes(feedKeys: string[]): Promise<DecodedVote[]>;
getMedian(feedKey: string): Promise<bigint>;
private fetchData;
getLastVotes(feedKeys: string[]): Promise<LastVotesResponse>;
private calculateMedianForVotes;
}
export default UdfSdk;