hermit-purple-server
Version:
A Muta GraphQL APIs server
111 lines (110 loc) • 3.31 kB
TypeScript
export declare namespace AccountFields {
type address = string;
}
export interface Account {
address: AccountFields.address;
}
export declare namespace BlockFields {
type height = number;
type execHeight = number;
type blockHash = string;
type orderRoot = string;
type preHash = string;
type proofBitmap = string;
type proofRound = string;
type proofSignature = string;
type proposer = string;
type stateRoot = string;
type timestamp = string;
type transactionsCount = number;
type validatorVersion = string;
}
export interface Block {
height: BlockFields.height;
execHeight: BlockFields.execHeight;
blockHash: BlockFields.blockHash;
orderRoot: BlockFields.orderRoot;
preHash: BlockFields.preHash;
proofBitmap: BlockFields.proofBitmap;
proofRound: BlockFields.proofRound;
proofSignature: BlockFields.proofSignature;
proposer: BlockFields.proposer;
stateRoot: BlockFields.stateRoot;
timestamp: BlockFields.timestamp;
transactionsCount: BlockFields.transactionsCount;
validatorVersion: BlockFields.validatorVersion;
}
export declare namespace BlockValidatorFields {
type id = number;
type address = string;
type proposeWeight = number;
type version = string;
type voteWeight = number;
}
export interface BlockValidator {
id: BlockValidatorFields.id;
address: BlockValidatorFields.address;
proposeWeight: BlockValidatorFields.proposeWeight;
version: BlockValidatorFields.version;
voteWeight: BlockValidatorFields.voteWeight;
}
export declare namespace EventFields {
type data = string;
type id = number;
type txHash = string;
type service = string;
}
export interface Event {
data: EventFields.data;
id: EventFields.id;
txHash: EventFields.txHash;
service: EventFields.service;
}
export declare namespace ReceiptFields {
type id = number;
type block = number;
type cyclesUsed = string;
type isError = boolean;
type ret = string;
type txHash = string;
}
export interface Receipt {
id: ReceiptFields.id;
block: ReceiptFields.block;
cyclesUsed: ReceiptFields.cyclesUsed;
isError: ReceiptFields.isError;
ret: ReceiptFields.ret;
txHash: ReceiptFields.txHash;
}
export declare namespace TransactionFields {
type block = number;
type chainId = string;
type cyclesLimit = string;
type cyclesPrice = string;
type from = string;
type method = string;
type nonce = string;
type order = number;
type payload = string;
type pubkey = string;
type serviceName = string;
type signature = string;
type timeout = string;
type txHash = string;
}
export interface Transaction {
block: TransactionFields.block;
chainId: TransactionFields.chainId;
cyclesLimit: TransactionFields.cyclesLimit;
cyclesPrice: TransactionFields.cyclesPrice;
from: TransactionFields.from;
method: TransactionFields.method;
nonce: TransactionFields.nonce;
order: TransactionFields.order;
payload: TransactionFields.payload;
pubkey: TransactionFields.pubkey;
serviceName: TransactionFields.serviceName;
signature: TransactionFields.signature;
timeout: TransactionFields.timeout;
txHash: TransactionFields.txHash;
}