2024-01-03 10:24:52 +00:00
|
|
|
use ethers::prelude::abigen;
|
|
|
|
|
|
|
|
// run `cargo doc -p contract-interface --open` to read struct definition
|
|
|
|
|
2024-04-27 03:15:57 +00:00
|
|
|
#[cfg(not(feature = "dev"))]
|
2024-01-03 10:24:52 +00:00
|
|
|
abigen!(
|
|
|
|
ZgsFlow,
|
2024-03-12 10:49:51 +00:00
|
|
|
"../../0g-storage-contracts/artifacts/contracts/dataFlow/Flow.sol/Flow.json"
|
2024-01-03 10:24:52 +00:00
|
|
|
);
|
|
|
|
|
2024-04-27 03:15:57 +00:00
|
|
|
#[cfg(not(feature = "dev"))]
|
2024-01-03 10:24:52 +00:00
|
|
|
abigen!(
|
|
|
|
PoraMine,
|
2024-04-27 03:15:57 +00:00
|
|
|
"../../0g-storage-contracts/artifacts/contracts/miner/Mine.sol/PoraMine.json"
|
|
|
|
);
|
|
|
|
|
|
|
|
#[cfg(feature = "dev")]
|
|
|
|
abigen!(
|
|
|
|
ZgsFlow,
|
|
|
|
"../../0g-storage-contracts-dev/artifacts/contracts/dataFlow/Flow.sol/Flow.json"
|
|
|
|
);
|
|
|
|
|
|
|
|
#[cfg(feature = "dev")]
|
|
|
|
abigen!(
|
|
|
|
PoraMine,
|
|
|
|
"../../0g-storage-contracts-dev/artifacts/contracts/miner/Mine.sol/PoraMine.json"
|
2024-01-03 10:24:52 +00:00
|
|
|
);
|