A mono-repo structure for everything twine
This repo depends on the abis of twine-evm-contracts. To get the latest artifacts, run
sh scripts/generate_evm_contract_artifacts.shcargo run --release \
--bin twine-node -- \
node \
--dev \
--chain bin/node/res/local-genesis.json \
--http \
--ws \
--datadir /tmp/reth \
--rpc.eth-proof-window 1000 \
--rpc.proof-permits 1000 \
--dev.block-time 5secRUST_LOG=info cargo run --bin twine-devtestWe use rustfmt that depends on rust nightly channel. Hence, cargo fmt would result in warnings and wrong formatting according to CI. Please use:
cargo +nightly fmtThis repository makes use of pre-commit hooks. There are two methods of setting it up:
-
Recommended: A pre-downloaded artifact is provided in
artifacts/pre-commit.pyz(originallyartifacts/pre-commit-x.y.z.pyzand dowloaded from: https://github.com/pre-commit/pre-commit/releases) -
Optional: Install using steps mentioned here: https://pre-commit.com/. This makes sure "pre-commit" is run every time before you try doing a
git commit. Useful for implicit invocation.
Before every git commit, it should be ensured that following is run locally for everyone's sanity.
./artifacts/pre-commit.pyz run --all-files