0g-storage-node/common/contract-interface/src/lib.rs

34 lines
853 B
Rust
Raw Normal View History

2024-01-03 10:24:52 +00:00
use ethers::prelude::abigen;
// run `cargo doc -p contract-interface --open` to read struct definition
#[cfg(not(feature = "dev"))]
2024-07-22 09:32:51 +00:00
abigen!(ZgsFlow, "../../storage-contracts-abis/Flow.json");
2024-01-03 10:24:52 +00:00
#[cfg(not(feature = "dev"))]
2024-07-22 09:32:51 +00:00
abigen!(PoraMine, "../../storage-contracts-abis/PoraMine.json");
#[cfg(not(feature = "dev"))]
abigen!(
ChunkLinearReward,
"../../storage-contracts-abis/ChunkLinearReward.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
);
#[cfg(feature = "dev")]
abigen!(
ChunkLinearReward,
"../../0g-storage-contracts-dev/artifacts/contracts/reward/ChunkLinearReward.sol/ChunkLinearReward.json"
);