// {{$contract.Type}}{{.Normalized.Name}}Iterator is returned from Filter{{.Normalized.Name}} and is used to iterate over the raw logs and unpacked data for {{.Normalized.Name}} events raised by the {{$contract.Type}} contract.
type {{$contract.Type}}{{.Normalized.Name}}Iterator struct {
Event *{{$contract.Type}}{{.Normalized.Name}} // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // 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.
// ChequebookOverdraftIterator is returned from FilterOverdraft and is used to iterate over the raw logs and unpacked data for Overdraft events raised by the Chequebook contract.
typeChequebookOverdraftIteratorstruct{
Event*ChequebookOverdraft// 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*ChequebookOverdraftIterator)Next()bool{
// If the iterator failed, stop iterating
ifit.fail!=nil{
returnfalse
}
// If the iterator completed, deliver directly whatever's available
// ENSNewOwnerIterator is returned from FilterNewOwner and is used to iterate over the raw logs and unpacked data for NewOwner events raised by the ENS contract.
typeENSNewOwnerIteratorstruct{
Event*ENSNewOwner// 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*ENSNewOwnerIterator)Next()bool{
// If the iterator failed, stop iterating
ifit.fail!=nil{
returnfalse
}
// If the iterator completed, deliver directly whatever's available
// ENSNewResolverIterator is returned from FilterNewResolver and is used to iterate over the raw logs and unpacked data for NewResolver events raised by the ENS contract.
typeENSNewResolverIteratorstruct{
Event*ENSNewResolver// 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*ENSNewResolverIterator)Next()bool{
// If the iterator failed, stop iterating
ifit.fail!=nil{
returnfalse
}
// If the iterator completed, deliver directly whatever's available
// WatchNewResolver is a free log subscription operation binding the contract event 0x335721b01866dc23fbee8b6b2c7b1e14d6f05c28cd35a2c934239f94095602a0.
// ENSNewTTLIterator is returned from FilterNewTTL and is used to iterate over the raw logs and unpacked data for NewTTL events raised by the ENS contract.
typeENSNewTTLIteratorstruct{
Event*ENSNewTTL// 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*ENSNewTTLIterator)Next()bool{
// If the iterator failed, stop iterating
ifit.fail!=nil{
returnfalse
}
// If the iterator completed, deliver directly whatever's available
// ENSTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ENS contract.
typeENSTransferIteratorstruct{
Event*ENSTransfer// 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*ENSTransferIterator)Next()bool{
// If the iterator failed, stop iterating
ifit.fail!=nil{
returnfalse
}
// If the iterator completed, deliver directly whatever's available
// PublicResolverABIChangedIterator is returned from FilterABIChanged and is used to iterate over the raw logs and unpacked data for ABIChanged events raised by the PublicResolver contract.
typePublicResolverABIChangedIteratorstruct{
Event*PublicResolverABIChanged// 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.
// PublicResolverAddrChangedIterator is returned from FilterAddrChanged and is used to iterate over the raw logs and unpacked data for AddrChanged events raised by the PublicResolver contract.
typePublicResolverAddrChangedIteratorstruct{
Event*PublicResolverAddrChanged// 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.
// WatchAddrChanged is a free log subscription operation binding the contract event 0x52d7d861f09ab3d26239d492e8968629f95e9e318cf0b73bfddc441522a15fd2.
//
// Solidity: event AddrChanged(node indexed bytes32, a address)
// PublicResolverContentChangedIterator is returned from FilterContentChanged and is used to iterate over the raw logs and unpacked data for ContentChanged events raised by the PublicResolver contract.
typePublicResolverContentChangedIteratorstruct{
Event*PublicResolverContentChanged// 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.
// PublicResolverContentChanged represents a ContentChanged event raised by the PublicResolver contract.
typePublicResolverContentChangedstruct{
Node[32]byte
Hash[32]byte
Rawtypes.Log// Blockchain specific contextual infos
}
// FilterContentChanged is a free log retrieval operation binding the contract event 0x0424b6fe0d9c3bdbece0e7879dc241bb0c22e900be8b6c168b4ee08bd9bf83bc.
// WatchContentChanged is a free log subscription operation binding the contract event 0x0424b6fe0d9c3bdbece0e7879dc241bb0c22e900be8b6c168b4ee08bd9bf83bc.
// PublicResolverNameChangedIterator is returned from FilterNameChanged and is used to iterate over the raw logs and unpacked data for NameChanged events raised by the PublicResolver contract.
typePublicResolverNameChangedIteratorstruct{
Event*PublicResolverNameChanged// 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.
// WatchNameChanged is a free log subscription operation binding the contract event 0xb7d29e911041e8d9b843369e890bcb72c9388692ba48b65ac54e7214c4c348f7.
//
// Solidity: event NameChanged(node indexed bytes32, name string)
// PublicResolverPubkeyChangedIterator is returned from FilterPubkeyChanged and is used to iterate over the raw logs and unpacked data for PubkeyChanged events raised by the PublicResolver contract.
typePublicResolverPubkeyChangedIteratorstruct{
Event*PublicResolverPubkeyChanged// 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.
// PublicResolverPubkeyChanged represents a PubkeyChanged event raised by the PublicResolver contract.
typePublicResolverPubkeyChangedstruct{
Node[32]byte
X[32]byte
Y[32]byte
Rawtypes.Log// Blockchain specific contextual infos
}
// FilterPubkeyChanged is a free log retrieval operation binding the contract event 0x1d6f5e03d3f63eb58751986629a5439baee5079ff04f345becb66e23eb154e46.
//
// Solidity: event PubkeyChanged(node indexed bytes32, x bytes32, y bytes32)
// WatchPubkeyChanged is a free log subscription operation binding the contract event 0x1d6f5e03d3f63eb58751986629a5439baee5079ff04f345becb66e23eb154e46.
//
// Solidity: event PubkeyChanged(node indexed bytes32, x bytes32, y bytes32)
// PublicResolverTextChangedIterator is returned from FilterTextChanged and is used to iterate over the raw logs and unpacked data for TextChanged events raised by the PublicResolver contract.
typePublicResolverTextChangedIteratorstruct{
Event*PublicResolverTextChanged// 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.
// WatchTextChanged is a free log subscription operation binding the contract event 0xd8c9334b1a9c2f9da342a0a2b32629c1a229b6445dad78947f674b44444a7550.
t.Fatalf("Iter #%d: version mismatch: have %d.%d.%d-%x, want %d.%d.%d-%x",i,ver.Major,ver.Minor,ver.Patch,ver.Commit,verMajor,verMinor,verPatch,verCommit)
}
// Pass the release and check that it became the next version
t.Fatalf("Iter #%d: version mismatch: have %d.%d.%d-%x, want %d.%d.%d-%x",i,ver.Major,ver.Minor,ver.Patch,ver.Commit,verMajor,verMinor,verPatch,verCommit)
}
}
}
// Tests that proposed versions can be nuked out of existence.
funcTestVersionNuking(t*testing.T){
// Prefund a few accounts to authorize with and create the oracle