|
|
|
@ -42,7 +42,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_bool().ok_or("Invalid type returned")?; r }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_bool().ok_or("Invalid type returned")?; r })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":false,"inputs":[{"name":"_txid","type":"bytes32"}],"name":"rejectTransaction","outputs":[],"payable":false,"type":"function"}`
|
|
|
|
@ -186,7 +186,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()) }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()) })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"proxy","outputs":[{"name":"requiredCount","type":"uint256"},{"name":"to","type":"address"},{"name":"data","type":"bytes"},{"name":"value","type":"uint256"},{"name":"gas","type":"uint256"}],"payable":false,"type":"function"}`
|
|
|
|
@ -222,7 +222,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_fixed_bytes().ok_or("Invalid type returned")?; ethereum_types::H256::from_slice(r.as_ref()) }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_fixed_bytes().ok_or("Invalid type returned")?; ethereum_types::H256::from_slice(r.as_ref()) })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":false,"inputs":[{"name":"_txid","type":"bytes32"},{"name":"_to","type":"address"},{"name":"_data","type":"bytes"},{"name":"_value","type":"uint256"},{"name":"_gas","type":"uint256"}],"name":"proposeTransaction","outputs":[{"name":"txSuccess","type":"uint256"}],"payable":false,"type":"function"}`
|
|
|
|
@ -234,7 +234,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()) }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()) })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":true,"inputs":[],"name":"grandOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"}`
|
|
|
|
@ -246,7 +246,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_address().ok_or("Invalid type returned")?; ethereum_types::Address::from(r) }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_address().ok_or("Invalid type returned")?; ethereum_types::Address::from(r) })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":false,"inputs":[{"name":"_release","type":"bytes32"},{"name":"_forkBlock","type":"uint32"},{"name":"_track","type":"uint8"},{"name":"_semver","type":"uint24"},{"name":"_critical","type":"bool"}],"name":"addRelease","outputs":[],"payable":false,"type":"function"}`
|
|
|
|
@ -282,7 +282,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()).as_u64() as u32 }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()).as_u64() as u32 })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":true,"inputs":[{"name":"_client","type":"bytes32"},{"name":"_release","type":"bytes32"}],"name":"track","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"}`
|
|
|
|
@ -294,7 +294,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()).as_u64() as u8 }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()).as_u64() as u8 })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":false,"inputs":[{"name":"_client","type":"bytes32"},{"name":"_r","type":"bool"}],"name":"setClientRequired","outputs":[],"payable":false,"type":"function"}`
|
|
|
|
@ -316,7 +316,7 @@ impl Operations {
|
|
|
|
|
let data = call.encode_input(&[]).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()).as_u64() as u32 }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()).as_u64() as u32 })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":true,"inputs":[{"name":"_client","type":"bytes32"},{"name":"_track","type":"uint8"}],"name":"latestInTrack","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"}`
|
|
|
|
@ -328,7 +328,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_fixed_bytes().ok_or("Invalid type returned")?; ethereum_types::H256::from_slice(r.as_ref()) }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_fixed_bytes().ok_or("Invalid type returned")?; ethereum_types::H256::from_slice(r.as_ref()) })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":true,"inputs":[{"name":"_client","type":"bytes32"},{"name":"_release","type":"bytes32"},{"name":"_platform","type":"bytes32"}],"name":"checksum","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"}`
|
|
|
|
@ -340,7 +340,7 @@ impl Operations {
|
|
|
|
|
).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_fixed_bytes().ok_or("Invalid type returned")?; ethereum_types::H256::from_slice(r.as_ref()) }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_fixed_bytes().ok_or("Invalid type returned")?; ethereum_types::H256::from_slice(r.as_ref()) })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Auto-generated from: `{"constant":true,"inputs":[],"name":"proposedFork","outputs":[{"name":"","type":"uint32"}],"payable":false,"type":"function"}`
|
|
|
|
@ -350,6 +350,6 @@ impl Operations {
|
|
|
|
|
let data = call.encode_input(&[]).map_err(Self::as_string)?;
|
|
|
|
|
let output = call.decode_output(&(self.do_call)(self.address.clone(), data)?).map_err(Self::as_string)?;
|
|
|
|
|
let mut result = output.into_iter().rev().collect::<Vec<_>>();
|
|
|
|
|
Ok(({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()).as_u64() as u32 }))
|
|
|
|
|
Ok({ let r = result.pop().ok_or("Invalid return arity")?; let r = r.to_uint().ok_or("Invalid type returned")?; ethereum_types::U256::from(r.as_ref()).as_u64() as u32 })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|