mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 20:19:24 +00:00
c589743e2b
* basic schnorr verify working * add schnorr-verify as submodule * remove previous code * Misc Ethereum work which will probably be disregarded * add ecrecover hack test, worksgit add src/ * merge w develop * starting w/ rust-web3 * trying to use ethers * deploy_schnorr_verifier_contract finally working * modify EthereumHram to use 27/28 for point parity * updated address calc, solidity schnorr verify now working * add verify failure to test * update readme * move ethereum/ to coins/ * un fmt coins/monero * update .gitmodules * fix cargo paths * fix coins/monero * add #[allow(non_snake_case)] * un-fmt stuff * move crypto to coins/ethereum * move unit tests to ethereum/tests * remove js, build w ethers * update .gitignore * address comments * add q != 0 check * update contract param order * update contract license to AGPL * update ethereum-serai license to GPL and fmt * GPLv3 for ethereum-serai * AGPLv3 for ethereum-serai * actually fix license Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
15 lines
472 B
Rust
15 lines
472 B
Rust
use ethers_solc::{Project, ProjectPathsConfig};
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=contracts/Schnorr.sol");
|
|
|
|
// configure the project with all its paths, solc, cache etc.
|
|
let project = Project::builder()
|
|
.paths(ProjectPathsConfig::hardhat(env!("CARGO_MANIFEST_DIR")).unwrap())
|
|
.build()
|
|
.unwrap();
|
|
project.compile().unwrap();
|
|
|
|
// Tell Cargo that if a source file changes, to rerun this build script.
|
|
project.rerun_if_sources_changed();
|
|
}
|