Hernando Castano
650f32342c
Add async_trait to SourceClient and TargetClient ( #123 )
...
* Use async_trait for SourceClient
* Use aync_trait for TargetClient
* Revert async_trait usage for Source/Target client
This reverts commit f636ffaffd60197e90e887362b4a0c35a0dc5a6c.
This reverts commit 2c15755e8c93318f8e0a605852efe87d72edb769.
I'm having a very hard time finding out what is causing compilation
issues, and I think it's best to start over again.
* Use async_trait for TargetClient
* Use async_trait for SourceClient
* Move where non-async methods are
* RustFmt
* QueuedHeader holds Arc to actual data
* Clean up async return type
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
* Clean up async return type
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
* Clean up async return type
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
* Remove unused import
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c9e81e48b5
Process finality proofs in solidity PoA -> Substrate contract ( #69 )
...
* solidity contract
* continue
* upd
* cargo update
* fixes
* ehtereum_headers -> headers
* extracted some common stuff
* ethereum_sync.rs -> sync.rs
* make sync generic
* continue extracting
* continue
* add eth-contract argument
* continue
* some fixes
* contract v2
* continue
* more fixes
* more fixes
* deal with duplicated params
* removed multiple call_rpc variants
* bail_on_error!()
* fn submit_ethereum_transaction
* more fixes
* cargo fmt --all
* fix
* bail_on_arg_error!()
* fix
* fix
* remove async_extra stuff
* start work on finality builtin
remove async_extra stuff
continue
continue
local testnet (Alice + Bob) for node
* added TODO
* substrate-bridge.json -> substrate-bridge-abi.json
* get rid of substrate transactions hashes
* get rid of ethereum transactions hashes
* extracted contract bytecode to separate file
* cargo fmt --all
* avoid duplicate import in contracts
* removed Default::default()
* swapped configurations for sub2eth && eth2sub
* fix compilation
* do not double gas limit when submitting Substrate headers
* fix finality storage
* at least 1 validator required
* shift_session_manager_works
* cargo fmt --all
* solidity contract removed
* consts
* extracted solc compilation details to separate file
* removed (obsolete in future Vec<u8> justification)
* fixed cli option description
* fix typos
* fix grumble
* extracted constants
* log decoded header
* new substrate version + actually verify justification
* intermediate cargo fmt --all
* comments
* disable completion data resubmission
* increased timeouts + _MS -> Duration
* forget completion data after submission
* builtin tests
* headers tests
* cargo fmt --all
* update contract
* Update relays/ethereum/src/ethereum_sync_loop.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update relays/ethereum/src/ethereum_sync_loop.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* added docs
* OwnedFutureOutput
* more docs fixes
* cargo fmt --all
* encode headers
* consts + docs
* aliases again
* cargo fmt --all
* Update relays/ethereum/src/ethereum_sync_loop.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update relays/ethereum/src/ethereum_sync_loop.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Use Duration::from_secs() instead of from_millis()
* grumbles
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* incomplete_headers_are_still_incomplete_after_advance
* add hex-encoded headers to substrate_header_without_signal_parsed
* cargo fmt --all
* Update relays/ethereum/src/sync_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/ethereum/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* added comments on Extra and Completion
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3d15ac7c90
Solidity contract that accepts unverified substrate headers ( #65 )
...
* solidity contract
* continue
* upd
* cargo update
* fixes
* ehtereum_headers -> headers
* extracted some common stuff
* ethereum_sync.rs -> sync.rs
* make sync generic
* continue extracting
* continue
* add eth-contract argument
* continue
* some fixes
* contract v2
* continue
* more fixes
* more fixes
* deal with duplicated params
* removed multiple call_rpc variants
* bail_on_error!()
* fn submit_ethereum_transaction
* more fixes
* cargo fmt --all
* fix
* bail_on_arg_error!()
* fix
* fix
* remove async_extra stuff
* substrate-bridge.json -> substrate-bridge-abi.json
* get rid of substrate transactions hashes
* get rid of ethereum transactions hashes
* extracted contract bytecode to separate file
* cargo fmt --all
* avoid duplicate import in contracts
* removed Default::default()
* swapped configurations for sub2eth && eth2sub
* fix compilation
* do not double gas limit when submitting Substrate headers
* cargo fmt --all
* solidity contract removed
* consts
* extracted solc compilation details to separate file
* removed (obsolete in future Vec<u8> justification)
* fixed cli option description
* fix typos
* fix grumble
* extracted constants
* log decoded header
* cargo fmt --all
* comment
2024-04-10 10:28:37 +02:00