mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-15 04:25:19 +00:00
d80e7e22ca
* Prune no reward chunks. * Add tests. * Fix tests. * Fix clippy. * Revert test. * Enable market in shard_sync_test. * Add tx prune status. * Fix tests.
34 lines
853 B
Rust
34 lines
853 B
Rust
use ethers::prelude::abigen;
|
|
|
|
// run `cargo doc -p contract-interface --open` to read struct definition
|
|
|
|
#[cfg(not(feature = "dev"))]
|
|
abigen!(ZgsFlow, "../../storage-contracts-abis/Flow.json");
|
|
|
|
#[cfg(not(feature = "dev"))]
|
|
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"
|
|
);
|
|
|
|
#[cfg(feature = "dev")]
|
|
abigen!(
|
|
ChunkLinearReward,
|
|
"../../0g-storage-contracts-dev/artifacts/contracts/reward/ChunkLinearReward.sol/ChunkLinearReward.json"
|
|
);
|