// VmOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Vm contract.
typeVmOwnershipTransferredIteratorstruct{
Event*VmOwnershipTransferred// Event containing the contract specifics and raw log
// VmUpdateVmStatusIterator is returned from FilterUpdateVmStatus and is used to iterate over the raw logs and unpacked data for UpdateVmStatus events raised by the Vm contract.
typeVmUpdateVmStatusIteratorstruct{
Event*VmUpdateVmStatus// Event containing the contract specifics and raw log
contract*bind.BoundContract// Generic contract to use for unpacking event data
eventstring// Event name to use for unpacking event data
logschantypes.Log// Log channel receiving the found contract events
subethereum.Subscription// Subscription for errors, completion and termination
donebool// Whether the subscription completed delivering logs
failerror// Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func(it*VmUpdateVmStatusIterator)Next()bool{
// If the iterator failed, stop iterating
ifit.fail!=nil{
returnfalse
}
// If the iterator completed, deliver directly whatever's available
// Error returns any retrieval or parsing error occurred during filtering.
func(it*VmUpdateVmStatusIterator)Error()error{
returnit.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func(it*VmUpdateVmStatusIterator)Close()error{
it.sub.Unsubscribe()
returnnil
}
// VmUpdateVmStatus represents a UpdateVmStatus event raised by the Vm contract.
typeVmUpdateVmStatusstruct{
VmId*big.Int
Statusuint8
Rawtypes.Log// Blockchain specific contextual infos
}
// FilterUpdateVmStatus is a free log retrieval operation binding the contract event 0x00b24135945b85e5acabcae660e6ba246745ca707d5d8ee22aa5ebf8b199e1f6.
// WatchUpdateVmStatus is a free log subscription operation binding the contract event 0x00b24135945b85e5acabcae660e6ba246745ca707d5d8ee22aa5ebf8b199e1f6.