UNPKG

@guaritos/tracer-engine

Version:

A highly performant and scalable multi-hop, time-aware tracer for account-based blockchain transactions, designed for off-chain risk assessment and flow analysis.

62 lines 1.92 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UTXOTransferItem = exports.AccountTransferItem = exports.RankItem = exports.StrategySnapshotItem = exports.PopItem = void 0; const defs_1 = require("./defs"); class PopItem extends defs_1.ContextualItem { constructor(_node) { super(); this.node = ''; // Node this.node = _node; } } exports.PopItem = PopItem; class StrategySnapshotItem extends defs_1.ContextualItem { constructor(data) { super(); this.data = data; } } exports.StrategySnapshotItem = StrategySnapshotItem; class RankItem extends defs_1.ContextualItem { constructor(data) { super(); this.data = data; } } exports.RankItem = RankItem; class AccountTransferItem extends defs_1.ContextualItem { constructor() { super(...arguments); this.id = ''; // str this.hash = ''; // str this.address_from = ''; // str this.address_to = ''; // str this.value = ''; // str this.token_id = ''; // str this.timestamp = 0; // int this.block_number = 0; // int this.contract_address = ''; // str this.symbol = ''; // str this.decimals = 0; // int this.gas = ''; // str this.gas_price = ''; // str } } exports.AccountTransferItem = AccountTransferItem; class UTXOTransferItem extends defs_1.ContextualItem { constructor() { super(...arguments); this.id = ''; // str this.tx_from = ''; // str this.tx_to = ''; // str this.address = ''; // str this.value = ''; // str this.is_spent = false; // bool this.is_coinbase = false; // bool this.timestamp = 0; // int this.block_number = 0; // int this.fee = 0; // int } } exports.UTXOTransferItem = UTXOTransferItem; //# sourceMappingURL=subgraph.js.map