drive-by cleanups (#592)
* reorganize rust code into dirs * rust: ignore vendor dir * how did kathy go missing? * drive-by cleanups: abstraction in update_abis, hyperlink, shell scripts are mostly shellcheck clean * rust readme: note agents dir * cargo fmt --all * remove stray comment * cargo update * why am i fighting my computer rn * patch over sloppy rebase * shore up test vector file handling * clarify how to add a new chain * add rust-toolchain.toml for 1.54 * DRY abis_dir * chore: add clippy installation to CI * github actions will use rust-toolchain.yaml now * move rust-toolchain so the action will find it rustup seems to scan upwards for this file, should pick it up fine when using from within * use obsolete rust-toolchain file location, because the action is naive * chore: specify toolchain in rust.yml * chore: specify toolchain in rust.yml in all workflows * chore: return clippy to rust.yml Co-authored-by: ember arlynx <ember@lunar.software> Co-authored-by: James Prestwich <james@prestwi.ch>buddies-main-deployment
parent
dac77183e5
commit
5f041c9db1
@ -0,0 +1,3 @@ |
||||
[toolchain] |
||||
channel = "1.54" |
||||
profile = "default" |
@ -1,6 +1,6 @@ |
||||
/// Struct responsible for syncing Prover
|
||||
pub mod prover_sync; |
||||
pub use prover_sync::ProverSync; |
||||
//! Prover process: generate proofs in the tree.
|
||||
//!
|
||||
//! Struct responsible for syncing Prover
|
||||
|
||||
use ethers::core::types::H256; |
||||
use rocksdb::DB; |
@ -0,0 +1,4 @@ |
||||
To add a new chain: |
||||
|
||||
- add a new crate to this directory, implementing the appropriate traits. |
||||
- add a new enum variant in `optics_base::homes::Homes` using the new crate and fix all the compilation errors. |
@ -1,3 +1,7 @@ |
||||
cat artifacts/contracts/Replica.sol/Replica.json| jq .abi > ../../rust/optics-ethereum/abis/Replica.abi.json && \ |
||||
cat artifacts/contracts/Home.sol/Home.json| jq .abi > ../../rust/optics-ethereum/abis/Home.abi.json && \ |
||||
cat artifacts/contracts/XAppConnectionManager.sol/XAppConnectionManager.json | jq .abi > ../../rust/optics-ethereum/abis/XAppConnectionManager.abi.json |
||||
#!/bin/sh |
||||
|
||||
copy() { |
||||
jq .abi < artifacts/contracts/"$1".sol/"$1".json > ../../rust/chains/optics-ethereum/abis/"$1".abi.json |
||||
} |
||||
|
||||
copy Replica && copy Home && copy XAppConnectionManager |
Loading…
Reference in new issue