rchain-toolkit
Version:
Node JS utils and methods to interact with rchain's rnode api and proto interfaces
65 lines (59 loc) • 1.13 kB
text/typescript
export type Either = EitherSuccess | EitherError;
export interface EitherSuccess {
content: "success";
success: {
response: {
type_url: string;
value: Buffer;
};
};
}
export interface EitherError {
content: "error";
error: {
messages: string[];
};
}
export interface PrivateNamePreviewResponse {
ids: Buffer[];
}
export interface DoDeployResponse {
message: string;
}
export interface Long {
low: number;
high: number;
unsigned: boolean;
}
export interface LightBlockInfo {
parentsHashList: any[];
blockHash: string;
blockSize: string;
seqNum: number;
blockNumber: number;
version: Long;
deployCount: 14;
tupleSpaceHash: string;
timestamp: Long;
faultTolerance: number;
}
export interface Par {
sends: any;
receives: any;
news: any;
exprs: any;
matches: any;
unforgeables: any;
bundles: any;
connectives: any;
}
export interface DataWithBlockInfo {
postBlockData: Par[];
}
export interface DataWithBlockInfo {
postBlockData: Par[];
block: LightBlockInfo;
}
export interface ListeningNameDataResponse {
blockResults: DataWithBlockInfo[];
}