Struct decider_distro::DeciderConfig
source · pub struct DeciderConfig {
pub worker_ipfs_multiaddr: String,
pub worker_period_sec: u32,
pub chain_api_endpoint: String,
pub chain_network_id: u64,
pub chain_contract_block_hex: String,
pub chain_matcher_addr: String,
pub chain_workers_gas: u64,
pub chain_wallet_key: String,
}Expand description
Decider’s configuration needed for the correct decider start-up
Fields§
§worker_ipfs_multiaddr: StringMultiaddr of the IPFS node from which to take worker definitions
worker_period_sec: u32How often to run the worker-spell for updates/healthchecks
chain_api_endpoint: StringURI of the RPC for decider to communicate with the chain (poll, send tx)
chain_network_id: u64§chain_contract_block_hex: StringThe block number from which to poll new deals in hex format
chain_matcher_addr: StringAddress of the Matcher contract
chain_workers_gas: u64How much gas is needed to register a worker
chain_wallet_key: StringPrivate key to send setWorker tx to chain to register a worker
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DeciderConfig
impl Send for DeciderConfig
impl Sync for DeciderConfig
impl Unpin for DeciderConfig
impl UnwindSafe for DeciderConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more