postchain-client
Version:
Client library for accessing a Postchain node through REST.
30 lines (29 loc) • 824 B
TypeScript
/// <reference types="node" />
import BN from "bn.js";
import { RawGtv } from "../gtv/types";
export type RawGtxOp = [opName: string, args: RawGtv[]];
export type RawGtxBody = [blockchainRid: Buffer, operations: RawGtxOp[], signers: Buffer[]];
export type GtxBody = {
blockchainRid: Buffer;
operations: RellOperation[];
signers: Buffer[];
};
export type RawGtx = [transaction: RawGtxBody, signatures: Buffer[]];
export type GTX = {
blockchainRid: Buffer;
operations: RellOperation[];
signers: Buffer[];
signatures?: Buffer[];
};
export type RellOperation = {
opName: string;
args: RawGtv[];
};
export type ASNValue = {
type: string;
value: BN | string | number | Buffer | ASNValue[] | ASNDictPair[] | null;
};
export type ASNDictPair = {
name: string;
value: ASNValue;
};