Categorygithub.com/CoreumFoundation/multichain-auditor
modulepackage
0.0.0-20240205162928-8e3a4449bb13
Repository: https://github.com/coreumfoundation/multichain-auditor.git
Documentation: pkg.go.dev

# README

Multichain bridge watcher

This project is responsible for watching the multichain bridge and track if the bridging works correctly from XRPL to Coreum.

Build

go build -o multichain-auditor

Use

Help

./multichain-auditor help

Export coreum incoming transactions

./multichain-auditor coreum export-incoming

Export coreum outgoing transactions

./multichain-auditor coreum export-outgoing 

Export xrpl incoming transactions

./multichain-auditor xrpl export-incoming

Export discrepancies

./multichain-auditor discrepancy export

Export discrepancies and include rows even if there are no discrepancies

./multichain-auditor discrepancy export --include-all=true

Export discrepancies with time boundaries

./multichain-auditor discrepancy export --before-date-time="2023-03-23 00:00:00" --after-date-time="2023-01-01 00:00:00"

Rescan orphan tx discrepancies with multichain

./multichain-auditor discrepancy rescan

Print summary print

./multichain-auditor summary print

# Functions

No description provided by the author
No description provided by the author
FindAuditTxDiscrepancies find the discrepancies between coreum and XRPL transactions.
GetCoreumAccountBalance returns the coreum account balance.
GetCoreumAuditTransactions returns the list of the valid coreum bridge transaction converted to the audit model.
GetXRPLAuditTransactions returns the list of the valid xrpl bridge transaction converted to the audit model.
GetXrplCurrencySupply returns the supply of the currency on xrpl.
No description provided by the author
No description provided by the author
WriteAuditTxsToCSV create and writes AuditTx CSV file.
WriteTxsDiscrepancyToCSV create and writes TxDiscrepancy CSV file.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AuditTx represents chain agnostic unified format of the bridge transaction.
No description provided by the author
FeeConfig the settings used for the calculation of the final amount which includes fee.
Summary represents the summary report data.
TxDiscrepancy represent discrepancy of the xrpl and coreum transactions.