Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orbiter-finance/ob_submitter
https://github.com/orbiter-finance/ob_submitter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/orbiter-finance/ob_submitter
- Owner: Orbiter-Finance
- Created: 2023-09-21T08:50:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-01T08:16:33.000Z (10 months ago)
- Last Synced: 2024-04-02T08:34:18.402Z (10 months ago)
- Language: Rust
- Size: 317 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# submitter
## Introduction
Responsible for the profit statistics of Ethereum L2 cross-chain transactions,
and submits the Merkel root of the profit data to the Ethereum L1 chain.
Completely decentralized.## Installation
### Docker
todo
### Local
1. install git
```asm
sudo apt install git
```2. install rust
```angular2html
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```3. install clang and llvm
```angular2html
sudo apt install clang llvm
```4. build submitter
```angular2html
git clone https://github.com/Orbiter-Finance/OB_Submitter.git
cd submitter
cargo build --release
```5. configure environment variables
```shell
# Ethereum node https url
export MAINNET_RPC_URLS = "https://eth-mainnet.g.alchemy.com/v2/-e53KLekEWi1sTblk40_P9z_qr_jTHTd"
# Ethereum network chain id
export MAINNET_CHAIN_ID=1# RFeeManager smart contract address
export ORFeeManager_CONTRACT_ADDRESS="0xcC45c67d121A4BC3BC88Cc5A3099a8F7854f11f6"
# where to get txs
export TXS_SOURCE_URL="https://openapi.orbiter.finance/v3/v3/yj6toqvwh1177e1sexfy0u1pxx5j8o47"
# Where to get chain information
export SUPPORT_CHAINS_SOURCE_URL="https://api.studio.thegraph.com/query/53475/dealer/version/latest"# Use directly without changing
export START_BLOCK=18212105
# Use directly without changing
export ZK_DELAY_SECONDS=28800
# Use directly without changing
export OP_DELAY_SECONDS=604800
# Use directly without changing
export COMMON_DELAY_SECONDS=900
```5. run submitter
```angular2html
./target/release/submitter
```> If you don't want to be a submitter and just want to sync data, then you can use `--no-private-key` in your command line.
> for example, `./target/release/submitter --no-private-key` 6. view log```shell
# for example
tail -f -n 100 db/logs/submitter.log.2023-09-20
```