Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tendermint integration (graphprotocol#3212)
* initial changes * codec changes * Resolver + runtime fixes * add chain init * latest types corrections * fix bad rebase solution * initial work on data structs and hashes * reference fixes * One batch post-merge cleanup * few next corrections * working version * change hash to struct * remove unwraps * move rendermint to chain folder * near augmentations * Netx batch of changes * Extend some types * almost done with mapping tendermint acss * small tx test * tx fixes * proto + structures next update * working demo * FIx network mapping in tendermint * fix git breakage * change graph types * Align with latest - working version * Some further cleanup * fmt + adjusting some comment indentation * Some refactoring * Latest structure bindings * Implement ToAscObj for more codec types * Fix EventList::parent_ptr * remove unwrap * return None if no last_block_id available * Some refactoring * Fix abi Asc conversions * based on protobuf definitions return errors when missing values must be present * and null when fields are optional * Remove some unused imports * Remove reimplementation of default trait fn * Refactoring some imports * Small fmt * Use proper block hash * Refactoring some imports * Refactor anyhow::Error usage * Implement DataSource::as_stored_dynamic_data_source * Add paddings to fix structure alignment Source: https://gist.github.com/sosedoff/26beea5429ce86530d4b055ed09859d5 * Remove unused imports * Add the event trigger * Gather events from transactions * Refactor the code * Bring back the `data` and `evidence` fields * Refactor the code * Ensure there's only one handler for each event type * Fix the data conversion bug * Use the `u8` type instead of `bool` for padding * Error on DataSource try_from template * Optimize DataSource event handlers validation * Remove itertools * Refactor some errors * Some formatting * Remove unnecessary async_trait * Refactor some imports * Add TendermintTrigger::block_hash * Remove some comments * Fix some clippy warnings * Small fmt * Fix compilation errors and warnings after merge * Update Tendermint kind * Update Tendermint definitions * Tendermint fixes * remove IngestorAdapter * use new DeterministicHostError enum * use new firehose types * Update tendermint definitions and mapping * Update tendermint definitions and mapping * Remove comments * Format files * Update tendermint chain * Pass a block header instead of a full block * Fix compilation errors * Small refactor * Fix EventData block_header * Remove unused variables * Remove unused tendermint hash module * Remove outdated chain data source filtering * Remove unused tendermint types module * Fix the block hash mismatch bug * Remove the unused Hash type * Remove unused tendermint adapter * Some formatting * fmt * Add event_type to MappingTriggerWithoutBlock * Regenerate asc tendermint * Add paddings * Format document * Fix enum mapping * Files refactor * Use the stable protobuf definitions * Derive PartialOrd for NodeCapabilities * Remove unnecessary clone * Change NEAR FIXMEs to Tendermint * Use cheap_clone for Tendermint chain chain_store * Add optimization FIXME to full block cloning * Return Event Iterators instead of Vec * Remove subtle-encoding dep * Update tendermint crate version * Change Figment to Firehose in build.rs * Derive PartialOrd for TendermintTrigger * Fix comment in main.rs * Revert TendermintTrigger PartialOrd derive * TendermintTrigger variant fields are generated by prost and don't implement PartialOrd * need to rely on the Ord impl * Remove TendermintBlockFilter * Add custom tendermint Source * add dynamic data sources error * Add template error * Remove Mapping kind field * Add EventOrigin to TendermintTrigger::Event * to filter handler events by origin as well * Validate event handlers with origins * Fix tendermint data source validation unit test * Fix tests * Fmt * Implement final_block_ptr_for Tendermint blocks * Simplify some anyhow errors * Add tendermint TriggerFilter::to_firehose_filter * Update tendermint Blockchain::new_firehose_block_stream Co-authored-by: Łukasz Miłkowski <lukanus@uaznia.net> Co-authored-by: Robert Ignat <robert.ignat91@gmail.com> Co-authored-by: Patrycja Zawadka <patrycja@figment.io> Co-authored-by: patiee <76398520+patiee@users.noreply.github.com> Co-authored-by: roignpar <47150492+roignpar@users.noreply.github.com>
- Loading branch information